@f3liz/rescript-misskey-api 0.6.5 → 0.6.7
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/lib/es6/src/stream/StreamClient.mjs +13 -2
- 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
- package/src/stream/StreamClient.res +14 -2
|
@@ -18,13 +18,13 @@ type postChannelsTimelineRequest = {
|
|
|
18
18
|
|
|
19
19
|
let postChannelsTimelineRequestSchema = S.object(s => {
|
|
20
20
|
channelId: s.field("channelId", S.string),
|
|
21
|
-
limit: s.
|
|
22
|
-
sinceId: s.
|
|
23
|
-
untilId: s.
|
|
24
|
-
sinceDate: s.
|
|
25
|
-
untilDate: s.
|
|
26
|
-
allowPartial: s.
|
|
27
|
-
dimension: s.
|
|
21
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
22
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
23
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
24
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
25
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
26
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
27
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
type postChannelsTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -63,14 +63,14 @@ type postNotesRequest = {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
let postNotesRequestSchema = S.object(s => {
|
|
66
|
-
local: s.
|
|
67
|
-
reply: s.
|
|
68
|
-
renote: s.
|
|
69
|
-
withFiles: s.
|
|
70
|
-
poll: s.
|
|
71
|
-
limit: s.
|
|
72
|
-
sinceId: s.
|
|
73
|
-
untilId: s.
|
|
66
|
+
local: s.field("local", S.option(S.bool)),
|
|
67
|
+
reply: s.field("reply", S.option(S.bool)),
|
|
68
|
+
renote: s.field("renote", S.option(S.bool)),
|
|
69
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
70
|
+
poll: s.field("poll", S.option(S.bool)),
|
|
71
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
72
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
73
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
74
74
|
})
|
|
75
75
|
|
|
76
76
|
type postNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -106,9 +106,9 @@ type postNotesChildrenRequest = {
|
|
|
106
106
|
|
|
107
107
|
let postNotesChildrenRequestSchema = S.object(s => {
|
|
108
108
|
noteId: s.field("noteId", S.string),
|
|
109
|
-
limit: s.
|
|
110
|
-
sinceId: s.
|
|
111
|
-
untilId: s.
|
|
109
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
110
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
111
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
112
112
|
})
|
|
113
113
|
|
|
114
114
|
type postNotesChildrenResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -143,8 +143,8 @@ type postNotesConversationRequest = {
|
|
|
143
143
|
|
|
144
144
|
let postNotesConversationRequestSchema = S.object(s => {
|
|
145
145
|
noteId: s.field("noteId", S.string),
|
|
146
|
-
limit: s.
|
|
147
|
-
offset: s.
|
|
146
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
147
|
+
offset: s.field("offset", S.option(S.int)),
|
|
148
148
|
})
|
|
149
149
|
|
|
150
150
|
type postNotesConversationResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -202,31 +202,31 @@ type postNotesCreateRequest = {
|
|
|
202
202
|
|
|
203
203
|
let postNotesCreateRequest_1Schema = S.object(s => {
|
|
204
204
|
choices: s.field("choices", S.array(S.string->S.min(1)->S.max(50))),
|
|
205
|
-
multiple: s.
|
|
206
|
-
expiresAt: s.
|
|
207
|
-
expiredAfter: s.
|
|
205
|
+
multiple: s.field("multiple", S.option(S.bool)),
|
|
206
|
+
expiresAt: s.field("expiresAt", S.option(S.int)),
|
|
207
|
+
expiredAfter: s.field("expiredAfter", S.option(S.int->S.min(1))),
|
|
208
208
|
})
|
|
209
209
|
|
|
210
210
|
let postNotesCreateRequestSchema = S.object(s => {
|
|
211
|
-
visibility: s.
|
|
212
|
-
visibleUserIds: s.
|
|
213
|
-
cw: s.
|
|
214
|
-
localOnly: s.
|
|
215
|
-
dimension: s.
|
|
216
|
-
reactionAcceptance: s.
|
|
217
|
-
noExtractMentions: s.
|
|
218
|
-
noExtractHashtags: s.
|
|
219
|
-
noExtractEmojis: s.
|
|
220
|
-
replyId: s.
|
|
221
|
-
renoteId: s.
|
|
222
|
-
channelId: s.
|
|
223
|
-
lang: s.
|
|
224
|
-
text: s.
|
|
225
|
-
fileIds: s.
|
|
226
|
-
mediaIds: s.
|
|
227
|
-
poll: s.
|
|
228
|
-
scheduledAt: s.
|
|
229
|
-
noCreatedNote: s.
|
|
211
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
212
|
+
visibleUserIds: s.field("visibleUserIds", S.option(S.array(S.string))),
|
|
213
|
+
cw: s.field("cw", S.option(S.string->S.min(1)->S.max(100))),
|
|
214
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
215
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
216
|
+
reactionAcceptance: s.field("reactionAcceptance", S.option(S.string)),
|
|
217
|
+
noExtractMentions: s.field("noExtractMentions", S.option(S.bool)),
|
|
218
|
+
noExtractHashtags: s.field("noExtractHashtags", S.option(S.bool)),
|
|
219
|
+
noExtractEmojis: s.field("noExtractEmojis", S.option(S.bool)),
|
|
220
|
+
replyId: s.field("replyId", S.option(S.string)),
|
|
221
|
+
renoteId: s.field("renoteId", S.option(S.string)),
|
|
222
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
223
|
+
lang: s.field("lang", S.option(S.string)),
|
|
224
|
+
text: s.field("text", S.option(S.string->S.min(1)->S.max(3000))),
|
|
225
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
226
|
+
mediaIds: s.field("mediaIds", S.option(S.array(S.string))),
|
|
227
|
+
poll: s.field("poll", S.option(postNotesCreateRequest_1Schema)),
|
|
228
|
+
scheduledAt: s.field("scheduledAt", S.option(S.int)),
|
|
229
|
+
noCreatedNote: s.field("noCreatedNote", S.option(S.bool)),
|
|
230
230
|
})
|
|
231
231
|
|
|
232
232
|
type postNotesCreateResponse = {
|
|
@@ -354,9 +354,9 @@ type getNotesFeaturedRequest = {
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
let getNotesFeaturedRequestSchema = S.object(s => {
|
|
357
|
-
limit: s.
|
|
358
|
-
untilId: s.
|
|
359
|
-
channelId: s.
|
|
357
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
358
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
359
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
360
360
|
})
|
|
361
361
|
|
|
362
362
|
type getNotesFeaturedResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -390,9 +390,9 @@ type postNotesFeaturedRequest = {
|
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
let postNotesFeaturedRequestSchema = S.object(s => {
|
|
393
|
-
limit: s.
|
|
394
|
-
untilId: s.
|
|
395
|
-
channelId: s.
|
|
393
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
394
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
395
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
396
396
|
})
|
|
397
397
|
|
|
398
398
|
type postNotesFeaturedResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -431,14 +431,14 @@ type postNotesGlobalTimelineRequest = {
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
let postNotesGlobalTimelineRequestSchema = S.object(s => {
|
|
434
|
-
withFiles: s.
|
|
435
|
-
withRenotes: s.
|
|
436
|
-
limit: s.
|
|
437
|
-
sinceId: s.
|
|
438
|
-
untilId: s.
|
|
439
|
-
sinceDate: s.
|
|
440
|
-
untilDate: s.
|
|
441
|
-
dimension: s.
|
|
434
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
435
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
436
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
437
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
438
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
439
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
440
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
441
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
442
442
|
})
|
|
443
443
|
|
|
444
444
|
type postNotesGlobalTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -482,19 +482,19 @@ type postNotesHybridTimelineRequest = {
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
let postNotesHybridTimelineRequestSchema = S.object(s => {
|
|
485
|
-
limit: s.
|
|
486
|
-
sinceId: s.
|
|
487
|
-
untilId: s.
|
|
488
|
-
sinceDate: s.
|
|
489
|
-
untilDate: s.
|
|
490
|
-
allowPartial: s.
|
|
491
|
-
includeMyRenotes: s.
|
|
492
|
-
includeRenotedMyNotes: s.
|
|
493
|
-
includeLocalRenotes: s.
|
|
494
|
-
withFiles: s.
|
|
495
|
-
withRenotes: s.
|
|
496
|
-
withReplies: s.
|
|
497
|
-
dimension: s.
|
|
485
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
486
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
487
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
488
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
489
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
490
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
491
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
492
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
493
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
494
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
495
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
496
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
497
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
498
498
|
})
|
|
499
499
|
|
|
500
500
|
type postNotesHybridTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -535,16 +535,16 @@ type postNotesLocalTimelineRequest = {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
let postNotesLocalTimelineRequestSchema = S.object(s => {
|
|
538
|
-
withFiles: s.
|
|
539
|
-
withRenotes: s.
|
|
540
|
-
withReplies: s.
|
|
541
|
-
limit: s.
|
|
542
|
-
sinceId: s.
|
|
543
|
-
untilId: s.
|
|
544
|
-
allowPartial: s.
|
|
545
|
-
sinceDate: s.
|
|
546
|
-
untilDate: s.
|
|
547
|
-
dimension: s.
|
|
538
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
539
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
540
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
541
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
542
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
543
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
544
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
545
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
546
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
547
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
548
548
|
})
|
|
549
549
|
|
|
550
550
|
type postNotesLocalTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -580,11 +580,11 @@ type postNotesMentionsRequest = {
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
let postNotesMentionsRequestSchema = S.object(s => {
|
|
583
|
-
following: s.
|
|
584
|
-
limit: s.
|
|
585
|
-
sinceId: s.
|
|
586
|
-
untilId: s.
|
|
587
|
-
visibility: s.
|
|
583
|
+
following: s.field("following", S.option(S.bool)),
|
|
584
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
585
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
586
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
587
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
588
588
|
})
|
|
589
589
|
|
|
590
590
|
type postNotesMentionsResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -618,9 +618,9 @@ type postNotesPollsRecommendationRequest = {
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
let postNotesPollsRecommendationRequestSchema = S.object(s => {
|
|
621
|
-
limit: s.
|
|
622
|
-
offset: s.
|
|
623
|
-
excludeChannels: s.
|
|
621
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
622
|
+
offset: s.field("offset", S.option(S.int)),
|
|
623
|
+
excludeChannels: s.field("excludeChannels", S.option(S.bool)),
|
|
624
624
|
})
|
|
625
625
|
|
|
626
626
|
type postNotesPollsRecommendationResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -689,10 +689,10 @@ type getNotesReactionsRequest = {
|
|
|
689
689
|
|
|
690
690
|
let getNotesReactionsRequestSchema = S.object(s => {
|
|
691
691
|
noteId: s.field("noteId", S.string),
|
|
692
|
-
type_: s.
|
|
693
|
-
limit: s.
|
|
694
|
-
sinceId: s.
|
|
695
|
-
untilId: s.
|
|
692
|
+
type_: s.field("type", S.option(S.string)),
|
|
693
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
694
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
695
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
696
696
|
})
|
|
697
697
|
|
|
698
698
|
type getNotesReactionsResponse = array<MisskeyIoComponentSchemas.NoteReaction.t>
|
|
@@ -729,10 +729,10 @@ type postNotesReactionsRequest = {
|
|
|
729
729
|
|
|
730
730
|
let postNotesReactionsRequestSchema = S.object(s => {
|
|
731
731
|
noteId: s.field("noteId", S.string),
|
|
732
|
-
type_: s.
|
|
733
|
-
limit: s.
|
|
734
|
-
sinceId: s.
|
|
735
|
-
untilId: s.
|
|
732
|
+
type_: s.field("type", S.option(S.string)),
|
|
733
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
734
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
735
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
736
736
|
})
|
|
737
737
|
|
|
738
738
|
type postNotesReactionsResponse = array<MisskeyIoComponentSchemas.NoteReaction.t>
|
|
@@ -768,9 +768,9 @@ type postNotesRenotesRequest = {
|
|
|
768
768
|
|
|
769
769
|
let postNotesRenotesRequestSchema = S.object(s => {
|
|
770
770
|
noteId: s.field("noteId", S.string),
|
|
771
|
-
limit: s.
|
|
772
|
-
sinceId: s.
|
|
773
|
-
untilId: s.
|
|
771
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
772
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
773
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
774
774
|
})
|
|
775
775
|
|
|
776
776
|
type postNotesRenotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -806,9 +806,9 @@ type postNotesRepliesRequest = {
|
|
|
806
806
|
|
|
807
807
|
let postNotesRepliesRequestSchema = S.object(s => {
|
|
808
808
|
noteId: s.field("noteId", S.string),
|
|
809
|
-
sinceId: s.
|
|
810
|
-
untilId: s.
|
|
811
|
-
limit: s.
|
|
809
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
810
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
811
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
812
812
|
})
|
|
813
813
|
|
|
814
814
|
type postNotesRepliesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -871,8 +871,8 @@ type postNotesScheduledListRequest = {
|
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
let postNotesScheduledListRequestSchema = S.object(s => {
|
|
874
|
-
limit: s.
|
|
875
|
-
offset: s.
|
|
874
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
875
|
+
offset: s.field("offset", S.option(S.int)),
|
|
876
876
|
})
|
|
877
877
|
|
|
878
878
|
type postNotesScheduledListResponse = array<MisskeyIoComponentSchemas.NoteDraft.t>
|
|
@@ -912,13 +912,13 @@ type postNotesSearchRequest = {
|
|
|
912
912
|
|
|
913
913
|
let postNotesSearchRequestSchema = S.object(s => {
|
|
914
914
|
query: s.field("query", S.string),
|
|
915
|
-
sinceId: s.
|
|
916
|
-
untilId: s.
|
|
917
|
-
limit: s.
|
|
918
|
-
offset: s.
|
|
919
|
-
host: s.
|
|
920
|
-
userId: s.
|
|
921
|
-
channelId: s.
|
|
915
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
916
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
917
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
918
|
+
offset: s.field("offset", S.option(S.int)),
|
|
919
|
+
host: s.field("host", S.option(S.string)),
|
|
920
|
+
userId: s.field("userId", S.option(S.string)),
|
|
921
|
+
channelId: s.field("channelId", S.option(S.string)),
|
|
922
922
|
})
|
|
923
923
|
|
|
924
924
|
type postNotesSearchResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -959,16 +959,16 @@ type postNotesSearchByTagRequest = {
|
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
let postNotesSearchByTagRequestSchema = S.object(s => {
|
|
962
|
-
local: s.
|
|
963
|
-
reply: s.
|
|
964
|
-
renote: s.
|
|
965
|
-
withFiles: s.
|
|
966
|
-
poll: s.
|
|
967
|
-
sinceId: s.
|
|
968
|
-
untilId: s.
|
|
969
|
-
limit: s.
|
|
970
|
-
tag: s.
|
|
971
|
-
query: s.
|
|
962
|
+
local: s.field("local", S.option(S.bool)),
|
|
963
|
+
reply: s.field("reply", S.option(S.bool)),
|
|
964
|
+
renote: s.field("renote", S.option(S.bool)),
|
|
965
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
966
|
+
poll: s.field("poll", S.option(S.bool)),
|
|
967
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
968
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
969
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
970
|
+
tag: s.field("tag", S.option(S.string->S.min(1))),
|
|
971
|
+
query: s.field("query", S.option(S.array(S.array(S.string->S.min(1))))),
|
|
972
972
|
})
|
|
973
973
|
|
|
974
974
|
type postNotesSearchByTagResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -1141,18 +1141,18 @@ type postNotesTimelineRequest = {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
let postNotesTimelineRequestSchema = S.object(s => {
|
|
1144
|
-
limit: s.
|
|
1145
|
-
sinceId: s.
|
|
1146
|
-
untilId: s.
|
|
1147
|
-
sinceDate: s.
|
|
1148
|
-
untilDate: s.
|
|
1149
|
-
allowPartial: s.
|
|
1150
|
-
includeMyRenotes: s.
|
|
1151
|
-
includeRenotedMyNotes: s.
|
|
1152
|
-
includeLocalRenotes: s.
|
|
1153
|
-
withFiles: s.
|
|
1154
|
-
withRenotes: s.
|
|
1155
|
-
dimension: s.
|
|
1144
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1145
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1146
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1147
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1148
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1149
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
1150
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
1151
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
1152
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
1153
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
1154
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
1155
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
1156
1156
|
})
|
|
1157
1157
|
|
|
1158
1158
|
type postNotesTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -1266,17 +1266,17 @@ type postNotesUserListTimelineRequest = {
|
|
|
1266
1266
|
|
|
1267
1267
|
let postNotesUserListTimelineRequestSchema = S.object(s => {
|
|
1268
1268
|
listId: s.field("listId", S.string),
|
|
1269
|
-
limit: s.
|
|
1270
|
-
sinceId: s.
|
|
1271
|
-
untilId: s.
|
|
1272
|
-
sinceDate: s.
|
|
1273
|
-
untilDate: s.
|
|
1274
|
-
allowPartial: s.
|
|
1275
|
-
includeMyRenotes: s.
|
|
1276
|
-
includeRenotedMyNotes: s.
|
|
1277
|
-
includeLocalRenotes: s.
|
|
1278
|
-
withRenotes: s.
|
|
1279
|
-
withFiles: s.
|
|
1269
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1270
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1271
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1272
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
1273
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
1274
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
1275
|
+
includeMyRenotes: s.field("includeMyRenotes", S.option(S.bool)),
|
|
1276
|
+
includeRenotedMyNotes: s.field("includeRenotedMyNotes", S.option(S.bool)),
|
|
1277
|
+
includeLocalRenotes: s.field("includeLocalRenotes", S.option(S.bool)),
|
|
1278
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
1279
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
1280
1280
|
})
|
|
1281
1281
|
|
|
1282
1282
|
type postNotesUserListTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -1340,8 +1340,8 @@ type getUsersFeaturedNotesRequest = {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
1342
|
let getUsersFeaturedNotesRequestSchema = S.object(s => {
|
|
1343
|
-
limit: s.
|
|
1344
|
-
untilId: s.
|
|
1343
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1344
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1345
1345
|
userId: s.field("userId", S.string),
|
|
1346
1346
|
})
|
|
1347
1347
|
|
|
@@ -1376,8 +1376,8 @@ type postUsersFeaturedNotesRequest = {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
let postUsersFeaturedNotesRequestSchema = S.object(s => {
|
|
1379
|
-
limit: s.
|
|
1380
|
-
untilId: s.
|
|
1379
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1380
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1381
1381
|
userId: s.field("userId", S.string),
|
|
1382
1382
|
})
|
|
1383
1383
|
|
|
@@ -13,8 +13,8 @@ type postNotificationsCreateRequest = {
|
|
|
13
13
|
|
|
14
14
|
let postNotificationsCreateRequestSchema = S.object(s => {
|
|
15
15
|
body: s.field("body", S.string),
|
|
16
|
-
header: s.
|
|
17
|
-
icon: s.
|
|
16
|
+
header: s.field("header", S.option(S.string)),
|
|
17
|
+
icon: s.field("icon", S.option(S.string)),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
type postNotificationsCreateResponse = unit
|
|
@@ -22,15 +22,15 @@ type postPagesCreateRequest = {
|
|
|
22
22
|
let postPagesCreateRequestSchema = S.object(s => {
|
|
23
23
|
title: s.field("title", S.string),
|
|
24
24
|
name: s.field("name", S.string->S.min(1)->S.pattern(/^[a-zA-Z0-9_-]+$/)),
|
|
25
|
-
summary: s.
|
|
25
|
+
summary: s.field("summary", S.option(S.string)),
|
|
26
26
|
content: s.field("content", S.array(S.dict(S.json))),
|
|
27
27
|
variables: s.field("variables", S.array(S.dict(S.json))),
|
|
28
28
|
script: s.field("script", S.string),
|
|
29
|
-
eyeCatchingImageId: s.
|
|
30
|
-
font: s.
|
|
31
|
-
alignCenter: s.
|
|
32
|
-
hideTitleWhenPinned: s.
|
|
33
|
-
visibility: s.
|
|
29
|
+
eyeCatchingImageId: s.field("eyeCatchingImageId", S.option(S.string)),
|
|
30
|
+
font: s.field("font", S.option(S.string)),
|
|
31
|
+
alignCenter: s.field("alignCenter", S.option(S.bool)),
|
|
32
|
+
hideTitleWhenPinned: s.field("hideTitleWhenPinned", S.option(S.bool)),
|
|
33
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
34
34
|
})
|
|
35
35
|
|
|
36
36
|
type postPagesCreateResponse = MisskeyIoComponentSchemas.Page.t
|
|
@@ -148,9 +148,9 @@ type postPagesShowRequest = {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
let postPagesShowRequestSchema = S.object(s => {
|
|
151
|
-
pageId: s.
|
|
152
|
-
name: s.
|
|
153
|
-
username: s.
|
|
151
|
+
pageId: s.field("pageId", S.option(S.string)),
|
|
152
|
+
name: s.field("name", S.option(S.string)),
|
|
153
|
+
username: s.field("username", S.option(S.string)),
|
|
154
154
|
})
|
|
155
155
|
|
|
156
156
|
type postPagesShowResponse = MisskeyIoComponentSchemas.Page.t
|
|
@@ -224,17 +224,17 @@ type postPagesUpdateRequest = {
|
|
|
224
224
|
|
|
225
225
|
let postPagesUpdateRequestSchema = S.object(s => {
|
|
226
226
|
pageId: s.field("pageId", S.string),
|
|
227
|
-
title: s.
|
|
228
|
-
name: s.
|
|
229
|
-
summary: s.
|
|
227
|
+
title: s.field("title", S.option(S.string)),
|
|
228
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.pattern(/^[a-zA-Z0-9_-]+$/))),
|
|
229
|
+
summary: s.field("summary", S.option(S.string)),
|
|
230
230
|
content: s.field("content", S.option(S.array(S.dict(S.json)))),
|
|
231
231
|
variables: s.field("variables", S.option(S.array(S.dict(S.json)))),
|
|
232
|
-
script: s.
|
|
233
|
-
eyeCatchingImageId: s.
|
|
234
|
-
font: s.
|
|
235
|
-
alignCenter: s.
|
|
236
|
-
hideTitleWhenPinned: s.
|
|
237
|
-
visibility: s.
|
|
232
|
+
script: s.field("script", S.option(S.string)),
|
|
233
|
+
eyeCatchingImageId: s.field("eyeCatchingImageId", S.option(S.string)),
|
|
234
|
+
font: s.field("font", S.option(S.string)),
|
|
235
|
+
alignCenter: s.field("alignCenter", S.option(S.bool)),
|
|
236
|
+
hideTitleWhenPinned: s.field("hideTitleWhenPinned", S.option(S.bool)),
|
|
237
|
+
visibility: s.field("visibility", S.option(S.string)),
|
|
238
238
|
})
|
|
239
239
|
|
|
240
240
|
type postPagesUpdateResponse = unit
|
|
@@ -41,12 +41,12 @@ type postRolesNotesRequest = {
|
|
|
41
41
|
|
|
42
42
|
let postRolesNotesRequestSchema = S.object(s => {
|
|
43
43
|
roleId: s.field("roleId", S.string),
|
|
44
|
-
limit: s.
|
|
45
|
-
sinceId: s.
|
|
46
|
-
untilId: s.
|
|
47
|
-
sinceDate: s.
|
|
48
|
-
untilDate: s.
|
|
49
|
-
dimension: s.
|
|
44
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
45
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
46
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
47
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
48
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
49
|
+
dimension: s.field("dimension", S.option(S.int->S.min(0))),
|
|
50
50
|
})
|
|
51
51
|
|
|
52
52
|
type postRolesNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
@@ -114,9 +114,9 @@ type postRolesUsersRequest = {
|
|
|
114
114
|
|
|
115
115
|
let postRolesUsersRequestSchema = S.object(s => {
|
|
116
116
|
roleId: s.field("roleId", S.string),
|
|
117
|
-
sinceId: s.
|
|
118
|
-
untilId: s.
|
|
119
|
-
limit: s.
|
|
117
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
118
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
119
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
120
120
|
})
|
|
121
121
|
|
|
122
122
|
type postRolesUsersResponse_1 = {
|