@f3liz/rescript-misskey-api 0.6.8 → 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 (177) 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 +241 -313
  61. package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +485 -632
  62. package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +30 -39
  63. package/src/generated/kokonect-link/api/KokonectLinkApp.res +20 -26
  64. package/src/generated/kokonect-link/api/KokonectLinkAuth.res +20 -26
  65. package/src/generated/kokonect-link/api/KokonectLinkChannels.res +60 -78
  66. package/src/generated/kokonect-link/api/KokonectLinkCharts.res +20 -26
  67. package/src/generated/kokonect-link/api/KokonectLinkChat.res +260 -341
  68. package/src/generated/kokonect-link/api/KokonectLinkClips.res +40 -52
  69. package/src/generated/kokonect-link/api/KokonectLinkDefault.res +101 -131
  70. package/src/generated/kokonect-link/api/KokonectLinkDrive.res +119 -155
  71. package/src/generated/kokonect-link/api/KokonectLinkFederation.res +60 -78
  72. package/src/generated/kokonect-link/api/KokonectLinkFlash.res +31 -40
  73. package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +10 -13
  74. package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +70 -91
  75. package/src/generated/kokonect-link/api/KokonectLinkGallery.res +40 -52
  76. package/src/generated/kokonect-link/api/KokonectLinkGroups.res +116 -152
  77. package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +20 -26
  78. package/src/generated/kokonect-link/api/KokonectLinkLists.res +30 -39
  79. package/src/generated/kokonect-link/api/KokonectLinkMeta.res +94 -121
  80. package/src/generated/kokonect-link/api/KokonectLinkNotes.res +289 -376
  81. package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +9 -12
  82. package/src/generated/kokonect-link/api/KokonectLinkPages.res +29 -38
  83. package/src/generated/kokonect-link/api/KokonectLinkRole.res +30 -39
  84. package/src/generated/kokonect-link/api/KokonectLinkUsers.res +119 -155
  85. package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +30 -39
  86. package/src/generated/kokonect-link/types/Account.d.ts +235 -177
  87. package/src/generated/kokonect-link/types/Admin.d.ts +640 -484
  88. package/src/generated/kokonect-link/types/Antennas.d.ts +36 -27
  89. package/src/generated/kokonect-link/types/App.d.ts +16 -12
  90. package/src/generated/kokonect-link/types/Auth.d.ts +30 -23
  91. package/src/generated/kokonect-link/types/Channels.d.ts +76 -57
  92. package/src/generated/kokonect-link/types/Charts.d.ts +104 -78
  93. package/src/generated/kokonect-link/types/Chat.d.ts +108 -81
  94. package/src/generated/kokonect-link/types/Clip.d.ts +8 -6
  95. package/src/generated/kokonect-link/types/Clips.d.ts +40 -30
  96. package/src/generated/kokonect-link/types/Default.d.ts +297 -232
  97. package/src/generated/kokonect-link/types/Drive.d.ts +120 -90
  98. package/src/generated/kokonect-link/types/Federation.d.ts +68 -51
  99. package/src/generated/kokonect-link/types/Flash.d.ts +33 -25
  100. package/src/generated/kokonect-link/types/Flashs.d.ts +12 -9
  101. package/src/generated/kokonect-link/types/Following.d.ts +68 -51
  102. package/src/generated/kokonect-link/types/Gallery.d.ts +52 -39
  103. package/src/generated/kokonect-link/types/Groups.d.ts +48 -36
  104. package/src/generated/kokonect-link/types/Hashtags.d.ts +32 -24
  105. package/src/generated/kokonect-link/types/Lists.d.ts +48 -36
  106. package/src/generated/kokonect-link/types/Meta.d.ts +133 -100
  107. package/src/generated/kokonect-link/types/NonProductive.d.ts +8 -6
  108. package/src/generated/kokonect-link/types/Notes.d.ts +256 -192
  109. package/src/generated/kokonect-link/types/Notifications.d.ts +20 -15
  110. package/src/generated/kokonect-link/types/Pages.d.ts +40 -30
  111. package/src/generated/kokonect-link/types/Reactions.d.ts +8 -6
  112. package/src/generated/kokonect-link/types/ResetPassword.d.ts +8 -6
  113. package/src/generated/kokonect-link/types/Role.d.ts +28 -21
  114. package/src/generated/kokonect-link/types/Users.d.ts +161 -121
  115. package/src/generated/kokonect-link/types/Webhooks.d.ts +44 -34
  116. package/src/generated/kokonect-link/types/index.d.ts +1 -2
  117. package/src/generated/kokonect-link/wrapper/index.d.ts +4813 -2131
  118. package/src/generated/kokonect-link/wrapper/index.mjs +2 -710
  119. package/src/generated/misskey-io/api/MisskeyIoAccount.res +335 -437
  120. package/src/generated/misskey-io/api/MisskeyIoAdmin.res +1035 -1356
  121. package/src/generated/misskey-io/api/MisskeyIoAntennas.res +60 -78
  122. package/src/generated/misskey-io/api/MisskeyIoApp.res +20 -26
  123. package/src/generated/misskey-io/api/MisskeyIoAuth.res +51 -66
  124. package/src/generated/misskey-io/api/MisskeyIoChannels.res +129 -168
  125. package/src/generated/misskey-io/api/MisskeyIoCharts.res +240 -312
  126. package/src/generated/misskey-io/api/MisskeyIoClip.res +18 -24
  127. package/src/generated/misskey-io/api/MisskeyIoClips.res +60 -78
  128. package/src/generated/misskey-io/api/MisskeyIoDefault.res +561 -726
  129. package/src/generated/misskey-io/api/MisskeyIoDrive.res +178 -232
  130. package/src/generated/misskey-io/api/MisskeyIoFederation.res +109 -142
  131. package/src/generated/misskey-io/api/MisskeyIoFlash.res +47 -62
  132. package/src/generated/misskey-io/api/MisskeyIoFlashs.res +19 -25
  133. package/src/generated/misskey-io/api/MisskeyIoFollowing.res +97 -127
  134. package/src/generated/misskey-io/api/MisskeyIoGallery.res +88 -115
  135. package/src/generated/misskey-io/api/MisskeyIoHashtags.res +62 -80
  136. package/src/generated/misskey-io/api/MisskeyIoLists.res +86 -113
  137. package/src/generated/misskey-io/api/MisskeyIoMeta.res +251 -323
  138. package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +19 -25
  139. package/src/generated/misskey-io/api/MisskeyIoNotes.res +341 -446
  140. package/src/generated/misskey-io/api/MisskeyIoNotifications.res +39 -51
  141. package/src/generated/misskey-io/api/MisskeyIoPages.res +67 -88
  142. package/src/generated/misskey-io/api/MisskeyIoReactions.res +18 -24
  143. package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +18 -24
  144. package/src/generated/misskey-io/api/MisskeyIoRole.res +41 -53
  145. package/src/generated/misskey-io/api/MisskeyIoUsers.res +284 -368
  146. package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +69 -90
  147. package/src/generated/misskey-io/types/Account.d.ts +139 -105
  148. package/src/generated/misskey-io/types/Admin.d.ts +438 -331
  149. package/src/generated/misskey-io/types/Antennas.d.ts +24 -18
  150. package/src/generated/misskey-io/types/App.d.ts +8 -6
  151. package/src/generated/misskey-io/types/Auth.d.ts +22 -17
  152. package/src/generated/misskey-io/types/Channels.d.ts +52 -39
  153. package/src/generated/misskey-io/types/Charts.d.ts +96 -72
  154. package/src/generated/misskey-io/types/Clip.d.ts +8 -6
  155. package/src/generated/misskey-io/types/Clips.d.ts +24 -18
  156. package/src/generated/misskey-io/types/Default.d.ts +253 -198
  157. package/src/generated/misskey-io/types/Drive.d.ts +72 -54
  158. package/src/generated/misskey-io/types/Federation.d.ts +44 -33
  159. package/src/generated/misskey-io/types/Flash.d.ts +20 -15
  160. package/src/generated/misskey-io/types/Flashs.d.ts +8 -6
  161. package/src/generated/misskey-io/types/Following.d.ts +40 -30
  162. package/src/generated/misskey-io/types/Gallery.d.ts +36 -27
  163. package/src/generated/misskey-io/types/Hashtags.d.ts +24 -18
  164. package/src/generated/misskey-io/types/Lists.d.ts +36 -27
  165. package/src/generated/misskey-io/types/Meta.d.ts +97 -73
  166. package/src/generated/misskey-io/types/NonProductive.d.ts +8 -6
  167. package/src/generated/misskey-io/types/Notes.d.ts +140 -105
  168. package/src/generated/misskey-io/types/Notifications.d.ts +16 -12
  169. package/src/generated/misskey-io/types/Pages.d.ts +28 -21
  170. package/src/generated/misskey-io/types/Reactions.d.ts +8 -6
  171. package/src/generated/misskey-io/types/ResetPassword.d.ts +8 -6
  172. package/src/generated/misskey-io/types/Role.d.ts +16 -12
  173. package/src/generated/misskey-io/types/Users.d.ts +113 -85
  174. package/src/generated/misskey-io/types/Webhooks.d.ts +30 -23
  175. package/src/generated/misskey-io/types/index.d.ts +1 -2
  176. package/src/generated/misskey-io/wrapper/index.d.ts +3127 -1399
  177. package/src/generated/misskey-io/wrapper/index.mjs +2 -469
@@ -42,23 +42,20 @@ let postAdminAbuseReportResolverCreateResponseSchema = S.object(s => {
42
42
  })
43
43
 
44
44
  /**
45
- * admin/abuse-report-resolver/create
46
- *
47
- * No description provided.
48
- *
49
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
50
- */
51
- let postAdminAbuseReportResolverCreate = (~body: postAdminAbuseReportResolverCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportResolverCreateResponse> => {
45
+ admin/abuse-report-resolver/create
46
+
47
+ No description provided.
48
+
49
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
50
+ */
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
- )->Promise.then(response => {
58
- let value = response->S.parseOrThrow(postAdminAbuseReportResolverCreateResponseSchema)
59
- value
60
- ->Promise.resolve
61
- })
57
+ )
58
+ response->S.parseOrThrow(postAdminAbuseReportResolverCreateResponseSchema)
62
59
  }
63
60
 
64
61
  type postAdminAbuseReportResolverDeleteRequest = {
@@ -72,23 +69,20 @@ let postAdminAbuseReportResolverDeleteRequestSchema = S.object(s => {
72
69
  type postAdminAbuseReportResolverDeleteResponse = unit
73
70
 
74
71
  /**
75
- * admin/abuse-report-resolver/delete
76
- *
77
- * No description provided.
78
- *
79
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
80
- */
81
- let postAdminAbuseReportResolverDelete = (~body: postAdminAbuseReportResolverDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportResolverDeleteResponse> => {
72
+ admin/abuse-report-resolver/delete
73
+
74
+ No description provided.
75
+
76
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
77
+ */
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
- )->Promise.then(response => {
84
+ )
88
85
  let _ = response
89
- ()
90
- ->Promise.resolve
91
- })
92
86
  }
93
87
 
94
88
  type postAdminAbuseReportResolverListRequest = {
@@ -126,23 +120,20 @@ let postAdminAbuseReportResolverListResponse_1Schema = S.object(s => {
126
120
  let postAdminAbuseReportResolverListResponseSchema = S.array(postAdminAbuseReportResolverListResponse_1Schema)
127
121
 
128
122
  /**
129
- * admin/abuse-report-resolver/list
130
- *
131
- * No description provided.
132
- *
133
- * **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report-resolvers*
134
- */
135
- let postAdminAbuseReportResolverList = (~body: postAdminAbuseReportResolverListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportResolverListResponse> => {
123
+ admin/abuse-report-resolver/list
124
+
125
+ No description provided.
126
+
127
+ **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report-resolvers*
128
+ */
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
- )->Promise.then(response => {
142
- let value = response->S.parseOrThrow(postAdminAbuseReportResolverListResponseSchema)
143
- value
144
- ->Promise.resolve
145
- })
135
+ )
136
+ response->S.parseOrThrow(postAdminAbuseReportResolverListResponseSchema)
146
137
  }
147
138
 
148
139
  type postAdminAbuseReportResolverUpdateRequest = {
@@ -168,23 +159,20 @@ let postAdminAbuseReportResolverUpdateRequestSchema = S.object(s => {
168
159
  type postAdminAbuseReportResolverUpdateResponse = unit
169
160
 
170
161
  /**
171
- * admin/abuse-report-resolver/update
172
- *
173
- * No description provided.
174
- *
175
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
176
- */
177
- let postAdminAbuseReportResolverUpdate = (~body: postAdminAbuseReportResolverUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportResolverUpdateResponse> => {
162
+ admin/abuse-report-resolver/update
163
+
164
+ No description provided.
165
+
166
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
167
+ */
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
- )->Promise.then(response => {
174
+ )
184
175
  let _ = response
185
- ()
186
- ->Promise.resolve
187
- })
188
176
  }
189
177
 
190
178
  type postAdminAbuseReportNotificationRecipientCreateRequest = {
@@ -208,24 +196,21 @@ type postAdminAbuseReportNotificationRecipientCreateResponse = MisskeyIoComponen
208
196
  let postAdminAbuseReportNotificationRecipientCreateResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
209
197
 
210
198
  /**
211
- * admin/abuse-report/notification-recipient/create
212
- *
213
- * No description provided.
214
- *
215
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
216
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
217
- */
218
- let postAdminAbuseReportNotificationRecipientCreate = (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientCreateResponse> => {
199
+ admin/abuse-report/notification-recipient/create
200
+
201
+ No description provided.
202
+
203
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
204
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
205
+ */
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
- )->Promise.then(response => {
225
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
226
- value
227
- ->Promise.resolve
228
- })
212
+ )
213
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
229
214
  }
230
215
 
231
216
  type postAdminAbuseReportNotificationRecipientDeleteRequest = {
@@ -239,24 +224,21 @@ let postAdminAbuseReportNotificationRecipientDeleteRequestSchema = S.object(s =>
239
224
  type postAdminAbuseReportNotificationRecipientDeleteResponse = unit
240
225
 
241
226
  /**
242
- * admin/abuse-report/notification-recipient/delete
243
- *
244
- * No description provided.
245
- *
246
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
247
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
248
- */
249
- let postAdminAbuseReportNotificationRecipientDelete = (~body: postAdminAbuseReportNotificationRecipientDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientDeleteResponse> => {
227
+ admin/abuse-report/notification-recipient/delete
228
+
229
+ No description provided.
230
+
231
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
232
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
233
+ */
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
- )->Promise.then(response => {
240
+ )
256
241
  let _ = response
257
- ()
258
- ->Promise.resolve
259
- })
260
242
  }
261
243
 
262
244
  type postAdminAbuseReportNotificationRecipientListRequest = {
@@ -272,24 +254,21 @@ type postAdminAbuseReportNotificationRecipientListResponse = array<MisskeyIoComp
272
254
  let postAdminAbuseReportNotificationRecipientListResponseSchema = S.array(MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema)
273
255
 
274
256
  /**
275
- * admin/abuse-report/notification-recipient/list
276
- *
277
- * No description provided.
278
- *
279
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
280
- * **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
281
- */
282
- let postAdminAbuseReportNotificationRecipientList = (~body: postAdminAbuseReportNotificationRecipientListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientListResponse> => {
257
+ admin/abuse-report/notification-recipient/list
258
+
259
+ No description provided.
260
+
261
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
262
+ **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
263
+ */
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
- )->Promise.then(response => {
289
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientListResponseSchema)
290
- value
291
- ->Promise.resolve
292
- })
270
+ )
271
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientListResponseSchema)
293
272
  }
294
273
 
295
274
  type postAdminAbuseReportNotificationRecipientShowRequest = {
@@ -305,24 +284,21 @@ type postAdminAbuseReportNotificationRecipientShowResponse = MisskeyIoComponentS
305
284
  let postAdminAbuseReportNotificationRecipientShowResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
306
285
 
307
286
  /**
308
- * admin/abuse-report/notification-recipient/show
309
- *
310
- * No description provided.
311
- *
312
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
313
- * **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
314
- */
315
- let postAdminAbuseReportNotificationRecipientShow = (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientShowResponse> => {
287
+ admin/abuse-report/notification-recipient/show
288
+
289
+ No description provided.
290
+
291
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
292
+ **Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
293
+ */
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
- )->Promise.then(response => {
322
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
323
- value
324
- ->Promise.resolve
325
- })
300
+ )
301
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
326
302
  }
327
303
 
328
304
  type postAdminAbuseReportNotificationRecipientUpdateRequest = {
@@ -348,24 +324,21 @@ type postAdminAbuseReportNotificationRecipientUpdateResponse = MisskeyIoComponen
348
324
  let postAdminAbuseReportNotificationRecipientUpdateResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
349
325
 
350
326
  /**
351
- * admin/abuse-report/notification-recipient/update
352
- *
353
- * No description provided.
354
- *
355
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
356
- * **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
357
- */
358
- let postAdminAbuseReportNotificationRecipientUpdate = (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseReportNotificationRecipientUpdateResponse> => {
327
+ admin/abuse-report/notification-recipient/update
328
+
329
+ No description provided.
330
+
331
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
332
+ **Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
333
+ */
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
- )->Promise.then(response => {
365
- let value = response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
366
- value
367
- ->Promise.resolve
368
- })
340
+ )
341
+ response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
369
342
  }
370
343
 
371
344
  type postAdminAbuseUserReportsRequest = {
@@ -429,23 +402,20 @@ let postAdminAbuseUserReportsResponse_1Schema = S.object(s => {
429
402
  let postAdminAbuseUserReportsResponseSchema = S.array(postAdminAbuseUserReportsResponse_1Schema)
430
403
 
431
404
  /**
432
- * admin/abuse-user-reports
433
- *
434
- * No description provided.
435
- *
436
- * **Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
437
- */
438
- let postAdminAbuseUserReports = (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAbuseUserReportsResponse> => {
405
+ admin/abuse-user-reports
406
+
407
+ No description provided.
408
+
409
+ **Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
410
+ */
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
- )->Promise.then(response => {
445
- let value = response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
446
- value
447
- ->Promise.resolve
448
- })
417
+ )
418
+ response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
449
419
  }
450
420
 
451
421
  type postAdminAccountsCreateRequest = {
@@ -465,23 +435,20 @@ type postAdminAccountsCreateResponse = MisskeyIoComponentSchemas.MeDetailed.t
465
435
  let postAdminAccountsCreateResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
466
436
 
467
437
  /**
468
- * admin/accounts/create
469
- *
470
- * No description provided.
471
- *
472
- * **Credential required**: *No*
473
- */
474
- let postAdminAccountsCreate = (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsCreateResponse> => {
438
+ admin/accounts/create
439
+
440
+ No description provided.
441
+
442
+ **Credential required**: *No*
443
+ */
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
- )->Promise.then(response => {
481
- let value = response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
482
- value
483
- ->Promise.resolve
484
- })
450
+ )
451
+ response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
485
452
  }
486
453
 
487
454
  type postAdminAccountsDeleteRequest = {
@@ -497,23 +464,20 @@ let postAdminAccountsDeleteRequestSchema = S.object(s => {
497
464
  type postAdminAccountsDeleteResponse = unit
498
465
 
499
466
  /**
500
- * admin/accounts/delete
501
- *
502
- * No description provided.
503
- *
504
- * **Credential required**: *Yes* / **Permission**: *write:admin:account*
505
- */
506
- let postAdminAccountsDelete = (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsDeleteResponse> => {
467
+ admin/accounts/delete
468
+
469
+ No description provided.
470
+
471
+ **Credential required**: *Yes* / **Permission**: *write:admin:account*
472
+ */
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
- )->Promise.then(response => {
479
+ )
513
480
  let _ = response
514
- ()
515
- ->Promise.resolve
516
- })
517
481
  }
518
482
 
519
483
  type postAdminAccountsFindByEmailRequest = {
@@ -529,23 +493,20 @@ type postAdminAccountsFindByEmailResponse = MisskeyIoComponentSchemas.UserDetail
529
493
  let postAdminAccountsFindByEmailResponseSchema = MisskeyIoComponentSchemas.UserDetailed.schema
530
494
 
531
495
  /**
532
- * admin/accounts/find-by-email
533
- *
534
- * No description provided.
535
- *
536
- * **Credential required**: *Yes* / **Permission**: *read:admin:account*
537
- */
538
- let postAdminAccountsFindByEmail = (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsFindByEmailResponse> => {
496
+ admin/accounts/find-by-email
497
+
498
+ No description provided.
499
+
500
+ **Credential required**: *Yes* / **Permission**: *read:admin:account*
501
+ */
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
- )->Promise.then(response => {
545
- let value = response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
546
- value
547
- ->Promise.resolve
548
- })
508
+ )
509
+ response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
549
510
  }
550
511
 
551
512
  type postAdminAccountsPendingListRequest = {
@@ -587,23 +548,20 @@ let postAdminAccountsPendingListResponse_1Schema = S.object(s => {
587
548
  let postAdminAccountsPendingListResponseSchema = S.array(postAdminAccountsPendingListResponse_1Schema)
588
549
 
589
550
  /**
590
- * admin/accounts/pending/list
591
- *
592
- * No description provided.
593
- *
594
- * **Credential required**: *Yes* / **Permission**: *read:admin:account*
595
- */
596
- let postAdminAccountsPendingList = (~body: postAdminAccountsPendingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsPendingListResponse> => {
551
+ admin/accounts/pending/list
552
+
553
+ No description provided.
554
+
555
+ **Credential required**: *Yes* / **Permission**: *read:admin:account*
556
+ */
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
- )->Promise.then(response => {
603
- let value = response->S.parseOrThrow(postAdminAccountsPendingListResponseSchema)
604
- value
605
- ->Promise.resolve
606
- })
563
+ )
564
+ response->S.parseOrThrow(postAdminAccountsPendingListResponseSchema)
607
565
  }
608
566
 
609
567
  type postAdminAccountsPendingRevokeRequest = {
@@ -619,23 +577,20 @@ let postAdminAccountsPendingRevokeRequestSchema = S.object(s => {
619
577
  type postAdminAccountsPendingRevokeResponse = unit
620
578
 
621
579
  /**
622
- * admin/accounts/pending/revoke
623
- *
624
- * No description provided.
625
- *
626
- * **Credential required**: *Yes* / **Permission**: *write:admin:account*
627
- */
628
- let postAdminAccountsPendingRevoke = (~body: postAdminAccountsPendingRevokeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAccountsPendingRevokeResponse> => {
580
+ admin/accounts/pending/revoke
581
+
582
+ No description provided.
583
+
584
+ **Credential required**: *Yes* / **Permission**: *write:admin:account*
585
+ */
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
- )->Promise.then(response => {
592
+ )
635
593
  let _ = response
636
- ()
637
- ->Promise.resolve
638
- })
639
594
  }
640
595
 
641
596
  type postAdminAdCreateRequest = {
@@ -669,23 +624,20 @@ type postAdminAdCreateResponse = MisskeyIoComponentSchemas.Ad.t
669
624
  let postAdminAdCreateResponseSchema = MisskeyIoComponentSchemas.Ad.schema
670
625
 
671
626
  /**
672
- * admin/ad/create
673
- *
674
- * No description provided.
675
- *
676
- * **Credential required**: *Yes* / **Permission**: *write:admin:ad*
677
- */
678
- let postAdminAdCreate = (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdCreateResponse> => {
627
+ admin/ad/create
628
+
629
+ No description provided.
630
+
631
+ **Credential required**: *Yes* / **Permission**: *write:admin:ad*
632
+ */
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
- )->Promise.then(response => {
685
- let value = response->S.parseOrThrow(postAdminAdCreateResponseSchema)
686
- value
687
- ->Promise.resolve
688
- })
639
+ )
640
+ response->S.parseOrThrow(postAdminAdCreateResponseSchema)
689
641
  }
690
642
 
691
643
  type postAdminAdDeleteRequest = {
@@ -699,23 +651,20 @@ let postAdminAdDeleteRequestSchema = S.object(s => {
699
651
  type postAdminAdDeleteResponse = unit
700
652
 
701
653
  /**
702
- * admin/ad/delete
703
- *
704
- * No description provided.
705
- *
706
- * **Credential required**: *Yes* / **Permission**: *write:admin:ad*
707
- */
708
- let postAdminAdDelete = (~body: postAdminAdDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdDeleteResponse> => {
654
+ admin/ad/delete
655
+
656
+ No description provided.
657
+
658
+ **Credential required**: *Yes* / **Permission**: *write:admin:ad*
659
+ */
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
- )->Promise.then(response => {
666
+ )
715
667
  let _ = response
716
- ()
717
- ->Promise.resolve
718
- })
719
668
  }
720
669
 
721
670
  type postAdminAdListRequest = {
@@ -737,23 +686,20 @@ type postAdminAdListResponse = array<MisskeyIoComponentSchemas.Ad.t>
737
686
  let postAdminAdListResponseSchema = S.array(MisskeyIoComponentSchemas.Ad.schema)
738
687
 
739
688
  /**
740
- * admin/ad/list
741
- *
742
- * No description provided.
743
- *
744
- * **Credential required**: *Yes* / **Permission**: *read:admin:ad*
745
- */
746
- let postAdminAdList = (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdListResponse> => {
689
+ admin/ad/list
690
+
691
+ No description provided.
692
+
693
+ **Credential required**: *Yes* / **Permission**: *read:admin:ad*
694
+ */
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
- )->Promise.then(response => {
753
- let value = response->S.parseOrThrow(postAdminAdListResponseSchema)
754
- value
755
- ->Promise.resolve
756
- })
701
+ )
702
+ response->S.parseOrThrow(postAdminAdListResponseSchema)
757
703
  }
758
704
 
759
705
  type postAdminAdUpdateRequest = {
@@ -787,23 +733,20 @@ let postAdminAdUpdateRequestSchema = S.object(s => {
787
733
  type postAdminAdUpdateResponse = unit
788
734
 
789
735
  /**
790
- * admin/ad/update
791
- *
792
- * No description provided.
793
- *
794
- * **Credential required**: *Yes* / **Permission**: *write:admin:ad*
795
- */
796
- let postAdminAdUpdate = (~body: postAdminAdUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAdUpdateResponse> => {
736
+ admin/ad/update
737
+
738
+ No description provided.
739
+
740
+ **Credential required**: *Yes* / **Permission**: *write:admin:ad*
741
+ */
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
- )->Promise.then(response => {
748
+ )
803
749
  let _ = response
804
- ()
805
- ->Promise.resolve
806
- })
807
750
  }
808
751
 
809
752
  type postAdminAnnouncementsCreateRequest = {
@@ -873,23 +816,20 @@ let postAdminAnnouncementsCreateResponseSchema = S.object(s => {
873
816
  })
874
817
 
875
818
  /**
876
- * admin/announcements/create
877
- *
878
- * No description provided.
879
- *
880
- * **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
881
- */
882
- let postAdminAnnouncementsCreate = (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsCreateResponse> => {
819
+ admin/announcements/create
820
+
821
+ No description provided.
822
+
823
+ **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
824
+ */
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
- )->Promise.then(response => {
889
- let value = response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
890
- value
891
- ->Promise.resolve
892
- })
831
+ )
832
+ response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
893
833
  }
894
834
 
895
835
  type postAdminAnnouncementsDeleteRequest = {
@@ -903,23 +843,20 @@ let postAdminAnnouncementsDeleteRequestSchema = S.object(s => {
903
843
  type postAdminAnnouncementsDeleteResponse = unit
904
844
 
905
845
  /**
906
- * admin/announcements/delete
907
- *
908
- * No description provided.
909
- *
910
- * **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
911
- */
912
- let postAdminAnnouncementsDelete = (~body: postAdminAnnouncementsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsDeleteResponse> => {
846
+ admin/announcements/delete
847
+
848
+ No description provided.
849
+
850
+ **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
851
+ */
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
- )->Promise.then(response => {
858
+ )
919
859
  let _ = response
920
- ()
921
- ->Promise.resolve
922
- })
923
860
  }
924
861
 
925
862
  type postAdminAnnouncementsListRequest = {
@@ -985,23 +922,20 @@ let postAdminAnnouncementsListResponse_1Schema = S.object(s => {
985
922
  let postAdminAnnouncementsListResponseSchema = S.array(postAdminAnnouncementsListResponse_1Schema)
986
923
 
987
924
  /**
988
- * admin/announcements/list
989
- *
990
- * No description provided.
991
- *
992
- * **Credential required**: *Yes* / **Permission**: *read:admin:announcements*
993
- */
994
- let postAdminAnnouncementsList = (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsListResponse> => {
925
+ admin/announcements/list
926
+
927
+ No description provided.
928
+
929
+ **Credential required**: *Yes* / **Permission**: *read:admin:announcements*
930
+ */
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
- )->Promise.then(response => {
1001
- let value = response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
1002
- value
1003
- ->Promise.resolve
1004
- })
937
+ )
938
+ response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
1005
939
  }
1006
940
 
1007
941
  type postAdminAnnouncementsUpdateRequest = {
@@ -1039,23 +973,20 @@ let postAdminAnnouncementsUpdateRequestSchema = S.object(s => {
1039
973
  type postAdminAnnouncementsUpdateResponse = unit
1040
974
 
1041
975
  /**
1042
- * admin/announcements/update
1043
- *
1044
- * No description provided.
1045
- *
1046
- * **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
1047
- */
1048
- let postAdminAnnouncementsUpdate = (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAnnouncementsUpdateResponse> => {
976
+ admin/announcements/update
977
+
978
+ No description provided.
979
+
980
+ **Credential required**: *Yes* / **Permission**: *write:admin:announcements*
981
+ */
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
- )->Promise.then(response => {
988
+ )
1055
989
  let _ = response
1056
- ()
1057
- ->Promise.resolve
1058
- })
1059
990
  }
1060
991
 
1061
992
  type postAdminAvatarDecorationsCreateRequest = {
@@ -1093,23 +1024,20 @@ let postAdminAvatarDecorationsCreateResponseSchema = S.object(s => {
1093
1024
  })
1094
1025
 
1095
1026
  /**
1096
- * admin/avatar-decorations/create
1097
- *
1098
- * No description provided.
1099
- *
1100
- * **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1101
- */
1102
- let postAdminAvatarDecorationsCreate = (~body: postAdminAvatarDecorationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsCreateResponse> => {
1027
+ admin/avatar-decorations/create
1028
+
1029
+ No description provided.
1030
+
1031
+ **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1032
+ */
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
- )->Promise.then(response => {
1109
- let value = response->S.parseOrThrow(postAdminAvatarDecorationsCreateResponseSchema)
1110
- value
1111
- ->Promise.resolve
1112
- })
1039
+ )
1040
+ response->S.parseOrThrow(postAdminAvatarDecorationsCreateResponseSchema)
1113
1041
  }
1114
1042
 
1115
1043
  type postAdminAvatarDecorationsDeleteRequest = {
@@ -1123,23 +1051,20 @@ let postAdminAvatarDecorationsDeleteRequestSchema = S.object(s => {
1123
1051
  type postAdminAvatarDecorationsDeleteResponse = unit
1124
1052
 
1125
1053
  /**
1126
- * admin/avatar-decorations/delete
1127
- *
1128
- * No description provided.
1129
- *
1130
- * **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1131
- */
1132
- let postAdminAvatarDecorationsDelete = (~body: postAdminAvatarDecorationsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsDeleteResponse> => {
1054
+ admin/avatar-decorations/delete
1055
+
1056
+ No description provided.
1057
+
1058
+ **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1059
+ */
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
- )->Promise.then(response => {
1066
+ )
1139
1067
  let _ = response
1140
- ()
1141
- ->Promise.resolve
1142
- })
1143
1068
  }
1144
1069
 
1145
1070
  type postAdminAvatarDecorationsListRequest = {
@@ -1181,23 +1106,20 @@ let postAdminAvatarDecorationsListResponse_1Schema = S.object(s => {
1181
1106
  let postAdminAvatarDecorationsListResponseSchema = S.array(postAdminAvatarDecorationsListResponse_1Schema)
1182
1107
 
1183
1108
  /**
1184
- * admin/avatar-decorations/list
1185
- *
1186
- * No description provided.
1187
- *
1188
- * **Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
1189
- */
1190
- let postAdminAvatarDecorationsList = (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsListResponse> => {
1109
+ admin/avatar-decorations/list
1110
+
1111
+ No description provided.
1112
+
1113
+ **Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
1114
+ */
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
- )->Promise.then(response => {
1197
- let value = response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
1198
- value
1199
- ->Promise.resolve
1200
- })
1121
+ )
1122
+ response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
1201
1123
  }
1202
1124
 
1203
1125
  type postAdminAvatarDecorationsUpdateRequest = {
@@ -1219,23 +1141,20 @@ let postAdminAvatarDecorationsUpdateRequestSchema = S.object(s => {
1219
1141
  type postAdminAvatarDecorationsUpdateResponse = unit
1220
1142
 
1221
1143
  /**
1222
- * admin/avatar-decorations/update
1223
- *
1224
- * No description provided.
1225
- *
1226
- * **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1227
- */
1228
- let postAdminAvatarDecorationsUpdate = (~body: postAdminAvatarDecorationsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminAvatarDecorationsUpdateResponse> => {
1144
+ admin/avatar-decorations/update
1145
+
1146
+ No description provided.
1147
+
1148
+ **Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
1149
+ */
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
- )->Promise.then(response => {
1156
+ )
1235
1157
  let _ = response
1236
- ()
1237
- ->Promise.resolve
1238
- })
1239
1158
  }
1240
1159
 
1241
1160
  type postAdminCaptchaCurrentResponse_2 = {
@@ -1277,23 +1196,20 @@ let postAdminCaptchaCurrentResponseSchema = S.object(s => {
1277
1196
  })
1278
1197
 
1279
1198
  /**
1280
- * admin/captcha/current
1281
- *
1282
- * No description provided.
1283
- *
1284
- * **Credential required**: *Yes* / **Permission**: *read:admin:meta*
1285
- */
1286
- let postAdminCaptchaCurrent = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminCaptchaCurrentResponse> => {
1287
-
1288
- fetch(
1199
+ admin/captcha/current
1200
+
1201
+ No description provided.
1202
+
1203
+ **Credential required**: *Yes* / **Permission**: *read:admin:meta*
1204
+ */
1205
+ let postAdminCaptchaCurrent = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminCaptchaCurrentResponse => {
1206
+
1207
+ let response = await fetch(
1289
1208
  ~url="/admin/captcha/current",
1290
1209
  ~method_="POST",
1291
1210
  ~body=None,
1292
- )->Promise.then(response => {
1293
- let value = response->S.parseOrThrow(postAdminCaptchaCurrentResponseSchema)
1294
- value
1295
- ->Promise.resolve
1296
- })
1211
+ )
1212
+ response->S.parseOrThrow(postAdminCaptchaCurrentResponseSchema)
1297
1213
  }
1298
1214
 
1299
1215
  type postAdminCaptchaSaveRequest = {
@@ -1315,67 +1231,58 @@ let postAdminCaptchaSaveRequestSchema = S.object(s => {
1315
1231
  type postAdminCaptchaSaveResponse = unit
1316
1232
 
1317
1233
  /**
1318
- * admin/captcha/save
1319
- *
1320
- * No description provided.
1321
- *
1322
- * **Credential required**: *Yes* / **Permission**: *write:admin:meta*
1323
- */
1324
- let postAdminCaptchaSave = (~body: postAdminCaptchaSaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminCaptchaSaveResponse> => {
1234
+ admin/captcha/save
1235
+
1236
+ No description provided.
1237
+
1238
+ **Credential required**: *Yes* / **Permission**: *write:admin:meta*
1239
+ */
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
- )->Promise.then(response => {
1246
+ )
1331
1247
  let _ = response
1332
- ()
1333
- ->Promise.resolve
1334
- })
1335
1248
  }
1336
1249
 
1337
1250
  type postAdminDriveCleanRemoteFilesResponse = unit
1338
1251
 
1339
1252
  /**
1340
- * admin/drive/clean-remote-files
1341
- *
1342
- * No description provided.
1343
- *
1344
- * **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1345
- */
1346
- let postAdminDriveCleanRemoteFiles = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveCleanRemoteFilesResponse> => {
1347
-
1348
- fetch(
1253
+ admin/drive/clean-remote-files
1254
+
1255
+ No description provided.
1256
+
1257
+ **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1258
+ */
1259
+ let postAdminDriveCleanRemoteFiles = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanRemoteFilesResponse => {
1260
+
1261
+ let response = await fetch(
1349
1262
  ~url="/admin/drive/clean-remote-files",
1350
1263
  ~method_="POST",
1351
1264
  ~body=None,
1352
- )->Promise.then(response => {
1265
+ )
1353
1266
  let _ = response
1354
- ()
1355
- ->Promise.resolve
1356
- })
1357
1267
  }
1358
1268
 
1359
1269
  type postAdminDriveCleanupResponse = unit
1360
1270
 
1361
1271
  /**
1362
- * admin/drive/cleanup
1363
- *
1364
- * No description provided.
1365
- *
1366
- * **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1367
- */
1368
- let postAdminDriveCleanup = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveCleanupResponse> => {
1369
-
1370
- fetch(
1272
+ admin/drive/cleanup
1273
+
1274
+ No description provided.
1275
+
1276
+ **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1277
+ */
1278
+ let postAdminDriveCleanup = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanupResponse => {
1279
+
1280
+ let response = await fetch(
1371
1281
  ~url="/admin/drive/cleanup",
1372
1282
  ~method_="POST",
1373
1283
  ~body=None,
1374
- )->Promise.then(response => {
1284
+ )
1375
1285
  let _ = response
1376
- ()
1377
- ->Promise.resolve
1378
- })
1379
1286
  }
1380
1287
 
1381
1288
  type postAdminDriveDeleteAllFilesOfAUserRequest = {
@@ -1389,23 +1296,20 @@ let postAdminDriveDeleteAllFilesOfAUserRequestSchema = S.object(s => {
1389
1296
  type postAdminDriveDeleteAllFilesOfAUserResponse = unit
1390
1297
 
1391
1298
  /**
1392
- * admin/drive/delete-all-files-of-a-user
1393
- *
1394
- * No description provided.
1395
- *
1396
- * **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1397
- */
1398
- let postAdminDriveDeleteAllFilesOfAUser = (~body: postAdminDriveDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveDeleteAllFilesOfAUserResponse> => {
1299
+ admin/drive/delete-all-files-of-a-user
1300
+
1301
+ No description provided.
1302
+
1303
+ **Credential required**: *Yes* / **Permission**: *write:admin:drive*
1304
+ */
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
- )->Promise.then(response => {
1311
+ )
1405
1312
  let _ = response
1406
- ()
1407
- ->Promise.resolve
1408
- })
1409
1313
  }
1410
1314
 
1411
1315
  type postAdminDriveFilesRequest = {
@@ -1433,23 +1337,20 @@ type postAdminDriveFilesResponse = array<MisskeyIoComponentSchemas.DriveFile.t>
1433
1337
  let postAdminDriveFilesResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFile.schema)
1434
1338
 
1435
1339
  /**
1436
- * admin/drive/files
1437
- *
1438
- * No description provided.
1439
- *
1440
- * **Credential required**: *Yes* / **Permission**: *read:admin:drive*
1441
- */
1442
- let postAdminDriveFiles = (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveFilesResponse> => {
1340
+ admin/drive/files
1341
+
1342
+ No description provided.
1343
+
1344
+ **Credential required**: *Yes* / **Permission**: *read:admin:drive*
1345
+ */
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
- )->Promise.then(response => {
1449
- let value = response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
1450
- value
1451
- ->Promise.resolve
1452
- })
1352
+ )
1353
+ response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
1453
1354
  }
1454
1355
 
1455
1356
  type postAdminDriveShowFileRequest = {
@@ -1529,23 +1430,20 @@ let postAdminDriveShowFileResponseSchema = S.object(s => {
1529
1430
  })
1530
1431
 
1531
1432
  /**
1532
- * admin/drive/show-file
1533
- *
1534
- * No description provided.
1535
- *
1536
- * **Credential required**: *Yes* / **Permission**: *read:admin:drive*
1537
- */
1538
- let postAdminDriveShowFile = (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminDriveShowFileResponse> => {
1433
+ admin/drive/show-file
1434
+
1435
+ No description provided.
1436
+
1437
+ **Credential required**: *Yes* / **Permission**: *read:admin:drive*
1438
+ */
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
- )->Promise.then(response => {
1545
- let value = response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
1546
- value
1547
- ->Promise.resolve
1548
- })
1445
+ )
1446
+ response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
1549
1447
  }
1550
1448
 
1551
1449
  type postAdminEmojiAddRequest = {
@@ -1581,23 +1479,20 @@ type postAdminEmojiAddResponse = MisskeyIoComponentSchemas.EmojiDetailed.t
1581
1479
  let postAdminEmojiAddResponseSchema = MisskeyIoComponentSchemas.EmojiDetailed.schema
1582
1480
 
1583
1481
  /**
1584
- * admin/emoji/add
1585
- *
1586
- * No description provided.
1587
- *
1588
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1589
- */
1590
- let postAdminEmojiAdd = (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiAddResponse> => {
1482
+ admin/emoji/add
1483
+
1484
+ No description provided.
1485
+
1486
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1487
+ */
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
- )->Promise.then(response => {
1597
- let value = response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
1598
- value
1599
- ->Promise.resolve
1600
- })
1494
+ )
1495
+ response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
1601
1496
  }
1602
1497
 
1603
1498
  type postAdminEmojiAddAliasesBulkRequest = {
@@ -1613,23 +1508,20 @@ let postAdminEmojiAddAliasesBulkRequestSchema = S.object(s => {
1613
1508
  type postAdminEmojiAddAliasesBulkResponse = unit
1614
1509
 
1615
1510
  /**
1616
- * admin/emoji/add-aliases-bulk
1617
- *
1618
- * No description provided.
1619
- *
1620
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1621
- */
1622
- let postAdminEmojiAddAliasesBulk = (~body: postAdminEmojiAddAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiAddAliasesBulkResponse> => {
1511
+ admin/emoji/add-aliases-bulk
1512
+
1513
+ No description provided.
1514
+
1515
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1516
+ */
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
- )->Promise.then(response => {
1523
+ )
1629
1524
  let _ = response
1630
- ()
1631
- ->Promise.resolve
1632
- })
1633
1525
  }
1634
1526
 
1635
1527
  type postAdminEmojiCopyRequest = {
@@ -1649,23 +1541,20 @@ let postAdminEmojiCopyResponseSchema = S.object(s => {
1649
1541
  })
1650
1542
 
1651
1543
  /**
1652
- * admin/emoji/copy
1653
- *
1654
- * No description provided.
1655
- *
1656
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1657
- */
1658
- let postAdminEmojiCopy = (~body: postAdminEmojiCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiCopyResponse> => {
1544
+ admin/emoji/copy
1545
+
1546
+ No description provided.
1547
+
1548
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1549
+ */
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
- )->Promise.then(response => {
1665
- let value = response->S.parseOrThrow(postAdminEmojiCopyResponseSchema)
1666
- value
1667
- ->Promise.resolve
1668
- })
1556
+ )
1557
+ response->S.parseOrThrow(postAdminEmojiCopyResponseSchema)
1669
1558
  }
1670
1559
 
1671
1560
  type postAdminEmojiDeleteRequest = {
@@ -1679,23 +1568,20 @@ let postAdminEmojiDeleteRequestSchema = S.object(s => {
1679
1568
  type postAdminEmojiDeleteResponse = unit
1680
1569
 
1681
1570
  /**
1682
- * admin/emoji/delete
1683
- *
1684
- * No description provided.
1685
- *
1686
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1687
- */
1688
- let postAdminEmojiDelete = (~body: postAdminEmojiDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiDeleteResponse> => {
1571
+ admin/emoji/delete
1572
+
1573
+ No description provided.
1574
+
1575
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1576
+ */
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
- )->Promise.then(response => {
1583
+ )
1695
1584
  let _ = response
1696
- ()
1697
- ->Promise.resolve
1698
- })
1699
1585
  }
1700
1586
 
1701
1587
  type postAdminEmojiDeleteBulkRequest = {
@@ -1709,23 +1595,20 @@ let postAdminEmojiDeleteBulkRequestSchema = S.object(s => {
1709
1595
  type postAdminEmojiDeleteBulkResponse = unit
1710
1596
 
1711
1597
  /**
1712
- * admin/emoji/delete-bulk
1713
- *
1714
- * No description provided.
1715
- *
1716
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1717
- */
1718
- let postAdminEmojiDeleteBulk = (~body: postAdminEmojiDeleteBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiDeleteBulkResponse> => {
1598
+ admin/emoji/delete-bulk
1599
+
1600
+ No description provided.
1601
+
1602
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1603
+ */
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
- )->Promise.then(response => {
1610
+ )
1725
1611
  let _ = response
1726
- ()
1727
- ->Promise.resolve
1728
- })
1729
1612
  }
1730
1613
 
1731
1614
  type postAdminEmojiListRequest = {
@@ -1765,23 +1648,20 @@ let postAdminEmojiListResponse_1Schema = S.object(s => {
1765
1648
  let postAdminEmojiListResponseSchema = S.array(postAdminEmojiListResponse_1Schema)
1766
1649
 
1767
1650
  /**
1768
- * admin/emoji/list
1769
- *
1770
- * No description provided.
1771
- *
1772
- * **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1773
- */
1774
- let postAdminEmojiList = (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiListResponse> => {
1651
+ admin/emoji/list
1652
+
1653
+ No description provided.
1654
+
1655
+ **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1656
+ */
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
- )->Promise.then(response => {
1781
- let value = response->S.parseOrThrow(postAdminEmojiListResponseSchema)
1782
- value
1783
- ->Promise.resolve
1784
- })
1663
+ )
1664
+ response->S.parseOrThrow(postAdminEmojiListResponseSchema)
1785
1665
  }
1786
1666
 
1787
1667
  type postAdminEmojiListRemoteRequest = {
@@ -1823,23 +1703,20 @@ let postAdminEmojiListRemoteResponse_1Schema = S.object(s => {
1823
1703
  let postAdminEmojiListRemoteResponseSchema = S.array(postAdminEmojiListRemoteResponse_1Schema)
1824
1704
 
1825
1705
  /**
1826
- * admin/emoji/list-remote
1827
- *
1828
- * No description provided.
1829
- *
1830
- * **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1831
- */
1832
- let postAdminEmojiListRemote = (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiListRemoteResponse> => {
1706
+ admin/emoji/list-remote
1707
+
1708
+ No description provided.
1709
+
1710
+ **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
1711
+ */
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
- )->Promise.then(response => {
1839
- let value = response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
1840
- value
1841
- ->Promise.resolve
1842
- })
1718
+ )
1719
+ response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
1843
1720
  }
1844
1721
 
1845
1722
  type postAdminEmojiRemoveAliasesBulkRequest = {
@@ -1855,23 +1732,20 @@ let postAdminEmojiRemoveAliasesBulkRequestSchema = S.object(s => {
1855
1732
  type postAdminEmojiRemoveAliasesBulkResponse = unit
1856
1733
 
1857
1734
  /**
1858
- * admin/emoji/remove-aliases-bulk
1859
- *
1860
- * No description provided.
1861
- *
1862
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1863
- */
1864
- let postAdminEmojiRemoveAliasesBulk = (~body: postAdminEmojiRemoveAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiRemoveAliasesBulkResponse> => {
1735
+ admin/emoji/remove-aliases-bulk
1736
+
1737
+ No description provided.
1738
+
1739
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1740
+ */
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
- )->Promise.then(response => {
1747
+ )
1871
1748
  let _ = response
1872
- ()
1873
- ->Promise.resolve
1874
- })
1875
1749
  }
1876
1750
 
1877
1751
  type postAdminEmojiSetAliasesBulkRequest = {
@@ -1887,23 +1761,20 @@ let postAdminEmojiSetAliasesBulkRequestSchema = S.object(s => {
1887
1761
  type postAdminEmojiSetAliasesBulkResponse = unit
1888
1762
 
1889
1763
  /**
1890
- * admin/emoji/set-aliases-bulk
1891
- *
1892
- * No description provided.
1893
- *
1894
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1895
- */
1896
- let postAdminEmojiSetAliasesBulk = (~body: postAdminEmojiSetAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiSetAliasesBulkResponse> => {
1764
+ admin/emoji/set-aliases-bulk
1765
+
1766
+ No description provided.
1767
+
1768
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1769
+ */
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
- )->Promise.then(response => {
1776
+ )
1903
1777
  let _ = response
1904
- ()
1905
- ->Promise.resolve
1906
- })
1907
1778
  }
1908
1779
 
1909
1780
  type postAdminEmojiSetCategoryBulkRequest = {
@@ -1919,23 +1790,20 @@ let postAdminEmojiSetCategoryBulkRequestSchema = S.object(s => {
1919
1790
  type postAdminEmojiSetCategoryBulkResponse = unit
1920
1791
 
1921
1792
  /**
1922
- * admin/emoji/set-category-bulk
1923
- *
1924
- * No description provided.
1925
- *
1926
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1927
- */
1928
- let postAdminEmojiSetCategoryBulk = (~body: postAdminEmojiSetCategoryBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiSetCategoryBulkResponse> => {
1793
+ admin/emoji/set-category-bulk
1794
+
1795
+ No description provided.
1796
+
1797
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1798
+ */
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
- )->Promise.then(response => {
1805
+ )
1935
1806
  let _ = response
1936
- ()
1937
- ->Promise.resolve
1938
- })
1939
1807
  }
1940
1808
 
1941
1809
  type postAdminEmojiSetLicenseBulkRequest = {
@@ -1951,23 +1819,20 @@ let postAdminEmojiSetLicenseBulkRequestSchema = S.object(s => {
1951
1819
  type postAdminEmojiSetLicenseBulkResponse = unit
1952
1820
 
1953
1821
  /**
1954
- * admin/emoji/set-license-bulk
1955
- *
1956
- * No description provided.
1957
- *
1958
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1959
- */
1960
- let postAdminEmojiSetLicenseBulk = (~body: postAdminEmojiSetLicenseBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiSetLicenseBulkResponse> => {
1822
+ admin/emoji/set-license-bulk
1823
+
1824
+ No description provided.
1825
+
1826
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1827
+ */
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
- )->Promise.then(response => {
1834
+ )
1967
1835
  let _ = response
1968
- ()
1969
- ->Promise.resolve
1970
- })
1971
1836
  }
1972
1837
 
1973
1838
  type postAdminEmojiUpdateRequest = {
@@ -2003,23 +1868,20 @@ let postAdminEmojiUpdateRequestSchema = S.object(s => {
2003
1868
  type postAdminEmojiUpdateResponse = unit
2004
1869
 
2005
1870
  /**
2006
- * admin/emoji/update
2007
- *
2008
- * No description provided.
2009
- *
2010
- * **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
2011
- */
2012
- let postAdminEmojiUpdate = (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiUpdateResponse> => {
1871
+ admin/emoji/update
1872
+
1873
+ No description provided.
1874
+
1875
+ **Credential required**: *Yes* / **Permission**: *write:admin:emoji*
1876
+ */
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
- )->Promise.then(response => {
1883
+ )
2019
1884
  let _ = response
2020
- ()
2021
- ->Promise.resolve
2022
- })
2023
1885
  }
2024
1886
 
2025
1887
  type postAdminFederationDeleteAllFilesRequest = {
@@ -2033,23 +1895,20 @@ let postAdminFederationDeleteAllFilesRequestSchema = S.object(s => {
2033
1895
  type postAdminFederationDeleteAllFilesResponse = unit
2034
1896
 
2035
1897
  /**
2036
- * admin/federation/delete-all-files
2037
- *
2038
- * No description provided.
2039
- *
2040
- * **Credential required**: *Yes* / **Permission**: *write:admin:federation*
2041
- */
2042
- let postAdminFederationDeleteAllFiles = (~body: postAdminFederationDeleteAllFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminFederationDeleteAllFilesResponse> => {
1898
+ admin/federation/delete-all-files
1899
+
1900
+ No description provided.
1901
+
1902
+ **Credential required**: *Yes* / **Permission**: *write:admin:federation*
1903
+ */
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
- )->Promise.then(response => {
1910
+ )
2049
1911
  let _ = response
2050
- ()
2051
- ->Promise.resolve
2052
- })
2053
1912
  }
2054
1913
 
2055
1914
  type postAdminFederationRefreshRemoteInstanceMetadataRequest = {
@@ -2063,23 +1922,20 @@ let postAdminFederationRefreshRemoteInstanceMetadataRequestSchema = S.object(s =
2063
1922
  type postAdminFederationRefreshRemoteInstanceMetadataResponse = unit
2064
1923
 
2065
1924
  /**
2066
- * admin/federation/refresh-remote-instance-metadata
2067
- *
2068
- * No description provided.
2069
- *
2070
- * **Credential required**: *Yes* / **Permission**: *write:admin:federation*
2071
- */
2072
- let postAdminFederationRefreshRemoteInstanceMetadata = (~body: postAdminFederationRefreshRemoteInstanceMetadataRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminFederationRefreshRemoteInstanceMetadataResponse> => {
1925
+ admin/federation/refresh-remote-instance-metadata
1926
+
1927
+ No description provided.
1928
+
1929
+ **Credential required**: *Yes* / **Permission**: *write:admin:federation*
1930
+ */
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
- )->Promise.then(response => {
1937
+ )
2079
1938
  let _ = response
2080
- ()
2081
- ->Promise.resolve
2082
- })
2083
1939
  }
2084
1940
 
2085
1941
  type postAdminFederationRemoveAllFollowingRequest = {
@@ -2093,23 +1949,20 @@ let postAdminFederationRemoveAllFollowingRequestSchema = S.object(s => {
2093
1949
  type postAdminFederationRemoveAllFollowingResponse = unit
2094
1950
 
2095
1951
  /**
2096
- * admin/federation/remove-all-following
2097
- *
2098
- * No description provided.
2099
- *
2100
- * **Credential required**: *Yes* / **Permission**: *write:admin:federation*
2101
- */
2102
- let postAdminFederationRemoveAllFollowing = (~body: postAdminFederationRemoveAllFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminFederationRemoveAllFollowingResponse> => {
1952
+ admin/federation/remove-all-following
1953
+
1954
+ No description provided.
1955
+
1956
+ **Credential required**: *Yes* / **Permission**: *write:admin:federation*
1957
+ */
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
- )->Promise.then(response => {
1964
+ )
2109
1965
  let _ = response
2110
- ()
2111
- ->Promise.resolve
2112
- })
2113
1966
  }
2114
1967
 
2115
1968
  type postAdminFederationUpdateInstanceRequest = {
@@ -2127,23 +1980,20 @@ let postAdminFederationUpdateInstanceRequestSchema = S.object(s => {
2127
1980
  type postAdminFederationUpdateInstanceResponse = unit
2128
1981
 
2129
1982
  /**
2130
- * admin/federation/update-instance
2131
- *
2132
- * No description provided.
2133
- *
2134
- * **Credential required**: *Yes* / **Permission**: *write:admin:federation*
2135
- */
2136
- let postAdminFederationUpdateInstance = (~body: postAdminFederationUpdateInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminFederationUpdateInstanceResponse> => {
1983
+ admin/federation/update-instance
1984
+
1985
+ No description provided.
1986
+
1987
+ **Credential required**: *Yes* / **Permission**: *write:admin:federation*
1988
+ */
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
- )->Promise.then(response => {
1995
+ )
2143
1996
  let _ = response
2144
- ()
2145
- ->Promise.resolve
2146
- })
2147
1997
  }
2148
1998
 
2149
1999
  type postAdminForwardAbuseUserReportRequest = {
@@ -2157,23 +2007,20 @@ let postAdminForwardAbuseUserReportRequestSchema = S.object(s => {
2157
2007
  type postAdminForwardAbuseUserReportResponse = unit
2158
2008
 
2159
2009
  /**
2160
- * admin/forward-abuse-user-report
2161
- *
2162
- * No description provided.
2163
- *
2164
- * **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
2165
- */
2166
- let postAdminForwardAbuseUserReport = (~body: postAdminForwardAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminForwardAbuseUserReportResponse> => {
2010
+ admin/forward-abuse-user-report
2011
+
2012
+ No description provided.
2013
+
2014
+ **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
2015
+ */
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
- )->Promise.then(response => {
2022
+ )
2173
2023
  let _ = response
2174
- ()
2175
- ->Promise.resolve
2176
- })
2177
2024
  }
2178
2025
 
2179
2026
  type postAdminGetIndexStatsResponse_1 = {
@@ -2191,23 +2038,20 @@ let postAdminGetIndexStatsResponse_1Schema = S.object(s => {
2191
2038
  let postAdminGetIndexStatsResponseSchema = S.array(postAdminGetIndexStatsResponse_1Schema)
2192
2039
 
2193
2040
  /**
2194
- * admin/get-index-stats
2195
- *
2196
- * No description provided.
2197
- *
2198
- * **Credential required**: *Yes* / **Permission**: *read:admin:index-stats*
2199
- */
2200
- let postAdminGetIndexStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminGetIndexStatsResponse> => {
2201
-
2202
- fetch(
2041
+ admin/get-index-stats
2042
+
2043
+ No description provided.
2044
+
2045
+ **Credential required**: *Yes* / **Permission**: *read:admin:index-stats*
2046
+ */
2047
+ let postAdminGetIndexStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetIndexStatsResponse => {
2048
+
2049
+ let response = await fetch(
2203
2050
  ~url="/admin/get-index-stats",
2204
2051
  ~method_="POST",
2205
2052
  ~body=None,
2206
- )->Promise.then(response => {
2207
- let value = response->S.parseOrThrow(postAdminGetIndexStatsResponseSchema)
2208
- value
2209
- ->Promise.resolve
2210
- })
2053
+ )
2054
+ response->S.parseOrThrow(postAdminGetIndexStatsResponseSchema)
2211
2055
  }
2212
2056
 
2213
2057
  type postAdminGetTableStatsResponse = dict<JSON.t>
@@ -2215,23 +2059,20 @@ type postAdminGetTableStatsResponse = dict<JSON.t>
2215
2059
  let postAdminGetTableStatsResponseSchema = S.dict(S.json)
2216
2060
 
2217
2061
  /**
2218
- * admin/get-table-stats
2219
- *
2220
- * No description provided.
2221
- *
2222
- * **Credential required**: *Yes* / **Permission**: *read:admin:table-stats*
2223
- */
2224
- let postAdminGetTableStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminGetTableStatsResponse> => {
2225
-
2226
- fetch(
2062
+ admin/get-table-stats
2063
+
2064
+ No description provided.
2065
+
2066
+ **Credential required**: *Yes* / **Permission**: *read:admin:table-stats*
2067
+ */
2068
+ let postAdminGetTableStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetTableStatsResponse => {
2069
+
2070
+ let response = await fetch(
2227
2071
  ~url="/admin/get-table-stats",
2228
2072
  ~method_="POST",
2229
2073
  ~body=None,
2230
- )->Promise.then(response => {
2231
- let value = response->S.parseOrThrow(postAdminGetTableStatsResponseSchema)
2232
- value
2233
- ->Promise.resolve
2234
- })
2074
+ )
2075
+ response->S.parseOrThrow(postAdminGetTableStatsResponseSchema)
2235
2076
  }
2236
2077
 
2237
2078
  type postAdminGetUserIpsRequest = {
@@ -2257,23 +2098,20 @@ let postAdminGetUserIpsResponse_1Schema = S.object(s => {
2257
2098
  let postAdminGetUserIpsResponseSchema = S.array(postAdminGetUserIpsResponse_1Schema)
2258
2099
 
2259
2100
  /**
2260
- * admin/get-user-ips
2261
- *
2262
- * No description provided.
2263
- *
2264
- * **Credential required**: *Yes* / **Permission**: *read:admin:user-ips*
2265
- */
2266
- let postAdminGetUserIps = (~body: postAdminGetUserIpsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminGetUserIpsResponse> => {
2101
+ admin/get-user-ips
2102
+
2103
+ No description provided.
2104
+
2105
+ **Credential required**: *Yes* / **Permission**: *read:admin:user-ips*
2106
+ */
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
- )->Promise.then(response => {
2273
- let value = response->S.parseOrThrow(postAdminGetUserIpsResponseSchema)
2274
- value
2275
- ->Promise.resolve
2276
- })
2113
+ )
2114
+ response->S.parseOrThrow(postAdminGetUserIpsResponseSchema)
2277
2115
  }
2278
2116
 
2279
2117
  type postAdminIndieAuthCreateRequest = {
@@ -2303,23 +2141,20 @@ let postAdminIndieAuthCreateResponseSchema = S.object(s => {
2303
2141
  })
2304
2142
 
2305
2143
  /**
2306
- * admin/indie-auth/create
2307
- *
2308
- * No description provided.
2309
- *
2310
- * **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2311
- */
2312
- let postAdminIndieAuthCreate = (~body: postAdminIndieAuthCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminIndieAuthCreateResponse> => {
2144
+ admin/indie-auth/create
2145
+
2146
+ No description provided.
2147
+
2148
+ **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2149
+ */
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
- )->Promise.then(response => {
2319
- let value = response->S.parseOrThrow(postAdminIndieAuthCreateResponseSchema)
2320
- value
2321
- ->Promise.resolve
2322
- })
2156
+ )
2157
+ response->S.parseOrThrow(postAdminIndieAuthCreateResponseSchema)
2323
2158
  }
2324
2159
 
2325
2160
  type postAdminIndieAuthDeleteRequest = {
@@ -2333,23 +2168,20 @@ let postAdminIndieAuthDeleteRequestSchema = S.object(s => {
2333
2168
  type postAdminIndieAuthDeleteResponse = unit
2334
2169
 
2335
2170
  /**
2336
- * admin/indie-auth/delete
2337
- *
2338
- * No description provided.
2339
- *
2340
- * **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2341
- */
2342
- let postAdminIndieAuthDelete = (~body: postAdminIndieAuthDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminIndieAuthDeleteResponse> => {
2171
+ admin/indie-auth/delete
2172
+
2173
+ No description provided.
2174
+
2175
+ **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2176
+ */
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
- )->Promise.then(response => {
2183
+ )
2349
2184
  let _ = response
2350
- ()
2351
- ->Promise.resolve
2352
- })
2353
2185
  }
2354
2186
 
2355
2187
  type postAdminIndieAuthListRequest = {
@@ -2381,23 +2213,20 @@ let postAdminIndieAuthListResponse_1Schema = S.object(s => {
2381
2213
  let postAdminIndieAuthListResponseSchema = S.array(postAdminIndieAuthListResponse_1Schema)
2382
2214
 
2383
2215
  /**
2384
- * admin/indie-auth/list
2385
- *
2386
- * No description provided.
2387
- *
2388
- * **Credential required**: *Yes* / **Permission**: *read:admin:indie-auth*
2389
- */
2390
- let postAdminIndieAuthList = (~body: postAdminIndieAuthListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminIndieAuthListResponse> => {
2216
+ admin/indie-auth/list
2217
+
2218
+ No description provided.
2219
+
2220
+ **Credential required**: *Yes* / **Permission**: *read:admin:indie-auth*
2221
+ */
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
- )->Promise.then(response => {
2397
- let value = response->S.parseOrThrow(postAdminIndieAuthListResponseSchema)
2398
- value
2399
- ->Promise.resolve
2400
- })
2228
+ )
2229
+ response->S.parseOrThrow(postAdminIndieAuthListResponseSchema)
2401
2230
  }
2402
2231
 
2403
2232
  type postAdminIndieAuthUpdateRequest = {
@@ -2415,23 +2244,20 @@ let postAdminIndieAuthUpdateRequestSchema = S.object(s => {
2415
2244
  type postAdminIndieAuthUpdateResponse = unit
2416
2245
 
2417
2246
  /**
2418
- * admin/indie-auth/update
2419
- *
2420
- * No description provided.
2421
- *
2422
- * **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2423
- */
2424
- let postAdminIndieAuthUpdate = (~body: postAdminIndieAuthUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminIndieAuthUpdateResponse> => {
2247
+ admin/indie-auth/update
2248
+
2249
+ No description provided.
2250
+
2251
+ **Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
2252
+ */
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
- )->Promise.then(response => {
2259
+ )
2431
2260
  let _ = response
2432
- ()
2433
- ->Promise.resolve
2434
- })
2435
2261
  }
2436
2262
 
2437
2263
  type postAdminInviteCreateRequest = {
@@ -2449,23 +2275,20 @@ type postAdminInviteCreateResponse = array<MisskeyIoComponentSchemas.InviteCode.
2449
2275
  let postAdminInviteCreateResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema)
2450
2276
 
2451
2277
  /**
2452
- * admin/invite/create
2453
- *
2454
- * No description provided.
2455
- *
2456
- * **Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
2457
- */
2458
- let postAdminInviteCreate = (~body: postAdminInviteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminInviteCreateResponse> => {
2278
+ admin/invite/create
2279
+
2280
+ No description provided.
2281
+
2282
+ **Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
2283
+ */
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
- )->Promise.then(response => {
2465
- let value = response->S.parseOrThrow(postAdminInviteCreateResponseSchema)
2466
- value
2467
- ->Promise.resolve
2468
- })
2290
+ )
2291
+ response->S.parseOrThrow(postAdminInviteCreateResponseSchema)
2469
2292
  }
2470
2293
 
2471
2294
  type postAdminInviteListRequest = {
@@ -2487,23 +2310,20 @@ type postAdminInviteListResponse = array<MisskeyIoComponentSchemas.InviteCode.t>
2487
2310
  let postAdminInviteListResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema)
2488
2311
 
2489
2312
  /**
2490
- * admin/invite/list
2491
- *
2492
- * No description provided.
2493
- *
2494
- * **Credential required**: *Yes* / **Permission**: *read:admin:invite-codes*
2495
- */
2496
- let postAdminInviteList = (~body: postAdminInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminInviteListResponse> => {
2313
+ admin/invite/list
2314
+
2315
+ No description provided.
2316
+
2317
+ **Credential required**: *Yes* / **Permission**: *read:admin:invite-codes*
2318
+ */
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
- )->Promise.then(response => {
2503
- let value = response->S.parseOrThrow(postAdminInviteListResponseSchema)
2504
- value
2505
- ->Promise.resolve
2506
- })
2325
+ )
2326
+ response->S.parseOrThrow(postAdminInviteListResponseSchema)
2507
2327
  }
2508
2328
 
2509
2329
  type postAdminPromoCreateRequest = {
@@ -2519,23 +2339,20 @@ let postAdminPromoCreateRequestSchema = S.object(s => {
2519
2339
  type postAdminPromoCreateResponse = unit
2520
2340
 
2521
2341
  /**
2522
- * admin/promo/create
2523
- *
2524
- * No description provided.
2525
- *
2526
- * **Credential required**: *Yes* / **Permission**: *write:admin:promo*
2527
- */
2528
- let postAdminPromoCreate = (~body: postAdminPromoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminPromoCreateResponse> => {
2342
+ admin/promo/create
2343
+
2344
+ No description provided.
2345
+
2346
+ **Credential required**: *Yes* / **Permission**: *write:admin:promo*
2347
+ */
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
- )->Promise.then(response => {
2354
+ )
2535
2355
  let _ = response
2536
- ()
2537
- ->Promise.resolve
2538
- })
2539
2356
  }
2540
2357
 
2541
2358
  type postAdminQueueClearRequest = {
@@ -2551,23 +2368,20 @@ let postAdminQueueClearRequestSchema = S.object(s => {
2551
2368
  type postAdminQueueClearResponse = unit
2552
2369
 
2553
2370
  /**
2554
- * admin/queue/clear
2555
- *
2556
- * No description provided.
2557
- *
2558
- * **Credential required**: *Yes* / **Permission**: *write:admin:queue*
2559
- */
2560
- let postAdminQueueClear = (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueClearResponse> => {
2371
+ admin/queue/clear
2372
+
2373
+ No description provided.
2374
+
2375
+ **Credential required**: *Yes* / **Permission**: *write:admin:queue*
2376
+ */
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
- )->Promise.then(response => {
2383
+ )
2567
2384
  let _ = response
2568
- ()
2569
- ->Promise.resolve
2570
- })
2571
2385
  }
2572
2386
 
2573
2387
  type postAdminQueueDeliverDelayedResponse = array<array<JSON.t>>
@@ -2575,23 +2389,20 @@ type postAdminQueueDeliverDelayedResponse = array<array<JSON.t>>
2575
2389
  let postAdminQueueDeliverDelayedResponseSchema = S.array(S.array(S.json))
2576
2390
 
2577
2391
  /**
2578
- * admin/queue/deliver-delayed
2579
- *
2580
- * No description provided.
2581
- *
2582
- * **Credential required**: *Yes* / **Permission**: *read:admin:queue*
2583
- */
2584
- let postAdminQueueDeliverDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueDeliverDelayedResponse> => {
2585
-
2586
- fetch(
2392
+ admin/queue/deliver-delayed
2393
+
2394
+ No description provided.
2395
+
2396
+ **Credential required**: *Yes* / **Permission**: *read:admin:queue*
2397
+ */
2398
+ let postAdminQueueDeliverDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueDeliverDelayedResponse => {
2399
+
2400
+ let response = await fetch(
2587
2401
  ~url="/admin/queue/deliver-delayed",
2588
2402
  ~method_="POST",
2589
2403
  ~body=None,
2590
- )->Promise.then(response => {
2591
- let value = response->S.parseOrThrow(postAdminQueueDeliverDelayedResponseSchema)
2592
- value
2593
- ->Promise.resolve
2594
- })
2404
+ )
2405
+ response->S.parseOrThrow(postAdminQueueDeliverDelayedResponseSchema)
2595
2406
  }
2596
2407
 
2597
2408
  type postAdminQueueInboxDelayedResponse = array<array<JSON.t>>
@@ -2599,23 +2410,20 @@ type postAdminQueueInboxDelayedResponse = array<array<JSON.t>>
2599
2410
  let postAdminQueueInboxDelayedResponseSchema = S.array(S.array(S.json))
2600
2411
 
2601
2412
  /**
2602
- * admin/queue/inbox-delayed
2603
- *
2604
- * No description provided.
2605
- *
2606
- * **Credential required**: *Yes* / **Permission**: *read:admin:queue*
2607
- */
2608
- let postAdminQueueInboxDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueInboxDelayedResponse> => {
2609
-
2610
- fetch(
2413
+ admin/queue/inbox-delayed
2414
+
2415
+ No description provided.
2416
+
2417
+ **Credential required**: *Yes* / **Permission**: *read:admin:queue*
2418
+ */
2419
+ let postAdminQueueInboxDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueInboxDelayedResponse => {
2420
+
2421
+ let response = await fetch(
2611
2422
  ~url="/admin/queue/inbox-delayed",
2612
2423
  ~method_="POST",
2613
2424
  ~body=None,
2614
- )->Promise.then(response => {
2615
- let value = response->S.parseOrThrow(postAdminQueueInboxDelayedResponseSchema)
2616
- value
2617
- ->Promise.resolve
2618
- })
2425
+ )
2426
+ response->S.parseOrThrow(postAdminQueueInboxDelayedResponseSchema)
2619
2427
  }
2620
2428
 
2621
2429
  type postAdminQueuePromoteRequest = {
@@ -2629,23 +2437,20 @@ let postAdminQueuePromoteRequestSchema = S.object(s => {
2629
2437
  type postAdminQueuePromoteResponse = unit
2630
2438
 
2631
2439
  /**
2632
- * admin/queue/promote
2633
- *
2634
- * No description provided.
2635
- *
2636
- * **Credential required**: *Yes* / **Permission**: *write:admin:queue*
2637
- */
2638
- let postAdminQueuePromote = (~body: postAdminQueuePromoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueuePromoteResponse> => {
2440
+ admin/queue/promote
2441
+
2442
+ No description provided.
2443
+
2444
+ **Credential required**: *Yes* / **Permission**: *write:admin:queue*
2445
+ */
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
- )->Promise.then(response => {
2452
+ )
2645
2453
  let _ = response
2646
- ()
2647
- ->Promise.resolve
2648
- })
2649
2454
  }
2650
2455
 
2651
2456
  type postAdminQueueStatsResponse = {
@@ -2663,23 +2468,20 @@ let postAdminQueueStatsResponseSchema = S.object(s => {
2663
2468
  })
2664
2469
 
2665
2470
  /**
2666
- * admin/queue/stats
2667
- *
2668
- * No description provided.
2669
- *
2670
- * **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
2671
- */
2672
- let postAdminQueueStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminQueueStatsResponse> => {
2673
-
2674
- fetch(
2471
+ admin/queue/stats
2472
+
2473
+ No description provided.
2474
+
2475
+ **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
2476
+ */
2477
+ let postAdminQueueStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueStatsResponse => {
2478
+
2479
+ let response = await fetch(
2675
2480
  ~url="/admin/queue/stats",
2676
2481
  ~method_="POST",
2677
2482
  ~body=None,
2678
- )->Promise.then(response => {
2679
- let value = response->S.parseOrThrow(postAdminQueueStatsResponseSchema)
2680
- value
2681
- ->Promise.resolve
2682
- })
2483
+ )
2484
+ response->S.parseOrThrow(postAdminQueueStatsResponseSchema)
2683
2485
  }
2684
2486
 
2685
2487
  type postAdminRegenerateUserTokenRequest = {
@@ -2693,23 +2495,20 @@ let postAdminRegenerateUserTokenRequestSchema = S.object(s => {
2693
2495
  type postAdminRegenerateUserTokenResponse = unit
2694
2496
 
2695
2497
  /**
2696
- * admin/regenerate-user-token
2697
- *
2698
- * No description provided.
2699
- *
2700
- * **Credential required**: *Yes* / **Permission**: *write:admin:regenerate-user-token*
2701
- */
2702
- let postAdminRegenerateUserToken = (~body: postAdminRegenerateUserTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRegenerateUserTokenResponse> => {
2498
+ admin/regenerate-user-token
2499
+
2500
+ No description provided.
2501
+
2502
+ **Credential required**: *Yes* / **Permission**: *write:admin:regenerate-user-token*
2503
+ */
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
- )->Promise.then(response => {
2510
+ )
2709
2511
  let _ = response
2710
- ()
2711
- ->Promise.resolve
2712
- })
2713
2512
  }
2714
2513
 
2715
2514
  type postAdminRelaysAddRequest = {
@@ -2733,23 +2532,20 @@ let postAdminRelaysAddResponseSchema = S.object(s => {
2733
2532
  })
2734
2533
 
2735
2534
  /**
2736
- * admin/relays/add
2737
- *
2738
- * No description provided.
2739
- *
2740
- * **Credential required**: *Yes* / **Permission**: *write:admin:relays*
2741
- */
2742
- let postAdminRelaysAdd = (~body: postAdminRelaysAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRelaysAddResponse> => {
2535
+ admin/relays/add
2536
+
2537
+ No description provided.
2538
+
2539
+ **Credential required**: *Yes* / **Permission**: *write:admin:relays*
2540
+ */
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
- )->Promise.then(response => {
2749
- let value = response->S.parseOrThrow(postAdminRelaysAddResponseSchema)
2750
- value
2751
- ->Promise.resolve
2752
- })
2547
+ )
2548
+ response->S.parseOrThrow(postAdminRelaysAddResponseSchema)
2753
2549
  }
2754
2550
 
2755
2551
  type postAdminRelaysListResponse_1 = {
@@ -2769,23 +2565,20 @@ let postAdminRelaysListResponse_1Schema = S.object(s => {
2769
2565
  let postAdminRelaysListResponseSchema = S.array(postAdminRelaysListResponse_1Schema)
2770
2566
 
2771
2567
  /**
2772
- * admin/relays/list
2773
- *
2774
- * No description provided.
2775
- *
2776
- * **Credential required**: *Yes* / **Permission**: *read:admin:relays*
2777
- */
2778
- let postAdminRelaysList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRelaysListResponse> => {
2779
-
2780
- fetch(
2568
+ admin/relays/list
2569
+
2570
+ No description provided.
2571
+
2572
+ **Credential required**: *Yes* / **Permission**: *read:admin:relays*
2573
+ */
2574
+ let postAdminRelaysList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysListResponse => {
2575
+
2576
+ let response = await fetch(
2781
2577
  ~url="/admin/relays/list",
2782
2578
  ~method_="POST",
2783
2579
  ~body=None,
2784
- )->Promise.then(response => {
2785
- let value = response->S.parseOrThrow(postAdminRelaysListResponseSchema)
2786
- value
2787
- ->Promise.resolve
2788
- })
2580
+ )
2581
+ response->S.parseOrThrow(postAdminRelaysListResponseSchema)
2789
2582
  }
2790
2583
 
2791
2584
  type postAdminRelaysRemoveRequest = {
@@ -2799,23 +2592,20 @@ let postAdminRelaysRemoveRequestSchema = S.object(s => {
2799
2592
  type postAdminRelaysRemoveResponse = unit
2800
2593
 
2801
2594
  /**
2802
- * admin/relays/remove
2803
- *
2804
- * No description provided.
2805
- *
2806
- * **Credential required**: *Yes* / **Permission**: *write:admin:relays*
2807
- */
2808
- let postAdminRelaysRemove = (~body: postAdminRelaysRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRelaysRemoveResponse> => {
2595
+ admin/relays/remove
2596
+
2597
+ No description provided.
2598
+
2599
+ **Credential required**: *Yes* / **Permission**: *write:admin:relays*
2600
+ */
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
- )->Promise.then(response => {
2607
+ )
2815
2608
  let _ = response
2816
- ()
2817
- ->Promise.resolve
2818
- })
2819
2609
  }
2820
2610
 
2821
2611
  type postAdminResetPasswordRequest = {
@@ -2835,23 +2625,20 @@ let postAdminResetPasswordResponseSchema = S.object(s => {
2835
2625
  })
2836
2626
 
2837
2627
  /**
2838
- * admin/reset-password
2839
- *
2840
- * No description provided.
2841
- *
2842
- * **Credential required**: *Yes* / **Permission**: *write:admin:reset-password*
2843
- */
2844
- let postAdminResetPassword = (~body: postAdminResetPasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminResetPasswordResponse> => {
2628
+ admin/reset-password
2629
+
2630
+ No description provided.
2631
+
2632
+ **Credential required**: *Yes* / **Permission**: *write:admin:reset-password*
2633
+ */
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
- )->Promise.then(response => {
2851
- let value = response->S.parseOrThrow(postAdminResetPasswordResponseSchema)
2852
- value
2853
- ->Promise.resolve
2854
- })
2640
+ )
2641
+ response->S.parseOrThrow(postAdminResetPasswordResponseSchema)
2855
2642
  }
2856
2643
 
2857
2644
  type postAdminResolveAbuseUserReportRequest = {
@@ -2869,23 +2656,20 @@ let postAdminResolveAbuseUserReportRequestSchema = S.object(s => {
2869
2656
  type postAdminResolveAbuseUserReportResponse = unit
2870
2657
 
2871
2658
  /**
2872
- * admin/resolve-abuse-user-report
2873
- *
2874
- * No description provided.
2875
- *
2876
- * **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
2877
- */
2878
- let postAdminResolveAbuseUserReport = (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminResolveAbuseUserReportResponse> => {
2659
+ admin/resolve-abuse-user-report
2660
+
2661
+ No description provided.
2662
+
2663
+ **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
2664
+ */
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
- )->Promise.then(response => {
2671
+ )
2885
2672
  let _ = response
2886
- ()
2887
- ->Promise.resolve
2888
- })
2889
2673
  }
2890
2674
 
2891
2675
  type postAdminRolesAssignRequest = {
@@ -2905,23 +2689,20 @@ let postAdminRolesAssignRequestSchema = S.object(s => {
2905
2689
  type postAdminRolesAssignResponse = unit
2906
2690
 
2907
2691
  /**
2908
- * admin/roles/assign
2909
- *
2910
- * No description provided.
2911
- *
2912
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2913
- */
2914
- let postAdminRolesAssign = (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesAssignResponse> => {
2692
+ admin/roles/assign
2693
+
2694
+ No description provided.
2695
+
2696
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2697
+ */
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
- )->Promise.then(response => {
2704
+ )
2921
2705
  let _ = response
2922
- ()
2923
- ->Promise.resolve
2924
- })
2925
2706
  }
2926
2707
 
2927
2708
  type postAdminRolesCreateRequest = {
@@ -2967,23 +2748,20 @@ type postAdminRolesCreateResponse = MisskeyIoComponentSchemas.Role.t
2967
2748
  let postAdminRolesCreateResponseSchema = MisskeyIoComponentSchemas.Role.schema
2968
2749
 
2969
2750
  /**
2970
- * admin/roles/create
2971
- *
2972
- * No description provided.
2973
- *
2974
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2975
- */
2976
- let postAdminRolesCreate = (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesCreateResponse> => {
2751
+ admin/roles/create
2752
+
2753
+ No description provided.
2754
+
2755
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2756
+ */
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
- )->Promise.then(response => {
2983
- let value = response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
2984
- value
2985
- ->Promise.resolve
2986
- })
2763
+ )
2764
+ response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
2987
2765
  }
2988
2766
 
2989
2767
  type postAdminRolesDeleteRequest = {
@@ -2997,23 +2775,20 @@ let postAdminRolesDeleteRequestSchema = S.object(s => {
2997
2775
  type postAdminRolesDeleteResponse = unit
2998
2776
 
2999
2777
  /**
3000
- * admin/roles/delete
3001
- *
3002
- * No description provided.
3003
- *
3004
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
3005
- */
3006
- let postAdminRolesDelete = (~body: postAdminRolesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesDeleteResponse> => {
2778
+ admin/roles/delete
2779
+
2780
+ No description provided.
2781
+
2782
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2783
+ */
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
- )->Promise.then(response => {
2790
+ )
3013
2791
  let _ = response
3014
- ()
3015
- ->Promise.resolve
3016
- })
3017
2792
  }
3018
2793
 
3019
2794
  type postAdminRolesListResponse = array<MisskeyIoComponentSchemas.Role.t>
@@ -3021,23 +2796,20 @@ type postAdminRolesListResponse = array<MisskeyIoComponentSchemas.Role.t>
3021
2796
  let postAdminRolesListResponseSchema = S.array(MisskeyIoComponentSchemas.Role.schema)
3022
2797
 
3023
2798
  /**
3024
- * admin/roles/list
3025
- *
3026
- * No description provided.
3027
- *
3028
- * **Credential required**: *Yes* / **Permission**: *read:admin:roles*
3029
- */
3030
- let postAdminRolesList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesListResponse> => {
3031
-
3032
- fetch(
2799
+ admin/roles/list
2800
+
2801
+ No description provided.
2802
+
2803
+ **Credential required**: *Yes* / **Permission**: *read:admin:roles*
2804
+ */
2805
+ let postAdminRolesList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesListResponse => {
2806
+
2807
+ let response = await fetch(
3033
2808
  ~url="/admin/roles/list",
3034
2809
  ~method_="POST",
3035
2810
  ~body=None,
3036
- )->Promise.then(response => {
3037
- let value = response->S.parseOrThrow(postAdminRolesListResponseSchema)
3038
- value
3039
- ->Promise.resolve
3040
- })
2811
+ )
2812
+ response->S.parseOrThrow(postAdminRolesListResponseSchema)
3041
2813
  }
3042
2814
 
3043
2815
  type postAdminRolesShowRequest = {
@@ -3053,23 +2825,20 @@ type postAdminRolesShowResponse = MisskeyIoComponentSchemas.Role.t
3053
2825
  let postAdminRolesShowResponseSchema = MisskeyIoComponentSchemas.Role.schema
3054
2826
 
3055
2827
  /**
3056
- * admin/roles/show
3057
- *
3058
- * No description provided.
3059
- *
3060
- * **Credential required**: *Yes* / **Permission**: *read:admin:roles*
3061
- */
3062
- let postAdminRolesShow = (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesShowResponse> => {
2828
+ admin/roles/show
2829
+
2830
+ No description provided.
2831
+
2832
+ **Credential required**: *Yes* / **Permission**: *read:admin:roles*
2833
+ */
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
- )->Promise.then(response => {
3069
- let value = response->S.parseOrThrow(postAdminRolesShowResponseSchema)
3070
- value
3071
- ->Promise.resolve
3072
- })
2840
+ )
2841
+ response->S.parseOrThrow(postAdminRolesShowResponseSchema)
3073
2842
  }
3074
2843
 
3075
2844
  type postAdminRolesUnassignRequest = {
@@ -3085,23 +2854,20 @@ let postAdminRolesUnassignRequestSchema = S.object(s => {
3085
2854
  type postAdminRolesUnassignResponse = unit
3086
2855
 
3087
2856
  /**
3088
- * admin/roles/unassign
3089
- *
3090
- * No description provided.
3091
- *
3092
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
3093
- */
3094
- let postAdminRolesUnassign = (~body: postAdminRolesUnassignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUnassignResponse> => {
2857
+ admin/roles/unassign
2858
+
2859
+ No description provided.
2860
+
2861
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2862
+ */
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
- )->Promise.then(response => {
2869
+ )
3101
2870
  let _ = response
3102
- ()
3103
- ->Promise.resolve
3104
- })
3105
2871
  }
3106
2872
 
3107
2873
  type postAdminRolesUpdateRequest = {
@@ -3147,23 +2913,20 @@ let postAdminRolesUpdateRequestSchema = S.object(s => {
3147
2913
  type postAdminRolesUpdateResponse = unit
3148
2914
 
3149
2915
  /**
3150
- * admin/roles/update
3151
- *
3152
- * No description provided.
3153
- *
3154
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
3155
- */
3156
- let postAdminRolesUpdate = (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUpdateResponse> => {
2916
+ admin/roles/update
2917
+
2918
+ No description provided.
2919
+
2920
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2921
+ */
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
- )->Promise.then(response => {
2928
+ )
3163
2929
  let _ = response
3164
- ()
3165
- ->Promise.resolve
3166
- })
3167
2930
  }
3168
2931
 
3169
2932
  type postAdminRolesUpdateDefaultPoliciesRequest = {
@@ -3177,23 +2940,20 @@ let postAdminRolesUpdateDefaultPoliciesRequestSchema = S.object(s => {
3177
2940
  type postAdminRolesUpdateDefaultPoliciesResponse = unit
3178
2941
 
3179
2942
  /**
3180
- * admin/roles/update-default-policies
3181
- *
3182
- * No description provided.
3183
- *
3184
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
3185
- */
3186
- let postAdminRolesUpdateDefaultPolicies = (~body: postAdminRolesUpdateDefaultPoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUpdateDefaultPoliciesResponse> => {
2943
+ admin/roles/update-default-policies
2944
+
2945
+ No description provided.
2946
+
2947
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2948
+ */
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
- )->Promise.then(response => {
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)
@@ -3229,23 +2989,20 @@ let postAdminRolesUpdateInlinePoliciesRequestSchema = S.object(s => {
3229
2989
  type postAdminRolesUpdateInlinePoliciesResponse = unit
3230
2990
 
3231
2991
  /**
3232
- * admin/roles/update-inline-policies
3233
- *
3234
- * No description provided.
3235
- *
3236
- * **Credential required**: *Yes* / **Permission**: *write:admin:roles*
3237
- */
3238
- let postAdminRolesUpdateInlinePolicies = (~body: postAdminRolesUpdateInlinePoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUpdateInlinePoliciesResponse> => {
2992
+ admin/roles/update-inline-policies
2993
+
2994
+ No description provided.
2995
+
2996
+ **Credential required**: *Yes* / **Permission**: *write:admin:roles*
2997
+ */
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
- )->Promise.then(response => {
3004
+ )
3245
3005
  let _ = response
3246
- ()
3247
- ->Promise.resolve
3248
- })
3249
3006
  }
3250
3007
 
3251
3008
  type postAdminRolesUsersRequest = {
@@ -3283,23 +3040,20 @@ let postAdminRolesUsersResponse_1Schema = S.object(s => {
3283
3040
  let postAdminRolesUsersResponseSchema = S.array(postAdminRolesUsersResponse_1Schema)
3284
3041
 
3285
3042
  /**
3286
- * admin/roles/users
3287
- *
3288
- * No description provided.
3289
- *
3290
- * **Credential required**: *No* / **Permission**: *read:admin:roles*
3291
- */
3292
- let postAdminRolesUsers = (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminRolesUsersResponse> => {
3043
+ admin/roles/users
3044
+
3045
+ No description provided.
3046
+
3047
+ **Credential required**: *No* / **Permission**: *read:admin:roles*
3048
+ */
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
- )->Promise.then(response => {
3299
- let value = response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
3300
- value
3301
- ->Promise.resolve
3302
- })
3055
+ )
3056
+ response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
3303
3057
  }
3304
3058
 
3305
3059
  type postAdminSendEmailRequest = {
@@ -3317,23 +3071,20 @@ let postAdminSendEmailRequestSchema = S.object(s => {
3317
3071
  type postAdminSendEmailResponse = unit
3318
3072
 
3319
3073
  /**
3320
- * admin/send-email
3321
- *
3322
- * No description provided.
3323
- *
3324
- * **Credential required**: *Yes* / **Permission**: *write:admin:send-email*
3325
- */
3326
- let postAdminSendEmail = (~body: postAdminSendEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSendEmailResponse> => {
3074
+ admin/send-email
3075
+
3076
+ No description provided.
3077
+
3078
+ **Credential required**: *Yes* / **Permission**: *write:admin:send-email*
3079
+ */
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
- )->Promise.then(response => {
3086
+ )
3333
3087
  let _ = response
3334
- ()
3335
- ->Promise.resolve
3336
- })
3337
3088
  }
3338
3089
 
3339
3090
  type postAdminShowModerationLogsRequest = {
@@ -3375,23 +3126,20 @@ let postAdminShowModerationLogsResponse_1Schema = S.object(s => {
3375
3126
  let postAdminShowModerationLogsResponseSchema = S.array(postAdminShowModerationLogsResponse_1Schema)
3376
3127
 
3377
3128
  /**
3378
- * admin/show-moderation-logs
3379
- *
3380
- * No description provided.
3381
- *
3382
- * **Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
3383
- */
3384
- let postAdminShowModerationLogs = (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowModerationLogsResponse> => {
3129
+ admin/show-moderation-logs
3130
+
3131
+ No description provided.
3132
+
3133
+ **Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
3134
+ */
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
- )->Promise.then(response => {
3391
- let value = response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
3392
- value
3393
- ->Promise.resolve
3394
- })
3141
+ )
3142
+ response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
3395
3143
  }
3396
3144
 
3397
3145
  type postAdminShowUserRequest = {
@@ -3537,23 +3285,20 @@ let postAdminShowUserResponseSchema = S.object(s => {
3537
3285
  })
3538
3286
 
3539
3287
  /**
3540
- * admin/show-user
3541
- *
3542
- * No description provided.
3543
- *
3544
- * **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
3545
- */
3546
- let postAdminShowUser = (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowUserResponse> => {
3288
+ admin/show-user
3289
+
3290
+ No description provided.
3291
+
3292
+ **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
3293
+ */
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
- )->Promise.then(response => {
3553
- let value = response->S.parseOrThrow(postAdminShowUserResponseSchema)
3554
- value
3555
- ->Promise.resolve
3556
- })
3300
+ )
3301
+ response->S.parseOrThrow(postAdminShowUserResponseSchema)
3557
3302
  }
3558
3303
 
3559
3304
  type postAdminShowUserAccountMoveLogsRequest = {
@@ -3599,23 +3344,20 @@ let postAdminShowUserAccountMoveLogsResponse_1Schema = S.object(s => {
3599
3344
  let postAdminShowUserAccountMoveLogsResponseSchema = S.array(postAdminShowUserAccountMoveLogsResponse_1Schema)
3600
3345
 
3601
3346
  /**
3602
- * admin/show-user-account-move-logs
3603
- *
3604
- * No description provided.
3605
- *
3606
- * **Credential required**: *Yes* / **Permission**: *read:admin:show-account-move-log*
3607
- */
3608
- let postAdminShowUserAccountMoveLogs = (~body: postAdminShowUserAccountMoveLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowUserAccountMoveLogsResponse> => {
3347
+ admin/show-user-account-move-logs
3348
+
3349
+ No description provided.
3350
+
3351
+ **Credential required**: *Yes* / **Permission**: *read:admin:show-account-move-log*
3352
+ */
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
- )->Promise.then(response => {
3615
- let value = response->S.parseOrThrow(postAdminShowUserAccountMoveLogsResponseSchema)
3616
- value
3617
- ->Promise.resolve
3618
- })
3359
+ )
3360
+ response->S.parseOrThrow(postAdminShowUserAccountMoveLogsResponseSchema)
3619
3361
  }
3620
3362
 
3621
3363
  type postAdminShowUsersRequest = {
@@ -3643,23 +3385,20 @@ type postAdminShowUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t
3643
3385
  let postAdminShowUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
3644
3386
 
3645
3387
  /**
3646
- * admin/show-users
3647
- *
3648
- * No description provided.
3649
- *
3650
- * **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
3651
- */
3652
- let postAdminShowUsers = (~body: postAdminShowUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminShowUsersResponse> => {
3388
+ admin/show-users
3389
+
3390
+ No description provided.
3391
+
3392
+ **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
3393
+ */
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
- )->Promise.then(response => {
3659
- let value = response->S.parseOrThrow(postAdminShowUsersResponseSchema)
3660
- value
3661
- ->Promise.resolve
3662
- })
3400
+ )
3401
+ response->S.parseOrThrow(postAdminShowUsersResponseSchema)
3663
3402
  }
3664
3403
 
3665
3404
  type postAdminSsoCreateRequest = {
@@ -3729,23 +3468,20 @@ let postAdminSsoCreateResponseSchema = S.object(s => {
3729
3468
  })
3730
3469
 
3731
3470
  /**
3732
- * admin/sso/create
3733
- *
3734
- * No description provided.
3735
- *
3736
- * **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3737
- */
3738
- let postAdminSsoCreate = (~body: postAdminSsoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSsoCreateResponse> => {
3471
+ admin/sso/create
3472
+
3473
+ No description provided.
3474
+
3475
+ **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3476
+ */
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
- )->Promise.then(response => {
3745
- let value = response->S.parseOrThrow(postAdminSsoCreateResponseSchema)
3746
- value
3747
- ->Promise.resolve
3748
- })
3483
+ )
3484
+ response->S.parseOrThrow(postAdminSsoCreateResponseSchema)
3749
3485
  }
3750
3486
 
3751
3487
  type postAdminSsoDeleteRequest = {
@@ -3759,23 +3495,20 @@ let postAdminSsoDeleteRequestSchema = S.object(s => {
3759
3495
  type postAdminSsoDeleteResponse = unit
3760
3496
 
3761
3497
  /**
3762
- * admin/sso/delete
3763
- *
3764
- * No description provided.
3765
- *
3766
- * **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3767
- */
3768
- let postAdminSsoDelete = (~body: postAdminSsoDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSsoDeleteResponse> => {
3498
+ admin/sso/delete
3499
+
3500
+ No description provided.
3501
+
3502
+ **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3503
+ */
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
- )->Promise.then(response => {
3510
+ )
3775
3511
  let _ = response
3776
- ()
3777
- ->Promise.resolve
3778
- })
3779
3512
  }
3780
3513
 
3781
3514
  type postAdminSsoListRequest = {
@@ -3829,23 +3562,20 @@ let postAdminSsoListResponse_1Schema = S.object(s => {
3829
3562
  let postAdminSsoListResponseSchema = S.array(postAdminSsoListResponse_1Schema)
3830
3563
 
3831
3564
  /**
3832
- * admin/sso/list
3833
- *
3834
- * No description provided.
3835
- *
3836
- * **Credential required**: *Yes* / **Permission**: *read:admin:sso*
3837
- */
3838
- let postAdminSsoList = (~body: postAdminSsoListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSsoListResponse> => {
3565
+ admin/sso/list
3566
+
3567
+ No description provided.
3568
+
3569
+ **Credential required**: *Yes* / **Permission**: *read:admin:sso*
3570
+ */
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
- )->Promise.then(response => {
3845
- let value = response->S.parseOrThrow(postAdminSsoListResponseSchema)
3846
- value
3847
- ->Promise.resolve
3848
- })
3577
+ )
3578
+ response->S.parseOrThrow(postAdminSsoListResponseSchema)
3849
3579
  }
3850
3580
 
3851
3581
  type postAdminSsoUpdateRequest = {
@@ -3883,23 +3613,20 @@ let postAdminSsoUpdateRequestSchema = S.object(s => {
3883
3613
  type postAdminSsoUpdateResponse = unit
3884
3614
 
3885
3615
  /**
3886
- * admin/sso/update
3887
- *
3888
- * No description provided.
3889
- *
3890
- * **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3891
- */
3892
- let postAdminSsoUpdate = (~body: postAdminSsoUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSsoUpdateResponse> => {
3616
+ admin/sso/update
3617
+
3618
+ No description provided.
3619
+
3620
+ **Credential required**: *Yes* / **Permission**: *write:admin:sso*
3621
+ */
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
- )->Promise.then(response => {
3628
+ )
3899
3629
  let _ = response
3900
- ()
3901
- ->Promise.resolve
3902
- })
3903
3630
  }
3904
3631
 
3905
3632
  type postAdminSuspendUserRequest = {
@@ -3913,23 +3640,20 @@ let postAdminSuspendUserRequestSchema = S.object(s => {
3913
3640
  type postAdminSuspendUserResponse = unit
3914
3641
 
3915
3642
  /**
3916
- * admin/suspend-user
3917
- *
3918
- * No description provided.
3919
- *
3920
- * **Credential required**: *Yes* / **Permission**: *write:admin:suspend-user*
3921
- */
3922
- let postAdminSuspendUser = (~body: postAdminSuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSuspendUserResponse> => {
3643
+ admin/suspend-user
3644
+
3645
+ No description provided.
3646
+
3647
+ **Credential required**: *Yes* / **Permission**: *write:admin:suspend-user*
3648
+ */
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
- )->Promise.then(response => {
3655
+ )
3929
3656
  let _ = response
3930
- ()
3931
- ->Promise.resolve
3932
- })
3933
3657
  }
3934
3658
 
3935
3659
  type postAdminSystemWebhookCreateRequest = {
@@ -3953,24 +3677,21 @@ type postAdminSystemWebhookCreateResponse = MisskeyIoComponentSchemas.SystemWebh
3953
3677
  let postAdminSystemWebhookCreateResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
3954
3678
 
3955
3679
  /**
3956
- * admin/system-webhook/create
3957
- *
3958
- * No description provided.
3959
- *
3960
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3961
- * **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3962
- */
3963
- let postAdminSystemWebhookCreate = (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookCreateResponse> => {
3680
+ admin/system-webhook/create
3681
+
3682
+ No description provided.
3683
+
3684
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3685
+ **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3686
+ */
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
- )->Promise.then(response => {
3970
- let value = response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
3971
- value
3972
- ->Promise.resolve
3973
- })
3693
+ )
3694
+ response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
3974
3695
  }
3975
3696
 
3976
3697
  type postAdminSystemWebhookDeleteRequest = {
@@ -3984,24 +3705,21 @@ let postAdminSystemWebhookDeleteRequestSchema = S.object(s => {
3984
3705
  type postAdminSystemWebhookDeleteResponse = unit
3985
3706
 
3986
3707
  /**
3987
- * admin/system-webhook/delete
3988
- *
3989
- * No description provided.
3990
- *
3991
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3992
- * **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3993
- */
3994
- let postAdminSystemWebhookDelete = (~body: postAdminSystemWebhookDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookDeleteResponse> => {
3708
+ admin/system-webhook/delete
3709
+
3710
+ No description provided.
3711
+
3712
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3713
+ **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3714
+ */
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
- )->Promise.then(response => {
3721
+ )
4001
3722
  let _ = response
4002
- ()
4003
- ->Promise.resolve
4004
- })
4005
3723
  }
4006
3724
 
4007
3725
  type postAdminSystemWebhookListRequest = {
@@ -4019,24 +3737,21 @@ type postAdminSystemWebhookListResponse = array<MisskeyIoComponentSchemas.System
4019
3737
  let postAdminSystemWebhookListResponseSchema = S.array(MisskeyIoComponentSchemas.SystemWebhook.schema)
4020
3738
 
4021
3739
  /**
4022
- * admin/system-webhook/list
4023
- *
4024
- * No description provided.
4025
- *
4026
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
4027
- * **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
4028
- */
4029
- let postAdminSystemWebhookList = (~body: postAdminSystemWebhookListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookListResponse> => {
3740
+ admin/system-webhook/list
3741
+
3742
+ No description provided.
3743
+
3744
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3745
+ **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3746
+ */
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
- )->Promise.then(response => {
4036
- let value = response->S.parseOrThrow(postAdminSystemWebhookListResponseSchema)
4037
- value
4038
- ->Promise.resolve
4039
- })
3753
+ )
3754
+ response->S.parseOrThrow(postAdminSystemWebhookListResponseSchema)
4040
3755
  }
4041
3756
 
4042
3757
  type postAdminSystemWebhookShowRequest = {
@@ -4052,24 +3767,21 @@ type postAdminSystemWebhookShowResponse = MisskeyIoComponentSchemas.SystemWebhoo
4052
3767
  let postAdminSystemWebhookShowResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
4053
3768
 
4054
3769
  /**
4055
- * admin/system-webhook/show
4056
- *
4057
- * No description provided.
4058
- *
4059
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
4060
- * **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
4061
- */
4062
- let postAdminSystemWebhookShow = (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookShowResponse> => {
3770
+ admin/system-webhook/show
3771
+
3772
+ No description provided.
3773
+
3774
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3775
+ **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3776
+ */
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
- )->Promise.then(response => {
4069
- let value = response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
4070
- value
4071
- ->Promise.resolve
4072
- })
3783
+ )
3784
+ response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
4073
3785
  }
4074
3786
 
4075
3787
  type postAdminSystemWebhookUpdateRequest = {
@@ -4095,24 +3807,21 @@ type postAdminSystemWebhookUpdateResponse = MisskeyIoComponentSchemas.SystemWebh
4095
3807
  let postAdminSystemWebhookUpdateResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
4096
3808
 
4097
3809
  /**
4098
- * admin/system-webhook/update
4099
- *
4100
- * No description provided.
4101
- *
4102
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
4103
- * **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
4104
- */
4105
- let postAdminSystemWebhookUpdate = (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminSystemWebhookUpdateResponse> => {
3810
+ admin/system-webhook/update
3811
+
3812
+ No description provided.
3813
+
3814
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
3815
+ **Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
3816
+ */
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
- )->Promise.then(response => {
4112
- let value = response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
4113
- value
4114
- ->Promise.resolve
4115
- })
3823
+ )
3824
+ response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
4116
3825
  }
4117
3826
 
4118
3827
  type postAdminUnsetUserAvatarRequest = {
@@ -4126,23 +3835,20 @@ let postAdminUnsetUserAvatarRequestSchema = S.object(s => {
4126
3835
  type postAdminUnsetUserAvatarResponse = unit
4127
3836
 
4128
3837
  /**
4129
- * admin/unset-user-avatar
4130
- *
4131
- * No description provided.
4132
- *
4133
- * **Credential required**: *Yes* / **Permission**: *write:admin:user-avatar*
4134
- */
4135
- let postAdminUnsetUserAvatar = (~body: postAdminUnsetUserAvatarRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUnsetUserAvatarResponse> => {
3838
+ admin/unset-user-avatar
3839
+
3840
+ No description provided.
3841
+
3842
+ **Credential required**: *Yes* / **Permission**: *write:admin:user-avatar*
3843
+ */
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
- )->Promise.then(response => {
3850
+ )
4142
3851
  let _ = response
4143
- ()
4144
- ->Promise.resolve
4145
- })
4146
3852
  }
4147
3853
 
4148
3854
  type postAdminUnsetUserBannerRequest = {
@@ -4156,23 +3862,20 @@ let postAdminUnsetUserBannerRequestSchema = S.object(s => {
4156
3862
  type postAdminUnsetUserBannerResponse = unit
4157
3863
 
4158
3864
  /**
4159
- * admin/unset-user-banner
4160
- *
4161
- * No description provided.
4162
- *
4163
- * **Credential required**: *Yes* / **Permission**: *write:admin:user-banner*
4164
- */
4165
- let postAdminUnsetUserBanner = (~body: postAdminUnsetUserBannerRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUnsetUserBannerResponse> => {
3865
+ admin/unset-user-banner
3866
+
3867
+ No description provided.
3868
+
3869
+ **Credential required**: *Yes* / **Permission**: *write:admin:user-banner*
3870
+ */
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
- )->Promise.then(response => {
3877
+ )
4172
3878
  let _ = response
4173
- ()
4174
- ->Promise.resolve
4175
- })
4176
3879
  }
4177
3880
 
4178
3881
  type postAdminUnsetUserMutualLinkRequest = {
@@ -4188,23 +3891,20 @@ let postAdminUnsetUserMutualLinkRequestSchema = S.object(s => {
4188
3891
  type postAdminUnsetUserMutualLinkResponse = unit
4189
3892
 
4190
3893
  /**
4191
- * admin/unset-user-mutual-link
4192
- *
4193
- * No description provided.
4194
- *
4195
- * **Credential required**: *Yes* / **Permission**: *write:admin:user-mutual-link*
4196
- */
4197
- let postAdminUnsetUserMutualLink = (~body: postAdminUnsetUserMutualLinkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUnsetUserMutualLinkResponse> => {
3894
+ admin/unset-user-mutual-link
3895
+
3896
+ No description provided.
3897
+
3898
+ **Credential required**: *Yes* / **Permission**: *write:admin:user-mutual-link*
3899
+ */
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
- )->Promise.then(response => {
3906
+ )
4204
3907
  let _ = response
4205
- ()
4206
- ->Promise.resolve
4207
- })
4208
3908
  }
4209
3909
 
4210
3910
  type postAdminUnsuspendUserRequest = {
@@ -4218,23 +3918,20 @@ let postAdminUnsuspendUserRequestSchema = S.object(s => {
4218
3918
  type postAdminUnsuspendUserResponse = unit
4219
3919
 
4220
3920
  /**
4221
- * admin/unsuspend-user
4222
- *
4223
- * No description provided.
4224
- *
4225
- * **Credential required**: *Yes* / **Permission**: *write:admin:unsuspend-user*
4226
- */
4227
- let postAdminUnsuspendUser = (~body: postAdminUnsuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUnsuspendUserResponse> => {
3921
+ admin/unsuspend-user
3922
+
3923
+ No description provided.
3924
+
3925
+ **Credential required**: *Yes* / **Permission**: *write:admin:unsuspend-user*
3926
+ */
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
- )->Promise.then(response => {
3933
+ )
4234
3934
  let _ = response
4235
- ()
4236
- ->Promise.resolve
4237
- })
4238
3935
  }
4239
3936
 
4240
3937
  type postAdminUpdateAbuseUserReportRequest = {
@@ -4250,23 +3947,20 @@ let postAdminUpdateAbuseUserReportRequestSchema = S.object(s => {
4250
3947
  type postAdminUpdateAbuseUserReportResponse = unit
4251
3948
 
4252
3949
  /**
4253
- * admin/update-abuse-user-report
4254
- *
4255
- * No description provided.
4256
- *
4257
- * **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
4258
- */
4259
- let postAdminUpdateAbuseUserReport = (~body: postAdminUpdateAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateAbuseUserReportResponse> => {
3950
+ admin/update-abuse-user-report
3951
+
3952
+ No description provided.
3953
+
3954
+ **Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
3955
+ */
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
- )->Promise.then(response => {
3962
+ )
4266
3963
  let _ = response
4267
- ()
4268
- ->Promise.resolve
4269
- })
4270
3964
  }
4271
3965
 
4272
3966
  type postAdminUpdateMetaRequest = {
@@ -4508,23 +4202,20 @@ let postAdminUpdateMetaRequestSchema = S.object(s => {
4508
4202
  type postAdminUpdateMetaResponse = unit
4509
4203
 
4510
4204
  /**
4511
- * admin/update-meta
4512
- *
4513
- * No description provided.
4514
- *
4515
- * **Credential required**: *Yes* / **Permission**: *write:admin:meta*
4516
- */
4517
- let postAdminUpdateMeta = (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateMetaResponse> => {
4205
+ admin/update-meta
4206
+
4207
+ No description provided.
4208
+
4209
+ **Credential required**: *Yes* / **Permission**: *write:admin:meta*
4210
+ */
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
- )->Promise.then(response => {
4217
+ )
4524
4218
  let _ = response
4525
- ()
4526
- ->Promise.resolve
4527
- })
4528
4219
  }
4529
4220
 
4530
4221
  type postAdminUpdateProxyAccountRequest = {
@@ -4540,23 +4231,20 @@ type postAdminUpdateProxyAccountResponse = MisskeyIoComponentSchemas.UserDetaile
4540
4231
  let postAdminUpdateProxyAccountResponseSchema = MisskeyIoComponentSchemas.UserDetailed.schema
4541
4232
 
4542
4233
  /**
4543
- * admin/update-proxy-account
4544
- *
4545
- * No description provided.
4546
- *
4547
- * **Credential required**: *Yes* / **Permission**: *write:admin:account*
4548
- */
4549
- let postAdminUpdateProxyAccount = (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateProxyAccountResponse> => {
4234
+ admin/update-proxy-account
4235
+
4236
+ No description provided.
4237
+
4238
+ **Credential required**: *Yes* / **Permission**: *write:admin:account*
4239
+ */
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
- )->Promise.then(response => {
4556
- let value = response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
4557
- value
4558
- ->Promise.resolve
4559
- })
4246
+ )
4247
+ response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
4560
4248
  }
4561
4249
 
4562
4250
  type postAdminUpdateUserNameRequest = {
@@ -4572,23 +4260,20 @@ let postAdminUpdateUserNameRequestSchema = S.object(s => {
4572
4260
  type postAdminUpdateUserNameResponse = unit
4573
4261
 
4574
4262
  /**
4575
- * admin/update-user-name
4576
- *
4577
- * No description provided.
4578
- *
4579
- * **Credential required**: *Yes* / **Permission**: *write:admin:user-name*
4580
- */
4581
- let postAdminUpdateUserName = (~body: postAdminUpdateUserNameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateUserNameResponse> => {
4263
+ admin/update-user-name
4264
+
4265
+ No description provided.
4266
+
4267
+ **Credential required**: *Yes* / **Permission**: *write:admin:user-name*
4268
+ */
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
- )->Promise.then(response => {
4275
+ )
4588
4276
  let _ = response
4589
- ()
4590
- ->Promise.resolve
4591
- })
4592
4277
  }
4593
4278
 
4594
4279
  type postAdminUpdateUserNoteRequest = {
@@ -4604,23 +4289,20 @@ let postAdminUpdateUserNoteRequestSchema = S.object(s => {
4604
4289
  type postAdminUpdateUserNoteResponse = unit
4605
4290
 
4606
4291
  /**
4607
- * admin/update-user-note
4608
- *
4609
- * No description provided.
4610
- *
4611
- * **Credential required**: *Yes* / **Permission**: *write:admin:user-note*
4612
- */
4613
- let postAdminUpdateUserNote = (~body: postAdminUpdateUserNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminUpdateUserNoteResponse> => {
4292
+ admin/update-user-note
4293
+
4294
+ No description provided.
4295
+
4296
+ **Credential required**: *Yes* / **Permission**: *write:admin:user-note*
4297
+ */
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
- )->Promise.then(response => {
4304
+ )
4620
4305
  let _ = response
4621
- ()
4622
- ->Promise.resolve
4623
- })
4624
4306
  }
4625
4307
 
4626
4308
  type postV2AdminEmojiListRequest_1 = {
@@ -4692,21 +4374,18 @@ let postV2AdminEmojiListResponseSchema = S.object(s => {
4692
4374
  })
4693
4375
 
4694
4376
  /**
4695
- * v2/admin/emoji/list
4696
- *
4697
- * No description provided.
4698
- *
4699
- * **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
4700
- */
4701
- let postV2AdminEmojiList = (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postV2AdminEmojiListResponse> => {
4377
+ v2/admin/emoji/list
4378
+
4379
+ No description provided.
4380
+
4381
+ **Credential required**: *Yes* / **Permission**: *read:admin:emoji*
4382
+ */
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
- )->Promise.then(response => {
4708
- let value = response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
4709
- value
4710
- ->Promise.resolve
4711
- })
4389
+ )
4390
+ response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
4712
4391
  }