@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
|
@@ -36,17 +36,14 @@ No description provided.
|
|
|
36
36
|
|
|
37
37
|
**Credential required**: *No*
|
|
38
38
|
*/
|
|
39
|
-
let postChannelsTimeline = (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
39
|
+
let postChannelsTimeline = async (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChannelsTimelineResponse => {
|
|
40
40
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChannelsTimelineRequestSchema)
|
|
41
|
-
fetch(
|
|
41
|
+
let response = await fetch(
|
|
42
42
|
~url="/channels/timeline",
|
|
43
43
|
~method_="POST",
|
|
44
44
|
~body=Some(jsonBody),
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
value
|
|
48
|
-
->Promise.resolve
|
|
49
|
-
})
|
|
45
|
+
)
|
|
46
|
+
response->S.parseOrThrow(postChannelsTimelineResponseSchema)
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
type postNotesRequest = {
|
|
@@ -88,17 +85,14 @@ No description provided.
|
|
|
88
85
|
|
|
89
86
|
**Credential required**: *No*
|
|
90
87
|
*/
|
|
91
|
-
let postNotes = (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
88
|
+
let postNotes = async (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesResponse => {
|
|
92
89
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRequestSchema)
|
|
93
|
-
fetch(
|
|
90
|
+
let response = await fetch(
|
|
94
91
|
~url="/notes",
|
|
95
92
|
~method_="POST",
|
|
96
93
|
~body=Some(jsonBody),
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
value
|
|
100
|
-
->Promise.resolve
|
|
101
|
-
})
|
|
94
|
+
)
|
|
95
|
+
response->S.parseOrThrow(postNotesResponseSchema)
|
|
102
96
|
}
|
|
103
97
|
|
|
104
98
|
type postNotesBubbleTimelineRequest = {
|
|
@@ -136,17 +130,14 @@ No description provided.
|
|
|
136
130
|
|
|
137
131
|
**Credential required**: *No*
|
|
138
132
|
*/
|
|
139
|
-
let postNotesBubbleTimeline = (~body: postNotesBubbleTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
133
|
+
let postNotesBubbleTimeline = async (~body: postNotesBubbleTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesBubbleTimelineResponse => {
|
|
140
134
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesBubbleTimelineRequestSchema)
|
|
141
|
-
fetch(
|
|
135
|
+
let response = await fetch(
|
|
142
136
|
~url="/notes/bubble-timeline",
|
|
143
137
|
~method_="POST",
|
|
144
138
|
~body=Some(jsonBody),
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
value
|
|
148
|
-
->Promise.resolve
|
|
149
|
-
})
|
|
139
|
+
)
|
|
140
|
+
response->S.parseOrThrow(postNotesBubbleTimelineResponseSchema)
|
|
150
141
|
}
|
|
151
142
|
|
|
152
143
|
type postNotesChildrenRequest = {
|
|
@@ -178,17 +169,14 @@ No description provided.
|
|
|
178
169
|
|
|
179
170
|
**Credential required**: *No*
|
|
180
171
|
*/
|
|
181
|
-
let postNotesChildren = (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
172
|
+
let postNotesChildren = async (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesChildrenResponse => {
|
|
182
173
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesChildrenRequestSchema)
|
|
183
|
-
fetch(
|
|
174
|
+
let response = await fetch(
|
|
184
175
|
~url="/notes/children",
|
|
185
176
|
~method_="POST",
|
|
186
177
|
~body=Some(jsonBody),
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
value
|
|
190
|
-
->Promise.resolve
|
|
191
|
-
})
|
|
178
|
+
)
|
|
179
|
+
response->S.parseOrThrow(postNotesChildrenResponseSchema)
|
|
192
180
|
}
|
|
193
181
|
|
|
194
182
|
type postNotesCreateRequest_4 = {
|
|
@@ -298,17 +286,14 @@ No description provided.
|
|
|
298
286
|
|
|
299
287
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
300
288
|
*/
|
|
301
|
-
let postNotesCreate = (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
289
|
+
let postNotesCreate = async (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesCreateResponse => {
|
|
302
290
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesCreateRequestSchema)
|
|
303
|
-
fetch(
|
|
291
|
+
let response = await fetch(
|
|
304
292
|
~url="/notes/create",
|
|
305
293
|
~method_="POST",
|
|
306
294
|
~body=Some(jsonBody),
|
|
307
|
-
)
|
|
308
|
-
|
|
309
|
-
value
|
|
310
|
-
->Promise.resolve
|
|
311
|
-
})
|
|
295
|
+
)
|
|
296
|
+
response->S.parseOrThrow(postNotesCreateResponseSchema)
|
|
312
297
|
}
|
|
313
298
|
|
|
314
299
|
/** The number of drafts */
|
|
@@ -324,17 +309,14 @@ No description provided.
|
|
|
324
309
|
|
|
325
310
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
326
311
|
*/
|
|
327
|
-
let postNotesDraftsCount = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
312
|
+
let postNotesDraftsCount = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDraftsCountResponse => {
|
|
328
313
|
|
|
329
|
-
fetch(
|
|
314
|
+
let response = await fetch(
|
|
330
315
|
~url="/notes/drafts/count",
|
|
331
316
|
~method_="POST",
|
|
332
317
|
~body=None,
|
|
333
|
-
)
|
|
334
|
-
|
|
335
|
-
value
|
|
336
|
-
->Promise.resolve
|
|
337
|
-
})
|
|
318
|
+
)
|
|
319
|
+
response->S.parseOrThrow(postNotesDraftsCountResponseSchema)
|
|
338
320
|
}
|
|
339
321
|
|
|
340
322
|
type postNotesDraftsCreateRequest_4 = {
|
|
@@ -442,17 +424,14 @@ No description provided.
|
|
|
442
424
|
|
|
443
425
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
444
426
|
*/
|
|
445
|
-
let postNotesDraftsCreate = (~body: postNotesDraftsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
427
|
+
let postNotesDraftsCreate = async (~body: postNotesDraftsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDraftsCreateResponse => {
|
|
446
428
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDraftsCreateRequestSchema)
|
|
447
|
-
fetch(
|
|
429
|
+
let response = await fetch(
|
|
448
430
|
~url="/notes/drafts/create",
|
|
449
431
|
~method_="POST",
|
|
450
432
|
~body=Some(jsonBody),
|
|
451
|
-
)
|
|
452
|
-
|
|
453
|
-
value
|
|
454
|
-
->Promise.resolve
|
|
455
|
-
})
|
|
433
|
+
)
|
|
434
|
+
response->S.parseOrThrow(postNotesDraftsCreateResponseSchema)
|
|
456
435
|
}
|
|
457
436
|
|
|
458
437
|
type postNotesDraftsDeleteRequest = {
|
|
@@ -472,17 +451,14 @@ No description provided.
|
|
|
472
451
|
|
|
473
452
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
474
453
|
*/
|
|
475
|
-
let postNotesDraftsDelete = (~body: postNotesDraftsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
454
|
+
let postNotesDraftsDelete = async (~body: postNotesDraftsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDraftsDeleteResponse => {
|
|
476
455
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDraftsDeleteRequestSchema)
|
|
477
|
-
fetch(
|
|
456
|
+
let response = await fetch(
|
|
478
457
|
~url="/notes/drafts/delete",
|
|
479
458
|
~method_="POST",
|
|
480
459
|
~body=Some(jsonBody),
|
|
481
|
-
)
|
|
460
|
+
)
|
|
482
461
|
let _ = response
|
|
483
|
-
()
|
|
484
|
-
->Promise.resolve
|
|
485
|
-
})
|
|
486
462
|
}
|
|
487
463
|
|
|
488
464
|
type postNotesDraftsListRequest = {
|
|
@@ -514,17 +490,14 @@ No description provided.
|
|
|
514
490
|
|
|
515
491
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
516
492
|
*/
|
|
517
|
-
let postNotesDraftsList = (~body: postNotesDraftsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
493
|
+
let postNotesDraftsList = async (~body: postNotesDraftsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDraftsListResponse => {
|
|
518
494
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDraftsListRequestSchema)
|
|
519
|
-
fetch(
|
|
495
|
+
let response = await fetch(
|
|
520
496
|
~url="/notes/drafts/list",
|
|
521
497
|
~method_="POST",
|
|
522
498
|
~body=Some(jsonBody),
|
|
523
|
-
)
|
|
524
|
-
|
|
525
|
-
value
|
|
526
|
-
->Promise.resolve
|
|
527
|
-
})
|
|
499
|
+
)
|
|
500
|
+
response->S.parseOrThrow(postNotesDraftsListResponseSchema)
|
|
528
501
|
}
|
|
529
502
|
|
|
530
503
|
type postNotesDraftsUpdateRequest_4 = {
|
|
@@ -634,17 +607,14 @@ No description provided.
|
|
|
634
607
|
|
|
635
608
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
636
609
|
*/
|
|
637
|
-
let postNotesDraftsUpdate = (~body: postNotesDraftsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
610
|
+
let postNotesDraftsUpdate = async (~body: postNotesDraftsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDraftsUpdateResponse => {
|
|
638
611
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDraftsUpdateRequestSchema)
|
|
639
|
-
fetch(
|
|
612
|
+
let response = await fetch(
|
|
640
613
|
~url="/notes/drafts/update",
|
|
641
614
|
~method_="POST",
|
|
642
615
|
~body=Some(jsonBody),
|
|
643
|
-
)
|
|
644
|
-
|
|
645
|
-
value
|
|
646
|
-
->Promise.resolve
|
|
647
|
-
})
|
|
616
|
+
)
|
|
617
|
+
response->S.parseOrThrow(postNotesDraftsUpdateResponseSchema)
|
|
648
618
|
}
|
|
649
619
|
|
|
650
620
|
type postNotesEventsSearchRequest = {
|
|
@@ -686,17 +656,14 @@ No description provided.
|
|
|
686
656
|
|
|
687
657
|
**Credential required**: *No*
|
|
688
658
|
*/
|
|
689
|
-
let postNotesEventsSearch = (~body: postNotesEventsSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
659
|
+
let postNotesEventsSearch = async (~body: postNotesEventsSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesEventsSearchResponse => {
|
|
690
660
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesEventsSearchRequestSchema)
|
|
691
|
-
fetch(
|
|
661
|
+
let response = await fetch(
|
|
692
662
|
~url="/notes/events/search",
|
|
693
663
|
~method_="POST",
|
|
694
664
|
~body=Some(jsonBody),
|
|
695
|
-
)
|
|
696
|
-
|
|
697
|
-
value
|
|
698
|
-
->Promise.resolve
|
|
699
|
-
})
|
|
665
|
+
)
|
|
666
|
+
response->S.parseOrThrow(postNotesEventsSearchResponseSchema)
|
|
700
667
|
}
|
|
701
668
|
|
|
702
669
|
type postNotesGlobalTimelineRequest = {
|
|
@@ -732,17 +699,14 @@ No description provided.
|
|
|
732
699
|
|
|
733
700
|
**Credential required**: *No*
|
|
734
701
|
*/
|
|
735
|
-
let postNotesGlobalTimeline = (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
702
|
+
let postNotesGlobalTimeline = async (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesGlobalTimelineResponse => {
|
|
736
703
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesGlobalTimelineRequestSchema)
|
|
737
|
-
fetch(
|
|
704
|
+
let response = await fetch(
|
|
738
705
|
~url="/notes/global-timeline",
|
|
739
706
|
~method_="POST",
|
|
740
707
|
~body=Some(jsonBody),
|
|
741
|
-
)
|
|
742
|
-
|
|
743
|
-
value
|
|
744
|
-
->Promise.resolve
|
|
745
|
-
})
|
|
708
|
+
)
|
|
709
|
+
response->S.parseOrThrow(postNotesGlobalTimelineResponseSchema)
|
|
746
710
|
}
|
|
747
711
|
|
|
748
712
|
type postNotesHistoryRequest = {
|
|
@@ -770,17 +734,14 @@ No description provided.
|
|
|
770
734
|
|
|
771
735
|
**Credential required**: *No*
|
|
772
736
|
*/
|
|
773
|
-
let postNotesHistory = (~body: postNotesHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
737
|
+
let postNotesHistory = async (~body: postNotesHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesHistoryResponse => {
|
|
774
738
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesHistoryRequestSchema)
|
|
775
|
-
fetch(
|
|
739
|
+
let response = await fetch(
|
|
776
740
|
~url="/notes/history",
|
|
777
741
|
~method_="POST",
|
|
778
742
|
~body=Some(jsonBody),
|
|
779
|
-
)
|
|
780
|
-
|
|
781
|
-
value
|
|
782
|
-
->Promise.resolve
|
|
783
|
-
})
|
|
743
|
+
)
|
|
744
|
+
response->S.parseOrThrow(postNotesHistoryResponseSchema)
|
|
784
745
|
}
|
|
785
746
|
|
|
786
747
|
type postNotesHybridTimelineRequest = {
|
|
@@ -826,17 +787,14 @@ No description provided.
|
|
|
826
787
|
|
|
827
788
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
828
789
|
*/
|
|
829
|
-
let postNotesHybridTimeline = (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
790
|
+
let postNotesHybridTimeline = async (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesHybridTimelineResponse => {
|
|
830
791
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesHybridTimelineRequestSchema)
|
|
831
|
-
fetch(
|
|
792
|
+
let response = await fetch(
|
|
832
793
|
~url="/notes/hybrid-timeline",
|
|
833
794
|
~method_="POST",
|
|
834
795
|
~body=Some(jsonBody),
|
|
835
|
-
)
|
|
836
|
-
|
|
837
|
-
value
|
|
838
|
-
->Promise.resolve
|
|
839
|
-
})
|
|
796
|
+
)
|
|
797
|
+
response->S.parseOrThrow(postNotesHybridTimelineResponseSchema)
|
|
840
798
|
}
|
|
841
799
|
|
|
842
800
|
type postNotesLocalTimelineRequest = {
|
|
@@ -876,17 +834,14 @@ No description provided.
|
|
|
876
834
|
|
|
877
835
|
**Credential required**: *No*
|
|
878
836
|
*/
|
|
879
|
-
let postNotesLocalTimeline = (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
837
|
+
let postNotesLocalTimeline = async (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesLocalTimelineResponse => {
|
|
880
838
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesLocalTimelineRequestSchema)
|
|
881
|
-
fetch(
|
|
839
|
+
let response = await fetch(
|
|
882
840
|
~url="/notes/local-timeline",
|
|
883
841
|
~method_="POST",
|
|
884
842
|
~body=Some(jsonBody),
|
|
885
|
-
)
|
|
886
|
-
|
|
887
|
-
value
|
|
888
|
-
->Promise.resolve
|
|
889
|
-
})
|
|
843
|
+
)
|
|
844
|
+
response->S.parseOrThrow(postNotesLocalTimelineResponseSchema)
|
|
890
845
|
}
|
|
891
846
|
|
|
892
847
|
type postNotesMentionsRequest = {
|
|
@@ -920,17 +875,14 @@ No description provided.
|
|
|
920
875
|
|
|
921
876
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
922
877
|
*/
|
|
923
|
-
let postNotesMentions = (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
878
|
+
let postNotesMentions = async (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesMentionsResponse => {
|
|
924
879
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesMentionsRequestSchema)
|
|
925
|
-
fetch(
|
|
880
|
+
let response = await fetch(
|
|
926
881
|
~url="/notes/mentions",
|
|
927
882
|
~method_="POST",
|
|
928
883
|
~body=Some(jsonBody),
|
|
929
|
-
)
|
|
930
|
-
|
|
931
|
-
value
|
|
932
|
-
->Promise.resolve
|
|
933
|
-
})
|
|
884
|
+
)
|
|
885
|
+
response->S.parseOrThrow(postNotesMentionsResponseSchema)
|
|
934
886
|
}
|
|
935
887
|
|
|
936
888
|
type postNotesPollsTranslateRequest = {
|
|
@@ -960,17 +912,14 @@ No description provided.
|
|
|
960
912
|
|
|
961
913
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
962
914
|
*/
|
|
963
|
-
let postNotesPollsTranslate = (~body: postNotesPollsTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
915
|
+
let postNotesPollsTranslate = async (~body: postNotesPollsTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesPollsTranslateResponse => {
|
|
964
916
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesPollsTranslateRequestSchema)
|
|
965
|
-
fetch(
|
|
917
|
+
let response = await fetch(
|
|
966
918
|
~url="/notes/polls/translate",
|
|
967
919
|
~method_="POST",
|
|
968
920
|
~body=Some(jsonBody),
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
value
|
|
972
|
-
->Promise.resolve
|
|
973
|
-
})
|
|
921
|
+
)
|
|
922
|
+
response->S.parseOrThrow(postNotesPollsTranslateResponseSchema)
|
|
974
923
|
}
|
|
975
924
|
|
|
976
925
|
type getNotesReactionsRequest = {
|
|
@@ -1004,17 +953,14 @@ No description provided.
|
|
|
1004
953
|
|
|
1005
954
|
**Credential required**: *No*
|
|
1006
955
|
*/
|
|
1007
|
-
let getNotesReactions = (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
956
|
+
let getNotesReactions = async (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getNotesReactionsResponse => {
|
|
1008
957
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getNotesReactionsRequestSchema)
|
|
1009
|
-
fetch(
|
|
958
|
+
let response = await fetch(
|
|
1010
959
|
~url="/notes/reactions",
|
|
1011
960
|
~method_="GET",
|
|
1012
961
|
~body=Some(jsonBody),
|
|
1013
|
-
)
|
|
1014
|
-
|
|
1015
|
-
value
|
|
1016
|
-
->Promise.resolve
|
|
1017
|
-
})
|
|
962
|
+
)
|
|
963
|
+
response->S.parseOrThrow(getNotesReactionsResponseSchema)
|
|
1018
964
|
}
|
|
1019
965
|
|
|
1020
966
|
type postNotesReactionsRequest = {
|
|
@@ -1048,17 +994,14 @@ No description provided.
|
|
|
1048
994
|
|
|
1049
995
|
**Credential required**: *No*
|
|
1050
996
|
*/
|
|
1051
|
-
let postNotesReactions = (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
997
|
+
let postNotesReactions = async (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesReactionsResponse => {
|
|
1052
998
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesReactionsRequestSchema)
|
|
1053
|
-
fetch(
|
|
999
|
+
let response = await fetch(
|
|
1054
1000
|
~url="/notes/reactions",
|
|
1055
1001
|
~method_="POST",
|
|
1056
1002
|
~body=Some(jsonBody),
|
|
1057
|
-
)
|
|
1058
|
-
|
|
1059
|
-
value
|
|
1060
|
-
->Promise.resolve
|
|
1061
|
-
})
|
|
1003
|
+
)
|
|
1004
|
+
response->S.parseOrThrow(postNotesReactionsResponseSchema)
|
|
1062
1005
|
}
|
|
1063
1006
|
|
|
1064
1007
|
type postNotesRenotesRequest = {
|
|
@@ -1090,17 +1033,14 @@ No description provided.
|
|
|
1090
1033
|
|
|
1091
1034
|
**Credential required**: *No*
|
|
1092
1035
|
*/
|
|
1093
|
-
let postNotesRenotes = (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1036
|
+
let postNotesRenotes = async (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRenotesResponse => {
|
|
1094
1037
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRenotesRequestSchema)
|
|
1095
|
-
fetch(
|
|
1038
|
+
let response = await fetch(
|
|
1096
1039
|
~url="/notes/renotes",
|
|
1097
1040
|
~method_="POST",
|
|
1098
1041
|
~body=Some(jsonBody),
|
|
1099
|
-
)
|
|
1100
|
-
|
|
1101
|
-
value
|
|
1102
|
-
->Promise.resolve
|
|
1103
|
-
})
|
|
1042
|
+
)
|
|
1043
|
+
response->S.parseOrThrow(postNotesRenotesResponseSchema)
|
|
1104
1044
|
}
|
|
1105
1045
|
|
|
1106
1046
|
type postNotesRepliesRequest = {
|
|
@@ -1132,17 +1072,14 @@ No description provided.
|
|
|
1132
1072
|
|
|
1133
1073
|
**Credential required**: *No*
|
|
1134
1074
|
*/
|
|
1135
|
-
let postNotesReplies = (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1075
|
+
let postNotesReplies = async (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRepliesResponse => {
|
|
1136
1076
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRepliesRequestSchema)
|
|
1137
|
-
fetch(
|
|
1077
|
+
let response = await fetch(
|
|
1138
1078
|
~url="/notes/replies",
|
|
1139
1079
|
~method_="POST",
|
|
1140
1080
|
~body=Some(jsonBody),
|
|
1141
|
-
)
|
|
1142
|
-
|
|
1143
|
-
value
|
|
1144
|
-
->Promise.resolve
|
|
1145
|
-
})
|
|
1081
|
+
)
|
|
1082
|
+
response->S.parseOrThrow(postNotesRepliesResponseSchema)
|
|
1146
1083
|
}
|
|
1147
1084
|
|
|
1148
1085
|
type postNotesSearchRequest = {
|
|
@@ -1182,17 +1119,14 @@ No description provided.
|
|
|
1182
1119
|
|
|
1183
1120
|
**Credential required**: *No*
|
|
1184
1121
|
*/
|
|
1185
|
-
let postNotesSearch = (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1122
|
+
let postNotesSearch = async (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchResponse => {
|
|
1186
1123
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchRequestSchema)
|
|
1187
|
-
fetch(
|
|
1124
|
+
let response = await fetch(
|
|
1188
1125
|
~url="/notes/search",
|
|
1189
1126
|
~method_="POST",
|
|
1190
1127
|
~body=Some(jsonBody),
|
|
1191
|
-
)
|
|
1192
|
-
|
|
1193
|
-
value
|
|
1194
|
-
->Promise.resolve
|
|
1195
|
-
})
|
|
1128
|
+
)
|
|
1129
|
+
response->S.parseOrThrow(postNotesSearchResponseSchema)
|
|
1196
1130
|
}
|
|
1197
1131
|
|
|
1198
1132
|
type postNotesSearchByTagRequest = {
|
|
@@ -1230,17 +1164,14 @@ No description provided.
|
|
|
1230
1164
|
|
|
1231
1165
|
**Credential required**: *No*
|
|
1232
1166
|
*/
|
|
1233
|
-
let postNotesSearchByTag = (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1167
|
+
let postNotesSearchByTag = async (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchByTagResponse => {
|
|
1234
1168
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchByTagRequestSchema)
|
|
1235
|
-
fetch(
|
|
1169
|
+
let response = await fetch(
|
|
1236
1170
|
~url="/notes/search-by-tag",
|
|
1237
1171
|
~method_="POST",
|
|
1238
1172
|
~body=Some(jsonBody),
|
|
1239
|
-
)
|
|
1240
|
-
|
|
1241
|
-
value
|
|
1242
|
-
->Promise.resolve
|
|
1243
|
-
})
|
|
1173
|
+
)
|
|
1174
|
+
response->S.parseOrThrow(postNotesSearchByTagResponseSchema)
|
|
1244
1175
|
}
|
|
1245
1176
|
|
|
1246
1177
|
type postNotesShowRequest = {
|
|
@@ -1262,17 +1193,14 @@ No description provided.
|
|
|
1262
1193
|
|
|
1263
1194
|
**Credential required**: *No*
|
|
1264
1195
|
*/
|
|
1265
|
-
let postNotesShow = (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1196
|
+
let postNotesShow = async (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesShowResponse => {
|
|
1266
1197
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesShowRequestSchema)
|
|
1267
|
-
fetch(
|
|
1198
|
+
let response = await fetch(
|
|
1268
1199
|
~url="/notes/show",
|
|
1269
1200
|
~method_="POST",
|
|
1270
1201
|
~body=Some(jsonBody),
|
|
1271
|
-
)
|
|
1272
|
-
|
|
1273
|
-
value
|
|
1274
|
-
->Promise.resolve
|
|
1275
|
-
})
|
|
1202
|
+
)
|
|
1203
|
+
response->S.parseOrThrow(postNotesShowResponseSchema)
|
|
1276
1204
|
}
|
|
1277
1205
|
|
|
1278
1206
|
type postNotesShowPartialBulkRequest = {
|
|
@@ -1306,17 +1234,14 @@ No description provided.
|
|
|
1306
1234
|
|
|
1307
1235
|
**Credential required**: *No*
|
|
1308
1236
|
*/
|
|
1309
|
-
let postNotesShowPartialBulk = (~body: postNotesShowPartialBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1237
|
+
let postNotesShowPartialBulk = async (~body: postNotesShowPartialBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesShowPartialBulkResponse => {
|
|
1310
1238
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesShowPartialBulkRequestSchema)
|
|
1311
|
-
fetch(
|
|
1239
|
+
let response = await fetch(
|
|
1312
1240
|
~url="/notes/show-partial-bulk",
|
|
1313
1241
|
~method_="POST",
|
|
1314
1242
|
~body=Some(jsonBody),
|
|
1315
|
-
)
|
|
1316
|
-
|
|
1317
|
-
value
|
|
1318
|
-
->Promise.resolve
|
|
1319
|
-
})
|
|
1243
|
+
)
|
|
1244
|
+
response->S.parseOrThrow(postNotesShowPartialBulkResponseSchema)
|
|
1320
1245
|
}
|
|
1321
1246
|
|
|
1322
1247
|
type postNotesStateRequest = {
|
|
@@ -1346,17 +1271,14 @@ No description provided.
|
|
|
1346
1271
|
|
|
1347
1272
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1348
1273
|
*/
|
|
1349
|
-
let postNotesState = (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1274
|
+
let postNotesState = async (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesStateResponse => {
|
|
1350
1275
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesStateRequestSchema)
|
|
1351
|
-
fetch(
|
|
1276
|
+
let response = await fetch(
|
|
1352
1277
|
~url="/notes/state",
|
|
1353
1278
|
~method_="POST",
|
|
1354
1279
|
~body=Some(jsonBody),
|
|
1355
|
-
)
|
|
1356
|
-
|
|
1357
|
-
value
|
|
1358
|
-
->Promise.resolve
|
|
1359
|
-
})
|
|
1280
|
+
)
|
|
1281
|
+
response->S.parseOrThrow(postNotesStateResponseSchema)
|
|
1360
1282
|
}
|
|
1361
1283
|
|
|
1362
1284
|
type postNotesTimelineRequest = {
|
|
@@ -1400,17 +1322,14 @@ No description provided.
|
|
|
1400
1322
|
|
|
1401
1323
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1402
1324
|
*/
|
|
1403
|
-
let postNotesTimeline = (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1325
|
+
let postNotesTimeline = async (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesTimelineResponse => {
|
|
1404
1326
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesTimelineRequestSchema)
|
|
1405
|
-
fetch(
|
|
1327
|
+
let response = await fetch(
|
|
1406
1328
|
~url="/notes/timeline",
|
|
1407
1329
|
~method_="POST",
|
|
1408
1330
|
~body=Some(jsonBody),
|
|
1409
|
-
)
|
|
1410
|
-
|
|
1411
|
-
value
|
|
1412
|
-
->Promise.resolve
|
|
1413
|
-
})
|
|
1331
|
+
)
|
|
1332
|
+
response->S.parseOrThrow(postNotesTimelineResponseSchema)
|
|
1414
1333
|
}
|
|
1415
1334
|
|
|
1416
1335
|
type postNotesUpdateRequest_3 = {
|
|
@@ -1484,17 +1403,14 @@ No description provided.
|
|
|
1484
1403
|
|
|
1485
1404
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
1486
1405
|
*/
|
|
1487
|
-
let postNotesUpdate = (~body: postNotesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1406
|
+
let postNotesUpdate = async (~body: postNotesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUpdateResponse => {
|
|
1488
1407
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUpdateRequestSchema)
|
|
1489
|
-
fetch(
|
|
1408
|
+
let response = await fetch(
|
|
1490
1409
|
~url="/notes/update",
|
|
1491
1410
|
~method_="POST",
|
|
1492
1411
|
~body=Some(jsonBody),
|
|
1493
|
-
)
|
|
1412
|
+
)
|
|
1494
1413
|
let _ = response
|
|
1495
|
-
()
|
|
1496
|
-
->Promise.resolve
|
|
1497
|
-
})
|
|
1498
1414
|
}
|
|
1499
1415
|
|
|
1500
1416
|
type postNotesUserListTimelineRequest = {
|
|
@@ -1540,15 +1456,12 @@ No description provided.
|
|
|
1540
1456
|
|
|
1541
1457
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1542
1458
|
*/
|
|
1543
|
-
let postNotesUserListTimeline = (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1459
|
+
let postNotesUserListTimeline = async (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUserListTimelineResponse => {
|
|
1544
1460
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUserListTimelineRequestSchema)
|
|
1545
|
-
fetch(
|
|
1461
|
+
let response = await fetch(
|
|
1546
1462
|
~url="/notes/user-list-timeline",
|
|
1547
1463
|
~method_="POST",
|
|
1548
1464
|
~body=Some(jsonBody),
|
|
1549
|
-
)
|
|
1550
|
-
|
|
1551
|
-
value
|
|
1552
|
-
->Promise.resolve
|
|
1553
|
-
})
|
|
1465
|
+
)
|
|
1466
|
+
response->S.parseOrThrow(postNotesUserListTimelineResponseSchema)
|
|
1554
1467
|
}
|
|
@@ -26,15 +26,12 @@ No description provided.
|
|
|
26
26
|
|
|
27
27
|
**Credential required**: *Yes* / **Permission**: *write:notifications*
|
|
28
28
|
*/
|
|
29
|
-
let postNotificationsCreate = (~body: postNotificationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
29
|
+
let postNotificationsCreate = async (~body: postNotificationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotificationsCreateResponse => {
|
|
30
30
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotificationsCreateRequestSchema)
|
|
31
|
-
fetch(
|
|
31
|
+
let response = await fetch(
|
|
32
32
|
~url="/notifications/create",
|
|
33
33
|
~method_="POST",
|
|
34
34
|
~body=Some(jsonBody),
|
|
35
|
-
)
|
|
35
|
+
)
|
|
36
36
|
let _ = response
|
|
37
|
-
()
|
|
38
|
-
->Promise.resolve
|
|
39
|
-
})
|
|
40
37
|
}
|