@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
|
@@ -9,9 +9,9 @@ let postAdminEmojiImportZipRequestSchema = S.object(s => ({
|
|
|
9
9
|
fileId: s.f("fileId", S.string)
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
|
-
function postAdminEmojiImportZip(body, fetch) {
|
|
12
|
+
async function postAdminEmojiImportZip(body, fetch) {
|
|
13
13
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postAdminEmojiImportZipRequestSchema);
|
|
14
|
-
|
|
14
|
+
await fetch("/admin/emoji/import-zip", "POST", jsonBody);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
let getBubbleGameRankingRequestSchema = S.object(s => ({
|
|
@@ -26,9 +26,10 @@ let getBubbleGameRankingResponse_1Schema = S.object(s => ({
|
|
|
26
26
|
|
|
27
27
|
let getBubbleGameRankingResponseSchema = S.array(getBubbleGameRankingResponse_1Schema);
|
|
28
28
|
|
|
29
|
-
function getBubbleGameRanking(body, fetch) {
|
|
29
|
+
async function getBubbleGameRanking(body, fetch) {
|
|
30
30
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, getBubbleGameRankingRequestSchema);
|
|
31
|
-
|
|
31
|
+
let response = await fetch("/bubble-game/ranking", "GET", jsonBody);
|
|
32
|
+
return S.parseOrThrow(response, getBubbleGameRankingResponseSchema);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
let postBubbleGameRankingRequestSchema = S.object(s => ({
|
|
@@ -43,9 +44,10 @@ let postBubbleGameRankingResponse_1Schema = S.object(s => ({
|
|
|
43
44
|
|
|
44
45
|
let postBubbleGameRankingResponseSchema = S.array(postBubbleGameRankingResponse_1Schema);
|
|
45
46
|
|
|
46
|
-
function postBubbleGameRanking(body, fetch) {
|
|
47
|
+
async function postBubbleGameRanking(body, fetch) {
|
|
47
48
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postBubbleGameRankingRequestSchema);
|
|
48
|
-
|
|
49
|
+
let response = await fetch("/bubble-game/ranking", "POST", jsonBody);
|
|
50
|
+
return S.parseOrThrow(response, postBubbleGameRankingResponseSchema);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
let postBubbleGameRegisterRequestSchema = S.object(s => ({
|
|
@@ -56,13 +58,13 @@ let postBubbleGameRegisterRequestSchema = S.object(s => ({
|
|
|
56
58
|
gameVersion: s.f("gameVersion", S.int)
|
|
57
59
|
}));
|
|
58
60
|
|
|
59
|
-
function postBubbleGameRegister(body, fetch) {
|
|
61
|
+
async function postBubbleGameRegister(body, fetch) {
|
|
60
62
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postBubbleGameRegisterRequestSchema);
|
|
61
|
-
|
|
63
|
+
await fetch("/bubble-game/register", "POST", jsonBody);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
function postExportCustomEmojis(fetch) {
|
|
65
|
-
|
|
66
|
+
async function postExportCustomEmojis(fetch) {
|
|
67
|
+
await fetch("/export-custom-emojis", "POST", undefined);
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
let postI2faDoneRequestSchema = S.object(s => ({
|
|
@@ -73,9 +75,10 @@ let postI2faDoneResponseSchema = S.object(s => ({
|
|
|
73
75
|
backupCodes: s.f("backupCodes", S.array(S.string))
|
|
74
76
|
}));
|
|
75
77
|
|
|
76
|
-
function postI2faDone(body, fetch) {
|
|
78
|
+
async function postI2faDone(body, fetch) {
|
|
77
79
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faDoneRequestSchema);
|
|
78
|
-
|
|
80
|
+
let response = await fetch("/i/2fa/done", "POST", jsonBody);
|
|
81
|
+
return S.parseOrThrow(response, postI2faDoneResponseSchema);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
let postI2faKeyDoneRequestSchema = S.object(s => ({
|
|
@@ -90,18 +93,19 @@ let postI2faKeyDoneResponseSchema = S.object(s => ({
|
|
|
90
93
|
name: s.f("name", S.string)
|
|
91
94
|
}));
|
|
92
95
|
|
|
93
|
-
function postI2faKeyDone(body, fetch) {
|
|
96
|
+
async function postI2faKeyDone(body, fetch) {
|
|
94
97
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faKeyDoneRequestSchema);
|
|
95
|
-
|
|
98
|
+
let response = await fetch("/i/2fa/key-done", "POST", jsonBody);
|
|
99
|
+
return S.parseOrThrow(response, postI2faKeyDoneResponseSchema);
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
let postI2faPasswordLessRequestSchema = S.object(s => ({
|
|
99
103
|
value: s.f("value", S.bool)
|
|
100
104
|
}));
|
|
101
105
|
|
|
102
|
-
function postI2faPasswordLess(body, fetch) {
|
|
106
|
+
async function postI2faPasswordLess(body, fetch) {
|
|
103
107
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faPasswordLessRequestSchema);
|
|
104
|
-
|
|
108
|
+
await fetch("/i/2fa/password-less", "POST", jsonBody);
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
let postI2faRegisterRequestSchema = S.object(s => ({
|
|
@@ -117,9 +121,10 @@ let postI2faRegisterResponseSchema = S.object(s => ({
|
|
|
117
121
|
issuer: s.f("issuer", S.string)
|
|
118
122
|
}));
|
|
119
123
|
|
|
120
|
-
function postI2faRegister(body, fetch) {
|
|
124
|
+
async function postI2faRegister(body, fetch) {
|
|
121
125
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faRegisterRequestSchema);
|
|
122
|
-
|
|
126
|
+
let response = await fetch("/i/2fa/register", "POST", jsonBody);
|
|
127
|
+
return S.parseOrThrow(response, postI2faRegisterResponseSchema);
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
let postI2faRegisterKeyRequestSchema = S.object(s => ({
|
|
@@ -166,9 +171,10 @@ let postI2faRegisterKeyResponseSchema = S.object(s => ({
|
|
|
166
171
|
extensions: s.f("extensions", S.nullableAsOption(postI2faRegisterKeyResponse_5Schema))
|
|
167
172
|
}));
|
|
168
173
|
|
|
169
|
-
function postI2faRegisterKey(body, fetch) {
|
|
174
|
+
async function postI2faRegisterKey(body, fetch) {
|
|
170
175
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faRegisterKeyRequestSchema);
|
|
171
|
-
|
|
176
|
+
let response = await fetch("/i/2fa/register-key", "POST", jsonBody);
|
|
177
|
+
return S.parseOrThrow(response, postI2faRegisterKeyResponseSchema);
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
let postI2faRemoveKeyRequestSchema = S.object(s => ({
|
|
@@ -177,9 +183,9 @@ let postI2faRemoveKeyRequestSchema = S.object(s => ({
|
|
|
177
183
|
credentialId: s.f("credentialId", S.string)
|
|
178
184
|
}));
|
|
179
185
|
|
|
180
|
-
function postI2faRemoveKey(body, fetch) {
|
|
186
|
+
async function postI2faRemoveKey(body, fetch) {
|
|
181
187
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faRemoveKeyRequestSchema);
|
|
182
|
-
|
|
188
|
+
await fetch("/i/2fa/remove-key", "POST", jsonBody);
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
let postI2faUnregisterRequestSchema = S.object(s => ({
|
|
@@ -187,9 +193,9 @@ let postI2faUnregisterRequestSchema = S.object(s => ({
|
|
|
187
193
|
token: s.f("token", S.option(S.string))
|
|
188
194
|
}));
|
|
189
195
|
|
|
190
|
-
function postI2faUnregister(body, fetch) {
|
|
196
|
+
async function postI2faUnregister(body, fetch) {
|
|
191
197
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faUnregisterRequestSchema);
|
|
192
|
-
|
|
198
|
+
await fetch("/i/2fa/unregister", "POST", jsonBody);
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
let postI2faUpdateKeyRequestSchema = S.object(s => ({
|
|
@@ -197,9 +203,9 @@ let postI2faUpdateKeyRequestSchema = S.object(s => ({
|
|
|
197
203
|
credentialId: s.f("credentialId", S.string)
|
|
198
204
|
}));
|
|
199
205
|
|
|
200
|
-
function postI2faUpdateKey(body, fetch) {
|
|
206
|
+
async function postI2faUpdateKey(body, fetch) {
|
|
201
207
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postI2faUpdateKeyRequestSchema);
|
|
202
|
-
|
|
208
|
+
await fetch("/i/2fa/update-key", "POST", jsonBody);
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
let postIAppsRequestSchema = S.object(s => ({
|
|
@@ -216,9 +222,10 @@ let postIAppsResponse_1Schema = S.object(s => ({
|
|
|
216
222
|
|
|
217
223
|
let postIAppsResponseSchema = S.array(postIAppsResponse_1Schema);
|
|
218
224
|
|
|
219
|
-
function postIApps(body, fetch) {
|
|
225
|
+
async function postIApps(body, fetch) {
|
|
220
226
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIAppsRequestSchema);
|
|
221
|
-
|
|
227
|
+
let response = await fetch("/i/apps", "POST", jsonBody);
|
|
228
|
+
return S.parseOrThrow(response, postIAppsResponseSchema);
|
|
222
229
|
}
|
|
223
230
|
|
|
224
231
|
let postIAuthorizedAppsRequestSchema = S.object(s => ({
|
|
@@ -237,9 +244,10 @@ let postIAuthorizedAppsResponse_1Schema = S.object(s => ({
|
|
|
237
244
|
|
|
238
245
|
let postIAuthorizedAppsResponseSchema = S.array(postIAuthorizedAppsResponse_1Schema);
|
|
239
246
|
|
|
240
|
-
function postIAuthorizedApps(body, fetch) {
|
|
247
|
+
async function postIAuthorizedApps(body, fetch) {
|
|
241
248
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIAuthorizedAppsRequestSchema);
|
|
242
|
-
|
|
249
|
+
let response = await fetch("/i/authorized-apps", "POST", jsonBody);
|
|
250
|
+
return S.parseOrThrow(response, postIAuthorizedAppsResponseSchema);
|
|
243
251
|
}
|
|
244
252
|
|
|
245
253
|
let postIChangePasswordRequestSchema = S.object(s => ({
|
|
@@ -248,18 +256,18 @@ let postIChangePasswordRequestSchema = S.object(s => ({
|
|
|
248
256
|
token: s.f("token", S.option(S.string))
|
|
249
257
|
}));
|
|
250
258
|
|
|
251
|
-
function postIChangePassword(body, fetch) {
|
|
259
|
+
async function postIChangePassword(body, fetch) {
|
|
252
260
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIChangePasswordRequestSchema);
|
|
253
|
-
|
|
261
|
+
await fetch("/i/change-password", "POST", jsonBody);
|
|
254
262
|
}
|
|
255
263
|
|
|
256
264
|
let postIClaimAchievementRequestSchema = S.object(s => ({
|
|
257
265
|
name: s.f("name", S.string)
|
|
258
266
|
}));
|
|
259
267
|
|
|
260
|
-
function postIClaimAchievement(body, fetch) {
|
|
268
|
+
async function postIClaimAchievement(body, fetch) {
|
|
261
269
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIClaimAchievementRequestSchema);
|
|
262
|
-
|
|
270
|
+
await fetch("/i/claim-achievement", "POST", jsonBody);
|
|
263
271
|
}
|
|
264
272
|
|
|
265
273
|
let postIDeleteAccountRequestSchema = S.object(s => ({
|
|
@@ -267,25 +275,25 @@ let postIDeleteAccountRequestSchema = S.object(s => ({
|
|
|
267
275
|
token: s.f("token", S.option(S.string))
|
|
268
276
|
}));
|
|
269
277
|
|
|
270
|
-
function postIDeleteAccount(body, fetch) {
|
|
278
|
+
async function postIDeleteAccount(body, fetch) {
|
|
271
279
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIDeleteAccountRequestSchema);
|
|
272
|
-
|
|
280
|
+
await fetch("/i/delete-account", "POST", jsonBody);
|
|
273
281
|
}
|
|
274
282
|
|
|
275
|
-
function postIExportAntennas(fetch) {
|
|
276
|
-
|
|
283
|
+
async function postIExportAntennas(fetch) {
|
|
284
|
+
await fetch("/i/export-antennas", "POST", undefined);
|
|
277
285
|
}
|
|
278
286
|
|
|
279
|
-
function postIExportBlocking(fetch) {
|
|
280
|
-
|
|
287
|
+
async function postIExportBlocking(fetch) {
|
|
288
|
+
await fetch("/i/export-blocking", "POST", undefined);
|
|
281
289
|
}
|
|
282
290
|
|
|
283
|
-
function postIExportClips(fetch) {
|
|
284
|
-
|
|
291
|
+
async function postIExportClips(fetch) {
|
|
292
|
+
await fetch("/i/export-clips", "POST", undefined);
|
|
285
293
|
}
|
|
286
294
|
|
|
287
|
-
function postIExportFavorites(fetch) {
|
|
288
|
-
|
|
295
|
+
async function postIExportFavorites(fetch) {
|
|
296
|
+
await fetch("/i/export-favorites", "POST", undefined);
|
|
289
297
|
}
|
|
290
298
|
|
|
291
299
|
let postIExportFollowingRequestSchema = S.object(s => ({
|
|
@@ -293,39 +301,39 @@ let postIExportFollowingRequestSchema = S.object(s => ({
|
|
|
293
301
|
excludeInactive: s.f("excludeInactive", S.option(S.bool))
|
|
294
302
|
}));
|
|
295
303
|
|
|
296
|
-
function postIExportFollowing(body, fetch) {
|
|
304
|
+
async function postIExportFollowing(body, fetch) {
|
|
297
305
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIExportFollowingRequestSchema);
|
|
298
|
-
|
|
306
|
+
await fetch("/i/export-following", "POST", jsonBody);
|
|
299
307
|
}
|
|
300
308
|
|
|
301
|
-
function postIExportMute(fetch) {
|
|
302
|
-
|
|
309
|
+
async function postIExportMute(fetch) {
|
|
310
|
+
await fetch("/i/export-mute", "POST", undefined);
|
|
303
311
|
}
|
|
304
312
|
|
|
305
|
-
function postIExportNotes(fetch) {
|
|
306
|
-
|
|
313
|
+
async function postIExportNotes(fetch) {
|
|
314
|
+
await fetch("/i/export-notes", "POST", undefined);
|
|
307
315
|
}
|
|
308
316
|
|
|
309
|
-
function postIExportUserLists(fetch) {
|
|
310
|
-
|
|
317
|
+
async function postIExportUserLists(fetch) {
|
|
318
|
+
await fetch("/i/export-user-lists", "POST", undefined);
|
|
311
319
|
}
|
|
312
320
|
|
|
313
321
|
let postIImportAntennasRequestSchema = S.object(s => ({
|
|
314
322
|
fileId: s.f("fileId", S.string)
|
|
315
323
|
}));
|
|
316
324
|
|
|
317
|
-
function postIImportAntennas(body, fetch) {
|
|
325
|
+
async function postIImportAntennas(body, fetch) {
|
|
318
326
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIImportAntennasRequestSchema);
|
|
319
|
-
|
|
327
|
+
await fetch("/i/import-antennas", "POST", jsonBody);
|
|
320
328
|
}
|
|
321
329
|
|
|
322
330
|
let postIImportBlockingRequestSchema = S.object(s => ({
|
|
323
331
|
fileId: s.f("fileId", S.string)
|
|
324
332
|
}));
|
|
325
333
|
|
|
326
|
-
function postIImportBlocking(body, fetch) {
|
|
334
|
+
async function postIImportBlocking(body, fetch) {
|
|
327
335
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIImportBlockingRequestSchema);
|
|
328
|
-
|
|
336
|
+
await fetch("/i/import-blocking", "POST", jsonBody);
|
|
329
337
|
}
|
|
330
338
|
|
|
331
339
|
let postIImportFollowingRequestSchema = S.object(s => ({
|
|
@@ -333,36 +341,36 @@ let postIImportFollowingRequestSchema = S.object(s => ({
|
|
|
333
341
|
withReplies: s.f("withReplies", S.option(S.bool))
|
|
334
342
|
}));
|
|
335
343
|
|
|
336
|
-
function postIImportFollowing(body, fetch) {
|
|
344
|
+
async function postIImportFollowing(body, fetch) {
|
|
337
345
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIImportFollowingRequestSchema);
|
|
338
|
-
|
|
346
|
+
await fetch("/i/import-following", "POST", jsonBody);
|
|
339
347
|
}
|
|
340
348
|
|
|
341
349
|
let postIImportMutingRequestSchema = S.object(s => ({
|
|
342
350
|
fileId: s.f("fileId", S.string)
|
|
343
351
|
}));
|
|
344
352
|
|
|
345
|
-
function postIImportMuting(body, fetch) {
|
|
353
|
+
async function postIImportMuting(body, fetch) {
|
|
346
354
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIImportMutingRequestSchema);
|
|
347
|
-
|
|
355
|
+
await fetch("/i/import-muting", "POST", jsonBody);
|
|
348
356
|
}
|
|
349
357
|
|
|
350
358
|
let postIImportUserListsRequestSchema = S.object(s => ({
|
|
351
359
|
fileId: s.f("fileId", S.string)
|
|
352
360
|
}));
|
|
353
361
|
|
|
354
|
-
function postIImportUserLists(body, fetch) {
|
|
362
|
+
async function postIImportUserLists(body, fetch) {
|
|
355
363
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIImportUserListsRequestSchema);
|
|
356
|
-
|
|
364
|
+
await fetch("/i/import-user-lists", "POST", jsonBody);
|
|
357
365
|
}
|
|
358
366
|
|
|
359
367
|
let postIRegenerateTokenRequestSchema = S.object(s => ({
|
|
360
368
|
password: s.f("password", S.string)
|
|
361
369
|
}));
|
|
362
370
|
|
|
363
|
-
function postIRegenerateToken(body, fetch) {
|
|
371
|
+
async function postIRegenerateToken(body, fetch) {
|
|
364
372
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegenerateTokenRequestSchema);
|
|
365
|
-
|
|
373
|
+
await fetch("/i/regenerate-token", "POST", jsonBody);
|
|
366
374
|
}
|
|
367
375
|
|
|
368
376
|
let postIRegistryGetRequestSchema = S.object(s => ({
|
|
@@ -373,9 +381,10 @@ let postIRegistryGetRequestSchema = S.object(s => ({
|
|
|
373
381
|
|
|
374
382
|
let postIRegistryGetResponseSchema = S.dict(S.json);
|
|
375
383
|
|
|
376
|
-
function postIRegistryGet(body, fetch) {
|
|
384
|
+
async function postIRegistryGet(body, fetch) {
|
|
377
385
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryGetRequestSchema);
|
|
378
|
-
|
|
386
|
+
let response = await fetch("/i/registry/get", "POST", jsonBody);
|
|
387
|
+
return S.parseOrThrow(response, postIRegistryGetResponseSchema);
|
|
379
388
|
}
|
|
380
389
|
|
|
381
390
|
let postIRegistryGetAllRequestSchema = S.object(s => ({
|
|
@@ -385,9 +394,10 @@ let postIRegistryGetAllRequestSchema = S.object(s => ({
|
|
|
385
394
|
|
|
386
395
|
let postIRegistryGetAllResponseSchema = S.dict(S.json);
|
|
387
396
|
|
|
388
|
-
function postIRegistryGetAll(body, fetch) {
|
|
397
|
+
async function postIRegistryGetAll(body, fetch) {
|
|
389
398
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryGetAllRequestSchema);
|
|
390
|
-
|
|
399
|
+
let response = await fetch("/i/registry/get-all", "POST", jsonBody);
|
|
400
|
+
return S.parseOrThrow(response, postIRegistryGetAllResponseSchema);
|
|
391
401
|
}
|
|
392
402
|
|
|
393
403
|
let postIRegistryGetDetailRequestSchema = S.object(s => ({
|
|
@@ -401,9 +411,10 @@ let postIRegistryGetDetailResponseSchema = S.object(s => ({
|
|
|
401
411
|
value: s.f("value", S.json)
|
|
402
412
|
}));
|
|
403
413
|
|
|
404
|
-
function postIRegistryGetDetail(body, fetch) {
|
|
414
|
+
async function postIRegistryGetDetail(body, fetch) {
|
|
405
415
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryGetDetailRequestSchema);
|
|
406
|
-
|
|
416
|
+
let response = await fetch("/i/registry/get-detail", "POST", jsonBody);
|
|
417
|
+
return S.parseOrThrow(response, postIRegistryGetDetailResponseSchema);
|
|
407
418
|
}
|
|
408
419
|
|
|
409
420
|
let postIRegistryKeysRequestSchema = S.object(s => ({
|
|
@@ -413,9 +424,10 @@ let postIRegistryKeysRequestSchema = S.object(s => ({
|
|
|
413
424
|
|
|
414
425
|
let postIRegistryKeysResponseSchema = S.array(S.string);
|
|
415
426
|
|
|
416
|
-
function postIRegistryKeys(body, fetch) {
|
|
427
|
+
async function postIRegistryKeys(body, fetch) {
|
|
417
428
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryKeysRequestSchema);
|
|
418
|
-
|
|
429
|
+
let response = await fetch("/i/registry/keys", "POST", jsonBody);
|
|
430
|
+
return S.parseOrThrow(response, postIRegistryKeysResponseSchema);
|
|
419
431
|
}
|
|
420
432
|
|
|
421
433
|
let postIRegistryKeysWithTypeRequestSchema = S.object(s => ({
|
|
@@ -425,9 +437,10 @@ let postIRegistryKeysWithTypeRequestSchema = S.object(s => ({
|
|
|
425
437
|
|
|
426
438
|
let postIRegistryKeysWithTypeResponseSchema = S.dict(S.json);
|
|
427
439
|
|
|
428
|
-
function postIRegistryKeysWithType(body, fetch) {
|
|
440
|
+
async function postIRegistryKeysWithType(body, fetch) {
|
|
429
441
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryKeysWithTypeRequestSchema);
|
|
430
|
-
|
|
442
|
+
let response = await fetch("/i/registry/keys-with-type", "POST", jsonBody);
|
|
443
|
+
return S.parseOrThrow(response, postIRegistryKeysWithTypeResponseSchema);
|
|
431
444
|
}
|
|
432
445
|
|
|
433
446
|
let postIRegistryRemoveRequestSchema = S.object(s => ({
|
|
@@ -436,9 +449,9 @@ let postIRegistryRemoveRequestSchema = S.object(s => ({
|
|
|
436
449
|
domain: s.f("domain", S.option(S.string))
|
|
437
450
|
}));
|
|
438
451
|
|
|
439
|
-
function postIRegistryRemove(body, fetch) {
|
|
452
|
+
async function postIRegistryRemove(body, fetch) {
|
|
440
453
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistryRemoveRequestSchema);
|
|
441
|
-
|
|
454
|
+
await fetch("/i/registry/remove", "POST", jsonBody);
|
|
442
455
|
}
|
|
443
456
|
|
|
444
457
|
let postIRegistryScopesWithDomainResponse_1Schema = S.object(s => ({
|
|
@@ -448,8 +461,9 @@ let postIRegistryScopesWithDomainResponse_1Schema = S.object(s => ({
|
|
|
448
461
|
|
|
449
462
|
let postIRegistryScopesWithDomainResponseSchema = S.array(postIRegistryScopesWithDomainResponse_1Schema);
|
|
450
463
|
|
|
451
|
-
function postIRegistryScopesWithDomain(fetch) {
|
|
452
|
-
|
|
464
|
+
async function postIRegistryScopesWithDomain(fetch) {
|
|
465
|
+
let response = await fetch("/i/registry/scopes-with-domain", "POST", undefined);
|
|
466
|
+
return S.parseOrThrow(response, postIRegistryScopesWithDomainResponseSchema);
|
|
453
467
|
}
|
|
454
468
|
|
|
455
469
|
let postIRegistrySetRequestSchema = S.object(s => ({
|
|
@@ -459,9 +473,9 @@ let postIRegistrySetRequestSchema = S.object(s => ({
|
|
|
459
473
|
domain: s.f("domain", S.option(S.string))
|
|
460
474
|
}));
|
|
461
475
|
|
|
462
|
-
function postIRegistrySet(body, fetch) {
|
|
476
|
+
async function postIRegistrySet(body, fetch) {
|
|
463
477
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRegistrySetRequestSchema);
|
|
464
|
-
|
|
478
|
+
await fetch("/i/registry/set", "POST", jsonBody);
|
|
465
479
|
}
|
|
466
480
|
|
|
467
481
|
let postIRevokeTokenRequestSchema = S.object(s => ({
|
|
@@ -469,9 +483,9 @@ let postIRevokeTokenRequestSchema = S.object(s => ({
|
|
|
469
483
|
token: s.f("token", S.option(S.string))
|
|
470
484
|
}));
|
|
471
485
|
|
|
472
|
-
function postIRevokeToken(body, fetch) {
|
|
486
|
+
async function postIRevokeToken(body, fetch) {
|
|
473
487
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRevokeTokenRequestSchema);
|
|
474
|
-
|
|
488
|
+
await fetch("/i/revoke-token", "POST", jsonBody);
|
|
475
489
|
}
|
|
476
490
|
|
|
477
491
|
let postISigninHistoryRequestSchema = S.object(s => ({
|
|
@@ -482,9 +496,10 @@ let postISigninHistoryRequestSchema = S.object(s => ({
|
|
|
482
496
|
|
|
483
497
|
let postISigninHistoryResponseSchema = S.array(MisskeyIoComponentSchemas.Signin.schema);
|
|
484
498
|
|
|
485
|
-
function postISigninHistory(body, fetch) {
|
|
499
|
+
async function postISigninHistory(body, fetch) {
|
|
486
500
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postISigninHistoryRequestSchema);
|
|
487
|
-
|
|
501
|
+
let response = await fetch("/i/signin-history", "POST", jsonBody);
|
|
502
|
+
return S.parseOrThrow(response, postISigninHistoryResponseSchema);
|
|
488
503
|
}
|
|
489
504
|
|
|
490
505
|
let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
@@ -495,9 +510,10 @@ let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
|
495
510
|
|
|
496
511
|
let postIUpdateEmailResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema;
|
|
497
512
|
|
|
498
|
-
function postIUpdateEmail(body, fetch) {
|
|
513
|
+
async function postIUpdateEmail(body, fetch) {
|
|
499
514
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIUpdateEmailRequestSchema);
|
|
500
|
-
|
|
515
|
+
let response = await fetch("/i/update-email", "POST", jsonBody);
|
|
516
|
+
return S.parseOrThrow(response, postIUpdateEmailResponseSchema);
|
|
501
517
|
}
|
|
502
518
|
|
|
503
519
|
let postPagePushRequestSchema = S.object(s => ({
|
|
@@ -506,18 +522,18 @@ let postPagePushRequestSchema = S.object(s => ({
|
|
|
506
522
|
var: s.f("var", S.option(S.json))
|
|
507
523
|
}));
|
|
508
524
|
|
|
509
|
-
function postPagePush(body, fetch) {
|
|
525
|
+
async function postPagePush(body, fetch) {
|
|
510
526
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postPagePushRequestSchema);
|
|
511
|
-
|
|
527
|
+
await fetch("/page-push", "POST", jsonBody);
|
|
512
528
|
}
|
|
513
529
|
|
|
514
530
|
let postReversiCancelMatchRequestSchema = S.object(s => ({
|
|
515
531
|
userId: s.f("userId", S.option(S.string))
|
|
516
532
|
}));
|
|
517
533
|
|
|
518
|
-
function postReversiCancelMatch(body, fetch) {
|
|
534
|
+
async function postReversiCancelMatch(body, fetch) {
|
|
519
535
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiCancelMatchRequestSchema);
|
|
520
|
-
|
|
536
|
+
await fetch("/reversi/cancel-match", "POST", jsonBody);
|
|
521
537
|
}
|
|
522
538
|
|
|
523
539
|
let postReversiGamesRequestSchema = S.object(s => ({
|
|
@@ -529,15 +545,17 @@ let postReversiGamesRequestSchema = S.object(s => ({
|
|
|
529
545
|
|
|
530
546
|
let postReversiGamesResponseSchema = S.array(MisskeyIoComponentSchemas.ReversiGameLite.schema);
|
|
531
547
|
|
|
532
|
-
function postReversiGames(body, fetch) {
|
|
548
|
+
async function postReversiGames(body, fetch) {
|
|
533
549
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiGamesRequestSchema);
|
|
534
|
-
|
|
550
|
+
let response = await fetch("/reversi/games", "POST", jsonBody);
|
|
551
|
+
return S.parseOrThrow(response, postReversiGamesResponseSchema);
|
|
535
552
|
}
|
|
536
553
|
|
|
537
554
|
let postReversiInvitationsResponseSchema = S.array(MisskeyIoComponentSchemas.UserLite.schema);
|
|
538
555
|
|
|
539
|
-
function postReversiInvitations(fetch) {
|
|
540
|
-
|
|
556
|
+
async function postReversiInvitations(fetch) {
|
|
557
|
+
let response = await fetch("/reversi/invitations", "POST", undefined);
|
|
558
|
+
return S.parseOrThrow(response, postReversiInvitationsResponseSchema);
|
|
541
559
|
}
|
|
542
560
|
|
|
543
561
|
let postReversiMatchRequestSchema = S.object(s => ({
|
|
@@ -548,9 +566,10 @@ let postReversiMatchRequestSchema = S.object(s => ({
|
|
|
548
566
|
|
|
549
567
|
let postReversiMatchResponseSchema = S.dict(S.json);
|
|
550
568
|
|
|
551
|
-
function postReversiMatch(body, fetch) {
|
|
569
|
+
async function postReversiMatch(body, fetch) {
|
|
552
570
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiMatchRequestSchema);
|
|
553
|
-
|
|
571
|
+
let response = await fetch("/reversi/match", "POST", jsonBody);
|
|
572
|
+
return S.parseOrThrow(response, postReversiMatchResponseSchema);
|
|
554
573
|
}
|
|
555
574
|
|
|
556
575
|
let postReversiShowGameRequestSchema = S.object(s => ({
|
|
@@ -559,18 +578,19 @@ let postReversiShowGameRequestSchema = S.object(s => ({
|
|
|
559
578
|
|
|
560
579
|
let postReversiShowGameResponseSchema = MisskeyIoComponentSchemas.ReversiGameDetailed.schema;
|
|
561
580
|
|
|
562
|
-
function postReversiShowGame(body, fetch) {
|
|
581
|
+
async function postReversiShowGame(body, fetch) {
|
|
563
582
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiShowGameRequestSchema);
|
|
564
|
-
|
|
583
|
+
let response = await fetch("/reversi/show-game", "POST", jsonBody);
|
|
584
|
+
return S.parseOrThrow(response, postReversiShowGameResponseSchema);
|
|
565
585
|
}
|
|
566
586
|
|
|
567
587
|
let postReversiSurrenderRequestSchema = S.object(s => ({
|
|
568
588
|
gameId: s.f("gameId", S.string)
|
|
569
589
|
}));
|
|
570
590
|
|
|
571
|
-
function postReversiSurrender(body, fetch) {
|
|
591
|
+
async function postReversiSurrender(body, fetch) {
|
|
572
592
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiSurrenderRequestSchema);
|
|
573
|
-
|
|
593
|
+
await fetch("/reversi/surrender", "POST", jsonBody);
|
|
574
594
|
}
|
|
575
595
|
|
|
576
596
|
let postReversiVerifyRequestSchema = S.object(s => ({
|
|
@@ -583,9 +603,10 @@ let postReversiVerifyResponseSchema = S.object(s => ({
|
|
|
583
603
|
game: s.f("game", S.option(MisskeyIoComponentSchemas.ReversiGameDetailed.schema))
|
|
584
604
|
}));
|
|
585
605
|
|
|
586
|
-
function postReversiVerify(body, fetch) {
|
|
606
|
+
async function postReversiVerify(body, fetch) {
|
|
587
607
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiVerifyRequestSchema);
|
|
588
|
-
|
|
608
|
+
let response = await fetch("/reversi/verify", "POST", jsonBody);
|
|
609
|
+
return S.parseOrThrow(response, postReversiVerifyResponseSchema);
|
|
589
610
|
}
|
|
590
611
|
|
|
591
612
|
let postUsersAchievementsRequestSchema = S.object(s => ({
|
|
@@ -599,9 +620,10 @@ let postUsersAchievementsResponse_1Schema = S.object(s => ({
|
|
|
599
620
|
|
|
600
621
|
let postUsersAchievementsResponseSchema = S.array(postUsersAchievementsResponse_1Schema);
|
|
601
622
|
|
|
602
|
-
function postUsersAchievements(body, fetch) {
|
|
623
|
+
async function postUsersAchievements(body, fetch) {
|
|
603
624
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postUsersAchievementsRequestSchema);
|
|
604
|
-
|
|
625
|
+
let response = await fetch("/users/achievements", "POST", jsonBody);
|
|
626
|
+
return S.parseOrThrow(response, postUsersAchievementsResponseSchema);
|
|
605
627
|
}
|
|
606
628
|
|
|
607
629
|
let postUsersListsCreateFromPublicRequestSchema = S.object(s => ({
|
|
@@ -611,27 +633,28 @@ let postUsersListsCreateFromPublicRequestSchema = S.object(s => ({
|
|
|
611
633
|
|
|
612
634
|
let postUsersListsCreateFromPublicResponseSchema = MisskeyIoComponentSchemas.UserList.schema;
|
|
613
635
|
|
|
614
|
-
function postUsersListsCreateFromPublic(body, fetch) {
|
|
636
|
+
async function postUsersListsCreateFromPublic(body, fetch) {
|
|
615
637
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postUsersListsCreateFromPublicRequestSchema);
|
|
616
|
-
|
|
638
|
+
let response = await fetch("/users/lists/create-from-public", "POST", jsonBody);
|
|
639
|
+
return S.parseOrThrow(response, postUsersListsCreateFromPublicResponseSchema);
|
|
617
640
|
}
|
|
618
641
|
|
|
619
642
|
let postUsersListsFavoriteRequestSchema = S.object(s => ({
|
|
620
643
|
listId: s.f("listId", S.string)
|
|
621
644
|
}));
|
|
622
645
|
|
|
623
|
-
function postUsersListsFavorite(body, fetch) {
|
|
646
|
+
async function postUsersListsFavorite(body, fetch) {
|
|
624
647
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postUsersListsFavoriteRequestSchema);
|
|
625
|
-
|
|
648
|
+
await fetch("/users/lists/favorite", "POST", jsonBody);
|
|
626
649
|
}
|
|
627
650
|
|
|
628
651
|
let postUsersListsUnfavoriteRequestSchema = S.object(s => ({
|
|
629
652
|
listId: s.f("listId", S.string)
|
|
630
653
|
}));
|
|
631
654
|
|
|
632
|
-
function postUsersListsUnfavorite(body, fetch) {
|
|
655
|
+
async function postUsersListsUnfavorite(body, fetch) {
|
|
633
656
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postUsersListsUnfavoriteRequestSchema);
|
|
634
|
-
|
|
657
|
+
await fetch("/users/lists/unfavorite", "POST", jsonBody);
|
|
635
658
|
}
|
|
636
659
|
|
|
637
660
|
export {
|