Skip to content

Commit 457ca88

Browse files
Add ageVerificationSlotsAvailable, Improve ageVerificationStatus (#420)
* Add ageVerificationSlotsAvailable, Improve ageVerificationStatus * deduplicate schema * Add Group Permissions Enum * add ageVerificationBetaCode, add ageVerificationBetaSlots * Update openapi/components/schemas/AgeVerificationStatus.yaml Co-authored-by: Lars Olzem <hackebein@gmail.com> --------- Co-authored-by: Aries <me@ariesclark.com>
1 parent 1b35761 commit 457ca88

9 files changed

Lines changed: 51 additions & 15 deletions

File tree

openapi/components/requests/CreateGroupRoleRequest.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ properties:
1111
type: boolean
1212
default: false
1313
permissions:
14-
type: array
15-
items:
16-
type: string
14+
$ref: ../schemas/GroupPermissions.yaml
1715

1816

openapi/components/requests/UpdateGroupRoleRequest.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ properties:
99
type: boolean
1010
default: false
1111
permissions:
12-
type: array
13-
items:
14-
type: string
12+
$ref: ../schemas/GroupPermissions.yaml
1513
order:
1614
type: integer
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: AgeVerificationStatus
2+
type: string
3+
enum:
4+
- hidden
5+
- verified
6+
- 18+
7+
x-enum-varnames:
8+
- hidden
9+
- verified
10+
- plus18

openapi/components/schemas/CurrentUser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ properties:
2525
items:
2626
$ref: ./UserID.yaml
2727
ageVerificationStatus:
28-
type: string
28+
$ref: ./AgeVerificationStatus.yaml
2929
ageVerified:
3030
type: boolean
3131
allowAvatarCopying:

openapi/components/schemas/Group.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
title: Group
22
type: object
33
properties:
4+
ageVerificationSlotsAvailable:
5+
type: boolean
6+
ageVerificationBetaCode:
7+
type: string
8+
example: abc1234
9+
ageVerificationBetaSlots:
10+
type: number
11+
example: 500
412
badges:
513
type: array
614
items:

openapi/components/schemas/GroupMyMember.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,4 @@ properties:
5555
items:
5656
type: string
5757
permissions:
58-
type: array
59-
items:
60-
type: string
61-
example: group-instance-join
58+
$ref: ./GroupPermissions.yaml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
type: array
2+
items:
3+
type: string
4+
enum:
5+
- group-announcement-manage
6+
- group-audit-view
7+
- group-bans-manage
8+
- group-data-manage
9+
- group-default-role-manage
10+
- group-galleries-manage
11+
- group-instance-age-gated-create
12+
- group-instance-join
13+
- group-instance-manage
14+
- group-instance-moderate
15+
- group-instance-open-create
16+
- group-instance-plus-create
17+
- group-instance-plus-portal
18+
- group-instance-plus-portal-unlocked
19+
- group-instance-public-create
20+
- group-instance-queue-priority
21+
- group-instance-restricted-create
22+
- group-invites-manage
23+
- group-members-manage
24+
- group-members-remove
25+
- group-members-viewall
26+
- group-roles-assign
27+
- group-roles-manage

openapi/components/schemas/GroupRole.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ properties:
1313
type: boolean
1414
default: false
1515
permissions:
16-
type: array
17-
items:
18-
type: string
16+
$ref: ./GroupPermissions.yaml
1917
isManagementRole:
2018
type: boolean
2119
default: false

openapi/components/schemas/User.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ title: User
22
type: object
33
properties:
44
ageVerificationStatus:
5-
type: string
5+
$ref: ./AgeVerificationStatus.yaml
66
allowAvatarCopying:
77
type: boolean
88
default: true

0 commit comments

Comments
 (0)