From 5ec15c75dc34a23d17409c9e278c7c2210147c3d Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Fri, 16 May 2025 19:46:15 -0500 Subject: [PATCH 1/4] Avatar and Tilia updates and fixes Addresses #60 and #125 --- openapi/components/paths/avatars.yaml | 2 ++ openapi/components/requests/CreateAvatarRequest.yaml | 11 +++++++++++ .../avatars/UnableToCreateAvatarNowError.yaml | 11 +++++++++++ openapi/components/schemas/Avatar.yaml | 3 +++ openapi/components/schemas/LimitedWorld.yaml | 2 ++ openapi/components/schemas/LocalDateTime.yaml | 4 ++++ openapi/components/schemas/StoreID.yaml | 3 +++ openapi/components/schemas/TiliaStatus.yaml | 8 ++++++++ openapi/components/schemas/World.yaml | 2 ++ 9 files changed, 46 insertions(+) create mode 100644 openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml create mode 100644 openapi/components/schemas/LocalDateTime.yaml create mode 100644 openapi/components/schemas/StoreID.yaml 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/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..46bed963 --- /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 From fb0255aa90b3444a90e6714dff108238411b2861 Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Fri, 16 May 2025 19:48:14 -0500 Subject: [PATCH 2/4] Update UnableToCreateAvatarNowError.yaml --- .../responses/avatars/UnableToCreateAvatarNowError.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml b/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml index 46bed963..a60178bb 100644 --- a/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml +++ b/openapi/components/responses/avatars/UnableToCreateAvatarNowError.yaml @@ -2,7 +2,7 @@ description: Error response due to missing permissions. content: application/json: schema: - $ref: ../schemas/Error.yaml + $ref: ../../schemas/Error.yaml examples: Unable To Create Avatar Now Example: value: From 53cce0111d5aefb2182bec98e65d905695a9653f Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Fri, 16 May 2025 21:57:25 -0500 Subject: [PATCH 3/4] Add animated emoji upload properties --- openapi/components/paths/files.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openapi/components/paths/files.yaml b/openapi/components/paths/files.yaml index b5c32c33..24d77f7b 100644 --- a/openapi/components/paths/files.yaml +++ b/openapi/components/paths/files.yaml @@ -317,7 +317,17 @@ 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 + minValue: 2 + maxValue: 64 + description: Required for emojianimated. Total number of frames to be animated + framesOverTime: + type: integer + minValue: 1 + maxValue: 64 + description: Required for emojianimated. Animation frames per second animationStyle: type: string example: bats From 4ac4e019369b740be3b40713973c9a113e359ed9 Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Fri, 16 May 2025 21:59:31 -0500 Subject: [PATCH 4/4] Update files.yaml --- openapi/components/paths/files.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/openapi/components/paths/files.yaml b/openapi/components/paths/files.yaml index 24d77f7b..1fae8e40 100644 --- a/openapi/components/paths/files.yaml +++ b/openapi/components/paths/files.yaml @@ -320,14 +320,10 @@ paths: description: Needs to be either icon, gallery, sticker, emoji, or emojianimated frames: type: integer - minValue: 2 - maxValue: 64 - description: Required for emojianimated. Total number of frames to be animated + description: Required for emojianimated. Total number of frames to be animated (2-64) framesOverTime: type: integer - minValue: 1 - maxValue: 64 - description: Required for emojianimated. Animation frames per second + description: Required for emojianimated. Animation frames per second (1-64) animationStyle: type: string example: bats