@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
|
@@ -17,12 +17,12 @@ type postChannelsTimelineRequest = {
|
|
|
17
17
|
|
|
18
18
|
let postChannelsTimelineRequestSchema = S.object(s => {
|
|
19
19
|
channelId: s.field("channelId", S.string),
|
|
20
|
-
limit: s.
|
|
21
|
-
sinceId: s.
|
|
22
|
-
untilId: s.
|
|
23
|
-
sinceDate: s.
|
|
24
|
-
untilDate: s.
|
|
25
|
-
allowPartial: 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
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
26
26
|
})
|
|
27
27
|
|
|
28
28
|
type postChannelsTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -64,17 +64,17 @@ type postNotesRequest = {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
let postNotesRequestSchema = S.object(s => {
|
|
67
|
-
local: s.
|
|
68
|
-
reply: s.
|
|
69
|
-
renote: s.
|
|
70
|
-
withFiles: s.
|
|
71
|
-
poll: s.
|
|
72
|
-
event: s.
|
|
73
|
-
limit: s.
|
|
74
|
-
sinceId: s.
|
|
75
|
-
untilId: s.
|
|
76
|
-
sinceDate: s.
|
|
77
|
-
untilDate: s.
|
|
67
|
+
local: s.field("local", S.option(S.bool)),
|
|
68
|
+
reply: s.field("reply", S.option(S.bool)),
|
|
69
|
+
renote: s.field("renote", S.option(S.bool)),
|
|
70
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
71
|
+
poll: s.field("poll", S.option(S.bool)),
|
|
72
|
+
event: s.field("event", S.option(S.bool)),
|
|
73
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
74
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
75
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
76
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
77
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
78
78
|
})
|
|
79
79
|
|
|
80
80
|
type postNotesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -114,15 +114,15 @@ type postNotesBubbleTimelineRequest = {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
let postNotesBubbleTimelineRequestSchema = S.object(s => {
|
|
117
|
-
withFiles: s.
|
|
118
|
-
withCats: s.
|
|
119
|
-
withBots: s.
|
|
120
|
-
withRenotes: s.
|
|
121
|
-
limit: s.
|
|
122
|
-
sinceId: s.
|
|
123
|
-
untilId: s.
|
|
124
|
-
sinceDate: s.
|
|
125
|
-
untilDate: s.
|
|
117
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
118
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
119
|
+
withBots: s.field("withBots", S.option(S.bool)),
|
|
120
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
121
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
122
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
123
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
124
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
125
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
126
126
|
})
|
|
127
127
|
|
|
128
128
|
type postNotesBubbleTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -160,11 +160,11 @@ type postNotesChildrenRequest = {
|
|
|
160
160
|
|
|
161
161
|
let postNotesChildrenRequestSchema = S.object(s => {
|
|
162
162
|
noteId: s.field("noteId", S.string),
|
|
163
|
-
limit: s.
|
|
164
|
-
sinceId: s.
|
|
165
|
-
untilId: s.
|
|
166
|
-
sinceDate: s.
|
|
167
|
-
untilDate: s.
|
|
163
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
164
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
165
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
166
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
167
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
168
168
|
})
|
|
169
169
|
|
|
170
170
|
type postNotesChildrenResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -243,44 +243,44 @@ let postNotesCreateRequest_4Schema = S.object(s => {
|
|
|
243
243
|
})
|
|
244
244
|
|
|
245
245
|
let postNotesCreateRequest_3Schema = S.object(s => {
|
|
246
|
-
deleteAt: s.
|
|
247
|
-
deleteAfter: s.
|
|
246
|
+
deleteAt: s.field("deleteAt", S.option(S.int)),
|
|
247
|
+
deleteAfter: s.field("deleteAfter", S.option(S.int->S.min(1))),
|
|
248
248
|
})
|
|
249
249
|
|
|
250
250
|
let postNotesCreateRequest_2Schema = S.object(s => {
|
|
251
|
-
title: s.
|
|
252
|
-
start: s.
|
|
253
|
-
end_: s.
|
|
251
|
+
title: s.field("title", S.option(S.string->S.min(1)->S.max(128))),
|
|
252
|
+
start: s.field("start", S.option(S.int)),
|
|
253
|
+
end_: s.field("end", S.option(S.int)),
|
|
254
254
|
metadata: s.field("metadata", S.option(S.dict(S.json))),
|
|
255
255
|
})
|
|
256
256
|
|
|
257
257
|
let postNotesCreateRequest_1Schema = S.object(s => {
|
|
258
258
|
choices: s.field("choices", S.array(S.string->S.min(1)->S.max(50))),
|
|
259
|
-
multiple: s.
|
|
260
|
-
expiresAt: s.
|
|
261
|
-
expiredAfter: s.
|
|
259
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
260
|
+
expiresAt: s.field("expiresAt", S.option(S.int)),
|
|
261
|
+
expiredAfter: s.field("expiredAfter", S.option(S.int->S.min(1))),
|
|
262
262
|
})
|
|
263
263
|
|
|
264
264
|
let postNotesCreateRequestSchema = S.object(s => {
|
|
265
|
-
visibility: s.
|
|
266
|
-
visibleUserIds: s.
|
|
267
|
-
cw: s.
|
|
268
|
-
localOnly: s.
|
|
269
|
-
reactionAcceptance: s.
|
|
270
|
-
disableRightClick: s.
|
|
271
|
-
noExtractMentions: s.
|
|
272
|
-
noExtractHashtags: s.
|
|
273
|
-
noExtractEmojis: s.
|
|
274
|
-
replyId: s.
|
|
275
|
-
renoteId: s.
|
|
276
|
-
channelId: s.
|
|
277
|
-
text: s.
|
|
278
|
-
fileIds: s.
|
|
279
|
-
mediaIds: s.
|
|
280
|
-
poll: s.
|
|
281
|
-
event: s.
|
|
282
|
-
scheduledDelete: s.
|
|
283
|
-
deliveryTargets: s.
|
|
265
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
266
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
267
|
+
cw: s.field("cw", S.option(S.string->S.min(1)->S.max(100))),
|
|
268
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
269
|
+
reactionAcceptance: s.field("reactionAcceptance", S.option(S.string)),
|
|
270
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
271
|
+
noExtractMentions: s.field("noExtractMentions", S.option(S.bool)),
|
|
272
|
+
noExtractHashtags: s.field("noExtractHashtags", S.option(S.bool)),
|
|
273
|
+
noExtractEmojis: s.field("noExtractEmojis", S.option(S.bool)),
|
|
274
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
275
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
276
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
277
|
+
text: s.field("text", S.option(S.string->S.min(1)->S.max(3000))),
|
|
278
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
279
|
+
mediaIds: s.field("mediaIds", S.option(S.array(S.string))),
|
|
280
|
+
poll: s.field("poll", S.option(postNotesCreateRequest_1Schema)),
|
|
281
|
+
event: s.field("event", S.option(postNotesCreateRequest_2Schema)),
|
|
282
|
+
scheduledDelete: s.field("scheduledDelete", S.option(postNotesCreateRequest_3Schema)),
|
|
283
|
+
deliveryTargets: s.field("deliveryTargets", S.option(postNotesCreateRequest_4Schema)),
|
|
284
284
|
})
|
|
285
285
|
|
|
286
286
|
type postNotesCreateResponse = {
|
|
@@ -388,43 +388,43 @@ let postNotesDraftsCreateRequest_4Schema = S.object(s => {
|
|
|
388
388
|
})
|
|
389
389
|
|
|
390
390
|
let postNotesDraftsCreateRequest_3Schema = S.object(s => {
|
|
391
|
-
deleteAt: s.
|
|
392
|
-
deleteAfter: s.
|
|
391
|
+
deleteAt: s.field("deleteAt", S.option(S.int)),
|
|
392
|
+
deleteAfter: s.field("deleteAfter", S.option(S.int->S.min(1))),
|
|
393
393
|
})
|
|
394
394
|
|
|
395
395
|
let postNotesDraftsCreateRequest_2Schema = S.object(s => {
|
|
396
|
-
title: s.
|
|
397
|
-
start: s.
|
|
398
|
-
end_: s.
|
|
396
|
+
title: s.field("title", S.option(S.string->S.min(1)->S.max(128))),
|
|
397
|
+
start: s.field("start", S.option(S.int)),
|
|
398
|
+
end_: s.field("end", S.option(S.int)),
|
|
399
399
|
metadata: s.field("metadata", S.option(S.dict(S.json))),
|
|
400
400
|
})
|
|
401
401
|
|
|
402
402
|
let postNotesDraftsCreateRequest_1Schema = S.object(s => {
|
|
403
403
|
choices: s.field("choices", S.array(S.string->S.min(1)->S.max(50))),
|
|
404
|
-
multiple: s.
|
|
405
|
-
expiresAt: s.
|
|
406
|
-
expiredAfter: s.
|
|
404
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
405
|
+
expiresAt: s.field("expiresAt", S.option(S.int)),
|
|
406
|
+
expiredAfter: s.field("expiredAfter", S.option(S.int->S.min(1))),
|
|
407
407
|
})
|
|
408
408
|
|
|
409
409
|
let postNotesDraftsCreateRequestSchema = S.object(s => {
|
|
410
|
-
visibility: s.
|
|
411
|
-
visibleUserIds: s.
|
|
412
|
-
cw: s.
|
|
413
|
-
hashtag: s.
|
|
414
|
-
localOnly: s.
|
|
415
|
-
reactionAcceptance: s.
|
|
416
|
-
disableRightClick: s.
|
|
417
|
-
replyId: s.
|
|
418
|
-
renoteId: s.
|
|
419
|
-
channelId: s.
|
|
420
|
-
text: s.
|
|
421
|
-
fileIds: s.
|
|
422
|
-
poll: s.
|
|
423
|
-
event: s.
|
|
424
|
-
scheduledAt: s.
|
|
425
|
-
isActuallyScheduled: s.
|
|
426
|
-
scheduledDelete: s.
|
|
427
|
-
deliveryTargets: s.
|
|
410
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
411
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
412
|
+
cw: s.field("cw", S.option(S.string->S.min(1)->S.max(100))),
|
|
413
|
+
hashtag: s.field("hashtag", S.option(S.string->S.max(200))),
|
|
414
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
415
|
+
reactionAcceptance: s.field("reactionAcceptance", S.option(S.string)),
|
|
416
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
417
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
418
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
419
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
420
|
+
text: s.field("text", S.option(S.string->S.min(0)->S.max(3000))),
|
|
421
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
422
|
+
poll: s.field("poll", S.option(postNotesDraftsCreateRequest_1Schema)),
|
|
423
|
+
event: s.field("event", S.option(postNotesDraftsCreateRequest_2Schema)),
|
|
424
|
+
scheduledAt: s.field("scheduledAt", S.option(S.int)),
|
|
425
|
+
isActuallyScheduled: s.field("isActuallyScheduled", S.option(S.bool)),
|
|
426
|
+
scheduledDelete: s.field("scheduledDelete", S.option(postNotesDraftsCreateRequest_3Schema)),
|
|
427
|
+
deliveryTargets: s.field("deliveryTargets", S.option(postNotesDraftsCreateRequest_4Schema)),
|
|
428
428
|
})
|
|
429
429
|
|
|
430
430
|
type postNotesDraftsCreateResponse = {
|
|
@@ -495,12 +495,12 @@ type postNotesDraftsListRequest = {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
let postNotesDraftsListRequestSchema = S.object(s => {
|
|
498
|
-
limit: s.
|
|
499
|
-
sinceId: s.
|
|
500
|
-
untilId: s.
|
|
501
|
-
sinceDate: s.
|
|
502
|
-
untilDate: s.
|
|
503
|
-
scheduled: s.
|
|
498
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
499
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
500
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
501
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
502
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
503
|
+
scheduled: s.field("scheduled", S.option(S.bool)),
|
|
504
504
|
})
|
|
505
505
|
|
|
506
506
|
type postNotesDraftsListResponse = array<KokonectLinkComponentSchemas.NoteDraft.t>
|
|
@@ -579,44 +579,44 @@ let postNotesDraftsUpdateRequest_4Schema = S.object(s => {
|
|
|
579
579
|
})
|
|
580
580
|
|
|
581
581
|
let postNotesDraftsUpdateRequest_3Schema = S.object(s => {
|
|
582
|
-
deleteAt: s.
|
|
583
|
-
deleteAfter: s.
|
|
582
|
+
deleteAt: s.field("deleteAt", S.option(S.int)),
|
|
583
|
+
deleteAfter: s.field("deleteAfter", S.option(S.int->S.min(1))),
|
|
584
584
|
})
|
|
585
585
|
|
|
586
586
|
let postNotesDraftsUpdateRequest_2Schema = S.object(s => {
|
|
587
|
-
title: s.
|
|
588
|
-
start: s.
|
|
589
|
-
end_: s.
|
|
587
|
+
title: s.field("title", S.option(S.string->S.min(1)->S.max(128))),
|
|
588
|
+
start: s.field("start", S.option(S.int)),
|
|
589
|
+
end_: s.field("end", S.option(S.int)),
|
|
590
590
|
metadata: s.field("metadata", S.option(S.dict(S.json))),
|
|
591
591
|
})
|
|
592
592
|
|
|
593
593
|
let postNotesDraftsUpdateRequest_1Schema = S.object(s => {
|
|
594
594
|
choices: s.field("choices", S.array(S.string->S.min(1)->S.max(50))),
|
|
595
|
-
multiple: s.
|
|
596
|
-
expiresAt: s.
|
|
597
|
-
expiredAfter: s.
|
|
595
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
596
|
+
expiresAt: s.field("expiresAt", S.option(S.int)),
|
|
597
|
+
expiredAfter: s.field("expiredAfter", S.option(S.int->S.min(1))),
|
|
598
598
|
})
|
|
599
599
|
|
|
600
600
|
let postNotesDraftsUpdateRequestSchema = S.object(s => {
|
|
601
601
|
draftId: s.field("draftId", S.string),
|
|
602
|
-
visibility: s.
|
|
603
|
-
visibleUserIds: s.
|
|
604
|
-
cw: s.
|
|
605
|
-
disableRightClick: s.
|
|
606
|
-
hashtag: s.
|
|
607
|
-
localOnly: s.
|
|
608
|
-
reactionAcceptance: s.
|
|
609
|
-
replyId: s.
|
|
610
|
-
renoteId: s.
|
|
611
|
-
channelId: s.
|
|
612
|
-
text: s.
|
|
613
|
-
fileIds: s.
|
|
614
|
-
poll: s.
|
|
615
|
-
scheduledAt: s.
|
|
616
|
-
isActuallyScheduled: s.
|
|
617
|
-
event: s.
|
|
618
|
-
scheduledDelete: s.
|
|
619
|
-
deliveryTargets: s.
|
|
602
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
603
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
604
|
+
cw: s.field("cw", S.option(S.string->S.min(1)->S.max(100))),
|
|
605
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
606
|
+
hashtag: s.field("hashtag", S.option(S.string->S.max(200))),
|
|
607
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
608
|
+
reactionAcceptance: s.field("reactionAcceptance", S.option(S.string)),
|
|
609
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
610
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
611
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
612
|
+
text: s.field("text", S.option(S.string->S.min(0)->S.max(3000))),
|
|
613
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
614
|
+
poll: s.field("poll", S.option(postNotesDraftsUpdateRequest_1Schema)),
|
|
615
|
+
scheduledAt: s.field("scheduledAt", S.option(S.int)),
|
|
616
|
+
isActuallyScheduled: s.field("isActuallyScheduled", S.option(S.bool)),
|
|
617
|
+
event: s.field("event", S.option(postNotesDraftsUpdateRequest_2Schema)),
|
|
618
|
+
scheduledDelete: s.field("scheduledDelete", S.option(postNotesDraftsUpdateRequest_3Schema)),
|
|
619
|
+
deliveryTargets: s.field("deliveryTargets", S.option(postNotesDraftsUpdateRequest_4Schema)),
|
|
620
620
|
})
|
|
621
621
|
|
|
622
622
|
type postNotesDraftsUpdateResponse = {
|
|
@@ -662,17 +662,17 @@ type postNotesEventsSearchRequest = {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
let postNotesEventsSearchRequestSchema = S.object(s => {
|
|
665
|
-
query: s.
|
|
666
|
-
sinceId: s.
|
|
667
|
-
untilId: s.
|
|
668
|
-
limit: s.
|
|
669
|
-
origin: s.
|
|
670
|
-
offset: s.
|
|
671
|
-
users: s.
|
|
672
|
-
sinceDate: s.
|
|
673
|
-
untilDate: s.
|
|
674
|
-
filters: s.
|
|
675
|
-
sortBy: s.
|
|
665
|
+
query: s.field("query", S.option(S.string)),
|
|
666
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
667
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
668
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
669
|
+
origin: s.field("origin", S.option(S.string)),
|
|
670
|
+
offset: s.field("offset", S.option(S.int)),
|
|
671
|
+
users: s.field("users", S.option(S.json)),
|
|
672
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
673
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
674
|
+
filters: s.field("filters", S.option(S.json)),
|
|
675
|
+
sortBy: s.field("sortBy", S.option(S.string)),
|
|
676
676
|
})
|
|
677
677
|
|
|
678
678
|
type postNotesEventsSearchResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -711,14 +711,14 @@ type postNotesGlobalTimelineRequest = {
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
let postNotesGlobalTimelineRequestSchema = S.object(s => {
|
|
714
|
-
withFiles: s.
|
|
715
|
-
withRenotes: s.
|
|
716
|
-
withCats: s.
|
|
717
|
-
limit: s.
|
|
718
|
-
sinceId: s.
|
|
719
|
-
untilId: s.
|
|
720
|
-
sinceDate: s.
|
|
721
|
-
untilDate: s.
|
|
714
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
715
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
716
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
717
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
718
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
719
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
720
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
721
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
722
722
|
})
|
|
723
723
|
|
|
724
724
|
type postNotesGlobalTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -754,9 +754,9 @@ type postNotesHistoryRequest = {
|
|
|
754
754
|
|
|
755
755
|
let postNotesHistoryRequestSchema = S.object(s => {
|
|
756
756
|
noteId: s.field("noteId", S.string),
|
|
757
|
-
limit: s.
|
|
758
|
-
sinceId: s.
|
|
759
|
-
untilId: s.
|
|
757
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
758
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
759
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
760
760
|
})
|
|
761
761
|
|
|
762
762
|
type postNotesHistoryResponse = array<KokonectLinkComponentSchemas.NoteHistory.t>
|
|
@@ -800,19 +800,19 @@ type postNotesHybridTimelineRequest = {
|
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
let postNotesHybridTimelineRequestSchema = S.object(s => {
|
|
803
|
-
limit: s.
|
|
804
|
-
sinceId: s.
|
|
805
|
-
untilId: s.
|
|
806
|
-
sinceDate: s.
|
|
807
|
-
untilDate: s.
|
|
808
|
-
allowPartial: s.
|
|
809
|
-
includeMyRenotes: s.
|
|
810
|
-
includeRenotedMyNotes: s.
|
|
811
|
-
includeLocalRenotes: s.
|
|
812
|
-
withFiles: s.
|
|
813
|
-
withRenotes: s.
|
|
814
|
-
withReplies: s.
|
|
815
|
-
withCats: s.
|
|
803
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
804
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
805
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
806
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
807
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
808
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
809
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
810
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
811
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
812
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
813
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
814
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
815
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
816
816
|
})
|
|
817
817
|
|
|
818
818
|
type postNotesHybridTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -853,16 +853,16 @@ type postNotesLocalTimelineRequest = {
|
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
let postNotesLocalTimelineRequestSchema = S.object(s => {
|
|
856
|
-
withFiles: s.
|
|
857
|
-
withRenotes: s.
|
|
858
|
-
withReplies: s.
|
|
859
|
-
withCats: s.
|
|
860
|
-
limit: s.
|
|
861
|
-
sinceId: s.
|
|
862
|
-
untilId: s.
|
|
863
|
-
allowPartial: s.
|
|
864
|
-
sinceDate: s.
|
|
865
|
-
untilDate: s.
|
|
856
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
857
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
858
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
859
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
860
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
861
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
862
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
863
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
864
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
865
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
866
866
|
})
|
|
867
867
|
|
|
868
868
|
type postNotesLocalTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -900,13 +900,13 @@ type postNotesMentionsRequest = {
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
let postNotesMentionsRequestSchema = S.object(s => {
|
|
903
|
-
following: s.
|
|
904
|
-
limit: s.
|
|
905
|
-
sinceId: s.
|
|
906
|
-
untilId: s.
|
|
907
|
-
sinceDate: s.
|
|
908
|
-
untilDate: s.
|
|
909
|
-
visibility: s.
|
|
903
|
+
following: s.field("following", S.option(S.bool)),
|
|
904
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
905
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
906
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
907
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
908
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
909
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
910
910
|
})
|
|
911
911
|
|
|
912
912
|
type postNotesMentionsResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -950,7 +950,7 @@ type postNotesPollsTranslateResponse = {
|
|
|
950
950
|
|
|
951
951
|
let postNotesPollsTranslateResponseSchema = S.object(s => {
|
|
952
952
|
sourceLang: s.field("sourceLang", S.string),
|
|
953
|
-
text: s.
|
|
953
|
+
text: s.field("text", S.option(S.array(S.nullableAsOption(S.string)))),
|
|
954
954
|
})
|
|
955
955
|
|
|
956
956
|
/**
|
|
@@ -985,12 +985,12 @@ type getNotesReactionsRequest = {
|
|
|
985
985
|
|
|
986
986
|
let getNotesReactionsRequestSchema = S.object(s => {
|
|
987
987
|
noteId: s.field("noteId", S.string),
|
|
988
|
-
type_: s.
|
|
989
|
-
limit: s.
|
|
990
|
-
sinceId: s.
|
|
991
|
-
untilId: s.
|
|
992
|
-
sinceDate: s.
|
|
993
|
-
untilDate: s.
|
|
988
|
+
type_: s.field("type", S.option(S.string)),
|
|
989
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
990
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
991
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
992
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
993
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
994
994
|
})
|
|
995
995
|
|
|
996
996
|
type getNotesReactionsResponse = array<KokonectLinkComponentSchemas.NoteReaction.t>
|
|
@@ -1029,12 +1029,12 @@ type postNotesReactionsRequest = {
|
|
|
1029
1029
|
|
|
1030
1030
|
let postNotesReactionsRequestSchema = S.object(s => {
|
|
1031
1031
|
noteId: s.field("noteId", S.string),
|
|
1032
|
-
type_: s.
|
|
1033
|
-
limit: s.
|
|
1034
|
-
sinceId: s.
|
|
1035
|
-
untilId: s.
|
|
1036
|
-
sinceDate: s.
|
|
1037
|
-
untilDate: s.
|
|
1032
|
+
type_: s.field("type", S.option(S.string)),
|
|
1033
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1034
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1035
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1036
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1037
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1038
1038
|
})
|
|
1039
1039
|
|
|
1040
1040
|
type postNotesReactionsResponse = array<KokonectLinkComponentSchemas.NoteReaction.t>
|
|
@@ -1072,11 +1072,11 @@ type postNotesRenotesRequest = {
|
|
|
1072
1072
|
|
|
1073
1073
|
let postNotesRenotesRequestSchema = S.object(s => {
|
|
1074
1074
|
noteId: s.field("noteId", S.string),
|
|
1075
|
-
limit: s.
|
|
1076
|
-
sinceId: s.
|
|
1077
|
-
untilId: s.
|
|
1078
|
-
sinceDate: s.
|
|
1079
|
-
untilDate: s.
|
|
1075
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1076
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1077
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1078
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1079
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1080
1080
|
})
|
|
1081
1081
|
|
|
1082
1082
|
type postNotesRenotesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -1114,11 +1114,11 @@ type postNotesRepliesRequest = {
|
|
|
1114
1114
|
|
|
1115
1115
|
let postNotesRepliesRequestSchema = S.object(s => {
|
|
1116
1116
|
noteId: s.field("noteId", S.string),
|
|
1117
|
-
sinceId: s.
|
|
1118
|
-
untilId: s.
|
|
1119
|
-
sinceDate: s.
|
|
1120
|
-
untilDate: s.
|
|
1121
|
-
limit: s.
|
|
1117
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1118
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1119
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1120
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1121
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1122
1122
|
})
|
|
1123
1123
|
|
|
1124
1124
|
type postNotesRepliesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -1160,15 +1160,15 @@ type postNotesSearchRequest = {
|
|
|
1160
1160
|
|
|
1161
1161
|
let postNotesSearchRequestSchema = S.object(s => {
|
|
1162
1162
|
query: s.field("query", S.string),
|
|
1163
|
-
sinceId: s.
|
|
1164
|
-
untilId: s.
|
|
1165
|
-
sinceDate: s.
|
|
1166
|
-
untilDate: s.
|
|
1167
|
-
limit: s.
|
|
1168
|
-
offset: s.
|
|
1169
|
-
host: s.
|
|
1170
|
-
userId: s.
|
|
1171
|
-
channelId: s.
|
|
1163
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1164
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1165
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1166
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1167
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1168
|
+
offset: s.field("offset", S.option(S.int)),
|
|
1169
|
+
host: s.field("host", S.option(S.string)),
|
|
1170
|
+
userId: s.field("userId", S.option(S.string)),
|
|
1171
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
1172
1172
|
})
|
|
1173
1173
|
|
|
1174
1174
|
type postNotesSearchResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -1208,15 +1208,15 @@ type postNotesSearchByTagRequest = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
let postNotesSearchByTagRequestSchema = S.object(s => {
|
|
1211
|
-
reply: s.
|
|
1212
|
-
renote: s.
|
|
1213
|
-
withFiles: s.
|
|
1214
|
-
poll: s.
|
|
1215
|
-
sinceId: s.
|
|
1216
|
-
untilId: s.
|
|
1217
|
-
sinceDate: s.
|
|
1218
|
-
untilDate: s.
|
|
1219
|
-
limit: s.
|
|
1211
|
+
reply: s.field("reply", S.option(S.bool)),
|
|
1212
|
+
renote: s.field("renote", S.option(S.bool)),
|
|
1213
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
1214
|
+
poll: s.field("poll", S.option(S.bool)),
|
|
1215
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1216
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1217
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1218
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1219
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1220
1220
|
})
|
|
1221
1221
|
|
|
1222
1222
|
type postNotesSearchByTagResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -1375,18 +1375,18 @@ type postNotesTimelineRequest = {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
let postNotesTimelineRequestSchema = S.object(s => {
|
|
1378
|
-
limit: s.
|
|
1379
|
-
sinceId: s.
|
|
1380
|
-
untilId: s.
|
|
1381
|
-
sinceDate: s.
|
|
1382
|
-
untilDate: s.
|
|
1383
|
-
allowPartial: s.
|
|
1384
|
-
includeMyRenotes: s.
|
|
1385
|
-
includeRenotedMyNotes: s.
|
|
1386
|
-
includeLocalRenotes: s.
|
|
1387
|
-
withFiles: s.
|
|
1388
|
-
withRenotes: s.
|
|
1389
|
-
withCats: s.
|
|
1378
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1379
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1380
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1381
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1382
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1383
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
1384
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
1385
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
1386
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
1387
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
1388
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
1389
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
1390
1390
|
})
|
|
1391
1391
|
|
|
1392
1392
|
type postNotesTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -1445,34 +1445,34 @@ type postNotesUpdateRequest = {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
|
|
1447
1447
|
let postNotesUpdateRequest_3Schema = S.object(s => {
|
|
1448
|
-
deleteAt: s.
|
|
1449
|
-
deleteAfter: s.
|
|
1448
|
+
deleteAt: s.field("deleteAt", S.option(S.int)),
|
|
1449
|
+
deleteAfter: s.field("deleteAfter", S.option(S.int->S.min(1))),
|
|
1450
1450
|
})
|
|
1451
1451
|
|
|
1452
1452
|
let postNotesUpdateRequest_2Schema = S.object(s => {
|
|
1453
|
-
title: s.
|
|
1454
|
-
start: s.
|
|
1455
|
-
end_: s.
|
|
1453
|
+
title: s.field("title", S.option(S.string->S.min(1)->S.max(128))),
|
|
1454
|
+
start: s.field("start", S.option(S.int)),
|
|
1455
|
+
end_: s.field("end", S.option(S.int)),
|
|
1456
1456
|
metadata: s.field("metadata", S.option(S.dict(S.json))),
|
|
1457
1457
|
})
|
|
1458
1458
|
|
|
1459
1459
|
let postNotesUpdateRequest_1Schema = S.object(s => {
|
|
1460
1460
|
choices: s.field("choices", S.array(S.string->S.min(1)->S.max(50))),
|
|
1461
|
-
multiple: s.
|
|
1462
|
-
expiresAt: s.
|
|
1463
|
-
expiredAfter: s.
|
|
1461
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
1462
|
+
expiresAt: s.field("expiresAt", S.option(S.int)),
|
|
1463
|
+
expiredAfter: s.field("expiredAfter", S.option(S.int->S.min(1))),
|
|
1464
1464
|
})
|
|
1465
1465
|
|
|
1466
1466
|
let postNotesUpdateRequestSchema = S.object(s => {
|
|
1467
1467
|
noteId: s.field("noteId", S.string),
|
|
1468
1468
|
text: s.field("text", S.string->S.min(1)->S.max(3000)),
|
|
1469
|
-
fileIds: s.
|
|
1470
|
-
mediaIds: s.
|
|
1471
|
-
poll: s.
|
|
1472
|
-
event: s.
|
|
1469
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
1470
|
+
mediaIds: s.field("mediaIds", S.option(S.array(S.string))),
|
|
1471
|
+
poll: s.field("poll", S.option(postNotesUpdateRequest_1Schema)),
|
|
1472
|
+
event: s.field("event", S.option(postNotesUpdateRequest_2Schema)),
|
|
1473
1473
|
cw: s.field("cw", S.nullableAsOption(S.string->S.max(100))),
|
|
1474
|
-
disableRightClick: s.
|
|
1475
|
-
scheduledDelete: s.
|
|
1474
|
+
disableRightClick: s.field("disableRightClick", S.option(S.bool)),
|
|
1475
|
+
scheduledDelete: s.field("scheduledDelete", S.option(postNotesUpdateRequest_3Schema)),
|
|
1476
1476
|
})
|
|
1477
1477
|
|
|
1478
1478
|
type postNotesUpdateResponse = unit
|
|
@@ -1515,18 +1515,18 @@ type postNotesUserListTimelineRequest = {
|
|
|
1515
1515
|
|
|
1516
1516
|
let postNotesUserListTimelineRequestSchema = S.object(s => {
|
|
1517
1517
|
listId: s.field("listId", S.string),
|
|
1518
|
-
limit: s.
|
|
1519
|
-
sinceId: s.
|
|
1520
|
-
untilId: s.
|
|
1521
|
-
sinceDate: s.
|
|
1522
|
-
untilDate: s.
|
|
1523
|
-
allowPartial: s.
|
|
1524
|
-
includeMyRenotes: s.
|
|
1525
|
-
includeRenotedMyNotes: s.
|
|
1526
|
-
includeLocalRenotes: s.
|
|
1527
|
-
withRenotes: s.
|
|
1528
|
-
withFiles: s.
|
|
1529
|
-
withCats: s.
|
|
1518
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1519
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1520
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1521
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1522
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1523
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
1524
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
1525
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
1526
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
1527
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
1528
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
1529
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
1530
1530
|
})
|
|
1531
1531
|
|
|
1532
1532
|
type postNotesUserListTimelineResponse = array<KokonectLinkComponentSchemas.Note.t>
|