@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,13 +7,13 @@ 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.
|
|
16
|
-
dimension: 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
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
17
17
|
}));
|
|
18
18
|
|
|
19
19
|
let postChannelsTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -24,14 +24,14 @@ function postChannelsTimeline(body, fetch) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
let postNotesRequestSchema = S.object(s => ({
|
|
27
|
-
local: s.
|
|
28
|
-
reply: s.
|
|
29
|
-
renote: s.
|
|
30
|
-
withFiles: s.
|
|
31
|
-
poll: s.
|
|
32
|
-
limit: s.
|
|
33
|
-
sinceId: s.
|
|
34
|
-
untilId: s.
|
|
27
|
+
local: s.f("local", S.option(S.bool)),
|
|
28
|
+
reply: s.f("reply", S.option(S.bool)),
|
|
29
|
+
renote: s.f("renote", S.option(S.bool)),
|
|
30
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
31
|
+
poll: s.f("poll", 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
35
|
}));
|
|
36
36
|
|
|
37
37
|
let postNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -43,9 +43,9 @@ function postNotes(body, fetch) {
|
|
|
43
43
|
|
|
44
44
|
let postNotesChildrenRequestSchema = S.object(s => ({
|
|
45
45
|
noteId: s.f("noteId", S.string),
|
|
46
|
-
limit: s.
|
|
47
|
-
sinceId: s.
|
|
48
|
-
untilId: s.
|
|
46
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
47
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
48
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
49
49
|
}));
|
|
50
50
|
|
|
51
51
|
let postNotesChildrenResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -57,8 +57,8 @@ function postNotesChildren(body, fetch) {
|
|
|
57
57
|
|
|
58
58
|
let postNotesConversationRequestSchema = S.object(s => ({
|
|
59
59
|
noteId: s.f("noteId", S.string),
|
|
60
|
-
limit: s.
|
|
61
|
-
offset: s.
|
|
60
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
61
|
+
offset: s.f("offset", S.option(S.int))
|
|
62
62
|
}));
|
|
63
63
|
|
|
64
64
|
let postNotesConversationResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -70,31 +70,31 @@ function postNotesConversation(body, fetch) {
|
|
|
70
70
|
|
|
71
71
|
let postNotesCreateRequest_1Schema = S.object(s => ({
|
|
72
72
|
choices: s.f("choices", S.array(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
73
|
-
multiple: s.
|
|
74
|
-
expiresAt: s.
|
|
75
|
-
expiredAfter: s.
|
|
73
|
+
multiple: s.f("multiple", S.option(S.bool)),
|
|
74
|
+
expiresAt: s.f("expiresAt", S.option(S.int)),
|
|
75
|
+
expiredAfter: s.f("expiredAfter", S.option(S.min(S.int, 1, undefined)))
|
|
76
76
|
}));
|
|
77
77
|
|
|
78
78
|
let postNotesCreateRequestSchema = S.object(s => ({
|
|
79
|
-
visibility: s.
|
|
80
|
-
visibleUserIds: s.
|
|
81
|
-
cw: s.
|
|
82
|
-
localOnly: s.
|
|
83
|
-
dimension: s.
|
|
84
|
-
reactionAcceptance: s.
|
|
85
|
-
noExtractMentions: s.
|
|
86
|
-
noExtractHashtags: s.
|
|
87
|
-
noExtractEmojis: s.
|
|
88
|
-
replyId: s.
|
|
89
|
-
renoteId: s.
|
|
90
|
-
channelId: s.
|
|
91
|
-
lang: s.
|
|
92
|
-
text: s.
|
|
93
|
-
fileIds: s.
|
|
94
|
-
mediaIds: s.
|
|
95
|
-
poll: s.
|
|
96
|
-
scheduledAt: s.
|
|
97
|
-
noCreatedNote: s.
|
|
79
|
+
visibility: s.f("visibility", S.option(S.string)),
|
|
80
|
+
visibleUserIds: s.f("visibleUserIds", S.option(S.array(S.string))),
|
|
81
|
+
cw: s.f("cw", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
82
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
83
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined))),
|
|
84
|
+
reactionAcceptance: s.f("reactionAcceptance", S.option(S.string)),
|
|
85
|
+
noExtractMentions: s.f("noExtractMentions", S.option(S.bool)),
|
|
86
|
+
noExtractHashtags: s.f("noExtractHashtags", S.option(S.bool)),
|
|
87
|
+
noExtractEmojis: s.f("noExtractEmojis", S.option(S.bool)),
|
|
88
|
+
replyId: s.f("replyId", S.option(S.string)),
|
|
89
|
+
renoteId: s.f("renoteId", S.option(S.string)),
|
|
90
|
+
channelId: s.f("channelId", S.option(S.string)),
|
|
91
|
+
lang: s.f("lang", S.option(S.string)),
|
|
92
|
+
text: s.f("text", S.option(S.max(S.min(S.string, 1, undefined), 3000, undefined))),
|
|
93
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
94
|
+
mediaIds: s.f("mediaIds", S.option(S.array(S.string))),
|
|
95
|
+
poll: s.f("poll", S.option(postNotesCreateRequest_1Schema)),
|
|
96
|
+
scheduledAt: s.f("scheduledAt", S.option(S.int)),
|
|
97
|
+
noCreatedNote: s.f("noCreatedNote", S.option(S.bool))
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
100
|
let postNotesCreateResponseSchema = S.object(s => ({
|
|
@@ -134,9 +134,9 @@ function postNotesFavoritesDelete(body, fetch) {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
let getNotesFeaturedRequestSchema = S.object(s => ({
|
|
137
|
-
limit: s.
|
|
138
|
-
untilId: s.
|
|
139
|
-
channelId: s.
|
|
137
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
138
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
139
|
+
channelId: s.f("channelId", S.option(S.string))
|
|
140
140
|
}));
|
|
141
141
|
|
|
142
142
|
let getNotesFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -147,9 +147,9 @@ function getNotesFeatured(body, fetch) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
let postNotesFeaturedRequestSchema = S.object(s => ({
|
|
150
|
-
limit: s.
|
|
151
|
-
untilId: s.
|
|
152
|
-
channelId: s.
|
|
150
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
151
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
152
|
+
channelId: s.f("channelId", S.option(S.string))
|
|
153
153
|
}));
|
|
154
154
|
|
|
155
155
|
let postNotesFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -160,14 +160,14 @@ function postNotesFeatured(body, fetch) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
let postNotesGlobalTimelineRequestSchema = S.object(s => ({
|
|
163
|
-
withFiles: s.
|
|
164
|
-
withRenotes: s.
|
|
165
|
-
limit: s.
|
|
166
|
-
sinceId: s.
|
|
167
|
-
untilId: s.
|
|
168
|
-
sinceDate: s.
|
|
169
|
-
untilDate: s.
|
|
170
|
-
dimension: s.
|
|
163
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
164
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
165
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
166
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
167
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
168
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
169
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
170
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
171
171
|
}));
|
|
172
172
|
|
|
173
173
|
let postNotesGlobalTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -178,19 +178,19 @@ function postNotesGlobalTimeline(body, fetch) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
let postNotesHybridTimelineRequestSchema = S.object(s => ({
|
|
181
|
-
limit: s.
|
|
182
|
-
sinceId: s.
|
|
183
|
-
untilId: s.
|
|
184
|
-
sinceDate: s.
|
|
185
|
-
untilDate: s.
|
|
186
|
-
allowPartial: s.
|
|
187
|
-
includeMyRenotes: s.
|
|
188
|
-
includeRenotedMyNotes: s.
|
|
189
|
-
includeLocalRenotes: s.
|
|
190
|
-
withFiles: s.
|
|
191
|
-
withRenotes: s.
|
|
192
|
-
withReplies: s.
|
|
193
|
-
dimension: s.
|
|
181
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
182
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
183
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
184
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
185
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
186
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
187
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
188
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
189
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
190
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
191
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
192
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
193
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
194
194
|
}));
|
|
195
195
|
|
|
196
196
|
let postNotesHybridTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -201,16 +201,16 @@ function postNotesHybridTimeline(body, fetch) {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
let postNotesLocalTimelineRequestSchema = S.object(s => ({
|
|
204
|
-
withFiles: s.
|
|
205
|
-
withRenotes: s.
|
|
206
|
-
withReplies: s.
|
|
207
|
-
limit: s.
|
|
208
|
-
sinceId: s.
|
|
209
|
-
untilId: s.
|
|
210
|
-
allowPartial: s.
|
|
211
|
-
sinceDate: s.
|
|
212
|
-
untilDate: s.
|
|
213
|
-
dimension: s.
|
|
204
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
205
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
206
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
207
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
208
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
209
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
210
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
211
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
212
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
213
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
214
214
|
}));
|
|
215
215
|
|
|
216
216
|
let postNotesLocalTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -221,11 +221,11 @@ function postNotesLocalTimeline(body, fetch) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
let postNotesMentionsRequestSchema = S.object(s => ({
|
|
224
|
-
following: s.
|
|
225
|
-
limit: s.
|
|
226
|
-
sinceId: s.
|
|
227
|
-
untilId: s.
|
|
228
|
-
visibility: s.
|
|
224
|
+
following: s.f("following", S.option(S.bool)),
|
|
225
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
226
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
227
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
228
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
229
229
|
}));
|
|
230
230
|
|
|
231
231
|
let postNotesMentionsResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -236,9 +236,9 @@ function postNotesMentions(body, fetch) {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
let postNotesPollsRecommendationRequestSchema = S.object(s => ({
|
|
239
|
-
limit: s.
|
|
240
|
-
offset: s.
|
|
241
|
-
excludeChannels: s.
|
|
239
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
240
|
+
offset: s.f("offset", S.option(S.int)),
|
|
241
|
+
excludeChannels: s.f("excludeChannels", S.option(S.bool))
|
|
242
242
|
}));
|
|
243
243
|
|
|
244
244
|
let postNotesPollsRecommendationResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -260,10 +260,10 @@ function postNotesPollsVote(body, fetch) {
|
|
|
260
260
|
|
|
261
261
|
let getNotesReactionsRequestSchema = S.object(s => ({
|
|
262
262
|
noteId: s.f("noteId", S.string),
|
|
263
|
-
type: s.
|
|
264
|
-
limit: s.
|
|
265
|
-
sinceId: s.
|
|
266
|
-
untilId: s.
|
|
263
|
+
type: s.f("type", S.option(S.string)),
|
|
264
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
265
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
266
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
267
267
|
}));
|
|
268
268
|
|
|
269
269
|
let getNotesReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema);
|
|
@@ -275,10 +275,10 @@ function getNotesReactions(body, fetch) {
|
|
|
275
275
|
|
|
276
276
|
let postNotesReactionsRequestSchema = S.object(s => ({
|
|
277
277
|
noteId: s.f("noteId", S.string),
|
|
278
|
-
type: s.
|
|
279
|
-
limit: s.
|
|
280
|
-
sinceId: s.
|
|
281
|
-
untilId: s.
|
|
278
|
+
type: s.f("type", S.option(S.string)),
|
|
279
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
280
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
281
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
282
282
|
}));
|
|
283
283
|
|
|
284
284
|
let postNotesReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema);
|
|
@@ -290,9 +290,9 @@ function postNotesReactions(body, fetch) {
|
|
|
290
290
|
|
|
291
291
|
let postNotesRenotesRequestSchema = S.object(s => ({
|
|
292
292
|
noteId: s.f("noteId", S.string),
|
|
293
|
-
limit: s.
|
|
294
|
-
sinceId: s.
|
|
295
|
-
untilId: s.
|
|
293
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
294
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
295
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
296
296
|
}));
|
|
297
297
|
|
|
298
298
|
let postNotesRenotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -304,9 +304,9 @@ function postNotesRenotes(body, fetch) {
|
|
|
304
304
|
|
|
305
305
|
let postNotesRepliesRequestSchema = S.object(s => ({
|
|
306
306
|
noteId: s.f("noteId", S.string),
|
|
307
|
-
sinceId: s.
|
|
308
|
-
untilId: s.
|
|
309
|
-
limit: s.
|
|
307
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
308
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
309
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
310
310
|
}));
|
|
311
311
|
|
|
312
312
|
let postNotesRepliesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -326,8 +326,8 @@ function postNotesScheduledCancel(body, fetch) {
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
let postNotesScheduledListRequestSchema = S.object(s => ({
|
|
329
|
-
limit: s.
|
|
330
|
-
offset: s.
|
|
329
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
330
|
+
offset: s.f("offset", S.option(S.int))
|
|
331
331
|
}));
|
|
332
332
|
|
|
333
333
|
let postNotesScheduledListResponseSchema = S.array(MisskeyIoComponentSchemas.NoteDraft.schema);
|
|
@@ -339,13 +339,13 @@ function postNotesScheduledList(body, fetch) {
|
|
|
339
339
|
|
|
340
340
|
let postNotesSearchRequestSchema = S.object(s => ({
|
|
341
341
|
query: s.f("query", S.string),
|
|
342
|
-
sinceId: s.
|
|
343
|
-
untilId: s.
|
|
344
|
-
limit: s.
|
|
345
|
-
offset: s.
|
|
346
|
-
host: s.
|
|
347
|
-
userId: s.
|
|
348
|
-
channelId: s.
|
|
342
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
343
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
344
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
345
|
+
offset: s.f("offset", S.option(S.int)),
|
|
346
|
+
host: s.f("host", S.option(S.string)),
|
|
347
|
+
userId: s.f("userId", S.option(S.string)),
|
|
348
|
+
channelId: s.f("channelId", S.option(S.string))
|
|
349
349
|
}));
|
|
350
350
|
|
|
351
351
|
let postNotesSearchResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -356,16 +356,16 @@ function postNotesSearch(body, fetch) {
|
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
let postNotesSearchByTagRequestSchema = S.object(s => ({
|
|
359
|
-
local: s.
|
|
360
|
-
reply: s.
|
|
361
|
-
renote: s.
|
|
362
|
-
withFiles: s.
|
|
363
|
-
poll: s.
|
|
364
|
-
sinceId: s.
|
|
365
|
-
untilId: s.
|
|
366
|
-
limit: s.
|
|
367
|
-
tag: s.
|
|
368
|
-
query: s.
|
|
359
|
+
local: s.f("local", S.option(S.bool)),
|
|
360
|
+
reply: s.f("reply", S.option(S.bool)),
|
|
361
|
+
renote: s.f("renote", S.option(S.bool)),
|
|
362
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
363
|
+
poll: s.f("poll", S.option(S.bool)),
|
|
364
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
365
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
366
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
367
|
+
tag: s.f("tag", S.option(S.min(S.string, 1, undefined))),
|
|
368
|
+
query: s.f("query", S.option(S.array(S.array(S.min(S.string, 1, undefined)))))
|
|
369
369
|
}));
|
|
370
370
|
|
|
371
371
|
let postNotesSearchByTagResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -419,18 +419,18 @@ function postNotesThreadMutingDelete(body, fetch) {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
let postNotesTimelineRequestSchema = S.object(s => ({
|
|
422
|
-
limit: s.
|
|
423
|
-
sinceId: s.
|
|
424
|
-
untilId: s.
|
|
425
|
-
sinceDate: s.
|
|
426
|
-
untilDate: s.
|
|
427
|
-
allowPartial: s.
|
|
428
|
-
includeMyRenotes: s.
|
|
429
|
-
includeRenotedMyNotes: s.
|
|
430
|
-
includeLocalRenotes: s.
|
|
431
|
-
withFiles: s.
|
|
432
|
-
withRenotes: s.
|
|
433
|
-
dimension: s.
|
|
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
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
428
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
429
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
430
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
431
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
432
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
433
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
434
434
|
}));
|
|
435
435
|
|
|
436
436
|
let postNotesTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -466,17 +466,17 @@ function postNotesUnrenote(body, fetch) {
|
|
|
466
466
|
|
|
467
467
|
let postNotesUserListTimelineRequestSchema = S.object(s => ({
|
|
468
468
|
listId: s.f("listId", S.string),
|
|
469
|
-
limit: s.
|
|
470
|
-
sinceId: s.
|
|
471
|
-
untilId: s.
|
|
472
|
-
sinceDate: s.
|
|
473
|
-
untilDate: s.
|
|
474
|
-
allowPartial: s.
|
|
475
|
-
includeMyRenotes: s.
|
|
476
|
-
includeRenotedMyNotes: s.
|
|
477
|
-
includeLocalRenotes: s.
|
|
478
|
-
withRenotes: s.
|
|
479
|
-
withFiles: s.
|
|
469
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
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
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
475
|
+
includeMyRenotes: s.f("includeMyRenotes", S.option(S.bool)),
|
|
476
|
+
includeRenotedMyNotes: s.f("includeRenotedMyNotes", S.option(S.bool)),
|
|
477
|
+
includeLocalRenotes: s.f("includeLocalRenotes", S.option(S.bool)),
|
|
478
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
479
|
+
withFiles: s.f("withFiles", S.option(S.bool))
|
|
480
480
|
}));
|
|
481
481
|
|
|
482
482
|
let postNotesUserListTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -496,8 +496,8 @@ function postPromoRead(body, fetch) {
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
let getUsersFeaturedNotesRequestSchema = S.object(s => ({
|
|
499
|
-
limit: s.
|
|
500
|
-
untilId: s.
|
|
499
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
500
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
501
501
|
userId: s.f("userId", S.string)
|
|
502
502
|
}));
|
|
503
503
|
|
|
@@ -509,8 +509,8 @@ function getUsersFeaturedNotes(body, fetch) {
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
let postUsersFeaturedNotesRequestSchema = S.object(s => ({
|
|
512
|
-
limit: s.
|
|
513
|
-
untilId: s.
|
|
512
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
513
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
514
514
|
userId: s.f("userId", S.string)
|
|
515
515
|
}));
|
|
516
516
|
|
|
@@ -6,8 +6,8 @@ S.enableJson();
|
|
|
6
6
|
|
|
7
7
|
let postNotificationsCreateRequestSchema = S.object(s => ({
|
|
8
8
|
body: s.f("body", S.string),
|
|
9
|
-
header: s.
|
|
10
|
-
icon: s.
|
|
9
|
+
header: s.f("header", S.option(S.string)),
|
|
10
|
+
icon: s.f("icon", S.option(S.string))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
function postNotificationsCreate(body, fetch) {
|
|
@@ -8,15 +8,15 @@ S.enableJson();
|
|
|
8
8
|
let postPagesCreateRequestSchema = S.object(s => ({
|
|
9
9
|
title: s.f("title", S.string),
|
|
10
10
|
name: s.f("name", S.pattern(S.min(S.string, 1, undefined), /^[a-zA-Z0-9_-]+$/, undefined)),
|
|
11
|
-
summary: s.
|
|
11
|
+
summary: s.f("summary", S.option(S.string)),
|
|
12
12
|
content: s.f("content", S.array(S.dict(S.json))),
|
|
13
13
|
variables: s.f("variables", S.array(S.dict(S.json))),
|
|
14
14
|
script: s.f("script", S.string),
|
|
15
|
-
eyeCatchingImageId: s.
|
|
16
|
-
font: s.
|
|
17
|
-
alignCenter: s.
|
|
18
|
-
hideTitleWhenPinned: s.
|
|
19
|
-
visibility: s.
|
|
15
|
+
eyeCatchingImageId: s.f("eyeCatchingImageId", S.option(S.string)),
|
|
16
|
+
font: s.f("font", S.option(S.string)),
|
|
17
|
+
alignCenter: s.f("alignCenter", S.option(S.bool)),
|
|
18
|
+
hideTitleWhenPinned: s.f("hideTitleWhenPinned", S.option(S.bool)),
|
|
19
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
20
20
|
}));
|
|
21
21
|
|
|
22
22
|
let postPagesCreateResponseSchema = MisskeyIoComponentSchemas.Page.schema;
|
|
@@ -51,9 +51,9 @@ function postPagesLike(body, fetch) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
let postPagesShowRequestSchema = S.object(s => ({
|
|
54
|
-
pageId: s.
|
|
55
|
-
name: s.
|
|
56
|
-
username: s.
|
|
54
|
+
pageId: s.f("pageId", S.option(S.string)),
|
|
55
|
+
name: s.f("name", S.option(S.string)),
|
|
56
|
+
username: s.f("username", S.option(S.string))
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
let postPagesShowResponseSchema = MisskeyIoComponentSchemas.Page.schema;
|
|
@@ -74,17 +74,17 @@ function postPagesUnlike(body, fetch) {
|
|
|
74
74
|
|
|
75
75
|
let postPagesUpdateRequestSchema = S.object(s => ({
|
|
76
76
|
pageId: s.f("pageId", S.string),
|
|
77
|
-
title: s.
|
|
78
|
-
name: s.
|
|
79
|
-
summary: s.
|
|
77
|
+
title: s.f("title", S.option(S.string)),
|
|
78
|
+
name: s.f("name", S.option(S.pattern(S.min(S.string, 1, undefined), /^[a-zA-Z0-9_-]+$/, undefined))),
|
|
79
|
+
summary: s.f("summary", S.option(S.string)),
|
|
80
80
|
content: s.f("content", S.option(S.array(S.dict(S.json)))),
|
|
81
81
|
variables: s.f("variables", S.option(S.array(S.dict(S.json)))),
|
|
82
|
-
script: s.
|
|
83
|
-
eyeCatchingImageId: s.
|
|
84
|
-
font: s.
|
|
85
|
-
alignCenter: s.
|
|
86
|
-
hideTitleWhenPinned: s.
|
|
87
|
-
visibility: s.
|
|
82
|
+
script: s.f("script", S.option(S.string)),
|
|
83
|
+
eyeCatchingImageId: s.f("eyeCatchingImageId", S.option(S.string)),
|
|
84
|
+
font: s.f("font", S.option(S.string)),
|
|
85
|
+
alignCenter: s.f("alignCenter", S.option(S.bool)),
|
|
86
|
+
hideTitleWhenPinned: s.f("hideTitleWhenPinned", S.option(S.bool)),
|
|
87
|
+
visibility: s.f("visibility", S.option(S.string))
|
|
88
88
|
}));
|
|
89
89
|
|
|
90
90
|
function postPagesUpdate(body, fetch) {
|
|
@@ -13,12 +13,12 @@ function postRolesList(fetch) {
|
|
|
13
13
|
|
|
14
14
|
let postRolesNotesRequestSchema = S.object(s => ({
|
|
15
15
|
roleId: s.f("roleId", S.string),
|
|
16
|
-
limit: s.
|
|
17
|
-
sinceId: s.
|
|
18
|
-
untilId: s.
|
|
19
|
-
sinceDate: s.
|
|
20
|
-
untilDate: s.
|
|
21
|
-
dimension: s.
|
|
16
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
17
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
18
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
19
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
20
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
21
|
+
dimension: s.f("dimension", S.option(S.min(S.int, 0, undefined)))
|
|
22
22
|
}));
|
|
23
23
|
|
|
24
24
|
let postRolesNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -41,9 +41,9 @@ function postRolesShow(body, fetch) {
|
|
|
41
41
|
|
|
42
42
|
let postRolesUsersRequestSchema = S.object(s => ({
|
|
43
43
|
roleId: s.f("roleId", S.string),
|
|
44
|
-
sinceId: s.
|
|
45
|
-
untilId: s.
|
|
46
|
-
limit: s.
|
|
44
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
45
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
46
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
47
47
|
}));
|
|
48
48
|
|
|
49
49
|
let postRolesUsersResponse_1Schema = S.object(s => ({
|