@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
|
@@ -79,11 +79,11 @@ type postISigninHistoryRequest = {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
let postISigninHistoryRequestSchema = S.object(s => {
|
|
82
|
-
limit: s.
|
|
83
|
-
sinceId: s.
|
|
84
|
-
untilId: s.
|
|
85
|
-
sinceDate: s.
|
|
86
|
-
untilDate: s.
|
|
82
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
83
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
84
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
85
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
86
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
type postISigninHistoryResponse = array<KokonectLinkComponentSchemas.Signin.t>
|
|
@@ -118,7 +118,7 @@ type postITruncateAccountRequest = {
|
|
|
118
118
|
|
|
119
119
|
let postITruncateAccountRequestSchema = S.object(s => {
|
|
120
120
|
password: s.field("password", S.string),
|
|
121
|
-
token: s.
|
|
121
|
+
token: s.field("token", S.option(S.string)),
|
|
122
122
|
})
|
|
123
123
|
|
|
124
124
|
type postITruncateAccountResponse = unit
|
|
@@ -152,8 +152,8 @@ type postIUpdateEmailRequest = {
|
|
|
152
152
|
|
|
153
153
|
let postIUpdateEmailRequestSchema = S.object(s => {
|
|
154
154
|
password: s.field("password", S.string),
|
|
155
|
-
email: s.
|
|
156
|
-
token: s.
|
|
155
|
+
email: s.field("email", S.option(S.string)),
|
|
156
|
+
token: s.field("token", S.option(S.string)),
|
|
157
157
|
})
|
|
158
158
|
|
|
159
159
|
type postIUpdateEmailResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
@@ -191,12 +191,12 @@ type postReversiGamesRequest = {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
let postReversiGamesRequestSchema = S.object(s => {
|
|
194
|
-
limit: s.
|
|
195
|
-
sinceId: s.
|
|
196
|
-
untilId: s.
|
|
197
|
-
sinceDate: s.
|
|
198
|
-
untilDate: s.
|
|
199
|
-
my: s.
|
|
194
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
195
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
196
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
197
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
198
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
199
|
+
my: s.field("my", S.option(S.bool)),
|
|
200
200
|
})
|
|
201
201
|
|
|
202
202
|
type postReversiGamesResponse = array<KokonectLinkComponentSchemas.ReversiGameLite.t>
|
|
@@ -230,9 +230,9 @@ type postReversiMatchRequest = {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
let postReversiMatchRequestSchema = S.object(s => {
|
|
233
|
-
userId: s.
|
|
234
|
-
noIrregularRules: s.
|
|
235
|
-
multiple: s.
|
|
233
|
+
userId: s.field("userId", S.option(S.string)),
|
|
234
|
+
noIrregularRules: s.field("noIrregularRules", S.option(S.bool)),
|
|
235
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
236
236
|
})
|
|
237
237
|
|
|
238
238
|
type postReversiMatchResponse = KokonectLinkComponentSchemas.ReversiGameDetailed.t
|
|
@@ -308,7 +308,7 @@ type postReversiVerifyResponse = {
|
|
|
308
308
|
|
|
309
309
|
let postReversiVerifyResponseSchema = S.object(s => {
|
|
310
310
|
desynced: s.field("desynced", S.bool),
|
|
311
|
-
game: s.
|
|
311
|
+
game: s.field("game", S.option(KokonectLinkComponentSchemas.ReversiGameDetailed.schema)),
|
|
312
312
|
})
|
|
313
313
|
|
|
314
314
|
/**
|
|
@@ -17,14 +17,14 @@ type postDriveFilesRequest = {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
let postDriveFilesRequestSchema = S.object(s => {
|
|
20
|
-
limit: s.
|
|
21
|
-
sinceId: s.
|
|
22
|
-
untilId: s.
|
|
23
|
-
sinceDate: s.
|
|
24
|
-
untilDate: s.
|
|
25
|
-
folderId: s.
|
|
26
|
-
type_: s.
|
|
27
|
-
sort: s.
|
|
20
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
21
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
22
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
23
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
24
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
25
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
26
|
+
type_: s.field("type", S.option(S.string->S.pattern(/^[a-zA-Z\/\*-]+$/))),
|
|
27
|
+
sort: s.field("sort", S.option(S.string)),
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
type postDriveFilesResponse = array<KokonectLinkComponentSchemas.DriveFile.t>
|
|
@@ -61,11 +61,11 @@ type postDriveFilesAttachedChatMessagesRequest = {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
let postDriveFilesAttachedChatMessagesRequestSchema = S.object(s => {
|
|
64
|
-
sinceId: s.
|
|
65
|
-
untilId: s.
|
|
66
|
-
sinceDate: s.
|
|
67
|
-
untilDate: s.
|
|
68
|
-
limit: s.
|
|
64
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
65
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
66
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
67
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
68
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
69
69
|
fileId: s.field("fileId", S.string),
|
|
70
70
|
})
|
|
71
71
|
|
|
@@ -103,11 +103,11 @@ type postDriveFilesAttachedNotesRequest = {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
let postDriveFilesAttachedNotesRequestSchema = S.object(s => {
|
|
106
|
-
sinceId: s.
|
|
107
|
-
untilId: s.
|
|
108
|
-
sinceDate: s.
|
|
109
|
-
untilDate: s.
|
|
110
|
-
limit: s.
|
|
106
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
107
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
108
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
109
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
110
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
111
111
|
fileId: s.field("fileId", S.string),
|
|
112
112
|
})
|
|
113
113
|
|
|
@@ -145,11 +145,11 @@ type postDriveFilesCreateRequest = {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
let postDriveFilesCreateRequestSchema = S.object(s => {
|
|
148
|
-
folderId: s.
|
|
149
|
-
name: s.
|
|
150
|
-
comment: s.
|
|
151
|
-
isSensitive: s.
|
|
152
|
-
force: s.
|
|
148
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
149
|
+
name: s.field("name", S.option(S.string)),
|
|
150
|
+
comment: s.field("comment", S.option(S.string->S.max(512))),
|
|
151
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
152
|
+
force: s.field("force", S.option(S.bool)),
|
|
153
153
|
file: s.field("file", S.string),
|
|
154
154
|
})
|
|
155
155
|
|
|
@@ -184,7 +184,7 @@ type postDriveFilesMoveBulkRequest = {
|
|
|
184
184
|
|
|
185
185
|
let postDriveFilesMoveBulkRequestSchema = S.object(s => {
|
|
186
186
|
fileIds: s.field("fileIds", S.array(S.string)),
|
|
187
|
-
folderId: s.
|
|
187
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
188
188
|
})
|
|
189
189
|
|
|
190
190
|
type postDriveFilesMoveBulkResponse = unit
|
|
@@ -255,10 +255,10 @@ type postDriveFilesUpdateRequest = {
|
|
|
255
255
|
|
|
256
256
|
let postDriveFilesUpdateRequestSchema = S.object(s => {
|
|
257
257
|
fileId: s.field("fileId", S.string),
|
|
258
|
-
folderId: s.
|
|
259
|
-
name: s.
|
|
260
|
-
isSensitive: s.
|
|
261
|
-
comment: s.
|
|
258
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
259
|
+
name: s.field("name", S.option(S.string)),
|
|
260
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
261
|
+
comment: s.field("comment", S.option(S.string->S.max(512))),
|
|
262
262
|
})
|
|
263
263
|
|
|
264
264
|
type postDriveFilesUpdateResponse = KokonectLinkComponentSchemas.DriveFile.t
|
|
@@ -295,12 +295,12 @@ type postDriveFoldersRequest = {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
let postDriveFoldersRequestSchema = S.object(s => {
|
|
298
|
-
limit: s.
|
|
299
|
-
sinceId: s.
|
|
300
|
-
untilId: s.
|
|
301
|
-
sinceDate: s.
|
|
302
|
-
untilDate: s.
|
|
303
|
-
folderId: s.
|
|
298
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
299
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
300
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
301
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
302
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
303
|
+
folderId: s.field("folderId", S.option(S.string)),
|
|
304
304
|
})
|
|
305
305
|
|
|
306
306
|
type postDriveFoldersResponse = array<KokonectLinkComponentSchemas.DriveFolder.t>
|
|
@@ -333,8 +333,8 @@ type postDriveFoldersCreateRequest = {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
let postDriveFoldersCreateRequestSchema = S.object(s => {
|
|
336
|
-
name: s.
|
|
337
|
-
parentId: s.
|
|
336
|
+
name: s.field("name", S.option(S.string->S.max(200))),
|
|
337
|
+
parentId: s.field("parentId", S.option(S.string)),
|
|
338
338
|
})
|
|
339
339
|
|
|
340
340
|
type postDriveFoldersCreateResponse = KokonectLinkComponentSchemas.DriveFolder.t
|
|
@@ -401,8 +401,8 @@ type postDriveFoldersUpdateRequest = {
|
|
|
401
401
|
|
|
402
402
|
let postDriveFoldersUpdateRequestSchema = S.object(s => {
|
|
403
403
|
folderId: s.field("folderId", S.string),
|
|
404
|
-
name: s.
|
|
405
|
-
parentId: s.
|
|
404
|
+
name: s.field("name", S.option(S.string->S.max(200))),
|
|
405
|
+
parentId: s.field("parentId", S.option(S.string)),
|
|
406
406
|
})
|
|
407
407
|
|
|
408
408
|
type postDriveFoldersUpdateResponse = KokonectLinkComponentSchemas.DriveFolder.t
|
|
@@ -439,12 +439,12 @@ type postDriveStreamRequest = {
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
let postDriveStreamRequestSchema = S.object(s => {
|
|
442
|
-
limit: s.
|
|
443
|
-
sinceId: s.
|
|
444
|
-
untilId: s.
|
|
445
|
-
sinceDate: s.
|
|
446
|
-
untilDate: s.
|
|
447
|
-
type_: s.
|
|
442
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
443
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
444
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
445
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
446
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
447
|
+
type_: s.field("type", S.option(S.string->S.pattern(/^[a-zA-Z\/\*-]+$/))),
|
|
448
448
|
})
|
|
449
449
|
|
|
450
450
|
type postDriveStreamResponse = array<KokonectLinkComponentSchemas.DriveFile.t>
|
|
@@ -16,11 +16,11 @@ type postFederationFollowersRequest = {
|
|
|
16
16
|
|
|
17
17
|
let postFederationFollowersRequestSchema = S.object(s => {
|
|
18
18
|
host: s.field("host", S.string),
|
|
19
|
-
sinceId: s.
|
|
20
|
-
untilId: s.
|
|
21
|
-
sinceDate: s.
|
|
22
|
-
untilDate: s.
|
|
23
|
-
limit: s.
|
|
19
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
20
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
21
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
22
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
23
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
type postFederationFollowersResponse = array<KokonectLinkComponentSchemas.Following.t>
|
|
@@ -58,11 +58,11 @@ type postFederationFollowingRequest = {
|
|
|
58
58
|
|
|
59
59
|
let postFederationFollowingRequestSchema = S.object(s => {
|
|
60
60
|
host: s.field("host", S.string),
|
|
61
|
-
sinceId: s.
|
|
62
|
-
untilId: s.
|
|
63
|
-
sinceDate: s.
|
|
64
|
-
untilDate: s.
|
|
65
|
-
limit: s.
|
|
61
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
62
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
63
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
64
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
65
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
66
66
|
})
|
|
67
67
|
|
|
68
68
|
type postFederationFollowingResponse = array<KokonectLinkComponentSchemas.Following.t>
|
|
@@ -101,14 +101,14 @@ type getFederationRemoteSoftwareRequest = {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
let getFederationRemoteSoftwareRequestSchema = S.object(s => {
|
|
104
|
-
blocked: s.
|
|
105
|
-
notResponding: s.
|
|
106
|
-
suspended: s.
|
|
107
|
-
silenced: s.
|
|
108
|
-
federating: s.
|
|
109
|
-
subscribing: s.
|
|
110
|
-
publishing: s.
|
|
111
|
-
quarantined: s.
|
|
104
|
+
blocked: s.field("blocked", S.option(S.bool)),
|
|
105
|
+
notResponding: s.field("notResponding", S.option(S.bool)),
|
|
106
|
+
suspended: s.field("suspended", S.option(S.bool)),
|
|
107
|
+
silenced: s.field("silenced", S.option(S.bool)),
|
|
108
|
+
federating: s.field("federating", S.option(S.bool)),
|
|
109
|
+
subscribing: s.field("subscribing", S.option(S.bool)),
|
|
110
|
+
publishing: s.field("publishing", S.option(S.bool)),
|
|
111
|
+
quarantined: s.field("quarantined", S.option(S.bool)),
|
|
112
112
|
})
|
|
113
113
|
|
|
114
114
|
type getFederationRemoteSoftwareResponse_1 = {
|
|
@@ -159,14 +159,14 @@ type postFederationRemoteSoftwareRequest = {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
let postFederationRemoteSoftwareRequestSchema = S.object(s => {
|
|
162
|
-
blocked: s.
|
|
163
|
-
notResponding: s.
|
|
164
|
-
suspended: s.
|
|
165
|
-
silenced: s.
|
|
166
|
-
federating: s.
|
|
167
|
-
subscribing: s.
|
|
168
|
-
publishing: s.
|
|
169
|
-
quarantined: s.
|
|
162
|
+
blocked: s.field("blocked", S.option(S.bool)),
|
|
163
|
+
notResponding: s.field("notResponding", S.option(S.bool)),
|
|
164
|
+
suspended: s.field("suspended", S.option(S.bool)),
|
|
165
|
+
silenced: s.field("silenced", S.option(S.bool)),
|
|
166
|
+
federating: s.field("federating", S.option(S.bool)),
|
|
167
|
+
subscribing: s.field("subscribing", S.option(S.bool)),
|
|
168
|
+
publishing: s.field("publishing", S.option(S.bool)),
|
|
169
|
+
quarantined: s.field("quarantined", S.option(S.bool)),
|
|
170
170
|
})
|
|
171
171
|
|
|
172
172
|
type postFederationRemoteSoftwareResponse_1 = {
|
|
@@ -248,11 +248,11 @@ type postFederationUsersRequest = {
|
|
|
248
248
|
|
|
249
249
|
let postFederationUsersRequestSchema = S.object(s => {
|
|
250
250
|
host: s.field("host", S.string),
|
|
251
|
-
sinceId: s.
|
|
252
|
-
untilId: s.
|
|
253
|
-
sinceDate: s.
|
|
254
|
-
untilDate: s.
|
|
255
|
-
limit: s.
|
|
251
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
252
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
253
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
254
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
255
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
256
256
|
})
|
|
257
257
|
|
|
258
258
|
type postFederationUsersResponse = array<KokonectLinkComponentSchemas.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 = KokonectLinkComponentSchemas.Flash.t
|
|
@@ -93,11 +93,11 @@ type postFlashSearchRequest = {
|
|
|
93
93
|
|
|
94
94
|
let postFlashSearchRequestSchema = S.object(s => {
|
|
95
95
|
query: s.field("query", S.string->S.min(1)->S.max(100)),
|
|
96
|
-
sinceId: s.
|
|
97
|
-
untilId: s.
|
|
98
|
-
sinceDate: s.
|
|
99
|
-
untilDate: s.
|
|
100
|
-
limit: s.
|
|
96
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
97
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
98
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
99
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
100
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
101
101
|
})
|
|
102
102
|
|
|
103
103
|
type postFlashSearchResponse = array<KokonectLinkComponentSchemas.Flash.t>
|
|
@@ -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 = KokonectLinkComponentSchemas.UserLite.t
|
|
@@ -144,11 +144,11 @@ type postFollowingRequestsListRequest = {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
let postFollowingRequestsListRequestSchema = S.object(s => {
|
|
147
|
-
sinceId: s.
|
|
148
|
-
untilId: s.
|
|
149
|
-
sinceDate: s.
|
|
150
|
-
untilDate: s.
|
|
151
|
-
limit: s.
|
|
147
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
148
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
149
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
150
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
151
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
152
152
|
})
|
|
153
153
|
|
|
154
154
|
type postFollowingRequestsListResponse_1 = {
|
|
@@ -196,11 +196,11 @@ type postFollowingRequestsSentRequest = {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
let postFollowingRequestsSentRequestSchema = S.object(s => {
|
|
199
|
-
sinceId: s.
|
|
200
|
-
untilId: s.
|
|
201
|
-
sinceDate: s.
|
|
202
|
-
untilDate: s.
|
|
203
|
-
limit: s.
|
|
199
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
200
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
201
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
202
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
203
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
204
204
|
})
|
|
205
205
|
|
|
206
206
|
type postFollowingRequestsSentResponse_1 = {
|
|
@@ -247,8 +247,8 @@ type postFollowingUpdateRequest = {
|
|
|
247
247
|
|
|
248
248
|
let postFollowingUpdateRequestSchema = S.object(s => {
|
|
249
249
|
userId: s.field("userId", S.string),
|
|
250
|
-
notify: s.
|
|
251
|
-
withReplies: s.
|
|
250
|
+
notify: s.field("notify", S.option(S.string)),
|
|
251
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
252
252
|
})
|
|
253
253
|
|
|
254
254
|
type postFollowingUpdateResponse = KokonectLinkComponentSchemas.UserLite.t
|
|
@@ -14,11 +14,11 @@ type postGalleryPostsRequest = {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
let postGalleryPostsRequestSchema = S.object(s => {
|
|
17
|
-
limit: s.
|
|
18
|
-
sinceId: s.
|
|
19
|
-
untilId: s.
|
|
20
|
-
sinceDate: s.
|
|
21
|
-
untilDate: s.
|
|
17
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
18
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
19
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
20
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
21
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
type postGalleryPostsResponse = array<KokonectLinkComponentSchemas.GalleryPost.t>
|
|
@@ -54,9 +54,9 @@ type postGalleryPostsCreateRequest = {
|
|
|
54
54
|
|
|
55
55
|
let postGalleryPostsCreateRequestSchema = S.object(s => {
|
|
56
56
|
title: s.field("title", S.string->S.min(1)),
|
|
57
|
-
description: s.
|
|
57
|
+
description: s.field("description", S.option(S.string)),
|
|
58
58
|
fileIds: s.field("fileIds", S.array(S.string)),
|
|
59
|
-
isSensitive: s.
|
|
59
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
60
60
|
})
|
|
61
61
|
|
|
62
62
|
type postGalleryPostsCreateResponse = KokonectLinkComponentSchemas.GalleryPost.t
|
|
@@ -125,10 +125,10 @@ type postGalleryPostsUpdateRequest = {
|
|
|
125
125
|
|
|
126
126
|
let postGalleryPostsUpdateRequestSchema = S.object(s => {
|
|
127
127
|
postId: s.field("postId", S.string),
|
|
128
|
-
title: s.
|
|
129
|
-
description: s.
|
|
130
|
-
fileIds: s.
|
|
131
|
-
isSensitive: s.
|
|
128
|
+
title: s.field("title", S.option(S.string->S.min(1))),
|
|
129
|
+
description: s.field("description", S.option(S.string)),
|
|
130
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
131
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
132
132
|
})
|
|
133
133
|
|
|
134
134
|
type postGalleryPostsUpdateResponse = KokonectLinkComponentSchemas.GalleryPost.t
|
|
@@ -47,10 +47,10 @@ type postHashtagsUsersRequest = {
|
|
|
47
47
|
|
|
48
48
|
let postHashtagsUsersRequestSchema = S.object(s => {
|
|
49
49
|
tag: s.field("tag", S.string),
|
|
50
|
-
limit: s.
|
|
50
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
51
51
|
sort: s.field("sort", S.string),
|
|
52
|
-
state: s.
|
|
53
|
-
origin: s.
|
|
52
|
+
state: s.field("state", S.option(S.string)),
|
|
53
|
+
origin: s.field("origin", S.option(S.string)),
|
|
54
54
|
})
|
|
55
55
|
|
|
56
56
|
type postHashtagsUsersResponse = array<KokonectLinkComponentSchemas.UserDetailed.t>
|
|
@@ -49,12 +49,12 @@ type postUsersListsGetMembershipsRequest = {
|
|
|
49
49
|
|
|
50
50
|
let postUsersListsGetMembershipsRequestSchema = S.object(s => {
|
|
51
51
|
listId: s.field("listId", S.string),
|
|
52
|
-
forPublic: s.
|
|
53
|
-
limit: s.
|
|
54
|
-
sinceId: s.
|
|
55
|
-
untilId: s.
|
|
56
|
-
sinceDate: s.
|
|
57
|
-
untilDate: s.
|
|
52
|
+
forPublic: s.field("forPublic", S.option(S.bool)),
|
|
53
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
54
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
55
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
56
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
57
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
type postUsersListsGetMembershipsResponse_1 = {
|
|
@@ -105,8 +105,8 @@ type postUsersListsUpdateRequest = {
|
|
|
105
105
|
|
|
106
106
|
let postUsersListsUpdateRequestSchema = S.object(s => {
|
|
107
107
|
listId: s.field("listId", S.string),
|
|
108
|
-
name: s.
|
|
109
|
-
isPublic: s.
|
|
108
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.max(100))),
|
|
109
|
+
isPublic: s.field("isPublic", S.option(S.bool)),
|
|
110
110
|
})
|
|
111
111
|
|
|
112
112
|
type postUsersListsUpdateResponse = KokonectLinkComponentSchemas.UserList.t
|
|
@@ -209,7 +209,7 @@ let postAdminMetaResponseSchema = S.object(s => {
|
|
|
209
209
|
enableServiceWorker: s.field("enableServiceWorker", S.bool),
|
|
210
210
|
translatorAvailable: s.field("translatorAvailable", S.bool),
|
|
211
211
|
translatorType: s.field("translatorType", S.nullableAsOption(S.string)),
|
|
212
|
-
silencedHosts: s.
|
|
212
|
+
silencedHosts: s.field("silencedHosts", S.option(S.array(S.string))),
|
|
213
213
|
mediaSilencedHosts: s.field("mediaSilencedHosts", S.array(S.string)),
|
|
214
214
|
pinnedUsers: s.field("pinnedUsers", S.array(S.string)),
|
|
215
215
|
hiddenTags: s.field("hiddenTags", S.array(S.string)),
|
|
@@ -217,7 +217,7 @@ let postAdminMetaResponseSchema = S.object(s => {
|
|
|
217
217
|
sensitiveWords: s.field("sensitiveWords", S.array(S.string)),
|
|
218
218
|
prohibitedWords: s.field("prohibitedWords", S.array(S.string)),
|
|
219
219
|
prohibitedWordsForNameOfUser: s.field("prohibitedWordsForNameOfUser", S.array(S.string)),
|
|
220
|
-
bannedEmailDomains: s.
|
|
220
|
+
bannedEmailDomains: s.field("bannedEmailDomains", S.option(S.array(S.string))),
|
|
221
221
|
preservedUsernames: s.field("preservedUsernames", S.array(S.string)),
|
|
222
222
|
hcaptchaSecretKey: s.field("hcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
223
223
|
mcaptchaSecretKey: s.field("mcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
@@ -334,7 +334,7 @@ let postAdminMetaResponseSchema = S.object(s => {
|
|
|
334
334
|
emailToReceiveAbuseReport: s.field("emailToReceiveAbuseReport", S.nullableAsOption(S.string)),
|
|
335
335
|
enableReceivePrerelease: s.field("enableReceivePrerelease", S.bool),
|
|
336
336
|
skipVersion: s.field("skipVersion", S.bool),
|
|
337
|
-
skipCherryPickVersion: s.
|
|
337
|
+
skipCherryPickVersion: s.field("skipCherryPickVersion", S.option(S.string)),
|
|
338
338
|
trustedLinkUrlPatterns: s.field("trustedLinkUrlPatterns", S.array(S.string)),
|
|
339
339
|
customSplashText: s.field("customSplashText", S.array(S.string)),
|
|
340
340
|
disableRegistrationWhenInactive: s.field("disableRegistrationWhenInactive", S.bool),
|
|
@@ -375,12 +375,12 @@ type postAnnouncementsRequest = {
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
let postAnnouncementsRequestSchema = S.object(s => {
|
|
378
|
-
limit: s.
|
|
379
|
-
sinceId: s.
|
|
380
|
-
untilId: s.
|
|
381
|
-
sinceDate: s.
|
|
382
|
-
untilDate: s.
|
|
383
|
-
isActive: s.
|
|
378
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
379
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
380
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
381
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
382
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
383
|
+
isActive: s.field("isActive", S.option(S.bool)),
|
|
384
384
|
})
|
|
385
385
|
|
|
386
386
|
type postAnnouncementsResponse = array<KokonectLinkComponentSchemas.Announcement.t>
|
|
@@ -536,11 +536,11 @@ type postInviteListRequest = {
|
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
let postInviteListRequestSchema = S.object(s => {
|
|
539
|
-
limit: s.
|
|
540
|
-
sinceId: s.
|
|
541
|
-
untilId: s.
|
|
542
|
-
sinceDate: s.
|
|
543
|
-
untilDate: s.
|
|
539
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
540
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
541
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
542
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
543
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
544
544
|
})
|
|
545
545
|
|
|
546
546
|
type postInviteListResponse = array<KokonectLinkComponentSchemas.InviteCode.t>
|