@f3liz/rescript-misskey-api 0.6.9 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +472 -159
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +423 -151
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
- package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
- package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
|
@@ -23,17 +23,14 @@ No description provided.
|
|
|
23
23
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
24
24
|
**Credential required**: *Yes*
|
|
25
25
|
*/
|
|
26
|
-
let postAdminEmojiImportZip = (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
26
|
+
let postAdminEmojiImportZip = async (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiImportZipResponse => {
|
|
27
27
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiImportZipRequestSchema)
|
|
28
|
-
fetch(
|
|
28
|
+
let response = await fetch(
|
|
29
29
|
~url="/admin/emoji/import-zip",
|
|
30
30
|
~method_="POST",
|
|
31
31
|
~body=Some(jsonBody),
|
|
32
|
-
)
|
|
32
|
+
)
|
|
33
33
|
let _ = response
|
|
34
|
-
()
|
|
35
|
-
->Promise.resolve
|
|
36
|
-
})
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
type getBubbleGameRankingRequest = {
|
|
@@ -67,17 +64,14 @@ No description provided.
|
|
|
67
64
|
|
|
68
65
|
**Credential required**: *No*
|
|
69
66
|
*/
|
|
70
|
-
let getBubbleGameRanking = (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
67
|
+
let getBubbleGameRanking = async (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getBubbleGameRankingResponse => {
|
|
71
68
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getBubbleGameRankingRequestSchema)
|
|
72
|
-
fetch(
|
|
69
|
+
let response = await fetch(
|
|
73
70
|
~url="/bubble-game/ranking",
|
|
74
71
|
~method_="GET",
|
|
75
72
|
~body=Some(jsonBody),
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
value
|
|
79
|
-
->Promise.resolve
|
|
80
|
-
})
|
|
73
|
+
)
|
|
74
|
+
response->S.parseOrThrow(getBubbleGameRankingResponseSchema)
|
|
81
75
|
}
|
|
82
76
|
|
|
83
77
|
type postBubbleGameRankingRequest = {
|
|
@@ -111,17 +105,14 @@ No description provided.
|
|
|
111
105
|
|
|
112
106
|
**Credential required**: *No*
|
|
113
107
|
*/
|
|
114
|
-
let postBubbleGameRanking = (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
108
|
+
let postBubbleGameRanking = async (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRankingResponse => {
|
|
115
109
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRankingRequestSchema)
|
|
116
|
-
fetch(
|
|
110
|
+
let response = await fetch(
|
|
117
111
|
~url="/bubble-game/ranking",
|
|
118
112
|
~method_="POST",
|
|
119
113
|
~body=Some(jsonBody),
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
value
|
|
123
|
-
->Promise.resolve
|
|
124
|
-
})
|
|
114
|
+
)
|
|
115
|
+
response->S.parseOrThrow(postBubbleGameRankingResponseSchema)
|
|
125
116
|
}
|
|
126
117
|
|
|
127
118
|
type postBubbleGameRegisterRequest = {
|
|
@@ -149,17 +140,14 @@ No description provided.
|
|
|
149
140
|
|
|
150
141
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
151
142
|
*/
|
|
152
|
-
let postBubbleGameRegister = (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
143
|
+
let postBubbleGameRegister = async (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRegisterResponse => {
|
|
153
144
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRegisterRequestSchema)
|
|
154
|
-
fetch(
|
|
145
|
+
let response = await fetch(
|
|
155
146
|
~url="/bubble-game/register",
|
|
156
147
|
~method_="POST",
|
|
157
148
|
~body=Some(jsonBody),
|
|
158
|
-
)
|
|
149
|
+
)
|
|
159
150
|
let _ = response
|
|
160
|
-
()
|
|
161
|
-
->Promise.resolve
|
|
162
|
-
})
|
|
163
151
|
}
|
|
164
152
|
|
|
165
153
|
type postExportCustomEmojisResponse = unit
|
|
@@ -172,17 +160,14 @@ No description provided.
|
|
|
172
160
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
173
161
|
**Credential required**: *Yes*
|
|
174
162
|
*/
|
|
175
|
-
let postExportCustomEmojis = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
163
|
+
let postExportCustomEmojis = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postExportCustomEmojisResponse => {
|
|
176
164
|
|
|
177
|
-
fetch(
|
|
165
|
+
let response = await fetch(
|
|
178
166
|
~url="/export-custom-emojis",
|
|
179
167
|
~method_="POST",
|
|
180
168
|
~body=None,
|
|
181
|
-
)
|
|
169
|
+
)
|
|
182
170
|
let _ = response
|
|
183
|
-
()
|
|
184
|
-
->Promise.resolve
|
|
185
|
-
})
|
|
186
171
|
}
|
|
187
172
|
|
|
188
173
|
type postI2faDoneRequest = {
|
|
@@ -209,17 +194,14 @@ No description provided.
|
|
|
209
194
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
210
195
|
**Credential required**: *Yes*
|
|
211
196
|
*/
|
|
212
|
-
let postI2faDone = (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
197
|
+
let postI2faDone = async (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faDoneResponse => {
|
|
213
198
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faDoneRequestSchema)
|
|
214
|
-
fetch(
|
|
199
|
+
let response = await fetch(
|
|
215
200
|
~url="/i/2fa/done",
|
|
216
201
|
~method_="POST",
|
|
217
202
|
~body=Some(jsonBody),
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
value
|
|
221
|
-
->Promise.resolve
|
|
222
|
-
})
|
|
203
|
+
)
|
|
204
|
+
response->S.parseOrThrow(postI2faDoneResponseSchema)
|
|
223
205
|
}
|
|
224
206
|
|
|
225
207
|
type postI2faKeyDoneRequest = {
|
|
@@ -254,17 +236,14 @@ No description provided.
|
|
|
254
236
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
255
237
|
**Credential required**: *Yes*
|
|
256
238
|
*/
|
|
257
|
-
let postI2faKeyDone = (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
239
|
+
let postI2faKeyDone = async (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faKeyDoneResponse => {
|
|
258
240
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faKeyDoneRequestSchema)
|
|
259
|
-
fetch(
|
|
241
|
+
let response = await fetch(
|
|
260
242
|
~url="/i/2fa/key-done",
|
|
261
243
|
~method_="POST",
|
|
262
244
|
~body=Some(jsonBody),
|
|
263
|
-
)
|
|
264
|
-
|
|
265
|
-
value
|
|
266
|
-
->Promise.resolve
|
|
267
|
-
})
|
|
245
|
+
)
|
|
246
|
+
response->S.parseOrThrow(postI2faKeyDoneResponseSchema)
|
|
268
247
|
}
|
|
269
248
|
|
|
270
249
|
type postI2faPasswordLessRequest = {
|
|
@@ -285,17 +264,14 @@ No description provided.
|
|
|
285
264
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
286
265
|
**Credential required**: *Yes*
|
|
287
266
|
*/
|
|
288
|
-
let postI2faPasswordLess = (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
267
|
+
let postI2faPasswordLess = async (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faPasswordLessResponse => {
|
|
289
268
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faPasswordLessRequestSchema)
|
|
290
|
-
fetch(
|
|
269
|
+
let response = await fetch(
|
|
291
270
|
~url="/i/2fa/password-less",
|
|
292
271
|
~method_="POST",
|
|
293
272
|
~body=Some(jsonBody),
|
|
294
|
-
)
|
|
273
|
+
)
|
|
295
274
|
let _ = response
|
|
296
|
-
()
|
|
297
|
-
->Promise.resolve
|
|
298
|
-
})
|
|
299
275
|
}
|
|
300
276
|
|
|
301
277
|
type postI2faRegisterRequest = {
|
|
@@ -332,17 +308,14 @@ No description provided.
|
|
|
332
308
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
333
309
|
**Credential required**: *Yes*
|
|
334
310
|
*/
|
|
335
|
-
let postI2faRegister = (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
311
|
+
let postI2faRegister = async (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterResponse => {
|
|
336
312
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterRequestSchema)
|
|
337
|
-
fetch(
|
|
313
|
+
let response = await fetch(
|
|
338
314
|
~url="/i/2fa/register",
|
|
339
315
|
~method_="POST",
|
|
340
316
|
~body=Some(jsonBody),
|
|
341
|
-
)
|
|
342
|
-
|
|
343
|
-
value
|
|
344
|
-
->Promise.resolve
|
|
345
|
-
})
|
|
317
|
+
)
|
|
318
|
+
response->S.parseOrThrow(postI2faRegisterResponseSchema)
|
|
346
319
|
}
|
|
347
320
|
|
|
348
321
|
type postI2faRegisterKeyRequest = {
|
|
@@ -441,17 +414,14 @@ No description provided.
|
|
|
441
414
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
442
415
|
**Credential required**: *Yes*
|
|
443
416
|
*/
|
|
444
|
-
let postI2faRegisterKey = (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
417
|
+
let postI2faRegisterKey = async (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterKeyResponse => {
|
|
445
418
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterKeyRequestSchema)
|
|
446
|
-
fetch(
|
|
419
|
+
let response = await fetch(
|
|
447
420
|
~url="/i/2fa/register-key",
|
|
448
421
|
~method_="POST",
|
|
449
422
|
~body=Some(jsonBody),
|
|
450
|
-
)
|
|
451
|
-
|
|
452
|
-
value
|
|
453
|
-
->Promise.resolve
|
|
454
|
-
})
|
|
423
|
+
)
|
|
424
|
+
response->S.parseOrThrow(postI2faRegisterKeyResponseSchema)
|
|
455
425
|
}
|
|
456
426
|
|
|
457
427
|
type postI2faRemoveKeyRequest = {
|
|
@@ -476,17 +446,14 @@ No description provided.
|
|
|
476
446
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
477
447
|
**Credential required**: *Yes*
|
|
478
448
|
*/
|
|
479
|
-
let postI2faRemoveKey = (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
449
|
+
let postI2faRemoveKey = async (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRemoveKeyResponse => {
|
|
480
450
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRemoveKeyRequestSchema)
|
|
481
|
-
fetch(
|
|
451
|
+
let response = await fetch(
|
|
482
452
|
~url="/i/2fa/remove-key",
|
|
483
453
|
~method_="POST",
|
|
484
454
|
~body=Some(jsonBody),
|
|
485
|
-
)
|
|
455
|
+
)
|
|
486
456
|
let _ = response
|
|
487
|
-
()
|
|
488
|
-
->Promise.resolve
|
|
489
|
-
})
|
|
490
457
|
}
|
|
491
458
|
|
|
492
459
|
type postI2faUnregisterRequest = {
|
|
@@ -509,17 +476,14 @@ No description provided.
|
|
|
509
476
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
510
477
|
**Credential required**: *Yes*
|
|
511
478
|
*/
|
|
512
|
-
let postI2faUnregister = (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
479
|
+
let postI2faUnregister = async (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUnregisterResponse => {
|
|
513
480
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUnregisterRequestSchema)
|
|
514
|
-
fetch(
|
|
481
|
+
let response = await fetch(
|
|
515
482
|
~url="/i/2fa/unregister",
|
|
516
483
|
~method_="POST",
|
|
517
484
|
~body=Some(jsonBody),
|
|
518
|
-
)
|
|
485
|
+
)
|
|
519
486
|
let _ = response
|
|
520
|
-
()
|
|
521
|
-
->Promise.resolve
|
|
522
|
-
})
|
|
523
487
|
}
|
|
524
488
|
|
|
525
489
|
type postI2faUpdateKeyRequest = {
|
|
@@ -542,17 +506,14 @@ No description provided.
|
|
|
542
506
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
543
507
|
**Credential required**: *Yes*
|
|
544
508
|
*/
|
|
545
|
-
let postI2faUpdateKey = (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
509
|
+
let postI2faUpdateKey = async (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUpdateKeyResponse => {
|
|
546
510
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUpdateKeyRequestSchema)
|
|
547
|
-
fetch(
|
|
511
|
+
let response = await fetch(
|
|
548
512
|
~url="/i/2fa/update-key",
|
|
549
513
|
~method_="POST",
|
|
550
514
|
~body=Some(jsonBody),
|
|
551
|
-
)
|
|
515
|
+
)
|
|
552
516
|
let _ = response
|
|
553
|
-
()
|
|
554
|
-
->Promise.resolve
|
|
555
|
-
})
|
|
556
517
|
}
|
|
557
518
|
|
|
558
519
|
type postIAppsRequest = {
|
|
@@ -591,17 +552,14 @@ No description provided.
|
|
|
591
552
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
592
553
|
**Credential required**: *Yes*
|
|
593
554
|
*/
|
|
594
|
-
let postIApps = (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
555
|
+
let postIApps = async (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAppsResponse => {
|
|
595
556
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAppsRequestSchema)
|
|
596
|
-
fetch(
|
|
557
|
+
let response = await fetch(
|
|
597
558
|
~url="/i/apps",
|
|
598
559
|
~method_="POST",
|
|
599
560
|
~body=Some(jsonBody),
|
|
600
|
-
)
|
|
601
|
-
|
|
602
|
-
value
|
|
603
|
-
->Promise.resolve
|
|
604
|
-
})
|
|
561
|
+
)
|
|
562
|
+
response->S.parseOrThrow(postIAppsResponseSchema)
|
|
605
563
|
}
|
|
606
564
|
|
|
607
565
|
type postIAuthorizedAppsRequest = {
|
|
@@ -644,17 +602,14 @@ No description provided.
|
|
|
644
602
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
645
603
|
**Credential required**: *Yes*
|
|
646
604
|
*/
|
|
647
|
-
let postIAuthorizedApps = (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
605
|
+
let postIAuthorizedApps = async (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAuthorizedAppsResponse => {
|
|
648
606
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAuthorizedAppsRequestSchema)
|
|
649
|
-
fetch(
|
|
607
|
+
let response = await fetch(
|
|
650
608
|
~url="/i/authorized-apps",
|
|
651
609
|
~method_="POST",
|
|
652
610
|
~body=Some(jsonBody),
|
|
653
|
-
)
|
|
654
|
-
|
|
655
|
-
value
|
|
656
|
-
->Promise.resolve
|
|
657
|
-
})
|
|
611
|
+
)
|
|
612
|
+
response->S.parseOrThrow(postIAuthorizedAppsResponseSchema)
|
|
658
613
|
}
|
|
659
614
|
|
|
660
615
|
type postIChangePasswordRequest = {
|
|
@@ -679,17 +634,14 @@ No description provided.
|
|
|
679
634
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
680
635
|
**Credential required**: *Yes*
|
|
681
636
|
*/
|
|
682
|
-
let postIChangePassword = (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
637
|
+
let postIChangePassword = async (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIChangePasswordResponse => {
|
|
683
638
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIChangePasswordRequestSchema)
|
|
684
|
-
fetch(
|
|
639
|
+
let response = await fetch(
|
|
685
640
|
~url="/i/change-password",
|
|
686
641
|
~method_="POST",
|
|
687
642
|
~body=Some(jsonBody),
|
|
688
|
-
)
|
|
643
|
+
)
|
|
689
644
|
let _ = response
|
|
690
|
-
()
|
|
691
|
-
->Promise.resolve
|
|
692
|
-
})
|
|
693
645
|
}
|
|
694
646
|
|
|
695
647
|
type postIClaimAchievementRequest = {
|
|
@@ -709,17 +661,14 @@ No description provided.
|
|
|
709
661
|
|
|
710
662
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
711
663
|
*/
|
|
712
|
-
let postIClaimAchievement = (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
664
|
+
let postIClaimAchievement = async (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIClaimAchievementResponse => {
|
|
713
665
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIClaimAchievementRequestSchema)
|
|
714
|
-
fetch(
|
|
666
|
+
let response = await fetch(
|
|
715
667
|
~url="/i/claim-achievement",
|
|
716
668
|
~method_="POST",
|
|
717
669
|
~body=Some(jsonBody),
|
|
718
|
-
)
|
|
670
|
+
)
|
|
719
671
|
let _ = response
|
|
720
|
-
()
|
|
721
|
-
->Promise.resolve
|
|
722
|
-
})
|
|
723
672
|
}
|
|
724
673
|
|
|
725
674
|
type postIDeleteAccountRequest = {
|
|
@@ -742,17 +691,14 @@ No description provided.
|
|
|
742
691
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
743
692
|
**Credential required**: *Yes*
|
|
744
693
|
*/
|
|
745
|
-
let postIDeleteAccount = (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
694
|
+
let postIDeleteAccount = async (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIDeleteAccountResponse => {
|
|
746
695
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIDeleteAccountRequestSchema)
|
|
747
|
-
fetch(
|
|
696
|
+
let response = await fetch(
|
|
748
697
|
~url="/i/delete-account",
|
|
749
698
|
~method_="POST",
|
|
750
699
|
~body=Some(jsonBody),
|
|
751
|
-
)
|
|
700
|
+
)
|
|
752
701
|
let _ = response
|
|
753
|
-
()
|
|
754
|
-
->Promise.resolve
|
|
755
|
-
})
|
|
756
702
|
}
|
|
757
703
|
|
|
758
704
|
type postIExportAntennasResponse = unit
|
|
@@ -765,17 +711,14 @@ No description provided.
|
|
|
765
711
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
766
712
|
**Credential required**: *Yes*
|
|
767
713
|
*/
|
|
768
|
-
let postIExportAntennas = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
714
|
+
let postIExportAntennas = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportAntennasResponse => {
|
|
769
715
|
|
|
770
|
-
fetch(
|
|
716
|
+
let response = await fetch(
|
|
771
717
|
~url="/i/export-antennas",
|
|
772
718
|
~method_="POST",
|
|
773
719
|
~body=None,
|
|
774
|
-
)
|
|
720
|
+
)
|
|
775
721
|
let _ = response
|
|
776
|
-
()
|
|
777
|
-
->Promise.resolve
|
|
778
|
-
})
|
|
779
722
|
}
|
|
780
723
|
|
|
781
724
|
type postIExportBlockingResponse = unit
|
|
@@ -788,17 +731,14 @@ No description provided.
|
|
|
788
731
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
789
732
|
**Credential required**: *Yes*
|
|
790
733
|
*/
|
|
791
|
-
let postIExportBlocking = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
734
|
+
let postIExportBlocking = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportBlockingResponse => {
|
|
792
735
|
|
|
793
|
-
fetch(
|
|
736
|
+
let response = await fetch(
|
|
794
737
|
~url="/i/export-blocking",
|
|
795
738
|
~method_="POST",
|
|
796
739
|
~body=None,
|
|
797
|
-
)
|
|
740
|
+
)
|
|
798
741
|
let _ = response
|
|
799
|
-
()
|
|
800
|
-
->Promise.resolve
|
|
801
|
-
})
|
|
802
742
|
}
|
|
803
743
|
|
|
804
744
|
type postIExportClipsResponse = unit
|
|
@@ -811,17 +751,14 @@ No description provided.
|
|
|
811
751
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
812
752
|
**Credential required**: *Yes*
|
|
813
753
|
*/
|
|
814
|
-
let postIExportClips = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
754
|
+
let postIExportClips = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportClipsResponse => {
|
|
815
755
|
|
|
816
|
-
fetch(
|
|
756
|
+
let response = await fetch(
|
|
817
757
|
~url="/i/export-clips",
|
|
818
758
|
~method_="POST",
|
|
819
759
|
~body=None,
|
|
820
|
-
)
|
|
760
|
+
)
|
|
821
761
|
let _ = response
|
|
822
|
-
()
|
|
823
|
-
->Promise.resolve
|
|
824
|
-
})
|
|
825
762
|
}
|
|
826
763
|
|
|
827
764
|
type postIExportFavoritesResponse = unit
|
|
@@ -834,17 +771,14 @@ No description provided.
|
|
|
834
771
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
835
772
|
**Credential required**: *Yes*
|
|
836
773
|
*/
|
|
837
|
-
let postIExportFavorites = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
774
|
+
let postIExportFavorites = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFavoritesResponse => {
|
|
838
775
|
|
|
839
|
-
fetch(
|
|
776
|
+
let response = await fetch(
|
|
840
777
|
~url="/i/export-favorites",
|
|
841
778
|
~method_="POST",
|
|
842
779
|
~body=None,
|
|
843
|
-
)
|
|
780
|
+
)
|
|
844
781
|
let _ = response
|
|
845
|
-
()
|
|
846
|
-
->Promise.resolve
|
|
847
|
-
})
|
|
848
782
|
}
|
|
849
783
|
|
|
850
784
|
type postIExportFollowingRequest = {
|
|
@@ -867,17 +801,14 @@ No description provided.
|
|
|
867
801
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
868
802
|
**Credential required**: *Yes*
|
|
869
803
|
*/
|
|
870
|
-
let postIExportFollowing = (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
804
|
+
let postIExportFollowing = async (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFollowingResponse => {
|
|
871
805
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIExportFollowingRequestSchema)
|
|
872
|
-
fetch(
|
|
806
|
+
let response = await fetch(
|
|
873
807
|
~url="/i/export-following",
|
|
874
808
|
~method_="POST",
|
|
875
809
|
~body=Some(jsonBody),
|
|
876
|
-
)
|
|
810
|
+
)
|
|
877
811
|
let _ = response
|
|
878
|
-
()
|
|
879
|
-
->Promise.resolve
|
|
880
|
-
})
|
|
881
812
|
}
|
|
882
813
|
|
|
883
814
|
type postIExportMuteResponse = unit
|
|
@@ -890,17 +821,14 @@ No description provided.
|
|
|
890
821
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
891
822
|
**Credential required**: *Yes*
|
|
892
823
|
*/
|
|
893
|
-
let postIExportMute = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
824
|
+
let postIExportMute = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportMuteResponse => {
|
|
894
825
|
|
|
895
|
-
fetch(
|
|
826
|
+
let response = await fetch(
|
|
896
827
|
~url="/i/export-mute",
|
|
897
828
|
~method_="POST",
|
|
898
829
|
~body=None,
|
|
899
|
-
)
|
|
830
|
+
)
|
|
900
831
|
let _ = response
|
|
901
|
-
()
|
|
902
|
-
->Promise.resolve
|
|
903
|
-
})
|
|
904
832
|
}
|
|
905
833
|
|
|
906
834
|
type postIExportNotesResponse = unit
|
|
@@ -913,17 +841,14 @@ No description provided.
|
|
|
913
841
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
914
842
|
**Credential required**: *Yes*
|
|
915
843
|
*/
|
|
916
|
-
let postIExportNotes = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
844
|
+
let postIExportNotes = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportNotesResponse => {
|
|
917
845
|
|
|
918
|
-
fetch(
|
|
846
|
+
let response = await fetch(
|
|
919
847
|
~url="/i/export-notes",
|
|
920
848
|
~method_="POST",
|
|
921
849
|
~body=None,
|
|
922
|
-
)
|
|
850
|
+
)
|
|
923
851
|
let _ = response
|
|
924
|
-
()
|
|
925
|
-
->Promise.resolve
|
|
926
|
-
})
|
|
927
852
|
}
|
|
928
853
|
|
|
929
854
|
type postIExportUserListsResponse = unit
|
|
@@ -936,17 +861,14 @@ No description provided.
|
|
|
936
861
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
937
862
|
**Credential required**: *Yes*
|
|
938
863
|
*/
|
|
939
|
-
let postIExportUserLists = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
864
|
+
let postIExportUserLists = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportUserListsResponse => {
|
|
940
865
|
|
|
941
|
-
fetch(
|
|
866
|
+
let response = await fetch(
|
|
942
867
|
~url="/i/export-user-lists",
|
|
943
868
|
~method_="POST",
|
|
944
869
|
~body=None,
|
|
945
|
-
)
|
|
870
|
+
)
|
|
946
871
|
let _ = response
|
|
947
|
-
()
|
|
948
|
-
->Promise.resolve
|
|
949
|
-
})
|
|
950
872
|
}
|
|
951
873
|
|
|
952
874
|
type postIImportAntennasRequest = {
|
|
@@ -967,17 +889,14 @@ No description provided.
|
|
|
967
889
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
968
890
|
**Credential required**: *Yes*
|
|
969
891
|
*/
|
|
970
|
-
let postIImportAntennas = (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
892
|
+
let postIImportAntennas = async (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportAntennasResponse => {
|
|
971
893
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportAntennasRequestSchema)
|
|
972
|
-
fetch(
|
|
894
|
+
let response = await fetch(
|
|
973
895
|
~url="/i/import-antennas",
|
|
974
896
|
~method_="POST",
|
|
975
897
|
~body=Some(jsonBody),
|
|
976
|
-
)
|
|
898
|
+
)
|
|
977
899
|
let _ = response
|
|
978
|
-
()
|
|
979
|
-
->Promise.resolve
|
|
980
|
-
})
|
|
981
900
|
}
|
|
982
901
|
|
|
983
902
|
type postIImportBlockingRequest = {
|
|
@@ -998,17 +917,14 @@ No description provided.
|
|
|
998
917
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
999
918
|
**Credential required**: *Yes*
|
|
1000
919
|
*/
|
|
1001
|
-
let postIImportBlocking = (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
920
|
+
let postIImportBlocking = async (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportBlockingResponse => {
|
|
1002
921
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportBlockingRequestSchema)
|
|
1003
|
-
fetch(
|
|
922
|
+
let response = await fetch(
|
|
1004
923
|
~url="/i/import-blocking",
|
|
1005
924
|
~method_="POST",
|
|
1006
925
|
~body=Some(jsonBody),
|
|
1007
|
-
)
|
|
926
|
+
)
|
|
1008
927
|
let _ = response
|
|
1009
|
-
()
|
|
1010
|
-
->Promise.resolve
|
|
1011
|
-
})
|
|
1012
928
|
}
|
|
1013
929
|
|
|
1014
930
|
type postIImportFollowingRequest = {
|
|
@@ -1031,17 +947,14 @@ No description provided.
|
|
|
1031
947
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1032
948
|
**Credential required**: *Yes*
|
|
1033
949
|
*/
|
|
1034
|
-
let postIImportFollowing = (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
950
|
+
let postIImportFollowing = async (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportFollowingResponse => {
|
|
1035
951
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportFollowingRequestSchema)
|
|
1036
|
-
fetch(
|
|
952
|
+
let response = await fetch(
|
|
1037
953
|
~url="/i/import-following",
|
|
1038
954
|
~method_="POST",
|
|
1039
955
|
~body=Some(jsonBody),
|
|
1040
|
-
)
|
|
956
|
+
)
|
|
1041
957
|
let _ = response
|
|
1042
|
-
()
|
|
1043
|
-
->Promise.resolve
|
|
1044
|
-
})
|
|
1045
958
|
}
|
|
1046
959
|
|
|
1047
960
|
type postIImportMutingRequest = {
|
|
@@ -1062,17 +975,14 @@ No description provided.
|
|
|
1062
975
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1063
976
|
**Credential required**: *Yes*
|
|
1064
977
|
*/
|
|
1065
|
-
let postIImportMuting = (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
978
|
+
let postIImportMuting = async (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportMutingResponse => {
|
|
1066
979
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportMutingRequestSchema)
|
|
1067
|
-
fetch(
|
|
980
|
+
let response = await fetch(
|
|
1068
981
|
~url="/i/import-muting",
|
|
1069
982
|
~method_="POST",
|
|
1070
983
|
~body=Some(jsonBody),
|
|
1071
|
-
)
|
|
984
|
+
)
|
|
1072
985
|
let _ = response
|
|
1073
|
-
()
|
|
1074
|
-
->Promise.resolve
|
|
1075
|
-
})
|
|
1076
986
|
}
|
|
1077
987
|
|
|
1078
988
|
type postIImportUserListsRequest = {
|
|
@@ -1093,17 +1003,14 @@ No description provided.
|
|
|
1093
1003
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1094
1004
|
**Credential required**: *Yes*
|
|
1095
1005
|
*/
|
|
1096
|
-
let postIImportUserLists = (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1006
|
+
let postIImportUserLists = async (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportUserListsResponse => {
|
|
1097
1007
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportUserListsRequestSchema)
|
|
1098
|
-
fetch(
|
|
1008
|
+
let response = await fetch(
|
|
1099
1009
|
~url="/i/import-user-lists",
|
|
1100
1010
|
~method_="POST",
|
|
1101
1011
|
~body=Some(jsonBody),
|
|
1102
|
-
)
|
|
1012
|
+
)
|
|
1103
1013
|
let _ = response
|
|
1104
|
-
()
|
|
1105
|
-
->Promise.resolve
|
|
1106
|
-
})
|
|
1107
1014
|
}
|
|
1108
1015
|
|
|
1109
1016
|
type postIRegenerateTokenRequest = {
|
|
@@ -1124,17 +1031,14 @@ No description provided.
|
|
|
1124
1031
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1125
1032
|
**Credential required**: *Yes*
|
|
1126
1033
|
*/
|
|
1127
|
-
let postIRegenerateToken = (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1034
|
+
let postIRegenerateToken = async (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegenerateTokenResponse => {
|
|
1128
1035
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegenerateTokenRequestSchema)
|
|
1129
|
-
fetch(
|
|
1036
|
+
let response = await fetch(
|
|
1130
1037
|
~url="/i/regenerate-token",
|
|
1131
1038
|
~method_="POST",
|
|
1132
1039
|
~body=Some(jsonBody),
|
|
1133
|
-
)
|
|
1040
|
+
)
|
|
1134
1041
|
let _ = response
|
|
1135
|
-
()
|
|
1136
|
-
->Promise.resolve
|
|
1137
|
-
})
|
|
1138
1042
|
}
|
|
1139
1043
|
|
|
1140
1044
|
type postIRegistryGetRequest = {
|
|
@@ -1160,17 +1064,14 @@ No description provided.
|
|
|
1160
1064
|
|
|
1161
1065
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1162
1066
|
*/
|
|
1163
|
-
let postIRegistryGet = (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1067
|
+
let postIRegistryGet = async (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetResponse => {
|
|
1164
1068
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetRequestSchema)
|
|
1165
|
-
fetch(
|
|
1069
|
+
let response = await fetch(
|
|
1166
1070
|
~url="/i/registry/get",
|
|
1167
1071
|
~method_="POST",
|
|
1168
1072
|
~body=Some(jsonBody),
|
|
1169
|
-
)
|
|
1170
|
-
|
|
1171
|
-
value
|
|
1172
|
-
->Promise.resolve
|
|
1173
|
-
})
|
|
1073
|
+
)
|
|
1074
|
+
response->S.parseOrThrow(postIRegistryGetResponseSchema)
|
|
1174
1075
|
}
|
|
1175
1076
|
|
|
1176
1077
|
type postIRegistryGetAllRequest = {
|
|
@@ -1194,17 +1095,14 @@ No description provided.
|
|
|
1194
1095
|
|
|
1195
1096
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1196
1097
|
*/
|
|
1197
|
-
let postIRegistryGetAll = (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1098
|
+
let postIRegistryGetAll = async (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetAllResponse => {
|
|
1198
1099
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetAllRequestSchema)
|
|
1199
|
-
fetch(
|
|
1100
|
+
let response = await fetch(
|
|
1200
1101
|
~url="/i/registry/get-all",
|
|
1201
1102
|
~method_="POST",
|
|
1202
1103
|
~body=Some(jsonBody),
|
|
1203
|
-
)
|
|
1204
|
-
|
|
1205
|
-
value
|
|
1206
|
-
->Promise.resolve
|
|
1207
|
-
})
|
|
1104
|
+
)
|
|
1105
|
+
response->S.parseOrThrow(postIRegistryGetAllResponseSchema)
|
|
1208
1106
|
}
|
|
1209
1107
|
|
|
1210
1108
|
type postIRegistryGetDetailRequest = {
|
|
@@ -1236,17 +1134,14 @@ No description provided.
|
|
|
1236
1134
|
|
|
1237
1135
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1238
1136
|
*/
|
|
1239
|
-
let postIRegistryGetDetail = (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1137
|
+
let postIRegistryGetDetail = async (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetDetailResponse => {
|
|
1240
1138
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetDetailRequestSchema)
|
|
1241
|
-
fetch(
|
|
1139
|
+
let response = await fetch(
|
|
1242
1140
|
~url="/i/registry/get-detail",
|
|
1243
1141
|
~method_="POST",
|
|
1244
1142
|
~body=Some(jsonBody),
|
|
1245
|
-
)
|
|
1246
|
-
|
|
1247
|
-
value
|
|
1248
|
-
->Promise.resolve
|
|
1249
|
-
})
|
|
1143
|
+
)
|
|
1144
|
+
response->S.parseOrThrow(postIRegistryGetDetailResponseSchema)
|
|
1250
1145
|
}
|
|
1251
1146
|
|
|
1252
1147
|
type postIRegistryKeysRequest = {
|
|
@@ -1270,17 +1165,14 @@ No description provided.
|
|
|
1270
1165
|
|
|
1271
1166
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1272
1167
|
*/
|
|
1273
|
-
let postIRegistryKeys = (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1168
|
+
let postIRegistryKeys = async (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysResponse => {
|
|
1274
1169
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysRequestSchema)
|
|
1275
|
-
fetch(
|
|
1170
|
+
let response = await fetch(
|
|
1276
1171
|
~url="/i/registry/keys",
|
|
1277
1172
|
~method_="POST",
|
|
1278
1173
|
~body=Some(jsonBody),
|
|
1279
|
-
)
|
|
1280
|
-
|
|
1281
|
-
value
|
|
1282
|
-
->Promise.resolve
|
|
1283
|
-
})
|
|
1174
|
+
)
|
|
1175
|
+
response->S.parseOrThrow(postIRegistryKeysResponseSchema)
|
|
1284
1176
|
}
|
|
1285
1177
|
|
|
1286
1178
|
type postIRegistryKeysWithTypeRequest = {
|
|
@@ -1304,17 +1196,14 @@ No description provided.
|
|
|
1304
1196
|
|
|
1305
1197
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1306
1198
|
*/
|
|
1307
|
-
let postIRegistryKeysWithType = (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1199
|
+
let postIRegistryKeysWithType = async (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysWithTypeResponse => {
|
|
1308
1200
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysWithTypeRequestSchema)
|
|
1309
|
-
fetch(
|
|
1201
|
+
let response = await fetch(
|
|
1310
1202
|
~url="/i/registry/keys-with-type",
|
|
1311
1203
|
~method_="POST",
|
|
1312
1204
|
~body=Some(jsonBody),
|
|
1313
|
-
)
|
|
1314
|
-
|
|
1315
|
-
value
|
|
1316
|
-
->Promise.resolve
|
|
1317
|
-
})
|
|
1205
|
+
)
|
|
1206
|
+
response->S.parseOrThrow(postIRegistryKeysWithTypeResponseSchema)
|
|
1318
1207
|
}
|
|
1319
1208
|
|
|
1320
1209
|
type postIRegistryRemoveRequest = {
|
|
@@ -1338,17 +1227,14 @@ No description provided.
|
|
|
1338
1227
|
|
|
1339
1228
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1340
1229
|
*/
|
|
1341
|
-
let postIRegistryRemove = (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1230
|
+
let postIRegistryRemove = async (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryRemoveResponse => {
|
|
1342
1231
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryRemoveRequestSchema)
|
|
1343
|
-
fetch(
|
|
1232
|
+
let response = await fetch(
|
|
1344
1233
|
~url="/i/registry/remove",
|
|
1345
1234
|
~method_="POST",
|
|
1346
1235
|
~body=Some(jsonBody),
|
|
1347
|
-
)
|
|
1236
|
+
)
|
|
1348
1237
|
let _ = response
|
|
1349
|
-
()
|
|
1350
|
-
->Promise.resolve
|
|
1351
|
-
})
|
|
1352
1238
|
}
|
|
1353
1239
|
|
|
1354
1240
|
type postIRegistryScopesWithDomainResponse_1 = {
|
|
@@ -1373,17 +1259,14 @@ No description provided.
|
|
|
1373
1259
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1374
1260
|
**Credential required**: *Yes*
|
|
1375
1261
|
*/
|
|
1376
|
-
let postIRegistryScopesWithDomain = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1262
|
+
let postIRegistryScopesWithDomain = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryScopesWithDomainResponse => {
|
|
1377
1263
|
|
|
1378
|
-
fetch(
|
|
1264
|
+
let response = await fetch(
|
|
1379
1265
|
~url="/i/registry/scopes-with-domain",
|
|
1380
1266
|
~method_="POST",
|
|
1381
1267
|
~body=None,
|
|
1382
|
-
)
|
|
1383
|
-
|
|
1384
|
-
value
|
|
1385
|
-
->Promise.resolve
|
|
1386
|
-
})
|
|
1268
|
+
)
|
|
1269
|
+
response->S.parseOrThrow(postIRegistryScopesWithDomainResponseSchema)
|
|
1387
1270
|
}
|
|
1388
1271
|
|
|
1389
1272
|
type postIRegistrySetRequest = {
|
|
@@ -1409,17 +1292,14 @@ No description provided.
|
|
|
1409
1292
|
|
|
1410
1293
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1411
1294
|
*/
|
|
1412
|
-
let postIRegistrySet = (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1295
|
+
let postIRegistrySet = async (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistrySetResponse => {
|
|
1413
1296
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistrySetRequestSchema)
|
|
1414
|
-
fetch(
|
|
1297
|
+
let response = await fetch(
|
|
1415
1298
|
~url="/i/registry/set",
|
|
1416
1299
|
~method_="POST",
|
|
1417
1300
|
~body=Some(jsonBody),
|
|
1418
|
-
)
|
|
1301
|
+
)
|
|
1419
1302
|
let _ = response
|
|
1420
|
-
()
|
|
1421
|
-
->Promise.resolve
|
|
1422
|
-
})
|
|
1423
1303
|
}
|
|
1424
1304
|
|
|
1425
1305
|
type postIRevokeTokenRequest = {
|
|
@@ -1442,17 +1322,14 @@ No description provided.
|
|
|
1442
1322
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1443
1323
|
**Credential required**: *Yes*
|
|
1444
1324
|
*/
|
|
1445
|
-
let postIRevokeToken = (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1325
|
+
let postIRevokeToken = async (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRevokeTokenResponse => {
|
|
1446
1326
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRevokeTokenRequestSchema)
|
|
1447
|
-
fetch(
|
|
1327
|
+
let response = await fetch(
|
|
1448
1328
|
~url="/i/revoke-token",
|
|
1449
1329
|
~method_="POST",
|
|
1450
1330
|
~body=Some(jsonBody),
|
|
1451
|
-
)
|
|
1331
|
+
)
|
|
1452
1332
|
let _ = response
|
|
1453
|
-
()
|
|
1454
|
-
->Promise.resolve
|
|
1455
|
-
})
|
|
1456
1333
|
}
|
|
1457
1334
|
|
|
1458
1335
|
type postISigninHistoryRequest = {
|
|
@@ -1479,17 +1356,14 @@ No description provided.
|
|
|
1479
1356
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1480
1357
|
**Credential required**: *Yes*
|
|
1481
1358
|
*/
|
|
1482
|
-
let postISigninHistory = (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1359
|
+
let postISigninHistory = async (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postISigninHistoryResponse => {
|
|
1483
1360
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postISigninHistoryRequestSchema)
|
|
1484
|
-
fetch(
|
|
1361
|
+
let response = await fetch(
|
|
1485
1362
|
~url="/i/signin-history",
|
|
1486
1363
|
~method_="POST",
|
|
1487
1364
|
~body=Some(jsonBody),
|
|
1488
|
-
)
|
|
1489
|
-
|
|
1490
|
-
value
|
|
1491
|
-
->Promise.resolve
|
|
1492
|
-
})
|
|
1365
|
+
)
|
|
1366
|
+
response->S.parseOrThrow(postISigninHistoryResponseSchema)
|
|
1493
1367
|
}
|
|
1494
1368
|
|
|
1495
1369
|
type postIUpdateEmailRequest = {
|
|
@@ -1516,17 +1390,14 @@ No description provided.
|
|
|
1516
1390
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1517
1391
|
**Credential required**: *Yes*
|
|
1518
1392
|
*/
|
|
1519
|
-
let postIUpdateEmail = (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1393
|
+
let postIUpdateEmail = async (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateEmailResponse => {
|
|
1520
1394
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateEmailRequestSchema)
|
|
1521
|
-
fetch(
|
|
1395
|
+
let response = await fetch(
|
|
1522
1396
|
~url="/i/update-email",
|
|
1523
1397
|
~method_="POST",
|
|
1524
1398
|
~body=Some(jsonBody),
|
|
1525
|
-
)
|
|
1526
|
-
|
|
1527
|
-
value
|
|
1528
|
-
->Promise.resolve
|
|
1529
|
-
})
|
|
1399
|
+
)
|
|
1400
|
+
response->S.parseOrThrow(postIUpdateEmailResponseSchema)
|
|
1530
1401
|
}
|
|
1531
1402
|
|
|
1532
1403
|
type postPagePushRequest = {
|
|
@@ -1551,17 +1422,14 @@ No description provided.
|
|
|
1551
1422
|
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1552
1423
|
**Credential required**: *Yes*
|
|
1553
1424
|
*/
|
|
1554
|
-
let postPagePush = (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1425
|
+
let postPagePush = async (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPagePushResponse => {
|
|
1555
1426
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postPagePushRequestSchema)
|
|
1556
|
-
fetch(
|
|
1427
|
+
let response = await fetch(
|
|
1557
1428
|
~url="/page-push",
|
|
1558
1429
|
~method_="POST",
|
|
1559
1430
|
~body=Some(jsonBody),
|
|
1560
|
-
)
|
|
1431
|
+
)
|
|
1561
1432
|
let _ = response
|
|
1562
|
-
()
|
|
1563
|
-
->Promise.resolve
|
|
1564
|
-
})
|
|
1565
1433
|
}
|
|
1566
1434
|
|
|
1567
1435
|
type postReversiCancelMatchRequest = {
|
|
@@ -1581,17 +1449,14 @@ No description provided.
|
|
|
1581
1449
|
|
|
1582
1450
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1583
1451
|
*/
|
|
1584
|
-
let postReversiCancelMatch = (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1452
|
+
let postReversiCancelMatch = async (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiCancelMatchResponse => {
|
|
1585
1453
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiCancelMatchRequestSchema)
|
|
1586
|
-
fetch(
|
|
1454
|
+
let response = await fetch(
|
|
1587
1455
|
~url="/reversi/cancel-match",
|
|
1588
1456
|
~method_="POST",
|
|
1589
1457
|
~body=Some(jsonBody),
|
|
1590
|
-
)
|
|
1458
|
+
)
|
|
1591
1459
|
let _ = response
|
|
1592
|
-
()
|
|
1593
|
-
->Promise.resolve
|
|
1594
|
-
})
|
|
1595
1460
|
}
|
|
1596
1461
|
|
|
1597
1462
|
type postReversiGamesRequest = {
|
|
@@ -1619,17 +1484,14 @@ No description provided.
|
|
|
1619
1484
|
|
|
1620
1485
|
**Credential required**: *No*
|
|
1621
1486
|
*/
|
|
1622
|
-
let postReversiGames = (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1487
|
+
let postReversiGames = async (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiGamesResponse => {
|
|
1623
1488
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiGamesRequestSchema)
|
|
1624
|
-
fetch(
|
|
1489
|
+
let response = await fetch(
|
|
1625
1490
|
~url="/reversi/games",
|
|
1626
1491
|
~method_="POST",
|
|
1627
1492
|
~body=Some(jsonBody),
|
|
1628
|
-
)
|
|
1629
|
-
|
|
1630
|
-
value
|
|
1631
|
-
->Promise.resolve
|
|
1632
|
-
})
|
|
1493
|
+
)
|
|
1494
|
+
response->S.parseOrThrow(postReversiGamesResponseSchema)
|
|
1633
1495
|
}
|
|
1634
1496
|
|
|
1635
1497
|
type postReversiInvitationsResponse = array<MisskeyIoComponentSchemas.UserLite.t>
|
|
@@ -1643,17 +1505,14 @@ No description provided.
|
|
|
1643
1505
|
|
|
1644
1506
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1645
1507
|
*/
|
|
1646
|
-
let postReversiInvitations = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1508
|
+
let postReversiInvitations = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiInvitationsResponse => {
|
|
1647
1509
|
|
|
1648
|
-
fetch(
|
|
1510
|
+
let response = await fetch(
|
|
1649
1511
|
~url="/reversi/invitations",
|
|
1650
1512
|
~method_="POST",
|
|
1651
1513
|
~body=None,
|
|
1652
|
-
)
|
|
1653
|
-
|
|
1654
|
-
value
|
|
1655
|
-
->Promise.resolve
|
|
1656
|
-
})
|
|
1514
|
+
)
|
|
1515
|
+
response->S.parseOrThrow(postReversiInvitationsResponseSchema)
|
|
1657
1516
|
}
|
|
1658
1517
|
|
|
1659
1518
|
type postReversiMatchRequest = {
|
|
@@ -1679,17 +1538,14 @@ No description provided.
|
|
|
1679
1538
|
|
|
1680
1539
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1681
1540
|
*/
|
|
1682
|
-
let postReversiMatch = (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1541
|
+
let postReversiMatch = async (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiMatchResponse => {
|
|
1683
1542
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiMatchRequestSchema)
|
|
1684
|
-
fetch(
|
|
1543
|
+
let response = await fetch(
|
|
1685
1544
|
~url="/reversi/match",
|
|
1686
1545
|
~method_="POST",
|
|
1687
1546
|
~body=Some(jsonBody),
|
|
1688
|
-
)
|
|
1689
|
-
|
|
1690
|
-
value
|
|
1691
|
-
->Promise.resolve
|
|
1692
|
-
})
|
|
1547
|
+
)
|
|
1548
|
+
response->S.parseOrThrow(postReversiMatchResponseSchema)
|
|
1693
1549
|
}
|
|
1694
1550
|
|
|
1695
1551
|
type postReversiShowGameRequest = {
|
|
@@ -1711,17 +1567,14 @@ No description provided.
|
|
|
1711
1567
|
|
|
1712
1568
|
**Credential required**: *No*
|
|
1713
1569
|
*/
|
|
1714
|
-
let postReversiShowGame = (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1570
|
+
let postReversiShowGame = async (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiShowGameResponse => {
|
|
1715
1571
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiShowGameRequestSchema)
|
|
1716
|
-
fetch(
|
|
1572
|
+
let response = await fetch(
|
|
1717
1573
|
~url="/reversi/show-game",
|
|
1718
1574
|
~method_="POST",
|
|
1719
1575
|
~body=Some(jsonBody),
|
|
1720
|
-
)
|
|
1721
|
-
|
|
1722
|
-
value
|
|
1723
|
-
->Promise.resolve
|
|
1724
|
-
})
|
|
1576
|
+
)
|
|
1577
|
+
response->S.parseOrThrow(postReversiShowGameResponseSchema)
|
|
1725
1578
|
}
|
|
1726
1579
|
|
|
1727
1580
|
type postReversiSurrenderRequest = {
|
|
@@ -1741,17 +1594,14 @@ No description provided.
|
|
|
1741
1594
|
|
|
1742
1595
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1743
1596
|
*/
|
|
1744
|
-
let postReversiSurrender = (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1597
|
+
let postReversiSurrender = async (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiSurrenderResponse => {
|
|
1745
1598
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiSurrenderRequestSchema)
|
|
1746
|
-
fetch(
|
|
1599
|
+
let response = await fetch(
|
|
1747
1600
|
~url="/reversi/surrender",
|
|
1748
1601
|
~method_="POST",
|
|
1749
1602
|
~body=Some(jsonBody),
|
|
1750
|
-
)
|
|
1603
|
+
)
|
|
1751
1604
|
let _ = response
|
|
1752
|
-
()
|
|
1753
|
-
->Promise.resolve
|
|
1754
|
-
})
|
|
1755
1605
|
}
|
|
1756
1606
|
|
|
1757
1607
|
type postReversiVerifyRequest = {
|
|
@@ -1781,17 +1631,14 @@ No description provided.
|
|
|
1781
1631
|
|
|
1782
1632
|
**Credential required**: *No*
|
|
1783
1633
|
*/
|
|
1784
|
-
let postReversiVerify = (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1634
|
+
let postReversiVerify = async (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiVerifyResponse => {
|
|
1785
1635
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiVerifyRequestSchema)
|
|
1786
|
-
fetch(
|
|
1636
|
+
let response = await fetch(
|
|
1787
1637
|
~url="/reversi/verify",
|
|
1788
1638
|
~method_="POST",
|
|
1789
1639
|
~body=Some(jsonBody),
|
|
1790
|
-
)
|
|
1791
|
-
|
|
1792
|
-
value
|
|
1793
|
-
->Promise.resolve
|
|
1794
|
-
})
|
|
1640
|
+
)
|
|
1641
|
+
response->S.parseOrThrow(postReversiVerifyResponseSchema)
|
|
1795
1642
|
}
|
|
1796
1643
|
|
|
1797
1644
|
type postUsersAchievementsRequest = {
|
|
@@ -1823,17 +1670,14 @@ No description provided.
|
|
|
1823
1670
|
|
|
1824
1671
|
**Credential required**: *No*
|
|
1825
1672
|
*/
|
|
1826
|
-
let postUsersAchievements = (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1673
|
+
let postUsersAchievements = async (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersAchievementsResponse => {
|
|
1827
1674
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersAchievementsRequestSchema)
|
|
1828
|
-
fetch(
|
|
1675
|
+
let response = await fetch(
|
|
1829
1676
|
~url="/users/achievements",
|
|
1830
1677
|
~method_="POST",
|
|
1831
1678
|
~body=Some(jsonBody),
|
|
1832
|
-
)
|
|
1833
|
-
|
|
1834
|
-
value
|
|
1835
|
-
->Promise.resolve
|
|
1836
|
-
})
|
|
1679
|
+
)
|
|
1680
|
+
response->S.parseOrThrow(postUsersAchievementsResponseSchema)
|
|
1837
1681
|
}
|
|
1838
1682
|
|
|
1839
1683
|
type postUsersListsCreateFromPublicRequest = {
|
|
@@ -1857,17 +1701,14 @@ No description provided.
|
|
|
1857
1701
|
|
|
1858
1702
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1859
1703
|
*/
|
|
1860
|
-
let postUsersListsCreateFromPublic = (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1704
|
+
let postUsersListsCreateFromPublic = async (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsCreateFromPublicResponse => {
|
|
1861
1705
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsCreateFromPublicRequestSchema)
|
|
1862
|
-
fetch(
|
|
1706
|
+
let response = await fetch(
|
|
1863
1707
|
~url="/users/lists/create-from-public",
|
|
1864
1708
|
~method_="POST",
|
|
1865
1709
|
~body=Some(jsonBody),
|
|
1866
|
-
)
|
|
1867
|
-
|
|
1868
|
-
value
|
|
1869
|
-
->Promise.resolve
|
|
1870
|
-
})
|
|
1710
|
+
)
|
|
1711
|
+
response->S.parseOrThrow(postUsersListsCreateFromPublicResponseSchema)
|
|
1871
1712
|
}
|
|
1872
1713
|
|
|
1873
1714
|
type postUsersListsFavoriteRequest = {
|
|
@@ -1887,17 +1728,14 @@ No description provided.
|
|
|
1887
1728
|
|
|
1888
1729
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1889
1730
|
*/
|
|
1890
|
-
let postUsersListsFavorite = (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1731
|
+
let postUsersListsFavorite = async (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsFavoriteResponse => {
|
|
1891
1732
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsFavoriteRequestSchema)
|
|
1892
|
-
fetch(
|
|
1733
|
+
let response = await fetch(
|
|
1893
1734
|
~url="/users/lists/favorite",
|
|
1894
1735
|
~method_="POST",
|
|
1895
1736
|
~body=Some(jsonBody),
|
|
1896
|
-
)
|
|
1737
|
+
)
|
|
1897
1738
|
let _ = response
|
|
1898
|
-
()
|
|
1899
|
-
->Promise.resolve
|
|
1900
|
-
})
|
|
1901
1739
|
}
|
|
1902
1740
|
|
|
1903
1741
|
type postUsersListsUnfavoriteRequest = {
|
|
@@ -1917,15 +1755,12 @@ No description provided.
|
|
|
1917
1755
|
|
|
1918
1756
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1919
1757
|
*/
|
|
1920
|
-
let postUsersListsUnfavorite = (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1758
|
+
let postUsersListsUnfavorite = async (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsUnfavoriteResponse => {
|
|
1921
1759
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsUnfavoriteRequestSchema)
|
|
1922
|
-
fetch(
|
|
1760
|
+
let response = await fetch(
|
|
1923
1761
|
~url="/users/lists/unfavorite",
|
|
1924
1762
|
~method_="POST",
|
|
1925
1763
|
~body=Some(jsonBody),
|
|
1926
|
-
)
|
|
1764
|
+
)
|
|
1927
1765
|
let _ = response
|
|
1928
|
-
()
|
|
1929
|
-
->Promise.resolve
|
|
1930
|
-
})
|
|
1931
1766
|
}
|