@f3liz/rescript-misskey-api 0.6.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
- package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
- package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
|
@@ -26,17 +26,14 @@ No description provided.
|
|
|
26
26
|
|
|
27
27
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
28
28
|
*/
|
|
29
|
-
let postChatHistory = (~body: postChatHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
29
|
+
let postChatHistory = async (~body: postChatHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatHistoryResponse => {
|
|
30
30
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatHistoryRequestSchema)
|
|
31
|
-
fetch(
|
|
31
|
+
let response = await fetch(
|
|
32
32
|
~url="/chat/history",
|
|
33
33
|
~method_="POST",
|
|
34
34
|
~body=Some(jsonBody),
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
value
|
|
38
|
-
->Promise.resolve
|
|
39
|
-
})
|
|
35
|
+
)
|
|
36
|
+
response->S.parseOrThrow(postChatHistoryResponseSchema)
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
type postChatMessagesCreateToRoomRequest = {
|
|
@@ -62,17 +59,14 @@ No description provided.
|
|
|
62
59
|
|
|
63
60
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
64
61
|
*/
|
|
65
|
-
let postChatMessagesCreateToRoom = (~body: postChatMessagesCreateToRoomRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
62
|
+
let postChatMessagesCreateToRoom = async (~body: postChatMessagesCreateToRoomRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesCreateToRoomResponse => {
|
|
66
63
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesCreateToRoomRequestSchema)
|
|
67
|
-
fetch(
|
|
64
|
+
let response = await fetch(
|
|
68
65
|
~url="/chat/messages/create-to-room",
|
|
69
66
|
~method_="POST",
|
|
70
67
|
~body=Some(jsonBody),
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
value
|
|
74
|
-
->Promise.resolve
|
|
75
|
-
})
|
|
68
|
+
)
|
|
69
|
+
response->S.parseOrThrow(postChatMessagesCreateToRoomResponseSchema)
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
type postChatMessagesCreateToUserRequest = {
|
|
@@ -98,17 +92,14 @@ No description provided.
|
|
|
98
92
|
|
|
99
93
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
100
94
|
*/
|
|
101
|
-
let postChatMessagesCreateToUser = (~body: postChatMessagesCreateToUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
95
|
+
let postChatMessagesCreateToUser = async (~body: postChatMessagesCreateToUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesCreateToUserResponse => {
|
|
102
96
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesCreateToUserRequestSchema)
|
|
103
|
-
fetch(
|
|
97
|
+
let response = await fetch(
|
|
104
98
|
~url="/chat/messages/create-to-user",
|
|
105
99
|
~method_="POST",
|
|
106
100
|
~body=Some(jsonBody),
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
value
|
|
110
|
-
->Promise.resolve
|
|
111
|
-
})
|
|
101
|
+
)
|
|
102
|
+
response->S.parseOrThrow(postChatMessagesCreateToUserResponseSchema)
|
|
112
103
|
}
|
|
113
104
|
|
|
114
105
|
type postChatMessagesDeleteRequest = {
|
|
@@ -128,17 +119,14 @@ No description provided.
|
|
|
128
119
|
|
|
129
120
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
130
121
|
*/
|
|
131
|
-
let postChatMessagesDelete = (~body: postChatMessagesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
122
|
+
let postChatMessagesDelete = async (~body: postChatMessagesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesDeleteResponse => {
|
|
132
123
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesDeleteRequestSchema)
|
|
133
|
-
fetch(
|
|
124
|
+
let response = await fetch(
|
|
134
125
|
~url="/chat/messages/delete",
|
|
135
126
|
~method_="POST",
|
|
136
127
|
~body=Some(jsonBody),
|
|
137
|
-
)
|
|
128
|
+
)
|
|
138
129
|
let _ = response
|
|
139
|
-
()
|
|
140
|
-
->Promise.resolve
|
|
141
|
-
})
|
|
142
130
|
}
|
|
143
131
|
|
|
144
132
|
type postChatMessagesReactRequest = {
|
|
@@ -160,17 +148,14 @@ No description provided.
|
|
|
160
148
|
|
|
161
149
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
162
150
|
*/
|
|
163
|
-
let postChatMessagesReact = (~body: postChatMessagesReactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
151
|
+
let postChatMessagesReact = async (~body: postChatMessagesReactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesReactResponse => {
|
|
164
152
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesReactRequestSchema)
|
|
165
|
-
fetch(
|
|
153
|
+
let response = await fetch(
|
|
166
154
|
~url="/chat/messages/react",
|
|
167
155
|
~method_="POST",
|
|
168
156
|
~body=Some(jsonBody),
|
|
169
|
-
)
|
|
157
|
+
)
|
|
170
158
|
let _ = response
|
|
171
|
-
()
|
|
172
|
-
->Promise.resolve
|
|
173
|
-
})
|
|
174
159
|
}
|
|
175
160
|
|
|
176
161
|
type postChatMessagesRoomTimelineRequest = {
|
|
@@ -202,17 +187,14 @@ No description provided.
|
|
|
202
187
|
|
|
203
188
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
204
189
|
*/
|
|
205
|
-
let postChatMessagesRoomTimeline = (~body: postChatMessagesRoomTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
190
|
+
let postChatMessagesRoomTimeline = async (~body: postChatMessagesRoomTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesRoomTimelineResponse => {
|
|
206
191
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesRoomTimelineRequestSchema)
|
|
207
|
-
fetch(
|
|
192
|
+
let response = await fetch(
|
|
208
193
|
~url="/chat/messages/room-timeline",
|
|
209
194
|
~method_="POST",
|
|
210
195
|
~body=Some(jsonBody),
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
value
|
|
214
|
-
->Promise.resolve
|
|
215
|
-
})
|
|
196
|
+
)
|
|
197
|
+
response->S.parseOrThrow(postChatMessagesRoomTimelineResponseSchema)
|
|
216
198
|
}
|
|
217
199
|
|
|
218
200
|
type postChatMessagesSearchRequest = {
|
|
@@ -240,17 +222,14 @@ No description provided.
|
|
|
240
222
|
|
|
241
223
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
242
224
|
*/
|
|
243
|
-
let postChatMessagesSearch = (~body: postChatMessagesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
225
|
+
let postChatMessagesSearch = async (~body: postChatMessagesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesSearchResponse => {
|
|
244
226
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesSearchRequestSchema)
|
|
245
|
-
fetch(
|
|
227
|
+
let response = await fetch(
|
|
246
228
|
~url="/chat/messages/search",
|
|
247
229
|
~method_="POST",
|
|
248
230
|
~body=Some(jsonBody),
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
value
|
|
252
|
-
->Promise.resolve
|
|
253
|
-
})
|
|
231
|
+
)
|
|
232
|
+
response->S.parseOrThrow(postChatMessagesSearchResponseSchema)
|
|
254
233
|
}
|
|
255
234
|
|
|
256
235
|
type postChatMessagesShowRequest = {
|
|
@@ -272,17 +251,14 @@ No description provided.
|
|
|
272
251
|
|
|
273
252
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
274
253
|
*/
|
|
275
|
-
let postChatMessagesShow = (~body: postChatMessagesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
254
|
+
let postChatMessagesShow = async (~body: postChatMessagesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesShowResponse => {
|
|
276
255
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesShowRequestSchema)
|
|
277
|
-
fetch(
|
|
256
|
+
let response = await fetch(
|
|
278
257
|
~url="/chat/messages/show",
|
|
279
258
|
~method_="POST",
|
|
280
259
|
~body=Some(jsonBody),
|
|
281
|
-
)
|
|
282
|
-
|
|
283
|
-
value
|
|
284
|
-
->Promise.resolve
|
|
285
|
-
})
|
|
260
|
+
)
|
|
261
|
+
response->S.parseOrThrow(postChatMessagesShowResponseSchema)
|
|
286
262
|
}
|
|
287
263
|
|
|
288
264
|
type postChatMessagesUnreactRequest = {
|
|
@@ -304,17 +280,14 @@ No description provided.
|
|
|
304
280
|
|
|
305
281
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
306
282
|
*/
|
|
307
|
-
let postChatMessagesUnreact = (~body: postChatMessagesUnreactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
283
|
+
let postChatMessagesUnreact = async (~body: postChatMessagesUnreactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesUnreactResponse => {
|
|
308
284
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesUnreactRequestSchema)
|
|
309
|
-
fetch(
|
|
285
|
+
let response = await fetch(
|
|
310
286
|
~url="/chat/messages/unreact",
|
|
311
287
|
~method_="POST",
|
|
312
288
|
~body=Some(jsonBody),
|
|
313
|
-
)
|
|
289
|
+
)
|
|
314
290
|
let _ = response
|
|
315
|
-
()
|
|
316
|
-
->Promise.resolve
|
|
317
|
-
})
|
|
318
291
|
}
|
|
319
292
|
|
|
320
293
|
type postChatMessagesUserTimelineRequest = {
|
|
@@ -346,17 +319,14 @@ No description provided.
|
|
|
346
319
|
|
|
347
320
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
348
321
|
*/
|
|
349
|
-
let postChatMessagesUserTimeline = (~body: postChatMessagesUserTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
322
|
+
let postChatMessagesUserTimeline = async (~body: postChatMessagesUserTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesUserTimelineResponse => {
|
|
350
323
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesUserTimelineRequestSchema)
|
|
351
|
-
fetch(
|
|
324
|
+
let response = await fetch(
|
|
352
325
|
~url="/chat/messages/user-timeline",
|
|
353
326
|
~method_="POST",
|
|
354
327
|
~body=Some(jsonBody),
|
|
355
|
-
)
|
|
356
|
-
|
|
357
|
-
value
|
|
358
|
-
->Promise.resolve
|
|
359
|
-
})
|
|
328
|
+
)
|
|
329
|
+
response->S.parseOrThrow(postChatMessagesUserTimelineResponseSchema)
|
|
360
330
|
}
|
|
361
331
|
|
|
362
332
|
type postChatReadAllResponse = unit
|
|
@@ -368,17 +338,14 @@ No description provided.
|
|
|
368
338
|
|
|
369
339
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
370
340
|
*/
|
|
371
|
-
let postChatReadAll = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
341
|
+
let postChatReadAll = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatReadAllResponse => {
|
|
372
342
|
|
|
373
|
-
fetch(
|
|
343
|
+
let response = await fetch(
|
|
374
344
|
~url="/chat/read-all",
|
|
375
345
|
~method_="POST",
|
|
376
346
|
~body=None,
|
|
377
|
-
)
|
|
347
|
+
)
|
|
378
348
|
let _ = response
|
|
379
|
-
()
|
|
380
|
-
->Promise.resolve
|
|
381
|
-
})
|
|
382
349
|
}
|
|
383
350
|
|
|
384
351
|
type postChatRoomsCreateRequest = {
|
|
@@ -402,17 +369,14 @@ No description provided.
|
|
|
402
369
|
|
|
403
370
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
404
371
|
*/
|
|
405
|
-
let postChatRoomsCreate = (~body: postChatRoomsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
372
|
+
let postChatRoomsCreate = async (~body: postChatRoomsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsCreateResponse => {
|
|
406
373
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsCreateRequestSchema)
|
|
407
|
-
fetch(
|
|
374
|
+
let response = await fetch(
|
|
408
375
|
~url="/chat/rooms/create",
|
|
409
376
|
~method_="POST",
|
|
410
377
|
~body=Some(jsonBody),
|
|
411
|
-
)
|
|
412
|
-
|
|
413
|
-
value
|
|
414
|
-
->Promise.resolve
|
|
415
|
-
})
|
|
378
|
+
)
|
|
379
|
+
response->S.parseOrThrow(postChatRoomsCreateResponseSchema)
|
|
416
380
|
}
|
|
417
381
|
|
|
418
382
|
type postChatRoomsDeleteRequest = {
|
|
@@ -432,17 +396,14 @@ No description provided.
|
|
|
432
396
|
|
|
433
397
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
434
398
|
*/
|
|
435
|
-
let postChatRoomsDelete = (~body: postChatRoomsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
399
|
+
let postChatRoomsDelete = async (~body: postChatRoomsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsDeleteResponse => {
|
|
436
400
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsDeleteRequestSchema)
|
|
437
|
-
fetch(
|
|
401
|
+
let response = await fetch(
|
|
438
402
|
~url="/chat/rooms/delete",
|
|
439
403
|
~method_="POST",
|
|
440
404
|
~body=Some(jsonBody),
|
|
441
|
-
)
|
|
405
|
+
)
|
|
442
406
|
let _ = response
|
|
443
|
-
()
|
|
444
|
-
->Promise.resolve
|
|
445
|
-
})
|
|
446
407
|
}
|
|
447
408
|
|
|
448
409
|
type postChatRoomsInvitationsCancelRequest = {
|
|
@@ -462,17 +423,14 @@ No description provided.
|
|
|
462
423
|
|
|
463
424
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
464
425
|
*/
|
|
465
|
-
let postChatRoomsInvitationsCancel = (~body: postChatRoomsInvitationsCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
426
|
+
let postChatRoomsInvitationsCancel = async (~body: postChatRoomsInvitationsCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsCancelResponse => {
|
|
466
427
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsCancelRequestSchema)
|
|
467
|
-
fetch(
|
|
428
|
+
let response = await fetch(
|
|
468
429
|
~url="/chat/rooms/invitations/cancel",
|
|
469
430
|
~method_="POST",
|
|
470
431
|
~body=Some(jsonBody),
|
|
471
|
-
)
|
|
432
|
+
)
|
|
472
433
|
let _ = response
|
|
473
|
-
()
|
|
474
|
-
->Promise.resolve
|
|
475
|
-
})
|
|
476
434
|
}
|
|
477
435
|
|
|
478
436
|
type postChatRoomsInvitationsCreateRequest = {
|
|
@@ -496,17 +454,14 @@ No description provided.
|
|
|
496
454
|
|
|
497
455
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
498
456
|
*/
|
|
499
|
-
let postChatRoomsInvitationsCreate = (~body: postChatRoomsInvitationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
457
|
+
let postChatRoomsInvitationsCreate = async (~body: postChatRoomsInvitationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsCreateResponse => {
|
|
500
458
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsCreateRequestSchema)
|
|
501
|
-
fetch(
|
|
459
|
+
let response = await fetch(
|
|
502
460
|
~url="/chat/rooms/invitations/create",
|
|
503
461
|
~method_="POST",
|
|
504
462
|
~body=Some(jsonBody),
|
|
505
|
-
)
|
|
506
|
-
|
|
507
|
-
value
|
|
508
|
-
->Promise.resolve
|
|
509
|
-
})
|
|
463
|
+
)
|
|
464
|
+
response->S.parseOrThrow(postChatRoomsInvitationsCreateResponseSchema)
|
|
510
465
|
}
|
|
511
466
|
|
|
512
467
|
type postChatRoomsInvitationsIgnoreRequest = {
|
|
@@ -526,17 +481,14 @@ No description provided.
|
|
|
526
481
|
|
|
527
482
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
528
483
|
*/
|
|
529
|
-
let postChatRoomsInvitationsIgnore = (~body: postChatRoomsInvitationsIgnoreRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
484
|
+
let postChatRoomsInvitationsIgnore = async (~body: postChatRoomsInvitationsIgnoreRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsIgnoreResponse => {
|
|
530
485
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsIgnoreRequestSchema)
|
|
531
|
-
fetch(
|
|
486
|
+
let response = await fetch(
|
|
532
487
|
~url="/chat/rooms/invitations/ignore",
|
|
533
488
|
~method_="POST",
|
|
534
489
|
~body=Some(jsonBody),
|
|
535
|
-
)
|
|
490
|
+
)
|
|
536
491
|
let _ = response
|
|
537
|
-
()
|
|
538
|
-
->Promise.resolve
|
|
539
|
-
})
|
|
540
492
|
}
|
|
541
493
|
|
|
542
494
|
type postChatRoomsInvitationsInboxRequest = {
|
|
@@ -566,17 +518,14 @@ No description provided.
|
|
|
566
518
|
|
|
567
519
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
568
520
|
*/
|
|
569
|
-
let postChatRoomsInvitationsInbox = (~body: postChatRoomsInvitationsInboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
521
|
+
let postChatRoomsInvitationsInbox = async (~body: postChatRoomsInvitationsInboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsInboxResponse => {
|
|
570
522
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsInboxRequestSchema)
|
|
571
|
-
fetch(
|
|
523
|
+
let response = await fetch(
|
|
572
524
|
~url="/chat/rooms/invitations/inbox",
|
|
573
525
|
~method_="POST",
|
|
574
526
|
~body=Some(jsonBody),
|
|
575
|
-
)
|
|
576
|
-
|
|
577
|
-
value
|
|
578
|
-
->Promise.resolve
|
|
579
|
-
})
|
|
527
|
+
)
|
|
528
|
+
response->S.parseOrThrow(postChatRoomsInvitationsInboxResponseSchema)
|
|
580
529
|
}
|
|
581
530
|
|
|
582
531
|
type postChatRoomsInvitationsOutboxRequest = {
|
|
@@ -608,17 +557,14 @@ No description provided.
|
|
|
608
557
|
|
|
609
558
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
610
559
|
*/
|
|
611
|
-
let postChatRoomsInvitationsOutbox = (~body: postChatRoomsInvitationsOutboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
560
|
+
let postChatRoomsInvitationsOutbox = async (~body: postChatRoomsInvitationsOutboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsOutboxResponse => {
|
|
612
561
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsOutboxRequestSchema)
|
|
613
|
-
fetch(
|
|
562
|
+
let response = await fetch(
|
|
614
563
|
~url="/chat/rooms/invitations/outbox",
|
|
615
564
|
~method_="POST",
|
|
616
565
|
~body=Some(jsonBody),
|
|
617
|
-
)
|
|
618
|
-
|
|
619
|
-
value
|
|
620
|
-
->Promise.resolve
|
|
621
|
-
})
|
|
566
|
+
)
|
|
567
|
+
response->S.parseOrThrow(postChatRoomsInvitationsOutboxResponseSchema)
|
|
622
568
|
}
|
|
623
569
|
|
|
624
570
|
type postChatRoomsInvitationsRejectRequest = {
|
|
@@ -638,17 +584,14 @@ No description provided.
|
|
|
638
584
|
|
|
639
585
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
640
586
|
*/
|
|
641
|
-
let postChatRoomsInvitationsReject = (~body: postChatRoomsInvitationsRejectRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
587
|
+
let postChatRoomsInvitationsReject = async (~body: postChatRoomsInvitationsRejectRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsRejectResponse => {
|
|
642
588
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsRejectRequestSchema)
|
|
643
|
-
fetch(
|
|
589
|
+
let response = await fetch(
|
|
644
590
|
~url="/chat/rooms/invitations/reject",
|
|
645
591
|
~method_="POST",
|
|
646
592
|
~body=Some(jsonBody),
|
|
647
|
-
)
|
|
593
|
+
)
|
|
648
594
|
let _ = response
|
|
649
|
-
()
|
|
650
|
-
->Promise.resolve
|
|
651
|
-
})
|
|
652
595
|
}
|
|
653
596
|
|
|
654
597
|
type postChatRoomsJoinRequest = {
|
|
@@ -668,17 +611,14 @@ No description provided.
|
|
|
668
611
|
|
|
669
612
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
670
613
|
*/
|
|
671
|
-
let postChatRoomsJoin = (~body: postChatRoomsJoinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
614
|
+
let postChatRoomsJoin = async (~body: postChatRoomsJoinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsJoinResponse => {
|
|
672
615
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsJoinRequestSchema)
|
|
673
|
-
fetch(
|
|
616
|
+
let response = await fetch(
|
|
674
617
|
~url="/chat/rooms/join",
|
|
675
618
|
~method_="POST",
|
|
676
619
|
~body=Some(jsonBody),
|
|
677
|
-
)
|
|
620
|
+
)
|
|
678
621
|
let _ = response
|
|
679
|
-
()
|
|
680
|
-
->Promise.resolve
|
|
681
|
-
})
|
|
682
622
|
}
|
|
683
623
|
|
|
684
624
|
type postChatRoomsJoiningRequest = {
|
|
@@ -708,17 +648,14 @@ No description provided.
|
|
|
708
648
|
|
|
709
649
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
710
650
|
*/
|
|
711
|
-
let postChatRoomsJoining = (~body: postChatRoomsJoiningRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
651
|
+
let postChatRoomsJoining = async (~body: postChatRoomsJoiningRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsJoiningResponse => {
|
|
712
652
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsJoiningRequestSchema)
|
|
713
|
-
fetch(
|
|
653
|
+
let response = await fetch(
|
|
714
654
|
~url="/chat/rooms/joining",
|
|
715
655
|
~method_="POST",
|
|
716
656
|
~body=Some(jsonBody),
|
|
717
|
-
)
|
|
718
|
-
|
|
719
|
-
value
|
|
720
|
-
->Promise.resolve
|
|
721
|
-
})
|
|
657
|
+
)
|
|
658
|
+
response->S.parseOrThrow(postChatRoomsJoiningResponseSchema)
|
|
722
659
|
}
|
|
723
660
|
|
|
724
661
|
type postChatRoomsLeaveRequest = {
|
|
@@ -738,17 +675,14 @@ No description provided.
|
|
|
738
675
|
|
|
739
676
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
740
677
|
*/
|
|
741
|
-
let postChatRoomsLeave = (~body: postChatRoomsLeaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
678
|
+
let postChatRoomsLeave = async (~body: postChatRoomsLeaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsLeaveResponse => {
|
|
742
679
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsLeaveRequestSchema)
|
|
743
|
-
fetch(
|
|
680
|
+
let response = await fetch(
|
|
744
681
|
~url="/chat/rooms/leave",
|
|
745
682
|
~method_="POST",
|
|
746
683
|
~body=Some(jsonBody),
|
|
747
|
-
)
|
|
684
|
+
)
|
|
748
685
|
let _ = response
|
|
749
|
-
()
|
|
750
|
-
->Promise.resolve
|
|
751
|
-
})
|
|
752
686
|
}
|
|
753
687
|
|
|
754
688
|
type postChatRoomsMembersRequest = {
|
|
@@ -780,17 +714,14 @@ No description provided.
|
|
|
780
714
|
|
|
781
715
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
782
716
|
*/
|
|
783
|
-
let postChatRoomsMembers = (~body: postChatRoomsMembersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
717
|
+
let postChatRoomsMembers = async (~body: postChatRoomsMembersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsMembersResponse => {
|
|
784
718
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsMembersRequestSchema)
|
|
785
|
-
fetch(
|
|
719
|
+
let response = await fetch(
|
|
786
720
|
~url="/chat/rooms/members",
|
|
787
721
|
~method_="POST",
|
|
788
722
|
~body=Some(jsonBody),
|
|
789
|
-
)
|
|
790
|
-
|
|
791
|
-
value
|
|
792
|
-
->Promise.resolve
|
|
793
|
-
})
|
|
723
|
+
)
|
|
724
|
+
response->S.parseOrThrow(postChatRoomsMembersResponseSchema)
|
|
794
725
|
}
|
|
795
726
|
|
|
796
727
|
type postChatRoomsMuteRequest = {
|
|
@@ -812,17 +743,14 @@ No description provided.
|
|
|
812
743
|
|
|
813
744
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
814
745
|
*/
|
|
815
|
-
let postChatRoomsMute = (~body: postChatRoomsMuteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
746
|
+
let postChatRoomsMute = async (~body: postChatRoomsMuteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsMuteResponse => {
|
|
816
747
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsMuteRequestSchema)
|
|
817
|
-
fetch(
|
|
748
|
+
let response = await fetch(
|
|
818
749
|
~url="/chat/rooms/mute",
|
|
819
750
|
~method_="POST",
|
|
820
751
|
~body=Some(jsonBody),
|
|
821
|
-
)
|
|
752
|
+
)
|
|
822
753
|
let _ = response
|
|
823
|
-
()
|
|
824
|
-
->Promise.resolve
|
|
825
|
-
})
|
|
826
754
|
}
|
|
827
755
|
|
|
828
756
|
type postChatRoomsOwnedRequest = {
|
|
@@ -852,17 +780,14 @@ No description provided.
|
|
|
852
780
|
|
|
853
781
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
854
782
|
*/
|
|
855
|
-
let postChatRoomsOwned = (~body: postChatRoomsOwnedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
783
|
+
let postChatRoomsOwned = async (~body: postChatRoomsOwnedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsOwnedResponse => {
|
|
856
784
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsOwnedRequestSchema)
|
|
857
|
-
fetch(
|
|
785
|
+
let response = await fetch(
|
|
858
786
|
~url="/chat/rooms/owned",
|
|
859
787
|
~method_="POST",
|
|
860
788
|
~body=Some(jsonBody),
|
|
861
|
-
)
|
|
862
|
-
|
|
863
|
-
value
|
|
864
|
-
->Promise.resolve
|
|
865
|
-
})
|
|
789
|
+
)
|
|
790
|
+
response->S.parseOrThrow(postChatRoomsOwnedResponseSchema)
|
|
866
791
|
}
|
|
867
792
|
|
|
868
793
|
type postChatRoomsShowRequest = {
|
|
@@ -884,17 +809,14 @@ No description provided.
|
|
|
884
809
|
|
|
885
810
|
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
886
811
|
*/
|
|
887
|
-
let postChatRoomsShow = (~body: postChatRoomsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
812
|
+
let postChatRoomsShow = async (~body: postChatRoomsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsShowResponse => {
|
|
888
813
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsShowRequestSchema)
|
|
889
|
-
fetch(
|
|
814
|
+
let response = await fetch(
|
|
890
815
|
~url="/chat/rooms/show",
|
|
891
816
|
~method_="POST",
|
|
892
817
|
~body=Some(jsonBody),
|
|
893
|
-
)
|
|
894
|
-
|
|
895
|
-
value
|
|
896
|
-
->Promise.resolve
|
|
897
|
-
})
|
|
818
|
+
)
|
|
819
|
+
response->S.parseOrThrow(postChatRoomsShowResponseSchema)
|
|
898
820
|
}
|
|
899
821
|
|
|
900
822
|
type postChatRoomsUpdateRequest = {
|
|
@@ -920,15 +842,12 @@ No description provided.
|
|
|
920
842
|
|
|
921
843
|
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
922
844
|
*/
|
|
923
|
-
let postChatRoomsUpdate = (~body: postChatRoomsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
845
|
+
let postChatRoomsUpdate = async (~body: postChatRoomsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsUpdateResponse => {
|
|
924
846
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsUpdateRequestSchema)
|
|
925
|
-
fetch(
|
|
847
|
+
let response = await fetch(
|
|
926
848
|
~url="/chat/rooms/update",
|
|
927
849
|
~method_="POST",
|
|
928
850
|
~body=Some(jsonBody),
|
|
929
|
-
)
|
|
930
|
-
|
|
931
|
-
value
|
|
932
|
-
->Promise.resolve
|
|
933
|
-
})
|
|
851
|
+
)
|
|
852
|
+
response->S.parseOrThrow(postChatRoomsUpdateResponseSchema)
|
|
934
853
|
}
|
|
@@ -28,17 +28,14 @@ No description provided.
|
|
|
28
28
|
|
|
29
29
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
30
30
|
*/
|
|
31
|
-
let postClipsCreate = (~body: postClipsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
31
|
+
let postClipsCreate = async (~body: postClipsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsCreateResponse => {
|
|
32
32
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsCreateRequestSchema)
|
|
33
|
-
fetch(
|
|
33
|
+
let response = await fetch(
|
|
34
34
|
~url="/clips/create",
|
|
35
35
|
~method_="POST",
|
|
36
36
|
~body=Some(jsonBody),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
value
|
|
40
|
-
->Promise.resolve
|
|
41
|
-
})
|
|
37
|
+
)
|
|
38
|
+
response->S.parseOrThrow(postClipsCreateResponseSchema)
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
type postClipsListRequest = {
|
|
@@ -68,17 +65,14 @@ No description provided.
|
|
|
68
65
|
|
|
69
66
|
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
70
67
|
*/
|
|
71
|
-
let postClipsList = (~body: postClipsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
68
|
+
let postClipsList = async (~body: postClipsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsListResponse => {
|
|
72
69
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsListRequestSchema)
|
|
73
|
-
fetch(
|
|
70
|
+
let response = await fetch(
|
|
74
71
|
~url="/clips/list",
|
|
75
72
|
~method_="POST",
|
|
76
73
|
~body=Some(jsonBody),
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
value
|
|
80
|
-
->Promise.resolve
|
|
81
|
-
})
|
|
74
|
+
)
|
|
75
|
+
response->S.parseOrThrow(postClipsListResponseSchema)
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
type postClipsShowRequest = {
|
|
@@ -100,17 +94,14 @@ No description provided.
|
|
|
100
94
|
|
|
101
95
|
**Credential required**: *No* / **Permission**: *read:account*
|
|
102
96
|
*/
|
|
103
|
-
let postClipsShow = (~body: postClipsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
97
|
+
let postClipsShow = async (~body: postClipsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsShowResponse => {
|
|
104
98
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsShowRequestSchema)
|
|
105
|
-
fetch(
|
|
99
|
+
let response = await fetch(
|
|
106
100
|
~url="/clips/show",
|
|
107
101
|
~method_="POST",
|
|
108
102
|
~body=Some(jsonBody),
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
value
|
|
112
|
-
->Promise.resolve
|
|
113
|
-
})
|
|
103
|
+
)
|
|
104
|
+
response->S.parseOrThrow(postClipsShowResponseSchema)
|
|
114
105
|
}
|
|
115
106
|
|
|
116
107
|
type postClipsUpdateRequest = {
|
|
@@ -138,15 +129,12 @@ No description provided.
|
|
|
138
129
|
|
|
139
130
|
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
140
131
|
*/
|
|
141
|
-
let postClipsUpdate = (~body: postClipsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
132
|
+
let postClipsUpdate = async (~body: postClipsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsUpdateResponse => {
|
|
142
133
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsUpdateRequestSchema)
|
|
143
|
-
fetch(
|
|
134
|
+
let response = await fetch(
|
|
144
135
|
~url="/clips/update",
|
|
145
136
|
~method_="POST",
|
|
146
137
|
~body=Some(jsonBody),
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
value
|
|
150
|
-
->Promise.resolve
|
|
151
|
-
})
|
|
138
|
+
)
|
|
139
|
+
response->S.parseOrThrow(postClipsUpdateResponseSchema)
|
|
152
140
|
}
|