@f3liz/rescript-misskey-api 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
- package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
- package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
|
@@ -48,17 +48,14 @@ No description provided.
|
|
|
48
48
|
|
|
49
49
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
50
50
|
*/
|
|
51
|
-
let postAdminAbuseReportResolverCreate = (~body: postAdminAbuseReportResolverCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
51
|
+
let postAdminAbuseReportResolverCreate = async (~body: postAdminAbuseReportResolverCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverCreateResponse => {
|
|
52
52
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverCreateRequestSchema)
|
|
53
|
-
fetch(
|
|
53
|
+
let response = await fetch(
|
|
54
54
|
~url="/admin/abuse-report-resolver/create",
|
|
55
55
|
~method_="POST",
|
|
56
56
|
~body=Some(jsonBody),
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
value
|
|
60
|
-
->Promise.resolve
|
|
61
|
-
})
|
|
57
|
+
)
|
|
58
|
+
response->S.parseOrThrow(postAdminAbuseReportResolverCreateResponseSchema)
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
type postAdminAbuseReportResolverDeleteRequest = {
|
|
@@ -78,17 +75,14 @@ No description provided.
|
|
|
78
75
|
|
|
79
76
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
80
77
|
*/
|
|
81
|
-
let postAdminAbuseReportResolverDelete = (~body: postAdminAbuseReportResolverDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
78
|
+
let postAdminAbuseReportResolverDelete = async (~body: postAdminAbuseReportResolverDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverDeleteResponse => {
|
|
82
79
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverDeleteRequestSchema)
|
|
83
|
-
fetch(
|
|
80
|
+
let response = await fetch(
|
|
84
81
|
~url="/admin/abuse-report-resolver/delete",
|
|
85
82
|
~method_="POST",
|
|
86
83
|
~body=Some(jsonBody),
|
|
87
|
-
)
|
|
84
|
+
)
|
|
88
85
|
let _ = response
|
|
89
|
-
()
|
|
90
|
-
->Promise.resolve
|
|
91
|
-
})
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
type postAdminAbuseReportResolverListRequest = {
|
|
@@ -132,17 +126,14 @@ No description provided.
|
|
|
132
126
|
|
|
133
127
|
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report-resolvers*
|
|
134
128
|
*/
|
|
135
|
-
let postAdminAbuseReportResolverList = (~body: postAdminAbuseReportResolverListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
129
|
+
let postAdminAbuseReportResolverList = async (~body: postAdminAbuseReportResolverListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverListResponse => {
|
|
136
130
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverListRequestSchema)
|
|
137
|
-
fetch(
|
|
131
|
+
let response = await fetch(
|
|
138
132
|
~url="/admin/abuse-report-resolver/list",
|
|
139
133
|
~method_="POST",
|
|
140
134
|
~body=Some(jsonBody),
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
value
|
|
144
|
-
->Promise.resolve
|
|
145
|
-
})
|
|
135
|
+
)
|
|
136
|
+
response->S.parseOrThrow(postAdminAbuseReportResolverListResponseSchema)
|
|
146
137
|
}
|
|
147
138
|
|
|
148
139
|
type postAdminAbuseReportResolverUpdateRequest = {
|
|
@@ -174,17 +165,14 @@ No description provided.
|
|
|
174
165
|
|
|
175
166
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
176
167
|
*/
|
|
177
|
-
let postAdminAbuseReportResolverUpdate = (~body: postAdminAbuseReportResolverUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
168
|
+
let postAdminAbuseReportResolverUpdate = async (~body: postAdminAbuseReportResolverUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverUpdateResponse => {
|
|
178
169
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverUpdateRequestSchema)
|
|
179
|
-
fetch(
|
|
170
|
+
let response = await fetch(
|
|
180
171
|
~url="/admin/abuse-report-resolver/update",
|
|
181
172
|
~method_="POST",
|
|
182
173
|
~body=Some(jsonBody),
|
|
183
|
-
)
|
|
174
|
+
)
|
|
184
175
|
let _ = response
|
|
185
|
-
()
|
|
186
|
-
->Promise.resolve
|
|
187
|
-
})
|
|
188
176
|
}
|
|
189
177
|
|
|
190
178
|
type postAdminAbuseReportNotificationRecipientCreateRequest = {
|
|
@@ -215,17 +203,14 @@ No description provided.
|
|
|
215
203
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
216
204
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
217
205
|
*/
|
|
218
|
-
let postAdminAbuseReportNotificationRecipientCreate = (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
206
|
+
let postAdminAbuseReportNotificationRecipientCreate = async (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientCreateResponse => {
|
|
219
207
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientCreateRequestSchema)
|
|
220
|
-
fetch(
|
|
208
|
+
let response = await fetch(
|
|
221
209
|
~url="/admin/abuse-report/notification-recipient/create",
|
|
222
210
|
~method_="POST",
|
|
223
211
|
~body=Some(jsonBody),
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
value
|
|
227
|
-
->Promise.resolve
|
|
228
|
-
})
|
|
212
|
+
)
|
|
213
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
|
|
229
214
|
}
|
|
230
215
|
|
|
231
216
|
type postAdminAbuseReportNotificationRecipientDeleteRequest = {
|
|
@@ -246,17 +231,14 @@ No description provided.
|
|
|
246
231
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
247
232
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
248
233
|
*/
|
|
249
|
-
let postAdminAbuseReportNotificationRecipientDelete = (~body: postAdminAbuseReportNotificationRecipientDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
234
|
+
let postAdminAbuseReportNotificationRecipientDelete = async (~body: postAdminAbuseReportNotificationRecipientDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientDeleteResponse => {
|
|
250
235
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientDeleteRequestSchema)
|
|
251
|
-
fetch(
|
|
236
|
+
let response = await fetch(
|
|
252
237
|
~url="/admin/abuse-report/notification-recipient/delete",
|
|
253
238
|
~method_="POST",
|
|
254
239
|
~body=Some(jsonBody),
|
|
255
|
-
)
|
|
240
|
+
)
|
|
256
241
|
let _ = response
|
|
257
|
-
()
|
|
258
|
-
->Promise.resolve
|
|
259
|
-
})
|
|
260
242
|
}
|
|
261
243
|
|
|
262
244
|
type postAdminAbuseReportNotificationRecipientListRequest = {
|
|
@@ -279,17 +261,14 @@ No description provided.
|
|
|
279
261
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
280
262
|
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
|
|
281
263
|
*/
|
|
282
|
-
let postAdminAbuseReportNotificationRecipientList = (~body: postAdminAbuseReportNotificationRecipientListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
264
|
+
let postAdminAbuseReportNotificationRecipientList = async (~body: postAdminAbuseReportNotificationRecipientListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientListResponse => {
|
|
283
265
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientListRequestSchema)
|
|
284
|
-
fetch(
|
|
266
|
+
let response = await fetch(
|
|
285
267
|
~url="/admin/abuse-report/notification-recipient/list",
|
|
286
268
|
~method_="POST",
|
|
287
269
|
~body=Some(jsonBody),
|
|
288
|
-
)
|
|
289
|
-
|
|
290
|
-
value
|
|
291
|
-
->Promise.resolve
|
|
292
|
-
})
|
|
270
|
+
)
|
|
271
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientListResponseSchema)
|
|
293
272
|
}
|
|
294
273
|
|
|
295
274
|
type postAdminAbuseReportNotificationRecipientShowRequest = {
|
|
@@ -312,17 +291,14 @@ No description provided.
|
|
|
312
291
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
313
292
|
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
|
|
314
293
|
*/
|
|
315
|
-
let postAdminAbuseReportNotificationRecipientShow = (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
294
|
+
let postAdminAbuseReportNotificationRecipientShow = async (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientShowResponse => {
|
|
316
295
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientShowRequestSchema)
|
|
317
|
-
fetch(
|
|
296
|
+
let response = await fetch(
|
|
318
297
|
~url="/admin/abuse-report/notification-recipient/show",
|
|
319
298
|
~method_="POST",
|
|
320
299
|
~body=Some(jsonBody),
|
|
321
|
-
)
|
|
322
|
-
|
|
323
|
-
value
|
|
324
|
-
->Promise.resolve
|
|
325
|
-
})
|
|
300
|
+
)
|
|
301
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
|
|
326
302
|
}
|
|
327
303
|
|
|
328
304
|
type postAdminAbuseReportNotificationRecipientUpdateRequest = {
|
|
@@ -355,17 +331,14 @@ No description provided.
|
|
|
355
331
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
356
332
|
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
357
333
|
*/
|
|
358
|
-
let postAdminAbuseReportNotificationRecipientUpdate = (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
334
|
+
let postAdminAbuseReportNotificationRecipientUpdate = async (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientUpdateResponse => {
|
|
359
335
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientUpdateRequestSchema)
|
|
360
|
-
fetch(
|
|
336
|
+
let response = await fetch(
|
|
361
337
|
~url="/admin/abuse-report/notification-recipient/update",
|
|
362
338
|
~method_="POST",
|
|
363
339
|
~body=Some(jsonBody),
|
|
364
|
-
)
|
|
365
|
-
|
|
366
|
-
value
|
|
367
|
-
->Promise.resolve
|
|
368
|
-
})
|
|
340
|
+
)
|
|
341
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
|
|
369
342
|
}
|
|
370
343
|
|
|
371
344
|
type postAdminAbuseUserReportsRequest = {
|
|
@@ -435,17 +408,14 @@ No description provided.
|
|
|
435
408
|
|
|
436
409
|
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
|
|
437
410
|
*/
|
|
438
|
-
let postAdminAbuseUserReports = (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
411
|
+
let postAdminAbuseUserReports = async (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseUserReportsResponse => {
|
|
439
412
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseUserReportsRequestSchema)
|
|
440
|
-
fetch(
|
|
413
|
+
let response = await fetch(
|
|
441
414
|
~url="/admin/abuse-user-reports",
|
|
442
415
|
~method_="POST",
|
|
443
416
|
~body=Some(jsonBody),
|
|
444
|
-
)
|
|
445
|
-
|
|
446
|
-
value
|
|
447
|
-
->Promise.resolve
|
|
448
|
-
})
|
|
417
|
+
)
|
|
418
|
+
response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
|
|
449
419
|
}
|
|
450
420
|
|
|
451
421
|
type postAdminAccountsCreateRequest = {
|
|
@@ -471,17 +441,14 @@ No description provided.
|
|
|
471
441
|
|
|
472
442
|
**Credential required**: *No*
|
|
473
443
|
*/
|
|
474
|
-
let postAdminAccountsCreate = (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
444
|
+
let postAdminAccountsCreate = async (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsCreateResponse => {
|
|
475
445
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsCreateRequestSchema)
|
|
476
|
-
fetch(
|
|
446
|
+
let response = await fetch(
|
|
477
447
|
~url="/admin/accounts/create",
|
|
478
448
|
~method_="POST",
|
|
479
449
|
~body=Some(jsonBody),
|
|
480
|
-
)
|
|
481
|
-
|
|
482
|
-
value
|
|
483
|
-
->Promise.resolve
|
|
484
|
-
})
|
|
450
|
+
)
|
|
451
|
+
response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
|
|
485
452
|
}
|
|
486
453
|
|
|
487
454
|
type postAdminAccountsDeleteRequest = {
|
|
@@ -503,17 +470,14 @@ No description provided.
|
|
|
503
470
|
|
|
504
471
|
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
505
472
|
*/
|
|
506
|
-
let postAdminAccountsDelete = (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
473
|
+
let postAdminAccountsDelete = async (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsDeleteResponse => {
|
|
507
474
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsDeleteRequestSchema)
|
|
508
|
-
fetch(
|
|
475
|
+
let response = await fetch(
|
|
509
476
|
~url="/admin/accounts/delete",
|
|
510
477
|
~method_="POST",
|
|
511
478
|
~body=Some(jsonBody),
|
|
512
|
-
)
|
|
479
|
+
)
|
|
513
480
|
let _ = response
|
|
514
|
-
()
|
|
515
|
-
->Promise.resolve
|
|
516
|
-
})
|
|
517
481
|
}
|
|
518
482
|
|
|
519
483
|
type postAdminAccountsFindByEmailRequest = {
|
|
@@ -535,17 +499,14 @@ No description provided.
|
|
|
535
499
|
|
|
536
500
|
**Credential required**: *Yes* / **Permission**: *read:admin:account*
|
|
537
501
|
*/
|
|
538
|
-
let postAdminAccountsFindByEmail = (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
502
|
+
let postAdminAccountsFindByEmail = async (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsFindByEmailResponse => {
|
|
539
503
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsFindByEmailRequestSchema)
|
|
540
|
-
fetch(
|
|
504
|
+
let response = await fetch(
|
|
541
505
|
~url="/admin/accounts/find-by-email",
|
|
542
506
|
~method_="POST",
|
|
543
507
|
~body=Some(jsonBody),
|
|
544
|
-
)
|
|
545
|
-
|
|
546
|
-
value
|
|
547
|
-
->Promise.resolve
|
|
548
|
-
})
|
|
508
|
+
)
|
|
509
|
+
response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
|
|
549
510
|
}
|
|
550
511
|
|
|
551
512
|
type postAdminAccountsPendingListRequest = {
|
|
@@ -593,17 +554,14 @@ No description provided.
|
|
|
593
554
|
|
|
594
555
|
**Credential required**: *Yes* / **Permission**: *read:admin:account*
|
|
595
556
|
*/
|
|
596
|
-
let postAdminAccountsPendingList = (~body: postAdminAccountsPendingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
557
|
+
let postAdminAccountsPendingList = async (~body: postAdminAccountsPendingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsPendingListResponse => {
|
|
597
558
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsPendingListRequestSchema)
|
|
598
|
-
fetch(
|
|
559
|
+
let response = await fetch(
|
|
599
560
|
~url="/admin/accounts/pending/list",
|
|
600
561
|
~method_="POST",
|
|
601
562
|
~body=Some(jsonBody),
|
|
602
|
-
)
|
|
603
|
-
|
|
604
|
-
value
|
|
605
|
-
->Promise.resolve
|
|
606
|
-
})
|
|
563
|
+
)
|
|
564
|
+
response->S.parseOrThrow(postAdminAccountsPendingListResponseSchema)
|
|
607
565
|
}
|
|
608
566
|
|
|
609
567
|
type postAdminAccountsPendingRevokeRequest = {
|
|
@@ -625,17 +583,14 @@ No description provided.
|
|
|
625
583
|
|
|
626
584
|
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
627
585
|
*/
|
|
628
|
-
let postAdminAccountsPendingRevoke = (~body: postAdminAccountsPendingRevokeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
586
|
+
let postAdminAccountsPendingRevoke = async (~body: postAdminAccountsPendingRevokeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsPendingRevokeResponse => {
|
|
629
587
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsPendingRevokeRequestSchema)
|
|
630
|
-
fetch(
|
|
588
|
+
let response = await fetch(
|
|
631
589
|
~url="/admin/accounts/pending/revoke",
|
|
632
590
|
~method_="POST",
|
|
633
591
|
~body=Some(jsonBody),
|
|
634
|
-
)
|
|
592
|
+
)
|
|
635
593
|
let _ = response
|
|
636
|
-
()
|
|
637
|
-
->Promise.resolve
|
|
638
|
-
})
|
|
639
594
|
}
|
|
640
595
|
|
|
641
596
|
type postAdminAdCreateRequest = {
|
|
@@ -675,17 +630,14 @@ No description provided.
|
|
|
675
630
|
|
|
676
631
|
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
677
632
|
*/
|
|
678
|
-
let postAdminAdCreate = (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
633
|
+
let postAdminAdCreate = async (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdCreateResponse => {
|
|
679
634
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdCreateRequestSchema)
|
|
680
|
-
fetch(
|
|
635
|
+
let response = await fetch(
|
|
681
636
|
~url="/admin/ad/create",
|
|
682
637
|
~method_="POST",
|
|
683
638
|
~body=Some(jsonBody),
|
|
684
|
-
)
|
|
685
|
-
|
|
686
|
-
value
|
|
687
|
-
->Promise.resolve
|
|
688
|
-
})
|
|
639
|
+
)
|
|
640
|
+
response->S.parseOrThrow(postAdminAdCreateResponseSchema)
|
|
689
641
|
}
|
|
690
642
|
|
|
691
643
|
type postAdminAdDeleteRequest = {
|
|
@@ -705,17 +657,14 @@ No description provided.
|
|
|
705
657
|
|
|
706
658
|
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
707
659
|
*/
|
|
708
|
-
let postAdminAdDelete = (~body: postAdminAdDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
660
|
+
let postAdminAdDelete = async (~body: postAdminAdDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdDeleteResponse => {
|
|
709
661
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdDeleteRequestSchema)
|
|
710
|
-
fetch(
|
|
662
|
+
let response = await fetch(
|
|
711
663
|
~url="/admin/ad/delete",
|
|
712
664
|
~method_="POST",
|
|
713
665
|
~body=Some(jsonBody),
|
|
714
|
-
)
|
|
666
|
+
)
|
|
715
667
|
let _ = response
|
|
716
|
-
()
|
|
717
|
-
->Promise.resolve
|
|
718
|
-
})
|
|
719
668
|
}
|
|
720
669
|
|
|
721
670
|
type postAdminAdListRequest = {
|
|
@@ -743,17 +692,14 @@ No description provided.
|
|
|
743
692
|
|
|
744
693
|
**Credential required**: *Yes* / **Permission**: *read:admin:ad*
|
|
745
694
|
*/
|
|
746
|
-
let postAdminAdList = (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
695
|
+
let postAdminAdList = async (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdListResponse => {
|
|
747
696
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdListRequestSchema)
|
|
748
|
-
fetch(
|
|
697
|
+
let response = await fetch(
|
|
749
698
|
~url="/admin/ad/list",
|
|
750
699
|
~method_="POST",
|
|
751
700
|
~body=Some(jsonBody),
|
|
752
|
-
)
|
|
753
|
-
|
|
754
|
-
value
|
|
755
|
-
->Promise.resolve
|
|
756
|
-
})
|
|
701
|
+
)
|
|
702
|
+
response->S.parseOrThrow(postAdminAdListResponseSchema)
|
|
757
703
|
}
|
|
758
704
|
|
|
759
705
|
type postAdminAdUpdateRequest = {
|
|
@@ -793,17 +739,14 @@ No description provided.
|
|
|
793
739
|
|
|
794
740
|
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
795
741
|
*/
|
|
796
|
-
let postAdminAdUpdate = (~body: postAdminAdUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
742
|
+
let postAdminAdUpdate = async (~body: postAdminAdUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdUpdateResponse => {
|
|
797
743
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdUpdateRequestSchema)
|
|
798
|
-
fetch(
|
|
744
|
+
let response = await fetch(
|
|
799
745
|
~url="/admin/ad/update",
|
|
800
746
|
~method_="POST",
|
|
801
747
|
~body=Some(jsonBody),
|
|
802
|
-
)
|
|
748
|
+
)
|
|
803
749
|
let _ = response
|
|
804
|
-
()
|
|
805
|
-
->Promise.resolve
|
|
806
|
-
})
|
|
807
750
|
}
|
|
808
751
|
|
|
809
752
|
type postAdminAnnouncementsCreateRequest = {
|
|
@@ -879,17 +822,14 @@ No description provided.
|
|
|
879
822
|
|
|
880
823
|
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
881
824
|
*/
|
|
882
|
-
let postAdminAnnouncementsCreate = (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
825
|
+
let postAdminAnnouncementsCreate = async (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsCreateResponse => {
|
|
883
826
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsCreateRequestSchema)
|
|
884
|
-
fetch(
|
|
827
|
+
let response = await fetch(
|
|
885
828
|
~url="/admin/announcements/create",
|
|
886
829
|
~method_="POST",
|
|
887
830
|
~body=Some(jsonBody),
|
|
888
|
-
)
|
|
889
|
-
|
|
890
|
-
value
|
|
891
|
-
->Promise.resolve
|
|
892
|
-
})
|
|
831
|
+
)
|
|
832
|
+
response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
|
|
893
833
|
}
|
|
894
834
|
|
|
895
835
|
type postAdminAnnouncementsDeleteRequest = {
|
|
@@ -909,17 +849,14 @@ No description provided.
|
|
|
909
849
|
|
|
910
850
|
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
911
851
|
*/
|
|
912
|
-
let postAdminAnnouncementsDelete = (~body: postAdminAnnouncementsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
852
|
+
let postAdminAnnouncementsDelete = async (~body: postAdminAnnouncementsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsDeleteResponse => {
|
|
913
853
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsDeleteRequestSchema)
|
|
914
|
-
fetch(
|
|
854
|
+
let response = await fetch(
|
|
915
855
|
~url="/admin/announcements/delete",
|
|
916
856
|
~method_="POST",
|
|
917
857
|
~body=Some(jsonBody),
|
|
918
|
-
)
|
|
858
|
+
)
|
|
919
859
|
let _ = response
|
|
920
|
-
()
|
|
921
|
-
->Promise.resolve
|
|
922
|
-
})
|
|
923
860
|
}
|
|
924
861
|
|
|
925
862
|
type postAdminAnnouncementsListRequest = {
|
|
@@ -991,17 +928,14 @@ No description provided.
|
|
|
991
928
|
|
|
992
929
|
**Credential required**: *Yes* / **Permission**: *read:admin:announcements*
|
|
993
930
|
*/
|
|
994
|
-
let postAdminAnnouncementsList = (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
931
|
+
let postAdminAnnouncementsList = async (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsListResponse => {
|
|
995
932
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsListRequestSchema)
|
|
996
|
-
fetch(
|
|
933
|
+
let response = await fetch(
|
|
997
934
|
~url="/admin/announcements/list",
|
|
998
935
|
~method_="POST",
|
|
999
936
|
~body=Some(jsonBody),
|
|
1000
|
-
)
|
|
1001
|
-
|
|
1002
|
-
value
|
|
1003
|
-
->Promise.resolve
|
|
1004
|
-
})
|
|
937
|
+
)
|
|
938
|
+
response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
|
|
1005
939
|
}
|
|
1006
940
|
|
|
1007
941
|
type postAdminAnnouncementsUpdateRequest = {
|
|
@@ -1045,17 +979,14 @@ No description provided.
|
|
|
1045
979
|
|
|
1046
980
|
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
1047
981
|
*/
|
|
1048
|
-
let postAdminAnnouncementsUpdate = (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
982
|
+
let postAdminAnnouncementsUpdate = async (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsUpdateResponse => {
|
|
1049
983
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsUpdateRequestSchema)
|
|
1050
|
-
fetch(
|
|
984
|
+
let response = await fetch(
|
|
1051
985
|
~url="/admin/announcements/update",
|
|
1052
986
|
~method_="POST",
|
|
1053
987
|
~body=Some(jsonBody),
|
|
1054
|
-
)
|
|
988
|
+
)
|
|
1055
989
|
let _ = response
|
|
1056
|
-
()
|
|
1057
|
-
->Promise.resolve
|
|
1058
|
-
})
|
|
1059
990
|
}
|
|
1060
991
|
|
|
1061
992
|
type postAdminAvatarDecorationsCreateRequest = {
|
|
@@ -1099,17 +1030,14 @@ No description provided.
|
|
|
1099
1030
|
|
|
1100
1031
|
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1101
1032
|
*/
|
|
1102
|
-
let postAdminAvatarDecorationsCreate = (~body: postAdminAvatarDecorationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1033
|
+
let postAdminAvatarDecorationsCreate = async (~body: postAdminAvatarDecorationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsCreateResponse => {
|
|
1103
1034
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsCreateRequestSchema)
|
|
1104
|
-
fetch(
|
|
1035
|
+
let response = await fetch(
|
|
1105
1036
|
~url="/admin/avatar-decorations/create",
|
|
1106
1037
|
~method_="POST",
|
|
1107
1038
|
~body=Some(jsonBody),
|
|
1108
|
-
)
|
|
1109
|
-
|
|
1110
|
-
value
|
|
1111
|
-
->Promise.resolve
|
|
1112
|
-
})
|
|
1039
|
+
)
|
|
1040
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsCreateResponseSchema)
|
|
1113
1041
|
}
|
|
1114
1042
|
|
|
1115
1043
|
type postAdminAvatarDecorationsDeleteRequest = {
|
|
@@ -1129,17 +1057,14 @@ No description provided.
|
|
|
1129
1057
|
|
|
1130
1058
|
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1131
1059
|
*/
|
|
1132
|
-
let postAdminAvatarDecorationsDelete = (~body: postAdminAvatarDecorationsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1060
|
+
let postAdminAvatarDecorationsDelete = async (~body: postAdminAvatarDecorationsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsDeleteResponse => {
|
|
1133
1061
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsDeleteRequestSchema)
|
|
1134
|
-
fetch(
|
|
1062
|
+
let response = await fetch(
|
|
1135
1063
|
~url="/admin/avatar-decorations/delete",
|
|
1136
1064
|
~method_="POST",
|
|
1137
1065
|
~body=Some(jsonBody),
|
|
1138
|
-
)
|
|
1066
|
+
)
|
|
1139
1067
|
let _ = response
|
|
1140
|
-
()
|
|
1141
|
-
->Promise.resolve
|
|
1142
|
-
})
|
|
1143
1068
|
}
|
|
1144
1069
|
|
|
1145
1070
|
type postAdminAvatarDecorationsListRequest = {
|
|
@@ -1187,17 +1112,14 @@ No description provided.
|
|
|
1187
1112
|
|
|
1188
1113
|
**Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
|
|
1189
1114
|
*/
|
|
1190
|
-
let postAdminAvatarDecorationsList = (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1115
|
+
let postAdminAvatarDecorationsList = async (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListResponse => {
|
|
1191
1116
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRequestSchema)
|
|
1192
|
-
fetch(
|
|
1117
|
+
let response = await fetch(
|
|
1193
1118
|
~url="/admin/avatar-decorations/list",
|
|
1194
1119
|
~method_="POST",
|
|
1195
1120
|
~body=Some(jsonBody),
|
|
1196
|
-
)
|
|
1197
|
-
|
|
1198
|
-
value
|
|
1199
|
-
->Promise.resolve
|
|
1200
|
-
})
|
|
1121
|
+
)
|
|
1122
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
|
|
1201
1123
|
}
|
|
1202
1124
|
|
|
1203
1125
|
type postAdminAvatarDecorationsUpdateRequest = {
|
|
@@ -1225,17 +1147,14 @@ No description provided.
|
|
|
1225
1147
|
|
|
1226
1148
|
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1227
1149
|
*/
|
|
1228
|
-
let postAdminAvatarDecorationsUpdate = (~body: postAdminAvatarDecorationsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1150
|
+
let postAdminAvatarDecorationsUpdate = async (~body: postAdminAvatarDecorationsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsUpdateResponse => {
|
|
1229
1151
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsUpdateRequestSchema)
|
|
1230
|
-
fetch(
|
|
1152
|
+
let response = await fetch(
|
|
1231
1153
|
~url="/admin/avatar-decorations/update",
|
|
1232
1154
|
~method_="POST",
|
|
1233
1155
|
~body=Some(jsonBody),
|
|
1234
|
-
)
|
|
1156
|
+
)
|
|
1235
1157
|
let _ = response
|
|
1236
|
-
()
|
|
1237
|
-
->Promise.resolve
|
|
1238
|
-
})
|
|
1239
1158
|
}
|
|
1240
1159
|
|
|
1241
1160
|
type postAdminCaptchaCurrentResponse_2 = {
|
|
@@ -1283,17 +1202,14 @@ No description provided.
|
|
|
1283
1202
|
|
|
1284
1203
|
**Credential required**: *Yes* / **Permission**: *read:admin:meta*
|
|
1285
1204
|
*/
|
|
1286
|
-
let postAdminCaptchaCurrent = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1205
|
+
let postAdminCaptchaCurrent = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminCaptchaCurrentResponse => {
|
|
1287
1206
|
|
|
1288
|
-
fetch(
|
|
1207
|
+
let response = await fetch(
|
|
1289
1208
|
~url="/admin/captcha/current",
|
|
1290
1209
|
~method_="POST",
|
|
1291
1210
|
~body=None,
|
|
1292
|
-
)
|
|
1293
|
-
|
|
1294
|
-
value
|
|
1295
|
-
->Promise.resolve
|
|
1296
|
-
})
|
|
1211
|
+
)
|
|
1212
|
+
response->S.parseOrThrow(postAdminCaptchaCurrentResponseSchema)
|
|
1297
1213
|
}
|
|
1298
1214
|
|
|
1299
1215
|
type postAdminCaptchaSaveRequest = {
|
|
@@ -1321,17 +1237,14 @@ No description provided.
|
|
|
1321
1237
|
|
|
1322
1238
|
**Credential required**: *Yes* / **Permission**: *write:admin:meta*
|
|
1323
1239
|
*/
|
|
1324
|
-
let postAdminCaptchaSave = (~body: postAdminCaptchaSaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1240
|
+
let postAdminCaptchaSave = async (~body: postAdminCaptchaSaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminCaptchaSaveResponse => {
|
|
1325
1241
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminCaptchaSaveRequestSchema)
|
|
1326
|
-
fetch(
|
|
1242
|
+
let response = await fetch(
|
|
1327
1243
|
~url="/admin/captcha/save",
|
|
1328
1244
|
~method_="POST",
|
|
1329
1245
|
~body=Some(jsonBody),
|
|
1330
|
-
)
|
|
1246
|
+
)
|
|
1331
1247
|
let _ = response
|
|
1332
|
-
()
|
|
1333
|
-
->Promise.resolve
|
|
1334
|
-
})
|
|
1335
1248
|
}
|
|
1336
1249
|
|
|
1337
1250
|
type postAdminDriveCleanRemoteFilesResponse = unit
|
|
@@ -1343,17 +1256,14 @@ No description provided.
|
|
|
1343
1256
|
|
|
1344
1257
|
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1345
1258
|
*/
|
|
1346
|
-
let postAdminDriveCleanRemoteFiles = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1259
|
+
let postAdminDriveCleanRemoteFiles = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanRemoteFilesResponse => {
|
|
1347
1260
|
|
|
1348
|
-
fetch(
|
|
1261
|
+
let response = await fetch(
|
|
1349
1262
|
~url="/admin/drive/clean-remote-files",
|
|
1350
1263
|
~method_="POST",
|
|
1351
1264
|
~body=None,
|
|
1352
|
-
)
|
|
1265
|
+
)
|
|
1353
1266
|
let _ = response
|
|
1354
|
-
()
|
|
1355
|
-
->Promise.resolve
|
|
1356
|
-
})
|
|
1357
1267
|
}
|
|
1358
1268
|
|
|
1359
1269
|
type postAdminDriveCleanupResponse = unit
|
|
@@ -1365,17 +1275,14 @@ No description provided.
|
|
|
1365
1275
|
|
|
1366
1276
|
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1367
1277
|
*/
|
|
1368
|
-
let postAdminDriveCleanup = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1278
|
+
let postAdminDriveCleanup = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanupResponse => {
|
|
1369
1279
|
|
|
1370
|
-
fetch(
|
|
1280
|
+
let response = await fetch(
|
|
1371
1281
|
~url="/admin/drive/cleanup",
|
|
1372
1282
|
~method_="POST",
|
|
1373
1283
|
~body=None,
|
|
1374
|
-
)
|
|
1284
|
+
)
|
|
1375
1285
|
let _ = response
|
|
1376
|
-
()
|
|
1377
|
-
->Promise.resolve
|
|
1378
|
-
})
|
|
1379
1286
|
}
|
|
1380
1287
|
|
|
1381
1288
|
type postAdminDriveDeleteAllFilesOfAUserRequest = {
|
|
@@ -1395,17 +1302,14 @@ No description provided.
|
|
|
1395
1302
|
|
|
1396
1303
|
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1397
1304
|
*/
|
|
1398
|
-
let postAdminDriveDeleteAllFilesOfAUser = (~body: postAdminDriveDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1305
|
+
let postAdminDriveDeleteAllFilesOfAUser = async (~body: postAdminDriveDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveDeleteAllFilesOfAUserResponse => {
|
|
1399
1306
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveDeleteAllFilesOfAUserRequestSchema)
|
|
1400
|
-
fetch(
|
|
1307
|
+
let response = await fetch(
|
|
1401
1308
|
~url="/admin/drive/delete-all-files-of-a-user",
|
|
1402
1309
|
~method_="POST",
|
|
1403
1310
|
~body=Some(jsonBody),
|
|
1404
|
-
)
|
|
1311
|
+
)
|
|
1405
1312
|
let _ = response
|
|
1406
|
-
()
|
|
1407
|
-
->Promise.resolve
|
|
1408
|
-
})
|
|
1409
1313
|
}
|
|
1410
1314
|
|
|
1411
1315
|
type postAdminDriveFilesRequest = {
|
|
@@ -1439,17 +1343,14 @@ No description provided.
|
|
|
1439
1343
|
|
|
1440
1344
|
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
1441
1345
|
*/
|
|
1442
|
-
let postAdminDriveFiles = (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1346
|
+
let postAdminDriveFiles = async (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveFilesResponse => {
|
|
1443
1347
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveFilesRequestSchema)
|
|
1444
|
-
fetch(
|
|
1348
|
+
let response = await fetch(
|
|
1445
1349
|
~url="/admin/drive/files",
|
|
1446
1350
|
~method_="POST",
|
|
1447
1351
|
~body=Some(jsonBody),
|
|
1448
|
-
)
|
|
1449
|
-
|
|
1450
|
-
value
|
|
1451
|
-
->Promise.resolve
|
|
1452
|
-
})
|
|
1352
|
+
)
|
|
1353
|
+
response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
|
|
1453
1354
|
}
|
|
1454
1355
|
|
|
1455
1356
|
type postAdminDriveShowFileRequest = {
|
|
@@ -1535,17 +1436,14 @@ No description provided.
|
|
|
1535
1436
|
|
|
1536
1437
|
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
1537
1438
|
*/
|
|
1538
|
-
let postAdminDriveShowFile = (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1439
|
+
let postAdminDriveShowFile = async (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveShowFileResponse => {
|
|
1539
1440
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveShowFileRequestSchema)
|
|
1540
|
-
fetch(
|
|
1441
|
+
let response = await fetch(
|
|
1541
1442
|
~url="/admin/drive/show-file",
|
|
1542
1443
|
~method_="POST",
|
|
1543
1444
|
~body=Some(jsonBody),
|
|
1544
|
-
)
|
|
1545
|
-
|
|
1546
|
-
value
|
|
1547
|
-
->Promise.resolve
|
|
1548
|
-
})
|
|
1445
|
+
)
|
|
1446
|
+
response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
|
|
1549
1447
|
}
|
|
1550
1448
|
|
|
1551
1449
|
type postAdminEmojiAddRequest = {
|
|
@@ -1587,17 +1485,14 @@ No description provided.
|
|
|
1587
1485
|
|
|
1588
1486
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1589
1487
|
*/
|
|
1590
|
-
let postAdminEmojiAdd = (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1488
|
+
let postAdminEmojiAdd = async (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddResponse => {
|
|
1591
1489
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddRequestSchema)
|
|
1592
|
-
fetch(
|
|
1490
|
+
let response = await fetch(
|
|
1593
1491
|
~url="/admin/emoji/add",
|
|
1594
1492
|
~method_="POST",
|
|
1595
1493
|
~body=Some(jsonBody),
|
|
1596
|
-
)
|
|
1597
|
-
|
|
1598
|
-
value
|
|
1599
|
-
->Promise.resolve
|
|
1600
|
-
})
|
|
1494
|
+
)
|
|
1495
|
+
response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
|
|
1601
1496
|
}
|
|
1602
1497
|
|
|
1603
1498
|
type postAdminEmojiAddAliasesBulkRequest = {
|
|
@@ -1619,17 +1514,14 @@ No description provided.
|
|
|
1619
1514
|
|
|
1620
1515
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1621
1516
|
*/
|
|
1622
|
-
let postAdminEmojiAddAliasesBulk = (~body: postAdminEmojiAddAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1517
|
+
let postAdminEmojiAddAliasesBulk = async (~body: postAdminEmojiAddAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddAliasesBulkResponse => {
|
|
1623
1518
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddAliasesBulkRequestSchema)
|
|
1624
|
-
fetch(
|
|
1519
|
+
let response = await fetch(
|
|
1625
1520
|
~url="/admin/emoji/add-aliases-bulk",
|
|
1626
1521
|
~method_="POST",
|
|
1627
1522
|
~body=Some(jsonBody),
|
|
1628
|
-
)
|
|
1523
|
+
)
|
|
1629
1524
|
let _ = response
|
|
1630
|
-
()
|
|
1631
|
-
->Promise.resolve
|
|
1632
|
-
})
|
|
1633
1525
|
}
|
|
1634
1526
|
|
|
1635
1527
|
type postAdminEmojiCopyRequest = {
|
|
@@ -1655,17 +1547,14 @@ No description provided.
|
|
|
1655
1547
|
|
|
1656
1548
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1657
1549
|
*/
|
|
1658
|
-
let postAdminEmojiCopy = (~body: postAdminEmojiCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1550
|
+
let postAdminEmojiCopy = async (~body: postAdminEmojiCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiCopyResponse => {
|
|
1659
1551
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiCopyRequestSchema)
|
|
1660
|
-
fetch(
|
|
1552
|
+
let response = await fetch(
|
|
1661
1553
|
~url="/admin/emoji/copy",
|
|
1662
1554
|
~method_="POST",
|
|
1663
1555
|
~body=Some(jsonBody),
|
|
1664
|
-
)
|
|
1665
|
-
|
|
1666
|
-
value
|
|
1667
|
-
->Promise.resolve
|
|
1668
|
-
})
|
|
1556
|
+
)
|
|
1557
|
+
response->S.parseOrThrow(postAdminEmojiCopyResponseSchema)
|
|
1669
1558
|
}
|
|
1670
1559
|
|
|
1671
1560
|
type postAdminEmojiDeleteRequest = {
|
|
@@ -1685,17 +1574,14 @@ No description provided.
|
|
|
1685
1574
|
|
|
1686
1575
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1687
1576
|
*/
|
|
1688
|
-
let postAdminEmojiDelete = (~body: postAdminEmojiDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1577
|
+
let postAdminEmojiDelete = async (~body: postAdminEmojiDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiDeleteResponse => {
|
|
1689
1578
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiDeleteRequestSchema)
|
|
1690
|
-
fetch(
|
|
1579
|
+
let response = await fetch(
|
|
1691
1580
|
~url="/admin/emoji/delete",
|
|
1692
1581
|
~method_="POST",
|
|
1693
1582
|
~body=Some(jsonBody),
|
|
1694
|
-
)
|
|
1583
|
+
)
|
|
1695
1584
|
let _ = response
|
|
1696
|
-
()
|
|
1697
|
-
->Promise.resolve
|
|
1698
|
-
})
|
|
1699
1585
|
}
|
|
1700
1586
|
|
|
1701
1587
|
type postAdminEmojiDeleteBulkRequest = {
|
|
@@ -1715,17 +1601,14 @@ No description provided.
|
|
|
1715
1601
|
|
|
1716
1602
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1717
1603
|
*/
|
|
1718
|
-
let postAdminEmojiDeleteBulk = (~body: postAdminEmojiDeleteBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1604
|
+
let postAdminEmojiDeleteBulk = async (~body: postAdminEmojiDeleteBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiDeleteBulkResponse => {
|
|
1719
1605
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiDeleteBulkRequestSchema)
|
|
1720
|
-
fetch(
|
|
1606
|
+
let response = await fetch(
|
|
1721
1607
|
~url="/admin/emoji/delete-bulk",
|
|
1722
1608
|
~method_="POST",
|
|
1723
1609
|
~body=Some(jsonBody),
|
|
1724
|
-
)
|
|
1610
|
+
)
|
|
1725
1611
|
let _ = response
|
|
1726
|
-
()
|
|
1727
|
-
->Promise.resolve
|
|
1728
|
-
})
|
|
1729
1612
|
}
|
|
1730
1613
|
|
|
1731
1614
|
type postAdminEmojiListRequest = {
|
|
@@ -1771,17 +1654,14 @@ No description provided.
|
|
|
1771
1654
|
|
|
1772
1655
|
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
1773
1656
|
*/
|
|
1774
|
-
let postAdminEmojiList = (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1657
|
+
let postAdminEmojiList = async (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListResponse => {
|
|
1775
1658
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRequestSchema)
|
|
1776
|
-
fetch(
|
|
1659
|
+
let response = await fetch(
|
|
1777
1660
|
~url="/admin/emoji/list",
|
|
1778
1661
|
~method_="POST",
|
|
1779
1662
|
~body=Some(jsonBody),
|
|
1780
|
-
)
|
|
1781
|
-
|
|
1782
|
-
value
|
|
1783
|
-
->Promise.resolve
|
|
1784
|
-
})
|
|
1663
|
+
)
|
|
1664
|
+
response->S.parseOrThrow(postAdminEmojiListResponseSchema)
|
|
1785
1665
|
}
|
|
1786
1666
|
|
|
1787
1667
|
type postAdminEmojiListRemoteRequest = {
|
|
@@ -1829,17 +1709,14 @@ No description provided.
|
|
|
1829
1709
|
|
|
1830
1710
|
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
1831
1711
|
*/
|
|
1832
|
-
let postAdminEmojiListRemote = (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1712
|
+
let postAdminEmojiListRemote = async (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListRemoteResponse => {
|
|
1833
1713
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRemoteRequestSchema)
|
|
1834
|
-
fetch(
|
|
1714
|
+
let response = await fetch(
|
|
1835
1715
|
~url="/admin/emoji/list-remote",
|
|
1836
1716
|
~method_="POST",
|
|
1837
1717
|
~body=Some(jsonBody),
|
|
1838
|
-
)
|
|
1839
|
-
|
|
1840
|
-
value
|
|
1841
|
-
->Promise.resolve
|
|
1842
|
-
})
|
|
1718
|
+
)
|
|
1719
|
+
response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
|
|
1843
1720
|
}
|
|
1844
1721
|
|
|
1845
1722
|
type postAdminEmojiRemoveAliasesBulkRequest = {
|
|
@@ -1861,17 +1738,14 @@ No description provided.
|
|
|
1861
1738
|
|
|
1862
1739
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1863
1740
|
*/
|
|
1864
|
-
let postAdminEmojiRemoveAliasesBulk = (~body: postAdminEmojiRemoveAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1741
|
+
let postAdminEmojiRemoveAliasesBulk = async (~body: postAdminEmojiRemoveAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiRemoveAliasesBulkResponse => {
|
|
1865
1742
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiRemoveAliasesBulkRequestSchema)
|
|
1866
|
-
fetch(
|
|
1743
|
+
let response = await fetch(
|
|
1867
1744
|
~url="/admin/emoji/remove-aliases-bulk",
|
|
1868
1745
|
~method_="POST",
|
|
1869
1746
|
~body=Some(jsonBody),
|
|
1870
|
-
)
|
|
1747
|
+
)
|
|
1871
1748
|
let _ = response
|
|
1872
|
-
()
|
|
1873
|
-
->Promise.resolve
|
|
1874
|
-
})
|
|
1875
1749
|
}
|
|
1876
1750
|
|
|
1877
1751
|
type postAdminEmojiSetAliasesBulkRequest = {
|
|
@@ -1893,17 +1767,14 @@ No description provided.
|
|
|
1893
1767
|
|
|
1894
1768
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1895
1769
|
*/
|
|
1896
|
-
let postAdminEmojiSetAliasesBulk = (~body: postAdminEmojiSetAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1770
|
+
let postAdminEmojiSetAliasesBulk = async (~body: postAdminEmojiSetAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetAliasesBulkResponse => {
|
|
1897
1771
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetAliasesBulkRequestSchema)
|
|
1898
|
-
fetch(
|
|
1772
|
+
let response = await fetch(
|
|
1899
1773
|
~url="/admin/emoji/set-aliases-bulk",
|
|
1900
1774
|
~method_="POST",
|
|
1901
1775
|
~body=Some(jsonBody),
|
|
1902
|
-
)
|
|
1776
|
+
)
|
|
1903
1777
|
let _ = response
|
|
1904
|
-
()
|
|
1905
|
-
->Promise.resolve
|
|
1906
|
-
})
|
|
1907
1778
|
}
|
|
1908
1779
|
|
|
1909
1780
|
type postAdminEmojiSetCategoryBulkRequest = {
|
|
@@ -1925,17 +1796,14 @@ No description provided.
|
|
|
1925
1796
|
|
|
1926
1797
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1927
1798
|
*/
|
|
1928
|
-
let postAdminEmojiSetCategoryBulk = (~body: postAdminEmojiSetCategoryBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1799
|
+
let postAdminEmojiSetCategoryBulk = async (~body: postAdminEmojiSetCategoryBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetCategoryBulkResponse => {
|
|
1929
1800
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetCategoryBulkRequestSchema)
|
|
1930
|
-
fetch(
|
|
1801
|
+
let response = await fetch(
|
|
1931
1802
|
~url="/admin/emoji/set-category-bulk",
|
|
1932
1803
|
~method_="POST",
|
|
1933
1804
|
~body=Some(jsonBody),
|
|
1934
|
-
)
|
|
1805
|
+
)
|
|
1935
1806
|
let _ = response
|
|
1936
|
-
()
|
|
1937
|
-
->Promise.resolve
|
|
1938
|
-
})
|
|
1939
1807
|
}
|
|
1940
1808
|
|
|
1941
1809
|
type postAdminEmojiSetLicenseBulkRequest = {
|
|
@@ -1957,17 +1825,14 @@ No description provided.
|
|
|
1957
1825
|
|
|
1958
1826
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1959
1827
|
*/
|
|
1960
|
-
let postAdminEmojiSetLicenseBulk = (~body: postAdminEmojiSetLicenseBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1828
|
+
let postAdminEmojiSetLicenseBulk = async (~body: postAdminEmojiSetLicenseBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetLicenseBulkResponse => {
|
|
1961
1829
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetLicenseBulkRequestSchema)
|
|
1962
|
-
fetch(
|
|
1830
|
+
let response = await fetch(
|
|
1963
1831
|
~url="/admin/emoji/set-license-bulk",
|
|
1964
1832
|
~method_="POST",
|
|
1965
1833
|
~body=Some(jsonBody),
|
|
1966
|
-
)
|
|
1834
|
+
)
|
|
1967
1835
|
let _ = response
|
|
1968
|
-
()
|
|
1969
|
-
->Promise.resolve
|
|
1970
|
-
})
|
|
1971
1836
|
}
|
|
1972
1837
|
|
|
1973
1838
|
type postAdminEmojiUpdateRequest = {
|
|
@@ -2009,17 +1874,14 @@ No description provided.
|
|
|
2009
1874
|
|
|
2010
1875
|
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
2011
1876
|
*/
|
|
2012
|
-
let postAdminEmojiUpdate = (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1877
|
+
let postAdminEmojiUpdate = async (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiUpdateResponse => {
|
|
2013
1878
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiUpdateRequestSchema)
|
|
2014
|
-
fetch(
|
|
1879
|
+
let response = await fetch(
|
|
2015
1880
|
~url="/admin/emoji/update",
|
|
2016
1881
|
~method_="POST",
|
|
2017
1882
|
~body=Some(jsonBody),
|
|
2018
|
-
)
|
|
1883
|
+
)
|
|
2019
1884
|
let _ = response
|
|
2020
|
-
()
|
|
2021
|
-
->Promise.resolve
|
|
2022
|
-
})
|
|
2023
1885
|
}
|
|
2024
1886
|
|
|
2025
1887
|
type postAdminFederationDeleteAllFilesRequest = {
|
|
@@ -2039,17 +1901,14 @@ No description provided.
|
|
|
2039
1901
|
|
|
2040
1902
|
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
2041
1903
|
*/
|
|
2042
|
-
let postAdminFederationDeleteAllFiles = (~body: postAdminFederationDeleteAllFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1904
|
+
let postAdminFederationDeleteAllFiles = async (~body: postAdminFederationDeleteAllFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationDeleteAllFilesResponse => {
|
|
2043
1905
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationDeleteAllFilesRequestSchema)
|
|
2044
|
-
fetch(
|
|
1906
|
+
let response = await fetch(
|
|
2045
1907
|
~url="/admin/federation/delete-all-files",
|
|
2046
1908
|
~method_="POST",
|
|
2047
1909
|
~body=Some(jsonBody),
|
|
2048
|
-
)
|
|
1910
|
+
)
|
|
2049
1911
|
let _ = response
|
|
2050
|
-
()
|
|
2051
|
-
->Promise.resolve
|
|
2052
|
-
})
|
|
2053
1912
|
}
|
|
2054
1913
|
|
|
2055
1914
|
type postAdminFederationRefreshRemoteInstanceMetadataRequest = {
|
|
@@ -2069,17 +1928,14 @@ No description provided.
|
|
|
2069
1928
|
|
|
2070
1929
|
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
2071
1930
|
*/
|
|
2072
|
-
let postAdminFederationRefreshRemoteInstanceMetadata = (~body: postAdminFederationRefreshRemoteInstanceMetadataRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1931
|
+
let postAdminFederationRefreshRemoteInstanceMetadata = async (~body: postAdminFederationRefreshRemoteInstanceMetadataRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationRefreshRemoteInstanceMetadataResponse => {
|
|
2073
1932
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationRefreshRemoteInstanceMetadataRequestSchema)
|
|
2074
|
-
fetch(
|
|
1933
|
+
let response = await fetch(
|
|
2075
1934
|
~url="/admin/federation/refresh-remote-instance-metadata",
|
|
2076
1935
|
~method_="POST",
|
|
2077
1936
|
~body=Some(jsonBody),
|
|
2078
|
-
)
|
|
1937
|
+
)
|
|
2079
1938
|
let _ = response
|
|
2080
|
-
()
|
|
2081
|
-
->Promise.resolve
|
|
2082
|
-
})
|
|
2083
1939
|
}
|
|
2084
1940
|
|
|
2085
1941
|
type postAdminFederationRemoveAllFollowingRequest = {
|
|
@@ -2099,17 +1955,14 @@ No description provided.
|
|
|
2099
1955
|
|
|
2100
1956
|
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
2101
1957
|
*/
|
|
2102
|
-
let postAdminFederationRemoveAllFollowing = (~body: postAdminFederationRemoveAllFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1958
|
+
let postAdminFederationRemoveAllFollowing = async (~body: postAdminFederationRemoveAllFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationRemoveAllFollowingResponse => {
|
|
2103
1959
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationRemoveAllFollowingRequestSchema)
|
|
2104
|
-
fetch(
|
|
1960
|
+
let response = await fetch(
|
|
2105
1961
|
~url="/admin/federation/remove-all-following",
|
|
2106
1962
|
~method_="POST",
|
|
2107
1963
|
~body=Some(jsonBody),
|
|
2108
|
-
)
|
|
1964
|
+
)
|
|
2109
1965
|
let _ = response
|
|
2110
|
-
()
|
|
2111
|
-
->Promise.resolve
|
|
2112
|
-
})
|
|
2113
1966
|
}
|
|
2114
1967
|
|
|
2115
1968
|
type postAdminFederationUpdateInstanceRequest = {
|
|
@@ -2133,17 +1986,14 @@ No description provided.
|
|
|
2133
1986
|
|
|
2134
1987
|
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
2135
1988
|
*/
|
|
2136
|
-
let postAdminFederationUpdateInstance = (~body: postAdminFederationUpdateInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1989
|
+
let postAdminFederationUpdateInstance = async (~body: postAdminFederationUpdateInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationUpdateInstanceResponse => {
|
|
2137
1990
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationUpdateInstanceRequestSchema)
|
|
2138
|
-
fetch(
|
|
1991
|
+
let response = await fetch(
|
|
2139
1992
|
~url="/admin/federation/update-instance",
|
|
2140
1993
|
~method_="POST",
|
|
2141
1994
|
~body=Some(jsonBody),
|
|
2142
|
-
)
|
|
1995
|
+
)
|
|
2143
1996
|
let _ = response
|
|
2144
|
-
()
|
|
2145
|
-
->Promise.resolve
|
|
2146
|
-
})
|
|
2147
1997
|
}
|
|
2148
1998
|
|
|
2149
1999
|
type postAdminForwardAbuseUserReportRequest = {
|
|
@@ -2163,17 +2013,14 @@ No description provided.
|
|
|
2163
2013
|
|
|
2164
2014
|
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
2165
2015
|
*/
|
|
2166
|
-
let postAdminForwardAbuseUserReport = (~body: postAdminForwardAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2016
|
+
let postAdminForwardAbuseUserReport = async (~body: postAdminForwardAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminForwardAbuseUserReportResponse => {
|
|
2167
2017
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminForwardAbuseUserReportRequestSchema)
|
|
2168
|
-
fetch(
|
|
2018
|
+
let response = await fetch(
|
|
2169
2019
|
~url="/admin/forward-abuse-user-report",
|
|
2170
2020
|
~method_="POST",
|
|
2171
2021
|
~body=Some(jsonBody),
|
|
2172
|
-
)
|
|
2022
|
+
)
|
|
2173
2023
|
let _ = response
|
|
2174
|
-
()
|
|
2175
|
-
->Promise.resolve
|
|
2176
|
-
})
|
|
2177
2024
|
}
|
|
2178
2025
|
|
|
2179
2026
|
type postAdminGetIndexStatsResponse_1 = {
|
|
@@ -2197,17 +2044,14 @@ No description provided.
|
|
|
2197
2044
|
|
|
2198
2045
|
**Credential required**: *Yes* / **Permission**: *read:admin:index-stats*
|
|
2199
2046
|
*/
|
|
2200
|
-
let postAdminGetIndexStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2047
|
+
let postAdminGetIndexStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetIndexStatsResponse => {
|
|
2201
2048
|
|
|
2202
|
-
fetch(
|
|
2049
|
+
let response = await fetch(
|
|
2203
2050
|
~url="/admin/get-index-stats",
|
|
2204
2051
|
~method_="POST",
|
|
2205
2052
|
~body=None,
|
|
2206
|
-
)
|
|
2207
|
-
|
|
2208
|
-
value
|
|
2209
|
-
->Promise.resolve
|
|
2210
|
-
})
|
|
2053
|
+
)
|
|
2054
|
+
response->S.parseOrThrow(postAdminGetIndexStatsResponseSchema)
|
|
2211
2055
|
}
|
|
2212
2056
|
|
|
2213
2057
|
type postAdminGetTableStatsResponse = dict<JSON.t>
|
|
@@ -2221,17 +2065,14 @@ No description provided.
|
|
|
2221
2065
|
|
|
2222
2066
|
**Credential required**: *Yes* / **Permission**: *read:admin:table-stats*
|
|
2223
2067
|
*/
|
|
2224
|
-
let postAdminGetTableStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2068
|
+
let postAdminGetTableStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetTableStatsResponse => {
|
|
2225
2069
|
|
|
2226
|
-
fetch(
|
|
2070
|
+
let response = await fetch(
|
|
2227
2071
|
~url="/admin/get-table-stats",
|
|
2228
2072
|
~method_="POST",
|
|
2229
2073
|
~body=None,
|
|
2230
|
-
)
|
|
2231
|
-
|
|
2232
|
-
value
|
|
2233
|
-
->Promise.resolve
|
|
2234
|
-
})
|
|
2074
|
+
)
|
|
2075
|
+
response->S.parseOrThrow(postAdminGetTableStatsResponseSchema)
|
|
2235
2076
|
}
|
|
2236
2077
|
|
|
2237
2078
|
type postAdminGetUserIpsRequest = {
|
|
@@ -2263,17 +2104,14 @@ No description provided.
|
|
|
2263
2104
|
|
|
2264
2105
|
**Credential required**: *Yes* / **Permission**: *read:admin:user-ips*
|
|
2265
2106
|
*/
|
|
2266
|
-
let postAdminGetUserIps = (~body: postAdminGetUserIpsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2107
|
+
let postAdminGetUserIps = async (~body: postAdminGetUserIpsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetUserIpsResponse => {
|
|
2267
2108
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminGetUserIpsRequestSchema)
|
|
2268
|
-
fetch(
|
|
2109
|
+
let response = await fetch(
|
|
2269
2110
|
~url="/admin/get-user-ips",
|
|
2270
2111
|
~method_="POST",
|
|
2271
2112
|
~body=Some(jsonBody),
|
|
2272
|
-
)
|
|
2273
|
-
|
|
2274
|
-
value
|
|
2275
|
-
->Promise.resolve
|
|
2276
|
-
})
|
|
2113
|
+
)
|
|
2114
|
+
response->S.parseOrThrow(postAdminGetUserIpsResponseSchema)
|
|
2277
2115
|
}
|
|
2278
2116
|
|
|
2279
2117
|
type postAdminIndieAuthCreateRequest = {
|
|
@@ -2309,17 +2147,14 @@ No description provided.
|
|
|
2309
2147
|
|
|
2310
2148
|
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2311
2149
|
*/
|
|
2312
|
-
let postAdminIndieAuthCreate = (~body: postAdminIndieAuthCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2150
|
+
let postAdminIndieAuthCreate = async (~body: postAdminIndieAuthCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthCreateResponse => {
|
|
2313
2151
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthCreateRequestSchema)
|
|
2314
|
-
fetch(
|
|
2152
|
+
let response = await fetch(
|
|
2315
2153
|
~url="/admin/indie-auth/create",
|
|
2316
2154
|
~method_="POST",
|
|
2317
2155
|
~body=Some(jsonBody),
|
|
2318
|
-
)
|
|
2319
|
-
|
|
2320
|
-
value
|
|
2321
|
-
->Promise.resolve
|
|
2322
|
-
})
|
|
2156
|
+
)
|
|
2157
|
+
response->S.parseOrThrow(postAdminIndieAuthCreateResponseSchema)
|
|
2323
2158
|
}
|
|
2324
2159
|
|
|
2325
2160
|
type postAdminIndieAuthDeleteRequest = {
|
|
@@ -2339,17 +2174,14 @@ No description provided.
|
|
|
2339
2174
|
|
|
2340
2175
|
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2341
2176
|
*/
|
|
2342
|
-
let postAdminIndieAuthDelete = (~body: postAdminIndieAuthDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2177
|
+
let postAdminIndieAuthDelete = async (~body: postAdminIndieAuthDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthDeleteResponse => {
|
|
2343
2178
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthDeleteRequestSchema)
|
|
2344
|
-
fetch(
|
|
2179
|
+
let response = await fetch(
|
|
2345
2180
|
~url="/admin/indie-auth/delete",
|
|
2346
2181
|
~method_="POST",
|
|
2347
2182
|
~body=Some(jsonBody),
|
|
2348
|
-
)
|
|
2183
|
+
)
|
|
2349
2184
|
let _ = response
|
|
2350
|
-
()
|
|
2351
|
-
->Promise.resolve
|
|
2352
|
-
})
|
|
2353
2185
|
}
|
|
2354
2186
|
|
|
2355
2187
|
type postAdminIndieAuthListRequest = {
|
|
@@ -2387,17 +2219,14 @@ No description provided.
|
|
|
2387
2219
|
|
|
2388
2220
|
**Credential required**: *Yes* / **Permission**: *read:admin:indie-auth*
|
|
2389
2221
|
*/
|
|
2390
|
-
let postAdminIndieAuthList = (~body: postAdminIndieAuthListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2222
|
+
let postAdminIndieAuthList = async (~body: postAdminIndieAuthListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthListResponse => {
|
|
2391
2223
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthListRequestSchema)
|
|
2392
|
-
fetch(
|
|
2224
|
+
let response = await fetch(
|
|
2393
2225
|
~url="/admin/indie-auth/list",
|
|
2394
2226
|
~method_="POST",
|
|
2395
2227
|
~body=Some(jsonBody),
|
|
2396
|
-
)
|
|
2397
|
-
|
|
2398
|
-
value
|
|
2399
|
-
->Promise.resolve
|
|
2400
|
-
})
|
|
2228
|
+
)
|
|
2229
|
+
response->S.parseOrThrow(postAdminIndieAuthListResponseSchema)
|
|
2401
2230
|
}
|
|
2402
2231
|
|
|
2403
2232
|
type postAdminIndieAuthUpdateRequest = {
|
|
@@ -2421,17 +2250,14 @@ No description provided.
|
|
|
2421
2250
|
|
|
2422
2251
|
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2423
2252
|
*/
|
|
2424
|
-
let postAdminIndieAuthUpdate = (~body: postAdminIndieAuthUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2253
|
+
let postAdminIndieAuthUpdate = async (~body: postAdminIndieAuthUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthUpdateResponse => {
|
|
2425
2254
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthUpdateRequestSchema)
|
|
2426
|
-
fetch(
|
|
2255
|
+
let response = await fetch(
|
|
2427
2256
|
~url="/admin/indie-auth/update",
|
|
2428
2257
|
~method_="POST",
|
|
2429
2258
|
~body=Some(jsonBody),
|
|
2430
|
-
)
|
|
2259
|
+
)
|
|
2431
2260
|
let _ = response
|
|
2432
|
-
()
|
|
2433
|
-
->Promise.resolve
|
|
2434
|
-
})
|
|
2435
2261
|
}
|
|
2436
2262
|
|
|
2437
2263
|
type postAdminInviteCreateRequest = {
|
|
@@ -2455,17 +2281,14 @@ No description provided.
|
|
|
2455
2281
|
|
|
2456
2282
|
**Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
|
|
2457
2283
|
*/
|
|
2458
|
-
let postAdminInviteCreate = (~body: postAdminInviteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2284
|
+
let postAdminInviteCreate = async (~body: postAdminInviteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteCreateResponse => {
|
|
2459
2285
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminInviteCreateRequestSchema)
|
|
2460
|
-
fetch(
|
|
2286
|
+
let response = await fetch(
|
|
2461
2287
|
~url="/admin/invite/create",
|
|
2462
2288
|
~method_="POST",
|
|
2463
2289
|
~body=Some(jsonBody),
|
|
2464
|
-
)
|
|
2465
|
-
|
|
2466
|
-
value
|
|
2467
|
-
->Promise.resolve
|
|
2468
|
-
})
|
|
2290
|
+
)
|
|
2291
|
+
response->S.parseOrThrow(postAdminInviteCreateResponseSchema)
|
|
2469
2292
|
}
|
|
2470
2293
|
|
|
2471
2294
|
type postAdminInviteListRequest = {
|
|
@@ -2493,17 +2316,14 @@ No description provided.
|
|
|
2493
2316
|
|
|
2494
2317
|
**Credential required**: *Yes* / **Permission**: *read:admin:invite-codes*
|
|
2495
2318
|
*/
|
|
2496
|
-
let postAdminInviteList = (~body: postAdminInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2319
|
+
let postAdminInviteList = async (~body: postAdminInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteListResponse => {
|
|
2497
2320
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminInviteListRequestSchema)
|
|
2498
|
-
fetch(
|
|
2321
|
+
let response = await fetch(
|
|
2499
2322
|
~url="/admin/invite/list",
|
|
2500
2323
|
~method_="POST",
|
|
2501
2324
|
~body=Some(jsonBody),
|
|
2502
|
-
)
|
|
2503
|
-
|
|
2504
|
-
value
|
|
2505
|
-
->Promise.resolve
|
|
2506
|
-
})
|
|
2325
|
+
)
|
|
2326
|
+
response->S.parseOrThrow(postAdminInviteListResponseSchema)
|
|
2507
2327
|
}
|
|
2508
2328
|
|
|
2509
2329
|
type postAdminPromoCreateRequest = {
|
|
@@ -2525,17 +2345,14 @@ No description provided.
|
|
|
2525
2345
|
|
|
2526
2346
|
**Credential required**: *Yes* / **Permission**: *write:admin:promo*
|
|
2527
2347
|
*/
|
|
2528
|
-
let postAdminPromoCreate = (~body: postAdminPromoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2348
|
+
let postAdminPromoCreate = async (~body: postAdminPromoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminPromoCreateResponse => {
|
|
2529
2349
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminPromoCreateRequestSchema)
|
|
2530
|
-
fetch(
|
|
2350
|
+
let response = await fetch(
|
|
2531
2351
|
~url="/admin/promo/create",
|
|
2532
2352
|
~method_="POST",
|
|
2533
2353
|
~body=Some(jsonBody),
|
|
2534
|
-
)
|
|
2354
|
+
)
|
|
2535
2355
|
let _ = response
|
|
2536
|
-
()
|
|
2537
|
-
->Promise.resolve
|
|
2538
|
-
})
|
|
2539
2356
|
}
|
|
2540
2357
|
|
|
2541
2358
|
type postAdminQueueClearRequest = {
|
|
@@ -2557,17 +2374,14 @@ No description provided.
|
|
|
2557
2374
|
|
|
2558
2375
|
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
2559
2376
|
*/
|
|
2560
|
-
let postAdminQueueClear = (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2377
|
+
let postAdminQueueClear = async (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueClearResponse => {
|
|
2561
2378
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueClearRequestSchema)
|
|
2562
|
-
fetch(
|
|
2379
|
+
let response = await fetch(
|
|
2563
2380
|
~url="/admin/queue/clear",
|
|
2564
2381
|
~method_="POST",
|
|
2565
2382
|
~body=Some(jsonBody),
|
|
2566
|
-
)
|
|
2383
|
+
)
|
|
2567
2384
|
let _ = response
|
|
2568
|
-
()
|
|
2569
|
-
->Promise.resolve
|
|
2570
|
-
})
|
|
2571
2385
|
}
|
|
2572
2386
|
|
|
2573
2387
|
type postAdminQueueDeliverDelayedResponse = array<array<JSON.t>>
|
|
@@ -2581,17 +2395,14 @@ No description provided.
|
|
|
2581
2395
|
|
|
2582
2396
|
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
2583
2397
|
*/
|
|
2584
|
-
let postAdminQueueDeliverDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2398
|
+
let postAdminQueueDeliverDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueDeliverDelayedResponse => {
|
|
2585
2399
|
|
|
2586
|
-
fetch(
|
|
2400
|
+
let response = await fetch(
|
|
2587
2401
|
~url="/admin/queue/deliver-delayed",
|
|
2588
2402
|
~method_="POST",
|
|
2589
2403
|
~body=None,
|
|
2590
|
-
)
|
|
2591
|
-
|
|
2592
|
-
value
|
|
2593
|
-
->Promise.resolve
|
|
2594
|
-
})
|
|
2404
|
+
)
|
|
2405
|
+
response->S.parseOrThrow(postAdminQueueDeliverDelayedResponseSchema)
|
|
2595
2406
|
}
|
|
2596
2407
|
|
|
2597
2408
|
type postAdminQueueInboxDelayedResponse = array<array<JSON.t>>
|
|
@@ -2605,17 +2416,14 @@ No description provided.
|
|
|
2605
2416
|
|
|
2606
2417
|
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
2607
2418
|
*/
|
|
2608
|
-
let postAdminQueueInboxDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2419
|
+
let postAdminQueueInboxDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueInboxDelayedResponse => {
|
|
2609
2420
|
|
|
2610
|
-
fetch(
|
|
2421
|
+
let response = await fetch(
|
|
2611
2422
|
~url="/admin/queue/inbox-delayed",
|
|
2612
2423
|
~method_="POST",
|
|
2613
2424
|
~body=None,
|
|
2614
|
-
)
|
|
2615
|
-
|
|
2616
|
-
value
|
|
2617
|
-
->Promise.resolve
|
|
2618
|
-
})
|
|
2425
|
+
)
|
|
2426
|
+
response->S.parseOrThrow(postAdminQueueInboxDelayedResponseSchema)
|
|
2619
2427
|
}
|
|
2620
2428
|
|
|
2621
2429
|
type postAdminQueuePromoteRequest = {
|
|
@@ -2635,17 +2443,14 @@ No description provided.
|
|
|
2635
2443
|
|
|
2636
2444
|
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
2637
2445
|
*/
|
|
2638
|
-
let postAdminQueuePromote = (~body: postAdminQueuePromoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2446
|
+
let postAdminQueuePromote = async (~body: postAdminQueuePromoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueuePromoteResponse => {
|
|
2639
2447
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueuePromoteRequestSchema)
|
|
2640
|
-
fetch(
|
|
2448
|
+
let response = await fetch(
|
|
2641
2449
|
~url="/admin/queue/promote",
|
|
2642
2450
|
~method_="POST",
|
|
2643
2451
|
~body=Some(jsonBody),
|
|
2644
|
-
)
|
|
2452
|
+
)
|
|
2645
2453
|
let _ = response
|
|
2646
|
-
()
|
|
2647
|
-
->Promise.resolve
|
|
2648
|
-
})
|
|
2649
2454
|
}
|
|
2650
2455
|
|
|
2651
2456
|
type postAdminQueueStatsResponse = {
|
|
@@ -2669,17 +2474,14 @@ No description provided.
|
|
|
2669
2474
|
|
|
2670
2475
|
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
2671
2476
|
*/
|
|
2672
|
-
let postAdminQueueStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2477
|
+
let postAdminQueueStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueStatsResponse => {
|
|
2673
2478
|
|
|
2674
|
-
fetch(
|
|
2479
|
+
let response = await fetch(
|
|
2675
2480
|
~url="/admin/queue/stats",
|
|
2676
2481
|
~method_="POST",
|
|
2677
2482
|
~body=None,
|
|
2678
|
-
)
|
|
2679
|
-
|
|
2680
|
-
value
|
|
2681
|
-
->Promise.resolve
|
|
2682
|
-
})
|
|
2483
|
+
)
|
|
2484
|
+
response->S.parseOrThrow(postAdminQueueStatsResponseSchema)
|
|
2683
2485
|
}
|
|
2684
2486
|
|
|
2685
2487
|
type postAdminRegenerateUserTokenRequest = {
|
|
@@ -2699,17 +2501,14 @@ No description provided.
|
|
|
2699
2501
|
|
|
2700
2502
|
**Credential required**: *Yes* / **Permission**: *write:admin:regenerate-user-token*
|
|
2701
2503
|
*/
|
|
2702
|
-
let postAdminRegenerateUserToken = (~body: postAdminRegenerateUserTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2504
|
+
let postAdminRegenerateUserToken = async (~body: postAdminRegenerateUserTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRegenerateUserTokenResponse => {
|
|
2703
2505
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRegenerateUserTokenRequestSchema)
|
|
2704
|
-
fetch(
|
|
2506
|
+
let response = await fetch(
|
|
2705
2507
|
~url="/admin/regenerate-user-token",
|
|
2706
2508
|
~method_="POST",
|
|
2707
2509
|
~body=Some(jsonBody),
|
|
2708
|
-
)
|
|
2510
|
+
)
|
|
2709
2511
|
let _ = response
|
|
2710
|
-
()
|
|
2711
|
-
->Promise.resolve
|
|
2712
|
-
})
|
|
2713
2512
|
}
|
|
2714
2513
|
|
|
2715
2514
|
type postAdminRelaysAddRequest = {
|
|
@@ -2739,17 +2538,14 @@ No description provided.
|
|
|
2739
2538
|
|
|
2740
2539
|
**Credential required**: *Yes* / **Permission**: *write:admin:relays*
|
|
2741
2540
|
*/
|
|
2742
|
-
let postAdminRelaysAdd = (~body: postAdminRelaysAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2541
|
+
let postAdminRelaysAdd = async (~body: postAdminRelaysAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysAddResponse => {
|
|
2743
2542
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRelaysAddRequestSchema)
|
|
2744
|
-
fetch(
|
|
2543
|
+
let response = await fetch(
|
|
2745
2544
|
~url="/admin/relays/add",
|
|
2746
2545
|
~method_="POST",
|
|
2747
2546
|
~body=Some(jsonBody),
|
|
2748
|
-
)
|
|
2749
|
-
|
|
2750
|
-
value
|
|
2751
|
-
->Promise.resolve
|
|
2752
|
-
})
|
|
2547
|
+
)
|
|
2548
|
+
response->S.parseOrThrow(postAdminRelaysAddResponseSchema)
|
|
2753
2549
|
}
|
|
2754
2550
|
|
|
2755
2551
|
type postAdminRelaysListResponse_1 = {
|
|
@@ -2775,17 +2571,14 @@ No description provided.
|
|
|
2775
2571
|
|
|
2776
2572
|
**Credential required**: *Yes* / **Permission**: *read:admin:relays*
|
|
2777
2573
|
*/
|
|
2778
|
-
let postAdminRelaysList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2574
|
+
let postAdminRelaysList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysListResponse => {
|
|
2779
2575
|
|
|
2780
|
-
fetch(
|
|
2576
|
+
let response = await fetch(
|
|
2781
2577
|
~url="/admin/relays/list",
|
|
2782
2578
|
~method_="POST",
|
|
2783
2579
|
~body=None,
|
|
2784
|
-
)
|
|
2785
|
-
|
|
2786
|
-
value
|
|
2787
|
-
->Promise.resolve
|
|
2788
|
-
})
|
|
2580
|
+
)
|
|
2581
|
+
response->S.parseOrThrow(postAdminRelaysListResponseSchema)
|
|
2789
2582
|
}
|
|
2790
2583
|
|
|
2791
2584
|
type postAdminRelaysRemoveRequest = {
|
|
@@ -2805,17 +2598,14 @@ No description provided.
|
|
|
2805
2598
|
|
|
2806
2599
|
**Credential required**: *Yes* / **Permission**: *write:admin:relays*
|
|
2807
2600
|
*/
|
|
2808
|
-
let postAdminRelaysRemove = (~body: postAdminRelaysRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2601
|
+
let postAdminRelaysRemove = async (~body: postAdminRelaysRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysRemoveResponse => {
|
|
2809
2602
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRelaysRemoveRequestSchema)
|
|
2810
|
-
fetch(
|
|
2603
|
+
let response = await fetch(
|
|
2811
2604
|
~url="/admin/relays/remove",
|
|
2812
2605
|
~method_="POST",
|
|
2813
2606
|
~body=Some(jsonBody),
|
|
2814
|
-
)
|
|
2607
|
+
)
|
|
2815
2608
|
let _ = response
|
|
2816
|
-
()
|
|
2817
|
-
->Promise.resolve
|
|
2818
|
-
})
|
|
2819
2609
|
}
|
|
2820
2610
|
|
|
2821
2611
|
type postAdminResetPasswordRequest = {
|
|
@@ -2841,17 +2631,14 @@ No description provided.
|
|
|
2841
2631
|
|
|
2842
2632
|
**Credential required**: *Yes* / **Permission**: *write:admin:reset-password*
|
|
2843
2633
|
*/
|
|
2844
|
-
let postAdminResetPassword = (~body: postAdminResetPasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2634
|
+
let postAdminResetPassword = async (~body: postAdminResetPasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResetPasswordResponse => {
|
|
2845
2635
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResetPasswordRequestSchema)
|
|
2846
|
-
fetch(
|
|
2636
|
+
let response = await fetch(
|
|
2847
2637
|
~url="/admin/reset-password",
|
|
2848
2638
|
~method_="POST",
|
|
2849
2639
|
~body=Some(jsonBody),
|
|
2850
|
-
)
|
|
2851
|
-
|
|
2852
|
-
value
|
|
2853
|
-
->Promise.resolve
|
|
2854
|
-
})
|
|
2640
|
+
)
|
|
2641
|
+
response->S.parseOrThrow(postAdminResetPasswordResponseSchema)
|
|
2855
2642
|
}
|
|
2856
2643
|
|
|
2857
2644
|
type postAdminResolveAbuseUserReportRequest = {
|
|
@@ -2875,17 +2662,14 @@ No description provided.
|
|
|
2875
2662
|
|
|
2876
2663
|
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
2877
2664
|
*/
|
|
2878
|
-
let postAdminResolveAbuseUserReport = (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2665
|
+
let postAdminResolveAbuseUserReport = async (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResolveAbuseUserReportResponse => {
|
|
2879
2666
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResolveAbuseUserReportRequestSchema)
|
|
2880
|
-
fetch(
|
|
2667
|
+
let response = await fetch(
|
|
2881
2668
|
~url="/admin/resolve-abuse-user-report",
|
|
2882
2669
|
~method_="POST",
|
|
2883
2670
|
~body=Some(jsonBody),
|
|
2884
|
-
)
|
|
2671
|
+
)
|
|
2885
2672
|
let _ = response
|
|
2886
|
-
()
|
|
2887
|
-
->Promise.resolve
|
|
2888
|
-
})
|
|
2889
2673
|
}
|
|
2890
2674
|
|
|
2891
2675
|
type postAdminRolesAssignRequest = {
|
|
@@ -2911,17 +2695,14 @@ No description provided.
|
|
|
2911
2695
|
|
|
2912
2696
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2913
2697
|
*/
|
|
2914
|
-
let postAdminRolesAssign = (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2698
|
+
let postAdminRolesAssign = async (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesAssignResponse => {
|
|
2915
2699
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesAssignRequestSchema)
|
|
2916
|
-
fetch(
|
|
2700
|
+
let response = await fetch(
|
|
2917
2701
|
~url="/admin/roles/assign",
|
|
2918
2702
|
~method_="POST",
|
|
2919
2703
|
~body=Some(jsonBody),
|
|
2920
|
-
)
|
|
2704
|
+
)
|
|
2921
2705
|
let _ = response
|
|
2922
|
-
()
|
|
2923
|
-
->Promise.resolve
|
|
2924
|
-
})
|
|
2925
2706
|
}
|
|
2926
2707
|
|
|
2927
2708
|
type postAdminRolesCreateRequest = {
|
|
@@ -2973,17 +2754,14 @@ No description provided.
|
|
|
2973
2754
|
|
|
2974
2755
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2975
2756
|
*/
|
|
2976
|
-
let postAdminRolesCreate = (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2757
|
+
let postAdminRolesCreate = async (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesCreateResponse => {
|
|
2977
2758
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesCreateRequestSchema)
|
|
2978
|
-
fetch(
|
|
2759
|
+
let response = await fetch(
|
|
2979
2760
|
~url="/admin/roles/create",
|
|
2980
2761
|
~method_="POST",
|
|
2981
2762
|
~body=Some(jsonBody),
|
|
2982
|
-
)
|
|
2983
|
-
|
|
2984
|
-
value
|
|
2985
|
-
->Promise.resolve
|
|
2986
|
-
})
|
|
2763
|
+
)
|
|
2764
|
+
response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
|
|
2987
2765
|
}
|
|
2988
2766
|
|
|
2989
2767
|
type postAdminRolesDeleteRequest = {
|
|
@@ -3003,17 +2781,14 @@ No description provided.
|
|
|
3003
2781
|
|
|
3004
2782
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
3005
2783
|
*/
|
|
3006
|
-
let postAdminRolesDelete = (~body: postAdminRolesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2784
|
+
let postAdminRolesDelete = async (~body: postAdminRolesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesDeleteResponse => {
|
|
3007
2785
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesDeleteRequestSchema)
|
|
3008
|
-
fetch(
|
|
2786
|
+
let response = await fetch(
|
|
3009
2787
|
~url="/admin/roles/delete",
|
|
3010
2788
|
~method_="POST",
|
|
3011
2789
|
~body=Some(jsonBody),
|
|
3012
|
-
)
|
|
2790
|
+
)
|
|
3013
2791
|
let _ = response
|
|
3014
|
-
()
|
|
3015
|
-
->Promise.resolve
|
|
3016
|
-
})
|
|
3017
2792
|
}
|
|
3018
2793
|
|
|
3019
2794
|
type postAdminRolesListResponse = array<MisskeyIoComponentSchemas.Role.t>
|
|
@@ -3027,17 +2802,14 @@ No description provided.
|
|
|
3027
2802
|
|
|
3028
2803
|
**Credential required**: *Yes* / **Permission**: *read:admin:roles*
|
|
3029
2804
|
*/
|
|
3030
|
-
let postAdminRolesList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2805
|
+
let postAdminRolesList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesListResponse => {
|
|
3031
2806
|
|
|
3032
|
-
fetch(
|
|
2807
|
+
let response = await fetch(
|
|
3033
2808
|
~url="/admin/roles/list",
|
|
3034
2809
|
~method_="POST",
|
|
3035
2810
|
~body=None,
|
|
3036
|
-
)
|
|
3037
|
-
|
|
3038
|
-
value
|
|
3039
|
-
->Promise.resolve
|
|
3040
|
-
})
|
|
2811
|
+
)
|
|
2812
|
+
response->S.parseOrThrow(postAdminRolesListResponseSchema)
|
|
3041
2813
|
}
|
|
3042
2814
|
|
|
3043
2815
|
type postAdminRolesShowRequest = {
|
|
@@ -3059,17 +2831,14 @@ No description provided.
|
|
|
3059
2831
|
|
|
3060
2832
|
**Credential required**: *Yes* / **Permission**: *read:admin:roles*
|
|
3061
2833
|
*/
|
|
3062
|
-
let postAdminRolesShow = (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2834
|
+
let postAdminRolesShow = async (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesShowResponse => {
|
|
3063
2835
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesShowRequestSchema)
|
|
3064
|
-
fetch(
|
|
2836
|
+
let response = await fetch(
|
|
3065
2837
|
~url="/admin/roles/show",
|
|
3066
2838
|
~method_="POST",
|
|
3067
2839
|
~body=Some(jsonBody),
|
|
3068
|
-
)
|
|
3069
|
-
|
|
3070
|
-
value
|
|
3071
|
-
->Promise.resolve
|
|
3072
|
-
})
|
|
2840
|
+
)
|
|
2841
|
+
response->S.parseOrThrow(postAdminRolesShowResponseSchema)
|
|
3073
2842
|
}
|
|
3074
2843
|
|
|
3075
2844
|
type postAdminRolesUnassignRequest = {
|
|
@@ -3091,17 +2860,14 @@ No description provided.
|
|
|
3091
2860
|
|
|
3092
2861
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
3093
2862
|
*/
|
|
3094
|
-
let postAdminRolesUnassign = (~body: postAdminRolesUnassignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2863
|
+
let postAdminRolesUnassign = async (~body: postAdminRolesUnassignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUnassignResponse => {
|
|
3095
2864
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUnassignRequestSchema)
|
|
3096
|
-
fetch(
|
|
2865
|
+
let response = await fetch(
|
|
3097
2866
|
~url="/admin/roles/unassign",
|
|
3098
2867
|
~method_="POST",
|
|
3099
2868
|
~body=Some(jsonBody),
|
|
3100
|
-
)
|
|
2869
|
+
)
|
|
3101
2870
|
let _ = response
|
|
3102
|
-
()
|
|
3103
|
-
->Promise.resolve
|
|
3104
|
-
})
|
|
3105
2871
|
}
|
|
3106
2872
|
|
|
3107
2873
|
type postAdminRolesUpdateRequest = {
|
|
@@ -3153,17 +2919,14 @@ No description provided.
|
|
|
3153
2919
|
|
|
3154
2920
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
3155
2921
|
*/
|
|
3156
|
-
let postAdminRolesUpdate = (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2922
|
+
let postAdminRolesUpdate = async (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateResponse => {
|
|
3157
2923
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateRequestSchema)
|
|
3158
|
-
fetch(
|
|
2924
|
+
let response = await fetch(
|
|
3159
2925
|
~url="/admin/roles/update",
|
|
3160
2926
|
~method_="POST",
|
|
3161
2927
|
~body=Some(jsonBody),
|
|
3162
|
-
)
|
|
2928
|
+
)
|
|
3163
2929
|
let _ = response
|
|
3164
|
-
()
|
|
3165
|
-
->Promise.resolve
|
|
3166
|
-
})
|
|
3167
2930
|
}
|
|
3168
2931
|
|
|
3169
2932
|
type postAdminRolesUpdateDefaultPoliciesRequest = {
|
|
@@ -3183,17 +2946,14 @@ No description provided.
|
|
|
3183
2946
|
|
|
3184
2947
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
3185
2948
|
*/
|
|
3186
|
-
let postAdminRolesUpdateDefaultPolicies = (~body: postAdminRolesUpdateDefaultPoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2949
|
+
let postAdminRolesUpdateDefaultPolicies = async (~body: postAdminRolesUpdateDefaultPoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateDefaultPoliciesResponse => {
|
|
3187
2950
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateDefaultPoliciesRequestSchema)
|
|
3188
|
-
fetch(
|
|
2951
|
+
let response = await fetch(
|
|
3189
2952
|
~url="/admin/roles/update-default-policies",
|
|
3190
2953
|
~method_="POST",
|
|
3191
2954
|
~body=Some(jsonBody),
|
|
3192
|
-
)
|
|
2955
|
+
)
|
|
3193
2956
|
let _ = response
|
|
3194
|
-
()
|
|
3195
|
-
->Promise.resolve
|
|
3196
|
-
})
|
|
3197
2957
|
}
|
|
3198
2958
|
|
|
3199
2959
|
@unboxed type postAdminRolesUpdateInlinePoliciesRequest_2 = Bool(bool) | Float(float) | String(string)
|
|
@@ -3235,17 +2995,14 @@ No description provided.
|
|
|
3235
2995
|
|
|
3236
2996
|
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
3237
2997
|
*/
|
|
3238
|
-
let postAdminRolesUpdateInlinePolicies = (~body: postAdminRolesUpdateInlinePoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2998
|
+
let postAdminRolesUpdateInlinePolicies = async (~body: postAdminRolesUpdateInlinePoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateInlinePoliciesResponse => {
|
|
3239
2999
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateInlinePoliciesRequestSchema)
|
|
3240
|
-
fetch(
|
|
3000
|
+
let response = await fetch(
|
|
3241
3001
|
~url="/admin/roles/update-inline-policies",
|
|
3242
3002
|
~method_="POST",
|
|
3243
3003
|
~body=Some(jsonBody),
|
|
3244
|
-
)
|
|
3004
|
+
)
|
|
3245
3005
|
let _ = response
|
|
3246
|
-
()
|
|
3247
|
-
->Promise.resolve
|
|
3248
|
-
})
|
|
3249
3006
|
}
|
|
3250
3007
|
|
|
3251
3008
|
type postAdminRolesUsersRequest = {
|
|
@@ -3289,17 +3046,14 @@ No description provided.
|
|
|
3289
3046
|
|
|
3290
3047
|
**Credential required**: *No* / **Permission**: *read:admin:roles*
|
|
3291
3048
|
*/
|
|
3292
|
-
let postAdminRolesUsers = (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3049
|
+
let postAdminRolesUsers = async (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUsersResponse => {
|
|
3293
3050
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUsersRequestSchema)
|
|
3294
|
-
fetch(
|
|
3051
|
+
let response = await fetch(
|
|
3295
3052
|
~url="/admin/roles/users",
|
|
3296
3053
|
~method_="POST",
|
|
3297
3054
|
~body=Some(jsonBody),
|
|
3298
|
-
)
|
|
3299
|
-
|
|
3300
|
-
value
|
|
3301
|
-
->Promise.resolve
|
|
3302
|
-
})
|
|
3055
|
+
)
|
|
3056
|
+
response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
|
|
3303
3057
|
}
|
|
3304
3058
|
|
|
3305
3059
|
type postAdminSendEmailRequest = {
|
|
@@ -3323,17 +3077,14 @@ No description provided.
|
|
|
3323
3077
|
|
|
3324
3078
|
**Credential required**: *Yes* / **Permission**: *write:admin:send-email*
|
|
3325
3079
|
*/
|
|
3326
|
-
let postAdminSendEmail = (~body: postAdminSendEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3080
|
+
let postAdminSendEmail = async (~body: postAdminSendEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSendEmailResponse => {
|
|
3327
3081
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSendEmailRequestSchema)
|
|
3328
|
-
fetch(
|
|
3082
|
+
let response = await fetch(
|
|
3329
3083
|
~url="/admin/send-email",
|
|
3330
3084
|
~method_="POST",
|
|
3331
3085
|
~body=Some(jsonBody),
|
|
3332
|
-
)
|
|
3086
|
+
)
|
|
3333
3087
|
let _ = response
|
|
3334
|
-
()
|
|
3335
|
-
->Promise.resolve
|
|
3336
|
-
})
|
|
3337
3088
|
}
|
|
3338
3089
|
|
|
3339
3090
|
type postAdminShowModerationLogsRequest = {
|
|
@@ -3381,17 +3132,14 @@ No description provided.
|
|
|
3381
3132
|
|
|
3382
3133
|
**Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
|
|
3383
3134
|
*/
|
|
3384
|
-
let postAdminShowModerationLogs = (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3135
|
+
let postAdminShowModerationLogs = async (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowModerationLogsResponse => {
|
|
3385
3136
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowModerationLogsRequestSchema)
|
|
3386
|
-
fetch(
|
|
3137
|
+
let response = await fetch(
|
|
3387
3138
|
~url="/admin/show-moderation-logs",
|
|
3388
3139
|
~method_="POST",
|
|
3389
3140
|
~body=Some(jsonBody),
|
|
3390
|
-
)
|
|
3391
|
-
|
|
3392
|
-
value
|
|
3393
|
-
->Promise.resolve
|
|
3394
|
-
})
|
|
3141
|
+
)
|
|
3142
|
+
response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
|
|
3395
3143
|
}
|
|
3396
3144
|
|
|
3397
3145
|
type postAdminShowUserRequest = {
|
|
@@ -3543,17 +3291,14 @@ No description provided.
|
|
|
3543
3291
|
|
|
3544
3292
|
**Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
|
3545
3293
|
*/
|
|
3546
|
-
let postAdminShowUser = (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3294
|
+
let postAdminShowUser = async (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserResponse => {
|
|
3547
3295
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserRequestSchema)
|
|
3548
|
-
fetch(
|
|
3296
|
+
let response = await fetch(
|
|
3549
3297
|
~url="/admin/show-user",
|
|
3550
3298
|
~method_="POST",
|
|
3551
3299
|
~body=Some(jsonBody),
|
|
3552
|
-
)
|
|
3553
|
-
|
|
3554
|
-
value
|
|
3555
|
-
->Promise.resolve
|
|
3556
|
-
})
|
|
3300
|
+
)
|
|
3301
|
+
response->S.parseOrThrow(postAdminShowUserResponseSchema)
|
|
3557
3302
|
}
|
|
3558
3303
|
|
|
3559
3304
|
type postAdminShowUserAccountMoveLogsRequest = {
|
|
@@ -3605,17 +3350,14 @@ No description provided.
|
|
|
3605
3350
|
|
|
3606
3351
|
**Credential required**: *Yes* / **Permission**: *read:admin:show-account-move-log*
|
|
3607
3352
|
*/
|
|
3608
|
-
let postAdminShowUserAccountMoveLogs = (~body: postAdminShowUserAccountMoveLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3353
|
+
let postAdminShowUserAccountMoveLogs = async (~body: postAdminShowUserAccountMoveLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserAccountMoveLogsResponse => {
|
|
3609
3354
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserAccountMoveLogsRequestSchema)
|
|
3610
|
-
fetch(
|
|
3355
|
+
let response = await fetch(
|
|
3611
3356
|
~url="/admin/show-user-account-move-logs",
|
|
3612
3357
|
~method_="POST",
|
|
3613
3358
|
~body=Some(jsonBody),
|
|
3614
|
-
)
|
|
3615
|
-
|
|
3616
|
-
value
|
|
3617
|
-
->Promise.resolve
|
|
3618
|
-
})
|
|
3359
|
+
)
|
|
3360
|
+
response->S.parseOrThrow(postAdminShowUserAccountMoveLogsResponseSchema)
|
|
3619
3361
|
}
|
|
3620
3362
|
|
|
3621
3363
|
type postAdminShowUsersRequest = {
|
|
@@ -3649,17 +3391,14 @@ No description provided.
|
|
|
3649
3391
|
|
|
3650
3392
|
**Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
|
3651
3393
|
*/
|
|
3652
|
-
let postAdminShowUsers = (~body: postAdminShowUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3394
|
+
let postAdminShowUsers = async (~body: postAdminShowUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUsersResponse => {
|
|
3653
3395
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUsersRequestSchema)
|
|
3654
|
-
fetch(
|
|
3396
|
+
let response = await fetch(
|
|
3655
3397
|
~url="/admin/show-users",
|
|
3656
3398
|
~method_="POST",
|
|
3657
3399
|
~body=Some(jsonBody),
|
|
3658
|
-
)
|
|
3659
|
-
|
|
3660
|
-
value
|
|
3661
|
-
->Promise.resolve
|
|
3662
|
-
})
|
|
3400
|
+
)
|
|
3401
|
+
response->S.parseOrThrow(postAdminShowUsersResponseSchema)
|
|
3663
3402
|
}
|
|
3664
3403
|
|
|
3665
3404
|
type postAdminSsoCreateRequest = {
|
|
@@ -3735,17 +3474,14 @@ No description provided.
|
|
|
3735
3474
|
|
|
3736
3475
|
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3737
3476
|
*/
|
|
3738
|
-
let postAdminSsoCreate = (~body: postAdminSsoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3477
|
+
let postAdminSsoCreate = async (~body: postAdminSsoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoCreateResponse => {
|
|
3739
3478
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoCreateRequestSchema)
|
|
3740
|
-
fetch(
|
|
3479
|
+
let response = await fetch(
|
|
3741
3480
|
~url="/admin/sso/create",
|
|
3742
3481
|
~method_="POST",
|
|
3743
3482
|
~body=Some(jsonBody),
|
|
3744
|
-
)
|
|
3745
|
-
|
|
3746
|
-
value
|
|
3747
|
-
->Promise.resolve
|
|
3748
|
-
})
|
|
3483
|
+
)
|
|
3484
|
+
response->S.parseOrThrow(postAdminSsoCreateResponseSchema)
|
|
3749
3485
|
}
|
|
3750
3486
|
|
|
3751
3487
|
type postAdminSsoDeleteRequest = {
|
|
@@ -3765,17 +3501,14 @@ No description provided.
|
|
|
3765
3501
|
|
|
3766
3502
|
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3767
3503
|
*/
|
|
3768
|
-
let postAdminSsoDelete = (~body: postAdminSsoDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3504
|
+
let postAdminSsoDelete = async (~body: postAdminSsoDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoDeleteResponse => {
|
|
3769
3505
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoDeleteRequestSchema)
|
|
3770
|
-
fetch(
|
|
3506
|
+
let response = await fetch(
|
|
3771
3507
|
~url="/admin/sso/delete",
|
|
3772
3508
|
~method_="POST",
|
|
3773
3509
|
~body=Some(jsonBody),
|
|
3774
|
-
)
|
|
3510
|
+
)
|
|
3775
3511
|
let _ = response
|
|
3776
|
-
()
|
|
3777
|
-
->Promise.resolve
|
|
3778
|
-
})
|
|
3779
3512
|
}
|
|
3780
3513
|
|
|
3781
3514
|
type postAdminSsoListRequest = {
|
|
@@ -3835,17 +3568,14 @@ No description provided.
|
|
|
3835
3568
|
|
|
3836
3569
|
**Credential required**: *Yes* / **Permission**: *read:admin:sso*
|
|
3837
3570
|
*/
|
|
3838
|
-
let postAdminSsoList = (~body: postAdminSsoListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3571
|
+
let postAdminSsoList = async (~body: postAdminSsoListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoListResponse => {
|
|
3839
3572
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoListRequestSchema)
|
|
3840
|
-
fetch(
|
|
3573
|
+
let response = await fetch(
|
|
3841
3574
|
~url="/admin/sso/list",
|
|
3842
3575
|
~method_="POST",
|
|
3843
3576
|
~body=Some(jsonBody),
|
|
3844
|
-
)
|
|
3845
|
-
|
|
3846
|
-
value
|
|
3847
|
-
->Promise.resolve
|
|
3848
|
-
})
|
|
3577
|
+
)
|
|
3578
|
+
response->S.parseOrThrow(postAdminSsoListResponseSchema)
|
|
3849
3579
|
}
|
|
3850
3580
|
|
|
3851
3581
|
type postAdminSsoUpdateRequest = {
|
|
@@ -3889,17 +3619,14 @@ No description provided.
|
|
|
3889
3619
|
|
|
3890
3620
|
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3891
3621
|
*/
|
|
3892
|
-
let postAdminSsoUpdate = (~body: postAdminSsoUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3622
|
+
let postAdminSsoUpdate = async (~body: postAdminSsoUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoUpdateResponse => {
|
|
3893
3623
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoUpdateRequestSchema)
|
|
3894
|
-
fetch(
|
|
3624
|
+
let response = await fetch(
|
|
3895
3625
|
~url="/admin/sso/update",
|
|
3896
3626
|
~method_="POST",
|
|
3897
3627
|
~body=Some(jsonBody),
|
|
3898
|
-
)
|
|
3628
|
+
)
|
|
3899
3629
|
let _ = response
|
|
3900
|
-
()
|
|
3901
|
-
->Promise.resolve
|
|
3902
|
-
})
|
|
3903
3630
|
}
|
|
3904
3631
|
|
|
3905
3632
|
type postAdminSuspendUserRequest = {
|
|
@@ -3919,17 +3646,14 @@ No description provided.
|
|
|
3919
3646
|
|
|
3920
3647
|
**Credential required**: *Yes* / **Permission**: *write:admin:suspend-user*
|
|
3921
3648
|
*/
|
|
3922
|
-
let postAdminSuspendUser = (~body: postAdminSuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3649
|
+
let postAdminSuspendUser = async (~body: postAdminSuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSuspendUserResponse => {
|
|
3923
3650
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSuspendUserRequestSchema)
|
|
3924
|
-
fetch(
|
|
3651
|
+
let response = await fetch(
|
|
3925
3652
|
~url="/admin/suspend-user",
|
|
3926
3653
|
~method_="POST",
|
|
3927
3654
|
~body=Some(jsonBody),
|
|
3928
|
-
)
|
|
3655
|
+
)
|
|
3929
3656
|
let _ = response
|
|
3930
|
-
()
|
|
3931
|
-
->Promise.resolve
|
|
3932
|
-
})
|
|
3933
3657
|
}
|
|
3934
3658
|
|
|
3935
3659
|
type postAdminSystemWebhookCreateRequest = {
|
|
@@ -3960,17 +3684,14 @@ No description provided.
|
|
|
3960
3684
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3961
3685
|
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3962
3686
|
*/
|
|
3963
|
-
let postAdminSystemWebhookCreate = (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3687
|
+
let postAdminSystemWebhookCreate = async (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookCreateResponse => {
|
|
3964
3688
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookCreateRequestSchema)
|
|
3965
|
-
fetch(
|
|
3689
|
+
let response = await fetch(
|
|
3966
3690
|
~url="/admin/system-webhook/create",
|
|
3967
3691
|
~method_="POST",
|
|
3968
3692
|
~body=Some(jsonBody),
|
|
3969
|
-
)
|
|
3970
|
-
|
|
3971
|
-
value
|
|
3972
|
-
->Promise.resolve
|
|
3973
|
-
})
|
|
3693
|
+
)
|
|
3694
|
+
response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
|
|
3974
3695
|
}
|
|
3975
3696
|
|
|
3976
3697
|
type postAdminSystemWebhookDeleteRequest = {
|
|
@@ -3991,17 +3712,14 @@ No description provided.
|
|
|
3991
3712
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3992
3713
|
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3993
3714
|
*/
|
|
3994
|
-
let postAdminSystemWebhookDelete = (~body: postAdminSystemWebhookDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3715
|
+
let postAdminSystemWebhookDelete = async (~body: postAdminSystemWebhookDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookDeleteResponse => {
|
|
3995
3716
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookDeleteRequestSchema)
|
|
3996
|
-
fetch(
|
|
3717
|
+
let response = await fetch(
|
|
3997
3718
|
~url="/admin/system-webhook/delete",
|
|
3998
3719
|
~method_="POST",
|
|
3999
3720
|
~body=Some(jsonBody),
|
|
4000
|
-
)
|
|
3721
|
+
)
|
|
4001
3722
|
let _ = response
|
|
4002
|
-
()
|
|
4003
|
-
->Promise.resolve
|
|
4004
|
-
})
|
|
4005
3723
|
}
|
|
4006
3724
|
|
|
4007
3725
|
type postAdminSystemWebhookListRequest = {
|
|
@@ -4026,17 +3744,14 @@ No description provided.
|
|
|
4026
3744
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
4027
3745
|
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
4028
3746
|
*/
|
|
4029
|
-
let postAdminSystemWebhookList = (~body: postAdminSystemWebhookListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3747
|
+
let postAdminSystemWebhookList = async (~body: postAdminSystemWebhookListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookListResponse => {
|
|
4030
3748
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookListRequestSchema)
|
|
4031
|
-
fetch(
|
|
3749
|
+
let response = await fetch(
|
|
4032
3750
|
~url="/admin/system-webhook/list",
|
|
4033
3751
|
~method_="POST",
|
|
4034
3752
|
~body=Some(jsonBody),
|
|
4035
|
-
)
|
|
4036
|
-
|
|
4037
|
-
value
|
|
4038
|
-
->Promise.resolve
|
|
4039
|
-
})
|
|
3753
|
+
)
|
|
3754
|
+
response->S.parseOrThrow(postAdminSystemWebhookListResponseSchema)
|
|
4040
3755
|
}
|
|
4041
3756
|
|
|
4042
3757
|
type postAdminSystemWebhookShowRequest = {
|
|
@@ -4059,17 +3774,14 @@ No description provided.
|
|
|
4059
3774
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
4060
3775
|
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
4061
3776
|
*/
|
|
4062
|
-
let postAdminSystemWebhookShow = (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3777
|
+
let postAdminSystemWebhookShow = async (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookShowResponse => {
|
|
4063
3778
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookShowRequestSchema)
|
|
4064
|
-
fetch(
|
|
3779
|
+
let response = await fetch(
|
|
4065
3780
|
~url="/admin/system-webhook/show",
|
|
4066
3781
|
~method_="POST",
|
|
4067
3782
|
~body=Some(jsonBody),
|
|
4068
|
-
)
|
|
4069
|
-
|
|
4070
|
-
value
|
|
4071
|
-
->Promise.resolve
|
|
4072
|
-
})
|
|
3783
|
+
)
|
|
3784
|
+
response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
|
|
4073
3785
|
}
|
|
4074
3786
|
|
|
4075
3787
|
type postAdminSystemWebhookUpdateRequest = {
|
|
@@ -4102,17 +3814,14 @@ No description provided.
|
|
|
4102
3814
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
4103
3815
|
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
4104
3816
|
*/
|
|
4105
|
-
let postAdminSystemWebhookUpdate = (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3817
|
+
let postAdminSystemWebhookUpdate = async (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookUpdateResponse => {
|
|
4106
3818
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookUpdateRequestSchema)
|
|
4107
|
-
fetch(
|
|
3819
|
+
let response = await fetch(
|
|
4108
3820
|
~url="/admin/system-webhook/update",
|
|
4109
3821
|
~method_="POST",
|
|
4110
3822
|
~body=Some(jsonBody),
|
|
4111
|
-
)
|
|
4112
|
-
|
|
4113
|
-
value
|
|
4114
|
-
->Promise.resolve
|
|
4115
|
-
})
|
|
3823
|
+
)
|
|
3824
|
+
response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
|
|
4116
3825
|
}
|
|
4117
3826
|
|
|
4118
3827
|
type postAdminUnsetUserAvatarRequest = {
|
|
@@ -4132,17 +3841,14 @@ No description provided.
|
|
|
4132
3841
|
|
|
4133
3842
|
**Credential required**: *Yes* / **Permission**: *write:admin:user-avatar*
|
|
4134
3843
|
*/
|
|
4135
|
-
let postAdminUnsetUserAvatar = (~body: postAdminUnsetUserAvatarRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3844
|
+
let postAdminUnsetUserAvatar = async (~body: postAdminUnsetUserAvatarRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserAvatarResponse => {
|
|
4136
3845
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserAvatarRequestSchema)
|
|
4137
|
-
fetch(
|
|
3846
|
+
let response = await fetch(
|
|
4138
3847
|
~url="/admin/unset-user-avatar",
|
|
4139
3848
|
~method_="POST",
|
|
4140
3849
|
~body=Some(jsonBody),
|
|
4141
|
-
)
|
|
3850
|
+
)
|
|
4142
3851
|
let _ = response
|
|
4143
|
-
()
|
|
4144
|
-
->Promise.resolve
|
|
4145
|
-
})
|
|
4146
3852
|
}
|
|
4147
3853
|
|
|
4148
3854
|
type postAdminUnsetUserBannerRequest = {
|
|
@@ -4162,17 +3868,14 @@ No description provided.
|
|
|
4162
3868
|
|
|
4163
3869
|
**Credential required**: *Yes* / **Permission**: *write:admin:user-banner*
|
|
4164
3870
|
*/
|
|
4165
|
-
let postAdminUnsetUserBanner = (~body: postAdminUnsetUserBannerRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3871
|
+
let postAdminUnsetUserBanner = async (~body: postAdminUnsetUserBannerRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserBannerResponse => {
|
|
4166
3872
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserBannerRequestSchema)
|
|
4167
|
-
fetch(
|
|
3873
|
+
let response = await fetch(
|
|
4168
3874
|
~url="/admin/unset-user-banner",
|
|
4169
3875
|
~method_="POST",
|
|
4170
3876
|
~body=Some(jsonBody),
|
|
4171
|
-
)
|
|
3877
|
+
)
|
|
4172
3878
|
let _ = response
|
|
4173
|
-
()
|
|
4174
|
-
->Promise.resolve
|
|
4175
|
-
})
|
|
4176
3879
|
}
|
|
4177
3880
|
|
|
4178
3881
|
type postAdminUnsetUserMutualLinkRequest = {
|
|
@@ -4194,17 +3897,14 @@ No description provided.
|
|
|
4194
3897
|
|
|
4195
3898
|
**Credential required**: *Yes* / **Permission**: *write:admin:user-mutual-link*
|
|
4196
3899
|
*/
|
|
4197
|
-
let postAdminUnsetUserMutualLink = (~body: postAdminUnsetUserMutualLinkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3900
|
+
let postAdminUnsetUserMutualLink = async (~body: postAdminUnsetUserMutualLinkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserMutualLinkResponse => {
|
|
4198
3901
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserMutualLinkRequestSchema)
|
|
4199
|
-
fetch(
|
|
3902
|
+
let response = await fetch(
|
|
4200
3903
|
~url="/admin/unset-user-mutual-link",
|
|
4201
3904
|
~method_="POST",
|
|
4202
3905
|
~body=Some(jsonBody),
|
|
4203
|
-
)
|
|
3906
|
+
)
|
|
4204
3907
|
let _ = response
|
|
4205
|
-
()
|
|
4206
|
-
->Promise.resolve
|
|
4207
|
-
})
|
|
4208
3908
|
}
|
|
4209
3909
|
|
|
4210
3910
|
type postAdminUnsuspendUserRequest = {
|
|
@@ -4224,17 +3924,14 @@ No description provided.
|
|
|
4224
3924
|
|
|
4225
3925
|
**Credential required**: *Yes* / **Permission**: *write:admin:unsuspend-user*
|
|
4226
3926
|
*/
|
|
4227
|
-
let postAdminUnsuspendUser = (~body: postAdminUnsuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3927
|
+
let postAdminUnsuspendUser = async (~body: postAdminUnsuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsuspendUserResponse => {
|
|
4228
3928
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsuspendUserRequestSchema)
|
|
4229
|
-
fetch(
|
|
3929
|
+
let response = await fetch(
|
|
4230
3930
|
~url="/admin/unsuspend-user",
|
|
4231
3931
|
~method_="POST",
|
|
4232
3932
|
~body=Some(jsonBody),
|
|
4233
|
-
)
|
|
3933
|
+
)
|
|
4234
3934
|
let _ = response
|
|
4235
|
-
()
|
|
4236
|
-
->Promise.resolve
|
|
4237
|
-
})
|
|
4238
3935
|
}
|
|
4239
3936
|
|
|
4240
3937
|
type postAdminUpdateAbuseUserReportRequest = {
|
|
@@ -4256,17 +3953,14 @@ No description provided.
|
|
|
4256
3953
|
|
|
4257
3954
|
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
4258
3955
|
*/
|
|
4259
|
-
let postAdminUpdateAbuseUserReport = (~body: postAdminUpdateAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3956
|
+
let postAdminUpdateAbuseUserReport = async (~body: postAdminUpdateAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateAbuseUserReportResponse => {
|
|
4260
3957
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateAbuseUserReportRequestSchema)
|
|
4261
|
-
fetch(
|
|
3958
|
+
let response = await fetch(
|
|
4262
3959
|
~url="/admin/update-abuse-user-report",
|
|
4263
3960
|
~method_="POST",
|
|
4264
3961
|
~body=Some(jsonBody),
|
|
4265
|
-
)
|
|
3962
|
+
)
|
|
4266
3963
|
let _ = response
|
|
4267
|
-
()
|
|
4268
|
-
->Promise.resolve
|
|
4269
|
-
})
|
|
4270
3964
|
}
|
|
4271
3965
|
|
|
4272
3966
|
type postAdminUpdateMetaRequest = {
|
|
@@ -4514,17 +4208,14 @@ No description provided.
|
|
|
4514
4208
|
|
|
4515
4209
|
**Credential required**: *Yes* / **Permission**: *write:admin:meta*
|
|
4516
4210
|
*/
|
|
4517
|
-
let postAdminUpdateMeta = (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4211
|
+
let postAdminUpdateMeta = async (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateMetaResponse => {
|
|
4518
4212
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateMetaRequestSchema)
|
|
4519
|
-
fetch(
|
|
4213
|
+
let response = await fetch(
|
|
4520
4214
|
~url="/admin/update-meta",
|
|
4521
4215
|
~method_="POST",
|
|
4522
4216
|
~body=Some(jsonBody),
|
|
4523
|
-
)
|
|
4217
|
+
)
|
|
4524
4218
|
let _ = response
|
|
4525
|
-
()
|
|
4526
|
-
->Promise.resolve
|
|
4527
|
-
})
|
|
4528
4219
|
}
|
|
4529
4220
|
|
|
4530
4221
|
type postAdminUpdateProxyAccountRequest = {
|
|
@@ -4546,17 +4237,14 @@ No description provided.
|
|
|
4546
4237
|
|
|
4547
4238
|
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
4548
4239
|
*/
|
|
4549
|
-
let postAdminUpdateProxyAccount = (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4240
|
+
let postAdminUpdateProxyAccount = async (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateProxyAccountResponse => {
|
|
4550
4241
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateProxyAccountRequestSchema)
|
|
4551
|
-
fetch(
|
|
4242
|
+
let response = await fetch(
|
|
4552
4243
|
~url="/admin/update-proxy-account",
|
|
4553
4244
|
~method_="POST",
|
|
4554
4245
|
~body=Some(jsonBody),
|
|
4555
|
-
)
|
|
4556
|
-
|
|
4557
|
-
value
|
|
4558
|
-
->Promise.resolve
|
|
4559
|
-
})
|
|
4246
|
+
)
|
|
4247
|
+
response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
|
|
4560
4248
|
}
|
|
4561
4249
|
|
|
4562
4250
|
type postAdminUpdateUserNameRequest = {
|
|
@@ -4578,17 +4266,14 @@ No description provided.
|
|
|
4578
4266
|
|
|
4579
4267
|
**Credential required**: *Yes* / **Permission**: *write:admin:user-name*
|
|
4580
4268
|
*/
|
|
4581
|
-
let postAdminUpdateUserName = (~body: postAdminUpdateUserNameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4269
|
+
let postAdminUpdateUserName = async (~body: postAdminUpdateUserNameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateUserNameResponse => {
|
|
4582
4270
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateUserNameRequestSchema)
|
|
4583
|
-
fetch(
|
|
4271
|
+
let response = await fetch(
|
|
4584
4272
|
~url="/admin/update-user-name",
|
|
4585
4273
|
~method_="POST",
|
|
4586
4274
|
~body=Some(jsonBody),
|
|
4587
|
-
)
|
|
4275
|
+
)
|
|
4588
4276
|
let _ = response
|
|
4589
|
-
()
|
|
4590
|
-
->Promise.resolve
|
|
4591
|
-
})
|
|
4592
4277
|
}
|
|
4593
4278
|
|
|
4594
4279
|
type postAdminUpdateUserNoteRequest = {
|
|
@@ -4610,17 +4295,14 @@ No description provided.
|
|
|
4610
4295
|
|
|
4611
4296
|
**Credential required**: *Yes* / **Permission**: *write:admin:user-note*
|
|
4612
4297
|
*/
|
|
4613
|
-
let postAdminUpdateUserNote = (~body: postAdminUpdateUserNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4298
|
+
let postAdminUpdateUserNote = async (~body: postAdminUpdateUserNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateUserNoteResponse => {
|
|
4614
4299
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateUserNoteRequestSchema)
|
|
4615
|
-
fetch(
|
|
4300
|
+
let response = await fetch(
|
|
4616
4301
|
~url="/admin/update-user-note",
|
|
4617
4302
|
~method_="POST",
|
|
4618
4303
|
~body=Some(jsonBody),
|
|
4619
|
-
)
|
|
4304
|
+
)
|
|
4620
4305
|
let _ = response
|
|
4621
|
-
()
|
|
4622
|
-
->Promise.resolve
|
|
4623
|
-
})
|
|
4624
4306
|
}
|
|
4625
4307
|
|
|
4626
4308
|
type postV2AdminEmojiListRequest_1 = {
|
|
@@ -4698,15 +4380,12 @@ No description provided.
|
|
|
4698
4380
|
|
|
4699
4381
|
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
4700
4382
|
*/
|
|
4701
|
-
let postV2AdminEmojiList = (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4383
|
+
let postV2AdminEmojiList = async (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postV2AdminEmojiListResponse => {
|
|
4702
4384
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postV2AdminEmojiListRequestSchema)
|
|
4703
|
-
fetch(
|
|
4385
|
+
let response = await fetch(
|
|
4704
4386
|
~url="/v2/admin/emoji/list",
|
|
4705
4387
|
~method_="POST",
|
|
4706
4388
|
~body=Some(jsonBody),
|
|
4707
|
-
)
|
|
4708
|
-
|
|
4709
|
-
value
|
|
4710
|
-
->Promise.resolve
|
|
4711
|
-
})
|
|
4389
|
+
)
|
|
4390
|
+
response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
|
|
4712
4391
|
}
|