@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
|
@@ -28,9 +28,9 @@ function postBlockingDelete(body, fetch) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
let postBlockingListRequestSchema = S.object(s => ({
|
|
31
|
-
limit: s.
|
|
32
|
-
sinceId: s.
|
|
33
|
-
untilId: 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
34
|
}));
|
|
35
35
|
|
|
36
36
|
let postBlockingListResponseSchema = S.array(MisskeyIoComponentSchemas.Blocking.schema);
|
|
@@ -58,9 +58,9 @@ function postClipsMyFavorites(fetch) {
|
|
|
58
58
|
|
|
59
59
|
let postClipsNotesRequestSchema = S.object(s => ({
|
|
60
60
|
clipId: s.f("clipId", S.string),
|
|
61
|
-
limit: s.
|
|
62
|
-
sinceId: s.
|
|
63
|
-
untilId: s.
|
|
61
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
62
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
63
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
64
64
|
}));
|
|
65
65
|
|
|
66
66
|
let postClipsNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -81,9 +81,9 @@ function postClipsRemoveNote(body, fetch) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
let postFlashMyRequestSchema = S.object(s => ({
|
|
84
|
-
limit: s.
|
|
85
|
-
sinceId: s.
|
|
86
|
-
untilId: s.
|
|
84
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
85
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
86
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
87
87
|
}));
|
|
88
88
|
|
|
89
89
|
let postFlashMyResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema);
|
|
@@ -94,9 +94,9 @@ function postFlashMy(body, fetch) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
let postFlashMyLikesRequestSchema = S.object(s => ({
|
|
97
|
-
limit: s.
|
|
98
|
-
sinceId: s.
|
|
99
|
-
untilId: s.
|
|
97
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
98
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
99
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
102
|
let postFlashMyLikesResponse_1Schema = S.object(s => ({
|
|
@@ -118,9 +118,9 @@ function postI(fetch) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
let postIFavoritesRequestSchema = S.object(s => ({
|
|
121
|
-
limit: s.
|
|
122
|
-
sinceId: s.
|
|
123
|
-
untilId: s.
|
|
121
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
122
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
123
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
124
124
|
}));
|
|
125
125
|
|
|
126
126
|
let postIFavoritesResponseSchema = S.array(MisskeyIoComponentSchemas.NoteFavorite.schema);
|
|
@@ -131,9 +131,9 @@ function postIFavorites(body, fetch) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
let postIGalleryLikesRequestSchema = S.object(s => ({
|
|
134
|
-
limit: s.
|
|
135
|
-
sinceId: s.
|
|
136
|
-
untilId: s.
|
|
134
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
135
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
136
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
137
137
|
}));
|
|
138
138
|
|
|
139
139
|
let postIGalleryLikesResponse_1Schema = S.object(s => ({
|
|
@@ -149,9 +149,9 @@ function postIGalleryLikes(body, fetch) {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
let postIGalleryPostsRequestSchema = S.object(s => ({
|
|
152
|
-
limit: s.
|
|
153
|
-
sinceId: s.
|
|
154
|
-
untilId: s.
|
|
152
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
153
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
154
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
155
155
|
}));
|
|
156
156
|
|
|
157
157
|
let postIGalleryPostsResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema);
|
|
@@ -162,12 +162,12 @@ function postIGalleryPosts(body, fetch) {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
let postINotificationsRequestSchema = S.object(s => ({
|
|
165
|
-
limit: s.
|
|
166
|
-
sinceId: s.
|
|
167
|
-
untilId: s.
|
|
168
|
-
markAsRead: s.
|
|
169
|
-
includeTypes: s.
|
|
170
|
-
excludeTypes: s.
|
|
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
|
+
markAsRead: s.f("markAsRead", S.option(S.bool)),
|
|
169
|
+
includeTypes: s.f("includeTypes", S.option(S.array(S.string))),
|
|
170
|
+
excludeTypes: s.f("excludeTypes", S.option(S.array(S.string)))
|
|
171
171
|
}));
|
|
172
172
|
|
|
173
173
|
let postINotificationsResponseSchema = S.array(MisskeyIoComponentSchemas.Notification.schema);
|
|
@@ -178,12 +178,12 @@ function postINotifications(body, fetch) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
let postINotificationsGroupedRequestSchema = S.object(s => ({
|
|
181
|
-
limit: s.
|
|
182
|
-
sinceId: s.
|
|
183
|
-
untilId: s.
|
|
184
|
-
markAsRead: s.
|
|
185
|
-
includeTypes: s.
|
|
186
|
-
excludeTypes: 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
|
+
markAsRead: s.f("markAsRead", S.option(S.bool)),
|
|
185
|
+
includeTypes: s.f("includeTypes", S.option(S.array(S.string))),
|
|
186
|
+
excludeTypes: s.f("excludeTypes", S.option(S.array(S.string)))
|
|
187
187
|
}));
|
|
188
188
|
|
|
189
189
|
let postINotificationsGroupedResponseSchema = S.array(MisskeyIoComponentSchemas.Notification.schema);
|
|
@@ -194,9 +194,9 @@ function postINotificationsGrouped(body, fetch) {
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
let postIPageLikesRequestSchema = S.object(s => ({
|
|
197
|
-
limit: s.
|
|
198
|
-
sinceId: s.
|
|
199
|
-
untilId: s.
|
|
197
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
198
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
199
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
200
200
|
}));
|
|
201
201
|
|
|
202
202
|
let postIPageLikesResponse_1Schema = S.object(s => ({
|
|
@@ -212,9 +212,9 @@ function postIPageLikes(body, fetch) {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
let postIPagesRequestSchema = S.object(s => ({
|
|
215
|
-
limit: s.
|
|
216
|
-
sinceId: s.
|
|
217
|
-
untilId: s.
|
|
215
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
216
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
217
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
218
218
|
}));
|
|
219
219
|
|
|
220
220
|
let postIPagesResponseSchema = S.array(MisskeyIoComponentSchemas.Page.schema);
|
|
@@ -237,8 +237,8 @@ function postIPin(body, fetch) {
|
|
|
237
237
|
|
|
238
238
|
let postIPurgeTimelineCacheRequestSchema = S.object(s => ({
|
|
239
239
|
type: s.f("type", S.string),
|
|
240
|
-
listId: s.
|
|
241
|
-
antennaId: s.
|
|
240
|
+
listId: s.f("listId", S.option(S.string)),
|
|
241
|
+
antennaId: s.f("antennaId", S.option(S.string))
|
|
242
242
|
}));
|
|
243
243
|
|
|
244
244
|
function postIPurgeTimelineCache(body, fetch) {
|
|
@@ -269,11 +269,11 @@ function postIUnpin(body, fetch) {
|
|
|
269
269
|
let postIUpdateRequest_5Schema = S.object(s => ({
|
|
270
270
|
url: s.f("url", S.string),
|
|
271
271
|
fileId: s.f("fileId", S.string),
|
|
272
|
-
description: s.
|
|
272
|
+
description: s.f("description", S.option(S.string))
|
|
273
273
|
}));
|
|
274
274
|
|
|
275
275
|
let postIUpdateRequest_4Schema = S.object(s => ({
|
|
276
|
-
name: s.
|
|
276
|
+
name: s.f("name", S.option(S.string)),
|
|
277
277
|
mutualLinks: s.f("mutualLinks", S.array(postIUpdateRequest_5Schema))
|
|
278
278
|
}));
|
|
279
279
|
|
|
@@ -302,54 +302,54 @@ let postIUpdateRequest_2Schema = S.object(s => ({
|
|
|
302
302
|
|
|
303
303
|
let postIUpdateRequest_1Schema = S.object(s => ({
|
|
304
304
|
id: s.f("id", S.string),
|
|
305
|
-
angle: s.
|
|
306
|
-
flipH: s.
|
|
307
|
-
offsetX: s.
|
|
308
|
-
offsetY: s.
|
|
305
|
+
angle: s.f("angle", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined))),
|
|
306
|
+
flipH: s.f("flipH", S.option(S.bool)),
|
|
307
|
+
offsetX: s.f("offsetX", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined))),
|
|
308
|
+
offsetY: s.f("offsetY", S.option(S.max(S.min(S.float, 0, undefined), 0, undefined)))
|
|
309
309
|
}));
|
|
310
310
|
|
|
311
311
|
let postIUpdateRequestSchema = S.object(s => ({
|
|
312
|
-
name: s.
|
|
313
|
-
description: s.
|
|
314
|
-
followedMessage: s.
|
|
315
|
-
location: s.
|
|
316
|
-
birthday: s.
|
|
317
|
-
lang: s.
|
|
318
|
-
postingLang: s.
|
|
319
|
-
viewingLangs: s.
|
|
320
|
-
showMediaInAllLanguages: s.
|
|
321
|
-
showHashtagsInAllLanguages: s.
|
|
322
|
-
avatarId: s.
|
|
323
|
-
avatarDecorations: s.
|
|
324
|
-
bannerId: s.
|
|
325
|
-
fields: s.
|
|
326
|
-
isLocked: s.
|
|
327
|
-
isExplorable: s.
|
|
328
|
-
hideOnlineStatus: s.
|
|
329
|
-
publicReactions: s.
|
|
330
|
-
carefulBot: s.
|
|
331
|
-
autoAcceptFollowed: s.
|
|
332
|
-
noCrawle: s.
|
|
333
|
-
preventAiLearning: s.
|
|
334
|
-
requireSigninToViewContents: s.
|
|
335
|
-
makeNotesFollowersOnlyBefore: s.
|
|
336
|
-
makeNotesHiddenBefore: s.
|
|
337
|
-
isBot: s.
|
|
338
|
-
isCat: s.
|
|
339
|
-
injectFeaturedNote: s.
|
|
340
|
-
receiveAnnouncementEmail: s.
|
|
341
|
-
alwaysMarkNsfw: s.
|
|
342
|
-
autoSensitive: s.
|
|
343
|
-
followingVisibility: s.
|
|
344
|
-
followersVisibility: s.
|
|
345
|
-
chatScope: s.
|
|
346
|
-
pinnedPageId: s.
|
|
347
|
-
mutedWords: s.
|
|
348
|
-
mutedInstances: s.
|
|
349
|
-
notificationRecieveConfig: s.
|
|
350
|
-
emailNotificationTypes: s.
|
|
351
|
-
alsoKnownAs: s.
|
|
352
|
-
mutualLinkSections: s.
|
|
312
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
313
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 1500, undefined))),
|
|
314
|
+
followedMessage: s.f("followedMessage", S.option(S.max(S.min(S.string, 1, undefined), 256, undefined))),
|
|
315
|
+
location: s.f("location", S.option(S.max(S.min(S.string, 1, undefined), 50, undefined))),
|
|
316
|
+
birthday: s.f("birthday", S.option(S.pattern(S.string, /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/, undefined))),
|
|
317
|
+
lang: s.f("lang", S.option(S.string)),
|
|
318
|
+
postingLang: s.f("postingLang", S.option(S.string)),
|
|
319
|
+
viewingLangs: s.f("viewingLangs", S.option(S.array(S.string))),
|
|
320
|
+
showMediaInAllLanguages: s.f("showMediaInAllLanguages", S.option(S.bool)),
|
|
321
|
+
showHashtagsInAllLanguages: s.f("showHashtagsInAllLanguages", S.option(S.bool)),
|
|
322
|
+
avatarId: s.f("avatarId", S.option(S.string)),
|
|
323
|
+
avatarDecorations: s.f("avatarDecorations", S.option(S.array(postIUpdateRequest_1Schema))),
|
|
324
|
+
bannerId: s.f("bannerId", S.option(S.string)),
|
|
325
|
+
fields: s.f("fields", S.option(S.array(postIUpdateRequest_2Schema))),
|
|
326
|
+
isLocked: s.f("isLocked", S.option(S.bool)),
|
|
327
|
+
isExplorable: s.f("isExplorable", S.option(S.bool)),
|
|
328
|
+
hideOnlineStatus: s.f("hideOnlineStatus", S.option(S.bool)),
|
|
329
|
+
publicReactions: s.f("publicReactions", S.option(S.bool)),
|
|
330
|
+
carefulBot: s.f("carefulBot", S.option(S.bool)),
|
|
331
|
+
autoAcceptFollowed: s.f("autoAcceptFollowed", S.option(S.bool)),
|
|
332
|
+
noCrawle: s.f("noCrawle", S.option(S.bool)),
|
|
333
|
+
preventAiLearning: s.f("preventAiLearning", S.option(S.bool)),
|
|
334
|
+
requireSigninToViewContents: s.f("requireSigninToViewContents", S.option(S.bool)),
|
|
335
|
+
makeNotesFollowersOnlyBefore: s.f("makeNotesFollowersOnlyBefore", S.option(S.int)),
|
|
336
|
+
makeNotesHiddenBefore: s.f("makeNotesHiddenBefore", S.option(S.int)),
|
|
337
|
+
isBot: s.f("isBot", S.option(S.bool)),
|
|
338
|
+
isCat: s.f("isCat", S.option(S.bool)),
|
|
339
|
+
injectFeaturedNote: s.f("injectFeaturedNote", S.option(S.bool)),
|
|
340
|
+
receiveAnnouncementEmail: s.f("receiveAnnouncementEmail", S.option(S.bool)),
|
|
341
|
+
alwaysMarkNsfw: s.f("alwaysMarkNsfw", S.option(S.bool)),
|
|
342
|
+
autoSensitive: s.f("autoSensitive", S.option(S.bool)),
|
|
343
|
+
followingVisibility: s.f("followingVisibility", S.option(S.string)),
|
|
344
|
+
followersVisibility: s.f("followersVisibility", S.option(S.string)),
|
|
345
|
+
chatScope: s.f("chatScope", S.option(S.string)),
|
|
346
|
+
pinnedPageId: s.f("pinnedPageId", S.option(S.string)),
|
|
347
|
+
mutedWords: s.f("mutedWords", S.option(S.array(S.array(S.string)))),
|
|
348
|
+
mutedInstances: s.f("mutedInstances", S.option(S.array(S.string))),
|
|
349
|
+
notificationRecieveConfig: s.f("notificationRecieveConfig", S.option(postIUpdateRequest_3Schema)),
|
|
350
|
+
emailNotificationTypes: s.f("emailNotificationTypes", S.option(S.array(S.string))),
|
|
351
|
+
alsoKnownAs: s.f("alsoKnownAs", S.option(S.array(S.string))),
|
|
352
|
+
mutualLinkSections: s.f("mutualLinkSections", S.option(S.array(postIUpdateRequest_4Schema)))
|
|
353
353
|
}));
|
|
354
354
|
|
|
355
355
|
let postIUpdateResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema;
|
|
@@ -361,7 +361,7 @@ function postIUpdate(body, fetch) {
|
|
|
361
361
|
|
|
362
362
|
let postMuteCreateRequestSchema = S.object(s => ({
|
|
363
363
|
userId: s.f("userId", S.string),
|
|
364
|
-
expiresAt: s.
|
|
364
|
+
expiresAt: s.f("expiresAt", S.option(S.int))
|
|
365
365
|
}));
|
|
366
366
|
|
|
367
367
|
function postMuteCreate(body, fetch) {
|
|
@@ -379,9 +379,9 @@ function postMuteDelete(body, fetch) {
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
let postMuteListRequestSchema = S.object(s => ({
|
|
382
|
-
limit: s.
|
|
383
|
-
sinceId: s.
|
|
384
|
-
untilId: s.
|
|
382
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
383
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
384
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
385
385
|
}));
|
|
386
386
|
|
|
387
387
|
let postMuteListResponseSchema = S.array(MisskeyIoComponentSchemas.Muting.schema);
|
|
@@ -392,8 +392,8 @@ function postMuteList(body, fetch) {
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
let postMyAppsRequestSchema = S.object(s => ({
|
|
395
|
-
limit: s.
|
|
396
|
-
offset: s.
|
|
395
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
396
|
+
offset: s.f("offset", S.option(S.int))
|
|
397
397
|
}));
|
|
398
398
|
|
|
399
399
|
let postMyAppsResponseSchema = S.array(MisskeyIoComponentSchemas.App.schema);
|
|
@@ -422,9 +422,9 @@ function postRenoteMuteDelete(body, fetch) {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
let postRenoteMuteListRequestSchema = S.object(s => ({
|
|
425
|
-
limit: s.
|
|
426
|
-
sinceId: s.
|
|
427
|
-
untilId: s.
|
|
425
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
426
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
427
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
428
428
|
}));
|
|
429
429
|
|
|
430
430
|
let postRenoteMuteListResponseSchema = S.array(MisskeyIoComponentSchemas.RenoteMuting.schema);
|
|
@@ -438,11 +438,11 @@ let postSwRegisterRequestSchema = S.object(s => ({
|
|
|
438
438
|
endpoint: s.f("endpoint", S.string),
|
|
439
439
|
auth: s.f("auth", S.string),
|
|
440
440
|
publickey: s.f("publickey", S.string),
|
|
441
|
-
sendReadMessage: s.
|
|
441
|
+
sendReadMessage: s.f("sendReadMessage", S.option(S.bool))
|
|
442
442
|
}));
|
|
443
443
|
|
|
444
444
|
let postSwRegisterResponseSchema = S.object(s => ({
|
|
445
|
-
state: s.
|
|
445
|
+
state: s.f("state", S.option(S.string)),
|
|
446
446
|
key: s.f("key", S.nullableAsOption(S.string)),
|
|
447
447
|
userId: s.f("userId", S.string),
|
|
448
448
|
endpoint: s.f("endpoint", S.string),
|
|
@@ -482,7 +482,7 @@ function postSwUnregister(body, fetch) {
|
|
|
482
482
|
|
|
483
483
|
let postSwUpdateRegistrationRequestSchema = S.object(s => ({
|
|
484
484
|
endpoint: s.f("endpoint", S.string),
|
|
485
|
-
sendReadMessage: s.
|
|
485
|
+
sendReadMessage: s.f("sendReadMessage", S.option(S.bool))
|
|
486
486
|
}));
|
|
487
487
|
|
|
488
488
|
let postSwUpdateRegistrationResponseSchema = S.object(s => ({
|