@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
|
@@ -48,17 +48,14 @@ No description provided.
|
|
|
48
48
|
|
|
49
49
|
**Credential required**: *No*
|
|
50
50
|
*/
|
|
51
|
-
let getChartsActiveUsers = (~body: getChartsActiveUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
51
|
+
let getChartsActiveUsers = async (~body: getChartsActiveUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsActiveUsersResponse => {
|
|
52
52
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsActiveUsersRequestSchema)
|
|
53
|
-
fetch(
|
|
53
|
+
let response = await fetch(
|
|
54
54
|
~url="/charts/active-users",
|
|
55
55
|
~method_="GET",
|
|
56
56
|
~body=Some(jsonBody),
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
value
|
|
60
|
-
->Promise.resolve
|
|
61
|
-
})
|
|
57
|
+
)
|
|
58
|
+
response->S.parseOrThrow(getChartsActiveUsersResponseSchema)
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
type postChartsActiveUsersRequest = {
|
|
@@ -104,17 +101,14 @@ No description provided.
|
|
|
104
101
|
|
|
105
102
|
**Credential required**: *No*
|
|
106
103
|
*/
|
|
107
|
-
let postChartsActiveUsers = (~body: postChartsActiveUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
104
|
+
let postChartsActiveUsers = async (~body: postChartsActiveUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsActiveUsersResponse => {
|
|
108
105
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsActiveUsersRequestSchema)
|
|
109
|
-
fetch(
|
|
106
|
+
let response = await fetch(
|
|
110
107
|
~url="/charts/active-users",
|
|
111
108
|
~method_="POST",
|
|
112
109
|
~body=Some(jsonBody),
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
value
|
|
116
|
-
->Promise.resolve
|
|
117
|
-
})
|
|
110
|
+
)
|
|
111
|
+
response->S.parseOrThrow(postChartsActiveUsersResponseSchema)
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
type getChartsApRequestRequest = {
|
|
@@ -148,17 +142,14 @@ No description provided.
|
|
|
148
142
|
|
|
149
143
|
**Credential required**: *No*
|
|
150
144
|
*/
|
|
151
|
-
let getChartsApRequest = (~body: getChartsApRequestRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
145
|
+
let getChartsApRequest = async (~body: getChartsApRequestRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsApRequestResponse => {
|
|
152
146
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsApRequestRequestSchema)
|
|
153
|
-
fetch(
|
|
147
|
+
let response = await fetch(
|
|
154
148
|
~url="/charts/ap-request",
|
|
155
149
|
~method_="GET",
|
|
156
150
|
~body=Some(jsonBody),
|
|
157
|
-
)
|
|
158
|
-
|
|
159
|
-
value
|
|
160
|
-
->Promise.resolve
|
|
161
|
-
})
|
|
151
|
+
)
|
|
152
|
+
response->S.parseOrThrow(getChartsApRequestResponseSchema)
|
|
162
153
|
}
|
|
163
154
|
|
|
164
155
|
type postChartsApRequestRequest = {
|
|
@@ -192,17 +183,14 @@ No description provided.
|
|
|
192
183
|
|
|
193
184
|
**Credential required**: *No*
|
|
194
185
|
*/
|
|
195
|
-
let postChartsApRequest = (~body: postChartsApRequestRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
186
|
+
let postChartsApRequest = async (~body: postChartsApRequestRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsApRequestResponse => {
|
|
196
187
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsApRequestRequestSchema)
|
|
197
|
-
fetch(
|
|
188
|
+
let response = await fetch(
|
|
198
189
|
~url="/charts/ap-request",
|
|
199
190
|
~method_="POST",
|
|
200
191
|
~body=Some(jsonBody),
|
|
201
|
-
)
|
|
202
|
-
|
|
203
|
-
value
|
|
204
|
-
->Promise.resolve
|
|
205
|
-
})
|
|
192
|
+
)
|
|
193
|
+
response->S.parseOrThrow(postChartsApRequestResponseSchema)
|
|
206
194
|
}
|
|
207
195
|
|
|
208
196
|
type getChartsDriveRequest = {
|
|
@@ -248,17 +236,14 @@ No description provided.
|
|
|
248
236
|
|
|
249
237
|
**Credential required**: *No*
|
|
250
238
|
*/
|
|
251
|
-
let getChartsDrive = (~body: getChartsDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
239
|
+
let getChartsDrive = async (~body: getChartsDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsDriveResponse => {
|
|
252
240
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsDriveRequestSchema)
|
|
253
|
-
fetch(
|
|
241
|
+
let response = await fetch(
|
|
254
242
|
~url="/charts/drive",
|
|
255
243
|
~method_="GET",
|
|
256
244
|
~body=Some(jsonBody),
|
|
257
|
-
)
|
|
258
|
-
|
|
259
|
-
value
|
|
260
|
-
->Promise.resolve
|
|
261
|
-
})
|
|
245
|
+
)
|
|
246
|
+
response->S.parseOrThrow(getChartsDriveResponseSchema)
|
|
262
247
|
}
|
|
263
248
|
|
|
264
249
|
type postChartsDriveRequest = {
|
|
@@ -304,17 +289,14 @@ No description provided.
|
|
|
304
289
|
|
|
305
290
|
**Credential required**: *No*
|
|
306
291
|
*/
|
|
307
|
-
let postChartsDrive = (~body: postChartsDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
292
|
+
let postChartsDrive = async (~body: postChartsDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsDriveResponse => {
|
|
308
293
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsDriveRequestSchema)
|
|
309
|
-
fetch(
|
|
294
|
+
let response = await fetch(
|
|
310
295
|
~url="/charts/drive",
|
|
311
296
|
~method_="POST",
|
|
312
297
|
~body=Some(jsonBody),
|
|
313
|
-
)
|
|
314
|
-
|
|
315
|
-
value
|
|
316
|
-
->Promise.resolve
|
|
317
|
-
})
|
|
298
|
+
)
|
|
299
|
+
response->S.parseOrThrow(postChartsDriveResponseSchema)
|
|
318
300
|
}
|
|
319
301
|
|
|
320
302
|
type getChartsFederationRequest = {
|
|
@@ -358,17 +340,14 @@ No description provided.
|
|
|
358
340
|
|
|
359
341
|
**Credential required**: *No*
|
|
360
342
|
*/
|
|
361
|
-
let getChartsFederation = (~body: getChartsFederationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
343
|
+
let getChartsFederation = async (~body: getChartsFederationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsFederationResponse => {
|
|
362
344
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsFederationRequestSchema)
|
|
363
|
-
fetch(
|
|
345
|
+
let response = await fetch(
|
|
364
346
|
~url="/charts/federation",
|
|
365
347
|
~method_="GET",
|
|
366
348
|
~body=Some(jsonBody),
|
|
367
|
-
)
|
|
368
|
-
|
|
369
|
-
value
|
|
370
|
-
->Promise.resolve
|
|
371
|
-
})
|
|
349
|
+
)
|
|
350
|
+
response->S.parseOrThrow(getChartsFederationResponseSchema)
|
|
372
351
|
}
|
|
373
352
|
|
|
374
353
|
type postChartsFederationRequest = {
|
|
@@ -412,17 +391,14 @@ No description provided.
|
|
|
412
391
|
|
|
413
392
|
**Credential required**: *No*
|
|
414
393
|
*/
|
|
415
|
-
let postChartsFederation = (~body: postChartsFederationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
394
|
+
let postChartsFederation = async (~body: postChartsFederationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsFederationResponse => {
|
|
416
395
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsFederationRequestSchema)
|
|
417
|
-
fetch(
|
|
396
|
+
let response = await fetch(
|
|
418
397
|
~url="/charts/federation",
|
|
419
398
|
~method_="POST",
|
|
420
399
|
~body=Some(jsonBody),
|
|
421
|
-
)
|
|
422
|
-
|
|
423
|
-
value
|
|
424
|
-
->Promise.resolve
|
|
425
|
-
})
|
|
400
|
+
)
|
|
401
|
+
response->S.parseOrThrow(postChartsFederationResponseSchema)
|
|
426
402
|
}
|
|
427
403
|
|
|
428
404
|
type getChartsInstanceRequest = {
|
|
@@ -532,17 +508,14 @@ No description provided.
|
|
|
532
508
|
|
|
533
509
|
**Credential required**: *No*
|
|
534
510
|
*/
|
|
535
|
-
let getChartsInstance = (~body: getChartsInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
511
|
+
let getChartsInstance = async (~body: getChartsInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsInstanceResponse => {
|
|
536
512
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsInstanceRequestSchema)
|
|
537
|
-
fetch(
|
|
513
|
+
let response = await fetch(
|
|
538
514
|
~url="/charts/instance",
|
|
539
515
|
~method_="GET",
|
|
540
516
|
~body=Some(jsonBody),
|
|
541
|
-
)
|
|
542
|
-
|
|
543
|
-
value
|
|
544
|
-
->Promise.resolve
|
|
545
|
-
})
|
|
517
|
+
)
|
|
518
|
+
response->S.parseOrThrow(getChartsInstanceResponseSchema)
|
|
546
519
|
}
|
|
547
520
|
|
|
548
521
|
type postChartsInstanceRequest = {
|
|
@@ -652,17 +625,14 @@ No description provided.
|
|
|
652
625
|
|
|
653
626
|
**Credential required**: *No*
|
|
654
627
|
*/
|
|
655
|
-
let postChartsInstance = (~body: postChartsInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
628
|
+
let postChartsInstance = async (~body: postChartsInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsInstanceResponse => {
|
|
656
629
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsInstanceRequestSchema)
|
|
657
|
-
fetch(
|
|
630
|
+
let response = await fetch(
|
|
658
631
|
~url="/charts/instance",
|
|
659
632
|
~method_="POST",
|
|
660
633
|
~body=Some(jsonBody),
|
|
661
|
-
)
|
|
662
|
-
|
|
663
|
-
value
|
|
664
|
-
->Promise.resolve
|
|
665
|
-
})
|
|
634
|
+
)
|
|
635
|
+
response->S.parseOrThrow(postChartsInstanceResponseSchema)
|
|
666
636
|
}
|
|
667
637
|
|
|
668
638
|
type getChartsNotesRequest = {
|
|
@@ -722,17 +692,14 @@ No description provided.
|
|
|
722
692
|
|
|
723
693
|
**Credential required**: *No*
|
|
724
694
|
*/
|
|
725
|
-
let getChartsNotes = (~body: getChartsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
695
|
+
let getChartsNotes = async (~body: getChartsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsNotesResponse => {
|
|
726
696
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsNotesRequestSchema)
|
|
727
|
-
fetch(
|
|
697
|
+
let response = await fetch(
|
|
728
698
|
~url="/charts/notes",
|
|
729
699
|
~method_="GET",
|
|
730
700
|
~body=Some(jsonBody),
|
|
731
|
-
)
|
|
732
|
-
|
|
733
|
-
value
|
|
734
|
-
->Promise.resolve
|
|
735
|
-
})
|
|
701
|
+
)
|
|
702
|
+
response->S.parseOrThrow(getChartsNotesResponseSchema)
|
|
736
703
|
}
|
|
737
704
|
|
|
738
705
|
type postChartsNotesRequest = {
|
|
@@ -792,17 +759,14 @@ No description provided.
|
|
|
792
759
|
|
|
793
760
|
**Credential required**: *No*
|
|
794
761
|
*/
|
|
795
|
-
let postChartsNotes = (~body: postChartsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
762
|
+
let postChartsNotes = async (~body: postChartsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsNotesResponse => {
|
|
796
763
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsNotesRequestSchema)
|
|
797
|
-
fetch(
|
|
764
|
+
let response = await fetch(
|
|
798
765
|
~url="/charts/notes",
|
|
799
766
|
~method_="POST",
|
|
800
767
|
~body=Some(jsonBody),
|
|
801
|
-
)
|
|
802
|
-
|
|
803
|
-
value
|
|
804
|
-
->Promise.resolve
|
|
805
|
-
})
|
|
768
|
+
)
|
|
769
|
+
response->S.parseOrThrow(postChartsNotesResponseSchema)
|
|
806
770
|
}
|
|
807
771
|
|
|
808
772
|
type getChartsUserDriveRequest = {
|
|
@@ -844,17 +808,14 @@ No description provided.
|
|
|
844
808
|
|
|
845
809
|
**Credential required**: *No*
|
|
846
810
|
*/
|
|
847
|
-
let getChartsUserDrive = (~body: getChartsUserDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
811
|
+
let getChartsUserDrive = async (~body: getChartsUserDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUserDriveResponse => {
|
|
848
812
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUserDriveRequestSchema)
|
|
849
|
-
fetch(
|
|
813
|
+
let response = await fetch(
|
|
850
814
|
~url="/charts/user/drive",
|
|
851
815
|
~method_="GET",
|
|
852
816
|
~body=Some(jsonBody),
|
|
853
|
-
)
|
|
854
|
-
|
|
855
|
-
value
|
|
856
|
-
->Promise.resolve
|
|
857
|
-
})
|
|
817
|
+
)
|
|
818
|
+
response->S.parseOrThrow(getChartsUserDriveResponseSchema)
|
|
858
819
|
}
|
|
859
820
|
|
|
860
821
|
type postChartsUserDriveRequest = {
|
|
@@ -896,17 +857,14 @@ No description provided.
|
|
|
896
857
|
|
|
897
858
|
**Credential required**: *No*
|
|
898
859
|
*/
|
|
899
|
-
let postChartsUserDrive = (~body: postChartsUserDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
860
|
+
let postChartsUserDrive = async (~body: postChartsUserDriveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUserDriveResponse => {
|
|
900
861
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUserDriveRequestSchema)
|
|
901
|
-
fetch(
|
|
862
|
+
let response = await fetch(
|
|
902
863
|
~url="/charts/user/drive",
|
|
903
864
|
~method_="POST",
|
|
904
865
|
~body=Some(jsonBody),
|
|
905
|
-
)
|
|
906
|
-
|
|
907
|
-
value
|
|
908
|
-
->Promise.resolve
|
|
909
|
-
})
|
|
866
|
+
)
|
|
867
|
+
response->S.parseOrThrow(postChartsUserDriveResponseSchema)
|
|
910
868
|
}
|
|
911
869
|
|
|
912
870
|
type getChartsUserFollowingRequest = {
|
|
@@ -962,17 +920,14 @@ No description provided.
|
|
|
962
920
|
|
|
963
921
|
**Credential required**: *No*
|
|
964
922
|
*/
|
|
965
|
-
let getChartsUserFollowing = (~body: getChartsUserFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
923
|
+
let getChartsUserFollowing = async (~body: getChartsUserFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUserFollowingResponse => {
|
|
966
924
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUserFollowingRequestSchema)
|
|
967
|
-
fetch(
|
|
925
|
+
let response = await fetch(
|
|
968
926
|
~url="/charts/user/following",
|
|
969
927
|
~method_="GET",
|
|
970
928
|
~body=Some(jsonBody),
|
|
971
|
-
)
|
|
972
|
-
|
|
973
|
-
value
|
|
974
|
-
->Promise.resolve
|
|
975
|
-
})
|
|
929
|
+
)
|
|
930
|
+
response->S.parseOrThrow(getChartsUserFollowingResponseSchema)
|
|
976
931
|
}
|
|
977
932
|
|
|
978
933
|
type postChartsUserFollowingRequest = {
|
|
@@ -1028,17 +983,14 @@ No description provided.
|
|
|
1028
983
|
|
|
1029
984
|
**Credential required**: *No*
|
|
1030
985
|
*/
|
|
1031
|
-
let postChartsUserFollowing = (~body: postChartsUserFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
986
|
+
let postChartsUserFollowing = async (~body: postChartsUserFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUserFollowingResponse => {
|
|
1032
987
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUserFollowingRequestSchema)
|
|
1033
|
-
fetch(
|
|
988
|
+
let response = await fetch(
|
|
1034
989
|
~url="/charts/user/following",
|
|
1035
990
|
~method_="POST",
|
|
1036
991
|
~body=Some(jsonBody),
|
|
1037
|
-
)
|
|
1038
|
-
|
|
1039
|
-
value
|
|
1040
|
-
->Promise.resolve
|
|
1041
|
-
})
|
|
992
|
+
)
|
|
993
|
+
response->S.parseOrThrow(postChartsUserFollowingResponseSchema)
|
|
1042
994
|
}
|
|
1043
995
|
|
|
1044
996
|
type getChartsUserNotesRequest = {
|
|
@@ -1090,17 +1042,14 @@ No description provided.
|
|
|
1090
1042
|
|
|
1091
1043
|
**Credential required**: *No*
|
|
1092
1044
|
*/
|
|
1093
|
-
let getChartsUserNotes = (~body: getChartsUserNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1045
|
+
let getChartsUserNotes = async (~body: getChartsUserNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUserNotesResponse => {
|
|
1094
1046
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUserNotesRequestSchema)
|
|
1095
|
-
fetch(
|
|
1047
|
+
let response = await fetch(
|
|
1096
1048
|
~url="/charts/user/notes",
|
|
1097
1049
|
~method_="GET",
|
|
1098
1050
|
~body=Some(jsonBody),
|
|
1099
|
-
)
|
|
1100
|
-
|
|
1101
|
-
value
|
|
1102
|
-
->Promise.resolve
|
|
1103
|
-
})
|
|
1051
|
+
)
|
|
1052
|
+
response->S.parseOrThrow(getChartsUserNotesResponseSchema)
|
|
1104
1053
|
}
|
|
1105
1054
|
|
|
1106
1055
|
type postChartsUserNotesRequest = {
|
|
@@ -1152,17 +1101,14 @@ No description provided.
|
|
|
1152
1101
|
|
|
1153
1102
|
**Credential required**: *No*
|
|
1154
1103
|
*/
|
|
1155
|
-
let postChartsUserNotes = (~body: postChartsUserNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1104
|
+
let postChartsUserNotes = async (~body: postChartsUserNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUserNotesResponse => {
|
|
1156
1105
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUserNotesRequestSchema)
|
|
1157
|
-
fetch(
|
|
1106
|
+
let response = await fetch(
|
|
1158
1107
|
~url="/charts/user/notes",
|
|
1159
1108
|
~method_="POST",
|
|
1160
1109
|
~body=Some(jsonBody),
|
|
1161
|
-
)
|
|
1162
|
-
|
|
1163
|
-
value
|
|
1164
|
-
->Promise.resolve
|
|
1165
|
-
})
|
|
1110
|
+
)
|
|
1111
|
+
response->S.parseOrThrow(postChartsUserNotesResponseSchema)
|
|
1166
1112
|
}
|
|
1167
1113
|
|
|
1168
1114
|
type getChartsUserPvRequest = {
|
|
@@ -1206,17 +1152,14 @@ No description provided.
|
|
|
1206
1152
|
|
|
1207
1153
|
**Credential required**: *No*
|
|
1208
1154
|
*/
|
|
1209
|
-
let getChartsUserPv = (~body: getChartsUserPvRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1155
|
+
let getChartsUserPv = async (~body: getChartsUserPvRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUserPvResponse => {
|
|
1210
1156
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUserPvRequestSchema)
|
|
1211
|
-
fetch(
|
|
1157
|
+
let response = await fetch(
|
|
1212
1158
|
~url="/charts/user/pv",
|
|
1213
1159
|
~method_="GET",
|
|
1214
1160
|
~body=Some(jsonBody),
|
|
1215
|
-
)
|
|
1216
|
-
|
|
1217
|
-
value
|
|
1218
|
-
->Promise.resolve
|
|
1219
|
-
})
|
|
1161
|
+
)
|
|
1162
|
+
response->S.parseOrThrow(getChartsUserPvResponseSchema)
|
|
1220
1163
|
}
|
|
1221
1164
|
|
|
1222
1165
|
type postChartsUserPvRequest = {
|
|
@@ -1260,17 +1203,14 @@ No description provided.
|
|
|
1260
1203
|
|
|
1261
1204
|
**Credential required**: *No*
|
|
1262
1205
|
*/
|
|
1263
|
-
let postChartsUserPv = (~body: postChartsUserPvRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1206
|
+
let postChartsUserPv = async (~body: postChartsUserPvRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUserPvResponse => {
|
|
1264
1207
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUserPvRequestSchema)
|
|
1265
|
-
fetch(
|
|
1208
|
+
let response = await fetch(
|
|
1266
1209
|
~url="/charts/user/pv",
|
|
1267
1210
|
~method_="POST",
|
|
1268
1211
|
~body=Some(jsonBody),
|
|
1269
|
-
)
|
|
1270
|
-
|
|
1271
|
-
value
|
|
1272
|
-
->Promise.resolve
|
|
1273
|
-
})
|
|
1212
|
+
)
|
|
1213
|
+
response->S.parseOrThrow(postChartsUserPvResponseSchema)
|
|
1274
1214
|
}
|
|
1275
1215
|
|
|
1276
1216
|
type getChartsUserReactionsRequest = {
|
|
@@ -1312,17 +1252,14 @@ No description provided.
|
|
|
1312
1252
|
|
|
1313
1253
|
**Credential required**: *No*
|
|
1314
1254
|
*/
|
|
1315
|
-
let getChartsUserReactions = (~body: getChartsUserReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1255
|
+
let getChartsUserReactions = async (~body: getChartsUserReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUserReactionsResponse => {
|
|
1316
1256
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUserReactionsRequestSchema)
|
|
1317
|
-
fetch(
|
|
1257
|
+
let response = await fetch(
|
|
1318
1258
|
~url="/charts/user/reactions",
|
|
1319
1259
|
~method_="GET",
|
|
1320
1260
|
~body=Some(jsonBody),
|
|
1321
|
-
)
|
|
1322
|
-
|
|
1323
|
-
value
|
|
1324
|
-
->Promise.resolve
|
|
1325
|
-
})
|
|
1261
|
+
)
|
|
1262
|
+
response->S.parseOrThrow(getChartsUserReactionsResponseSchema)
|
|
1326
1263
|
}
|
|
1327
1264
|
|
|
1328
1265
|
type postChartsUserReactionsRequest = {
|
|
@@ -1364,17 +1301,14 @@ No description provided.
|
|
|
1364
1301
|
|
|
1365
1302
|
**Credential required**: *No*
|
|
1366
1303
|
*/
|
|
1367
|
-
let postChartsUserReactions = (~body: postChartsUserReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1304
|
+
let postChartsUserReactions = async (~body: postChartsUserReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUserReactionsResponse => {
|
|
1368
1305
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUserReactionsRequestSchema)
|
|
1369
|
-
fetch(
|
|
1306
|
+
let response = await fetch(
|
|
1370
1307
|
~url="/charts/user/reactions",
|
|
1371
1308
|
~method_="POST",
|
|
1372
1309
|
~body=Some(jsonBody),
|
|
1373
|
-
)
|
|
1374
|
-
|
|
1375
|
-
value
|
|
1376
|
-
->Promise.resolve
|
|
1377
|
-
})
|
|
1310
|
+
)
|
|
1311
|
+
response->S.parseOrThrow(postChartsUserReactionsResponseSchema)
|
|
1378
1312
|
}
|
|
1379
1313
|
|
|
1380
1314
|
type getChartsUsersRequest = {
|
|
@@ -1418,17 +1352,14 @@ No description provided.
|
|
|
1418
1352
|
|
|
1419
1353
|
**Credential required**: *No*
|
|
1420
1354
|
*/
|
|
1421
|
-
let getChartsUsers = (~body: getChartsUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1355
|
+
let getChartsUsers = async (~body: getChartsUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getChartsUsersResponse => {
|
|
1422
1356
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getChartsUsersRequestSchema)
|
|
1423
|
-
fetch(
|
|
1357
|
+
let response = await fetch(
|
|
1424
1358
|
~url="/charts/users",
|
|
1425
1359
|
~method_="GET",
|
|
1426
1360
|
~body=Some(jsonBody),
|
|
1427
|
-
)
|
|
1428
|
-
|
|
1429
|
-
value
|
|
1430
|
-
->Promise.resolve
|
|
1431
|
-
})
|
|
1361
|
+
)
|
|
1362
|
+
response->S.parseOrThrow(getChartsUsersResponseSchema)
|
|
1432
1363
|
}
|
|
1433
1364
|
|
|
1434
1365
|
type postChartsUsersRequest = {
|
|
@@ -1472,15 +1403,12 @@ No description provided.
|
|
|
1472
1403
|
|
|
1473
1404
|
**Credential required**: *No*
|
|
1474
1405
|
*/
|
|
1475
|
-
let postChartsUsers = (~body: postChartsUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1406
|
+
let postChartsUsers = async (~body: postChartsUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChartsUsersResponse => {
|
|
1476
1407
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChartsUsersRequestSchema)
|
|
1477
|
-
fetch(
|
|
1408
|
+
let response = await fetch(
|
|
1478
1409
|
~url="/charts/users",
|
|
1479
1410
|
~method_="POST",
|
|
1480
1411
|
~body=Some(jsonBody),
|
|
1481
|
-
)
|
|
1482
|
-
|
|
1483
|
-
value
|
|
1484
|
-
->Promise.resolve
|
|
1485
|
-
})
|
|
1412
|
+
)
|
|
1413
|
+
response->S.parseOrThrow(postChartsUsersResponseSchema)
|
|
1486
1414
|
}
|
|
@@ -22,17 +22,14 @@ No description provided.
|
|
|
22
22
|
|
|
23
23
|
**Credential required**: *Yes* / **Permission**: *write:clip-favorite*
|
|
24
24
|
*/
|
|
25
|
-
let postClipsFavorite = (~body: postClipsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
25
|
+
let postClipsFavorite = async (~body: postClipsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsFavoriteResponse => {
|
|
26
26
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsFavoriteRequestSchema)
|
|
27
|
-
fetch(
|
|
27
|
+
let response = await fetch(
|
|
28
28
|
~url="/clips/favorite",
|
|
29
29
|
~method_="POST",
|
|
30
30
|
~body=Some(jsonBody),
|
|
31
|
-
)
|
|
31
|
+
)
|
|
32
32
|
let _ = response
|
|
33
|
-
()
|
|
34
|
-
->Promise.resolve
|
|
35
|
-
})
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
type postClipsUnfavoriteRequest = {
|
|
@@ -52,15 +49,12 @@ No description provided.
|
|
|
52
49
|
|
|
53
50
|
**Credential required**: *Yes* / **Permission**: *write:clip-favorite*
|
|
54
51
|
*/
|
|
55
|
-
let postClipsUnfavorite = (~body: postClipsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
52
|
+
let postClipsUnfavorite = async (~body: postClipsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsUnfavoriteResponse => {
|
|
56
53
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsUnfavoriteRequestSchema)
|
|
57
|
-
fetch(
|
|
54
|
+
let response = await fetch(
|
|
58
55
|
~url="/clips/unfavorite",
|
|
59
56
|
~method_="POST",
|
|
60
57
|
~body=Some(jsonBody),
|
|
61
|
-
)
|
|
58
|
+
)
|
|
62
59
|
let _ = response
|
|
63
|
-
()
|
|
64
|
-
->Promise.resolve
|
|
65
|
-
})
|
|
66
60
|
}
|