diff --git a/openapi/components/paths/avatars.yaml b/openapi/components/paths/avatars.yaml index e2b29139..cd77bb08 100644 --- a/openapi/components/paths/avatars.yaml +++ b/openapi/components/paths/avatars.yaml @@ -122,6 +122,8 @@ paths: responses: '200': $ref: ../responses/avatars/AvatarResponse.yaml + '400': + $ref: ../responses/avatars/UnableToCreateAvatarNowError.yaml '401': $ref: ../responses/FeaturedSetNotAdminError.yaml tags: diff --git a/openapi/components/paths/files.yaml b/openapi/components/paths/files.yaml index b5c32c33..1fae8e40 100644 --- a/openapi/components/paths/files.yaml +++ b/openapi/components/paths/files.yaml @@ -317,7 +317,13 @@ paths: description: The binary blob of the png file. tag: type: string - description: Needs to be either icon, gallery, sticker or emoji + description: Needs to be either icon, gallery, sticker, emoji, or emojianimated + frames: + type: integer + description: Required for emojianimated. Total number of frames to be animated (2-64) + framesOverTime: + type: integer + description: Required for emojianimated. Animation frames per second (1-64) animationStyle: type: string example: bats diff --git a/openapi/components/requests/CreateAvatarRequest.yaml b/openapi/components/requests/CreateAvatarRequest.yaml index 711c6617..e1c4c123 100644 --- a/openapi/components/requests/CreateAvatarRequest.yaml +++ b/openapi/components/requests/CreateAvatarRequest.yaml @@ -3,6 +3,14 @@ type: object properties: assetUrl: type: string + assetVersion: + type: string + platform: + $ref: ../schemas/Platform.yaml + created_at: + $ref: ../schemas/LocalDateTime.yaml + updated_at: + $ref: ../schemas/LocalDateTime.yaml id: $ref: ../schemas/AvatarID.yaml name: @@ -19,6 +27,9 @@ properties: imageUrl: type: string minLength: 1 + thumbnailImageUrl: + type: string + minLength: 1 releaseStatus: $ref: ../schemas/ReleaseStatus.yaml version: diff --git a/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml b/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml new file mode 100644 index 00000000..a60178bb --- /dev/null +++ b/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml @@ -0,0 +1,11 @@ +description: Error response due to missing permissions. +content: + application/json: + schema: + $ref: ../../schemas/Error.yaml + examples: + Unable To Create Avatar Now Example: + value: + error: + message: "You can't create an avatar right now" + status_code: 400 diff --git a/openapi/components/schemas/Avatar.yaml b/openapi/components/schemas/Avatar.yaml index 49cd5306..3da66ef2 100644 --- a/openapi/components/schemas/Avatar.yaml +++ b/openapi/components/schemas/Avatar.yaml @@ -33,6 +33,9 @@ properties: type: string releaseStatus: $ref: ./ReleaseStatus.yaml + searchable: + type: boolean + default: false styles: type: object properties: diff --git a/openapi/components/schemas/LimitedWorld.yaml b/openapi/components/schemas/LimitedWorld.yaml index b50a746a..e9463d5b 100644 --- a/openapi/components/schemas/LimitedWorld.yaml +++ b/openapi/components/schemas/LimitedWorld.yaml @@ -66,6 +66,8 @@ properties: type: string releaseStatus: $ref: ./ReleaseStatus.yaml + storeId: + $ref: ./StoreID.yaml tags: description: ' ' items: diff --git a/openapi/components/schemas/LocalDateTime.yaml b/openapi/components/schemas/LocalDateTime.yaml new file mode 100644 index 00000000..6b14d86a --- /dev/null +++ b/openapi/components/schemas/LocalDateTime.yaml @@ -0,0 +1,4 @@ +title: LocalDateTime +type: string +description: 'A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`)' +example: '12/12/2021 1:23:43 AM' diff --git a/openapi/components/schemas/StoreID.yaml b/openapi/components/schemas/StoreID.yaml new file mode 100644 index 00000000..0bae5277 --- /dev/null +++ b/openapi/components/schemas/StoreID.yaml @@ -0,0 +1,3 @@ +example: esto_713b247d-2b5d-41a0-bba3-50db28dc1498 +title: StoreID +type: string diff --git a/openapi/components/schemas/TiliaStatus.yaml b/openapi/components/schemas/TiliaStatus.yaml index edc56d66..0180db56 100644 --- a/openapi/components/schemas/TiliaStatus.yaml +++ b/openapi/components/schemas/TiliaStatus.yaml @@ -4,5 +4,13 @@ title: TiliaStatus properties: economyOnline: type: boolean + economyState: + type: integer + plannedOfflineWindowStart: + type: string + format: date-time + plannedOfflineWindowEnd: + type: string + format: date-time required: - economyOnline diff --git a/openapi/components/schemas/World.yaml b/openapi/components/schemas/World.yaml index a2e5e783..10df0da2 100644 --- a/openapi/components/schemas/World.yaml +++ b/openapi/components/schemas/World.yaml @@ -92,6 +92,8 @@ properties: type: string releaseStatus: $ref: ./ReleaseStatus.yaml + storeId: + $ref: ./StoreID.yaml tags: description: ' ' type: array