@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.
Files changed (113) hide show
  1. package/lib/es6/src/Misskey.mjs +133 -156
  2. package/lib/es6/src/bindings/Ofetch.mjs +2 -0
  3. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
  4. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
  5. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
  6. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
  7. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
  8. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
  9. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
  10. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
  11. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
  12. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
  13. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
  14. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
  15. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
  16. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
  17. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
  18. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
  19. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
  20. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
  21. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
  22. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
  23. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
  24. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
  25. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
  26. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
  27. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
  28. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
  29. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
  30. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
  31. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
  32. package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
  33. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
  34. package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
  35. package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
  36. package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
  37. package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
  38. package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
  39. package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
  40. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
  41. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
  42. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
  43. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
  44. package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
  45. package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
  46. package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
  47. package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
  48. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
  49. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
  50. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
  51. package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
  52. package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
  53. package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
  54. package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
  55. package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
  56. package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
  57. package/package.json +3 -2
  58. package/src/Misskey.res +92 -149
  59. package/src/bindings/Ofetch.res +14 -0
  60. package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
  61. package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
  62. package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
  63. package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
  64. package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
  65. package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
  66. package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
  67. package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
  68. package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
  69. package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
  70. package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
  71. package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
  72. package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
  73. package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
  74. package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
  75. package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
  76. package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
  77. package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
  78. package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
  79. package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
  80. package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
  81. package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
  82. package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
  83. package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
  84. package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
  85. package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
  86. package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
  87. package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
  88. package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
  89. package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
  90. package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
  91. package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
  92. package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
  93. package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
  94. package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
  95. package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
  96. package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
  97. package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
  98. package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
  99. package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
  100. package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
  101. package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
  102. package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
  103. package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
  104. package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
  105. package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
  106. package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
  107. package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
  108. package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
  109. package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
  110. package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
  111. package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
  112. package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
  113. package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
@@ -33,17 +33,14 @@ No description provided.
33
33
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
34
34
  **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
35
35
  */
36
- let postAdminAbuseReportNotificationRecipientCreate = (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientCreateResponse> => {
36
+ let postAdminAbuseReportNotificationRecipientCreate = async (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientCreateResponse => {
37
37
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientCreateRequestSchema)
38
- fetch(
38
+ let response = await fetch(
39
39
  ~url="/admin/abuse-report/notification-recipient/create",
40
40
  ~method_="POST",
41
41
  ~body=Some(jsonBody),
42
- )->Promise.then(response => {
43
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
44
- value
45
- ->Promise.resolve
46
- })
42
+ )
43
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
47
44
  }
48
45
 
49
46
  type postAdminAbuseReportNotificationRecipientShowRequest = {
@@ -66,17 +63,14 @@ No description provided.
66
63
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
67
64
  **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
68
65
  */
69
- let postAdminAbuseReportNotificationRecipientShow = (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientShowResponse> => {
66
+ let postAdminAbuseReportNotificationRecipientShow = async (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientShowResponse => {
70
67
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientShowRequestSchema)
71
- fetch(
68
+ let response = await fetch(
72
69
  ~url="/admin/abuse-report/notification-recipient/show",
73
70
  ~method_="POST",
74
71
  ~body=Some(jsonBody),
75
- )->Promise.then(response => {
76
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
77
- value
78
- ->Promise.resolve
79
- })
72
+ )
73
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
80
74
  }
81
75
 
82
76
  type postAdminAbuseReportNotificationRecipientUpdateRequest = {
@@ -109,17 +103,14 @@ No description provided.
109
103
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
110
104
  **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
111
105
  */
112
- let postAdminAbuseReportNotificationRecipientUpdate = (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientUpdateResponse> => {
106
+ let postAdminAbuseReportNotificationRecipientUpdate = async (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientUpdateResponse => {
113
107
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientUpdateRequestSchema)
114
- fetch(
108
+ let response = await fetch(
115
109
  ~url="/admin/abuse-report/notification-recipient/update",
116
110
  ~method_="POST",
117
111
  ~body=Some(jsonBody),
118
- )->Promise.then(response => {
119
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
120
- value
121
- ->Promise.resolve
122
- })
112
+ )
113
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
123
114
  }
124
115
 
125
116
  type postAdminAbuseUserReportsRequest = {
@@ -187,17 +178,14 @@ No description provided.
187
178
 
188
179
  **Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
189
180
  */
190
- let postAdminAbuseUserReports = (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseUserReportsResponse> => {
181
+ let postAdminAbuseUserReports = async (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseUserReportsResponse => {
191
182
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseUserReportsRequestSchema)
192
- fetch(
183
+ let response = await fetch(
193
184
  ~url="/admin/abuse-user-reports",
194
185
  ~method_="POST",
195
186
  ~body=Some(jsonBody),
196
- )->Promise.then(response => {
197
- let value = response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
198
- value
199
- ->Promise.resolve
200
- })
187
+ )
188
+ response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
201
189
  }
202
190
 
203
191
  type postAdminAccountsCreateRequest = {
@@ -227,17 +215,14 @@ No description provided.
227
215
 
228
216
  **Credential required**: *No*
229
217
  */
230
- let postAdminAccountsCreate = (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsCreateResponse> => {
218
+ let postAdminAccountsCreate = async (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsCreateResponse => {
231
219
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsCreateRequestSchema)
232
- fetch(
220
+ let response = await fetch(
233
221
  ~url="/admin/accounts/create",
234
222
  ~method_="POST",
235
223
  ~body=Some(jsonBody),
236
- )->Promise.then(response => {
237
- let value = response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
238
- value
239
- ->Promise.resolve
240
- })
224
+ )
225
+ response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
241
226
  }
242
227
 
243
228
  type postAdminAccountsDeleteRequest = {
@@ -257,17 +242,14 @@ No description provided.
257
242
 
258
243
  **Credential required**: *Yes* / **Permission**: *write:admin:account*
259
244
  */
260
- let postAdminAccountsDelete = (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsDeleteResponse> => {
245
+ let postAdminAccountsDelete = async (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsDeleteResponse => {
261
246
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsDeleteRequestSchema)
262
- fetch(
247
+ let response = await fetch(
263
248
  ~url="/admin/accounts/delete",
264
249
  ~method_="POST",
265
250
  ~body=Some(jsonBody),
266
- )->Promise.then(response => {
251
+ )
267
252
  let _ = response
268
- ()
269
- ->Promise.resolve
270
- })
271
253
  }
272
254
 
273
255
  type postAdminAccountsFindByEmailRequest = {
@@ -289,17 +271,14 @@ No description provided.
289
271
 
290
272
  **Credential required**: *Yes* / **Permission**: *read:admin:account*
291
273
  */
292
- let postAdminAccountsFindByEmail = (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsFindByEmailResponse> => {
274
+ let postAdminAccountsFindByEmail = async (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsFindByEmailResponse => {
293
275
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsFindByEmailRequestSchema)
294
- fetch(
276
+ let response = await fetch(
295
277
  ~url="/admin/accounts/find-by-email",
296
278
  ~method_="POST",
297
279
  ~body=Some(jsonBody),
298
- )->Promise.then(response => {
299
- let value = response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
300
- value
301
- ->Promise.resolve
302
- })
280
+ )
281
+ response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
303
282
  }
304
283
 
305
284
  type postAdminAdCreateRequest = {
@@ -339,17 +318,14 @@ No description provided.
339
318
 
340
319
  **Credential required**: *Yes* / **Permission**: *write:admin:ad*
341
320
  */
342
- let postAdminAdCreate = (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdCreateResponse> => {
321
+ let postAdminAdCreate = async (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdCreateResponse => {
343
322
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdCreateRequestSchema)
344
- fetch(
323
+ let response = await fetch(
345
324
  ~url="/admin/ad/create",
346
325
  ~method_="POST",
347
326
  ~body=Some(jsonBody),
348
- )->Promise.then(response => {
349
- let value = response->S.parseOrThrow(postAdminAdCreateResponseSchema)
350
- value
351
- ->Promise.resolve
352
- })
327
+ )
328
+ response->S.parseOrThrow(postAdminAdCreateResponseSchema)
353
329
  }
354
330
 
355
331
  type postAdminAdListRequest = {
@@ -381,17 +357,14 @@ No description provided.
381
357
 
382
358
  **Credential required**: *Yes* / **Permission**: *read:admin:ad*
383
359
  */
384
- let postAdminAdList = (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdListResponse> => {
360
+ let postAdminAdList = async (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdListResponse => {
385
361
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdListRequestSchema)
386
- fetch(
362
+ let response = await fetch(
387
363
  ~url="/admin/ad/list",
388
364
  ~method_="POST",
389
365
  ~body=Some(jsonBody),
390
- )->Promise.then(response => {
391
- let value = response->S.parseOrThrow(postAdminAdListResponseSchema)
392
- value
393
- ->Promise.resolve
394
- })
366
+ )
367
+ response->S.parseOrThrow(postAdminAdListResponseSchema)
395
368
  }
396
369
 
397
370
  type postAdminAnnouncementsCreateRequest = {
@@ -443,17 +416,14 @@ No description provided.
443
416
 
444
417
  **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
445
418
  */
446
- let postAdminAnnouncementsCreate = (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsCreateResponse> => {
419
+ let postAdminAnnouncementsCreate = async (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsCreateResponse => {
447
420
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsCreateRequestSchema)
448
- fetch(
421
+ let response = await fetch(
449
422
  ~url="/admin/announcements/create",
450
423
  ~method_="POST",
451
424
  ~body=Some(jsonBody),
452
- )->Promise.then(response => {
453
- let value = response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
454
- value
455
- ->Promise.resolve
456
- })
425
+ )
426
+ response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
457
427
  }
458
428
 
459
429
  type postAdminAnnouncementsListRequest = {
@@ -521,17 +491,14 @@ No description provided.
521
491
 
522
492
  **Credential required**: *Yes* / **Permission**: *read:admin:announcements*
523
493
  */
524
- let postAdminAnnouncementsList = (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsListResponse> => {
494
+ let postAdminAnnouncementsList = async (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsListResponse => {
525
495
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsListRequestSchema)
526
- fetch(
496
+ let response = await fetch(
527
497
  ~url="/admin/announcements/list",
528
498
  ~method_="POST",
529
499
  ~body=Some(jsonBody),
530
- )->Promise.then(response => {
531
- let value = response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
532
- value
533
- ->Promise.resolve
534
- })
500
+ )
501
+ response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
535
502
  }
536
503
 
537
504
  type postAdminAnnouncementsUpdateRequest = {
@@ -569,17 +536,14 @@ No description provided.
569
536
 
570
537
  **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
571
538
  */
572
- let postAdminAnnouncementsUpdate = (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsUpdateResponse> => {
539
+ let postAdminAnnouncementsUpdate = async (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsUpdateResponse => {
573
540
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsUpdateRequestSchema)
574
- fetch(
541
+ let response = await fetch(
575
542
  ~url="/admin/announcements/update",
576
543
  ~method_="POST",
577
544
  ~body=Some(jsonBody),
578
- )->Promise.then(response => {
545
+ )
579
546
  let _ = response
580
- ()
581
- ->Promise.resolve
582
- })
583
547
  }
584
548
 
585
549
  type postAdminAvatarDecorationsCopyRequest = {
@@ -605,17 +569,14 @@ No description provided.
605
569
 
606
570
  **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
607
571
  */
608
- let postAdminAvatarDecorationsCopy = (~body: postAdminAvatarDecorationsCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsCopyResponse> => {
572
+ let postAdminAvatarDecorationsCopy = async (~body: postAdminAvatarDecorationsCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsCopyResponse => {
609
573
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsCopyRequestSchema)
610
- fetch(
574
+ let response = await fetch(
611
575
  ~url="/admin/avatar-decorations/copy",
612
576
  ~method_="POST",
613
577
  ~body=Some(jsonBody),
614
- )->Promise.then(response => {
615
- let value = response->S.parseOrThrow(postAdminAvatarDecorationsCopyResponseSchema)
616
- value
617
- ->Promise.resolve
618
- })
578
+ )
579
+ response->S.parseOrThrow(postAdminAvatarDecorationsCopyResponseSchema)
619
580
  }
620
581
 
621
582
  type postAdminAvatarDecorationsListRequest = {
@@ -667,17 +628,14 @@ No description provided.
667
628
 
668
629
  **Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
669
630
  */
670
- let postAdminAvatarDecorationsList = (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsListResponse> => {
631
+ let postAdminAvatarDecorationsList = async (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListResponse => {
671
632
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRequestSchema)
672
- fetch(
633
+ let response = await fetch(
673
634
  ~url="/admin/avatar-decorations/list",
674
635
  ~method_="POST",
675
636
  ~body=Some(jsonBody),
676
- )->Promise.then(response => {
677
- let value = response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
678
- value
679
- ->Promise.resolve
680
- })
637
+ )
638
+ response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
681
639
  }
682
640
 
683
641
  type postAdminAvatarDecorationsListRemoteRequest = {
@@ -725,17 +683,14 @@ No description provided.
725
683
 
726
684
  **Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
727
685
  */
728
- let postAdminAvatarDecorationsListRemote = (~body: postAdminAvatarDecorationsListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsListRemoteResponse> => {
686
+ let postAdminAvatarDecorationsListRemote = async (~body: postAdminAvatarDecorationsListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListRemoteResponse => {
729
687
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRemoteRequestSchema)
730
- fetch(
688
+ let response = await fetch(
731
689
  ~url="/admin/avatar-decorations/list-remote",
732
690
  ~method_="POST",
733
691
  ~body=Some(jsonBody),
734
- )->Promise.then(response => {
735
- let value = response->S.parseOrThrow(postAdminAvatarDecorationsListRemoteResponseSchema)
736
- value
737
- ->Promise.resolve
738
- })
692
+ )
693
+ response->S.parseOrThrow(postAdminAvatarDecorationsListRemoteResponseSchema)
739
694
  }
740
695
 
741
696
  type postAdminDeleteAccountRequest = {
@@ -755,17 +710,14 @@ No description provided.
755
710
 
756
711
  **Credential required**: *Yes* / **Permission**: *write:admin:delete-account*
757
712
  */
758
- let postAdminDeleteAccount = (~body: postAdminDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDeleteAccountResponse> => {
713
+ let postAdminDeleteAccount = async (~body: postAdminDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDeleteAccountResponse => {
759
714
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDeleteAccountRequestSchema)
760
- fetch(
715
+ let response = await fetch(
761
716
  ~url="/admin/delete-account",
762
717
  ~method_="POST",
763
718
  ~body=Some(jsonBody),
764
- )->Promise.then(response => {
719
+ )
765
720
  let _ = response
766
- ()
767
- ->Promise.resolve
768
- })
769
721
  }
770
722
 
771
723
  type postAdminDeleteAllFilesOfAUserRequest = {
@@ -785,17 +737,14 @@ No description provided.
785
737
 
786
738
  **Credential required**: *Yes* / **Permission**: *write:admin:delete-all-files-of-a-user*
787
739
  */
788
- let postAdminDeleteAllFilesOfAUser = (~body: postAdminDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDeleteAllFilesOfAUserResponse> => {
740
+ let postAdminDeleteAllFilesOfAUser = async (~body: postAdminDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDeleteAllFilesOfAUserResponse => {
789
741
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDeleteAllFilesOfAUserRequestSchema)
790
- fetch(
742
+ let response = await fetch(
791
743
  ~url="/admin/delete-all-files-of-a-user",
792
744
  ~method_="POST",
793
745
  ~body=Some(jsonBody),
794
- )->Promise.then(response => {
746
+ )
795
747
  let _ = response
796
- ()
797
- ->Promise.resolve
798
- })
799
748
  }
800
749
 
801
750
  type postAdminDriveFilesRequest = {
@@ -833,17 +782,14 @@ No description provided.
833
782
 
834
783
  **Credential required**: *Yes* / **Permission**: *read:admin:drive*
835
784
  */
836
- let postAdminDriveFiles = (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveFilesResponse> => {
785
+ let postAdminDriveFiles = async (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveFilesResponse => {
837
786
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveFilesRequestSchema)
838
- fetch(
787
+ let response = await fetch(
839
788
  ~url="/admin/drive/files",
840
789
  ~method_="POST",
841
790
  ~body=Some(jsonBody),
842
- )->Promise.then(response => {
843
- let value = response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
844
- value
845
- ->Promise.resolve
846
- })
791
+ )
792
+ response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
847
793
  }
848
794
 
849
795
  type postAdminDriveShowFileRequest_1 = {
@@ -939,17 +885,14 @@ No description provided.
939
885
 
940
886
  **Credential required**: *Yes* / **Permission**: *read:admin:drive*
941
887
  */
942
- let postAdminDriveShowFile = (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveShowFileResponse> => {
888
+ let postAdminDriveShowFile = async (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveShowFileResponse => {
943
889
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveShowFileRequestSchema)
944
- fetch(
890
+ let response = await fetch(
945
891
  ~url="/admin/drive/show-file",
946
892
  ~method_="POST",
947
893
  ~body=Some(jsonBody),
948
- )->Promise.then(response => {
949
- let value = response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
950
- value
951
- ->Promise.resolve
952
- })
894
+ )
895
+ response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
953
896
  }
954
897
 
955
898
  type postAdminEmojiAddRequest = {
@@ -985,17 +928,14 @@ No description provided.
985
928
 
986
929
  **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
987
930
  */
988
- let postAdminEmojiAdd = (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiAddResponse> => {
931
+ let postAdminEmojiAdd = async (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddResponse => {
989
932
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddRequestSchema)
990
- fetch(
933
+ let response = await fetch(
991
934
  ~url="/admin/emoji/add",
992
935
  ~method_="POST",
993
936
  ~body=Some(jsonBody),
994
- )->Promise.then(response => {
995
- let value = response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
996
- value
997
- ->Promise.resolve
998
- })
937
+ )
938
+ response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
999
939
  }
1000
940
 
1001
941
  type postAdminEmojiListRequest = {
@@ -1045,17 +985,14 @@ No description provided.
1045
985
 
1046
986
  **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1047
987
  */
1048
- let postAdminEmojiList = (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiListResponse> => {
988
+ let postAdminEmojiList = async (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListResponse => {
1049
989
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRequestSchema)
1050
- fetch(
990
+ let response = await fetch(
1051
991
  ~url="/admin/emoji/list",
1052
992
  ~method_="POST",
1053
993
  ~body=Some(jsonBody),
1054
- )->Promise.then(response => {
1055
- let value = response->S.parseOrThrow(postAdminEmojiListResponseSchema)
1056
- value
1057
- ->Promise.resolve
1058
- })
994
+ )
995
+ response->S.parseOrThrow(postAdminEmojiListResponseSchema)
1059
996
  }
1060
997
 
1061
998
  type postAdminEmojiListRemoteRequest = {
@@ -1107,17 +1044,14 @@ No description provided.
1107
1044
 
1108
1045
  **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1109
1046
  */
1110
- let postAdminEmojiListRemote = (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiListRemoteResponse> => {
1047
+ let postAdminEmojiListRemote = async (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListRemoteResponse => {
1111
1048
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRemoteRequestSchema)
1112
- fetch(
1049
+ let response = await fetch(
1113
1050
  ~url="/admin/emoji/list-remote",
1114
1051
  ~method_="POST",
1115
1052
  ~body=Some(jsonBody),
1116
- )->Promise.then(response => {
1117
- let value = response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
1118
- value
1119
- ->Promise.resolve
1120
- })
1053
+ )
1054
+ response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
1121
1055
  }
1122
1056
 
1123
1057
  type postAdminEmojiStealRequest = {
@@ -1145,17 +1079,14 @@ No description provided.
1145
1079
 
1146
1080
  **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1147
1081
  */
1148
- let postAdminEmojiSteal = (~body: postAdminEmojiStealRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiStealResponse> => {
1082
+ let postAdminEmojiSteal = async (~body: postAdminEmojiStealRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiStealResponse => {
1149
1083
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiStealRequestSchema)
1150
- fetch(
1084
+ let response = await fetch(
1151
1085
  ~url="/admin/emoji/steal",
1152
1086
  ~method_="POST",
1153
1087
  ~body=Some(jsonBody),
1154
- )->Promise.then(response => {
1155
- let value = response->S.parseOrThrow(postAdminEmojiStealResponseSchema)
1156
- value
1157
- ->Promise.resolve
1158
- })
1088
+ )
1089
+ response->S.parseOrThrow(postAdminEmojiStealResponseSchema)
1159
1090
  }
1160
1091
 
1161
1092
  type postAdminEmojiUpdateRequest = {
@@ -1187,17 +1118,14 @@ No description provided.
1187
1118
 
1188
1119
  **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1189
1120
  */
1190
- let postAdminEmojiUpdate = (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiUpdateResponse> => {
1121
+ let postAdminEmojiUpdate = async (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiUpdateResponse => {
1191
1122
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiUpdateRequestSchema)
1192
- fetch(
1123
+ let response = await fetch(
1193
1124
  ~url="/admin/emoji/update",
1194
1125
  ~method_="POST",
1195
1126
  ~body=Some(jsonBody),
1196
- )->Promise.then(response => {
1127
+ )
1197
1128
  let _ = response
1198
- ()
1199
- ->Promise.resolve
1200
- })
1201
1129
  }
1202
1130
 
1203
1131
  type postAdminInviteRevokeResponse = unit
@@ -1209,17 +1137,14 @@ No description provided.
1209
1137
 
1210
1138
  **Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
1211
1139
  */
1212
- let postAdminInviteRevoke = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminInviteRevokeResponse> => {
1140
+ let postAdminInviteRevoke = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteRevokeResponse => {
1213
1141
 
1214
- fetch(
1142
+ let response = await fetch(
1215
1143
  ~url="/admin/invite/revoke",
1216
1144
  ~method_="POST",
1217
1145
  ~body=None,
1218
- )->Promise.then(response => {
1146
+ )
1219
1147
  let _ = response
1220
- ()
1221
- ->Promise.resolve
1222
- })
1223
1148
  }
1224
1149
 
1225
1150
  type postAdminQueueClearRequest = {
@@ -1241,17 +1166,14 @@ No description provided.
1241
1166
 
1242
1167
  **Credential required**: *Yes* / **Permission**: *write:admin:queue*
1243
1168
  */
1244
- let postAdminQueueClear = (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueClearResponse> => {
1169
+ let postAdminQueueClear = async (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueClearResponse => {
1245
1170
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueClearRequestSchema)
1246
- fetch(
1171
+ let response = await fetch(
1247
1172
  ~url="/admin/queue/clear",
1248
1173
  ~method_="POST",
1249
1174
  ~body=Some(jsonBody),
1250
- )->Promise.then(response => {
1175
+ )
1251
1176
  let _ = response
1252
- ()
1253
- ->Promise.resolve
1254
- })
1255
1177
  }
1256
1178
 
1257
1179
  type postAdminQueueJobsRequest = {
@@ -1277,17 +1199,14 @@ No description provided.
1277
1199
 
1278
1200
  **Credential required**: *Yes* / **Permission**: *read:admin:queue*
1279
1201
  */
1280
- let postAdminQueueJobs = (~body: postAdminQueueJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueJobsResponse> => {
1202
+ let postAdminQueueJobs = async (~body: postAdminQueueJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueJobsResponse => {
1281
1203
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueJobsRequestSchema)
1282
- fetch(
1204
+ let response = await fetch(
1283
1205
  ~url="/admin/queue/jobs",
1284
1206
  ~method_="POST",
1285
1207
  ~body=Some(jsonBody),
1286
- )->Promise.then(response => {
1287
- let value = response->S.parseOrThrow(postAdminQueueJobsResponseSchema)
1288
- value
1289
- ->Promise.resolve
1290
- })
1208
+ )
1209
+ response->S.parseOrThrow(postAdminQueueJobsResponseSchema)
1291
1210
  }
1292
1211
 
1293
1212
  type postAdminQueuePromoteJobsRequest = {
@@ -1307,17 +1226,14 @@ No description provided.
1307
1226
 
1308
1227
  **Credential required**: *Yes* / **Permission**: *write:admin:queue*
1309
1228
  */
1310
- let postAdminQueuePromoteJobs = (~body: postAdminQueuePromoteJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueuePromoteJobsResponse> => {
1229
+ let postAdminQueuePromoteJobs = async (~body: postAdminQueuePromoteJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueuePromoteJobsResponse => {
1311
1230
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueuePromoteJobsRequestSchema)
1312
- fetch(
1231
+ let response = await fetch(
1313
1232
  ~url="/admin/queue/promote-jobs",
1314
1233
  ~method_="POST",
1315
1234
  ~body=Some(jsonBody),
1316
- )->Promise.then(response => {
1235
+ )
1317
1236
  let _ = response
1318
- ()
1319
- ->Promise.resolve
1320
- })
1321
1237
  }
1322
1238
 
1323
1239
  type postAdminQueueQueueStatsRequest = {
@@ -1411,17 +1327,14 @@ No description provided.
1411
1327
 
1412
1328
  **Credential required**: *Yes* / **Permission**: *read:admin:queue*
1413
1329
  */
1414
- let postAdminQueueQueueStats = (~body: postAdminQueueQueueStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueQueueStatsResponse> => {
1330
+ let postAdminQueueQueueStats = async (~body: postAdminQueueQueueStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueQueueStatsResponse => {
1415
1331
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueQueueStatsRequestSchema)
1416
- fetch(
1332
+ let response = await fetch(
1417
1333
  ~url="/admin/queue/queue-stats",
1418
1334
  ~method_="POST",
1419
1335
  ~body=Some(jsonBody),
1420
- )->Promise.then(response => {
1421
- let value = response->S.parseOrThrow(postAdminQueueQueueStatsResponseSchema)
1422
- value
1423
- ->Promise.resolve
1424
- })
1336
+ )
1337
+ response->S.parseOrThrow(postAdminQueueQueueStatsResponseSchema)
1425
1338
  }
1426
1339
 
1427
1340
  type postAdminQueueQueuesResponse_2 = {
@@ -1459,17 +1372,14 @@ No description provided.
1459
1372
 
1460
1373
  **Credential required**: *Yes* / **Permission**: *read:admin:queue*
1461
1374
  */
1462
- let postAdminQueueQueues = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueQueuesResponse> => {
1375
+ let postAdminQueueQueues = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueQueuesResponse => {
1463
1376
 
1464
- fetch(
1377
+ let response = await fetch(
1465
1378
  ~url="/admin/queue/queues",
1466
1379
  ~method_="POST",
1467
1380
  ~body=None,
1468
- )->Promise.then(response => {
1469
- let value = response->S.parseOrThrow(postAdminQueueQueuesResponseSchema)
1470
- value
1471
- ->Promise.resolve
1472
- })
1381
+ )
1382
+ response->S.parseOrThrow(postAdminQueueQueuesResponseSchema)
1473
1383
  }
1474
1384
 
1475
1385
  type postAdminQueueRemoveJobRequest = {
@@ -1491,17 +1401,14 @@ No description provided.
1491
1401
 
1492
1402
  **Credential required**: *Yes* / **Permission**: *write:admin:queue*
1493
1403
  */
1494
- let postAdminQueueRemoveJob = (~body: postAdminQueueRemoveJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueRemoveJobResponse> => {
1404
+ let postAdminQueueRemoveJob = async (~body: postAdminQueueRemoveJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueRemoveJobResponse => {
1495
1405
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueRemoveJobRequestSchema)
1496
- fetch(
1406
+ let response = await fetch(
1497
1407
  ~url="/admin/queue/remove-job",
1498
1408
  ~method_="POST",
1499
1409
  ~body=Some(jsonBody),
1500
- )->Promise.then(response => {
1410
+ )
1501
1411
  let _ = response
1502
- ()
1503
- ->Promise.resolve
1504
- })
1505
1412
  }
1506
1413
 
1507
1414
  type postAdminQueueRetryJobRequest = {
@@ -1523,17 +1430,14 @@ No description provided.
1523
1430
 
1524
1431
  **Credential required**: *Yes* / **Permission**: *write:admin:queue*
1525
1432
  */
1526
- let postAdminQueueRetryJob = (~body: postAdminQueueRetryJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueRetryJobResponse> => {
1433
+ let postAdminQueueRetryJob = async (~body: postAdminQueueRetryJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueRetryJobResponse => {
1527
1434
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueRetryJobRequestSchema)
1528
- fetch(
1435
+ let response = await fetch(
1529
1436
  ~url="/admin/queue/retry-job",
1530
1437
  ~method_="POST",
1531
1438
  ~body=Some(jsonBody),
1532
- )->Promise.then(response => {
1439
+ )
1533
1440
  let _ = response
1534
- ()
1535
- ->Promise.resolve
1536
- })
1537
1441
  }
1538
1442
 
1539
1443
  type postAdminQueueShowJobRequest = {
@@ -1557,17 +1461,14 @@ No description provided.
1557
1461
 
1558
1462
  **Credential required**: *Yes* / **Permission**: *read:admin:queue*
1559
1463
  */
1560
- let postAdminQueueShowJob = (~body: postAdminQueueShowJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueShowJobResponse> => {
1464
+ let postAdminQueueShowJob = async (~body: postAdminQueueShowJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueShowJobResponse => {
1561
1465
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueShowJobRequestSchema)
1562
- fetch(
1466
+ let response = await fetch(
1563
1467
  ~url="/admin/queue/show-job",
1564
1468
  ~method_="POST",
1565
1469
  ~body=Some(jsonBody),
1566
- )->Promise.then(response => {
1567
- let value = response->S.parseOrThrow(postAdminQueueShowJobResponseSchema)
1568
- value
1569
- ->Promise.resolve
1570
- })
1470
+ )
1471
+ response->S.parseOrThrow(postAdminQueueShowJobResponseSchema)
1571
1472
  }
1572
1473
 
1573
1474
  type postAdminQueueShowJobLogsRequest = {
@@ -1591,17 +1492,14 @@ No description provided.
1591
1492
 
1592
1493
  **Credential required**: *Yes* / **Permission**: *read:admin:queue*
1593
1494
  */
1594
- let postAdminQueueShowJobLogs = (~body: postAdminQueueShowJobLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueShowJobLogsResponse> => {
1495
+ let postAdminQueueShowJobLogs = async (~body: postAdminQueueShowJobLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueShowJobLogsResponse => {
1595
1496
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueShowJobLogsRequestSchema)
1596
- fetch(
1497
+ let response = await fetch(
1597
1498
  ~url="/admin/queue/show-job-logs",
1598
1499
  ~method_="POST",
1599
1500
  ~body=Some(jsonBody),
1600
- )->Promise.then(response => {
1601
- let value = response->S.parseOrThrow(postAdminQueueShowJobLogsResponseSchema)
1602
- value
1603
- ->Promise.resolve
1604
- })
1501
+ )
1502
+ response->S.parseOrThrow(postAdminQueueShowJobLogsResponseSchema)
1605
1503
  }
1606
1504
 
1607
1505
  type postAdminResolveAbuseUserReportRequest = {
@@ -1623,17 +1521,14 @@ No description provided.
1623
1521
 
1624
1522
  **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
1625
1523
  */
1626
- let postAdminResolveAbuseUserReport = (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminResolveAbuseUserReportResponse> => {
1524
+ let postAdminResolveAbuseUserReport = async (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResolveAbuseUserReportResponse => {
1627
1525
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResolveAbuseUserReportRequestSchema)
1628
- fetch(
1526
+ let response = await fetch(
1629
1527
  ~url="/admin/resolve-abuse-user-report",
1630
1528
  ~method_="POST",
1631
1529
  ~body=Some(jsonBody),
1632
- )->Promise.then(response => {
1530
+ )
1633
1531
  let _ = response
1634
- ()
1635
- ->Promise.resolve
1636
- })
1637
1532
  }
1638
1533
 
1639
1534
  type postAdminRolesAssignRequest = {
@@ -1657,17 +1552,14 @@ No description provided.
1657
1552
 
1658
1553
  **Credential required**: *Yes* / **Permission**: *write:admin:roles*
1659
1554
  */
1660
- let postAdminRolesAssign = (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesAssignResponse> => {
1555
+ let postAdminRolesAssign = async (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesAssignResponse => {
1661
1556
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesAssignRequestSchema)
1662
- fetch(
1557
+ let response = await fetch(
1663
1558
  ~url="/admin/roles/assign",
1664
1559
  ~method_="POST",
1665
1560
  ~body=Some(jsonBody),
1666
- )->Promise.then(response => {
1561
+ )
1667
1562
  let _ = response
1668
- ()
1669
- ->Promise.resolve
1670
- })
1671
1563
  }
1672
1564
 
1673
1565
  type postAdminRolesCreateRequest = {
@@ -1717,17 +1609,14 @@ No description provided.
1717
1609
 
1718
1610
  **Credential required**: *Yes* / **Permission**: *write:admin:roles*
1719
1611
  */
1720
- let postAdminRolesCreate = (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesCreateResponse> => {
1612
+ let postAdminRolesCreate = async (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesCreateResponse => {
1721
1613
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesCreateRequestSchema)
1722
- fetch(
1614
+ let response = await fetch(
1723
1615
  ~url="/admin/roles/create",
1724
1616
  ~method_="POST",
1725
1617
  ~body=Some(jsonBody),
1726
- )->Promise.then(response => {
1727
- let value = response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
1728
- value
1729
- ->Promise.resolve
1730
- })
1618
+ )
1619
+ response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
1731
1620
  }
1732
1621
 
1733
1622
  type postAdminRolesShowRequest = {
@@ -1749,17 +1638,14 @@ No description provided.
1749
1638
 
1750
1639
  **Credential required**: *Yes* / **Permission**: *read:admin:roles*
1751
1640
  */
1752
- let postAdminRolesShow = (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesShowResponse> => {
1641
+ let postAdminRolesShow = async (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesShowResponse => {
1753
1642
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesShowRequestSchema)
1754
- fetch(
1643
+ let response = await fetch(
1755
1644
  ~url="/admin/roles/show",
1756
1645
  ~method_="POST",
1757
1646
  ~body=Some(jsonBody),
1758
- )->Promise.then(response => {
1759
- let value = response->S.parseOrThrow(postAdminRolesShowResponseSchema)
1760
- value
1761
- ->Promise.resolve
1762
- })
1647
+ )
1648
+ response->S.parseOrThrow(postAdminRolesShowResponseSchema)
1763
1649
  }
1764
1650
 
1765
1651
  type postAdminRolesUpdateRequest = {
@@ -1809,17 +1695,14 @@ No description provided.
1809
1695
 
1810
1696
  **Credential required**: *Yes* / **Permission**: *write:admin:roles*
1811
1697
  */
1812
- let postAdminRolesUpdate = (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUpdateResponse> => {
1698
+ let postAdminRolesUpdate = async (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateResponse => {
1813
1699
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateRequestSchema)
1814
- fetch(
1700
+ let response = await fetch(
1815
1701
  ~url="/admin/roles/update",
1816
1702
  ~method_="POST",
1817
1703
  ~body=Some(jsonBody),
1818
- )->Promise.then(response => {
1704
+ )
1819
1705
  let _ = response
1820
- ()
1821
- ->Promise.resolve
1822
- })
1823
1706
  }
1824
1707
 
1825
1708
  type postAdminRolesUsersRequest = {
@@ -1865,17 +1748,14 @@ No description provided.
1865
1748
 
1866
1749
  **Credential required**: *No* / **Permission**: *read:admin:roles*
1867
1750
  */
1868
- let postAdminRolesUsers = (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUsersResponse> => {
1751
+ let postAdminRolesUsers = async (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUsersResponse => {
1869
1752
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUsersRequestSchema)
1870
- fetch(
1753
+ let response = await fetch(
1871
1754
  ~url="/admin/roles/users",
1872
1755
  ~method_="POST",
1873
1756
  ~body=Some(jsonBody),
1874
- )->Promise.then(response => {
1875
- let value = response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
1876
- value
1877
- ->Promise.resolve
1878
- })
1757
+ )
1758
+ response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
1879
1759
  }
1880
1760
 
1881
1761
  type postAdminServerInfoResponse_4 = {
@@ -1943,17 +1823,14 @@ No description provided.
1943
1823
 
1944
1824
  **Credential required**: *Yes* / **Permission**: *read:admin:server-info*
1945
1825
  */
1946
- let postAdminServerInfo = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminServerInfoResponse> => {
1826
+ let postAdminServerInfo = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminServerInfoResponse => {
1947
1827
 
1948
- fetch(
1828
+ let response = await fetch(
1949
1829
  ~url="/admin/server-info",
1950
1830
  ~method_="POST",
1951
1831
  ~body=None,
1952
- )->Promise.then(response => {
1953
- let value = response->S.parseOrThrow(postAdminServerInfoResponseSchema)
1954
- value
1955
- ->Promise.resolve
1956
- })
1832
+ )
1833
+ response->S.parseOrThrow(postAdminServerInfoResponseSchema)
1957
1834
  }
1958
1835
 
1959
1836
  type postAdminShowModerationLogsRequest = {
@@ -2007,17 +1884,14 @@ No description provided.
2007
1884
 
2008
1885
  **Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
2009
1886
  */
2010
- let postAdminShowModerationLogs = (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowModerationLogsResponse> => {
1887
+ let postAdminShowModerationLogs = async (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowModerationLogsResponse => {
2011
1888
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowModerationLogsRequestSchema)
2012
- fetch(
1889
+ let response = await fetch(
2013
1890
  ~url="/admin/show-moderation-logs",
2014
1891
  ~method_="POST",
2015
1892
  ~body=Some(jsonBody),
2016
- )->Promise.then(response => {
2017
- let value = response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
2018
- value
2019
- ->Promise.resolve
2020
- })
1893
+ )
1894
+ response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
2021
1895
  }
2022
1896
 
2023
1897
  type postAdminShowUserRequest = {
@@ -2147,17 +2021,14 @@ No description provided.
2147
2021
 
2148
2022
  **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
2149
2023
  */
2150
- let postAdminShowUser = (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowUserResponse> => {
2024
+ let postAdminShowUser = async (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserResponse => {
2151
2025
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserRequestSchema)
2152
- fetch(
2026
+ let response = await fetch(
2153
2027
  ~url="/admin/show-user",
2154
2028
  ~method_="POST",
2155
2029
  ~body=Some(jsonBody),
2156
- )->Promise.then(response => {
2157
- let value = response->S.parseOrThrow(postAdminShowUserResponseSchema)
2158
- value
2159
- ->Promise.resolve
2160
- })
2030
+ )
2031
+ response->S.parseOrThrow(postAdminShowUserResponseSchema)
2161
2032
  }
2162
2033
 
2163
2034
  type postAdminSystemWebhookCreateRequest = {
@@ -2188,17 +2059,14 @@ No description provided.
2188
2059
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
2189
2060
  **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
2190
2061
  */
2191
- let postAdminSystemWebhookCreate = (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookCreateResponse> => {
2062
+ let postAdminSystemWebhookCreate = async (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookCreateResponse => {
2192
2063
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookCreateRequestSchema)
2193
- fetch(
2064
+ let response = await fetch(
2194
2065
  ~url="/admin/system-webhook/create",
2195
2066
  ~method_="POST",
2196
2067
  ~body=Some(jsonBody),
2197
- )->Promise.then(response => {
2198
- let value = response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
2199
- value
2200
- ->Promise.resolve
2201
- })
2068
+ )
2069
+ response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
2202
2070
  }
2203
2071
 
2204
2072
  type postAdminSystemWebhookShowRequest = {
@@ -2221,17 +2089,14 @@ No description provided.
2221
2089
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
2222
2090
  **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
2223
2091
  */
2224
- let postAdminSystemWebhookShow = (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookShowResponse> => {
2092
+ let postAdminSystemWebhookShow = async (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookShowResponse => {
2225
2093
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookShowRequestSchema)
2226
- fetch(
2094
+ let response = await fetch(
2227
2095
  ~url="/admin/system-webhook/show",
2228
2096
  ~method_="POST",
2229
2097
  ~body=Some(jsonBody),
2230
- )->Promise.then(response => {
2231
- let value = response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
2232
- value
2233
- ->Promise.resolve
2234
- })
2098
+ )
2099
+ response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
2235
2100
  }
2236
2101
 
2237
2102
  type postAdminSystemWebhookUpdateRequest = {
@@ -2264,17 +2129,14 @@ No description provided.
2264
2129
  **Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
2265
2130
  **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
2266
2131
  */
2267
- let postAdminSystemWebhookUpdate = (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookUpdateResponse> => {
2132
+ let postAdminSystemWebhookUpdate = async (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookUpdateResponse => {
2268
2133
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookUpdateRequestSchema)
2269
- fetch(
2134
+ let response = await fetch(
2270
2135
  ~url="/admin/system-webhook/update",
2271
2136
  ~method_="POST",
2272
2137
  ~body=Some(jsonBody),
2273
- )->Promise.then(response => {
2274
- let value = response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
2275
- value
2276
- ->Promise.resolve
2277
- })
2138
+ )
2139
+ response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
2278
2140
  }
2279
2141
 
2280
2142
  type postAdminUpdateMetaRequest_1 = {
@@ -2622,17 +2484,14 @@ No description provided.
2622
2484
 
2623
2485
  **Credential required**: *Yes* / **Permission**: *write:admin:meta*
2624
2486
  */
2625
- let postAdminUpdateMeta = (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateMetaResponse> => {
2487
+ let postAdminUpdateMeta = async (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateMetaResponse => {
2626
2488
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateMetaRequestSchema)
2627
- fetch(
2489
+ let response = await fetch(
2628
2490
  ~url="/admin/update-meta",
2629
2491
  ~method_="POST",
2630
2492
  ~body=Some(jsonBody),
2631
- )->Promise.then(response => {
2493
+ )
2632
2494
  let _ = response
2633
- ()
2634
- ->Promise.resolve
2635
- })
2636
2495
  }
2637
2496
 
2638
2497
  type postAdminUpdateProxyAccountRequest = {
@@ -2654,17 +2513,14 @@ No description provided.
2654
2513
 
2655
2514
  **Credential required**: *Yes* / **Permission**: *write:admin:account*
2656
2515
  */
2657
- let postAdminUpdateProxyAccount = (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateProxyAccountResponse> => {
2516
+ let postAdminUpdateProxyAccount = async (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateProxyAccountResponse => {
2658
2517
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateProxyAccountRequestSchema)
2659
- fetch(
2518
+ let response = await fetch(
2660
2519
  ~url="/admin/update-proxy-account",
2661
2520
  ~method_="POST",
2662
2521
  ~body=Some(jsonBody),
2663
- )->Promise.then(response => {
2664
- let value = response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
2665
- value
2666
- ->Promise.resolve
2667
- })
2522
+ )
2523
+ response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
2668
2524
  }
2669
2525
 
2670
2526
  type postV2AdminEmojiListRequest_1 = {
@@ -2746,15 +2602,12 @@ No description provided.
2746
2602
 
2747
2603
  **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
2748
2604
  */
2749
- let postV2AdminEmojiList = (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postV2AdminEmojiListResponse> => {
2605
+ let postV2AdminEmojiList = async (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postV2AdminEmojiListResponse => {
2750
2606
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postV2AdminEmojiListRequestSchema)
2751
- fetch(
2607
+ let response = await fetch(
2752
2608
  ~url="/v2/admin/emoji/list",
2753
2609
  ~method_="POST",
2754
2610
  ~body=Some(jsonBody),
2755
- )->Promise.then(response => {
2756
- let value = response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
2757
- value
2758
- ->Promise.resolve
2759
- })
2611
+ )
2612
+ response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
2760
2613
  }