@f3liz/rescript-misskey-api 0.6.4 → 0.6.6
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/generated/kokonect-link/api/KokonectLinkAccount.mjs +141 -141
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +328 -328
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +1 -1
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +29 -29
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +4 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +47 -47
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.mjs +174 -174
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +44 -44
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +31 -31
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +6 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +13 -13
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +11 -11
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +3 -3
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +8 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +14 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +251 -251
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +15 -15
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +51 -51
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +6 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +115 -115
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +377 -377
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +21 -21
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +1 -1
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +3 -3
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +23 -23
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +48 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +5 -5
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoComponentSchemas.mjs +148 -148
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +44 -44
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +39 -39
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +33 -33
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +85 -85
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +147 -147
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +2 -2
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +20 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +69 -69
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +12 -12
- package/package.json +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +141 -141
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +328 -328
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +1 -1
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +29 -29
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +4 -4
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +47 -47
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.res +174 -174
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +44 -44
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +31 -31
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +6 -6
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +13 -13
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +11 -11
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +3 -3
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +8 -8
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +14 -14
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +251 -251
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +15 -15
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +51 -51
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +6 -6
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +115 -115
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +376 -376
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +21 -21
- package/src/generated/misskey-io/api/MisskeyIoApp.res +1 -1
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +3 -3
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +23 -23
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +48 -48
- package/src/generated/misskey-io/api/MisskeyIoClips.res +5 -5
- package/src/generated/misskey-io/api/MisskeyIoComponentSchemas.res +148 -148
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +44 -44
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +39 -39
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +33 -33
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoLists.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +85 -85
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +147 -147
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +2 -2
- package/src/generated/misskey-io/api/MisskeyIoPages.res +20 -20
- package/src/generated/misskey-io/api/MisskeyIoRole.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +69 -69
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +12 -12
|
@@ -21,7 +21,7 @@ let getBubbleGameRankingRequestSchema = S.object(s => ({
|
|
|
21
21
|
let getBubbleGameRankingResponse_1Schema = S.object(s => ({
|
|
22
22
|
id: s.f("id", S.string),
|
|
23
23
|
score: s.f("score", S.int),
|
|
24
|
-
user: s.
|
|
24
|
+
user: s.f("user", S.option(S.dict(S.json)))
|
|
25
25
|
}));
|
|
26
26
|
|
|
27
27
|
let getBubbleGameRankingResponseSchema = S.array(getBubbleGameRankingResponse_1Schema);
|
|
@@ -38,7 +38,7 @@ let postBubbleGameRankingRequestSchema = S.object(s => ({
|
|
|
38
38
|
let postBubbleGameRankingResponse_1Schema = S.object(s => ({
|
|
39
39
|
id: s.f("id", S.string),
|
|
40
40
|
score: s.f("score", S.int),
|
|
41
|
-
user: s.
|
|
41
|
+
user: s.f("user", S.option(S.dict(S.json)))
|
|
42
42
|
}));
|
|
43
43
|
|
|
44
44
|
let postBubbleGameRankingResponseSchema = S.array(postBubbleGameRankingResponse_1Schema);
|
|
@@ -80,7 +80,7 @@ function postI2faDone(body, fetch) {
|
|
|
80
80
|
|
|
81
81
|
let postI2faKeyDoneRequestSchema = S.object(s => ({
|
|
82
82
|
password: s.f("password", S.string),
|
|
83
|
-
token: s.
|
|
83
|
+
token: s.f("token", S.option(S.string)),
|
|
84
84
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 30, undefined)),
|
|
85
85
|
credential: s.f("credential", S.dict(S.json))
|
|
86
86
|
}));
|
|
@@ -106,7 +106,7 @@ function postI2faPasswordLess(body, fetch) {
|
|
|
106
106
|
|
|
107
107
|
let postI2faRegisterRequestSchema = S.object(s => ({
|
|
108
108
|
password: s.f("password", S.string),
|
|
109
|
-
token: s.
|
|
109
|
+
token: s.f("token", S.option(S.string))
|
|
110
110
|
}));
|
|
111
111
|
|
|
112
112
|
let postI2faRegisterResponseSchema = S.object(s => ({
|
|
@@ -124,7 +124,7 @@ function postI2faRegister(body, fetch) {
|
|
|
124
124
|
|
|
125
125
|
let postI2faRegisterKeyRequestSchema = S.object(s => ({
|
|
126
126
|
password: s.f("password", S.string),
|
|
127
|
-
token: s.
|
|
127
|
+
token: s.f("token", S.option(S.string))
|
|
128
128
|
}));
|
|
129
129
|
|
|
130
130
|
let postI2faRegisterKeyResponse_5Schema = S.object(s => ({
|
|
@@ -151,7 +151,7 @@ let postI2faRegisterKeyResponse_2Schema = S.object(s => ({
|
|
|
151
151
|
}));
|
|
152
152
|
|
|
153
153
|
let postI2faRegisterKeyResponse_1Schema = S.object(s => ({
|
|
154
|
-
id: s.
|
|
154
|
+
id: s.f("id", S.option(S.string))
|
|
155
155
|
}));
|
|
156
156
|
|
|
157
157
|
let postI2faRegisterKeyResponseSchema = S.object(s => ({
|
|
@@ -173,7 +173,7 @@ function postI2faRegisterKey(body, fetch) {
|
|
|
173
173
|
|
|
174
174
|
let postI2faRemoveKeyRequestSchema = S.object(s => ({
|
|
175
175
|
password: s.f("password", S.string),
|
|
176
|
-
token: s.
|
|
176
|
+
token: s.f("token", S.option(S.string)),
|
|
177
177
|
credentialId: s.f("credentialId", S.string)
|
|
178
178
|
}));
|
|
179
179
|
|
|
@@ -184,7 +184,7 @@ function postI2faRemoveKey(body, fetch) {
|
|
|
184
184
|
|
|
185
185
|
let postI2faUnregisterRequestSchema = S.object(s => ({
|
|
186
186
|
password: s.f("password", S.string),
|
|
187
|
-
token: s.
|
|
187
|
+
token: s.f("token", S.option(S.string))
|
|
188
188
|
}));
|
|
189
189
|
|
|
190
190
|
function postI2faUnregister(body, fetch) {
|
|
@@ -203,14 +203,14 @@ function postI2faUpdateKey(body, fetch) {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
let postIAppsRequestSchema = S.object(s => ({
|
|
206
|
-
sort: s.
|
|
206
|
+
sort: s.f("sort", S.option(S.string))
|
|
207
207
|
}));
|
|
208
208
|
|
|
209
209
|
let postIAppsResponse_1Schema = S.object(s => ({
|
|
210
210
|
id: s.f("id", S.string),
|
|
211
|
-
name: s.
|
|
211
|
+
name: s.f("name", S.option(S.string)),
|
|
212
212
|
createdAt: s.f("createdAt", S.string),
|
|
213
|
-
lastUsedAt: s.
|
|
213
|
+
lastUsedAt: s.f("lastUsedAt", S.option(S.string)),
|
|
214
214
|
permission: s.f("permission", S.array(S.string))
|
|
215
215
|
}));
|
|
216
216
|
|
|
@@ -222,9 +222,9 @@ function postIApps(body, fetch) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
let postIAuthorizedAppsRequestSchema = S.object(s => ({
|
|
225
|
-
limit: s.
|
|
226
|
-
offset: s.
|
|
227
|
-
sort: s.
|
|
225
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
226
|
+
offset: s.f("offset", S.option(S.int)),
|
|
227
|
+
sort: s.f("sort", S.option(S.string))
|
|
228
228
|
}));
|
|
229
229
|
|
|
230
230
|
let postIAuthorizedAppsResponse_1Schema = S.object(s => ({
|
|
@@ -232,7 +232,7 @@ let postIAuthorizedAppsResponse_1Schema = S.object(s => ({
|
|
|
232
232
|
name: s.f("name", S.string),
|
|
233
233
|
callbackUrl: s.f("callbackUrl", S.nullableAsOption(S.string)),
|
|
234
234
|
permission: s.f("permission", S.array(S.string)),
|
|
235
|
-
isAuthorized: s.
|
|
235
|
+
isAuthorized: s.f("isAuthorized", S.option(S.bool))
|
|
236
236
|
}));
|
|
237
237
|
|
|
238
238
|
let postIAuthorizedAppsResponseSchema = S.array(postIAuthorizedAppsResponse_1Schema);
|
|
@@ -245,7 +245,7 @@ function postIAuthorizedApps(body, fetch) {
|
|
|
245
245
|
let postIChangePasswordRequestSchema = S.object(s => ({
|
|
246
246
|
currentPassword: s.f("currentPassword", S.string),
|
|
247
247
|
newPassword: s.f("newPassword", S.min(S.string, 1, undefined)),
|
|
248
|
-
token: s.
|
|
248
|
+
token: s.f("token", S.option(S.string))
|
|
249
249
|
}));
|
|
250
250
|
|
|
251
251
|
function postIChangePassword(body, fetch) {
|
|
@@ -264,7 +264,7 @@ function postIClaimAchievement(body, fetch) {
|
|
|
264
264
|
|
|
265
265
|
let postIDeleteAccountRequestSchema = S.object(s => ({
|
|
266
266
|
password: s.f("password", S.string),
|
|
267
|
-
token: s.
|
|
267
|
+
token: s.f("token", S.option(S.string))
|
|
268
268
|
}));
|
|
269
269
|
|
|
270
270
|
function postIDeleteAccount(body, fetch) {
|
|
@@ -289,8 +289,8 @@ function postIExportFavorites(fetch) {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
let postIExportFollowingRequestSchema = S.object(s => ({
|
|
292
|
-
excludeMuting: s.
|
|
293
|
-
excludeInactive: s.
|
|
292
|
+
excludeMuting: s.f("excludeMuting", S.option(S.bool)),
|
|
293
|
+
excludeInactive: s.f("excludeInactive", S.option(S.bool))
|
|
294
294
|
}));
|
|
295
295
|
|
|
296
296
|
function postIExportFollowing(body, fetch) {
|
|
@@ -330,7 +330,7 @@ function postIImportBlocking(body, fetch) {
|
|
|
330
330
|
|
|
331
331
|
let postIImportFollowingRequestSchema = S.object(s => ({
|
|
332
332
|
fileId: s.f("fileId", S.string),
|
|
333
|
-
withReplies: s.
|
|
333
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
334
334
|
}));
|
|
335
335
|
|
|
336
336
|
function postIImportFollowing(body, fetch) {
|
|
@@ -368,7 +368,7 @@ function postIRegenerateToken(body, fetch) {
|
|
|
368
368
|
let postIRegistryGetRequestSchema = S.object(s => ({
|
|
369
369
|
key: s.f("key", S.string),
|
|
370
370
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
371
|
-
domain: s.
|
|
371
|
+
domain: s.f("domain", S.option(S.string))
|
|
372
372
|
}));
|
|
373
373
|
|
|
374
374
|
let postIRegistryGetResponseSchema = S.dict(S.json);
|
|
@@ -380,7 +380,7 @@ function postIRegistryGet(body, fetch) {
|
|
|
380
380
|
|
|
381
381
|
let postIRegistryGetAllRequestSchema = S.object(s => ({
|
|
382
382
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
383
|
-
domain: s.
|
|
383
|
+
domain: s.f("domain", S.option(S.string))
|
|
384
384
|
}));
|
|
385
385
|
|
|
386
386
|
let postIRegistryGetAllResponseSchema = S.dict(S.json);
|
|
@@ -393,7 +393,7 @@ function postIRegistryGetAll(body, fetch) {
|
|
|
393
393
|
let postIRegistryGetDetailRequestSchema = S.object(s => ({
|
|
394
394
|
key: s.f("key", S.string),
|
|
395
395
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
396
|
-
domain: s.
|
|
396
|
+
domain: s.f("domain", S.option(S.string))
|
|
397
397
|
}));
|
|
398
398
|
|
|
399
399
|
let postIRegistryGetDetailResponseSchema = S.object(s => ({
|
|
@@ -408,7 +408,7 @@ function postIRegistryGetDetail(body, fetch) {
|
|
|
408
408
|
|
|
409
409
|
let postIRegistryKeysRequestSchema = S.object(s => ({
|
|
410
410
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
411
|
-
domain: s.
|
|
411
|
+
domain: s.f("domain", S.option(S.string))
|
|
412
412
|
}));
|
|
413
413
|
|
|
414
414
|
let postIRegistryKeysResponseSchema = S.array(S.string);
|
|
@@ -420,7 +420,7 @@ function postIRegistryKeys(body, fetch) {
|
|
|
420
420
|
|
|
421
421
|
let postIRegistryKeysWithTypeRequestSchema = S.object(s => ({
|
|
422
422
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
423
|
-
domain: s.
|
|
423
|
+
domain: s.f("domain", S.option(S.string))
|
|
424
424
|
}));
|
|
425
425
|
|
|
426
426
|
let postIRegistryKeysWithTypeResponseSchema = S.dict(S.json);
|
|
@@ -433,7 +433,7 @@ function postIRegistryKeysWithType(body, fetch) {
|
|
|
433
433
|
let postIRegistryRemoveRequestSchema = S.object(s => ({
|
|
434
434
|
key: s.f("key", S.string),
|
|
435
435
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
436
|
-
domain: s.
|
|
436
|
+
domain: s.f("domain", S.option(S.string))
|
|
437
437
|
}));
|
|
438
438
|
|
|
439
439
|
function postIRegistryRemove(body, fetch) {
|
|
@@ -456,7 +456,7 @@ let postIRegistrySetRequestSchema = S.object(s => ({
|
|
|
456
456
|
key: s.f("key", S.min(S.string, 1, undefined)),
|
|
457
457
|
value: s.f("value", S.json),
|
|
458
458
|
scope: s.f("scope", S.array(S.pattern(S.string, /^[a-zA-Z0-9_]+$/, undefined))),
|
|
459
|
-
domain: s.
|
|
459
|
+
domain: s.f("domain", S.option(S.string))
|
|
460
460
|
}));
|
|
461
461
|
|
|
462
462
|
function postIRegistrySet(body, fetch) {
|
|
@@ -465,8 +465,8 @@ function postIRegistrySet(body, fetch) {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
let postIRevokeTokenRequestSchema = S.object(s => ({
|
|
468
|
-
tokenId: s.
|
|
469
|
-
token: s.
|
|
468
|
+
tokenId: s.f("tokenId", S.option(S.string)),
|
|
469
|
+
token: s.f("token", S.option(S.string))
|
|
470
470
|
}));
|
|
471
471
|
|
|
472
472
|
function postIRevokeToken(body, fetch) {
|
|
@@ -475,9 +475,9 @@ function postIRevokeToken(body, fetch) {
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
let postISigninHistoryRequestSchema = S.object(s => ({
|
|
478
|
-
limit: s.
|
|
479
|
-
sinceId: s.
|
|
480
|
-
untilId: s.
|
|
478
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
479
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
480
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
481
481
|
}));
|
|
482
482
|
|
|
483
483
|
let postISigninHistoryResponseSchema = S.array(MisskeyIoComponentSchemas.Signin.schema);
|
|
@@ -489,8 +489,8 @@ function postISigninHistory(body, fetch) {
|
|
|
489
489
|
|
|
490
490
|
let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
491
491
|
password: s.f("password", S.string),
|
|
492
|
-
email: s.
|
|
493
|
-
token: s.
|
|
492
|
+
email: s.f("email", S.option(S.string)),
|
|
493
|
+
token: s.f("token", S.option(S.string))
|
|
494
494
|
}));
|
|
495
495
|
|
|
496
496
|
let postIUpdateEmailResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema;
|
|
@@ -503,7 +503,7 @@ function postIUpdateEmail(body, fetch) {
|
|
|
503
503
|
let postPagePushRequestSchema = S.object(s => ({
|
|
504
504
|
pageId: s.f("pageId", S.string),
|
|
505
505
|
event: s.f("event", S.string),
|
|
506
|
-
var: s.
|
|
506
|
+
var: s.f("var", S.option(S.json))
|
|
507
507
|
}));
|
|
508
508
|
|
|
509
509
|
function postPagePush(body, fetch) {
|
|
@@ -512,7 +512,7 @@ function postPagePush(body, fetch) {
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
let postReversiCancelMatchRequestSchema = S.object(s => ({
|
|
515
|
-
userId: s.
|
|
515
|
+
userId: s.f("userId", S.option(S.string))
|
|
516
516
|
}));
|
|
517
517
|
|
|
518
518
|
function postReversiCancelMatch(body, fetch) {
|
|
@@ -521,10 +521,10 @@ function postReversiCancelMatch(body, fetch) {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
let postReversiGamesRequestSchema = S.object(s => ({
|
|
524
|
-
limit: s.
|
|
525
|
-
sinceId: s.
|
|
526
|
-
untilId: s.
|
|
527
|
-
my: s.
|
|
524
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
525
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
526
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
527
|
+
my: s.f("my", S.option(S.bool))
|
|
528
528
|
}));
|
|
529
529
|
|
|
530
530
|
let postReversiGamesResponseSchema = S.array(MisskeyIoComponentSchemas.ReversiGameLite.schema);
|
|
@@ -541,9 +541,9 @@ function postReversiInvitations(fetch) {
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
let postReversiMatchRequestSchema = S.object(s => ({
|
|
544
|
-
userId: s.
|
|
545
|
-
noIrregularRules: s.
|
|
546
|
-
multiple: s.
|
|
544
|
+
userId: s.f("userId", S.option(S.string)),
|
|
545
|
+
noIrregularRules: s.f("noIrregularRules", S.option(S.bool)),
|
|
546
|
+
multiple: s.f("multiple", S.option(S.bool))
|
|
547
547
|
}));
|
|
548
548
|
|
|
549
549
|
let postReversiMatchResponseSchema = S.dict(S.json);
|
|
@@ -580,7 +580,7 @@ let postReversiVerifyRequestSchema = S.object(s => ({
|
|
|
580
580
|
|
|
581
581
|
let postReversiVerifyResponseSchema = S.object(s => ({
|
|
582
582
|
desynced: s.f("desynced", S.bool),
|
|
583
|
-
game: s.
|
|
583
|
+
game: s.f("game", S.option(MisskeyIoComponentSchemas.ReversiGameDetailed.schema))
|
|
584
584
|
}));
|
|
585
585
|
|
|
586
586
|
function postReversiVerify(body, fetch) {
|
|
@@ -15,12 +15,12 @@ function postDrive(fetch) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
let postDriveFilesRequestSchema = S.object(s => ({
|
|
18
|
-
limit: s.
|
|
19
|
-
sinceId: s.
|
|
20
|
-
untilId: s.
|
|
21
|
-
folderId: s.
|
|
22
|
-
type: s.
|
|
23
|
-
sort: s.
|
|
18
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
19
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
20
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
21
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
22
|
+
type: s.f("type", S.option(S.pattern(S.string, /^[a-zA-Z\/\*-]+$/, undefined))),
|
|
23
|
+
sort: s.f("sort", S.option(S.string))
|
|
24
24
|
}));
|
|
25
25
|
|
|
26
26
|
let postDriveFilesResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFile.schema);
|
|
@@ -31,9 +31,9 @@ function postDriveFiles(body, fetch) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
let postDriveFilesAttachedNotesRequestSchema = S.object(s => ({
|
|
34
|
-
sinceId: s.
|
|
35
|
-
untilId: s.
|
|
36
|
-
limit: s.
|
|
34
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
35
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
36
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
37
37
|
fileId: s.f("fileId", S.string)
|
|
38
38
|
}));
|
|
39
39
|
|
|
@@ -54,11 +54,11 @@ function postDriveFilesCheckExistence(body, fetch) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
let postDriveFilesCreateRequestSchema = S.object(s => ({
|
|
57
|
-
folderId: s.
|
|
58
|
-
name: s.
|
|
59
|
-
comment: s.
|
|
60
|
-
isSensitive: s.
|
|
61
|
-
force: s.
|
|
57
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
58
|
+
name: s.f("name", S.option(S.string)),
|
|
59
|
+
comment: s.f("comment", S.option(S.max(S.string, 512, undefined))),
|
|
60
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
61
|
+
force: s.f("force", S.option(S.bool)),
|
|
62
62
|
file: s.f("file", S.string)
|
|
63
63
|
}));
|
|
64
64
|
|
|
@@ -80,7 +80,7 @@ function postDriveFilesDelete(body, fetch) {
|
|
|
80
80
|
|
|
81
81
|
let postDriveFilesFindRequestSchema = S.object(s => ({
|
|
82
82
|
name: s.f("name", S.string),
|
|
83
|
-
folderId: s.
|
|
83
|
+
folderId: s.f("folderId", S.option(S.string))
|
|
84
84
|
}));
|
|
85
85
|
|
|
86
86
|
let postDriveFilesFindResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFile.schema);
|
|
@@ -102,8 +102,8 @@ function postDriveFilesFindByHash(body, fetch) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
let postDriveFilesShowRequestSchema = S.object(s => ({
|
|
105
|
-
fileId: s.
|
|
106
|
-
url: s.
|
|
105
|
+
fileId: s.f("fileId", S.option(S.string)),
|
|
106
|
+
url: s.f("url", S.option(S.string))
|
|
107
107
|
}));
|
|
108
108
|
|
|
109
109
|
let postDriveFilesShowResponseSchema = MisskeyIoComponentSchemas.DriveFile.schema;
|
|
@@ -115,10 +115,10 @@ function postDriveFilesShow(body, fetch) {
|
|
|
115
115
|
|
|
116
116
|
let postDriveFilesUpdateRequestSchema = S.object(s => ({
|
|
117
117
|
fileId: s.f("fileId", S.string),
|
|
118
|
-
folderId: s.
|
|
119
|
-
name: s.
|
|
120
|
-
isSensitive: s.
|
|
121
|
-
comment: s.
|
|
118
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
119
|
+
name: s.f("name", S.option(S.string)),
|
|
120
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
121
|
+
comment: s.f("comment", S.option(S.max(S.string, 512, undefined)))
|
|
122
122
|
}));
|
|
123
123
|
|
|
124
124
|
let postDriveFilesUpdateResponseSchema = MisskeyIoComponentSchemas.DriveFile.schema;
|
|
@@ -130,11 +130,11 @@ function postDriveFilesUpdate(body, fetch) {
|
|
|
130
130
|
|
|
131
131
|
let postDriveFilesUploadFromUrlRequestSchema = S.object(s => ({
|
|
132
132
|
url: s.f("url", S.string),
|
|
133
|
-
folderId: s.
|
|
134
|
-
isSensitive: s.
|
|
135
|
-
comment: s.
|
|
136
|
-
marker: s.
|
|
137
|
-
force: s.
|
|
133
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
134
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
135
|
+
comment: s.f("comment", S.option(S.max(S.string, 512, undefined))),
|
|
136
|
+
marker: s.f("marker", S.option(S.string)),
|
|
137
|
+
force: s.f("force", S.option(S.bool))
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
140
|
function postDriveFilesUploadFromUrl(body, fetch) {
|
|
@@ -143,10 +143,10 @@ function postDriveFilesUploadFromUrl(body, fetch) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
let postDriveFoldersRequestSchema = S.object(s => ({
|
|
146
|
-
limit: s.
|
|
147
|
-
sinceId: s.
|
|
148
|
-
untilId: s.
|
|
149
|
-
folderId: s.
|
|
146
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
147
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
148
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
149
|
+
folderId: s.f("folderId", S.option(S.string))
|
|
150
150
|
}));
|
|
151
151
|
|
|
152
152
|
let postDriveFoldersResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFolder.schema);
|
|
@@ -157,8 +157,8 @@ function postDriveFolders(body, fetch) {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
let postDriveFoldersCreateRequestSchema = S.object(s => ({
|
|
160
|
-
name: s.
|
|
161
|
-
parentId: s.
|
|
160
|
+
name: s.f("name", S.option(S.max(S.string, 200, undefined))),
|
|
161
|
+
parentId: s.f("parentId", S.option(S.string))
|
|
162
162
|
}));
|
|
163
163
|
|
|
164
164
|
let postDriveFoldersCreateResponseSchema = MisskeyIoComponentSchemas.DriveFolder.schema;
|
|
@@ -179,7 +179,7 @@ function postDriveFoldersDelete(body, fetch) {
|
|
|
179
179
|
|
|
180
180
|
let postDriveFoldersFindRequestSchema = S.object(s => ({
|
|
181
181
|
name: s.f("name", S.string),
|
|
182
|
-
parentId: s.
|
|
182
|
+
parentId: s.f("parentId", S.option(S.string))
|
|
183
183
|
}));
|
|
184
184
|
|
|
185
185
|
let postDriveFoldersFindResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFolder.schema);
|
|
@@ -202,8 +202,8 @@ function postDriveFoldersShow(body, fetch) {
|
|
|
202
202
|
|
|
203
203
|
let postDriveFoldersUpdateRequestSchema = S.object(s => ({
|
|
204
204
|
folderId: s.f("folderId", S.string),
|
|
205
|
-
name: s.
|
|
206
|
-
parentId: s.
|
|
205
|
+
name: s.f("name", S.option(S.max(S.string, 200, undefined))),
|
|
206
|
+
parentId: s.f("parentId", S.option(S.string))
|
|
207
207
|
}));
|
|
208
208
|
|
|
209
209
|
let postDriveFoldersUpdateResponseSchema = MisskeyIoComponentSchemas.DriveFolder.schema;
|
|
@@ -214,10 +214,10 @@ function postDriveFoldersUpdate(body, fetch) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
let postDriveStreamRequestSchema = S.object(s => ({
|
|
217
|
-
limit: s.
|
|
218
|
-
sinceId: s.
|
|
219
|
-
untilId: s.
|
|
220
|
-
type: s.
|
|
217
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
218
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
219
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
220
|
+
type: s.f("type", S.option(S.pattern(S.string, /^[a-zA-Z\/\*-]+$/, undefined)))
|
|
221
221
|
}));
|
|
222
222
|
|
|
223
223
|
let postDriveStreamResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFile.schema);
|
|
@@ -32,9 +32,9 @@ function postApShow(body, fetch) {
|
|
|
32
32
|
|
|
33
33
|
let postFederationFollowersRequestSchema = S.object(s => ({
|
|
34
34
|
host: s.f("host", S.string),
|
|
35
|
-
sinceId: s.
|
|
36
|
-
untilId: s.
|
|
37
|
-
limit: s.
|
|
35
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
36
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
37
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
38
38
|
}));
|
|
39
39
|
|
|
40
40
|
let postFederationFollowersResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema);
|
|
@@ -46,9 +46,9 @@ function postFederationFollowers(body, fetch) {
|
|
|
46
46
|
|
|
47
47
|
let postFederationFollowingRequestSchema = S.object(s => ({
|
|
48
48
|
host: s.f("host", S.string),
|
|
49
|
-
sinceId: s.
|
|
50
|
-
untilId: s.
|
|
51
|
-
limit: s.
|
|
49
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
50
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
51
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
let postFederationFollowingResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema);
|
|
@@ -59,17 +59,17 @@ function postFederationFollowing(body, fetch) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
let getFederationInstancesRequestSchema = S.object(s => ({
|
|
62
|
-
host: s.
|
|
63
|
-
blocked: s.
|
|
64
|
-
notResponding: s.
|
|
65
|
-
suspended: s.
|
|
66
|
-
silenced: s.
|
|
67
|
-
federating: s.
|
|
68
|
-
subscribing: s.
|
|
69
|
-
publishing: s.
|
|
70
|
-
limit: s.
|
|
71
|
-
offset: s.
|
|
72
|
-
sort: s.
|
|
62
|
+
host: s.f("host", S.option(S.string)),
|
|
63
|
+
blocked: s.f("blocked", S.option(S.bool)),
|
|
64
|
+
notResponding: s.f("notResponding", S.option(S.bool)),
|
|
65
|
+
suspended: s.f("suspended", S.option(S.bool)),
|
|
66
|
+
silenced: s.f("silenced", S.option(S.bool)),
|
|
67
|
+
federating: s.f("federating", S.option(S.bool)),
|
|
68
|
+
subscribing: s.f("subscribing", S.option(S.bool)),
|
|
69
|
+
publishing: s.f("publishing", S.option(S.bool)),
|
|
70
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 30, undefined))),
|
|
71
|
+
offset: s.f("offset", S.option(S.int)),
|
|
72
|
+
sort: s.f("sort", S.option(S.string))
|
|
73
73
|
}));
|
|
74
74
|
|
|
75
75
|
let getFederationInstancesResponseSchema = S.array(MisskeyIoComponentSchemas.FederationInstance.schema);
|
|
@@ -80,17 +80,17 @@ function getFederationInstances(body, fetch) {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
let postFederationInstancesRequestSchema = S.object(s => ({
|
|
83
|
-
host: s.
|
|
84
|
-
blocked: s.
|
|
85
|
-
notResponding: s.
|
|
86
|
-
suspended: s.
|
|
87
|
-
silenced: s.
|
|
88
|
-
federating: s.
|
|
89
|
-
subscribing: s.
|
|
90
|
-
publishing: s.
|
|
91
|
-
limit: s.
|
|
92
|
-
offset: s.
|
|
93
|
-
sort: s.
|
|
83
|
+
host: s.f("host", S.option(S.string)),
|
|
84
|
+
blocked: s.f("blocked", S.option(S.bool)),
|
|
85
|
+
notResponding: s.f("notResponding", S.option(S.bool)),
|
|
86
|
+
suspended: s.f("suspended", S.option(S.bool)),
|
|
87
|
+
silenced: s.f("silenced", S.option(S.bool)),
|
|
88
|
+
federating: s.f("federating", S.option(S.bool)),
|
|
89
|
+
subscribing: s.f("subscribing", S.option(S.bool)),
|
|
90
|
+
publishing: s.f("publishing", S.option(S.bool)),
|
|
91
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 30, undefined))),
|
|
92
|
+
offset: s.f("offset", S.option(S.int)),
|
|
93
|
+
sort: s.f("sort", S.option(S.string))
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
let postFederationInstancesResponseSchema = S.array(MisskeyIoComponentSchemas.FederationInstance.schema);
|
|
@@ -112,7 +112,7 @@ function postFederationShowInstance(body, fetch) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
let getFederationStatsRequestSchema = S.object(s => ({
|
|
115
|
-
limit: s.
|
|
115
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
118
|
let getFederationStatsResponseSchema = S.object(s => ({
|
|
@@ -128,7 +128,7 @@ function getFederationStats(body, fetch) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
let postFederationStatsRequestSchema = S.object(s => ({
|
|
131
|
-
limit: s.
|
|
131
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
132
132
|
}));
|
|
133
133
|
|
|
134
134
|
let postFederationStatsResponseSchema = S.object(s => ({
|
|
@@ -154,9 +154,9 @@ function postFederationUpdateRemoteUser(body, fetch) {
|
|
|
154
154
|
|
|
155
155
|
let postFederationUsersRequestSchema = S.object(s => ({
|
|
156
156
|
host: s.f("host", S.string),
|
|
157
|
-
sinceId: s.
|
|
158
|
-
untilId: s.
|
|
159
|
-
limit: s.
|
|
157
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
158
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
159
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
160
160
|
}));
|
|
161
161
|
|
|
162
162
|
let postFederationUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailedNotMe.schema);
|
|
@@ -10,7 +10,7 @@ let postFlashCreateRequestSchema = S.object(s => ({
|
|
|
10
10
|
summary: s.f("summary", S.string),
|
|
11
11
|
script: s.f("script", S.string),
|
|
12
12
|
permissions: s.f("permissions", S.array(S.string)),
|
|
13
|
-
visibility: s.
|
|
13
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
16
|
let postFlashCreateResponseSchema = MisskeyIoComponentSchemas.Flash.schema;
|
|
@@ -21,8 +21,8 @@ function postFlashCreate(body, fetch) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
let postFlashFeaturedRequestSchema = S.object(s => ({
|
|
24
|
-
offset: s.
|
|
25
|
-
limit: s.
|
|
24
|
+
offset: s.f("offset", S.option(S.min(S.int, 0, undefined))),
|
|
25
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
26
26
|
}));
|
|
27
27
|
|
|
28
28
|
let postFlashFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema);
|
|
@@ -52,11 +52,11 @@ function postFlashUnlike(body, fetch) {
|
|
|
52
52
|
|
|
53
53
|
let postFlashUpdateRequestSchema = S.object(s => ({
|
|
54
54
|
flashId: s.f("flashId", S.string),
|
|
55
|
-
title: s.
|
|
56
|
-
summary: s.
|
|
57
|
-
script: s.
|
|
58
|
-
permissions: s.
|
|
59
|
-
visibility: s.
|
|
55
|
+
title: s.f("title", S.option(S.string)),
|
|
56
|
+
summary: s.f("summary", S.option(S.string)),
|
|
57
|
+
script: s.f("script", S.option(S.string)),
|
|
58
|
+
permissions: s.f("permissions", S.option(S.array(S.string))),
|
|
59
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
60
60
|
}));
|
|
61
61
|
|
|
62
62
|
function postFlashUpdate(body, fetch) {
|