diff --git a/openapi/components/schemas/GroupAuditLogEntry.yaml b/openapi/components/schemas/GroupAuditLogEntry.yaml index 9b9fa060..f53fed25 100644 --- a/openapi/components/schemas/GroupAuditLogEntry.yaml +++ b/openapi/components/schemas/GroupAuditLogEntry.yaml @@ -1,34 +1,5 @@ title: GroupAuditLogEntry -type: object -properties: - actorDisplayName: - type: string - actorId: - $ref: ./UserID.yaml - created_at: - type: string - format: date-time - data: - type: object - description: The data associated with the event. The format of this data is dependent on the event type. - examples: - - description: - new: "My exciting new group. It's pretty nifty!" - old: "My exciting new group. It's pretty nifty!" - joinState: - new: request - old: closed - description: - type: string - description: A human-readable description of the event. - examples: - - Group role updated - eventType: - $ref: ./GroupAuditLogEntryType.yaml - groupId: - $ref: ./GroupID.yaml - id: - $ref: ./GroupAuditLogID.yaml - targetId: - type: string - description: Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs. +description: A group audit log entry. The shape of `data` depends on `eventType`. +allOf: + - $ref: ./GroupAuditLogEntryBase.yaml + - $ref: ./GroupAuditLogEntryEvent.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryBase.yaml b/openapi/components/schemas/GroupAuditLogEntryBase.yaml new file mode 100644 index 00000000..3441d02f --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryBase.yaml @@ -0,0 +1,33 @@ +title: GroupAuditLogEntryBase +type: object +properties: + actorDisplayName: + type: string + description: The display name of the user who performed the action. + actorId: + $ref: ./UserID.yaml + description: The ID of the user who performed the action. + created_at: + type: string + description: When the action was performed. + format: date-time + description: + type: string + description: A human-readable description of the event. + eventType: + $ref: ./GroupAuditLogEntryType.yaml + description: The type of event that occurred. + groupId: + $ref: ./GroupID.yaml + description: The ID of the group the entry belongs to. + id: + $ref: ./GroupAuditLogID.yaml + description: The unique ID of this audit log entry. +required: + - actorDisplayName + - actorId + - created_at + - description + - eventType + - groupId + - id diff --git a/openapi/components/schemas/GroupAuditLogEntryBooleanChange.yaml b/openapi/components/schemas/GroupAuditLogEntryBooleanChange.yaml new file mode 100644 index 00000000..b24ac2f5 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryBooleanChange.yaml @@ -0,0 +1,11 @@ +title: GroupAuditLogEntryBooleanChange +type: object +description: A boolean field's value before and after an update. +properties: + new: + type: boolean + old: + type: boolean +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryDataEmpty.yaml b/openapi/components/schemas/GroupAuditLogEntryDataEmpty.yaml new file mode 100644 index 00000000..88689727 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataEmpty.yaml @@ -0,0 +1,4 @@ +title: GroupAuditLogEntryDataEmpty +type: object +additionalProperties: false +properties: {} diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupAnnouncement.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupAnnouncement.yaml new file mode 100644 index 00000000..c5b72b0e --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupAnnouncement.yaml @@ -0,0 +1,26 @@ +title: GroupAuditLogEntryDataGroupAnnouncement +type: object +properties: + authorId: + $ref: ./UserID.yaml + description: The ID of the announcement author. + imageId: + description: The image file ID attached to the announcement. + anyOf: + - $ref: ./FileID.yaml + - type: "null" + sendNotification: + type: boolean + description: Whether a notification was sent for this announcement. + text: + type: string + description: The text content of the announcement. + title: + type: string + description: The title of the announcement. +required: + - authorId + - imageId + - sendNotification + - text + - title diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventCreate.yaml new file mode 100644 index 00000000..de9892e0 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventCreate.yaml @@ -0,0 +1,25 @@ +title: GroupAuditLogEntryDataGroupCalendarEventCreate +type: object +properties: + accessType: + $ref: ./CalendarEventAccess.yaml + description: + type: string + description: The description of the calendar event. + imageId: + description: The image file ID for the event. + anyOf: + - $ref: ./FileID.yaml + - type: "null" + title: + type: string + description: The title of the calendar event. + type: + type: string + description: The type of calendar entry. +required: + - accessType + - description + - imageId + - title + - type diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventDelete.yaml new file mode 100644 index 00000000..fdbf118c --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupCalendarEventDelete.yaml @@ -0,0 +1,125 @@ +title: GroupAuditLogEntryDataGroupCalendarEventDelete +type: object +properties: + category: + type: string + description: The category of the event. + closeInstanceAfterEndMinutes: + type: integer + description: Minutes after the event ends to close the instance. + createdAt: + type: string + description: The creation timestamp. + format: date-time + deletedAt: + type: + - string + - "null" + description: The deletion timestamp. + format: date-time + durationInMs: + type: integer + description: The duration of the event in milliseconds. + endsAt: + type: string + description: The end timestamp. + format: date-time + featured: + type: boolean + description: Whether the event is featured. + guestEarlyJoinMinutes: + type: integer + description: Minutes before the start that guests can join. + hostEarlyJoinMinutes: + type: integer + description: Minutes before the start that hosts can join. + interestedUserCount: + type: integer + description: The number of interested users. + isDraft: + type: boolean + description: Whether the event is a draft. + languages: + type: array + description: The languages for the event. + items: + type: string + occurrenceKind: + $ref: ./CalendarEventOccurrenceKind.yaml + occurrenceModified: + type: + - string + - "null" + ownerId: + $ref: ./GroupID.yaml + description: The ID of the group that owns the event. + platforms: + type: array + description: The supported platforms. + items: + type: string + recurrence: + description: The recurrence rule. + anyOf: + - $ref: ./CalendarEventRecurrence.yaml + - type: "null" + roleIds: + type: + - array + - "null" + description: Group roles that may join this event. + items: + $ref: ./GroupRoleID.yaml + seriesId: + type: + - string + - "null" + description: The ID of the recurring series the event belongs to. + shortCode: + type: + - string + - "null" + description: The short code. + startsAt: + type: string + description: The start timestamp. + format: date-time + tags: + type: array + description: The event tags. + items: + type: string + updatedAt: + type: string + description: The last update timestamp. + format: date-time + usesInstanceOverflow: + type: boolean + description: Whether the event uses instance overflow. +required: + - category + - closeInstanceAfterEndMinutes + - createdAt + - deletedAt + - durationInMs + - endsAt + - featured + - guestEarlyJoinMinutes + - hostEarlyJoinMinutes + - interestedUserCount + - isDraft + - languages + - occurrenceKind + - occurrenceModified + - ownerId + - platforms + - recurrence + - roleIds + - seriesId + - shortCode + - startsAt + - tags + - updatedAt + - usesInstanceOverflow +allOf: + - $ref: ./GroupAuditLogEntryDataGroupCalendarEventCreate.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryCreate.yaml new file mode 100644 index 00000000..8d59f44a --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryCreate.yaml @@ -0,0 +1,48 @@ +title: GroupAuditLogEntryDataGroupGalleryCreate +type: object +properties: + description: + type: string + description: The gallery description. + membersOnly: + type: boolean + description: Whether the gallery is members only. + name: + type: string + description: The gallery name. + roleIdsToAutoApprove: + type: + - array + - "null" + description: The role IDs whose submissions are approved automatically. + items: + $ref: ./GroupRoleID.yaml + roleIdsToManage: + type: + - array + - "null" + description: The role IDs that can manage the gallery. + items: + $ref: ./GroupRoleID.yaml + roleIdsToSubmit: + type: + - array + - "null" + description: The role IDs that can submit to the gallery. + items: + $ref: ./GroupRoleID.yaml + roleIdsToView: + type: + - array + - "null" + description: The role IDs that can view the gallery. + items: + $ref: ./GroupRoleID.yaml +required: + - description + - membersOnly + - name + - roleIdsToAutoApprove + - roleIdsToManage + - roleIdsToSubmit + - roleIdsToView diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryDelete.yaml new file mode 100644 index 00000000..525611ad --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryDelete.yaml @@ -0,0 +1,16 @@ +title: GroupAuditLogEntryDataGroupGalleryDelete +type: object +properties: + createdAt: + type: string + description: The creation timestamp of the gallery. + format: date-time + updatedAt: + type: string + description: The last update timestamp of the gallery. + format: date-time +required: + - createdAt + - updatedAt +allOf: + - $ref: ./GroupAuditLogEntryDataGroupGalleryCreate.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryUpdate.yaml new file mode 100644 index 00000000..038c348d --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupGalleryUpdate.yaml @@ -0,0 +1,8 @@ +title: GroupAuditLogEntryDataGroupGalleryUpdate +type: object +description: Carries only the fields the update changed. +properties: + membersOnly: + $ref: ./GroupAuditLogEntryBooleanChange.yaml + name: + $ref: ./GroupAuditLogEntryStringChange.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceAnnouncement.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceAnnouncement.yaml new file mode 100644 index 00000000..a8caa85c --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceAnnouncement.yaml @@ -0,0 +1,12 @@ +title: GroupAuditLogEntryDataGroupInstanceAnnouncement +type: object +properties: + message: + type: string + description: The announcement message. + title: + type: string + description: The announcement title. +required: + - message + - title diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceClose.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceClose.yaml new file mode 100644 index 00000000..f3c0a0f7 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceClose.yaml @@ -0,0 +1,15 @@ +title: GroupAuditLogEntryDataGroupInstanceClose +type: object +properties: + groupAccessType: + $ref: ./GroupAccessType.yaml + roleIds: + type: + - array + - "null" + description: The role IDs that have access to the instance. + items: + $ref: ./GroupRoleID.yaml +required: + - groupAccessType + - roleIds diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceCreate.yaml new file mode 100644 index 00000000..e5dfdd94 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceCreate.yaml @@ -0,0 +1,17 @@ +title: GroupAuditLogEntryDataGroupInstanceCreate +type: object +properties: + calendarEntryId: + description: The calendar entry ID if the instance was created from a calendar event. + anyOf: + - $ref: ./CalendarID.yaml + - type: "null" + groupAccessType: + $ref: ./GroupAccessType.yaml + roleIds: + $ref: ./GroupRoleIDList.yaml + description: The role IDs that have access to the instance. +required: + - calendarEntryId + - groupAccessType + - roleIds diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceModeration.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceModeration.yaml new file mode 100644 index 00000000..2d95bf66 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupInstanceModeration.yaml @@ -0,0 +1,8 @@ +title: GroupAuditLogEntryDataGroupInstanceModeration +type: object +properties: + location: + $ref: ./LocationID.yaml + description: The instance the target was kicked from or warned in. +required: + - location diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberRole.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberRole.yaml new file mode 100644 index 00000000..8aaa77d9 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberRole.yaml @@ -0,0 +1,12 @@ +title: GroupAuditLogEntryDataGroupMemberRole +type: object +properties: + roleId: + $ref: ./GroupRoleID.yaml + description: The ID of the role that was assigned or unassigned. + roleName: + type: string + description: The name of the role that was assigned or unassigned. +required: + - roleId + - roleName diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberUserUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberUserUpdate.yaml new file mode 100644 index 00000000..49ea9287 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupMemberUserUpdate.yaml @@ -0,0 +1,6 @@ +title: GroupAuditLogEntryDataGroupMemberUserUpdate +type: object +description: Carries only the fields the update changed. +properties: + managerNotes: + $ref: ./GroupAuditLogEntryStringChange.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupPost.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupPost.yaml new file mode 100644 index 00000000..d6bf219d --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupPost.yaml @@ -0,0 +1,25 @@ +title: GroupAuditLogEntryDataGroupPost +type: object +properties: + authorId: + $ref: ./UserID.yaml + description: The ID of the post author. + imageId: + description: The image file ID attached to the post. + anyOf: + - $ref: ./FileID.yaml + - type: "null" + text: + type: string + description: The text content of the post. + title: + type: string + description: The title of the post. + visibility: + $ref: ./GroupPostVisibility.yaml +required: + - authorId + - imageId + - text + - title + - visibility diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupPostCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostCreate.yaml new file mode 100644 index 00000000..b364d3b2 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostCreate.yaml @@ -0,0 +1,18 @@ +title: GroupAuditLogEntryDataGroupPostCreate +type: object +properties: + roleIds: + type: + - array + - "null" + description: The role IDs that can see the post. + items: + $ref: ./GroupRoleID.yaml + sendNotification: + type: boolean + description: Whether a notification was sent for this post. +required: + - roleIds + - sendNotification +allOf: + - $ref: ./GroupAuditLogEntryDataGroupPost.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupPostDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostDelete.yaml new file mode 100644 index 00000000..81ce76ca --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostDelete.yaml @@ -0,0 +1,33 @@ +title: GroupAuditLogEntryDataGroupPostDelete +type: object +properties: + createdAt: + type: string + description: The creation timestamp of the post. + format: date-time + editorId: + description: The ID of the user who last edited the post. + anyOf: + - $ref: ./UserID.yaml + - type: "null" + imageUrl: + type: + - string + - "null" + description: The URL of the post image. + format: uri + roleIds: + $ref: ./GroupRoleIDList.yaml + description: The role IDs that could see the post. + updatedAt: + type: string + description: The last update timestamp of the post. + format: date-time +required: + - createdAt + - editorId + - imageUrl + - roleIds + - updatedAt +allOf: + - $ref: ./GroupAuditLogEntryDataGroupPost.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupPostUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostUpdate.yaml new file mode 100644 index 00000000..ad10fb3f --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupPostUpdate.yaml @@ -0,0 +1,10 @@ +title: GroupAuditLogEntryDataGroupPostUpdate +type: object +description: Carries only the fields the update changed. +properties: + editorId: + $ref: ./GroupAuditLogEntryUserIdChange.yaml + text: + $ref: ./GroupAuditLogEntryStringChange.yaml + title: + $ref: ./GroupAuditLogEntryStringChange.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupRole.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupRole.yaml new file mode 100644 index 00000000..d2e02ffe --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupRole.yaml @@ -0,0 +1,37 @@ +title: GroupAuditLogEntryDataGroupRole +type: object +properties: + description: + type: string + description: The role description. + isAddedOnJoin: + type: boolean + description: Whether the role is automatically assigned on join. + isSelfAssignable: + type: boolean + description: Whether users can self-assign this role. + name: + type: string + description: The role name. + order: + type: integer + description: The display order of the role. + permissions: + type: array + description: The permissions assigned to this role. + items: + $ref: ./GroupPermissions.yaml + requiresPurchase: + type: boolean + description: Whether the role requires a purchase. + requiresTwoFactor: + type: boolean + description: Whether the role requires two-factor authentication. +required: + - description + - isAddedOnJoin + - isSelfAssignable + - name + - permissions + - requiresPurchase + - requiresTwoFactor diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleCreate.yaml new file mode 100644 index 00000000..c5b41eb8 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryDataGroupRoleCreate +type: object +properties: + groupId: + $ref: ./GroupID.yaml + description: The group ID. + lastUpdatedByUserId: + $ref: ./UserID.yaml + description: The ID of the user who last updated the role. +required: + - groupId + - lastUpdatedByUserId +allOf: + - $ref: ./GroupAuditLogEntryDataGroupRole.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleDelete.yaml new file mode 100644 index 00000000..1601a90d --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleDelete.yaml @@ -0,0 +1,20 @@ +title: GroupAuditLogEntryDataGroupRoleDelete +type: object +properties: + createdAt: + type: string + description: The creation timestamp of the role. + format: date-time + defaultRole: + type: boolean + description: Whether the role is the group's default role. + isManagementRole: + type: boolean + description: Whether the role is a management role. +required: + - createdAt + - defaultRole + - isManagementRole + - order +allOf: + - $ref: ./GroupAuditLogEntryDataGroupRole.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleUpdate.yaml new file mode 100644 index 00000000..4ebac353 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupRoleUpdate.yaml @@ -0,0 +1,16 @@ +title: GroupAuditLogEntryDataGroupRoleUpdate +type: object +description: Carries only the fields the update changed. +properties: + description: + $ref: ./GroupAuditLogEntryStringChange.yaml + isAddedOnJoin: + $ref: ./GroupAuditLogEntryBooleanChange.yaml + isSelfAssignable: + $ref: ./GroupAuditLogEntryBooleanChange.yaml + name: + $ref: ./GroupAuditLogEntryStringChange.yaml + order: + $ref: ./GroupAuditLogEntryIntegerChange.yaml + permissions: + $ref: ./GroupAuditLogEntryStringListChange.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataGroupUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryDataGroupUpdate.yaml new file mode 100644 index 00000000..3dc305c6 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataGroupUpdate.yaml @@ -0,0 +1,28 @@ +title: GroupAuditLogEntryDataGroupUpdate +type: object +description: Carries only the fields the update changed. +properties: + allowGroupJoinPrompt: + $ref: ./GroupAuditLogEntryBooleanChange.yaml + bannerId: + $ref: ./GroupAuditLogEntryFileIDChange.yaml + description: + $ref: ./GroupAuditLogEntryStringChange.yaml + iconId: + $ref: ./GroupAuditLogEntryFileIDChange.yaml + joinState: + $ref: ./GroupAuditLogEntryJoinStateChange.yaml + languages: + $ref: ./GroupAuditLogEntryStringListChange.yaml + links: + $ref: ./GroupAuditLogEntryStringListChange.yaml + name: + $ref: ./GroupAuditLogEntryStringChange.yaml + nameplateId: + $ref: ./GroupAuditLogEntryFileIDChange.yaml + rules: + $ref: ./GroupAuditLogEntryStringChange.yaml + shortCode: + $ref: ./GroupAuditLogEntryStringChange.yaml + tags: + $ref: ./GroupAuditLogEntryStringListChange.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryDataUnknown.yaml b/openapi/components/schemas/GroupAuditLogEntryDataUnknown.yaml new file mode 100644 index 00000000..74aab99e --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryDataUnknown.yaml @@ -0,0 +1,3 @@ +title: GroupAuditLogEntryDataUnknown +type: object +additionalProperties: true diff --git a/openapi/components/schemas/GroupAuditLogEntryEvent.yaml b/openapi/components/schemas/GroupAuditLogEntryEvent.yaml new file mode 100644 index 00000000..6cbb2139 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryEvent.yaml @@ -0,0 +1,73 @@ +title: GroupAuditLogEntryEvent +description: The `eventType` of an audit log entry and the `data` that goes with it. +discriminator: + defaultMapping: ./GroupAuditLogEntryUnknown.yaml + mapping: + group.announcement: ./GroupAuditLogEntryGroupAnnouncement.yaml + group.calendarEvent.create: ./GroupAuditLogEntryGroupCalendarEventCreate.yaml + group.calendarEvent.delete: ./GroupAuditLogEntryGroupCalendarEventDelete.yaml + group.gallery.create: ./GroupAuditLogEntryGroupGalleryCreate.yaml + group.gallery.delete: ./GroupAuditLogEntryGroupGalleryDelete.yaml + group.gallery.update: ./GroupAuditLogEntryGroupGalleryUpdate.yaml + group.instance.announcement: ./GroupAuditLogEntryGroupInstanceAnnouncement.yaml + group.instance.close: ./GroupAuditLogEntryGroupInstanceClose.yaml + group.instance.create: ./GroupAuditLogEntryGroupInstanceCreate.yaml + group.instance.kick: ./GroupAuditLogEntryGroupInstanceKick.yaml + group.instance.warn: ./GroupAuditLogEntryGroupInstanceWarn.yaml + group.invite.cancel: ./GroupAuditLogEntryGroupInviteCancel.yaml + group.invite.create: ./GroupAuditLogEntryGroupInviteCreate.yaml + group.member.join: ./GroupAuditLogEntryGroupMemberJoin.yaml + group.member.leave: ./GroupAuditLogEntryGroupMemberLeave.yaml + group.member.remove: ./GroupAuditLogEntryGroupMemberRemove.yaml + group.member.role.assign: ./GroupAuditLogEntryGroupMemberRoleAssign.yaml + group.member.role.unassign: ./GroupAuditLogEntryGroupMemberRoleUnassign.yaml + group.member.user.update: ./GroupAuditLogEntryGroupMemberUserUpdate.yaml + group.post.create: ./GroupAuditLogEntryGroupPostCreate.yaml + group.post.delete: ./GroupAuditLogEntryGroupPostDelete.yaml + group.post.update: ./GroupAuditLogEntryGroupPostUpdate.yaml + group.request.block: ./GroupAuditLogEntryGroupRequestBlock.yaml + group.request.create: ./GroupAuditLogEntryGroupRequestCreate.yaml + group.request.reject: ./GroupAuditLogEntryGroupRequestReject.yaml + group.request.withdraw: ./GroupAuditLogEntryGroupRequestWithdraw.yaml + group.role.create: ./GroupAuditLogEntryGroupRoleCreate.yaml + group.role.delete: ./GroupAuditLogEntryGroupRoleDelete.yaml + group.role.update: ./GroupAuditLogEntryGroupRoleUpdate.yaml + group.update: ./GroupAuditLogEntryGroupUpdate.yaml + group.user.ban: ./GroupAuditLogEntryGroupUserBan.yaml + group.user.unban: ./GroupAuditLogEntryGroupUserUnban.yaml + propertyName: eventType + x-vrchatapi-downlevel-default-mapping: GroupAuditLogEntryUnknown +oneOf: + - $ref: ./GroupAuditLogEntryGroupAnnouncement.yaml + - $ref: ./GroupAuditLogEntryGroupCalendarEventCreate.yaml + - $ref: ./GroupAuditLogEntryGroupCalendarEventDelete.yaml + - $ref: ./GroupAuditLogEntryGroupGalleryCreate.yaml + - $ref: ./GroupAuditLogEntryGroupGalleryDelete.yaml + - $ref: ./GroupAuditLogEntryGroupGalleryUpdate.yaml + - $ref: ./GroupAuditLogEntryGroupInstanceAnnouncement.yaml + - $ref: ./GroupAuditLogEntryGroupInstanceClose.yaml + - $ref: ./GroupAuditLogEntryGroupInstanceCreate.yaml + - $ref: ./GroupAuditLogEntryGroupInstanceKick.yaml + - $ref: ./GroupAuditLogEntryGroupInstanceWarn.yaml + - $ref: ./GroupAuditLogEntryGroupInviteCancel.yaml + - $ref: ./GroupAuditLogEntryGroupInviteCreate.yaml + - $ref: ./GroupAuditLogEntryGroupMemberJoin.yaml + - $ref: ./GroupAuditLogEntryGroupMemberLeave.yaml + - $ref: ./GroupAuditLogEntryGroupMemberRemove.yaml + - $ref: ./GroupAuditLogEntryGroupMemberRoleAssign.yaml + - $ref: ./GroupAuditLogEntryGroupMemberRoleUnassign.yaml + - $ref: ./GroupAuditLogEntryGroupMemberUserUpdate.yaml + - $ref: ./GroupAuditLogEntryGroupPostCreate.yaml + - $ref: ./GroupAuditLogEntryGroupPostDelete.yaml + - $ref: ./GroupAuditLogEntryGroupPostUpdate.yaml + - $ref: ./GroupAuditLogEntryGroupRequestBlock.yaml + - $ref: ./GroupAuditLogEntryGroupRequestCreate.yaml + - $ref: ./GroupAuditLogEntryGroupRequestReject.yaml + - $ref: ./GroupAuditLogEntryGroupRequestWithdraw.yaml + - $ref: ./GroupAuditLogEntryGroupRoleCreate.yaml + - $ref: ./GroupAuditLogEntryGroupRoleDelete.yaml + - $ref: ./GroupAuditLogEntryGroupRoleUpdate.yaml + - $ref: ./GroupAuditLogEntryGroupUpdate.yaml + - $ref: ./GroupAuditLogEntryGroupUserBan.yaml + - $ref: ./GroupAuditLogEntryGroupUserUnban.yaml + - $ref: ./GroupAuditLogEntryUnknown.yaml diff --git a/openapi/components/schemas/GroupAuditLogEntryFileIDChange.yaml b/openapi/components/schemas/GroupAuditLogEntryFileIDChange.yaml new file mode 100644 index 00000000..3ff8d5c6 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryFileIDChange.yaml @@ -0,0 +1,11 @@ +title: GroupAuditLogEntryFileIDChange +type: object +description: A File ID field's value before and after an update. +properties: + new: + $ref: ./FileID.yaml + old: + $ref: ./FileID.yaml +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupAnnouncement.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupAnnouncement.yaml new file mode 100644 index 00000000..8c7d5f07 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupAnnouncement.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupAnnouncement +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupAnnouncement.yaml + eventType: + type: string + const: group.announcement + targetId: + $ref: ./NotificationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventCreate.yaml new file mode 100644 index 00000000..f1575af3 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupCalendarEventCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupCalendarEventCreate.yaml + eventType: + type: string + const: group.calendarEvent.create + targetId: + $ref: ./CalendarID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventDelete.yaml new file mode 100644 index 00000000..e9a625d8 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupCalendarEventDelete.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupCalendarEventDelete +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupCalendarEventDelete.yaml + eventType: + type: string + const: group.calendarEvent.delete + targetId: + $ref: ./CalendarID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupGalleryCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryCreate.yaml new file mode 100644 index 00000000..6571626a --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupGalleryCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupGalleryCreate.yaml + eventType: + type: string + const: group.gallery.create + targetId: + $ref: ./GroupGalleryID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupGalleryDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryDelete.yaml new file mode 100644 index 00000000..66c3339f --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryDelete.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupGalleryDelete +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupGalleryDelete.yaml + eventType: + type: string + const: group.gallery.delete + targetId: + $ref: ./GroupGalleryID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupGalleryUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryUpdate.yaml new file mode 100644 index 00000000..34e0322c --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupGalleryUpdate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupGalleryUpdate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupGalleryUpdate.yaml + eventType: + type: string + const: group.gallery.update + targetId: + $ref: ./GroupGalleryID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInstanceAnnouncement.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceAnnouncement.yaml new file mode 100644 index 00000000..ff4c54c0 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceAnnouncement.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInstanceAnnouncement +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupInstanceAnnouncement.yaml + eventType: + type: string + const: group.instance.announcement + targetId: + $ref: ./LocationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInstanceClose.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceClose.yaml new file mode 100644 index 00000000..c5b757b1 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceClose.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInstanceClose +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupInstanceClose.yaml + eventType: + type: string + const: group.instance.close + targetId: + $ref: ./LocationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInstanceCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceCreate.yaml new file mode 100644 index 00000000..2c874cea --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInstanceCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupInstanceCreate.yaml + eventType: + type: string + const: group.instance.create + targetId: + $ref: ./LocationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInstanceKick.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceKick.yaml new file mode 100644 index 00000000..70ab93ed --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceKick.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInstanceKick +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupInstanceModeration.yaml + eventType: + type: string + const: group.instance.kick + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInstanceWarn.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceWarn.yaml new file mode 100644 index 00000000..4b27b300 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInstanceWarn.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInstanceWarn +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupInstanceModeration.yaml + eventType: + type: string + const: group.instance.warn + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInviteCancel.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInviteCancel.yaml new file mode 100644 index 00000000..11fd69f6 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInviteCancel.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInviteCancel +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.invite.cancel + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupInviteCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupInviteCreate.yaml new file mode 100644 index 00000000..f894aad7 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupInviteCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupInviteCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.invite.create + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberJoin.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberJoin.yaml new file mode 100644 index 00000000..6b773670 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberJoin.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberJoin +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.member.join + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberLeave.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberLeave.yaml new file mode 100644 index 00000000..c2ddb485 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberLeave.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberLeave +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.member.leave + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberRemove.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRemove.yaml new file mode 100644 index 00000000..cfeab1b5 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRemove.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberRemove +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.member.remove + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleAssign.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleAssign.yaml new file mode 100644 index 00000000..4ddd8877 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleAssign.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberRoleAssign +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupMemberRole.yaml + eventType: + type: string + const: group.member.role.assign + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleUnassign.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleUnassign.yaml new file mode 100644 index 00000000..6d147d73 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberRoleUnassign.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberRoleUnassign +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupMemberRole.yaml + eventType: + type: string + const: group.member.role.unassign + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupMemberUserUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupMemberUserUpdate.yaml new file mode 100644 index 00000000..d33b3bab --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupMemberUserUpdate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupMemberUserUpdate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupMemberUserUpdate.yaml + eventType: + type: string + const: group.member.user.update + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupPostCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupPostCreate.yaml new file mode 100644 index 00000000..b6dbef93 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupPostCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupPostCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupPostCreate.yaml + eventType: + type: string + const: group.post.create + targetId: + $ref: ./NotificationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupPostDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupPostDelete.yaml new file mode 100644 index 00000000..a3443a7d --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupPostDelete.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupPostDelete +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupPostDelete.yaml + eventType: + type: string + const: group.post.delete + targetId: + $ref: ./NotificationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupPostUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupPostUpdate.yaml new file mode 100644 index 00000000..c9ce4da1 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupPostUpdate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupPostUpdate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupPostUpdate.yaml + eventType: + type: string + const: group.post.update + targetId: + $ref: ./NotificationID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRequestBlock.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRequestBlock.yaml new file mode 100644 index 00000000..d557a74d --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRequestBlock.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRequestBlock +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.request.block + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRequestCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRequestCreate.yaml new file mode 100644 index 00000000..6a0da674 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRequestCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRequestCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.request.create + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRequestReject.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRequestReject.yaml new file mode 100644 index 00000000..f5e1979e --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRequestReject.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRequestReject +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.request.reject + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRequestWithdraw.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRequestWithdraw.yaml new file mode 100644 index 00000000..ebf6ea40 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRequestWithdraw.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRequestWithdraw +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.request.withdraw + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRoleCreate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRoleCreate.yaml new file mode 100644 index 00000000..0fdd7d6c --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRoleCreate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRoleCreate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupRoleCreate.yaml + eventType: + type: string + const: group.role.create + targetId: + $ref: ./GroupRoleID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRoleDelete.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRoleDelete.yaml new file mode 100644 index 00000000..33551163 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRoleDelete.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRoleDelete +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupRoleDelete.yaml + eventType: + type: string + const: group.role.delete + targetId: + $ref: ./GroupRoleID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupRoleUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupRoleUpdate.yaml new file mode 100644 index 00000000..cfc7c001 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupRoleUpdate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupRoleUpdate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupRoleUpdate.yaml + eventType: + type: string + const: group.role.update + targetId: + $ref: ./GroupRoleID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupUpdate.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupUpdate.yaml new file mode 100644 index 00000000..39728177 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupUpdate.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupUpdate +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataGroupUpdate.yaml + eventType: + type: string + const: group.update + targetId: + $ref: ./GroupID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupUserBan.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupUserBan.yaml new file mode 100644 index 00000000..97097ea7 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupUserBan.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupUserBan +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.user.ban + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryGroupUserUnban.yaml b/openapi/components/schemas/GroupAuditLogEntryGroupUserUnban.yaml new file mode 100644 index 00000000..73b84882 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryGroupUserUnban.yaml @@ -0,0 +1,14 @@ +title: GroupAuditLogEntryGroupUserUnban +type: object +properties: + data: + $ref: ./GroupAuditLogEntryDataEmpty.yaml + eventType: + type: string + const: group.user.unban + targetId: + $ref: ./UserID.yaml +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryIntegerChange.yaml b/openapi/components/schemas/GroupAuditLogEntryIntegerChange.yaml new file mode 100644 index 00000000..538c2d0c --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryIntegerChange.yaml @@ -0,0 +1,11 @@ +title: GroupAuditLogEntryIntegerChange +type: object +description: An integer field's value before and after an update. +properties: + new: + type: integer + old: + type: integer +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryJoinStateChange.yaml b/openapi/components/schemas/GroupAuditLogEntryJoinStateChange.yaml new file mode 100644 index 00000000..b0ee16d0 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryJoinStateChange.yaml @@ -0,0 +1,11 @@ +title: GroupAuditLogEntryJoinStateChange +type: object +description: A join state field's value before and after an update. +properties: + new: + $ref: ./GroupJoinState.yaml + old: + $ref: ./GroupJoinState.yaml +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryStringChange.yaml b/openapi/components/schemas/GroupAuditLogEntryStringChange.yaml new file mode 100644 index 00000000..4a4ba7e8 --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryStringChange.yaml @@ -0,0 +1,11 @@ +title: GroupAuditLogEntryStringChange +type: object +description: A text field's value before and after an update. +properties: + new: + type: string + old: + type: string +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryStringListChange.yaml b/openapi/components/schemas/GroupAuditLogEntryStringListChange.yaml new file mode 100644 index 00000000..809bc1ff --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryStringListChange.yaml @@ -0,0 +1,15 @@ +title: GroupAuditLogEntryStringListChange +type: object +description: A list field's value before and after an update. +properties: + new: + type: array + items: + type: string + old: + type: array + items: + type: string +required: + - new + - old diff --git a/openapi/components/schemas/GroupAuditLogEntryUnknown.yaml b/openapi/components/schemas/GroupAuditLogEntryUnknown.yaml new file mode 100644 index 00000000..f71397cf --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryUnknown.yaml @@ -0,0 +1,48 @@ +title: GroupAuditLogEntryUnknown +type: object +description: An event whose `eventType` has no schema of its own. +properties: + data: + $ref: ./GroupAuditLogEntryDataUnknown.yaml + eventType: + type: string + not: + enum: + - group.announcement + - group.calendarEvent.create + - group.calendarEvent.delete + - group.gallery.create + - group.gallery.delete + - group.gallery.update + - group.instance.announcement + - group.instance.close + - group.instance.create + - group.instance.kick + - group.instance.warn + - group.invite.cancel + - group.invite.create + - group.member.join + - group.member.leave + - group.member.remove + - group.member.role.assign + - group.member.role.unassign + - group.member.user.update + - group.post.create + - group.post.delete + - group.post.update + - group.request.block + - group.request.create + - group.request.reject + - group.request.withdraw + - group.role.create + - group.role.delete + - group.role.update + - group.update + - group.user.ban + - group.user.unban + targetId: + type: string +required: + - data + - eventType + - targetId diff --git a/openapi/components/schemas/GroupAuditLogEntryUserIdChange.yaml b/openapi/components/schemas/GroupAuditLogEntryUserIdChange.yaml new file mode 100644 index 00000000..3eabd3fe --- /dev/null +++ b/openapi/components/schemas/GroupAuditLogEntryUserIdChange.yaml @@ -0,0 +1,15 @@ +title: GroupAuditLogEntryUserIdChange +type: object +description: A user ID field's value before and after an update. +properties: + new: + anyOf: + - $ref: ./UserID.yaml + - type: "null" + old: + anyOf: + - $ref: ./UserID.yaml + - type: "null" +required: + - new + - old