@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
|
@@ -24,11 +24,11 @@ function postIRevokeToken(body, fetch) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
let postISigninHistoryRequestSchema = S.object(s => ({
|
|
27
|
-
limit: s.
|
|
28
|
-
sinceId: s.
|
|
29
|
-
untilId: s.
|
|
30
|
-
sinceDate: s.
|
|
31
|
-
untilDate: s.
|
|
27
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
28
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
29
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
30
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
31
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
32
32
|
}));
|
|
33
33
|
|
|
34
34
|
let postISigninHistoryResponseSchema = S.array(KokonectLinkComponentSchemas.Signin.schema);
|
|
@@ -40,7 +40,7 @@ function postISigninHistory(body, fetch) {
|
|
|
40
40
|
|
|
41
41
|
let postITruncateAccountRequestSchema = S.object(s => ({
|
|
42
42
|
password: s.f("password", S.string),
|
|
43
|
-
token: s.
|
|
43
|
+
token: s.f("token", S.option(S.string))
|
|
44
44
|
}));
|
|
45
45
|
|
|
46
46
|
function postITruncateAccount(body, fetch) {
|
|
@@ -50,8 +50,8 @@ function postITruncateAccount(body, fetch) {
|
|
|
50
50
|
|
|
51
51
|
let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
52
52
|
password: s.f("password", S.string),
|
|
53
|
-
email: s.
|
|
54
|
-
token: s.
|
|
53
|
+
email: s.f("email", S.option(S.string)),
|
|
54
|
+
token: s.f("token", S.option(S.string))
|
|
55
55
|
}));
|
|
56
56
|
|
|
57
57
|
let postIUpdateEmailResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema;
|
|
@@ -62,12 +62,12 @@ function postIUpdateEmail(body, fetch) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
let postReversiGamesRequestSchema = S.object(s => ({
|
|
65
|
-
limit: s.
|
|
66
|
-
sinceId: s.
|
|
67
|
-
untilId: s.
|
|
68
|
-
sinceDate: s.
|
|
69
|
-
untilDate: s.
|
|
70
|
-
my: s.
|
|
65
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
66
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
67
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
68
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
69
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
70
|
+
my: s.f("my", S.option(S.bool))
|
|
71
71
|
}));
|
|
72
72
|
|
|
73
73
|
let postReversiGamesResponseSchema = S.array(KokonectLinkComponentSchemas.ReversiGameLite.schema);
|
|
@@ -78,9 +78,9 @@ function postReversiGames(body, fetch) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
let postReversiMatchRequestSchema = S.object(s => ({
|
|
81
|
-
userId: s.
|
|
82
|
-
noIrregularRules: s.
|
|
83
|
-
multiple: s.
|
|
81
|
+
userId: s.f("userId", S.option(S.string)),
|
|
82
|
+
noIrregularRules: s.f("noIrregularRules", S.option(S.bool)),
|
|
83
|
+
multiple: s.f("multiple", S.option(S.bool))
|
|
84
84
|
}));
|
|
85
85
|
|
|
86
86
|
let postReversiMatchResponseSchema = KokonectLinkComponentSchemas.ReversiGameDetailed.schema;
|
|
@@ -108,7 +108,7 @@ let postReversiVerifyRequestSchema = S.object(s => ({
|
|
|
108
108
|
|
|
109
109
|
let postReversiVerifyResponseSchema = S.object(s => ({
|
|
110
110
|
desynced: s.f("desynced", S.bool),
|
|
111
|
-
game: s.
|
|
111
|
+
game: s.f("game", S.option(KokonectLinkComponentSchemas.ReversiGameDetailed.schema))
|
|
112
112
|
}));
|
|
113
113
|
|
|
114
114
|
function postReversiVerify(body, fetch) {
|
|
@@ -6,14 +6,14 @@ import * as KokonectLinkComponentSchemas from "./KokonectLinkComponentSchemas.mj
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postDriveFilesRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
sinceId: s.
|
|
11
|
-
untilId: s.
|
|
12
|
-
sinceDate: s.
|
|
13
|
-
untilDate: s.
|
|
14
|
-
folderId: s.
|
|
15
|
-
type: s.
|
|
16
|
-
sort: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
11
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
12
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
13
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
14
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
15
|
+
type: s.f("type", S.option(S.pattern(S.string, /^[a-zA-Z\/\*-]+$/, undefined))),
|
|
16
|
+
sort: s.f("sort", S.option(S.string))
|
|
17
17
|
}));
|
|
18
18
|
|
|
19
19
|
let postDriveFilesResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema);
|
|
@@ -24,11 +24,11 @@ function postDriveFiles(body, fetch) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
let postDriveFilesAttachedChatMessagesRequestSchema = S.object(s => ({
|
|
27
|
-
sinceId: s.
|
|
28
|
-
untilId: s.
|
|
29
|
-
sinceDate: s.
|
|
30
|
-
untilDate: s.
|
|
31
|
-
limit: s.
|
|
27
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
28
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
29
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
30
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
31
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
32
32
|
fileId: s.f("fileId", S.string)
|
|
33
33
|
}));
|
|
34
34
|
|
|
@@ -40,11 +40,11 @@ function postDriveFilesAttachedChatMessages(body, fetch) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
let postDriveFilesAttachedNotesRequestSchema = S.object(s => ({
|
|
43
|
-
sinceId: s.
|
|
44
|
-
untilId: s.
|
|
45
|
-
sinceDate: s.
|
|
46
|
-
untilDate: s.
|
|
47
|
-
limit: s.
|
|
43
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
44
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
45
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
46
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
47
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
48
48
|
fileId: s.f("fileId", S.string)
|
|
49
49
|
}));
|
|
50
50
|
|
|
@@ -56,11 +56,11 @@ function postDriveFilesAttachedNotes(body, fetch) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
let postDriveFilesCreateRequestSchema = S.object(s => ({
|
|
59
|
-
folderId: s.
|
|
60
|
-
name: s.
|
|
61
|
-
comment: s.
|
|
62
|
-
isSensitive: s.
|
|
63
|
-
force: s.
|
|
59
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
60
|
+
name: s.f("name", S.option(S.string)),
|
|
61
|
+
comment: s.f("comment", S.option(S.max(S.string, 512, undefined))),
|
|
62
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
63
|
+
force: s.f("force", S.option(S.bool)),
|
|
64
64
|
file: s.f("file", S.string)
|
|
65
65
|
}));
|
|
66
66
|
|
|
@@ -73,7 +73,7 @@ function postDriveFilesCreate(body, fetch) {
|
|
|
73
73
|
|
|
74
74
|
let postDriveFilesMoveBulkRequestSchema = S.object(s => ({
|
|
75
75
|
fileIds: s.f("fileIds", S.array(S.string)),
|
|
76
|
-
folderId: s.
|
|
76
|
+
folderId: s.f("folderId", S.option(S.string))
|
|
77
77
|
}));
|
|
78
78
|
|
|
79
79
|
function postDriveFilesMoveBulk(body, fetch) {
|
|
@@ -94,10 +94,10 @@ function postDriveFilesShow(body, fetch) {
|
|
|
94
94
|
|
|
95
95
|
let postDriveFilesUpdateRequestSchema = S.object(s => ({
|
|
96
96
|
fileId: s.f("fileId", S.string),
|
|
97
|
-
folderId: s.
|
|
98
|
-
name: s.
|
|
99
|
-
isSensitive: s.
|
|
100
|
-
comment: s.
|
|
97
|
+
folderId: s.f("folderId", S.option(S.string)),
|
|
98
|
+
name: s.f("name", S.option(S.string)),
|
|
99
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
100
|
+
comment: s.f("comment", S.option(S.max(S.string, 512, undefined)))
|
|
101
101
|
}));
|
|
102
102
|
|
|
103
103
|
let postDriveFilesUpdateResponseSchema = KokonectLinkComponentSchemas.DriveFile.schema;
|
|
@@ -108,12 +108,12 @@ function postDriveFilesUpdate(body, fetch) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
let postDriveFoldersRequestSchema = S.object(s => ({
|
|
111
|
-
limit: s.
|
|
112
|
-
sinceId: s.
|
|
113
|
-
untilId: s.
|
|
114
|
-
sinceDate: s.
|
|
115
|
-
untilDate: s.
|
|
116
|
-
folderId: s.
|
|
111
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
112
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
113
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
114
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
115
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
116
|
+
folderId: s.f("folderId", S.option(S.string))
|
|
117
117
|
}));
|
|
118
118
|
|
|
119
119
|
let postDriveFoldersResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFolder.schema);
|
|
@@ -124,8 +124,8 @@ function postDriveFolders(body, fetch) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
let postDriveFoldersCreateRequestSchema = S.object(s => ({
|
|
127
|
-
name: s.
|
|
128
|
-
parentId: s.
|
|
127
|
+
name: s.f("name", S.option(S.max(S.string, 200, undefined))),
|
|
128
|
+
parentId: s.f("parentId", S.option(S.string))
|
|
129
129
|
}));
|
|
130
130
|
|
|
131
131
|
let postDriveFoldersCreateResponseSchema = KokonectLinkComponentSchemas.DriveFolder.schema;
|
|
@@ -148,8 +148,8 @@ function postDriveFoldersShow(body, fetch) {
|
|
|
148
148
|
|
|
149
149
|
let postDriveFoldersUpdateRequestSchema = S.object(s => ({
|
|
150
150
|
folderId: s.f("folderId", S.string),
|
|
151
|
-
name: s.
|
|
152
|
-
parentId: s.
|
|
151
|
+
name: s.f("name", S.option(S.max(S.string, 200, undefined))),
|
|
152
|
+
parentId: s.f("parentId", S.option(S.string))
|
|
153
153
|
}));
|
|
154
154
|
|
|
155
155
|
let postDriveFoldersUpdateResponseSchema = KokonectLinkComponentSchemas.DriveFolder.schema;
|
|
@@ -160,12 +160,12 @@ function postDriveFoldersUpdate(body, fetch) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
let postDriveStreamRequestSchema = S.object(s => ({
|
|
163
|
-
limit: s.
|
|
164
|
-
sinceId: s.
|
|
165
|
-
untilId: s.
|
|
166
|
-
sinceDate: s.
|
|
167
|
-
untilDate: s.
|
|
168
|
-
type: s.
|
|
163
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
164
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
165
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
166
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
167
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
168
|
+
type: s.f("type", S.option(S.pattern(S.string, /^[a-zA-Z\/\*-]+$/, undefined)))
|
|
169
169
|
}));
|
|
170
170
|
|
|
171
171
|
let postDriveStreamResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema);
|
|
@@ -7,11 +7,11 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postFederationFollowersRequestSchema = S.object(s => ({
|
|
9
9
|
host: s.f("host", S.string),
|
|
10
|
-
sinceId: s.
|
|
11
|
-
untilId: s.
|
|
12
|
-
sinceDate: s.
|
|
13
|
-
untilDate: s.
|
|
14
|
-
limit: s.
|
|
10
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
11
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
12
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
13
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
14
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
let postFederationFollowersResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
@@ -23,11 +23,11 @@ function postFederationFollowers(body, fetch) {
|
|
|
23
23
|
|
|
24
24
|
let postFederationFollowingRequestSchema = S.object(s => ({
|
|
25
25
|
host: s.f("host", S.string),
|
|
26
|
-
sinceId: s.
|
|
27
|
-
untilId: s.
|
|
28
|
-
sinceDate: s.
|
|
29
|
-
untilDate: s.
|
|
30
|
-
limit: s.
|
|
26
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
27
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
28
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
29
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
30
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
31
31
|
}));
|
|
32
32
|
|
|
33
33
|
let postFederationFollowingResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
@@ -38,14 +38,14 @@ function postFederationFollowing(body, fetch) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
let getFederationRemoteSoftwareRequestSchema = S.object(s => ({
|
|
41
|
-
blocked: s.
|
|
42
|
-
notResponding: s.
|
|
43
|
-
suspended: s.
|
|
44
|
-
silenced: s.
|
|
45
|
-
federating: s.
|
|
46
|
-
subscribing: s.
|
|
47
|
-
publishing: s.
|
|
48
|
-
quarantined: s.
|
|
41
|
+
blocked: s.f("blocked", S.option(S.bool)),
|
|
42
|
+
notResponding: s.f("notResponding", S.option(S.bool)),
|
|
43
|
+
suspended: s.f("suspended", S.option(S.bool)),
|
|
44
|
+
silenced: s.f("silenced", S.option(S.bool)),
|
|
45
|
+
federating: s.f("federating", S.option(S.bool)),
|
|
46
|
+
subscribing: s.f("subscribing", S.option(S.bool)),
|
|
47
|
+
publishing: s.f("publishing", S.option(S.bool)),
|
|
48
|
+
quarantined: s.f("quarantined", S.option(S.bool))
|
|
49
49
|
}));
|
|
50
50
|
|
|
51
51
|
let getFederationRemoteSoftwareResponse_1Schema = S.object(s => ({
|
|
@@ -62,14 +62,14 @@ function getFederationRemoteSoftware(body, fetch) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
let postFederationRemoteSoftwareRequestSchema = S.object(s => ({
|
|
65
|
-
blocked: s.
|
|
66
|
-
notResponding: s.
|
|
67
|
-
suspended: s.
|
|
68
|
-
silenced: s.
|
|
69
|
-
federating: s.
|
|
70
|
-
subscribing: s.
|
|
71
|
-
publishing: s.
|
|
72
|
-
quarantined: s.
|
|
65
|
+
blocked: s.f("blocked", S.option(S.bool)),
|
|
66
|
+
notResponding: s.f("notResponding", S.option(S.bool)),
|
|
67
|
+
suspended: s.f("suspended", S.option(S.bool)),
|
|
68
|
+
silenced: s.f("silenced", S.option(S.bool)),
|
|
69
|
+
federating: s.f("federating", S.option(S.bool)),
|
|
70
|
+
subscribing: s.f("subscribing", S.option(S.bool)),
|
|
71
|
+
publishing: s.f("publishing", S.option(S.bool)),
|
|
72
|
+
quarantined: s.f("quarantined", S.option(S.bool))
|
|
73
73
|
}));
|
|
74
74
|
|
|
75
75
|
let postFederationRemoteSoftwareResponse_1Schema = S.object(s => ({
|
|
@@ -98,11 +98,11 @@ function postFederationShowInstance(body, fetch) {
|
|
|
98
98
|
|
|
99
99
|
let postFederationUsersRequestSchema = S.object(s => ({
|
|
100
100
|
host: s.f("host", S.string),
|
|
101
|
-
sinceId: s.
|
|
102
|
-
untilId: s.
|
|
103
|
-
sinceDate: s.
|
|
104
|
-
untilDate: s.
|
|
105
|
-
limit: s.
|
|
101
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
102
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
103
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
104
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
105
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
106
106
|
}));
|
|
107
107
|
|
|
108
108
|
let postFederationUsersResponseSchema = S.array(KokonectLinkComponentSchemas.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 = KokonectLinkComponentSchemas.Flash.schema;
|
|
@@ -35,11 +35,11 @@ function postFlashGenToken(body, fetch) {
|
|
|
35
35
|
|
|
36
36
|
let postFlashSearchRequestSchema = S.object(s => ({
|
|
37
37
|
query: s.f("query", S.max(S.min(S.string, 1, undefined), 100, undefined)),
|
|
38
|
-
sinceId: s.
|
|
39
|
-
untilId: s.
|
|
40
|
-
sinceDate: s.
|
|
41
|
-
untilDate: s.
|
|
42
|
-
limit: s.
|
|
38
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
39
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
40
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
41
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
42
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
43
43
|
}));
|
|
44
44
|
|
|
45
45
|
let postFlashSearchResponseSchema = S.array(KokonectLinkComponentSchemas.Flash.schema);
|
|
@@ -7,7 +7,7 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postFollowingCreateRequestSchema = S.object(s => ({
|
|
9
9
|
userId: s.f("userId", S.string),
|
|
10
|
-
withReplies: s.
|
|
10
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let postFollowingCreateResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
@@ -51,11 +51,11 @@ function postFollowingRequestsCancel(body, fetch) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
let postFollowingRequestsListRequestSchema = S.object(s => ({
|
|
54
|
-
sinceId: s.
|
|
55
|
-
untilId: s.
|
|
56
|
-
sinceDate: s.
|
|
57
|
-
untilDate: s.
|
|
58
|
-
limit: s.
|
|
54
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
55
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
56
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
57
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
58
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
59
59
|
}));
|
|
60
60
|
|
|
61
61
|
let postFollowingRequestsListResponse_1Schema = S.object(s => ({
|
|
@@ -72,11 +72,11 @@ function postFollowingRequestsList(body, fetch) {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
let postFollowingRequestsSentRequestSchema = S.object(s => ({
|
|
75
|
-
sinceId: s.
|
|
76
|
-
untilId: s.
|
|
77
|
-
sinceDate: s.
|
|
78
|
-
untilDate: s.
|
|
79
|
-
limit: s.
|
|
75
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
76
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
77
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
78
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
79
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
80
80
|
}));
|
|
81
81
|
|
|
82
82
|
let postFollowingRequestsSentResponse_1Schema = S.object(s => ({
|
|
@@ -94,8 +94,8 @@ function postFollowingRequestsSent(body, fetch) {
|
|
|
94
94
|
|
|
95
95
|
let postFollowingUpdateRequestSchema = S.object(s => ({
|
|
96
96
|
userId: s.f("userId", S.string),
|
|
97
|
-
notify: s.
|
|
98
|
-
withReplies: s.
|
|
97
|
+
notify: s.f("notify", S.option(S.string)),
|
|
98
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
99
99
|
}));
|
|
100
100
|
|
|
101
101
|
let postFollowingUpdateResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
@@ -6,11 +6,11 @@ import * as KokonectLinkComponentSchemas from "./KokonectLinkComponentSchemas.mj
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postGalleryPostsRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
sinceId: s.
|
|
11
|
-
untilId: s.
|
|
12
|
-
sinceDate: s.
|
|
13
|
-
untilDate: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
11
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
12
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
13
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
16
|
let postGalleryPostsResponseSchema = S.array(KokonectLinkComponentSchemas.GalleryPost.schema);
|
|
@@ -22,9 +22,9 @@ function postGalleryPosts(body, fetch) {
|
|
|
22
22
|
|
|
23
23
|
let postGalleryPostsCreateRequestSchema = S.object(s => ({
|
|
24
24
|
title: s.f("title", S.min(S.string, 1, undefined)),
|
|
25
|
-
description: s.
|
|
25
|
+
description: s.f("description", S.option(S.string)),
|
|
26
26
|
fileIds: s.f("fileIds", S.array(S.string)),
|
|
27
|
-
isSensitive: s.
|
|
27
|
+
isSensitive: s.f("isSensitive", S.option(S.bool))
|
|
28
28
|
}));
|
|
29
29
|
|
|
30
30
|
let postGalleryPostsCreateResponseSchema = KokonectLinkComponentSchemas.GalleryPost.schema;
|
|
@@ -47,10 +47,10 @@ function postGalleryPostsShow(body, fetch) {
|
|
|
47
47
|
|
|
48
48
|
let postGalleryPostsUpdateRequestSchema = S.object(s => ({
|
|
49
49
|
postId: s.f("postId", S.string),
|
|
50
|
-
title: s.
|
|
51
|
-
description: s.
|
|
52
|
-
fileIds: s.
|
|
53
|
-
isSensitive: s.
|
|
50
|
+
title: s.f("title", S.option(S.min(S.string, 1, undefined))),
|
|
51
|
+
description: s.f("description", S.option(S.string)),
|
|
52
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
53
|
+
isSensitive: s.f("isSensitive", S.option(S.bool))
|
|
54
54
|
}));
|
|
55
55
|
|
|
56
56
|
let postGalleryPostsUpdateResponseSchema = KokonectLinkComponentSchemas.GalleryPost.schema;
|
|
@@ -18,10 +18,10 @@ function postHashtagsShow(body, fetch) {
|
|
|
18
18
|
|
|
19
19
|
let postHashtagsUsersRequestSchema = S.object(s => ({
|
|
20
20
|
tag: s.f("tag", S.string),
|
|
21
|
-
limit: s.
|
|
21
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
22
22
|
sort: s.f("sort", S.string),
|
|
23
|
-
state: s.
|
|
24
|
-
origin: s.
|
|
23
|
+
state: s.f("state", S.option(S.string)),
|
|
24
|
+
origin: s.f("origin", S.option(S.string))
|
|
25
25
|
}));
|
|
26
26
|
|
|
27
27
|
let postHashtagsUsersResponseSchema = S.array(KokonectLinkComponentSchemas.UserDetailed.schema);
|
|
@@ -18,12 +18,12 @@ function postUsersListsCreate(body, fetch) {
|
|
|
18
18
|
|
|
19
19
|
let postUsersListsGetMembershipsRequestSchema = S.object(s => ({
|
|
20
20
|
listId: s.f("listId", S.string),
|
|
21
|
-
forPublic: s.
|
|
22
|
-
limit: s.
|
|
23
|
-
sinceId: s.
|
|
24
|
-
untilId: s.
|
|
25
|
-
sinceDate: s.
|
|
26
|
-
untilDate: s.
|
|
21
|
+
forPublic: s.f("forPublic", S.option(S.bool)),
|
|
22
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
23
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
24
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
25
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
26
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
27
27
|
}));
|
|
28
28
|
|
|
29
29
|
let postUsersListsGetMembershipsResponse_1Schema = S.object(s => ({
|
|
@@ -43,8 +43,8 @@ function postUsersListsGetMemberships(body, fetch) {
|
|
|
43
43
|
|
|
44
44
|
let postUsersListsUpdateRequestSchema = S.object(s => ({
|
|
45
45
|
listId: s.f("listId", S.string),
|
|
46
|
-
name: s.
|
|
47
|
-
isPublic: s.
|
|
46
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
47
|
+
isPublic: s.f("isPublic", S.option(S.bool))
|
|
48
48
|
}));
|
|
49
49
|
|
|
50
50
|
let postUsersListsUpdateResponseSchema = KokonectLinkComponentSchemas.UserList.schema;
|
|
@@ -39,7 +39,7 @@ let postAdminMetaResponseSchema = S.object(s => ({
|
|
|
39
39
|
enableServiceWorker: s.f("enableServiceWorker", S.bool),
|
|
40
40
|
translatorAvailable: s.f("translatorAvailable", S.bool),
|
|
41
41
|
translatorType: s.f("translatorType", S.nullableAsOption(S.string)),
|
|
42
|
-
silencedHosts: s.
|
|
42
|
+
silencedHosts: s.f("silencedHosts", S.option(S.array(S.string))),
|
|
43
43
|
mediaSilencedHosts: s.f("mediaSilencedHosts", S.array(S.string)),
|
|
44
44
|
pinnedUsers: s.f("pinnedUsers", S.array(S.string)),
|
|
45
45
|
hiddenTags: s.f("hiddenTags", S.array(S.string)),
|
|
@@ -47,7 +47,7 @@ let postAdminMetaResponseSchema = S.object(s => ({
|
|
|
47
47
|
sensitiveWords: s.f("sensitiveWords", S.array(S.string)),
|
|
48
48
|
prohibitedWords: s.f("prohibitedWords", S.array(S.string)),
|
|
49
49
|
prohibitedWordsForNameOfUser: s.f("prohibitedWordsForNameOfUser", S.array(S.string)),
|
|
50
|
-
bannedEmailDomains: s.
|
|
50
|
+
bannedEmailDomains: s.f("bannedEmailDomains", S.option(S.array(S.string))),
|
|
51
51
|
preservedUsernames: s.f("preservedUsernames", S.array(S.string)),
|
|
52
52
|
hcaptchaSecretKey: s.f("hcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
53
53
|
mcaptchaSecretKey: s.f("mcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
@@ -164,7 +164,7 @@ let postAdminMetaResponseSchema = S.object(s => ({
|
|
|
164
164
|
emailToReceiveAbuseReport: s.f("emailToReceiveAbuseReport", S.nullableAsOption(S.string)),
|
|
165
165
|
enableReceivePrerelease: s.f("enableReceivePrerelease", S.bool),
|
|
166
166
|
skipVersion: s.f("skipVersion", S.bool),
|
|
167
|
-
skipCherryPickVersion: s.
|
|
167
|
+
skipCherryPickVersion: s.f("skipCherryPickVersion", S.option(S.string)),
|
|
168
168
|
trustedLinkUrlPatterns: s.f("trustedLinkUrlPatterns", S.array(S.string)),
|
|
169
169
|
customSplashText: s.f("customSplashText", S.array(S.string)),
|
|
170
170
|
disableRegistrationWhenInactive: s.f("disableRegistrationWhenInactive", S.bool),
|
|
@@ -180,12 +180,12 @@ function postAdminMeta(fetch) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
let postAnnouncementsRequestSchema = S.object(s => ({
|
|
183
|
-
limit: s.
|
|
184
|
-
sinceId: s.
|
|
185
|
-
untilId: s.
|
|
186
|
-
sinceDate: s.
|
|
187
|
-
untilDate: s.
|
|
188
|
-
isActive: s.
|
|
183
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
184
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
185
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
186
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
187
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
188
|
+
isActive: s.f("isActive", S.option(S.bool))
|
|
189
189
|
}));
|
|
190
190
|
|
|
191
191
|
let postAnnouncementsResponseSchema = S.array(KokonectLinkComponentSchemas.Announcement.schema);
|
|
@@ -235,11 +235,11 @@ function postInviteCreate(fetch) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
let postInviteListRequestSchema = S.object(s => ({
|
|
238
|
-
limit: s.
|
|
239
|
-
sinceId: s.
|
|
240
|
-
untilId: s.
|
|
241
|
-
sinceDate: s.
|
|
242
|
-
untilDate: s.
|
|
238
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
239
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
240
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
241
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
242
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
243
243
|
}));
|
|
244
244
|
|
|
245
245
|
let postInviteListResponseSchema = S.array(KokonectLinkComponentSchemas.InviteCode.schema);
|