Skip to content

Commit d58f677

Browse files
committed
Deploying to gh-pages from @ a6aa426 🚀
1 parent 07dc6dd commit d58f677

File tree

2 files changed

+200
-4
lines changed

2 files changed

+200
-4
lines changed

dist/openapi.yaml

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ paths:
475475
get:
476476
summary: Get Global Avatar Moderations
477477
operationId: getGlobalAvatarModerations
478-
description: Returns list of globally blocked avatars.
478+
description: Returns list of globally moderated avatars.
479479
tags:
480480
- authentication
481481
security:
@@ -485,6 +485,41 @@ paths:
485485
$ref: '#/components/responses/GetAvatarModerationsResponse'
486486
'401':
487487
$ref: '#/components/responses/MissingCredentialsError'
488+
post:
489+
summary: Create Global Avatar Moderation
490+
operationId: createGlobalAvatarModeration
491+
description: Globally moderates an avatar.
492+
requestBody:
493+
required: true
494+
content:
495+
application/json:
496+
schema:
497+
$ref: '#/components/schemas/CreateAvatarModerationRequest'
498+
tags:
499+
- authentication
500+
security:
501+
- authCookie: []
502+
responses:
503+
'200':
504+
$ref: '#/components/responses/CreateAvatarModerationResponse'
505+
'401':
506+
$ref: '#/components/responses/MissingCredentialsError'
507+
delete:
508+
summary: Delete Global Avatar Moderation
509+
operationId: deleteGlobalAvatarModeration
510+
description: Globally unmoderates an avatar.
511+
parameters:
512+
- $ref: '#/components/parameters/targetAvatarId'
513+
- $ref: '#/components/parameters/avatarModerationType'
514+
tags:
515+
- authentication
516+
security:
517+
- authCookie: []
518+
responses:
519+
'200':
520+
$ref: '#/components/responses/DeleteAvatarModerationResponse'
521+
'401':
522+
$ref: '#/components/responses/MissingCredentialsError'
488523
/users/{userId}/avatar:
489524
get:
490525
summary: Get Own Avatar
@@ -5423,6 +5458,43 @@ components:
54235458
- avatarModerationType
54245459
- created
54255460
- targetAvatarId
5461+
CreateAvatarModerationRequest:
5462+
title: CreateAvatarModerationRequest
5463+
type: object
5464+
properties:
5465+
targetAvatarId:
5466+
$ref: '#/components/schemas/AvatarID'
5467+
avatarModerationType:
5468+
$ref: '#/components/schemas/AvatarModerationType'
5469+
required:
5470+
- targetAvatarId
5471+
- avatarModerationType
5472+
AvatarModerationCreated:
5473+
title: AvatarModerationCreated
5474+
type: object
5475+
properties:
5476+
avatarModerationType:
5477+
$ref: '#/components/schemas/AvatarModerationType'
5478+
created:
5479+
type: integer
5480+
format: int64
5481+
description: Timestamp in milliseconds since Unix epoch
5482+
targetAvatarId:
5483+
$ref: '#/components/schemas/AvatarID'
5484+
required:
5485+
- avatarModerationType
5486+
- created
5487+
- targetAvatarId
5488+
OkStatus2:
5489+
title: OkStatus2
5490+
type: object
5491+
description: Another status response consisting of solely a string description of whether the result of an operation was ok.
5492+
properties:
5493+
OK:
5494+
type: string
5495+
description: The actual status itself
5496+
required:
5497+
- OK
54265498
ReleaseStatus:
54275499
type: string
54285500
default: public
@@ -12558,6 +12630,18 @@ components:
1255812630
type: array
1255912631
items:
1256012632
$ref: '#/components/schemas/AvatarModeration'
12633+
CreateAvatarModerationResponse:
12634+
description: Returns a single AvatarModerationCreated object
12635+
content:
12636+
application/json:
12637+
schema:
12638+
$ref: '#/components/schemas/AvatarModerationCreated'
12639+
DeleteAvatarModerationResponse:
12640+
description: Returns a single OkStatus2 object
12641+
content:
12642+
application/json:
12643+
schema:
12644+
$ref: '#/components/schemas/OkStatus2'
1256112645
AvatarResponse:
1256212646
description: Returns a single Avatar object.
1256312647
content:
@@ -14372,6 +14456,20 @@ components:
1437214456
schema:
1437314457
type: string
1437414458
description: Token to verify login attempt.
14459+
targetAvatarId:
14460+
name: targetAvatarId
14461+
in: query
14462+
required: true
14463+
schema:
14464+
$ref: '#/components/schemas/AvatarID'
14465+
description: Must be a valid avatar ID.
14466+
avatarModerationType:
14467+
name: avatarModerationType
14468+
in: query
14469+
required: true
14470+
schema:
14471+
$ref: '#/components/schemas/AvatarModerationType'
14472+
description: The avatar moderation type associated with the avatar.
1437514473
featured:
1437614474
name: featured
1437714475
in: query
@@ -14458,7 +14556,7 @@ components:
1445814556
in: path
1445914557
required: true
1446014558
schema:
14461-
type: string
14559+
$ref: '#/components/schemas/AvatarID'
1446214560
description: Must be a valid avatar ID.
1446314561
search:
1446414562
name: search

openapi.yaml

Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ paths:
475475
get:
476476
summary: Get Global Avatar Moderations
477477
operationId: getGlobalAvatarModerations
478-
description: Returns list of globally blocked avatars.
478+
description: Returns list of globally moderated avatars.
479479
tags:
480480
- authentication
481481
security:
@@ -485,6 +485,41 @@ paths:
485485
$ref: '#/components/responses/GetAvatarModerationsResponse'
486486
'401':
487487
$ref: '#/components/responses/MissingCredentialsError'
488+
post:
489+
summary: Create Global Avatar Moderation
490+
operationId: createGlobalAvatarModeration
491+
description: Globally moderates an avatar.
492+
requestBody:
493+
required: true
494+
content:
495+
application/json:
496+
schema:
497+
$ref: '#/components/schemas/CreateAvatarModerationRequest'
498+
tags:
499+
- authentication
500+
security:
501+
- authCookie: []
502+
responses:
503+
'200':
504+
$ref: '#/components/responses/CreateAvatarModerationResponse'
505+
'401':
506+
$ref: '#/components/responses/MissingCredentialsError'
507+
delete:
508+
summary: Delete Global Avatar Moderation
509+
operationId: deleteGlobalAvatarModeration
510+
description: Globally unmoderates an avatar.
511+
parameters:
512+
- $ref: '#/components/parameters/targetAvatarId'
513+
- $ref: '#/components/parameters/avatarModerationType'
514+
tags:
515+
- authentication
516+
security:
517+
- authCookie: []
518+
responses:
519+
'200':
520+
$ref: '#/components/responses/DeleteAvatarModerationResponse'
521+
'401':
522+
$ref: '#/components/responses/MissingCredentialsError'
488523
/users/{userId}/avatar:
489524
get:
490525
summary: Get Own Avatar
@@ -5423,6 +5458,43 @@ components:
54235458
- avatarModerationType
54245459
- created
54255460
- targetAvatarId
5461+
CreateAvatarModerationRequest:
5462+
title: CreateAvatarModerationRequest
5463+
type: object
5464+
properties:
5465+
targetAvatarId:
5466+
$ref: '#/components/schemas/AvatarID'
5467+
avatarModerationType:
5468+
$ref: '#/components/schemas/AvatarModerationType'
5469+
required:
5470+
- targetAvatarId
5471+
- avatarModerationType
5472+
AvatarModerationCreated:
5473+
title: AvatarModerationCreated
5474+
type: object
5475+
properties:
5476+
avatarModerationType:
5477+
$ref: '#/components/schemas/AvatarModerationType'
5478+
created:
5479+
type: integer
5480+
format: int64
5481+
description: Timestamp in milliseconds since Unix epoch
5482+
targetAvatarId:
5483+
$ref: '#/components/schemas/AvatarID'
5484+
required:
5485+
- avatarModerationType
5486+
- created
5487+
- targetAvatarId
5488+
OkStatus2:
5489+
title: OkStatus2
5490+
type: object
5491+
description: Another status response consisting of solely a string description of whether the result of an operation was ok.
5492+
properties:
5493+
OK:
5494+
type: string
5495+
description: The actual status itself
5496+
required:
5497+
- OK
54265498
ReleaseStatus:
54275499
type: string
54285500
default: public
@@ -12558,6 +12630,18 @@ components:
1255812630
type: array
1255912631
items:
1256012632
$ref: '#/components/schemas/AvatarModeration'
12633+
CreateAvatarModerationResponse:
12634+
description: Returns a single AvatarModerationCreated object
12635+
content:
12636+
application/json:
12637+
schema:
12638+
$ref: '#/components/schemas/AvatarModerationCreated'
12639+
DeleteAvatarModerationResponse:
12640+
description: Returns a single OkStatus2 object
12641+
content:
12642+
application/json:
12643+
schema:
12644+
$ref: '#/components/schemas/OkStatus2'
1256112645
AvatarResponse:
1256212646
description: Returns a single Avatar object.
1256312647
content:
@@ -14372,6 +14456,20 @@ components:
1437214456
schema:
1437314457
type: string
1437414458
description: Token to verify login attempt.
14459+
targetAvatarId:
14460+
name: targetAvatarId
14461+
in: query
14462+
required: true
14463+
schema:
14464+
$ref: '#/components/schemas/AvatarID'
14465+
description: Must be a valid avatar ID.
14466+
avatarModerationType:
14467+
name: avatarModerationType
14468+
in: query
14469+
required: true
14470+
schema:
14471+
$ref: '#/components/schemas/AvatarModerationType'
14472+
description: The avatar moderation type associated with the avatar.
1437514473
featured:
1437614474
name: featured
1437714475
in: query
@@ -14458,7 +14556,7 @@ components:
1445814556
in: path
1445914557
required: true
1446014558
schema:
14461-
type: string
14559+
$ref: '#/components/schemas/AvatarID'
1446214560
description: Must be a valid avatar ID.
1446314561
search:
1446414562
name: search

0 commit comments

Comments
 (0)