@f3liz/rescript-misskey-api 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
- package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
- package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
|
@@ -24,17 +24,14 @@ No description provided.
|
|
|
24
24
|
|
|
25
25
|
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
26
26
|
*/
|
|
27
|
-
let postBlockingCreate = (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
27
|
+
let postBlockingCreate = async (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingCreateResponse => {
|
|
28
28
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingCreateRequestSchema)
|
|
29
|
-
fetch(
|
|
29
|
+
let response = await fetch(
|
|
30
30
|
~url="/blocking/create",
|
|
31
31
|
~method_="POST",
|
|
32
32
|
~body=Some(jsonBody),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
value
|
|
36
|
-
->Promise.resolve
|
|
37
|
-
})
|
|
33
|
+
)
|
|
34
|
+
response->S.parseOrThrow(postBlockingCreateResponseSchema)
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
type postBlockingDeleteRequest = {
|
|
@@ -56,17 +53,14 @@ No description provided.
|
|
|
56
53
|
|
|
57
54
|
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
58
55
|
*/
|
|
59
|
-
let postBlockingDelete = (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
56
|
+
let postBlockingDelete = async (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingDeleteResponse => {
|
|
60
57
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingDeleteRequestSchema)
|
|
61
|
-
fetch(
|
|
58
|
+
let response = await fetch(
|
|
62
59
|
~url="/blocking/delete",
|
|
63
60
|
~method_="POST",
|
|
64
61
|
~body=Some(jsonBody),
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
value
|
|
68
|
-
->Promise.resolve
|
|
69
|
-
})
|
|
62
|
+
)
|
|
63
|
+
response->S.parseOrThrow(postBlockingDeleteResponseSchema)
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
type postBlockingListRequest = {
|
|
@@ -96,17 +90,14 @@ No description provided.
|
|
|
96
90
|
|
|
97
91
|
**Credential required**: *Yes* / **Permission**: *read:blocks*
|
|
98
92
|
*/
|
|
99
|
-
let postBlockingList = (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
93
|
+
let postBlockingList = async (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingListResponse => {
|
|
100
94
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingListRequestSchema)
|
|
101
|
-
fetch(
|
|
95
|
+
let response = await fetch(
|
|
102
96
|
~url="/blocking/list",
|
|
103
97
|
~method_="POST",
|
|
104
98
|
~body=Some(jsonBody),
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
value
|
|
108
|
-
->Promise.resolve
|
|
109
|
-
})
|
|
99
|
+
)
|
|
100
|
+
response->S.parseOrThrow(postBlockingListResponseSchema)
|
|
110
101
|
}
|
|
111
102
|
|
|
112
103
|
type postClipsNotesRequest = {
|
|
@@ -140,17 +131,14 @@ No description provided.
|
|
|
140
131
|
|
|
141
132
|
**Credential required**: *No* / **Permission**: *read:account*
|
|
142
133
|
*/
|
|
143
|
-
let postClipsNotes = (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
134
|
+
let postClipsNotes = async (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsNotesResponse => {
|
|
144
135
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsNotesRequestSchema)
|
|
145
|
-
fetch(
|
|
136
|
+
let response = await fetch(
|
|
146
137
|
~url="/clips/notes",
|
|
147
138
|
~method_="POST",
|
|
148
139
|
~body=Some(jsonBody),
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
value
|
|
152
|
-
->Promise.resolve
|
|
153
|
-
})
|
|
140
|
+
)
|
|
141
|
+
response->S.parseOrThrow(postClipsNotesResponseSchema)
|
|
154
142
|
}
|
|
155
143
|
|
|
156
144
|
type postFlashMyRequest = {
|
|
@@ -180,17 +168,14 @@ No description provided.
|
|
|
180
168
|
|
|
181
169
|
**Credential required**: *Yes* / **Permission**: *read:flash*
|
|
182
170
|
*/
|
|
183
|
-
let postFlashMy = (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
171
|
+
let postFlashMy = async (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyResponse => {
|
|
184
172
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyRequestSchema)
|
|
185
|
-
fetch(
|
|
173
|
+
let response = await fetch(
|
|
186
174
|
~url="/flash/my",
|
|
187
175
|
~method_="POST",
|
|
188
176
|
~body=Some(jsonBody),
|
|
189
|
-
)
|
|
190
|
-
|
|
191
|
-
value
|
|
192
|
-
->Promise.resolve
|
|
193
|
-
})
|
|
177
|
+
)
|
|
178
|
+
response->S.parseOrThrow(postFlashMyResponseSchema)
|
|
194
179
|
}
|
|
195
180
|
|
|
196
181
|
type postFlashMyLikesRequest = {
|
|
@@ -232,17 +217,14 @@ No description provided.
|
|
|
232
217
|
|
|
233
218
|
**Credential required**: *Yes* / **Permission**: *read:flash-likes*
|
|
234
219
|
*/
|
|
235
|
-
let postFlashMyLikes = (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
220
|
+
let postFlashMyLikes = async (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyLikesResponse => {
|
|
236
221
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyLikesRequestSchema)
|
|
237
|
-
fetch(
|
|
222
|
+
let response = await fetch(
|
|
238
223
|
~url="/flash/my-likes",
|
|
239
224
|
~method_="POST",
|
|
240
225
|
~body=Some(jsonBody),
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
value
|
|
244
|
-
->Promise.resolve
|
|
245
|
-
})
|
|
226
|
+
)
|
|
227
|
+
response->S.parseOrThrow(postFlashMyLikesResponseSchema)
|
|
246
228
|
}
|
|
247
229
|
|
|
248
230
|
type postIResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
@@ -256,17 +238,14 @@ No description provided.
|
|
|
256
238
|
|
|
257
239
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
258
240
|
*/
|
|
259
|
-
let postI = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
241
|
+
let postI = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIResponse => {
|
|
260
242
|
|
|
261
|
-
fetch(
|
|
243
|
+
let response = await fetch(
|
|
262
244
|
~url="/i",
|
|
263
245
|
~method_="POST",
|
|
264
246
|
~body=None,
|
|
265
|
-
)
|
|
266
|
-
|
|
267
|
-
value
|
|
268
|
-
->Promise.resolve
|
|
269
|
-
})
|
|
247
|
+
)
|
|
248
|
+
response->S.parseOrThrow(postIResponseSchema)
|
|
270
249
|
}
|
|
271
250
|
|
|
272
251
|
type postIAutoDeleteSettingsResponse = {
|
|
@@ -286,17 +265,14 @@ No description provided.
|
|
|
286
265
|
|
|
287
266
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
288
267
|
*/
|
|
289
|
-
let postIAutoDeleteSettings = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
268
|
+
let postIAutoDeleteSettings = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAutoDeleteSettingsResponse => {
|
|
290
269
|
|
|
291
|
-
fetch(
|
|
270
|
+
let response = await fetch(
|
|
292
271
|
~url="/i/auto-delete-settings",
|
|
293
272
|
~method_="POST",
|
|
294
273
|
~body=None,
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
value
|
|
298
|
-
->Promise.resolve
|
|
299
|
-
})
|
|
274
|
+
)
|
|
275
|
+
response->S.parseOrThrow(postIAutoDeleteSettingsResponseSchema)
|
|
300
276
|
}
|
|
301
277
|
|
|
302
278
|
type postIFavoritesRequest = {
|
|
@@ -326,17 +302,14 @@ No description provided.
|
|
|
326
302
|
|
|
327
303
|
**Credential required**: *Yes* / **Permission**: *read:favorites*
|
|
328
304
|
*/
|
|
329
|
-
let postIFavorites = (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
305
|
+
let postIFavorites = async (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIFavoritesResponse => {
|
|
330
306
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIFavoritesRequestSchema)
|
|
331
|
-
fetch(
|
|
307
|
+
let response = await fetch(
|
|
332
308
|
~url="/i/favorites",
|
|
333
309
|
~method_="POST",
|
|
334
310
|
~body=Some(jsonBody),
|
|
335
|
-
)
|
|
336
|
-
|
|
337
|
-
value
|
|
338
|
-
->Promise.resolve
|
|
339
|
-
})
|
|
311
|
+
)
|
|
312
|
+
response->S.parseOrThrow(postIFavoritesResponseSchema)
|
|
340
313
|
}
|
|
341
314
|
|
|
342
315
|
type postIFollowersServersResponse_1 = {
|
|
@@ -366,17 +339,14 @@ No description provided.
|
|
|
366
339
|
|
|
367
340
|
**Credential required**: *Yes* / **Permission**: *read:following*
|
|
368
341
|
*/
|
|
369
|
-
let postIFollowersServers = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
342
|
+
let postIFollowersServers = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIFollowersServersResponse => {
|
|
370
343
|
|
|
371
|
-
fetch(
|
|
344
|
+
let response = await fetch(
|
|
372
345
|
~url="/i/followers-servers",
|
|
373
346
|
~method_="POST",
|
|
374
347
|
~body=None,
|
|
375
|
-
)
|
|
376
|
-
|
|
377
|
-
value
|
|
378
|
-
->Promise.resolve
|
|
379
|
-
})
|
|
348
|
+
)
|
|
349
|
+
response->S.parseOrThrow(postIFollowersServersResponseSchema)
|
|
380
350
|
}
|
|
381
351
|
|
|
382
352
|
type postIGalleryLikesRequest = {
|
|
@@ -416,17 +386,14 @@ No description provided.
|
|
|
416
386
|
|
|
417
387
|
**Credential required**: *Yes* / **Permission**: *read:gallery-likes*
|
|
418
388
|
*/
|
|
419
|
-
let postIGalleryLikes = (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
389
|
+
let postIGalleryLikes = async (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryLikesResponse => {
|
|
420
390
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryLikesRequestSchema)
|
|
421
|
-
fetch(
|
|
391
|
+
let response = await fetch(
|
|
422
392
|
~url="/i/gallery/likes",
|
|
423
393
|
~method_="POST",
|
|
424
394
|
~body=Some(jsonBody),
|
|
425
|
-
)
|
|
426
|
-
|
|
427
|
-
value
|
|
428
|
-
->Promise.resolve
|
|
429
|
-
})
|
|
395
|
+
)
|
|
396
|
+
response->S.parseOrThrow(postIGalleryLikesResponseSchema)
|
|
430
397
|
}
|
|
431
398
|
|
|
432
399
|
type postIGalleryPostsRequest = {
|
|
@@ -456,17 +423,14 @@ No description provided.
|
|
|
456
423
|
|
|
457
424
|
**Credential required**: *Yes* / **Permission**: *read:gallery*
|
|
458
425
|
*/
|
|
459
|
-
let postIGalleryPosts = (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
426
|
+
let postIGalleryPosts = async (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryPostsResponse => {
|
|
460
427
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryPostsRequestSchema)
|
|
461
|
-
fetch(
|
|
428
|
+
let response = await fetch(
|
|
462
429
|
~url="/i/gallery/posts",
|
|
463
430
|
~method_="POST",
|
|
464
431
|
~body=Some(jsonBody),
|
|
465
|
-
)
|
|
466
|
-
|
|
467
|
-
value
|
|
468
|
-
->Promise.resolve
|
|
469
|
-
})
|
|
432
|
+
)
|
|
433
|
+
response->S.parseOrThrow(postIGalleryPostsResponseSchema)
|
|
470
434
|
}
|
|
471
435
|
|
|
472
436
|
type postINotificationsRequest = {
|
|
@@ -502,17 +466,14 @@ No description provided.
|
|
|
502
466
|
|
|
503
467
|
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
504
468
|
*/
|
|
505
|
-
let postINotifications = (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
469
|
+
let postINotifications = async (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsResponse => {
|
|
506
470
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsRequestSchema)
|
|
507
|
-
fetch(
|
|
471
|
+
let response = await fetch(
|
|
508
472
|
~url="/i/notifications",
|
|
509
473
|
~method_="POST",
|
|
510
474
|
~body=Some(jsonBody),
|
|
511
|
-
)
|
|
512
|
-
|
|
513
|
-
value
|
|
514
|
-
->Promise.resolve
|
|
515
|
-
})
|
|
475
|
+
)
|
|
476
|
+
response->S.parseOrThrow(postINotificationsResponseSchema)
|
|
516
477
|
}
|
|
517
478
|
|
|
518
479
|
type postINotificationsGroupedRequest = {
|
|
@@ -548,17 +509,14 @@ No description provided.
|
|
|
548
509
|
|
|
549
510
|
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
550
511
|
*/
|
|
551
|
-
let postINotificationsGrouped = (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
512
|
+
let postINotificationsGrouped = async (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsGroupedResponse => {
|
|
552
513
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsGroupedRequestSchema)
|
|
553
|
-
fetch(
|
|
514
|
+
let response = await fetch(
|
|
554
515
|
~url="/i/notifications-grouped",
|
|
555
516
|
~method_="POST",
|
|
556
517
|
~body=Some(jsonBody),
|
|
557
|
-
)
|
|
558
|
-
|
|
559
|
-
value
|
|
560
|
-
->Promise.resolve
|
|
561
|
-
})
|
|
518
|
+
)
|
|
519
|
+
response->S.parseOrThrow(postINotificationsGroupedResponseSchema)
|
|
562
520
|
}
|
|
563
521
|
|
|
564
522
|
type postIPageLikesRequest = {
|
|
@@ -598,17 +556,14 @@ No description provided.
|
|
|
598
556
|
|
|
599
557
|
**Credential required**: *Yes* / **Permission**: *read:page-likes*
|
|
600
558
|
*/
|
|
601
|
-
let postIPageLikes = (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
559
|
+
let postIPageLikes = async (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPageLikesResponse => {
|
|
602
560
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPageLikesRequestSchema)
|
|
603
|
-
fetch(
|
|
561
|
+
let response = await fetch(
|
|
604
562
|
~url="/i/page-likes",
|
|
605
563
|
~method_="POST",
|
|
606
564
|
~body=Some(jsonBody),
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
value
|
|
610
|
-
->Promise.resolve
|
|
611
|
-
})
|
|
565
|
+
)
|
|
566
|
+
response->S.parseOrThrow(postIPageLikesResponseSchema)
|
|
612
567
|
}
|
|
613
568
|
|
|
614
569
|
type postIPagesRequest = {
|
|
@@ -638,17 +593,14 @@ No description provided.
|
|
|
638
593
|
|
|
639
594
|
**Credential required**: *Yes* / **Permission**: *read:pages*
|
|
640
595
|
*/
|
|
641
|
-
let postIPages = (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
596
|
+
let postIPages = async (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPagesResponse => {
|
|
642
597
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPagesRequestSchema)
|
|
643
|
-
fetch(
|
|
598
|
+
let response = await fetch(
|
|
644
599
|
~url="/i/pages",
|
|
645
600
|
~method_="POST",
|
|
646
601
|
~body=Some(jsonBody),
|
|
647
|
-
)
|
|
648
|
-
|
|
649
|
-
value
|
|
650
|
-
->Promise.resolve
|
|
651
|
-
})
|
|
602
|
+
)
|
|
603
|
+
response->S.parseOrThrow(postIPagesResponseSchema)
|
|
652
604
|
}
|
|
653
605
|
|
|
654
606
|
type postIPinRequest = {
|
|
@@ -670,17 +622,14 @@ No description provided.
|
|
|
670
622
|
|
|
671
623
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
672
624
|
*/
|
|
673
|
-
let postIPin = (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
625
|
+
let postIPin = async (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPinResponse => {
|
|
674
626
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPinRequestSchema)
|
|
675
|
-
fetch(
|
|
627
|
+
let response = await fetch(
|
|
676
628
|
~url="/i/pin",
|
|
677
629
|
~method_="POST",
|
|
678
630
|
~body=Some(jsonBody),
|
|
679
|
-
)
|
|
680
|
-
|
|
681
|
-
value
|
|
682
|
-
->Promise.resolve
|
|
683
|
-
})
|
|
631
|
+
)
|
|
632
|
+
response->S.parseOrThrow(postIPinResponseSchema)
|
|
684
633
|
}
|
|
685
634
|
|
|
686
635
|
type postIUnpinRequest = {
|
|
@@ -702,17 +651,14 @@ No description provided.
|
|
|
702
651
|
|
|
703
652
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
704
653
|
*/
|
|
705
|
-
let postIUnpin = (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
654
|
+
let postIUnpin = async (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUnpinResponse => {
|
|
706
655
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUnpinRequestSchema)
|
|
707
|
-
fetch(
|
|
656
|
+
let response = await fetch(
|
|
708
657
|
~url="/i/unpin",
|
|
709
658
|
~method_="POST",
|
|
710
659
|
~body=Some(jsonBody),
|
|
711
|
-
)
|
|
712
|
-
|
|
713
|
-
value
|
|
714
|
-
->Promise.resolve
|
|
715
|
-
})
|
|
660
|
+
)
|
|
661
|
+
response->S.parseOrThrow(postIUnpinResponseSchema)
|
|
716
662
|
}
|
|
717
663
|
|
|
718
664
|
type postIUpdateRequest_3 = {
|
|
@@ -882,17 +828,14 @@ No description provided.
|
|
|
882
828
|
|
|
883
829
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
884
830
|
*/
|
|
885
|
-
let postIUpdate = (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
831
|
+
let postIUpdate = async (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateResponse => {
|
|
886
832
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateRequestSchema)
|
|
887
|
-
fetch(
|
|
833
|
+
let response = await fetch(
|
|
888
834
|
~url="/i/update",
|
|
889
835
|
~method_="POST",
|
|
890
836
|
~body=Some(jsonBody),
|
|
891
|
-
)
|
|
892
|
-
|
|
893
|
-
value
|
|
894
|
-
->Promise.resolve
|
|
895
|
-
})
|
|
837
|
+
)
|
|
838
|
+
response->S.parseOrThrow(postIUpdateResponseSchema)
|
|
896
839
|
}
|
|
897
840
|
|
|
898
841
|
type postIUpdateAutoDeleteSettingsRequest = {
|
|
@@ -914,17 +857,14 @@ No description provided.
|
|
|
914
857
|
|
|
915
858
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
916
859
|
*/
|
|
917
|
-
let postIUpdateAutoDeleteSettings = (~body: postIUpdateAutoDeleteSettingsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
860
|
+
let postIUpdateAutoDeleteSettings = async (~body: postIUpdateAutoDeleteSettingsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateAutoDeleteSettingsResponse => {
|
|
918
861
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateAutoDeleteSettingsRequestSchema)
|
|
919
|
-
fetch(
|
|
862
|
+
let response = await fetch(
|
|
920
863
|
~url="/i/update-auto-delete-settings",
|
|
921
864
|
~method_="POST",
|
|
922
865
|
~body=Some(jsonBody),
|
|
923
|
-
)
|
|
866
|
+
)
|
|
924
867
|
let _ = response
|
|
925
|
-
()
|
|
926
|
-
->Promise.resolve
|
|
927
|
-
})
|
|
928
868
|
}
|
|
929
869
|
|
|
930
870
|
type postIUserGroupInvitesRequest = {
|
|
@@ -960,17 +900,14 @@ No description provided.
|
|
|
960
900
|
|
|
961
901
|
**Credential required**: *Yes* / **Permission**: *read:user-groups*
|
|
962
902
|
*/
|
|
963
|
-
let postIUserGroupInvites = (~body: postIUserGroupInvitesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
903
|
+
let postIUserGroupInvites = async (~body: postIUserGroupInvitesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUserGroupInvitesResponse => {
|
|
964
904
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUserGroupInvitesRequestSchema)
|
|
965
|
-
fetch(
|
|
905
|
+
let response = await fetch(
|
|
966
906
|
~url="/i/user-group-invites",
|
|
967
907
|
~method_="POST",
|
|
968
908
|
~body=Some(jsonBody),
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
value
|
|
972
|
-
->Promise.resolve
|
|
973
|
-
})
|
|
909
|
+
)
|
|
910
|
+
response->S.parseOrThrow(postIUserGroupInvitesResponseSchema)
|
|
974
911
|
}
|
|
975
912
|
|
|
976
913
|
type postMuteListRequest = {
|
|
@@ -1000,17 +937,14 @@ No description provided.
|
|
|
1000
937
|
|
|
1001
938
|
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
1002
939
|
*/
|
|
1003
|
-
let postMuteList = (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
940
|
+
let postMuteList = async (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMuteListResponse => {
|
|
1004
941
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMuteListRequestSchema)
|
|
1005
|
-
fetch(
|
|
942
|
+
let response = await fetch(
|
|
1006
943
|
~url="/mute/list",
|
|
1007
944
|
~method_="POST",
|
|
1008
945
|
~body=Some(jsonBody),
|
|
1009
|
-
)
|
|
1010
|
-
|
|
1011
|
-
value
|
|
1012
|
-
->Promise.resolve
|
|
1013
|
-
})
|
|
946
|
+
)
|
|
947
|
+
response->S.parseOrThrow(postMuteListResponseSchema)
|
|
1014
948
|
}
|
|
1015
949
|
|
|
1016
950
|
type postRenoteMuteListRequest = {
|
|
@@ -1040,17 +974,14 @@ No description provided.
|
|
|
1040
974
|
|
|
1041
975
|
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
1042
976
|
*/
|
|
1043
|
-
let postRenoteMuteList = (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
977
|
+
let postRenoteMuteList = async (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRenoteMuteListResponse => {
|
|
1044
978
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postRenoteMuteListRequestSchema)
|
|
1045
|
-
fetch(
|
|
979
|
+
let response = await fetch(
|
|
1046
980
|
~url="/renote-mute/list",
|
|
1047
981
|
~method_="POST",
|
|
1048
982
|
~body=Some(jsonBody),
|
|
1049
|
-
)
|
|
1050
|
-
|
|
1051
|
-
value
|
|
1052
|
-
->Promise.resolve
|
|
1053
|
-
})
|
|
983
|
+
)
|
|
984
|
+
response->S.parseOrThrow(postRenoteMuteListResponseSchema)
|
|
1054
985
|
}
|
|
1055
986
|
|
|
1056
987
|
type postVerifyEmailRequest = {
|
|
@@ -1070,15 +1001,12 @@ No description provided.
|
|
|
1070
1001
|
|
|
1071
1002
|
**Credential required**: *No*
|
|
1072
1003
|
*/
|
|
1073
|
-
let postVerifyEmail = (~body: postVerifyEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1004
|
+
let postVerifyEmail = async (~body: postVerifyEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postVerifyEmailResponse => {
|
|
1074
1005
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postVerifyEmailRequestSchema)
|
|
1075
|
-
fetch(
|
|
1006
|
+
let response = await fetch(
|
|
1076
1007
|
~url="/verify-email",
|
|
1077
1008
|
~method_="POST",
|
|
1078
1009
|
~body=Some(jsonBody),
|
|
1079
|
-
)
|
|
1010
|
+
)
|
|
1080
1011
|
let _ = response
|
|
1081
|
-
()
|
|
1082
|
-
->Promise.resolve
|
|
1083
|
-
})
|
|
1084
1012
|
}
|