@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
|
@@ -38,17 +38,14 @@ No description provided.
|
|
|
38
38
|
|
|
39
39
|
**Credential required**: *No*
|
|
40
40
|
*/
|
|
41
|
-
let postChannelsTimeline = (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
41
|
+
let postChannelsTimeline = async (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChannelsTimelineResponse => {
|
|
42
42
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChannelsTimelineRequestSchema)
|
|
43
|
-
fetch(
|
|
43
|
+
let response = await fetch(
|
|
44
44
|
~url="/channels/timeline",
|
|
45
45
|
~method_="POST",
|
|
46
46
|
~body=Some(jsonBody),
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
value
|
|
50
|
-
->Promise.resolve
|
|
51
|
-
})
|
|
47
|
+
)
|
|
48
|
+
response->S.parseOrThrow(postChannelsTimelineResponseSchema)
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
type postNotesRequest = {
|
|
@@ -84,17 +81,14 @@ No description provided.
|
|
|
84
81
|
|
|
85
82
|
**Credential required**: *No*
|
|
86
83
|
*/
|
|
87
|
-
let postNotes = (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
84
|
+
let postNotes = async (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesResponse => {
|
|
88
85
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRequestSchema)
|
|
89
|
-
fetch(
|
|
86
|
+
let response = await fetch(
|
|
90
87
|
~url="/notes",
|
|
91
88
|
~method_="POST",
|
|
92
89
|
~body=Some(jsonBody),
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
value
|
|
96
|
-
->Promise.resolve
|
|
97
|
-
})
|
|
90
|
+
)
|
|
91
|
+
response->S.parseOrThrow(postNotesResponseSchema)
|
|
98
92
|
}
|
|
99
93
|
|
|
100
94
|
type postNotesChildrenRequest = {
|
|
@@ -122,17 +116,14 @@ No description provided.
|
|
|
122
116
|
|
|
123
117
|
**Credential required**: *No*
|
|
124
118
|
*/
|
|
125
|
-
let postNotesChildren = (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
119
|
+
let postNotesChildren = async (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesChildrenResponse => {
|
|
126
120
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesChildrenRequestSchema)
|
|
127
|
-
fetch(
|
|
121
|
+
let response = await fetch(
|
|
128
122
|
~url="/notes/children",
|
|
129
123
|
~method_="POST",
|
|
130
124
|
~body=Some(jsonBody),
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
value
|
|
134
|
-
->Promise.resolve
|
|
135
|
-
})
|
|
125
|
+
)
|
|
126
|
+
response->S.parseOrThrow(postNotesChildrenResponseSchema)
|
|
136
127
|
}
|
|
137
128
|
|
|
138
129
|
type postNotesConversationRequest = {
|
|
@@ -158,17 +149,14 @@ No description provided.
|
|
|
158
149
|
|
|
159
150
|
**Credential required**: *No*
|
|
160
151
|
*/
|
|
161
|
-
let postNotesConversation = (~body: postNotesConversationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
152
|
+
let postNotesConversation = async (~body: postNotesConversationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesConversationResponse => {
|
|
162
153
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesConversationRequestSchema)
|
|
163
|
-
fetch(
|
|
154
|
+
let response = await fetch(
|
|
164
155
|
~url="/notes/conversation",
|
|
165
156
|
~method_="POST",
|
|
166
157
|
~body=Some(jsonBody),
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
value
|
|
170
|
-
->Promise.resolve
|
|
171
|
-
})
|
|
158
|
+
)
|
|
159
|
+
response->S.parseOrThrow(postNotesConversationResponseSchema)
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
type postNotesCreateRequest_1 = {
|
|
@@ -244,17 +232,14 @@ No description provided.
|
|
|
244
232
|
|
|
245
233
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
246
234
|
*/
|
|
247
|
-
let postNotesCreate = (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
235
|
+
let postNotesCreate = async (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesCreateResponse => {
|
|
248
236
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesCreateRequestSchema)
|
|
249
|
-
fetch(
|
|
237
|
+
let response = await fetch(
|
|
250
238
|
~url="/notes/create",
|
|
251
239
|
~method_="POST",
|
|
252
240
|
~body=Some(jsonBody),
|
|
253
|
-
)
|
|
254
|
-
|
|
255
|
-
value
|
|
256
|
-
->Promise.resolve
|
|
257
|
-
})
|
|
241
|
+
)
|
|
242
|
+
response->S.parseOrThrow(postNotesCreateResponseSchema)
|
|
258
243
|
}
|
|
259
244
|
|
|
260
245
|
type postNotesDeleteRequest = {
|
|
@@ -274,17 +259,14 @@ No description provided.
|
|
|
274
259
|
|
|
275
260
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
276
261
|
*/
|
|
277
|
-
let postNotesDelete = (~body: postNotesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
262
|
+
let postNotesDelete = async (~body: postNotesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDeleteResponse => {
|
|
278
263
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDeleteRequestSchema)
|
|
279
|
-
fetch(
|
|
264
|
+
let response = await fetch(
|
|
280
265
|
~url="/notes/delete",
|
|
281
266
|
~method_="POST",
|
|
282
267
|
~body=Some(jsonBody),
|
|
283
|
-
)
|
|
268
|
+
)
|
|
284
269
|
let _ = response
|
|
285
|
-
()
|
|
286
|
-
->Promise.resolve
|
|
287
|
-
})
|
|
288
270
|
}
|
|
289
271
|
|
|
290
272
|
type postNotesFavoritesCreateRequest = {
|
|
@@ -304,17 +286,14 @@ No description provided.
|
|
|
304
286
|
|
|
305
287
|
**Credential required**: *Yes* / **Permission**: *write:favorites*
|
|
306
288
|
*/
|
|
307
|
-
let postNotesFavoritesCreate = (~body: postNotesFavoritesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
289
|
+
let postNotesFavoritesCreate = async (~body: postNotesFavoritesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFavoritesCreateResponse => {
|
|
308
290
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFavoritesCreateRequestSchema)
|
|
309
|
-
fetch(
|
|
291
|
+
let response = await fetch(
|
|
310
292
|
~url="/notes/favorites/create",
|
|
311
293
|
~method_="POST",
|
|
312
294
|
~body=Some(jsonBody),
|
|
313
|
-
)
|
|
295
|
+
)
|
|
314
296
|
let _ = response
|
|
315
|
-
()
|
|
316
|
-
->Promise.resolve
|
|
317
|
-
})
|
|
318
297
|
}
|
|
319
298
|
|
|
320
299
|
type postNotesFavoritesDeleteRequest = {
|
|
@@ -334,17 +313,14 @@ No description provided.
|
|
|
334
313
|
|
|
335
314
|
**Credential required**: *Yes* / **Permission**: *write:favorites*
|
|
336
315
|
*/
|
|
337
|
-
let postNotesFavoritesDelete = (~body: postNotesFavoritesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
316
|
+
let postNotesFavoritesDelete = async (~body: postNotesFavoritesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFavoritesDeleteResponse => {
|
|
338
317
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFavoritesDeleteRequestSchema)
|
|
339
|
-
fetch(
|
|
318
|
+
let response = await fetch(
|
|
340
319
|
~url="/notes/favorites/delete",
|
|
341
320
|
~method_="POST",
|
|
342
321
|
~body=Some(jsonBody),
|
|
343
|
-
)
|
|
322
|
+
)
|
|
344
323
|
let _ = response
|
|
345
|
-
()
|
|
346
|
-
->Promise.resolve
|
|
347
|
-
})
|
|
348
324
|
}
|
|
349
325
|
|
|
350
326
|
type getNotesFeaturedRequest = {
|
|
@@ -370,17 +346,14 @@ No description provided.
|
|
|
370
346
|
|
|
371
347
|
**Credential required**: *No*
|
|
372
348
|
*/
|
|
373
|
-
let getNotesFeatured = (~body: getNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
349
|
+
let getNotesFeatured = async (~body: getNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getNotesFeaturedResponse => {
|
|
374
350
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getNotesFeaturedRequestSchema)
|
|
375
|
-
fetch(
|
|
351
|
+
let response = await fetch(
|
|
376
352
|
~url="/notes/featured",
|
|
377
353
|
~method_="GET",
|
|
378
354
|
~body=Some(jsonBody),
|
|
379
|
-
)
|
|
380
|
-
|
|
381
|
-
value
|
|
382
|
-
->Promise.resolve
|
|
383
|
-
})
|
|
355
|
+
)
|
|
356
|
+
response->S.parseOrThrow(getNotesFeaturedResponseSchema)
|
|
384
357
|
}
|
|
385
358
|
|
|
386
359
|
type postNotesFeaturedRequest = {
|
|
@@ -406,17 +379,14 @@ No description provided.
|
|
|
406
379
|
|
|
407
380
|
**Credential required**: *No*
|
|
408
381
|
*/
|
|
409
|
-
let postNotesFeatured = (~body: postNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
382
|
+
let postNotesFeatured = async (~body: postNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFeaturedResponse => {
|
|
410
383
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFeaturedRequestSchema)
|
|
411
|
-
fetch(
|
|
384
|
+
let response = await fetch(
|
|
412
385
|
~url="/notes/featured",
|
|
413
386
|
~method_="POST",
|
|
414
387
|
~body=Some(jsonBody),
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
value
|
|
418
|
-
->Promise.resolve
|
|
419
|
-
})
|
|
388
|
+
)
|
|
389
|
+
response->S.parseOrThrow(postNotesFeaturedResponseSchema)
|
|
420
390
|
}
|
|
421
391
|
|
|
422
392
|
type postNotesGlobalTimelineRequest = {
|
|
@@ -452,17 +422,14 @@ No description provided.
|
|
|
452
422
|
|
|
453
423
|
**Credential required**: *No*
|
|
454
424
|
*/
|
|
455
|
-
let postNotesGlobalTimeline = (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
425
|
+
let postNotesGlobalTimeline = async (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesGlobalTimelineResponse => {
|
|
456
426
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesGlobalTimelineRequestSchema)
|
|
457
|
-
fetch(
|
|
427
|
+
let response = await fetch(
|
|
458
428
|
~url="/notes/global-timeline",
|
|
459
429
|
~method_="POST",
|
|
460
430
|
~body=Some(jsonBody),
|
|
461
|
-
)
|
|
462
|
-
|
|
463
|
-
value
|
|
464
|
-
->Promise.resolve
|
|
465
|
-
})
|
|
431
|
+
)
|
|
432
|
+
response->S.parseOrThrow(postNotesGlobalTimelineResponseSchema)
|
|
466
433
|
}
|
|
467
434
|
|
|
468
435
|
type postNotesHybridTimelineRequest = {
|
|
@@ -508,17 +475,14 @@ No description provided.
|
|
|
508
475
|
|
|
509
476
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
510
477
|
*/
|
|
511
|
-
let postNotesHybridTimeline = (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
478
|
+
let postNotesHybridTimeline = async (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesHybridTimelineResponse => {
|
|
512
479
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesHybridTimelineRequestSchema)
|
|
513
|
-
fetch(
|
|
480
|
+
let response = await fetch(
|
|
514
481
|
~url="/notes/hybrid-timeline",
|
|
515
482
|
~method_="POST",
|
|
516
483
|
~body=Some(jsonBody),
|
|
517
|
-
)
|
|
518
|
-
|
|
519
|
-
value
|
|
520
|
-
->Promise.resolve
|
|
521
|
-
})
|
|
484
|
+
)
|
|
485
|
+
response->S.parseOrThrow(postNotesHybridTimelineResponseSchema)
|
|
522
486
|
}
|
|
523
487
|
|
|
524
488
|
type postNotesLocalTimelineRequest = {
|
|
@@ -558,17 +522,14 @@ No description provided.
|
|
|
558
522
|
|
|
559
523
|
**Credential required**: *No*
|
|
560
524
|
*/
|
|
561
|
-
let postNotesLocalTimeline = (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
525
|
+
let postNotesLocalTimeline = async (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesLocalTimelineResponse => {
|
|
562
526
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesLocalTimelineRequestSchema)
|
|
563
|
-
fetch(
|
|
527
|
+
let response = await fetch(
|
|
564
528
|
~url="/notes/local-timeline",
|
|
565
529
|
~method_="POST",
|
|
566
530
|
~body=Some(jsonBody),
|
|
567
|
-
)
|
|
568
|
-
|
|
569
|
-
value
|
|
570
|
-
->Promise.resolve
|
|
571
|
-
})
|
|
531
|
+
)
|
|
532
|
+
response->S.parseOrThrow(postNotesLocalTimelineResponseSchema)
|
|
572
533
|
}
|
|
573
534
|
|
|
574
535
|
type postNotesMentionsRequest = {
|
|
@@ -598,17 +559,14 @@ No description provided.
|
|
|
598
559
|
|
|
599
560
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
600
561
|
*/
|
|
601
|
-
let postNotesMentions = (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
562
|
+
let postNotesMentions = async (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesMentionsResponse => {
|
|
602
563
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesMentionsRequestSchema)
|
|
603
|
-
fetch(
|
|
564
|
+
let response = await fetch(
|
|
604
565
|
~url="/notes/mentions",
|
|
605
566
|
~method_="POST",
|
|
606
567
|
~body=Some(jsonBody),
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
value
|
|
610
|
-
->Promise.resolve
|
|
611
|
-
})
|
|
568
|
+
)
|
|
569
|
+
response->S.parseOrThrow(postNotesMentionsResponseSchema)
|
|
612
570
|
}
|
|
613
571
|
|
|
614
572
|
type postNotesPollsRecommendationRequest = {
|
|
@@ -634,17 +592,14 @@ No description provided.
|
|
|
634
592
|
|
|
635
593
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
636
594
|
*/
|
|
637
|
-
let postNotesPollsRecommendation = (~body: postNotesPollsRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
595
|
+
let postNotesPollsRecommendation = async (~body: postNotesPollsRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesPollsRecommendationResponse => {
|
|
638
596
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesPollsRecommendationRequestSchema)
|
|
639
|
-
fetch(
|
|
597
|
+
let response = await fetch(
|
|
640
598
|
~url="/notes/polls/recommendation",
|
|
641
599
|
~method_="POST",
|
|
642
600
|
~body=Some(jsonBody),
|
|
643
|
-
)
|
|
644
|
-
|
|
645
|
-
value
|
|
646
|
-
->Promise.resolve
|
|
647
|
-
})
|
|
601
|
+
)
|
|
602
|
+
response->S.parseOrThrow(postNotesPollsRecommendationResponseSchema)
|
|
648
603
|
}
|
|
649
604
|
|
|
650
605
|
type postNotesPollsVoteRequest = {
|
|
@@ -666,17 +621,14 @@ No description provided.
|
|
|
666
621
|
|
|
667
622
|
**Credential required**: *Yes* / **Permission**: *write:votes*
|
|
668
623
|
*/
|
|
669
|
-
let postNotesPollsVote = (~body: postNotesPollsVoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
624
|
+
let postNotesPollsVote = async (~body: postNotesPollsVoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesPollsVoteResponse => {
|
|
670
625
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesPollsVoteRequestSchema)
|
|
671
|
-
fetch(
|
|
626
|
+
let response = await fetch(
|
|
672
627
|
~url="/notes/polls/vote",
|
|
673
628
|
~method_="POST",
|
|
674
629
|
~body=Some(jsonBody),
|
|
675
|
-
)
|
|
630
|
+
)
|
|
676
631
|
let _ = response
|
|
677
|
-
()
|
|
678
|
-
->Promise.resolve
|
|
679
|
-
})
|
|
680
632
|
}
|
|
681
633
|
|
|
682
634
|
type getNotesReactionsRequest = {
|
|
@@ -706,17 +658,14 @@ No description provided.
|
|
|
706
658
|
|
|
707
659
|
**Credential required**: *No*
|
|
708
660
|
*/
|
|
709
|
-
let getNotesReactions = (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
661
|
+
let getNotesReactions = async (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getNotesReactionsResponse => {
|
|
710
662
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getNotesReactionsRequestSchema)
|
|
711
|
-
fetch(
|
|
663
|
+
let response = await fetch(
|
|
712
664
|
~url="/notes/reactions",
|
|
713
665
|
~method_="GET",
|
|
714
666
|
~body=Some(jsonBody),
|
|
715
|
-
)
|
|
716
|
-
|
|
717
|
-
value
|
|
718
|
-
->Promise.resolve
|
|
719
|
-
})
|
|
667
|
+
)
|
|
668
|
+
response->S.parseOrThrow(getNotesReactionsResponseSchema)
|
|
720
669
|
}
|
|
721
670
|
|
|
722
671
|
type postNotesReactionsRequest = {
|
|
@@ -746,17 +695,14 @@ No description provided.
|
|
|
746
695
|
|
|
747
696
|
**Credential required**: *No*
|
|
748
697
|
*/
|
|
749
|
-
let postNotesReactions = (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
698
|
+
let postNotesReactions = async (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesReactionsResponse => {
|
|
750
699
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesReactionsRequestSchema)
|
|
751
|
-
fetch(
|
|
700
|
+
let response = await fetch(
|
|
752
701
|
~url="/notes/reactions",
|
|
753
702
|
~method_="POST",
|
|
754
703
|
~body=Some(jsonBody),
|
|
755
|
-
)
|
|
756
|
-
|
|
757
|
-
value
|
|
758
|
-
->Promise.resolve
|
|
759
|
-
})
|
|
704
|
+
)
|
|
705
|
+
response->S.parseOrThrow(postNotesReactionsResponseSchema)
|
|
760
706
|
}
|
|
761
707
|
|
|
762
708
|
type postNotesRenotesRequest = {
|
|
@@ -784,17 +730,14 @@ No description provided.
|
|
|
784
730
|
|
|
785
731
|
**Credential required**: *No*
|
|
786
732
|
*/
|
|
787
|
-
let postNotesRenotes = (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
733
|
+
let postNotesRenotes = async (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRenotesResponse => {
|
|
788
734
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRenotesRequestSchema)
|
|
789
|
-
fetch(
|
|
735
|
+
let response = await fetch(
|
|
790
736
|
~url="/notes/renotes",
|
|
791
737
|
~method_="POST",
|
|
792
738
|
~body=Some(jsonBody),
|
|
793
|
-
)
|
|
794
|
-
|
|
795
|
-
value
|
|
796
|
-
->Promise.resolve
|
|
797
|
-
})
|
|
739
|
+
)
|
|
740
|
+
response->S.parseOrThrow(postNotesRenotesResponseSchema)
|
|
798
741
|
}
|
|
799
742
|
|
|
800
743
|
type postNotesRepliesRequest = {
|
|
@@ -822,17 +765,14 @@ No description provided.
|
|
|
822
765
|
|
|
823
766
|
**Credential required**: *No*
|
|
824
767
|
*/
|
|
825
|
-
let postNotesReplies = (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
768
|
+
let postNotesReplies = async (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRepliesResponse => {
|
|
826
769
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRepliesRequestSchema)
|
|
827
|
-
fetch(
|
|
770
|
+
let response = await fetch(
|
|
828
771
|
~url="/notes/replies",
|
|
829
772
|
~method_="POST",
|
|
830
773
|
~body=Some(jsonBody),
|
|
831
|
-
)
|
|
832
|
-
|
|
833
|
-
value
|
|
834
|
-
->Promise.resolve
|
|
835
|
-
})
|
|
774
|
+
)
|
|
775
|
+
response->S.parseOrThrow(postNotesRepliesResponseSchema)
|
|
836
776
|
}
|
|
837
777
|
|
|
838
778
|
type postNotesScheduledCancelRequest = {
|
|
@@ -852,17 +792,14 @@ No description provided.
|
|
|
852
792
|
|
|
853
793
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
854
794
|
*/
|
|
855
|
-
let postNotesScheduledCancel = (~body: postNotesScheduledCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
795
|
+
let postNotesScheduledCancel = async (~body: postNotesScheduledCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesScheduledCancelResponse => {
|
|
856
796
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesScheduledCancelRequestSchema)
|
|
857
|
-
fetch(
|
|
797
|
+
let response = await fetch(
|
|
858
798
|
~url="/notes/scheduled/cancel",
|
|
859
799
|
~method_="POST",
|
|
860
800
|
~body=Some(jsonBody),
|
|
861
|
-
)
|
|
801
|
+
)
|
|
862
802
|
let _ = response
|
|
863
|
-
()
|
|
864
|
-
->Promise.resolve
|
|
865
|
-
})
|
|
866
803
|
}
|
|
867
804
|
|
|
868
805
|
type postNotesScheduledListRequest = {
|
|
@@ -886,17 +823,14 @@ No description provided.
|
|
|
886
823
|
|
|
887
824
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
888
825
|
*/
|
|
889
|
-
let postNotesScheduledList = (~body: postNotesScheduledListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
826
|
+
let postNotesScheduledList = async (~body: postNotesScheduledListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesScheduledListResponse => {
|
|
890
827
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesScheduledListRequestSchema)
|
|
891
|
-
fetch(
|
|
828
|
+
let response = await fetch(
|
|
892
829
|
~url="/notes/scheduled/list",
|
|
893
830
|
~method_="POST",
|
|
894
831
|
~body=Some(jsonBody),
|
|
895
|
-
)
|
|
896
|
-
|
|
897
|
-
value
|
|
898
|
-
->Promise.resolve
|
|
899
|
-
})
|
|
832
|
+
)
|
|
833
|
+
response->S.parseOrThrow(postNotesScheduledListResponseSchema)
|
|
900
834
|
}
|
|
901
835
|
|
|
902
836
|
type postNotesSearchRequest = {
|
|
@@ -932,17 +866,14 @@ No description provided.
|
|
|
932
866
|
|
|
933
867
|
**Credential required**: *No*
|
|
934
868
|
*/
|
|
935
|
-
let postNotesSearch = (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
869
|
+
let postNotesSearch = async (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchResponse => {
|
|
936
870
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchRequestSchema)
|
|
937
|
-
fetch(
|
|
871
|
+
let response = await fetch(
|
|
938
872
|
~url="/notes/search",
|
|
939
873
|
~method_="POST",
|
|
940
874
|
~body=Some(jsonBody),
|
|
941
|
-
)
|
|
942
|
-
|
|
943
|
-
value
|
|
944
|
-
->Promise.resolve
|
|
945
|
-
})
|
|
875
|
+
)
|
|
876
|
+
response->S.parseOrThrow(postNotesSearchResponseSchema)
|
|
946
877
|
}
|
|
947
878
|
|
|
948
879
|
type postNotesSearchByTagRequest = {
|
|
@@ -982,17 +913,14 @@ No description provided.
|
|
|
982
913
|
|
|
983
914
|
**Credential required**: *No*
|
|
984
915
|
*/
|
|
985
|
-
let postNotesSearchByTag = (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
916
|
+
let postNotesSearchByTag = async (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchByTagResponse => {
|
|
986
917
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchByTagRequestSchema)
|
|
987
|
-
fetch(
|
|
918
|
+
let response = await fetch(
|
|
988
919
|
~url="/notes/search-by-tag",
|
|
989
920
|
~method_="POST",
|
|
990
921
|
~body=Some(jsonBody),
|
|
991
|
-
)
|
|
992
|
-
|
|
993
|
-
value
|
|
994
|
-
->Promise.resolve
|
|
995
|
-
})
|
|
922
|
+
)
|
|
923
|
+
response->S.parseOrThrow(postNotesSearchByTagResponseSchema)
|
|
996
924
|
}
|
|
997
925
|
|
|
998
926
|
type postNotesShowRequest = {
|
|
@@ -1014,17 +942,14 @@ No description provided.
|
|
|
1014
942
|
|
|
1015
943
|
**Credential required**: *No*
|
|
1016
944
|
*/
|
|
1017
|
-
let postNotesShow = (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
945
|
+
let postNotesShow = async (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesShowResponse => {
|
|
1018
946
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesShowRequestSchema)
|
|
1019
|
-
fetch(
|
|
947
|
+
let response = await fetch(
|
|
1020
948
|
~url="/notes/show",
|
|
1021
949
|
~method_="POST",
|
|
1022
950
|
~body=Some(jsonBody),
|
|
1023
|
-
)
|
|
1024
|
-
|
|
1025
|
-
value
|
|
1026
|
-
->Promise.resolve
|
|
1027
|
-
})
|
|
951
|
+
)
|
|
952
|
+
response->S.parseOrThrow(postNotesShowResponseSchema)
|
|
1028
953
|
}
|
|
1029
954
|
|
|
1030
955
|
type postNotesStateRequest = {
|
|
@@ -1052,17 +977,14 @@ No description provided.
|
|
|
1052
977
|
|
|
1053
978
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1054
979
|
*/
|
|
1055
|
-
let postNotesState = (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
980
|
+
let postNotesState = async (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesStateResponse => {
|
|
1056
981
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesStateRequestSchema)
|
|
1057
|
-
fetch(
|
|
982
|
+
let response = await fetch(
|
|
1058
983
|
~url="/notes/state",
|
|
1059
984
|
~method_="POST",
|
|
1060
985
|
~body=Some(jsonBody),
|
|
1061
|
-
)
|
|
1062
|
-
|
|
1063
|
-
value
|
|
1064
|
-
->Promise.resolve
|
|
1065
|
-
})
|
|
986
|
+
)
|
|
987
|
+
response->S.parseOrThrow(postNotesStateResponseSchema)
|
|
1066
988
|
}
|
|
1067
989
|
|
|
1068
990
|
type postNotesThreadMutingCreateRequest = {
|
|
@@ -1082,17 +1004,14 @@ No description provided.
|
|
|
1082
1004
|
|
|
1083
1005
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1084
1006
|
*/
|
|
1085
|
-
let postNotesThreadMutingCreate = (~body: postNotesThreadMutingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1007
|
+
let postNotesThreadMutingCreate = async (~body: postNotesThreadMutingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesThreadMutingCreateResponse => {
|
|
1086
1008
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesThreadMutingCreateRequestSchema)
|
|
1087
|
-
fetch(
|
|
1009
|
+
let response = await fetch(
|
|
1088
1010
|
~url="/notes/thread-muting/create",
|
|
1089
1011
|
~method_="POST",
|
|
1090
1012
|
~body=Some(jsonBody),
|
|
1091
|
-
)
|
|
1013
|
+
)
|
|
1092
1014
|
let _ = response
|
|
1093
|
-
()
|
|
1094
|
-
->Promise.resolve
|
|
1095
|
-
})
|
|
1096
1015
|
}
|
|
1097
1016
|
|
|
1098
1017
|
type postNotesThreadMutingDeleteRequest = {
|
|
@@ -1112,17 +1031,14 @@ No description provided.
|
|
|
1112
1031
|
|
|
1113
1032
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1114
1033
|
*/
|
|
1115
|
-
let postNotesThreadMutingDelete = (~body: postNotesThreadMutingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1034
|
+
let postNotesThreadMutingDelete = async (~body: postNotesThreadMutingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesThreadMutingDeleteResponse => {
|
|
1116
1035
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesThreadMutingDeleteRequestSchema)
|
|
1117
|
-
fetch(
|
|
1036
|
+
let response = await fetch(
|
|
1118
1037
|
~url="/notes/thread-muting/delete",
|
|
1119
1038
|
~method_="POST",
|
|
1120
1039
|
~body=Some(jsonBody),
|
|
1121
|
-
)
|
|
1040
|
+
)
|
|
1122
1041
|
let _ = response
|
|
1123
|
-
()
|
|
1124
|
-
->Promise.resolve
|
|
1125
|
-
})
|
|
1126
1042
|
}
|
|
1127
1043
|
|
|
1128
1044
|
type postNotesTimelineRequest = {
|
|
@@ -1166,17 +1082,14 @@ No description provided.
|
|
|
1166
1082
|
|
|
1167
1083
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1168
1084
|
*/
|
|
1169
|
-
let postNotesTimeline = (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1085
|
+
let postNotesTimeline = async (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesTimelineResponse => {
|
|
1170
1086
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesTimelineRequestSchema)
|
|
1171
|
-
fetch(
|
|
1087
|
+
let response = await fetch(
|
|
1172
1088
|
~url="/notes/timeline",
|
|
1173
1089
|
~method_="POST",
|
|
1174
1090
|
~body=Some(jsonBody),
|
|
1175
|
-
)
|
|
1176
|
-
|
|
1177
|
-
value
|
|
1178
|
-
->Promise.resolve
|
|
1179
|
-
})
|
|
1091
|
+
)
|
|
1092
|
+
response->S.parseOrThrow(postNotesTimelineResponseSchema)
|
|
1180
1093
|
}
|
|
1181
1094
|
|
|
1182
1095
|
type postNotesTranslateRequest = {
|
|
@@ -1206,17 +1119,14 @@ No description provided.
|
|
|
1206
1119
|
|
|
1207
1120
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1208
1121
|
*/
|
|
1209
|
-
let postNotesTranslate = (~body: postNotesTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1122
|
+
let postNotesTranslate = async (~body: postNotesTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesTranslateResponse => {
|
|
1210
1123
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesTranslateRequestSchema)
|
|
1211
|
-
fetch(
|
|
1124
|
+
let response = await fetch(
|
|
1212
1125
|
~url="/notes/translate",
|
|
1213
1126
|
~method_="POST",
|
|
1214
1127
|
~body=Some(jsonBody),
|
|
1215
|
-
)
|
|
1216
|
-
|
|
1217
|
-
value
|
|
1218
|
-
->Promise.resolve
|
|
1219
|
-
})
|
|
1128
|
+
)
|
|
1129
|
+
response->S.parseOrThrow(postNotesTranslateResponseSchema)
|
|
1220
1130
|
}
|
|
1221
1131
|
|
|
1222
1132
|
type postNotesUnrenoteRequest = {
|
|
@@ -1236,17 +1146,14 @@ No description provided.
|
|
|
1236
1146
|
|
|
1237
1147
|
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
1238
1148
|
*/
|
|
1239
|
-
let postNotesUnrenote = (~body: postNotesUnrenoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1149
|
+
let postNotesUnrenote = async (~body: postNotesUnrenoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUnrenoteResponse => {
|
|
1240
1150
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUnrenoteRequestSchema)
|
|
1241
|
-
fetch(
|
|
1151
|
+
let response = await fetch(
|
|
1242
1152
|
~url="/notes/unrenote",
|
|
1243
1153
|
~method_="POST",
|
|
1244
1154
|
~body=Some(jsonBody),
|
|
1245
|
-
)
|
|
1155
|
+
)
|
|
1246
1156
|
let _ = response
|
|
1247
|
-
()
|
|
1248
|
-
->Promise.resolve
|
|
1249
|
-
})
|
|
1250
1157
|
}
|
|
1251
1158
|
|
|
1252
1159
|
type postNotesUserListTimelineRequest = {
|
|
@@ -1290,17 +1197,14 @@ No description provided.
|
|
|
1290
1197
|
|
|
1291
1198
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1292
1199
|
*/
|
|
1293
|
-
let postNotesUserListTimeline = (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1200
|
+
let postNotesUserListTimeline = async (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUserListTimelineResponse => {
|
|
1294
1201
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUserListTimelineRequestSchema)
|
|
1295
|
-
fetch(
|
|
1202
|
+
let response = await fetch(
|
|
1296
1203
|
~url="/notes/user-list-timeline",
|
|
1297
1204
|
~method_="POST",
|
|
1298
1205
|
~body=Some(jsonBody),
|
|
1299
|
-
)
|
|
1300
|
-
|
|
1301
|
-
value
|
|
1302
|
-
->Promise.resolve
|
|
1303
|
-
})
|
|
1206
|
+
)
|
|
1207
|
+
response->S.parseOrThrow(postNotesUserListTimelineResponseSchema)
|
|
1304
1208
|
}
|
|
1305
1209
|
|
|
1306
1210
|
type postPromoReadRequest = {
|
|
@@ -1320,17 +1224,14 @@ No description provided.
|
|
|
1320
1224
|
|
|
1321
1225
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1322
1226
|
*/
|
|
1323
|
-
let postPromoRead = (~body: postPromoReadRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1227
|
+
let postPromoRead = async (~body: postPromoReadRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPromoReadResponse => {
|
|
1324
1228
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postPromoReadRequestSchema)
|
|
1325
|
-
fetch(
|
|
1229
|
+
let response = await fetch(
|
|
1326
1230
|
~url="/promo/read",
|
|
1327
1231
|
~method_="POST",
|
|
1328
1232
|
~body=Some(jsonBody),
|
|
1329
|
-
)
|
|
1233
|
+
)
|
|
1330
1234
|
let _ = response
|
|
1331
|
-
()
|
|
1332
|
-
->Promise.resolve
|
|
1333
|
-
})
|
|
1334
1235
|
}
|
|
1335
1236
|
|
|
1336
1237
|
type getUsersFeaturedNotesRequest = {
|
|
@@ -1356,17 +1257,14 @@ No description provided.
|
|
|
1356
1257
|
|
|
1357
1258
|
**Credential required**: *No*
|
|
1358
1259
|
*/
|
|
1359
|
-
let getUsersFeaturedNotes = (~body: getUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1260
|
+
let getUsersFeaturedNotes = async (~body: getUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getUsersFeaturedNotesResponse => {
|
|
1360
1261
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getUsersFeaturedNotesRequestSchema)
|
|
1361
|
-
fetch(
|
|
1262
|
+
let response = await fetch(
|
|
1362
1263
|
~url="/users/featured-notes",
|
|
1363
1264
|
~method_="GET",
|
|
1364
1265
|
~body=Some(jsonBody),
|
|
1365
|
-
)
|
|
1366
|
-
|
|
1367
|
-
value
|
|
1368
|
-
->Promise.resolve
|
|
1369
|
-
})
|
|
1266
|
+
)
|
|
1267
|
+
response->S.parseOrThrow(getUsersFeaturedNotesResponseSchema)
|
|
1370
1268
|
}
|
|
1371
1269
|
|
|
1372
1270
|
type postUsersFeaturedNotesRequest = {
|
|
@@ -1392,15 +1290,12 @@ No description provided.
|
|
|
1392
1290
|
|
|
1393
1291
|
**Credential required**: *No*
|
|
1394
1292
|
*/
|
|
1395
|
-
let postUsersFeaturedNotes = (~body: postUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1293
|
+
let postUsersFeaturedNotes = async (~body: postUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersFeaturedNotesResponse => {
|
|
1396
1294
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersFeaturedNotesRequestSchema)
|
|
1397
|
-
fetch(
|
|
1295
|
+
let response = await fetch(
|
|
1398
1296
|
~url="/users/featured-notes",
|
|
1399
1297
|
~method_="POST",
|
|
1400
1298
|
~body=Some(jsonBody),
|
|
1401
|
-
)
|
|
1402
|
-
|
|
1403
|
-
value
|
|
1404
|
-
->Promise.resolve
|
|
1405
|
-
})
|
|
1299
|
+
)
|
|
1300
|
+
response->S.parseOrThrow(postUsersFeaturedNotesResponseSchema)
|
|
1406
1301
|
}
|