@f3liz/rescript-misskey-api 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +141 -141
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +328 -328
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +1 -1
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +29 -29
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +4 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +47 -47
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.mjs +174 -174
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +18 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +44 -44
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +31 -31
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +6 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +13 -13
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +11 -11
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +3 -3
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +8 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +14 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +251 -251
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +15 -15
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +10 -10
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +51 -51
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +6 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +115 -115
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +377 -377
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +21 -21
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +1 -1
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +3 -3
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +23 -23
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +48 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +5 -5
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoComponentSchemas.mjs +148 -148
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +44 -44
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +39 -39
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +33 -33
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +11 -11
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +85 -85
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +147 -147
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +2 -2
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +20 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +9 -9
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +69 -69
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +12 -12
- package/package.json +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +141 -141
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +328 -328
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +1 -1
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +29 -29
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +4 -4
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +47 -47
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkComponentSchemas.res +174 -174
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +44 -44
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +31 -31
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +6 -6
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +13 -13
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +11 -11
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +3 -3
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +8 -8
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +14 -14
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +251 -251
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +15 -15
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +10 -10
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +51 -51
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +6 -6
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +115 -115
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +376 -376
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +21 -21
- package/src/generated/misskey-io/api/MisskeyIoApp.res +1 -1
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +3 -3
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +23 -23
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +48 -48
- package/src/generated/misskey-io/api/MisskeyIoClips.res +5 -5
- package/src/generated/misskey-io/api/MisskeyIoComponentSchemas.res +148 -148
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +44 -44
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +39 -39
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +33 -33
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +11 -11
- package/src/generated/misskey-io/api/MisskeyIoLists.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +85 -85
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +8 -8
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +147 -147
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +2 -2
- package/src/generated/misskey-io/api/MisskeyIoPages.res +20 -20
- package/src/generated/misskey-io/api/MisskeyIoRole.res +9 -9
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +69 -69
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +12 -12
|
@@ -28,11 +28,11 @@ function postBlockingDelete(body, fetch) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
let postBlockingListRequestSchema = S.object(s => ({
|
|
31
|
-
limit: s.
|
|
32
|
-
sinceId: s.
|
|
33
|
-
untilId: s.
|
|
34
|
-
sinceDate: s.
|
|
35
|
-
untilDate: s.
|
|
31
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
32
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
33
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
34
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
35
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
36
36
|
}));
|
|
37
37
|
|
|
38
38
|
let postBlockingListResponseSchema = S.array(KokonectLinkComponentSchemas.Blocking.schema);
|
|
@@ -44,12 +44,12 @@ function postBlockingList(body, fetch) {
|
|
|
44
44
|
|
|
45
45
|
let postClipsNotesRequestSchema = S.object(s => ({
|
|
46
46
|
clipId: s.f("clipId", S.string),
|
|
47
|
-
limit: s.
|
|
48
|
-
sinceId: s.
|
|
49
|
-
untilId: s.
|
|
50
|
-
sinceDate: s.
|
|
51
|
-
untilDate: s.
|
|
52
|
-
search: s.
|
|
47
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
48
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
49
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
50
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
51
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
52
|
+
search: s.f("search", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined)))
|
|
53
53
|
}));
|
|
54
54
|
|
|
55
55
|
let postClipsNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -60,11 +60,11 @@ function postClipsNotes(body, fetch) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
let postFlashMyRequestSchema = S.object(s => ({
|
|
63
|
-
limit: s.
|
|
64
|
-
sinceId: s.
|
|
65
|
-
untilId: s.
|
|
66
|
-
sinceDate: s.
|
|
67
|
-
untilDate: s.
|
|
63
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
64
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
65
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
66
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
67
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
68
68
|
}));
|
|
69
69
|
|
|
70
70
|
let postFlashMyResponseSchema = S.array(KokonectLinkComponentSchemas.Flash.schema);
|
|
@@ -75,12 +75,12 @@ function postFlashMy(body, fetch) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
let postFlashMyLikesRequestSchema = S.object(s => ({
|
|
78
|
-
limit: s.
|
|
79
|
-
sinceId: s.
|
|
80
|
-
untilId: s.
|
|
81
|
-
sinceDate: s.
|
|
82
|
-
untilDate: s.
|
|
83
|
-
search: s.
|
|
78
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
79
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
80
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
81
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
82
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
83
|
+
search: s.f("search", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined)))
|
|
84
84
|
}));
|
|
85
85
|
|
|
86
86
|
let postFlashMyLikesResponse_1Schema = S.object(s => ({
|
|
@@ -111,11 +111,11 @@ function postIAutoDeleteSettings(fetch) {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
let postIFavoritesRequestSchema = S.object(s => ({
|
|
114
|
-
limit: s.
|
|
115
|
-
sinceId: s.
|
|
116
|
-
untilId: s.
|
|
117
|
-
sinceDate: s.
|
|
118
|
-
untilDate: s.
|
|
114
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
115
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
116
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
117
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
118
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
119
119
|
}));
|
|
120
120
|
|
|
121
121
|
let postIFavoritesResponseSchema = S.array(KokonectLinkComponentSchemas.NoteFavorite.schema);
|
|
@@ -140,11 +140,11 @@ function postIFollowersServers(fetch) {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
let postIGalleryLikesRequestSchema = S.object(s => ({
|
|
143
|
-
limit: s.
|
|
144
|
-
sinceId: s.
|
|
145
|
-
untilId: s.
|
|
146
|
-
sinceDate: s.
|
|
147
|
-
untilDate: s.
|
|
143
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
144
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
145
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
146
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
147
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
148
148
|
}));
|
|
149
149
|
|
|
150
150
|
let postIGalleryLikesResponse_1Schema = S.object(s => ({
|
|
@@ -160,11 +160,11 @@ function postIGalleryLikes(body, fetch) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
let postIGalleryPostsRequestSchema = S.object(s => ({
|
|
163
|
-
limit: s.
|
|
164
|
-
sinceId: s.
|
|
165
|
-
untilId: s.
|
|
166
|
-
sinceDate: s.
|
|
167
|
-
untilDate: s.
|
|
163
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
164
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
165
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
166
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
167
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
168
168
|
}));
|
|
169
169
|
|
|
170
170
|
let postIGalleryPostsResponseSchema = S.array(KokonectLinkComponentSchemas.GalleryPost.schema);
|
|
@@ -175,14 +175,14 @@ function postIGalleryPosts(body, fetch) {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
let postINotificationsRequestSchema = S.object(s => ({
|
|
178
|
-
limit: s.
|
|
179
|
-
sinceId: s.
|
|
180
|
-
untilId: s.
|
|
181
|
-
sinceDate: s.
|
|
182
|
-
untilDate: s.
|
|
183
|
-
markAsRead: s.
|
|
184
|
-
includeTypes: s.
|
|
185
|
-
excludeTypes: s.
|
|
178
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
179
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
180
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
181
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
182
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
183
|
+
markAsRead: s.f("markAsRead", S.option(S.bool)),
|
|
184
|
+
includeTypes: s.f("includeTypes", S.option(S.array(S.string))),
|
|
185
|
+
excludeTypes: s.f("excludeTypes", S.option(S.array(S.string)))
|
|
186
186
|
}));
|
|
187
187
|
|
|
188
188
|
let postINotificationsResponseSchema = S.array(KokonectLinkComponentSchemas.Notification.schema);
|
|
@@ -193,14 +193,14 @@ function postINotifications(body, fetch) {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
let postINotificationsGroupedRequestSchema = S.object(s => ({
|
|
196
|
-
limit: s.
|
|
197
|
-
sinceId: s.
|
|
198
|
-
untilId: s.
|
|
199
|
-
sinceDate: s.
|
|
200
|
-
untilDate: s.
|
|
201
|
-
markAsRead: s.
|
|
202
|
-
includeTypes: s.
|
|
203
|
-
excludeTypes: s.
|
|
196
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
197
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
198
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
199
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
200
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
201
|
+
markAsRead: s.f("markAsRead", S.option(S.bool)),
|
|
202
|
+
includeTypes: s.f("includeTypes", S.option(S.array(S.string))),
|
|
203
|
+
excludeTypes: s.f("excludeTypes", S.option(S.array(S.string)))
|
|
204
204
|
}));
|
|
205
205
|
|
|
206
206
|
let postINotificationsGroupedResponseSchema = S.array(KokonectLinkComponentSchemas.Notification.schema);
|
|
@@ -211,11 +211,11 @@ function postINotificationsGrouped(body, fetch) {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
let postIPageLikesRequestSchema = S.object(s => ({
|
|
214
|
-
limit: s.
|
|
215
|
-
sinceId: s.
|
|
216
|
-
untilId: s.
|
|
217
|
-
sinceDate: s.
|
|
218
|
-
untilDate: s.
|
|
214
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
215
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
216
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
217
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
218
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
219
219
|
}));
|
|
220
220
|
|
|
221
221
|
let postIPageLikesResponse_1Schema = S.object(s => ({
|
|
@@ -231,11 +231,11 @@ function postIPageLikes(body, fetch) {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
let postIPagesRequestSchema = S.object(s => ({
|
|
234
|
-
limit: s.
|
|
235
|
-
sinceId: s.
|
|
236
|
-
untilId: s.
|
|
237
|
-
sinceDate: s.
|
|
238
|
-
untilDate: s.
|
|
234
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
235
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
236
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
237
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
238
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
239
239
|
}));
|
|
240
240
|
|
|
241
241
|
let postIPagesResponseSchema = S.array(KokonectLinkComponentSchemas.Page.schema);
|
|
@@ -268,24 +268,24 @@ function postIUnpin(body, fetch) {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
let postIUpdateRequest_3Schema = S.object(s => ({
|
|
271
|
-
note: s.
|
|
272
|
-
follow: s.
|
|
273
|
-
mention: s.
|
|
274
|
-
reply: s.
|
|
275
|
-
renote: s.
|
|
276
|
-
quote: s.
|
|
277
|
-
reaction: s.
|
|
278
|
-
pollEnded: s.
|
|
279
|
-
scheduledNotePosted: s.
|
|
280
|
-
scheduledNotePostFailed: s.
|
|
281
|
-
receiveFollowRequest: s.
|
|
282
|
-
followRequestAccepted: s.
|
|
283
|
-
groupInvited: s.
|
|
284
|
-
roleAssigned: s.
|
|
285
|
-
chatRoomInvitationReceived: s.
|
|
286
|
-
achievementEarned: s.
|
|
287
|
-
app: s.
|
|
288
|
-
test: s.
|
|
271
|
+
note: s.f("note", S.option(S.dict(S.json))),
|
|
272
|
+
follow: s.f("follow", S.option(S.dict(S.json))),
|
|
273
|
+
mention: s.f("mention", S.option(S.dict(S.json))),
|
|
274
|
+
reply: s.f("reply", S.option(S.dict(S.json))),
|
|
275
|
+
renote: s.f("renote", S.option(S.dict(S.json))),
|
|
276
|
+
quote: s.f("quote", S.option(S.dict(S.json))),
|
|
277
|
+
reaction: s.f("reaction", S.option(S.dict(S.json))),
|
|
278
|
+
pollEnded: s.f("pollEnded", S.option(S.dict(S.json))),
|
|
279
|
+
scheduledNotePosted: s.f("scheduledNotePosted", S.option(S.dict(S.json))),
|
|
280
|
+
scheduledNotePostFailed: s.f("scheduledNotePostFailed", S.option(S.dict(S.json))),
|
|
281
|
+
receiveFollowRequest: s.f("receiveFollowRequest", S.option(S.dict(S.json))),
|
|
282
|
+
followRequestAccepted: s.f("followRequestAccepted", S.option(S.dict(S.json))),
|
|
283
|
+
groupInvited: s.f("groupInvited", S.option(S.dict(S.json))),
|
|
284
|
+
roleAssigned: s.f("roleAssigned", S.option(S.dict(S.json))),
|
|
285
|
+
chatRoomInvitationReceived: s.f("chatRoomInvitationReceived", S.option(S.dict(S.json))),
|
|
286
|
+
achievementEarned: s.f("achievementEarned", S.option(S.dict(S.json))),
|
|
287
|
+
app: s.f("app", S.option(S.dict(S.json))),
|
|
288
|
+
test: s.f("test", S.option(S.dict(S.json)))
|
|
289
289
|
}));
|
|
290
290
|
|
|
291
291
|
let postIUpdateRequest_2Schema = S.object(s => ({
|
|
@@ -295,54 +295,54 @@ let postIUpdateRequest_2Schema = S.object(s => ({
|
|
|
295
295
|
|
|
296
296
|
let postIUpdateRequest_1Schema = S.object(s => ({
|
|
297
297
|
id: s.f("id", S.string),
|
|
298
|
-
angle: s.
|
|
299
|
-
flipH: s.
|
|
300
|
-
offsetX: s.
|
|
301
|
-
offsetY: s.
|
|
302
|
-
scale: s.
|
|
303
|
-
opacity: s.
|
|
298
|
+
angle: s.f("angle", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined))),
|
|
299
|
+
flipH: s.f("flipH", S.option(S.bool)),
|
|
300
|
+
offsetX: s.f("offsetX", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined))),
|
|
301
|
+
offsetY: s.f("offsetY", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined))),
|
|
302
|
+
scale: s.f("scale", S.option(S.max(S.min(S.float, 0, undefined), 1, undefined))),
|
|
303
|
+
opacity: s.f("opacity", S.option(S.max(S.min(S.float, 0, undefined), 1, undefined)))
|
|
304
304
|
}));
|
|
305
305
|
|
|
306
306
|
let postIUpdateRequestSchema = S.object(s => ({
|
|
307
|
-
name: s.
|
|
308
|
-
description: s.
|
|
309
|
-
followedMessage: s.
|
|
310
|
-
location: s.
|
|
311
|
-
birthday: s.
|
|
312
|
-
lang: s.
|
|
313
|
-
avatarId: s.
|
|
314
|
-
avatarDecorations: s.
|
|
315
|
-
bannerId: s.
|
|
316
|
-
fields: s.
|
|
317
|
-
isLocked: s.
|
|
318
|
-
isExplorable: s.
|
|
319
|
-
hideOnlineStatus: s.
|
|
320
|
-
publicReactions: s.
|
|
321
|
-
carefulBot: s.
|
|
322
|
-
autoAcceptFollowed: s.
|
|
323
|
-
noCrawle: s.
|
|
324
|
-
preventAiLearning: s.
|
|
325
|
-
requireSigninToViewContents: s.
|
|
326
|
-
makeNotesFollowersOnlyBefore: s.
|
|
327
|
-
makeNotesHiddenBefore: s.
|
|
328
|
-
isBot: s.
|
|
329
|
-
isCat: s.
|
|
330
|
-
injectFeaturedNote: s.
|
|
331
|
-
receiveAnnouncementEmail: s.
|
|
332
|
-
alwaysMarkNsfw: s.
|
|
333
|
-
autoSensitive: s.
|
|
334
|
-
followingVisibility: s.
|
|
335
|
-
followersVisibility: s.
|
|
336
|
-
chatScope: s.
|
|
337
|
-
pinnedPageId: s.
|
|
338
|
-
mutedWords: s.
|
|
339
|
-
hardMutedWords: s.
|
|
340
|
-
mutedInstances: s.
|
|
341
|
-
notificationRecieveConfig: s.
|
|
342
|
-
emailNotificationTypes: s.
|
|
343
|
-
alsoKnownAs: s.
|
|
344
|
-
setFederationAvatarShape: s.
|
|
345
|
-
isSquareAvatars: s.
|
|
307
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
308
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 1500, undefined))),
|
|
309
|
+
followedMessage: s.f("followedMessage", S.option(S.max(S.min(S.string, 1, undefined), 256, undefined))),
|
|
310
|
+
location: s.f("location", S.option(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
311
|
+
birthday: s.f("birthday", S.option(S.pattern(S.string, /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/, undefined))),
|
|
312
|
+
lang: s.f("lang", S.option(S.string)),
|
|
313
|
+
avatarId: s.f("avatarId", S.option(S.string)),
|
|
314
|
+
avatarDecorations: s.f("avatarDecorations", S.option(S.array(postIUpdateRequest_1Schema))),
|
|
315
|
+
bannerId: s.f("bannerId", S.option(S.string)),
|
|
316
|
+
fields: s.f("fields", S.option(S.array(postIUpdateRequest_2Schema))),
|
|
317
|
+
isLocked: s.f("isLocked", S.option(S.bool)),
|
|
318
|
+
isExplorable: s.f("isExplorable", S.option(S.bool)),
|
|
319
|
+
hideOnlineStatus: s.f("hideOnlineStatus", S.option(S.bool)),
|
|
320
|
+
publicReactions: s.f("publicReactions", S.option(S.bool)),
|
|
321
|
+
carefulBot: s.f("carefulBot", S.option(S.bool)),
|
|
322
|
+
autoAcceptFollowed: s.f("autoAcceptFollowed", S.option(S.bool)),
|
|
323
|
+
noCrawle: s.f("noCrawle", S.option(S.bool)),
|
|
324
|
+
preventAiLearning: s.f("preventAiLearning", S.option(S.bool)),
|
|
325
|
+
requireSigninToViewContents: s.f("requireSigninToViewContents", S.option(S.bool)),
|
|
326
|
+
makeNotesFollowersOnlyBefore: s.f("makeNotesFollowersOnlyBefore", S.option(S.int)),
|
|
327
|
+
makeNotesHiddenBefore: s.f("makeNotesHiddenBefore", S.option(S.int)),
|
|
328
|
+
isBot: s.f("isBot", S.option(S.bool)),
|
|
329
|
+
isCat: s.f("isCat", S.option(S.bool)),
|
|
330
|
+
injectFeaturedNote: s.f("injectFeaturedNote", S.option(S.bool)),
|
|
331
|
+
receiveAnnouncementEmail: s.f("receiveAnnouncementEmail", S.option(S.bool)),
|
|
332
|
+
alwaysMarkNsfw: s.f("alwaysMarkNsfw", S.option(S.bool)),
|
|
333
|
+
autoSensitive: s.f("autoSensitive", S.option(S.bool)),
|
|
334
|
+
followingVisibility: s.f("followingVisibility", S.option(S.string)),
|
|
335
|
+
followersVisibility: s.f("followersVisibility", S.option(S.string)),
|
|
336
|
+
chatScope: s.f("chatScope", S.option(S.string)),
|
|
337
|
+
pinnedPageId: s.f("pinnedPageId", S.option(S.string)),
|
|
338
|
+
mutedWords: s.f("mutedWords", S.option(S.array(S.array(S.string)))),
|
|
339
|
+
hardMutedWords: s.f("hardMutedWords", S.option(S.array(S.array(S.string)))),
|
|
340
|
+
mutedInstances: s.f("mutedInstances", S.option(S.array(S.string))),
|
|
341
|
+
notificationRecieveConfig: s.f("notificationRecieveConfig", S.option(postIUpdateRequest_3Schema)),
|
|
342
|
+
emailNotificationTypes: s.f("emailNotificationTypes", S.option(S.array(S.string))),
|
|
343
|
+
alsoKnownAs: s.f("alsoKnownAs", S.option(S.array(S.string))),
|
|
344
|
+
setFederationAvatarShape: s.f("setFederationAvatarShape", S.option(S.bool)),
|
|
345
|
+
isSquareAvatars: s.f("isSquareAvatars", S.option(S.bool))
|
|
346
346
|
}));
|
|
347
347
|
|
|
348
348
|
let postIUpdateResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema;
|
|
@@ -353,8 +353,8 @@ function postIUpdate(body, fetch) {
|
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
let postIUpdateAutoDeleteSettingsRequestSchema = S.object(s => ({
|
|
356
|
-
autoDeleteNotesAfterDays: s.
|
|
357
|
-
autoDeleteKeepFavorites: s.
|
|
356
|
+
autoDeleteNotesAfterDays: s.f("autoDeleteNotesAfterDays", S.option(S.max(S.min(S.float, 1, undefined), 3650, undefined))),
|
|
357
|
+
autoDeleteKeepFavorites: s.f("autoDeleteKeepFavorites", S.option(S.bool))
|
|
358
358
|
}));
|
|
359
359
|
|
|
360
360
|
function postIUpdateAutoDeleteSettings(body, fetch) {
|
|
@@ -363,9 +363,9 @@ function postIUpdateAutoDeleteSettings(body, fetch) {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
let postIUserGroupInvitesRequestSchema = S.object(s => ({
|
|
366
|
-
limit: s.
|
|
367
|
-
sinceId: s.
|
|
368
|
-
untilId: s.
|
|
366
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
367
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
368
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
369
369
|
}));
|
|
370
370
|
|
|
371
371
|
let postIUserGroupInvitesResponse_1Schema = S.object(s => ({
|
|
@@ -381,11 +381,11 @@ function postIUserGroupInvites(body, fetch) {
|
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
let postMuteListRequestSchema = S.object(s => ({
|
|
384
|
-
limit: s.
|
|
385
|
-
sinceId: s.
|
|
386
|
-
untilId: s.
|
|
387
|
-
sinceDate: s.
|
|
388
|
-
untilDate: s.
|
|
384
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
385
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
386
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
387
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
388
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
389
389
|
}));
|
|
390
390
|
|
|
391
391
|
let postMuteListResponseSchema = S.array(KokonectLinkComponentSchemas.Muting.schema);
|
|
@@ -396,11 +396,11 @@ function postMuteList(body, fetch) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
let postRenoteMuteListRequestSchema = S.object(s => ({
|
|
399
|
-
limit: s.
|
|
400
|
-
sinceId: s.
|
|
401
|
-
untilId: s.
|
|
402
|
-
sinceDate: s.
|
|
403
|
-
untilDate: s.
|
|
399
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
400
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
401
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
402
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
403
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
404
404
|
}));
|
|
405
405
|
|
|
406
406
|
let postRenoteMuteListResponseSchema = S.array(KokonectLinkComponentSchemas.RenoteMuting.schema);
|