@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
|
@@ -7,12 +7,12 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postChannelsTimelineRequestSchema = S.object(s => ({
|
|
9
9
|
channelId: s.f("channelId", S.string),
|
|
10
|
-
limit: s.
|
|
11
|
-
sinceId: s.
|
|
12
|
-
untilId: s.
|
|
13
|
-
sinceDate: s.
|
|
14
|
-
untilDate: s.
|
|
15
|
-
allowPartial: s.
|
|
10
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
11
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
12
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
13
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
14
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
15
|
+
allowPartial: s.f("allowPartial", S.option(S.bool))
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
18
|
let postChannelsTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -23,17 +23,17 @@ function postChannelsTimeline(body, fetch) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
let postNotesRequestSchema = S.object(s => ({
|
|
26
|
-
local: s.
|
|
27
|
-
reply: s.
|
|
28
|
-
renote: s.
|
|
29
|
-
withFiles: s.
|
|
30
|
-
poll: s.
|
|
31
|
-
event: s.
|
|
32
|
-
limit: s.
|
|
33
|
-
sinceId: s.
|
|
34
|
-
untilId: s.
|
|
35
|
-
sinceDate: s.
|
|
36
|
-
untilDate: s.
|
|
26
|
+
local: s.f("local", S.option(S.bool)),
|
|
27
|
+
reply: s.f("reply", S.option(S.bool)),
|
|
28
|
+
renote: s.f("renote", S.option(S.bool)),
|
|
29
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
30
|
+
poll: s.f("poll", S.option(S.bool)),
|
|
31
|
+
event: s.f("event", S.option(S.bool)),
|
|
32
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
33
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
34
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
35
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
36
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
37
37
|
}));
|
|
38
38
|
|
|
39
39
|
let postNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -44,15 +44,15 @@ function postNotes(body, fetch) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
let postNotesBubbleTimelineRequestSchema = S.object(s => ({
|
|
47
|
-
withFiles: s.
|
|
48
|
-
withCats: s.
|
|
49
|
-
withBots: s.
|
|
50
|
-
withRenotes: s.
|
|
51
|
-
limit: s.
|
|
52
|
-
sinceId: s.
|
|
53
|
-
untilId: s.
|
|
54
|
-
sinceDate: s.
|
|
55
|
-
untilDate: s.
|
|
47
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
48
|
+
withCats: s.f("withCats", S.option(S.bool)),
|
|
49
|
+
withBots: s.f("withBots", S.option(S.bool)),
|
|
50
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
51
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
52
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
53
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
54
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
55
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
56
56
|
}));
|
|
57
57
|
|
|
58
58
|
let postNotesBubbleTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -64,11 +64,11 @@ function postNotesBubbleTimeline(body, fetch) {
|
|
|
64
64
|
|
|
65
65
|
let postNotesChildrenRequestSchema = S.object(s => ({
|
|
66
66
|
noteId: s.f("noteId", S.string),
|
|
67
|
-
limit: s.
|
|
68
|
-
sinceId: s.
|
|
69
|
-
untilId: s.
|
|
70
|
-
sinceDate: s.
|
|
71
|
-
untilDate: s.
|
|
67
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
68
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
69
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
70
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
71
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
72
72
|
}));
|
|
73
73
|
|
|
74
74
|
let postNotesChildrenResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -84,44 +84,44 @@ let postNotesCreateRequest_4Schema = S.object(s => ({
|
|
|
84
84
|
}));
|
|
85
85
|
|
|
86
86
|
let postNotesCreateRequest_3Schema = S.object(s => ({
|
|
87
|
-
deleteAt: s.
|
|
88
|
-
deleteAfter: s.
|
|
87
|
+
deleteAt: s.f("deleteAt", S.option(S.int)),
|
|
88
|
+
deleteAfter: s.f("deleteAfter", S.option(S.min(S.int, 1, undefined)))
|
|
89
89
|
}));
|
|
90
90
|
|
|
91
91
|
let postNotesCreateRequest_2Schema = S.object(s => ({
|
|
92
|
-
title: s.
|
|
93
|
-
start: s.
|
|
94
|
-
end: s.
|
|
92
|
+
title: s.f("title", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
93
|
+
start: s.f("start", S.option(S.int)),
|
|
94
|
+
end: s.f("end", S.option(S.int)),
|
|
95
95
|
metadata: s.f("metadata", S.option(S.dict(S.json)))
|
|
96
96
|
}));
|
|
97
97
|
|
|
98
98
|
let postNotesCreateRequest_1Schema = S.object(s => ({
|
|
99
99
|
choices: s.f("choices", S.array(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
100
|
-
multiple: s.
|
|
101
|
-
expiresAt: s.
|
|
102
|
-
expiredAfter: s.
|
|
100
|
+
multiple: s.f("multiple", S.option(S.bool)),
|
|
101
|
+
expiresAt: s.f("expiresAt", S.option(S.int)),
|
|
102
|
+
expiredAfter: s.f("expiredAfter", S.option(S.min(S.int, 1, undefined)))
|
|
103
103
|
}));
|
|
104
104
|
|
|
105
105
|
let postNotesCreateRequestSchema = S.object(s => ({
|
|
106
|
-
visibility: s.
|
|
107
|
-
visibleUserIds: s.
|
|
108
|
-
cw: s.
|
|
109
|
-
localOnly: s.
|
|
110
|
-
reactionAcceptance: s.
|
|
111
|
-
disableRightClick: s.
|
|
112
|
-
noExtractMentions: s.
|
|
113
|
-
noExtractHashtags: s.
|
|
114
|
-
noExtractEmojis: s.
|
|
115
|
-
replyId: s.
|
|
116
|
-
renoteId: s.
|
|
117
|
-
channelId: s.
|
|
118
|
-
text: s.
|
|
119
|
-
fileIds: s.
|
|
120
|
-
mediaIds: s.
|
|
121
|
-
poll: s.
|
|
122
|
-
event: s.
|
|
123
|
-
scheduledDelete: s.
|
|
124
|
-
deliveryTargets: s.
|
|
106
|
+
visibility: s.f("visibility", S.option(S.string)),
|
|
107
|
+
visibleUserIds: s.f("visibleUserIds", S.option(S.array(S.string))),
|
|
108
|
+
cw: s.f("cw", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
109
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
110
|
+
reactionAcceptance: s.f("reactionAcceptance", S.option(S.string)),
|
|
111
|
+
disableRightClick: s.f("disableRightClick", S.option(S.bool)),
|
|
112
|
+
noExtractMentions: s.f("noExtractMentions", S.option(S.bool)),
|
|
113
|
+
noExtractHashtags: s.f("noExtractHashtags", S.option(S.bool)),
|
|
114
|
+
noExtractEmojis: s.f("noExtractEmojis", S.option(S.bool)),
|
|
115
|
+
replyId: s.f("replyId", S.option(S.string)),
|
|
116
|
+
renoteId: s.f("renoteId", S.option(S.string)),
|
|
117
|
+
channelId: s.f("channelId", S.option(S.string)),
|
|
118
|
+
text: s.f("text", S.option(S.max(S.min(S.string, 1, undefined), 3000, undefined))),
|
|
119
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
120
|
+
mediaIds: s.f("mediaIds", S.option(S.array(S.string))),
|
|
121
|
+
poll: s.f("poll", S.option(postNotesCreateRequest_1Schema)),
|
|
122
|
+
event: s.f("event", S.option(postNotesCreateRequest_2Schema)),
|
|
123
|
+
scheduledDelete: s.f("scheduledDelete", S.option(postNotesCreateRequest_3Schema)),
|
|
124
|
+
deliveryTargets: s.f("deliveryTargets", S.option(postNotesCreateRequest_4Schema))
|
|
125
125
|
}));
|
|
126
126
|
|
|
127
127
|
let postNotesCreateResponseSchema = S.object(s => ({
|
|
@@ -143,43 +143,43 @@ let postNotesDraftsCreateRequest_4Schema = S.object(s => ({
|
|
|
143
143
|
}));
|
|
144
144
|
|
|
145
145
|
let postNotesDraftsCreateRequest_3Schema = S.object(s => ({
|
|
146
|
-
deleteAt: s.
|
|
147
|
-
deleteAfter: s.
|
|
146
|
+
deleteAt: s.f("deleteAt", S.option(S.int)),
|
|
147
|
+
deleteAfter: s.f("deleteAfter", S.option(S.min(S.int, 1, undefined)))
|
|
148
148
|
}));
|
|
149
149
|
|
|
150
150
|
let postNotesDraftsCreateRequest_2Schema = S.object(s => ({
|
|
151
|
-
title: s.
|
|
152
|
-
start: s.
|
|
153
|
-
end: s.
|
|
151
|
+
title: s.f("title", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
152
|
+
start: s.f("start", S.option(S.int)),
|
|
153
|
+
end: s.f("end", S.option(S.int)),
|
|
154
154
|
metadata: s.f("metadata", S.option(S.dict(S.json)))
|
|
155
155
|
}));
|
|
156
156
|
|
|
157
157
|
let postNotesDraftsCreateRequest_1Schema = S.object(s => ({
|
|
158
158
|
choices: s.f("choices", S.array(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
159
|
-
multiple: s.
|
|
160
|
-
expiresAt: s.
|
|
161
|
-
expiredAfter: s.
|
|
159
|
+
multiple: s.f("multiple", S.option(S.bool)),
|
|
160
|
+
expiresAt: s.f("expiresAt", S.option(S.int)),
|
|
161
|
+
expiredAfter: s.f("expiredAfter", S.option(S.min(S.int, 1, undefined)))
|
|
162
162
|
}));
|
|
163
163
|
|
|
164
164
|
let postNotesDraftsCreateRequestSchema = S.object(s => ({
|
|
165
|
-
visibility: s.
|
|
166
|
-
visibleUserIds: s.
|
|
167
|
-
cw: s.
|
|
168
|
-
hashtag: s.
|
|
169
|
-
localOnly: s.
|
|
170
|
-
reactionAcceptance: s.
|
|
171
|
-
disableRightClick: s.
|
|
172
|
-
replyId: s.
|
|
173
|
-
renoteId: s.
|
|
174
|
-
channelId: s.
|
|
175
|
-
text: s.
|
|
176
|
-
fileIds: s.
|
|
177
|
-
poll: s.
|
|
178
|
-
event: s.
|
|
179
|
-
scheduledAt: s.
|
|
180
|
-
isActuallyScheduled: s.
|
|
181
|
-
scheduledDelete: s.
|
|
182
|
-
deliveryTargets: s.
|
|
165
|
+
visibility: s.f("visibility", S.option(S.string)),
|
|
166
|
+
visibleUserIds: s.f("visibleUserIds", S.option(S.array(S.string))),
|
|
167
|
+
cw: s.f("cw", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
168
|
+
hashtag: s.f("hashtag", S.option(S.max(S.string, 200, undefined))),
|
|
169
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
170
|
+
reactionAcceptance: s.f("reactionAcceptance", S.option(S.string)),
|
|
171
|
+
disableRightClick: s.f("disableRightClick", S.option(S.bool)),
|
|
172
|
+
replyId: s.f("replyId", S.option(S.string)),
|
|
173
|
+
renoteId: s.f("renoteId", S.option(S.string)),
|
|
174
|
+
channelId: s.f("channelId", S.option(S.string)),
|
|
175
|
+
text: s.f("text", S.option(S.max(S.min(S.string, 0, undefined), 3000, undefined))),
|
|
176
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
177
|
+
poll: s.f("poll", S.option(postNotesDraftsCreateRequest_1Schema)),
|
|
178
|
+
event: s.f("event", S.option(postNotesDraftsCreateRequest_2Schema)),
|
|
179
|
+
scheduledAt: s.f("scheduledAt", S.option(S.int)),
|
|
180
|
+
isActuallyScheduled: s.f("isActuallyScheduled", S.option(S.bool)),
|
|
181
|
+
scheduledDelete: s.f("scheduledDelete", S.option(postNotesDraftsCreateRequest_3Schema)),
|
|
182
|
+
deliveryTargets: s.f("deliveryTargets", S.option(postNotesDraftsCreateRequest_4Schema))
|
|
183
183
|
}));
|
|
184
184
|
|
|
185
185
|
let postNotesDraftsCreateResponseSchema = S.object(s => ({
|
|
@@ -201,12 +201,12 @@ function postNotesDraftsDelete(body, fetch) {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
let postNotesDraftsListRequestSchema = S.object(s => ({
|
|
204
|
-
limit: s.
|
|
205
|
-
sinceId: s.
|
|
206
|
-
untilId: s.
|
|
207
|
-
sinceDate: s.
|
|
208
|
-
untilDate: s.
|
|
209
|
-
scheduled: s.
|
|
204
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
205
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
206
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
207
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
208
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
209
|
+
scheduled: s.f("scheduled", S.option(S.bool))
|
|
210
210
|
}));
|
|
211
211
|
|
|
212
212
|
let postNotesDraftsListResponseSchema = S.array(KokonectLinkComponentSchemas.NoteDraft.schema);
|
|
@@ -222,44 +222,44 @@ let postNotesDraftsUpdateRequest_4Schema = S.object(s => ({
|
|
|
222
222
|
}));
|
|
223
223
|
|
|
224
224
|
let postNotesDraftsUpdateRequest_3Schema = S.object(s => ({
|
|
225
|
-
deleteAt: s.
|
|
226
|
-
deleteAfter: s.
|
|
225
|
+
deleteAt: s.f("deleteAt", S.option(S.int)),
|
|
226
|
+
deleteAfter: s.f("deleteAfter", S.option(S.min(S.int, 1, undefined)))
|
|
227
227
|
}));
|
|
228
228
|
|
|
229
229
|
let postNotesDraftsUpdateRequest_2Schema = S.object(s => ({
|
|
230
|
-
title: s.
|
|
231
|
-
start: s.
|
|
232
|
-
end: s.
|
|
230
|
+
title: s.f("title", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
231
|
+
start: s.f("start", S.option(S.int)),
|
|
232
|
+
end: s.f("end", S.option(S.int)),
|
|
233
233
|
metadata: s.f("metadata", S.option(S.dict(S.json)))
|
|
234
234
|
}));
|
|
235
235
|
|
|
236
236
|
let postNotesDraftsUpdateRequest_1Schema = S.object(s => ({
|
|
237
237
|
choices: s.f("choices", S.array(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
238
|
-
multiple: s.
|
|
239
|
-
expiresAt: s.
|
|
240
|
-
expiredAfter: s.
|
|
238
|
+
multiple: s.f("multiple", S.option(S.bool)),
|
|
239
|
+
expiresAt: s.f("expiresAt", S.option(S.int)),
|
|
240
|
+
expiredAfter: s.f("expiredAfter", S.option(S.min(S.int, 1, undefined)))
|
|
241
241
|
}));
|
|
242
242
|
|
|
243
243
|
let postNotesDraftsUpdateRequestSchema = S.object(s => ({
|
|
244
244
|
draftId: s.f("draftId", S.string),
|
|
245
|
-
visibility: s.
|
|
246
|
-
visibleUserIds: s.
|
|
247
|
-
cw: s.
|
|
248
|
-
disableRightClick: s.
|
|
249
|
-
hashtag: s.
|
|
250
|
-
localOnly: s.
|
|
251
|
-
reactionAcceptance: s.
|
|
252
|
-
replyId: s.
|
|
253
|
-
renoteId: s.
|
|
254
|
-
channelId: s.
|
|
255
|
-
text: s.
|
|
256
|
-
fileIds: s.
|
|
257
|
-
poll: s.
|
|
258
|
-
scheduledAt: s.
|
|
259
|
-
isActuallyScheduled: s.
|
|
260
|
-
event: s.
|
|
261
|
-
scheduledDelete: s.
|
|
262
|
-
deliveryTargets: s.
|
|
245
|
+
visibility: s.f("visibility", S.option(S.string)),
|
|
246
|
+
visibleUserIds: s.f("visibleUserIds", S.option(S.array(S.string))),
|
|
247
|
+
cw: s.f("cw", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
248
|
+
disableRightClick: s.f("disableRightClick", S.option(S.bool)),
|
|
249
|
+
hashtag: s.f("hashtag", S.option(S.max(S.string, 200, undefined))),
|
|
250
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
251
|
+
reactionAcceptance: s.f("reactionAcceptance", S.option(S.string)),
|
|
252
|
+
replyId: s.f("replyId", S.option(S.string)),
|
|
253
|
+
renoteId: s.f("renoteId", S.option(S.string)),
|
|
254
|
+
channelId: s.f("channelId", S.option(S.string)),
|
|
255
|
+
text: s.f("text", S.option(S.max(S.min(S.string, 0, undefined), 3000, undefined))),
|
|
256
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
257
|
+
poll: s.f("poll", S.option(postNotesDraftsUpdateRequest_1Schema)),
|
|
258
|
+
scheduledAt: s.f("scheduledAt", S.option(S.int)),
|
|
259
|
+
isActuallyScheduled: s.f("isActuallyScheduled", S.option(S.bool)),
|
|
260
|
+
event: s.f("event", S.option(postNotesDraftsUpdateRequest_2Schema)),
|
|
261
|
+
scheduledDelete: s.f("scheduledDelete", S.option(postNotesDraftsUpdateRequest_3Schema)),
|
|
262
|
+
deliveryTargets: s.f("deliveryTargets", S.option(postNotesDraftsUpdateRequest_4Schema))
|
|
263
263
|
}));
|
|
264
264
|
|
|
265
265
|
let postNotesDraftsUpdateResponseSchema = S.object(s => ({
|
|
@@ -272,17 +272,17 @@ function postNotesDraftsUpdate(body, fetch) {
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
let postNotesEventsSearchRequestSchema = S.object(s => ({
|
|
275
|
-
query: s.
|
|
276
|
-
sinceId: s.
|
|
277
|
-
untilId: s.
|
|
278
|
-
limit: s.
|
|
279
|
-
origin: s.
|
|
280
|
-
offset: s.
|
|
281
|
-
users: s.
|
|
282
|
-
sinceDate: s.
|
|
283
|
-
untilDate: s.
|
|
284
|
-
filters: s.
|
|
285
|
-
sortBy: s.
|
|
275
|
+
query: s.f("query", S.option(S.string)),
|
|
276
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
277
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
278
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
279
|
+
origin: s.f("origin", S.option(S.string)),
|
|
280
|
+
offset: s.f("offset", S.option(S.int)),
|
|
281
|
+
users: s.f("users", S.option(S.json)),
|
|
282
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
283
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
284
|
+
filters: s.f("filters", S.option(S.json)),
|
|
285
|
+
sortBy: s.f("sortBy", S.option(S.string))
|
|
286
286
|
}));
|
|
287
287
|
|
|
288
288
|
let postNotesEventsSearchResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -293,14 +293,14 @@ function postNotesEventsSearch(body, fetch) {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
let postNotesGlobalTimelineRequestSchema = S.object(s => ({
|
|
296
|
-
withFiles: s.
|
|
297
|
-
withRenotes: s.
|
|
298
|
-
withCats: s.
|
|
299
|
-
limit: s.
|
|
300
|
-
sinceId: s.
|
|
301
|
-
untilId: s.
|
|
302
|
-
sinceDate: s.
|
|
303
|
-
untilDate: s.
|
|
296
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
297
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
298
|
+
withCats: s.f("withCats", S.option(S.bool)),
|
|
299
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
300
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
301
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
302
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
303
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
304
304
|
}));
|
|
305
305
|
|
|
306
306
|
let postNotesGlobalTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -312,9 +312,9 @@ function postNotesGlobalTimeline(body, fetch) {
|
|
|
312
312
|
|
|
313
313
|
let postNotesHistoryRequestSchema = S.object(s => ({
|
|
314
314
|
noteId: s.f("noteId", S.string),
|
|
315
|
-
limit: s.
|
|
316
|
-
sinceId: s.
|
|
317
|
-
untilId: s.
|
|
315
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
316
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
317
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
318
318
|
}));
|
|
319
319
|
|
|
320
320
|
let postNotesHistoryResponseSchema = S.array(KokonectLinkComponentSchemas.NoteHistory.schema);
|
|
@@ -325,19 +325,19 @@ function postNotesHistory(body, fetch) {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
let postNotesHybridTimelineRequestSchema = S.object(s => ({
|
|
328
|
-
limit: s.
|
|
329
|
-
sinceId: s.
|
|
330
|
-
untilId: s.
|
|
331
|
-
sinceDate: s.
|
|
332
|
-
untilDate: s.
|
|
333
|
-
allowPartial: s.
|
|
334
|
-
includeMyRenotes: s.
|
|
335
|
-
includeRenotedMyNotes: s.
|
|
336
|
-
includeLocalRenotes: s.
|
|
337
|
-
withFiles: s.
|
|
338
|
-
withRenotes: s.
|
|
339
|
-
withReplies: s.
|
|
340
|
-
withCats: s.
|
|
328
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
329
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
330
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
331
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
332
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
333
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
334
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
335
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
336
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
337
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
338
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
339
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
340
|
+
withCats: s.f("withCats", S.option(S.bool))
|
|
341
341
|
}));
|
|
342
342
|
|
|
343
343
|
let postNotesHybridTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -348,16 +348,16 @@ function postNotesHybridTimeline(body, fetch) {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
let postNotesLocalTimelineRequestSchema = S.object(s => ({
|
|
351
|
-
withFiles: s.
|
|
352
|
-
withRenotes: s.
|
|
353
|
-
withReplies: s.
|
|
354
|
-
withCats: s.
|
|
355
|
-
limit: s.
|
|
356
|
-
sinceId: s.
|
|
357
|
-
untilId: s.
|
|
358
|
-
allowPartial: s.
|
|
359
|
-
sinceDate: s.
|
|
360
|
-
untilDate: s.
|
|
351
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
352
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
353
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
354
|
+
withCats: s.f("withCats", S.option(S.bool)),
|
|
355
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
356
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
357
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
358
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
359
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
360
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
361
361
|
}));
|
|
362
362
|
|
|
363
363
|
let postNotesLocalTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -368,13 +368,13 @@ function postNotesLocalTimeline(body, fetch) {
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
let postNotesMentionsRequestSchema = S.object(s => ({
|
|
371
|
-
following: s.
|
|
372
|
-
limit: s.
|
|
373
|
-
sinceId: s.
|
|
374
|
-
untilId: s.
|
|
375
|
-
sinceDate: s.
|
|
376
|
-
untilDate: s.
|
|
377
|
-
visibility: s.
|
|
371
|
+
following: s.f("following", S.option(S.bool)),
|
|
372
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
373
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
374
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
375
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
376
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
377
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
378
378
|
}));
|
|
379
379
|
|
|
380
380
|
let postNotesMentionsResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -391,7 +391,7 @@ let postNotesPollsTranslateRequestSchema = S.object(s => ({
|
|
|
391
391
|
|
|
392
392
|
let postNotesPollsTranslateResponseSchema = S.object(s => ({
|
|
393
393
|
sourceLang: s.f("sourceLang", S.string),
|
|
394
|
-
text: s.
|
|
394
|
+
text: s.f("text", S.option(S.array(S.nullableAsOption(S.string))))
|
|
395
395
|
}));
|
|
396
396
|
|
|
397
397
|
function postNotesPollsTranslate(body, fetch) {
|
|
@@ -401,12 +401,12 @@ function postNotesPollsTranslate(body, fetch) {
|
|
|
401
401
|
|
|
402
402
|
let getNotesReactionsRequestSchema = S.object(s => ({
|
|
403
403
|
noteId: s.f("noteId", S.string),
|
|
404
|
-
type: s.
|
|
405
|
-
limit: s.
|
|
406
|
-
sinceId: s.
|
|
407
|
-
untilId: s.
|
|
408
|
-
sinceDate: s.
|
|
409
|
-
untilDate: s.
|
|
404
|
+
type: s.f("type", S.option(S.string)),
|
|
405
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
406
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
407
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
408
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
409
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
410
410
|
}));
|
|
411
411
|
|
|
412
412
|
let getNotesReactionsResponseSchema = S.array(KokonectLinkComponentSchemas.NoteReaction.schema);
|
|
@@ -418,12 +418,12 @@ function getNotesReactions(body, fetch) {
|
|
|
418
418
|
|
|
419
419
|
let postNotesReactionsRequestSchema = S.object(s => ({
|
|
420
420
|
noteId: s.f("noteId", S.string),
|
|
421
|
-
type: s.
|
|
422
|
-
limit: s.
|
|
423
|
-
sinceId: s.
|
|
424
|
-
untilId: s.
|
|
425
|
-
sinceDate: s.
|
|
426
|
-
untilDate: s.
|
|
421
|
+
type: s.f("type", S.option(S.string)),
|
|
422
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
423
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
424
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
425
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
426
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
427
427
|
}));
|
|
428
428
|
|
|
429
429
|
let postNotesReactionsResponseSchema = S.array(KokonectLinkComponentSchemas.NoteReaction.schema);
|
|
@@ -435,11 +435,11 @@ function postNotesReactions(body, fetch) {
|
|
|
435
435
|
|
|
436
436
|
let postNotesRenotesRequestSchema = S.object(s => ({
|
|
437
437
|
noteId: s.f("noteId", S.string),
|
|
438
|
-
limit: s.
|
|
439
|
-
sinceId: s.
|
|
440
|
-
untilId: s.
|
|
441
|
-
sinceDate: s.
|
|
442
|
-
untilDate: s.
|
|
438
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
439
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
440
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
441
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
442
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
443
443
|
}));
|
|
444
444
|
|
|
445
445
|
let postNotesRenotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -451,11 +451,11 @@ function postNotesRenotes(body, fetch) {
|
|
|
451
451
|
|
|
452
452
|
let postNotesRepliesRequestSchema = S.object(s => ({
|
|
453
453
|
noteId: s.f("noteId", S.string),
|
|
454
|
-
sinceId: s.
|
|
455
|
-
untilId: s.
|
|
456
|
-
sinceDate: s.
|
|
457
|
-
untilDate: s.
|
|
458
|
-
limit: s.
|
|
454
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
455
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
456
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
457
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
458
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
459
459
|
}));
|
|
460
460
|
|
|
461
461
|
let postNotesRepliesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -467,15 +467,15 @@ function postNotesReplies(body, fetch) {
|
|
|
467
467
|
|
|
468
468
|
let postNotesSearchRequestSchema = S.object(s => ({
|
|
469
469
|
query: s.f("query", S.string),
|
|
470
|
-
sinceId: s.
|
|
471
|
-
untilId: s.
|
|
472
|
-
sinceDate: s.
|
|
473
|
-
untilDate: s.
|
|
474
|
-
limit: s.
|
|
475
|
-
offset: s.
|
|
476
|
-
host: s.
|
|
477
|
-
userId: s.
|
|
478
|
-
channelId: s.
|
|
470
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
471
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
472
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
473
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
474
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
475
|
+
offset: s.f("offset", S.option(S.int)),
|
|
476
|
+
host: s.f("host", S.option(S.string)),
|
|
477
|
+
userId: s.f("userId", S.option(S.string)),
|
|
478
|
+
channelId: s.f("channelId", S.option(S.string))
|
|
479
479
|
}));
|
|
480
480
|
|
|
481
481
|
let postNotesSearchResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -486,15 +486,15 @@ function postNotesSearch(body, fetch) {
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
let postNotesSearchByTagRequestSchema = S.object(s => ({
|
|
489
|
-
reply: s.
|
|
490
|
-
renote: s.
|
|
491
|
-
withFiles: s.
|
|
492
|
-
poll: s.
|
|
493
|
-
sinceId: s.
|
|
494
|
-
untilId: s.
|
|
495
|
-
sinceDate: s.
|
|
496
|
-
untilDate: s.
|
|
497
|
-
limit: s.
|
|
489
|
+
reply: s.f("reply", S.option(S.bool)),
|
|
490
|
+
renote: s.f("renote", S.option(S.bool)),
|
|
491
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
492
|
+
poll: s.f("poll", S.option(S.bool)),
|
|
493
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
494
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
495
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
496
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
497
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
498
498
|
}));
|
|
499
499
|
|
|
500
500
|
let postNotesSearchByTagResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -548,18 +548,18 @@ function postNotesState(body, fetch) {
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
let postNotesTimelineRequestSchema = S.object(s => ({
|
|
551
|
-
limit: s.
|
|
552
|
-
sinceId: s.
|
|
553
|
-
untilId: s.
|
|
554
|
-
sinceDate: s.
|
|
555
|
-
untilDate: s.
|
|
556
|
-
allowPartial: s.
|
|
557
|
-
includeMyRenotes: s.
|
|
558
|
-
includeRenotedMyNotes: s.
|
|
559
|
-
includeLocalRenotes: s.
|
|
560
|
-
withFiles: s.
|
|
561
|
-
withRenotes: s.
|
|
562
|
-
withCats: s.
|
|
551
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
552
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
553
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
554
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
555
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
556
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
557
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
558
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
559
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
560
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
561
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
562
|
+
withCats: s.f("withCats", S.option(S.bool))
|
|
563
563
|
}));
|
|
564
564
|
|
|
565
565
|
let postNotesTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -570,34 +570,34 @@ function postNotesTimeline(body, fetch) {
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
let postNotesUpdateRequest_3Schema = S.object(s => ({
|
|
573
|
-
deleteAt: s.
|
|
574
|
-
deleteAfter: s.
|
|
573
|
+
deleteAt: s.f("deleteAt", S.option(S.int)),
|
|
574
|
+
deleteAfter: s.f("deleteAfter", S.option(S.min(S.int, 1, undefined)))
|
|
575
575
|
}));
|
|
576
576
|
|
|
577
577
|
let postNotesUpdateRequest_2Schema = S.object(s => ({
|
|
578
|
-
title: s.
|
|
579
|
-
start: s.
|
|
580
|
-
end: s.
|
|
578
|
+
title: s.f("title", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
579
|
+
start: s.f("start", S.option(S.int)),
|
|
580
|
+
end: s.f("end", S.option(S.int)),
|
|
581
581
|
metadata: s.f("metadata", S.option(S.dict(S.json)))
|
|
582
582
|
}));
|
|
583
583
|
|
|
584
584
|
let postNotesUpdateRequest_1Schema = S.object(s => ({
|
|
585
585
|
choices: s.f("choices", S.array(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
586
|
-
multiple: s.
|
|
587
|
-
expiresAt: s.
|
|
588
|
-
expiredAfter: s.
|
|
586
|
+
multiple: s.f("multiple", S.option(S.bool)),
|
|
587
|
+
expiresAt: s.f("expiresAt", S.option(S.int)),
|
|
588
|
+
expiredAfter: s.f("expiredAfter", S.option(S.min(S.int, 1, undefined)))
|
|
589
589
|
}));
|
|
590
590
|
|
|
591
591
|
let postNotesUpdateRequestSchema = S.object(s => ({
|
|
592
592
|
noteId: s.f("noteId", S.string),
|
|
593
593
|
text: s.f("text", S.max(S.min(S.string, 1, undefined), 3000, undefined)),
|
|
594
|
-
fileIds: s.
|
|
595
|
-
mediaIds: s.
|
|
596
|
-
poll: s.
|
|
597
|
-
event: s.
|
|
594
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
595
|
+
mediaIds: s.f("mediaIds", S.option(S.array(S.string))),
|
|
596
|
+
poll: s.f("poll", S.option(postNotesUpdateRequest_1Schema)),
|
|
597
|
+
event: s.f("event", S.option(postNotesUpdateRequest_2Schema)),
|
|
598
598
|
cw: s.f("cw", S.nullableAsOption(S.max(S.string, 100, undefined))),
|
|
599
|
-
disableRightClick: s.
|
|
600
|
-
scheduledDelete: s.
|
|
599
|
+
disableRightClick: s.f("disableRightClick", S.option(S.bool)),
|
|
600
|
+
scheduledDelete: s.f("scheduledDelete", S.option(postNotesUpdateRequest_3Schema))
|
|
601
601
|
}));
|
|
602
602
|
|
|
603
603
|
function postNotesUpdate(body, fetch) {
|
|
@@ -607,18 +607,18 @@ function postNotesUpdate(body, fetch) {
|
|
|
607
607
|
|
|
608
608
|
let postNotesUserListTimelineRequestSchema = S.object(s => ({
|
|
609
609
|
listId: s.f("listId", S.string),
|
|
610
|
-
limit: s.
|
|
611
|
-
sinceId: s.
|
|
612
|
-
untilId: s.
|
|
613
|
-
sinceDate: s.
|
|
614
|
-
untilDate: s.
|
|
615
|
-
allowPartial: s.
|
|
616
|
-
includeMyRenotes: s.
|
|
617
|
-
includeRenotedMyNotes: s.
|
|
618
|
-
includeLocalRenotes: s.
|
|
619
|
-
withRenotes: s.
|
|
620
|
-
withFiles: s.
|
|
621
|
-
withCats: s.
|
|
610
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
611
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
612
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
613
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
614
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
615
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
616
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
617
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
618
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
619
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
620
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
621
|
+
withCats: s.f("withCats", S.option(S.bool))
|
|
622
622
|
}));
|
|
623
623
|
|
|
624
624
|
let postNotesUserListTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|