Skip to content

Commit 39d1ddc

Browse files
authored
feat: add /auth/user/avatarmoderations (#503)
* feat: add /auth/user/avatarmoderations * feat: improve wording
1 parent 5473b5b commit 39d1ddc

5 files changed

Lines changed: 74 additions & 32 deletions

File tree

openapi/components/paths.yaml

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@
3636
$ref: "./paths/authentication.yaml#/paths/~1auth~1confirmEmail"
3737
"/auth/verifyLoginPlace":
3838
$ref: "./paths/authentication.yaml#/paths/~1auth~1verifyLoginPlace"
39+
"/auth/user/avatarmoderations":
40+
$ref: "./paths/authentication.yaml#/paths/~1auth~1user~1avatarmoderations"
3941

4042
# avatars
4143

42-
'/users/{userId}/avatar':
44+
"/users/{userId}/avatar":
4345
$ref: "./paths/avatars.yaml#/paths/~1users~1{userId}~1avatar"
4446
"/avatars":
4547
$ref: "./paths/avatars.yaml#/paths/~1avatars"
@@ -64,66 +66,66 @@
6466

6567
# calendar
6668

67-
'/calendar':
69+
"/calendar":
6870
$ref: "./paths/calendar.yaml#/paths/~1calendar"
69-
'/calendar/featured':
71+
"/calendar/featured":
7072
$ref: "./paths/calendar.yaml#/paths/~1calendar~1featured"
71-
'/calendar/following':
73+
"/calendar/following":
7274
$ref: "./paths/calendar.yaml#/paths/~1calendar~1following"
73-
'/calendar/search':
75+
"/calendar/search":
7476
$ref: "./paths/calendar.yaml#/paths/~1calendar~1search"
75-
'/calendar/{groupId}':
77+
"/calendar/{groupId}":
7678
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}"
77-
'/calendar/{groupId}/event':
79+
"/calendar/{groupId}/event":
7880
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}~1event"
79-
'/calendar/{groupId}/{calendarId}':
81+
"/calendar/{groupId}/{calendarId}":
8082
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}~1{calendarId}"
81-
'/calendar/{groupId}/{calendarId}.ics':
83+
"/calendar/{groupId}/{calendarId}.ics":
8284
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}~1{calendarId}.ics"
83-
'/calendar/{groupId}/{calendarId}/event':
85+
"/calendar/{groupId}/{calendarId}/event":
8486
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}~1{calendarId}~1event"
85-
'/calendar/{groupId}/{calendarId}/follow':
87+
"/calendar/{groupId}/{calendarId}/follow":
8688
$ref: "./paths/calendar.yaml#/paths/~1calendar~1{groupId}~1{calendarId}~1follow"
8789

8890
# economy
8991

90-
'/Steam/transactions':
92+
"/Steam/transactions":
9193
$ref: "./paths/economy.yaml#/paths/~1Steam~1transactions"
92-
'/Steam/transactions/{transactionId}':
94+
"/Steam/transactions/{transactionId}":
9395
$ref: "./paths/economy.yaml#/paths/~1Steam~1transactions~1{transactionId}"
94-
'/Admin/transactions':
96+
"/Admin/transactions":
9597
$ref: "./paths/economy.yaml#/paths/~1Admin~1transactions"
96-
'/Admin/transactions/{transactionId}':
98+
"/Admin/transactions/{transactionId}":
9799
$ref: "./paths/economy.yaml#/paths/~1Admin~1transactions~1{transactionId}"
98-
'/auth/user/subscription':
100+
"/auth/user/subscription":
99101
$ref: "./paths/economy.yaml#/paths/~1auth~1user~1subscription"
100-
'/users/{userId}/subscription/eligible':
102+
"/users/{userId}/subscription/eligible":
101103
$ref: "./paths/economy.yaml#/paths/~1users~1{userId}~1subscription~1eligible"
102-
'/subscriptions':
104+
"/subscriptions":
103105
$ref: "./paths/economy.yaml#/paths/~1subscriptions"
104-
'/licenseGroups/{licenseGroupId}':
106+
"/licenseGroups/{licenseGroupId}":
105107
$ref: "./paths/economy.yaml#/paths/~1licenseGroups~1{licenseGroupId}"
106-
'/listing/{productId}':
108+
"/listing/{productId}":
107109
$ref: "./paths/economy.yaml#/paths/~1listing~1{productId}"
108-
'/user/{userId}/listings':
110+
"/user/{userId}/listings":
109111
$ref: "./paths/economy.yaml#/paths/~1user~1{userId}~1listings"
110-
'/tokenBundles':
112+
"/tokenBundles":
111113
$ref: "./paths/economy.yaml#/paths/~1tokenBundles"
112-
'/tilia/status':
114+
"/tilia/status":
113115
$ref: "./paths/economy.yaml#/paths/~1tilia~1status"
114-
'/user/{userId}/tilia/tos':
116+
"/user/{userId}/tilia/tos":
115117
$ref: "./paths/economy.yaml#/paths/~1user~1{userId}~1tilia~1tos"
116-
'/user/{userId}/balance':
118+
"/user/{userId}/balance":
117119
$ref: "./paths/economy.yaml#/paths/~1user~1{userId}~1balance"
118-
'/user/{userId}/balance/earnings':
120+
"/user/{userId}/balance/earnings":
119121
$ref: "./paths/economy.yaml#/paths/~1user~1{userId}~1balance~1earnings"
120-
'/user/{userId}/economy/account':
122+
"/user/{userId}/economy/account":
121123
$ref: "./paths/economy.yaml#/paths/~1user~1{userId}~1economy~1account"
122-
'/economy/licenses/active':
124+
"/economy/licenses/active":
123125
$ref: "./paths/economy.yaml#/paths/~1economy~1licenses~1active"
124-
'/economy/store':
126+
"/economy/store":
125127
$ref: "./paths/economy.yaml#/paths/~1economy~1store"
126-
'/economy/store/shelves':
128+
"/economy/store/shelves":
127129
$ref: "./paths/economy.yaml#/paths/~1economy~1store~1shelves"
128130

129131
# favorites
@@ -217,9 +219,9 @@
217219
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1leave"
218220
"/groups/{groupId}/members":
219221
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1members"
220-
'/groups/{groupId}/members/{userId}':
222+
"/groups/{groupId}/members/{userId}":
221223
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1members~1{userId}"
222-
'/groups/{groupId}/members/{userId}/roles/{groupRoleId}':
224+
"/groups/{groupId}/members/{userId}/roles/{groupRoleId}":
223225
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1members~1{userId}~1roles~1{groupRoleId}"
224226
"/groups/{groupId}/permissions":
225227
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1permissions"

openapi/components/paths/authentication.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,20 @@ paths:
167167
- authentication
168168
security:
169169
- authCookie: []
170+
/auth/user/avatarmoderations:
171+
get:
172+
summary: Get Global Avatar Moderations
173+
operationId: getGlobalAvatarModerations
174+
description: Returns list of globally blocked avatars.
175+
tags:
176+
- authentication
177+
security:
178+
- authCookie: []
179+
responses:
180+
'200':
181+
$ref: ../responses/authentication/GetAvatarModerationsResponse.yaml
182+
'401':
183+
$ref: ../responses/MissingCredentialsError.yaml
170184
/auth/twofactorauth/otp/verify:
171185
post:
172186
summary: Verify 2FA code with Recovery code
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
description: Returns list of globally blocked avatars with timestamps
2+
content:
3+
application/json:
4+
schema:
5+
type: array
6+
items:
7+
$ref: ../../schemas/AvatarModeration.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title: AvatarModeration
2+
type: object
3+
properties:
4+
avatarModerationType:
5+
$ref: ./AvatarModerationType.yaml
6+
created:
7+
type: string
8+
format: date-time
9+
targetAvatarId:
10+
$ref: ./AvatarID.yaml
11+
required:
12+
- avatarModerationType
13+
- created
14+
- targetAvatarId
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: AvatarModerationType
2+
type: string
3+
enum:
4+
- block
5+
example: block

0 commit comments

Comments
 (0)