Repository navigation
Update Websocket types from docs #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
C0D3-M4513R
wants to merge
7
commits into
main
Choose a base branch
from
feature/update-ws-from-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
23f4028
Update Websocket types from docs
C0D3-M4513R 20170e3
Fix Lint
C0D3-M4513R 9fb290d
Fix Lint
C0D3-M4513R a3485be
Forgot to reference WebsocketUserUpdateUser. oops
C0D3-M4513R 4c43f44
Fix Lint
C0D3-M4513R 0556af0
Add instance-closed to WS types
C0D3-M4513R 41ca0fa
oops
C0D3-M4513R File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| title: WebsocketEconomyUpdate | ||
| type: object | ||
| properties: | ||
| dirtyPurchases: | ||
| type: boolean | ||
| required: | ||
| - dirtyPurchases | ||
14 changes: 14 additions & 0 deletions
14
openapi/components/schemas/WebsocketEconomyUpdateEncoded.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| title: WebsocketEconomyUpdateEncoded | ||
| type: object | ||
| properties: | ||
| content: | ||
| type: string | ||
| contentMediaType: application/json | ||
| contentSchema: | ||
| $ref: ./WebsocketEconomyUpdate.yaml | ||
| x-vrchat-double-encoding-type: WebsocketEconomyUpdate | ||
| type: | ||
| const: economy-update | ||
| required: | ||
| - content | ||
| - type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| title: WebsocketInstanceClosed | ||
| type: object | ||
| properties: | ||
| instanceLocation: | ||
| $ref: ./LocationID.yaml | ||
| required: | ||
| - instanceLocation |
14 changes: 14 additions & 0 deletions
14
openapi/components/schemas/WebsocketInstanceClosedEncoded.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| title: WebsocketInstanceClosedEncoded | ||
| type: object | ||
| properties: | ||
| content: | ||
| type: string | ||
| contentMediaType: application/json | ||
| contentSchema: | ||
| $ref: ./WebsocketInstanceClosed.yaml | ||
| x-vrchat-double-encoding-type: WebsocketInstanceClosed | ||
| type: | ||
| const: instance-closed | ||
| required: | ||
| - content | ||
| - type |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| title: WebsocketInstanceQueueJoined | ||
| type: object | ||
| properties: | ||
| location: | ||
| instanceLocation: | ||
| $ref: ./LocationID.yaml | ||
| position: | ||
| type: integer | ||
| required: | ||
| - location | ||
| - instanceLocation | ||
| - position |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| title: WebsocketMessageError | ||
| type: object | ||
| description: A websocket message, which indicates that some sort of error has occurred | ||
| additionalProperties: true | ||
| properties: | ||
| err: | ||
| type: string | ||
| required: | ||
| - err |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| title: WebsocketMessageUntyped | ||
| description: A websocket message whose `type` is unknown or missing | ||
| anyOf: | ||
| - $ref: ./WebsocketMessageError.yaml | ||
| - $ref: ./WebsocketMessageUnknown.yaml |
16 changes: 16 additions & 0 deletions
16
openapi/components/schemas/WebsocketModifiedImageUpdate.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| title: WebsocketModifiedImageUpdate | ||
| type: object | ||
| properties: | ||
| fileId: | ||
| $ref: ./FileID.yaml | ||
| needsProcessing: | ||
| type: boolean | ||
| pixelSize: | ||
| type: number | ||
| versionNumber: | ||
| type: number | ||
| required: | ||
| - fileId | ||
| - needsProcessing | ||
| - pixelSize | ||
| - versionNumber |
14 changes: 14 additions & 0 deletions
14
openapi/components/schemas/WebsocketModifiedImageUpdateEncoded.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| title: WebsocketModifiedImageUpdateEncoded | ||
| type: object | ||
| properties: | ||
| content: | ||
| type: string | ||
| contentMediaType: application/json | ||
| contentSchema: | ||
| $ref: ./WebsocketModifiedImageUpdate.yaml | ||
| x-vrchat-double-encoding-type: WebsocketModifiedImageUpdate | ||
| type: | ||
| const: modified-image-update | ||
| required: | ||
| - content | ||
| - type |
8 changes: 5 additions & 3 deletions
8
openapi/components/schemas/WebsocketNotificationV2Delete.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| title: WebsocketNotificationV2Delete | ||
| type: object | ||
| properties: | ||
| id: | ||
| $ref: ./NotificationID.yaml | ||
| ids: | ||
| type: array | ||
| items: | ||
| $ref: ./NotificationID.yaml | ||
| version: | ||
| type: integer | ||
| required: | ||
| - id | ||
| - ids | ||
| - version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| title: WebsocketUserUpdateUser | ||
|
C0D3-M4513R marked this conversation as resolved.
|
||
| type: object | ||
| properties: | ||
| bio: | ||
| type: string | ||
| currentAvatar: | ||
| $ref: ./AvatarID.yaml | ||
| currentAvatarImageUrl: | ||
| type: string | ||
| currentAvatarThumbnailImageUrl: | ||
| type: string | ||
| displayName: | ||
| type: string | ||
| fallbackAvatar: | ||
| $ref: ./AvatarID.yaml | ||
| id: | ||
| $ref: ./UserID.yaml | ||
| profilePicOverride: | ||
| type: string | ||
| status: | ||
| $ref: ./UserStatus.yaml | ||
| statusDescription: | ||
| type: string | ||
| tags: | ||
| type: array | ||
| items: | ||
| $ref: ./Tag.yaml | ||
| userIcon: | ||
| type: string | ||
| username: | ||
| type: string | ||
| required: | ||
| - bio | ||
| - currentAvatar | ||
| - currentAvatarImageUrl | ||
| - currentAvatarThumbnailImageUrl | ||
| - displayName | ||
| - fallbackAvatar | ||
| - id | ||
| - profilePicOverride | ||
| - status | ||
| - statusDescription | ||
| - tags | ||
| - userIcon | ||
| - username | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.