Skip to content

Commit

Permalink
Update schema CurrentUser, added schema CurrentUserPresence (vrchatap…
Browse files Browse the repository at this point in the history
…i#246)

* Update schema CurrentUser, added schema CurrentUserPresence

* Updated CurrentUserPresence properties referring to instances
  • Loading branch information
VinyarionHyarmendacil authored Jun 10, 2023
1 parent a60908e commit 21de7a6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ properties:
minimum: 0
example: 7
type: integer
acceptedPrivacyVersion:
minimum: 0
example: 0
type: integer
accountDeletionDate:
format: date
nullable: true
Expand Down Expand Up @@ -73,6 +77,9 @@ properties:
isFriend:
default: false
type: boolean
last_activity:
format: date-time
type: string
last_login:
format: date-time
type: string
Expand All @@ -97,6 +104,8 @@ properties:
items:
$ref: ./PastDisplayName.yaml
type: array
presence:
$ref: ./CurrentUserPresence.yaml
profilePicOverride:
type: string
state:
Expand Down Expand Up @@ -127,6 +136,9 @@ properties:
type: string
unsubscribe:
type: boolean
updated_at:
format: date-time
type: string
userIcon:
type: string
username:
Expand Down
41 changes: 41 additions & 0 deletions openapi/components/schemas/CurrentUserPresence.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 21de7a6

Please sign in to comment.