Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion openapi/components/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@
in: path
schema:
$ref: ./schemas/FavoriteType.yaml
favoriteGroupTypeQuery:
name: type
description: Filter the returned groups to a single favourite type.

Check notice on line 266 in openapi/components/parameters.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-typos

Unknown word: favourite, did you mean favorite, favorited, or favorites?
required: false
in: query
schema:
$ref: ./schemas/FavoriteType.yaml
favoriteId:
name: favoriteId
description: Must be a valid favorite ID.
Expand Down Expand Up @@ -301,12 +308,12 @@
in: query
schema:
$ref: ./schemas/UserID.yaml
fuzzy:
name: fuzzy
required: false
in: query
schema:
type: boolean

Check warning on line 316 in openapi/components/parameters.yaml

View workflow job for this annotation

GitHub Actions / lint

oas3-parameter-description

Parameter objects must have "description".
groupByDuration:
name: groupByDuration
description: Time bucket size for economy metrics. Observed values include `days` and `years`.
Expand Down Expand Up @@ -645,12 +652,12 @@
schema:
type: string
format: date-time
mostRecentFlag:
name: mostRecent
required: false
in: query
schema:
type: boolean

Check warning on line 660 in openapi/components/parameters.yaml

View workflow job for this annotation

GitHub Actions / lint

oas3-parameter-description

Parameter objects must have "description".
noplatform:
name: noplatform
description: The platform the asset does not support.
Expand Down Expand Up @@ -783,7 +790,7 @@
type: string
sellerId:
name: sellerId
description: Seller to retrieve economy metrics for.
description: Seller to scope the results to.
required: true
in: query
schema:
Expand Down Expand Up @@ -818,6 +825,13 @@
in: query
schema:
$ref: ./schemas/SortOptionProductPurchase.yaml
ssoProvider:
name: provider
description: The third-party service to mint a token for.
required: true
in: path
schema:
$ref: ./schemas/SsoProvider.yaml
startDate:
name: startDate
description: The start date of the search range.
Expand All @@ -834,18 +848,18 @@
schema:
type: string
example: game night
storeId:
name: storeId
required: true
in: query
schema:
$ref: ./schemas/StoreID.yaml

Check warning on line 856 in openapi/components/parameters.yaml

View workflow job for this annotation

GitHub Actions / lint

oas3-parameter-description

Parameter objects must have "description".
storeView:
name: fetch
required: false
in: query
schema:
$ref: ./schemas/StoreView.yaml

Check warning on line 862 in openapi/components/parameters.yaml

View workflow job for this annotation

GitHub Actions / lint

oas3-parameter-description

Parameter objects must have "description".
submitterId:
name: submitterId
description: Must be a valid user ID.
Expand Down
8 changes: 6 additions & 2 deletions openapi/components/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@
$ref: "./paths/notifications.yaml#/paths/~1notifications~1{notificationId}~1respond"
"/notifications/{notificationId}/see":
$ref: "./paths/notifications.yaml#/paths/~1notifications~1{notificationId}~1see"
/oauth/redirectCode:
$ref: "./paths/authentication.yaml#/paths/~1oauth~1redirectCode"
/permissions:
$ref: "./paths/miscellaneous.yaml#/paths/~1permissions"
"/permissions/{permissionId}":
Expand Down Expand Up @@ -344,6 +346,8 @@
$ref: "./paths/invite.yaml#/paths/~1requestInvite~1{userId}~1photo"
/reward/redeem:
$ref: "./paths/inventory.yaml#/paths/~1reward~1redeem"
"/sso/{provider}":
$ref: "./paths/authentication.yaml#/paths/~1sso~1{provider}"
/subscriptions:
$ref: "./paths/economy.yaml#/paths/~1subscriptions"
/tilia/status:
Expand Down Expand Up @@ -458,13 +462,13 @@
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}"
"/worlds/{worldId}/addTags":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1addTags"
"/worlds/{worldId}/deleteTags":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1deleteTags"
"/worlds/{worldId}/metadata":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1metadata"
"/worlds/{worldId}/platform/{publishedPlatform}":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1platform~1{publishedPlatform}"
"/worlds/{worldId}/publish":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1publish"
"/worlds/{worldId}/removeTags":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1removeTags"
"/worlds/{worldId}/{instanceId}":
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1{instanceId}"
32 changes: 32 additions & 0 deletions openapi/components/paths/authentication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
$ref: ../responses/MissingCredentialsError.yaml
/auth/twofactorauth:
delete:
operationId: disable2FA

Check notice on line 82 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to disable2Fa.
summary: Disable 2FA
description: Disables 2FA for the currently logged in account
tags:
Expand All @@ -93,7 +93,7 @@
$ref: ../responses/MissingCredentialsError.yaml
/auth/twofactorauth/emailotp/verify:
post:
operationId: verify2FAEmailCode

Check notice on line 96 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to verify2FaEmailCode.
summary: Verify 2FA email code
description: Finishes the login sequence with an 2FA email code.
tags:
Expand Down Expand Up @@ -136,7 +136,7 @@
$ref: ../responses/MissingCredentialsError.yaml
/auth/twofactorauth/totp/pending:
delete:
operationId: cancelPending2FA

Check notice on line 139 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to cancelPending2Fa.
summary: Cancel pending enabling of time-based 2FA codes
description: Cancels the sequence for enabling time-based 2FA.
tags:
Expand All @@ -150,7 +150,7 @@
"401":
$ref: ../responses/MissingCredentialsError.yaml
post:
operationId: enable2FA

Check notice on line 153 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to enable2Fa.
summary: Enable time-based 2FA codes
description: Begins the sequence for enabling time-based 2FA.
tags:
Expand All @@ -165,7 +165,7 @@
$ref: ../responses/MissingCredentialsError.yaml
/auth/twofactorauth/totp/pending/verify:
post:
operationId: verifyPending2FA

Check notice on line 168 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to verifyPending2Fa.
summary: Verify Pending 2FA code
description: Finishes sequence for enabling time-based 2FA.
tags:
Expand All @@ -187,7 +187,7 @@
$ref: ../responses/MissingCredentialsError.yaml
/auth/twofactorauth/totp/verify:
post:
operationId: verify2FA

Check notice on line 190 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Consider renaming to verify2Fa.
summary: Verify 2FA code
description: Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
tags:
Expand Down Expand Up @@ -252,7 +252,7 @@
"401":
$ref: ../responses/MissingCredentialsError.yaml
get:
operationId: getGlobalAvatarModerations

Check notice on line 255 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Operation returns an array, consider renaming to listGlobalAvatarModerations.
summary: Get Global Avatar Moderations
description: Returns list of globally moderated avatars.
tags:
Expand Down Expand Up @@ -399,6 +399,38 @@
$ref: ../responses/MissingCredentialsError.yaml
"403":
$ref: ../responses/InvalidAdminCredentialsError.yaml
/oauth/redirectCode:
get:
operationId: getOAuthRedirectCode
summary: Get OAuth Redirect Code
description: Mints a short-lived code that hands the current session to an OAuth redirect.
tags:
- authentication
security:
- authCookie: []
responses:
"200":
$ref: ../responses/authentication/OAuthRedirectCodeResponse.yaml
"401":
$ref: ../responses/MissingCredentialsError.yaml
"/sso/{provider}":
parameters:
- $ref: ../parameters.yaml#/ssoProvider
get:
operationId: getSsoToken
summary: Get SSO Token
description: Returns a token for the given third-party service.
tags:
- authentication
security:
- authCookie: []
responses:
"200":
$ref: ../responses/authentication/SsoTokenResponse.yaml
"400":
$ref: ../responses/authentication/SsoProviderUnsupportedError.yaml
"401":
$ref: ../responses/MissingCredentialsError.yaml
"/users/{userId}/delete":
parameters:
- $ref: ../parameters.yaml#/userId
Expand All @@ -416,8 +448,8 @@
security:
- authCookie: []
responses:
"200":
$ref: ../responses/authentication/DeleteUserResponse.yaml

Check warning on line 452 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-title

Schema must have a non-empty title.

Check warning on line 452 in openapi/components/paths/authentication.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-description

Cannot be empty.
"401":
$ref: ../responses/MissingCredentialsError.yaml
components:
Expand Down
18 changes: 13 additions & 5 deletions openapi/components/paths/avatars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
paths:
/avatarStyles:
get:
operationId: getAvatarStyles

Check notice on line 9 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Operation returns an array, consider renaming to listAvatarStyles.
summary: Get Avatar Styles
description: List avatar styles.
tags:
Expand All @@ -16,9 +16,11 @@
$ref: ../responses/avatars/AvatarStyleListResponse.yaml
/avatars:
get:
operationId: searchAvatars

Check notice on line 19 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-operation-id

Operation returns an array, consider renaming to listAvatars.
summary: Search Avatars
description: Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
description: Search and list avatars by query filters. You can only search your
own or featured avatars. It is not possible as a normal user to search
other peoples avatars.
tags:
- avatars
parameters:
Expand Down Expand Up @@ -53,7 +55,9 @@
post:
operationId: createAvatar
summary: Create Avatar
description: Create an avatar. It's possible to optionally specify a ID if you want a custom one. Attempting to create an Avatar with an already claimed ID will result in a DB error.
description: Create an avatar. It's possible to optionally specify a ID if you
want a custom one. Attempting to create an Avatar with an already
claimed ID will result in a DB error.
tags:
- avatars
requestBody:
Expand Down Expand Up @@ -143,8 +147,8 @@
security:
- authCookie: []
responses:
"200":
$ref: ../responses/avatars/AvatarResponse.yaml

Check warning on line 151 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-title

Schema must have a non-empty title.

Check warning on line 151 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-description

Cannot be empty.
"401":
$ref: ../responses/MissingCredentialsError.yaml
"404":
Expand All @@ -158,21 +162,25 @@
requestBody:
content:
application/json:
schema:
$ref: ../requests/UpdateAvatarRequest.yaml

Check warning on line 166 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-description

Cannot be empty.
security:
- authCookie: []
responses:
"200":
$ref: ../responses/avatars/AvatarResponse.yaml

Check warning on line 171 in openapi/components/paths/avatars.yaml

View workflow job for this annotation

GitHub Actions / lint

vrc-description

Cannot be empty.
"400":
$ref: ../responses/RequestValidationError.yaml
"401":
$ref: ../responses/MissingCredentialsError.yaml
"404":
$ref: ../responses/avatars/AvatarNotFoundError.yaml
delete:
operationId: deleteAvatar
summary: Delete Avatar
description: 'Delete an avatar. Notice an avatar is never fully "deleted", only its ReleaseStatus is set to "hidden" and the linked Files are deleted. The AvatarID is permanently reserved.'
description: 'Delete an avatar. Notice an avatar is never fully "deleted", only
its ReleaseStatus is set to "hidden" and the linked Files are deleted.
The AvatarID is permanently reserved.'
tags:
- avatars
security:
Expand Down Expand Up @@ -243,7 +251,6 @@
- $ref: ../parameters.yaml#/avatarId
put:
operationId: selectFallbackAvatar
deprecated: true
summary: Select Fallback Avatar
description: Switches into that avatar as your fallback avatar.
tags:
Expand All @@ -265,7 +272,8 @@
get:
operationId: getOwnAvatar
summary: Get Own Avatar
description: Get the current avatar for the user. This will return an error for any other user than the one logged in.
description: Get the current avatar for the user. This will return an error for
any other user than the one logged in.
tags:
- avatars
security:
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/paths/calendar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ paths:
- $ref: ../parameters.yaml#/number
- $ref: ../parameters.yaml#/calendarDiscoveryNextCursor
security:
- {}
- authCookie: []
responses:
"200":
Expand All @@ -64,6 +65,7 @@ paths:
- $ref: ../parameters.yaml#/number
- $ref: ../parameters.yaml#/offset
security:
- {}
- authCookie: []
responses:
"200":
Expand Down
Loading
Loading