From 21de7a6098d0b083239098e46ddd0702aaf17153 Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Sat, 10 Jun 2023 17:42:24 -0500 Subject: [PATCH] Update schema CurrentUser, added schema CurrentUserPresence (#246) * Update schema CurrentUser, added schema CurrentUserPresence * Updated CurrentUserPresence properties referring to instances --- openapi/components/schemas/CurrentUser.yaml | 12 ++++++ .../schemas/CurrentUserPresence.yaml | 41 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 openapi/components/schemas/CurrentUserPresence.yaml diff --git a/openapi/components/schemas/CurrentUser.yaml b/openapi/components/schemas/CurrentUser.yaml index 5bfe61a5..5f8a47b3 100644 --- a/openapi/components/schemas/CurrentUser.yaml +++ b/openapi/components/schemas/CurrentUser.yaml @@ -3,6 +3,10 @@ properties: minimum: 0 example: 7 type: integer + acceptedPrivacyVersion: + minimum: 0 + example: 0 + type: integer accountDeletionDate: format: date nullable: true @@ -73,6 +77,9 @@ properties: isFriend: default: false type: boolean + last_activity: + format: date-time + type: string last_login: format: date-time type: string @@ -97,6 +104,8 @@ properties: items: $ref: ./PastDisplayName.yaml type: array + presence: + $ref: ./CurrentUserPresence.yaml profilePicOverride: type: string state: @@ -127,6 +136,9 @@ properties: type: string unsubscribe: type: boolean + updated_at: + format: date-time + type: string userIcon: type: string username: diff --git a/openapi/components/schemas/CurrentUserPresence.yaml b/openapi/components/schemas/CurrentUserPresence.yaml new file mode 100644 index 00000000..262f25a0 --- /dev/null +++ b/openapi/components/schemas/CurrentUserPresence.yaml @@ -0,0 +1,41 @@ +title: CurrentUserPresence +type: object +properties: + avatarThumbnail: + type: string + nullable: true + displayName: + type: string + groups: + type: array + nullable: true + items: + $ref: ./GroupID.yaml + id: + $ref: ./UserID.yaml + instance: + type: string + nullable: true + instanceType: + $ref: ./InstanceType.yaml + nullable: true + isRejoining: + type: string + nullable: true + platform: + $ref: ./Platform.yaml + nullable: true + profilePicOverride: + type: string + nullable: true + status: + $ref: ./UserStatus.yaml + travelingToInstance: + type: string + nullable: true + travelingToWorld: + $ref: ./WorldID.yaml + nullable: true + world: + $ref: ./WorldID.yaml + nullable: true