diff --git a/openapi/components/requests/CreateGroupRoleRequest.yaml b/openapi/components/requests/CreateGroupRoleRequest.yaml index 8877b22..eb71ee0 100644 --- a/openapi/components/requests/CreateGroupRoleRequest.yaml +++ b/openapi/components/requests/CreateGroupRoleRequest.yaml @@ -11,8 +11,6 @@ properties: type: boolean default: false permissions: - type: array - items: - type: string + $ref: ../schemas/GroupPermissions.yaml diff --git a/openapi/components/requests/UpdateGroupRoleRequest.yaml b/openapi/components/requests/UpdateGroupRoleRequest.yaml index 0b3cc40..3ee2311 100644 --- a/openapi/components/requests/UpdateGroupRoleRequest.yaml +++ b/openapi/components/requests/UpdateGroupRoleRequest.yaml @@ -9,8 +9,6 @@ properties: type: boolean default: false permissions: - type: array - items: - type: string + $ref: ../schemas/GroupPermissions.yaml order: type: integer diff --git a/openapi/components/schemas/AgeVerificationStatus.yaml b/openapi/components/schemas/AgeVerificationStatus.yaml new file mode 100644 index 0000000..ad57f7c --- /dev/null +++ b/openapi/components/schemas/AgeVerificationStatus.yaml @@ -0,0 +1,10 @@ +title: AgeVerificationStatus +type: string +enum: + - hidden + - verified + - 18+ +x-enum-varnames: + - hidden + - verified + - plus18 \ No newline at end of file diff --git a/openapi/components/schemas/CurrentUser.yaml b/openapi/components/schemas/CurrentUser.yaml index 3d5e602..e87b4ee 100644 --- a/openapi/components/schemas/CurrentUser.yaml +++ b/openapi/components/schemas/CurrentUser.yaml @@ -25,7 +25,7 @@ properties: items: $ref: ./UserID.yaml ageVerificationStatus: - type: string + $ref: ./AgeVerificationStatus.yaml ageVerified: type: boolean allowAvatarCopying: diff --git a/openapi/components/schemas/Group.yaml b/openapi/components/schemas/Group.yaml index ae7d325..058e0fb 100644 --- a/openapi/components/schemas/Group.yaml +++ b/openapi/components/schemas/Group.yaml @@ -1,6 +1,14 @@ title: Group type: object properties: + ageVerificationSlotsAvailable: + type: boolean + ageVerificationBetaCode: + type: string + example: abc1234 + ageVerificationBetaSlots: + type: number + example: 500 badges: type: array items: diff --git a/openapi/components/schemas/GroupMyMember.yaml b/openapi/components/schemas/GroupMyMember.yaml index df26d5a..bc6b000 100644 --- a/openapi/components/schemas/GroupMyMember.yaml +++ b/openapi/components/schemas/GroupMyMember.yaml @@ -55,7 +55,4 @@ properties: items: type: string permissions: - type: array - items: - type: string - example: group-instance-join + $ref: ./GroupPermissions.yaml diff --git a/openapi/components/schemas/GroupPermissions.yaml b/openapi/components/schemas/GroupPermissions.yaml new file mode 100644 index 0000000..21242e9 --- /dev/null +++ b/openapi/components/schemas/GroupPermissions.yaml @@ -0,0 +1,27 @@ +type: array +items: + type: string + enum: + - group-announcement-manage + - group-audit-view + - group-bans-manage + - group-data-manage + - group-default-role-manage + - group-galleries-manage + - group-instance-age-gated-create + - group-instance-join + - group-instance-manage + - group-instance-moderate + - group-instance-open-create + - group-instance-plus-create + - group-instance-plus-portal + - group-instance-plus-portal-unlocked + - group-instance-public-create + - group-instance-queue-priority + - group-instance-restricted-create + - group-invites-manage + - group-members-manage + - group-members-remove + - group-members-viewall + - group-roles-assign + - group-roles-manage diff --git a/openapi/components/schemas/GroupRole.yaml b/openapi/components/schemas/GroupRole.yaml index d6d2359..b798966 100644 --- a/openapi/components/schemas/GroupRole.yaml +++ b/openapi/components/schemas/GroupRole.yaml @@ -13,9 +13,7 @@ properties: type: boolean default: false permissions: - type: array - items: - type: string + $ref: ./GroupPermissions.yaml isManagementRole: type: boolean default: false diff --git a/openapi/components/schemas/User.yaml b/openapi/components/schemas/User.yaml index c89ae0f..bc57440 100644 --- a/openapi/components/schemas/User.yaml +++ b/openapi/components/schemas/User.yaml @@ -2,7 +2,7 @@ title: User type: object properties: ageVerificationStatus: - type: string + $ref: ./AgeVerificationStatus.yaml allowAvatarCopying: type: boolean default: true