@f3liz/rescript-misskey-api 0.6.5 → 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 +123 -123
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +307 -307
- 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 +145 -145
- 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 +247 -247
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +13 -13
- 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 +100 -100
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +360 -360
- 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 +122 -122
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +42 -42
- 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 +18 -18
- 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 +123 -123
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +307 -307
- 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 +145 -145
- 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 +247 -247
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +13 -13
- 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 +100 -100
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +359 -359
- 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 +122 -122
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +42 -42
- 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 +18 -18
- 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
|
@@ -231,7 +231,7 @@ type postI2faKeyDoneRequest = {
|
|
|
231
231
|
|
|
232
232
|
let postI2faKeyDoneRequestSchema = S.object(s => {
|
|
233
233
|
password: s.field("password", S.string),
|
|
234
|
-
token: s.
|
|
234
|
+
token: s.field("token", S.option(S.string)),
|
|
235
235
|
name: s.field("name", S.string->S.min(1)->S.max(30)),
|
|
236
236
|
credential: s.field("credential", S.dict(S.json)),
|
|
237
237
|
})
|
|
@@ -305,7 +305,7 @@ type postI2faRegisterRequest = {
|
|
|
305
305
|
|
|
306
306
|
let postI2faRegisterRequestSchema = S.object(s => {
|
|
307
307
|
password: s.field("password", S.string),
|
|
308
|
-
token: s.
|
|
308
|
+
token: s.field("token", S.option(S.string)),
|
|
309
309
|
})
|
|
310
310
|
|
|
311
311
|
type postI2faRegisterResponse = {
|
|
@@ -352,7 +352,7 @@ type postI2faRegisterKeyRequest = {
|
|
|
352
352
|
|
|
353
353
|
let postI2faRegisterKeyRequestSchema = S.object(s => {
|
|
354
354
|
password: s.field("password", S.string),
|
|
355
|
-
token: s.
|
|
355
|
+
token: s.field("token", S.option(S.string)),
|
|
356
356
|
})
|
|
357
357
|
|
|
358
358
|
type postI2faRegisterKeyResponse_5 = {
|
|
@@ -418,7 +418,7 @@ let postI2faRegisterKeyResponse_2Schema = S.object(s => {
|
|
|
418
418
|
})
|
|
419
419
|
|
|
420
420
|
let postI2faRegisterKeyResponse_1Schema = S.object(s => {
|
|
421
|
-
id: s.
|
|
421
|
+
id: s.field("id", S.option(S.string)),
|
|
422
422
|
})
|
|
423
423
|
|
|
424
424
|
let postI2faRegisterKeyResponseSchema = S.object(s => {
|
|
@@ -462,7 +462,7 @@ type postI2faRemoveKeyRequest = {
|
|
|
462
462
|
|
|
463
463
|
let postI2faRemoveKeyRequestSchema = S.object(s => {
|
|
464
464
|
password: s.field("password", S.string),
|
|
465
|
-
token: s.
|
|
465
|
+
token: s.field("token", S.option(S.string)),
|
|
466
466
|
credentialId: s.field("credentialId", S.string),
|
|
467
467
|
})
|
|
468
468
|
|
|
@@ -496,7 +496,7 @@ type postI2faUnregisterRequest = {
|
|
|
496
496
|
|
|
497
497
|
let postI2faUnregisterRequestSchema = S.object(s => {
|
|
498
498
|
password: s.field("password", S.string),
|
|
499
|
-
token: s.
|
|
499
|
+
token: s.field("token", S.option(S.string)),
|
|
500
500
|
})
|
|
501
501
|
|
|
502
502
|
type postI2faUnregisterResponse = unit
|
|
@@ -560,7 +560,7 @@ type postIAppsRequest = {
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
let postIAppsRequestSchema = S.object(s => {
|
|
563
|
-
sort: s.
|
|
563
|
+
sort: s.field("sort", S.option(S.string)),
|
|
564
564
|
})
|
|
565
565
|
|
|
566
566
|
type postIAppsResponse_1 = {
|
|
@@ -575,9 +575,9 @@ type postIAppsResponse = array<postIAppsResponse_1>
|
|
|
575
575
|
|
|
576
576
|
let postIAppsResponse_1Schema = S.object(s => {
|
|
577
577
|
id: s.field("id", S.string),
|
|
578
|
-
name: s.
|
|
578
|
+
name: s.field("name", S.option(S.string)),
|
|
579
579
|
createdAt: s.field("createdAt", S.string),
|
|
580
|
-
lastUsedAt: s.
|
|
580
|
+
lastUsedAt: s.field("lastUsedAt", S.option(S.string)),
|
|
581
581
|
permission: s.field("permission", S.array(S.string)),
|
|
582
582
|
})
|
|
583
583
|
|
|
@@ -611,9 +611,9 @@ type postIAuthorizedAppsRequest = {
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
let postIAuthorizedAppsRequestSchema = S.object(s => {
|
|
614
|
-
limit: s.
|
|
615
|
-
offset: s.
|
|
616
|
-
sort: s.
|
|
614
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
615
|
+
offset: s.field("offset", S.option(S.int)),
|
|
616
|
+
sort: s.field("sort", S.option(S.string)),
|
|
617
617
|
})
|
|
618
618
|
|
|
619
619
|
type postIAuthorizedAppsResponse_1 = {
|
|
@@ -631,7 +631,7 @@ let postIAuthorizedAppsResponse_1Schema = S.object(s => {
|
|
|
631
631
|
name: s.field("name", S.string),
|
|
632
632
|
callbackUrl: s.field("callbackUrl", S.nullableAsOption(S.string)),
|
|
633
633
|
permission: s.field("permission", S.array(S.string)),
|
|
634
|
-
isAuthorized: s.
|
|
634
|
+
isAuthorized: s.field("isAuthorized", S.option(S.bool)),
|
|
635
635
|
})
|
|
636
636
|
|
|
637
637
|
let postIAuthorizedAppsResponseSchema = S.array(postIAuthorizedAppsResponse_1Schema)
|
|
@@ -666,7 +666,7 @@ type postIChangePasswordRequest = {
|
|
|
666
666
|
let postIChangePasswordRequestSchema = S.object(s => {
|
|
667
667
|
currentPassword: s.field("currentPassword", S.string),
|
|
668
668
|
newPassword: s.field("newPassword", S.string->S.min(1)),
|
|
669
|
-
token: s.
|
|
669
|
+
token: s.field("token", S.option(S.string)),
|
|
670
670
|
})
|
|
671
671
|
|
|
672
672
|
type postIChangePasswordResponse = unit
|
|
@@ -729,7 +729,7 @@ type postIDeleteAccountRequest = {
|
|
|
729
729
|
|
|
730
730
|
let postIDeleteAccountRequestSchema = S.object(s => {
|
|
731
731
|
password: s.field("password", S.string),
|
|
732
|
-
token: s.
|
|
732
|
+
token: s.field("token", S.option(S.string)),
|
|
733
733
|
})
|
|
734
734
|
|
|
735
735
|
type postIDeleteAccountResponse = unit
|
|
@@ -853,8 +853,8 @@ type postIExportFollowingRequest = {
|
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
let postIExportFollowingRequestSchema = S.object(s => {
|
|
856
|
-
excludeMuting: s.
|
|
857
|
-
excludeInactive: s.
|
|
856
|
+
excludeMuting: s.field("excludeMuting", S.option(S.bool)),
|
|
857
|
+
excludeInactive: s.field("excludeInactive", S.option(S.bool)),
|
|
858
858
|
})
|
|
859
859
|
|
|
860
860
|
type postIExportFollowingResponse = unit
|
|
@@ -1018,7 +1018,7 @@ type postIImportFollowingRequest = {
|
|
|
1018
1018
|
|
|
1019
1019
|
let postIImportFollowingRequestSchema = S.object(s => {
|
|
1020
1020
|
fileId: s.field("fileId", S.string),
|
|
1021
|
-
withReplies: s.
|
|
1021
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
1022
1022
|
})
|
|
1023
1023
|
|
|
1024
1024
|
type postIImportFollowingResponse = unit
|
|
@@ -1146,7 +1146,7 @@ type postIRegistryGetRequest = {
|
|
|
1146
1146
|
let postIRegistryGetRequestSchema = S.object(s => {
|
|
1147
1147
|
key: s.field("key", S.string),
|
|
1148
1148
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1149
|
-
domain: s.
|
|
1149
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1150
1150
|
})
|
|
1151
1151
|
|
|
1152
1152
|
type postIRegistryGetResponse = dict<JSON.t>
|
|
@@ -1180,7 +1180,7 @@ type postIRegistryGetAllRequest = {
|
|
|
1180
1180
|
|
|
1181
1181
|
let postIRegistryGetAllRequestSchema = S.object(s => {
|
|
1182
1182
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1183
|
-
domain: s.
|
|
1183
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1184
1184
|
})
|
|
1185
1185
|
|
|
1186
1186
|
type postIRegistryGetAllResponse = dict<JSON.t>
|
|
@@ -1216,7 +1216,7 @@ type postIRegistryGetDetailRequest = {
|
|
|
1216
1216
|
let postIRegistryGetDetailRequestSchema = S.object(s => {
|
|
1217
1217
|
key: s.field("key", S.string),
|
|
1218
1218
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1219
|
-
domain: s.
|
|
1219
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1220
1220
|
})
|
|
1221
1221
|
|
|
1222
1222
|
type postIRegistryGetDetailResponse = {
|
|
@@ -1256,7 +1256,7 @@ type postIRegistryKeysRequest = {
|
|
|
1256
1256
|
|
|
1257
1257
|
let postIRegistryKeysRequestSchema = S.object(s => {
|
|
1258
1258
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1259
|
-
domain: s.
|
|
1259
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1260
1260
|
})
|
|
1261
1261
|
|
|
1262
1262
|
type postIRegistryKeysResponse = array<string>
|
|
@@ -1290,7 +1290,7 @@ type postIRegistryKeysWithTypeRequest = {
|
|
|
1290
1290
|
|
|
1291
1291
|
let postIRegistryKeysWithTypeRequestSchema = S.object(s => {
|
|
1292
1292
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1293
|
-
domain: s.
|
|
1293
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1294
1294
|
})
|
|
1295
1295
|
|
|
1296
1296
|
type postIRegistryKeysWithTypeResponse = dict<JSON.t>
|
|
@@ -1326,7 +1326,7 @@ type postIRegistryRemoveRequest = {
|
|
|
1326
1326
|
let postIRegistryRemoveRequestSchema = S.object(s => {
|
|
1327
1327
|
key: s.field("key", S.string),
|
|
1328
1328
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1329
|
-
domain: s.
|
|
1329
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1330
1330
|
})
|
|
1331
1331
|
|
|
1332
1332
|
type postIRegistryRemoveResponse = unit
|
|
@@ -1397,7 +1397,7 @@ let postIRegistrySetRequestSchema = S.object(s => {
|
|
|
1397
1397
|
key: s.field("key", S.string->S.min(1)),
|
|
1398
1398
|
value: s.field("value", S.json),
|
|
1399
1399
|
scope: s.field("scope", S.array(S.string->S.pattern(/^[a-zA-Z0-9_]+$/))),
|
|
1400
|
-
domain: s.
|
|
1400
|
+
domain: s.field("domain", S.option(S.string)),
|
|
1401
1401
|
})
|
|
1402
1402
|
|
|
1403
1403
|
type postIRegistrySetResponse = unit
|
|
@@ -1428,8 +1428,8 @@ type postIRevokeTokenRequest = {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
|
|
1430
1430
|
let postIRevokeTokenRequestSchema = S.object(s => {
|
|
1431
|
-
tokenId: s.
|
|
1432
|
-
token: s.
|
|
1431
|
+
tokenId: s.field("tokenId", S.option(S.string)),
|
|
1432
|
+
token: s.field("token", S.option(S.string)),
|
|
1433
1433
|
})
|
|
1434
1434
|
|
|
1435
1435
|
type postIRevokeTokenResponse = unit
|
|
@@ -1462,9 +1462,9 @@ type postISigninHistoryRequest = {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
1464
|
let postISigninHistoryRequestSchema = S.object(s => {
|
|
1465
|
-
limit: s.
|
|
1466
|
-
sinceId: s.
|
|
1467
|
-
untilId: s.
|
|
1465
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1466
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1467
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1468
1468
|
})
|
|
1469
1469
|
|
|
1470
1470
|
type postISigninHistoryResponse = array<MisskeyIoComponentSchemas.Signin.t>
|
|
@@ -1500,8 +1500,8 @@ type postIUpdateEmailRequest = {
|
|
|
1500
1500
|
|
|
1501
1501
|
let postIUpdateEmailRequestSchema = S.object(s => {
|
|
1502
1502
|
password: s.field("password", S.string),
|
|
1503
|
-
email: s.
|
|
1504
|
-
token: s.
|
|
1503
|
+
email: s.field("email", S.option(S.string)),
|
|
1504
|
+
token: s.field("token", S.option(S.string)),
|
|
1505
1505
|
})
|
|
1506
1506
|
|
|
1507
1507
|
type postIUpdateEmailResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
@@ -1538,7 +1538,7 @@ type postPagePushRequest = {
|
|
|
1538
1538
|
let postPagePushRequestSchema = S.object(s => {
|
|
1539
1539
|
pageId: s.field("pageId", S.string),
|
|
1540
1540
|
event: s.field("event", S.string),
|
|
1541
|
-
var: s.
|
|
1541
|
+
var: s.field("var", S.option(S.json)),
|
|
1542
1542
|
})
|
|
1543
1543
|
|
|
1544
1544
|
type postPagePushResponse = unit
|
|
@@ -1569,7 +1569,7 @@ type postReversiCancelMatchRequest = {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
|
|
1571
1571
|
let postReversiCancelMatchRequestSchema = S.object(s => {
|
|
1572
|
-
userId: s.
|
|
1572
|
+
userId: s.field("userId", S.option(S.string)),
|
|
1573
1573
|
})
|
|
1574
1574
|
|
|
1575
1575
|
type postReversiCancelMatchResponse = unit
|
|
@@ -1602,10 +1602,10 @@ type postReversiGamesRequest = {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
1604
|
let postReversiGamesRequestSchema = S.object(s => {
|
|
1605
|
-
limit: s.
|
|
1606
|
-
sinceId: s.
|
|
1607
|
-
untilId: s.
|
|
1608
|
-
my: s.
|
|
1605
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1606
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1607
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1608
|
+
my: s.field("my", S.option(S.bool)),
|
|
1609
1609
|
})
|
|
1610
1610
|
|
|
1611
1611
|
type postReversiGamesResponse = array<MisskeyIoComponentSchemas.ReversiGameLite.t>
|
|
@@ -1663,9 +1663,9 @@ type postReversiMatchRequest = {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
let postReversiMatchRequestSchema = S.object(s => {
|
|
1666
|
-
userId: s.
|
|
1667
|
-
noIrregularRules: s.
|
|
1668
|
-
multiple: s.
|
|
1666
|
+
userId: s.field("userId", S.option(S.string)),
|
|
1667
|
+
noIrregularRules: s.field("noIrregularRules", S.option(S.bool)),
|
|
1668
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
1669
1669
|
})
|
|
1670
1670
|
|
|
1671
1671
|
type postReversiMatchResponse = dict<JSON.t>
|
|
@@ -1771,7 +1771,7 @@ type postReversiVerifyResponse = {
|
|
|
1771
1771
|
|
|
1772
1772
|
let postReversiVerifyResponseSchema = S.object(s => {
|
|
1773
1773
|
desynced: s.field("desynced", S.bool),
|
|
1774
|
-
game: s.
|
|
1774
|
+
game: s.field("game", S.option(MisskeyIoComponentSchemas.ReversiGameDetailed.schema)),
|
|
1775
1775
|
})
|
|
1776
1776
|
|
|
1777
1777
|
/**
|
|
@@ -45,12 +45,12 @@ type postDriveFilesRequest = {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
let postDriveFilesRequestSchema = S.object(s => {
|
|
48
|
-
limit: s.
|
|
49
|
-
sinceId: s.
|
|
50
|
-
untilId: s.
|
|
51
|
-
folderId: s.
|
|
52
|
-
type_: s.
|
|
53
|
-
sort: s.
|
|
48
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
49
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
50
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
51
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
52
|
+
type_: s.field("type", S.option(S.string->S.pattern(/^[a-zA-Z\/\*-]+$/))),
|
|
53
|
+
sort: s.field("sort", S.option(S.string)),
|
|
54
54
|
})
|
|
55
55
|
|
|
56
56
|
type postDriveFilesResponse = array<MisskeyIoComponentSchemas.DriveFile.t>
|
|
@@ -85,9 +85,9 @@ type postDriveFilesAttachedNotesRequest = {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
let postDriveFilesAttachedNotesRequestSchema = S.object(s => {
|
|
88
|
-
sinceId: s.
|
|
89
|
-
untilId: s.
|
|
90
|
-
limit: s.
|
|
88
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
89
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
90
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
91
91
|
fileId: s.field("fileId", S.string),
|
|
92
92
|
})
|
|
93
93
|
|
|
@@ -157,11 +157,11 @@ type postDriveFilesCreateRequest = {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
let postDriveFilesCreateRequestSchema = S.object(s => {
|
|
160
|
-
folderId: s.
|
|
161
|
-
name: s.
|
|
162
|
-
comment: s.
|
|
163
|
-
isSensitive: s.
|
|
164
|
-
force: s.
|
|
160
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
161
|
+
name: s.field("name", S.option(S.string)),
|
|
162
|
+
comment: s.field("comment", S.option(S.string->S.max(512))),
|
|
163
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
164
|
+
force: s.field("force", S.option(S.bool)),
|
|
165
165
|
file: s.field("file", S.string),
|
|
166
166
|
})
|
|
167
167
|
|
|
@@ -226,7 +226,7 @@ type postDriveFilesFindRequest = {
|
|
|
226
226
|
|
|
227
227
|
let postDriveFilesFindRequestSchema = S.object(s => {
|
|
228
228
|
name: s.field("name", S.string),
|
|
229
|
-
folderId: s.
|
|
229
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
230
230
|
})
|
|
231
231
|
|
|
232
232
|
type postDriveFilesFindResponse = array<MisskeyIoComponentSchemas.DriveFile.t>
|
|
@@ -291,8 +291,8 @@ type postDriveFilesShowRequest = {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
let postDriveFilesShowRequestSchema = S.object(s => {
|
|
294
|
-
fileId: s.
|
|
295
|
-
url: s.
|
|
294
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
295
|
+
url: s.field("url", S.option(S.string)),
|
|
296
296
|
})
|
|
297
297
|
|
|
298
298
|
type postDriveFilesShowResponse = MisskeyIoComponentSchemas.DriveFile.t
|
|
@@ -329,10 +329,10 @@ type postDriveFilesUpdateRequest = {
|
|
|
329
329
|
|
|
330
330
|
let postDriveFilesUpdateRequestSchema = S.object(s => {
|
|
331
331
|
fileId: s.field("fileId", S.string),
|
|
332
|
-
folderId: s.
|
|
333
|
-
name: s.
|
|
334
|
-
isSensitive: s.
|
|
335
|
-
comment: s.
|
|
332
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
333
|
+
name: s.field("name", S.option(S.string)),
|
|
334
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
335
|
+
comment: s.field("comment", S.option(S.string->S.max(512))),
|
|
336
336
|
})
|
|
337
337
|
|
|
338
338
|
type postDriveFilesUpdateResponse = MisskeyIoComponentSchemas.DriveFile.t
|
|
@@ -370,11 +370,11 @@ type postDriveFilesUploadFromUrlRequest = {
|
|
|
370
370
|
|
|
371
371
|
let postDriveFilesUploadFromUrlRequestSchema = S.object(s => {
|
|
372
372
|
url: s.field("url", S.string),
|
|
373
|
-
folderId: s.
|
|
374
|
-
isSensitive: s.
|
|
375
|
-
comment: s.
|
|
376
|
-
marker: s.
|
|
377
|
-
force: s.
|
|
373
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
374
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
375
|
+
comment: s.field("comment", S.option(S.string->S.max(512))),
|
|
376
|
+
marker: s.field("marker", S.option(S.string)),
|
|
377
|
+
force: s.field("force", S.option(S.bool)),
|
|
378
378
|
})
|
|
379
379
|
|
|
380
380
|
type postDriveFilesUploadFromUrlResponse = unit
|
|
@@ -407,10 +407,10 @@ type postDriveFoldersRequest = {
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
let postDriveFoldersRequestSchema = S.object(s => {
|
|
410
|
-
limit: s.
|
|
411
|
-
sinceId: s.
|
|
412
|
-
untilId: s.
|
|
413
|
-
folderId: s.
|
|
410
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
411
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
412
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
413
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
414
414
|
})
|
|
415
415
|
|
|
416
416
|
type postDriveFoldersResponse = array<MisskeyIoComponentSchemas.DriveFolder.t>
|
|
@@ -443,8 +443,8 @@ type postDriveFoldersCreateRequest = {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
let postDriveFoldersCreateRequestSchema = S.object(s => {
|
|
446
|
-
name: s.
|
|
447
|
-
parentId: s.
|
|
446
|
+
name: s.field("name", S.option(S.string->S.max(200))),
|
|
447
|
+
parentId: s.field("parentId", S.option(S.string)),
|
|
448
448
|
})
|
|
449
449
|
|
|
450
450
|
type postDriveFoldersCreateResponse = MisskeyIoComponentSchemas.DriveFolder.t
|
|
@@ -508,7 +508,7 @@ type postDriveFoldersFindRequest = {
|
|
|
508
508
|
|
|
509
509
|
let postDriveFoldersFindRequestSchema = S.object(s => {
|
|
510
510
|
name: s.field("name", S.string),
|
|
511
|
-
parentId: s.
|
|
511
|
+
parentId: s.field("parentId", S.option(S.string)),
|
|
512
512
|
})
|
|
513
513
|
|
|
514
514
|
type postDriveFoldersFindResponse = array<MisskeyIoComponentSchemas.DriveFolder.t>
|
|
@@ -575,8 +575,8 @@ type postDriveFoldersUpdateRequest = {
|
|
|
575
575
|
|
|
576
576
|
let postDriveFoldersUpdateRequestSchema = S.object(s => {
|
|
577
577
|
folderId: s.field("folderId", S.string),
|
|
578
|
-
name: s.
|
|
579
|
-
parentId: s.
|
|
578
|
+
name: s.field("name", S.option(S.string->S.max(200))),
|
|
579
|
+
parentId: s.field("parentId", S.option(S.string)),
|
|
580
580
|
})
|
|
581
581
|
|
|
582
582
|
type postDriveFoldersUpdateResponse = MisskeyIoComponentSchemas.DriveFolder.t
|
|
@@ -611,10 +611,10 @@ type postDriveStreamRequest = {
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
let postDriveStreamRequestSchema = S.object(s => {
|
|
614
|
-
limit: s.
|
|
615
|
-
sinceId: s.
|
|
616
|
-
untilId: s.
|
|
617
|
-
type_: s.
|
|
614
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
615
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
616
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
617
|
+
type_: s.field("type", S.option(S.string->S.pattern(/^[a-zA-Z\/\*-]+$/))),
|
|
618
618
|
})
|
|
619
619
|
|
|
620
620
|
type postDriveStreamResponse = array<MisskeyIoComponentSchemas.DriveFile.t>
|
|
@@ -88,9 +88,9 @@ type postFederationFollowersRequest = {
|
|
|
88
88
|
|
|
89
89
|
let postFederationFollowersRequestSchema = S.object(s => {
|
|
90
90
|
host: s.field("host", S.string),
|
|
91
|
-
sinceId: s.
|
|
92
|
-
untilId: s.
|
|
93
|
-
limit: s.
|
|
91
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
92
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
93
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
94
94
|
})
|
|
95
95
|
|
|
96
96
|
type postFederationFollowersResponse = array<MisskeyIoComponentSchemas.Following.t>
|
|
@@ -126,9 +126,9 @@ type postFederationFollowingRequest = {
|
|
|
126
126
|
|
|
127
127
|
let postFederationFollowingRequestSchema = S.object(s => {
|
|
128
128
|
host: s.field("host", S.string),
|
|
129
|
-
sinceId: s.
|
|
130
|
-
untilId: s.
|
|
131
|
-
limit: s.
|
|
129
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
130
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
131
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
132
132
|
})
|
|
133
133
|
|
|
134
134
|
type postFederationFollowingResponse = array<MisskeyIoComponentSchemas.Following.t>
|
|
@@ -170,17 +170,17 @@ type getFederationInstancesRequest = {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
let getFederationInstancesRequestSchema = S.object(s => {
|
|
173
|
-
host: s.
|
|
174
|
-
blocked: s.
|
|
175
|
-
notResponding: s.
|
|
176
|
-
suspended: s.
|
|
177
|
-
silenced: s.
|
|
178
|
-
federating: s.
|
|
179
|
-
subscribing: s.
|
|
180
|
-
publishing: s.
|
|
181
|
-
limit: s.
|
|
182
|
-
offset: s.
|
|
183
|
-
sort: s.
|
|
173
|
+
host: s.field("host", S.option(S.string)),
|
|
174
|
+
blocked: s.field("blocked", S.option(S.bool)),
|
|
175
|
+
notResponding: s.field("notResponding", S.option(S.bool)),
|
|
176
|
+
suspended: s.field("suspended", S.option(S.bool)),
|
|
177
|
+
silenced: s.field("silenced", S.option(S.bool)),
|
|
178
|
+
federating: s.field("federating", S.option(S.bool)),
|
|
179
|
+
subscribing: s.field("subscribing", S.option(S.bool)),
|
|
180
|
+
publishing: s.field("publishing", S.option(S.bool)),
|
|
181
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(30))),
|
|
182
|
+
offset: s.field("offset", S.option(S.int)),
|
|
183
|
+
sort: s.field("sort", S.option(S.string)),
|
|
184
184
|
})
|
|
185
185
|
|
|
186
186
|
type getFederationInstancesResponse = array<MisskeyIoComponentSchemas.FederationInstance.t>
|
|
@@ -222,17 +222,17 @@ type postFederationInstancesRequest = {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
let postFederationInstancesRequestSchema = S.object(s => {
|
|
225
|
-
host: s.
|
|
226
|
-
blocked: s.
|
|
227
|
-
notResponding: s.
|
|
228
|
-
suspended: s.
|
|
229
|
-
silenced: s.
|
|
230
|
-
federating: s.
|
|
231
|
-
subscribing: s.
|
|
232
|
-
publishing: s.
|
|
233
|
-
limit: s.
|
|
234
|
-
offset: s.
|
|
235
|
-
sort: s.
|
|
225
|
+
host: s.field("host", S.option(S.string)),
|
|
226
|
+
blocked: s.field("blocked", S.option(S.bool)),
|
|
227
|
+
notResponding: s.field("notResponding", S.option(S.bool)),
|
|
228
|
+
suspended: s.field("suspended", S.option(S.bool)),
|
|
229
|
+
silenced: s.field("silenced", S.option(S.bool)),
|
|
230
|
+
federating: s.field("federating", S.option(S.bool)),
|
|
231
|
+
subscribing: s.field("subscribing", S.option(S.bool)),
|
|
232
|
+
publishing: s.field("publishing", S.option(S.bool)),
|
|
233
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(30))),
|
|
234
|
+
offset: s.field("offset", S.option(S.int)),
|
|
235
|
+
sort: s.field("sort", S.option(S.string)),
|
|
236
236
|
})
|
|
237
237
|
|
|
238
238
|
type postFederationInstancesResponse = array<MisskeyIoComponentSchemas.FederationInstance.t>
|
|
@@ -296,7 +296,7 @@ type getFederationStatsRequest = {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
let getFederationStatsRequestSchema = S.object(s => {
|
|
299
|
-
limit: s.
|
|
299
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
300
300
|
})
|
|
301
301
|
|
|
302
302
|
type getFederationStatsResponse = {
|
|
@@ -338,7 +338,7 @@ type postFederationStatsRequest = {
|
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
let postFederationStatsRequestSchema = S.object(s => {
|
|
341
|
-
limit: s.
|
|
341
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
342
342
|
})
|
|
343
343
|
|
|
344
344
|
type postFederationStatsResponse = {
|
|
@@ -414,9 +414,9 @@ type postFederationUsersRequest = {
|
|
|
414
414
|
|
|
415
415
|
let postFederationUsersRequestSchema = S.object(s => {
|
|
416
416
|
host: s.field("host", S.string),
|
|
417
|
-
sinceId: s.
|
|
418
|
-
untilId: s.
|
|
419
|
-
limit: s.
|
|
417
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
418
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
419
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
420
420
|
})
|
|
421
421
|
|
|
422
422
|
type postFederationUsersResponse = array<MisskeyIoComponentSchemas.UserDetailedNotMe.t>
|
|
@@ -18,7 +18,7 @@ let postFlashCreateRequestSchema = S.object(s => {
|
|
|
18
18
|
summary: s.field("summary", S.string),
|
|
19
19
|
script: s.field("script", S.string),
|
|
20
20
|
permissions: s.field("permissions", S.array(S.string)),
|
|
21
|
-
visibility: s.
|
|
21
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
type postFlashCreateResponse = MisskeyIoComponentSchemas.Flash.t
|
|
@@ -51,8 +51,8 @@ type postFlashFeaturedRequest = {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
let postFlashFeaturedRequestSchema = S.object(s => {
|
|
54
|
-
offset: s.
|
|
55
|
-
limit: s.
|
|
54
|
+
offset: s.field("offset", S.option(S.int->S.min(0))),
|
|
55
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
56
56
|
})
|
|
57
57
|
|
|
58
58
|
type postFlashFeaturedResponse = array<MisskeyIoComponentSchemas.Flash.t>
|
|
@@ -150,11 +150,11 @@ type postFlashUpdateRequest = {
|
|
|
150
150
|
|
|
151
151
|
let postFlashUpdateRequestSchema = S.object(s => {
|
|
152
152
|
flashId: s.field("flashId", S.string),
|
|
153
|
-
title: s.
|
|
154
|
-
summary: s.
|
|
155
|
-
script: s.
|
|
156
|
-
permissions: s.
|
|
157
|
-
visibility: s.
|
|
153
|
+
title: s.field("title", S.option(S.string)),
|
|
154
|
+
summary: s.field("summary", S.option(S.string)),
|
|
155
|
+
script: s.field("script", S.option(S.string)),
|
|
156
|
+
permissions: s.field("permissions", S.option(S.array(S.string))),
|
|
157
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
158
158
|
})
|
|
159
159
|
|
|
160
160
|
type postFlashUpdateResponse = unit
|
|
@@ -12,7 +12,7 @@ type postFollowingCreateRequest = {
|
|
|
12
12
|
|
|
13
13
|
let postFollowingCreateRequestSchema = S.object(s => {
|
|
14
14
|
userId: s.field("userId", S.string),
|
|
15
|
-
withReplies: s.
|
|
15
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
type postFollowingCreateResponse = MisskeyIoComponentSchemas.UserLite.t
|
|
@@ -172,9 +172,9 @@ type postFollowingRequestsListRequest = {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
let postFollowingRequestsListRequestSchema = S.object(s => {
|
|
175
|
-
sinceId: s.
|
|
176
|
-
untilId: s.
|
|
177
|
-
limit: s.
|
|
175
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
176
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
177
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
178
178
|
})
|
|
179
179
|
|
|
180
180
|
type postFollowingRequestsListResponse_1 = {
|
|
@@ -250,9 +250,9 @@ type postFollowingRequestsSentRequest = {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
let postFollowingRequestsSentRequestSchema = S.object(s => {
|
|
253
|
-
sinceId: s.
|
|
254
|
-
untilId: s.
|
|
255
|
-
limit: s.
|
|
253
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
254
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
255
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
256
256
|
})
|
|
257
257
|
|
|
258
258
|
type postFollowingRequestsSentResponse_1 = {
|
|
@@ -299,8 +299,8 @@ type postFollowingUpdateRequest = {
|
|
|
299
299
|
|
|
300
300
|
let postFollowingUpdateRequestSchema = S.object(s => {
|
|
301
301
|
userId: s.field("userId", S.string),
|
|
302
|
-
notify: s.
|
|
303
|
-
withReplies: s.
|
|
302
|
+
notify: s.field("notify", S.option(S.string)),
|
|
303
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
304
304
|
})
|
|
305
305
|
|
|
306
306
|
type postFollowingUpdateResponse = MisskeyIoComponentSchemas.UserLite.t
|
|
@@ -333,8 +333,8 @@ type postFollowingUpdateAllRequest = {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
let postFollowingUpdateAllRequestSchema = S.object(s => {
|
|
336
|
-
notify: s.
|
|
337
|
-
withReplies: s.
|
|
336
|
+
notify: s.field("notify", S.option(S.string)),
|
|
337
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
338
338
|
})
|
|
339
339
|
|
|
340
340
|
type postFollowingUpdateAllResponse = unit
|