@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
|
@@ -88,12 +88,12 @@ function postUsernameAvailable(body, fetch) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
let postUsersRequestSchema = S.object(s => ({
|
|
91
|
-
limit: s.
|
|
92
|
-
offset: s.
|
|
93
|
-
sort: s.
|
|
94
|
-
state: s.
|
|
95
|
-
origin: s.
|
|
96
|
-
hostname: s.
|
|
91
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
92
|
+
offset: s.f("offset", S.option(S.int)),
|
|
93
|
+
sort: s.f("sort", S.option(S.string)),
|
|
94
|
+
state: s.f("state", S.option(S.string)),
|
|
95
|
+
origin: s.f("origin", S.option(S.string)),
|
|
96
|
+
hostname: s.f("hostname", S.option(S.string))
|
|
97
97
|
}));
|
|
98
98
|
|
|
99
99
|
let postUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema);
|
|
@@ -105,9 +105,9 @@ function postUsers(body, fetch) {
|
|
|
105
105
|
|
|
106
106
|
let postUsersClipsRequestSchema = S.object(s => ({
|
|
107
107
|
userId: s.f("userId", S.string),
|
|
108
|
-
limit: s.
|
|
109
|
-
sinceId: s.
|
|
110
|
-
untilId: s.
|
|
108
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
109
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
110
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
111
111
|
}));
|
|
112
112
|
|
|
113
113
|
let postUsersClipsResponseSchema = S.array(MisskeyIoComponentSchemas.Clip.schema);
|
|
@@ -119,9 +119,9 @@ function postUsersClips(body, fetch) {
|
|
|
119
119
|
|
|
120
120
|
let postUsersFlashsRequestSchema = S.object(s => ({
|
|
121
121
|
userId: s.f("userId", S.string),
|
|
122
|
-
limit: s.
|
|
123
|
-
sinceId: s.
|
|
124
|
-
untilId: s.
|
|
122
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
123
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
124
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
125
125
|
}));
|
|
126
126
|
|
|
127
127
|
let postUsersFlashsResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema);
|
|
@@ -132,12 +132,12 @@ function postUsersFlashs(body, fetch) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
let postUsersFollowersRequestSchema = S.object(s => ({
|
|
135
|
-
sinceId: s.
|
|
136
|
-
untilId: s.
|
|
137
|
-
limit: s.
|
|
138
|
-
userId: s.
|
|
139
|
-
username: s.
|
|
140
|
-
host: s.
|
|
135
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
136
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
137
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
138
|
+
userId: s.f("userId", S.option(S.string)),
|
|
139
|
+
username: s.f("username", S.option(S.string)),
|
|
140
|
+
host: s.f("host", S.option(S.string))
|
|
141
141
|
}));
|
|
142
142
|
|
|
143
143
|
let postUsersFollowersResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema);
|
|
@@ -148,13 +148,13 @@ function postUsersFollowers(body, fetch) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
let postUsersFollowingRequestSchema = S.object(s => ({
|
|
151
|
-
sinceId: s.
|
|
152
|
-
untilId: s.
|
|
153
|
-
limit: s.
|
|
154
|
-
userId: s.
|
|
155
|
-
username: s.
|
|
156
|
-
host: s.
|
|
157
|
-
birthday: s.
|
|
151
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
152
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
153
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
154
|
+
userId: s.f("userId", S.option(S.string)),
|
|
155
|
+
username: s.f("username", S.option(S.string)),
|
|
156
|
+
host: s.f("host", S.option(S.string)),
|
|
157
|
+
birthday: s.f("birthday", S.option(S.pattern(S.string, /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/, undefined)))
|
|
158
158
|
}));
|
|
159
159
|
|
|
160
160
|
let postUsersFollowingResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema);
|
|
@@ -166,9 +166,9 @@ function postUsersFollowing(body, fetch) {
|
|
|
166
166
|
|
|
167
167
|
let postUsersGalleryPostsRequestSchema = S.object(s => ({
|
|
168
168
|
userId: s.f("userId", S.string),
|
|
169
|
-
limit: s.
|
|
170
|
-
sinceId: s.
|
|
171
|
-
untilId: s.
|
|
169
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
170
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
171
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
172
172
|
}));
|
|
173
173
|
|
|
174
174
|
let postUsersGalleryPostsResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema);
|
|
@@ -184,15 +184,15 @@ let postUsersGetFollowingBirthdayUsersRequest_2Schema = S.object(s => ({
|
|
|
184
184
|
}));
|
|
185
185
|
|
|
186
186
|
let postUsersGetFollowingBirthdayUsersRequest_1Schema = S.object(s => ({
|
|
187
|
-
month: s.
|
|
188
|
-
day: s.
|
|
189
|
-
begin: s.
|
|
190
|
-
end: s.
|
|
187
|
+
month: s.f("month", S.option(S.max(S.min(S.int, 1, undefined), 12, undefined))),
|
|
188
|
+
day: s.f("day", S.option(S.max(S.min(S.int, 1, undefined), 31, undefined))),
|
|
189
|
+
begin: s.f("begin", S.option(postUsersGetFollowingBirthdayUsersRequest_2Schema)),
|
|
190
|
+
end: s.f("end", S.option(postUsersGetFollowingBirthdayUsersRequest_2Schema))
|
|
191
191
|
}));
|
|
192
192
|
|
|
193
193
|
let postUsersGetFollowingBirthdayUsersRequestSchema = S.object(s => ({
|
|
194
|
-
limit: s.
|
|
195
|
-
offset: s.
|
|
194
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
195
|
+
offset: s.f("offset", S.option(S.int)),
|
|
196
196
|
birthday: s.f("birthday", postUsersGetFollowingBirthdayUsersRequest_1Schema)
|
|
197
197
|
}));
|
|
198
198
|
|
|
@@ -210,7 +210,7 @@ function postUsersGetFollowingBirthdayUsers(body, fetch) {
|
|
|
210
210
|
|
|
211
211
|
let postUsersGetFrequentlyRepliedUsersRequestSchema = S.object(s => ({
|
|
212
212
|
userId: s.f("userId", S.string),
|
|
213
|
-
limit: s.
|
|
213
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
214
214
|
}));
|
|
215
215
|
|
|
216
216
|
let postUsersGetFrequentlyRepliedUsersResponse_1Schema = S.object(s => ({
|
|
@@ -289,16 +289,16 @@ function postUsersGetSkebStatus(body, fetch) {
|
|
|
289
289
|
|
|
290
290
|
let postUsersNotesRequestSchema = S.object(s => ({
|
|
291
291
|
userId: s.f("userId", S.string),
|
|
292
|
-
withReplies: s.
|
|
293
|
-
withRenotes: s.
|
|
294
|
-
withChannelNotes: s.
|
|
295
|
-
limit: s.
|
|
296
|
-
sinceId: s.
|
|
297
|
-
untilId: s.
|
|
298
|
-
sinceDate: s.
|
|
299
|
-
untilDate: s.
|
|
300
|
-
allowPartial: s.
|
|
301
|
-
withFiles: s.
|
|
292
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
293
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
294
|
+
withChannelNotes: s.f("withChannelNotes", S.option(S.bool)),
|
|
295
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
296
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
297
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
298
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
299
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
300
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
301
|
+
withFiles: s.f("withFiles", S.option(S.bool))
|
|
302
302
|
}));
|
|
303
303
|
|
|
304
304
|
let postUsersNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -310,9 +310,9 @@ function postUsersNotes(body, fetch) {
|
|
|
310
310
|
|
|
311
311
|
let postUsersPagesRequestSchema = S.object(s => ({
|
|
312
312
|
userId: s.f("userId", S.string),
|
|
313
|
-
limit: s.
|
|
314
|
-
sinceId: s.
|
|
315
|
-
untilId: s.
|
|
313
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
314
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
315
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
316
316
|
}));
|
|
317
317
|
|
|
318
318
|
let postUsersPagesResponseSchema = S.array(MisskeyIoComponentSchemas.Page.schema);
|
|
@@ -324,11 +324,11 @@ function postUsersPages(body, fetch) {
|
|
|
324
324
|
|
|
325
325
|
let postUsersReactionsRequestSchema = S.object(s => ({
|
|
326
326
|
userId: s.f("userId", S.string),
|
|
327
|
-
limit: s.
|
|
328
|
-
sinceId: s.
|
|
329
|
-
untilId: s.
|
|
330
|
-
sinceDate: s.
|
|
331
|
-
untilDate: s.
|
|
327
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
328
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
329
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
330
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
331
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
332
332
|
}));
|
|
333
333
|
|
|
334
334
|
let postUsersReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema);
|
|
@@ -339,8 +339,8 @@ function postUsersReactions(body, fetch) {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
let postUsersRecommendationRequestSchema = S.object(s => ({
|
|
342
|
-
limit: s.
|
|
343
|
-
offset: s.
|
|
342
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
343
|
+
offset: s.f("offset", S.option(S.int))
|
|
344
344
|
}));
|
|
345
345
|
|
|
346
346
|
let postUsersRecommendationResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema);
|
|
@@ -376,7 +376,7 @@ function postUsersRelation(body, fetch) {
|
|
|
376
376
|
let postUsersReportAbuseRequestSchema = S.object(s => ({
|
|
377
377
|
userId: s.f("userId", S.string),
|
|
378
378
|
comment: s.f("comment", S.max(S.min(S.string, 1, undefined), 2048, undefined)),
|
|
379
|
-
category: s.
|
|
379
|
+
category: s.f("category", S.option(S.string))
|
|
380
380
|
}));
|
|
381
381
|
|
|
382
382
|
function postUsersReportAbuse(body, fetch) {
|
|
@@ -386,10 +386,10 @@ function postUsersReportAbuse(body, fetch) {
|
|
|
386
386
|
|
|
387
387
|
let postUsersSearchRequestSchema = S.object(s => ({
|
|
388
388
|
query: s.f("query", S.string),
|
|
389
|
-
offset: s.
|
|
390
|
-
limit: s.
|
|
391
|
-
origin: s.
|
|
392
|
-
detail: s.
|
|
389
|
+
offset: s.f("offset", S.option(S.int)),
|
|
390
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
391
|
+
origin: s.f("origin", S.option(S.string)),
|
|
392
|
+
detail: s.f("detail", S.option(S.bool))
|
|
393
393
|
}));
|
|
394
394
|
|
|
395
395
|
let postUsersSearchResponseSchema = S.array(MisskeyIoComponentSchemas.User.schema);
|
|
@@ -400,10 +400,10 @@ function postUsersSearch(body, fetch) {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
let postUsersSearchByUsernameAndHostRequestSchema = S.object(s => ({
|
|
403
|
-
limit: s.
|
|
404
|
-
detail: s.
|
|
405
|
-
username: s.
|
|
406
|
-
host: s.
|
|
403
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
404
|
+
detail: s.f("detail", S.option(S.bool)),
|
|
405
|
+
username: s.f("username", S.option(S.string)),
|
|
406
|
+
host: s.f("host", S.option(S.string))
|
|
407
407
|
}));
|
|
408
408
|
|
|
409
409
|
let postUsersSearchByUsernameAndHostResponseSchema = S.array(MisskeyIoComponentSchemas.User.schema);
|
|
@@ -414,11 +414,11 @@ function postUsersSearchByUsernameAndHost(body, fetch) {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
let postUsersShowRequestSchema = S.object(s => ({
|
|
417
|
-
userId: s.
|
|
418
|
-
userIds: s.
|
|
419
|
-
username: s.
|
|
420
|
-
host: s.
|
|
421
|
-
detailed: s.
|
|
417
|
+
userId: s.f("userId", S.option(S.string)),
|
|
418
|
+
userIds: s.f("userIds", S.option(S.array(S.string))),
|
|
419
|
+
username: s.f("username", S.option(S.string)),
|
|
420
|
+
host: s.f("host", S.option(S.string)),
|
|
421
|
+
detailed: s.f("detailed", S.option(S.bool))
|
|
422
422
|
}));
|
|
423
423
|
|
|
424
424
|
let postUsersShowResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema);
|
|
@@ -5,14 +5,14 @@ import * as S from "sury/lib/es6/src/S.mjs";
|
|
|
5
5
|
S.enableJson();
|
|
6
6
|
|
|
7
7
|
let postAdminSystemWebhookTestRequest_1Schema = S.object(s => ({
|
|
8
|
-
url: s.
|
|
9
|
-
secret: s.
|
|
8
|
+
url: s.f("url", S.option(S.string)),
|
|
9
|
+
secret: s.f("secret", S.option(S.string))
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
12
|
let postAdminSystemWebhookTestRequestSchema = S.object(s => ({
|
|
13
13
|
webhookId: s.f("webhookId", S.string),
|
|
14
14
|
type: s.f("type", S.string),
|
|
15
|
-
override: s.
|
|
15
|
+
override: s.f("override", S.option(postAdminSystemWebhookTestRequest_1Schema))
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
18
|
function postAdminSystemWebhookTest(body, fetch) {
|
|
@@ -23,7 +23,7 @@ function postAdminSystemWebhookTest(body, fetch) {
|
|
|
23
23
|
let postIWebhooksCreateRequestSchema = S.object(s => ({
|
|
24
24
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 100, undefined)),
|
|
25
25
|
url: s.f("url", S.max(S.min(S.string, 1, undefined), 1024, undefined)),
|
|
26
|
-
secret: s.
|
|
26
|
+
secret: s.f("secret", S.option(S.max(S.string, 1024, undefined))),
|
|
27
27
|
on: s.f("on", S.array(S.string))
|
|
28
28
|
}));
|
|
29
29
|
|
|
@@ -93,14 +93,14 @@ function postIWebhooksShow(body, fetch) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
let postIWebhooksTestRequest_1Schema = S.object(s => ({
|
|
96
|
-
url: s.
|
|
97
|
-
secret: s.
|
|
96
|
+
url: s.f("url", S.option(S.string)),
|
|
97
|
+
secret: s.f("secret", S.option(S.string))
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
100
|
let postIWebhooksTestRequestSchema = S.object(s => ({
|
|
101
101
|
webhookId: s.f("webhookId", S.string),
|
|
102
102
|
type: s.f("type", S.string),
|
|
103
|
-
override: s.
|
|
103
|
+
override: s.f("override", S.option(postIWebhooksTestRequest_1Schema))
|
|
104
104
|
}));
|
|
105
105
|
|
|
106
106
|
function postIWebhooksTest(body, fetch) {
|
|
@@ -110,11 +110,11 @@ function postIWebhooksTest(body, fetch) {
|
|
|
110
110
|
|
|
111
111
|
let postIWebhooksUpdateRequestSchema = S.object(s => ({
|
|
112
112
|
webhookId: s.f("webhookId", S.string),
|
|
113
|
-
name: s.
|
|
114
|
-
url: s.
|
|
115
|
-
secret: s.
|
|
116
|
-
on: s.
|
|
117
|
-
active: s.
|
|
113
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
114
|
+
url: s.f("url", S.option(S.max(S.min(S.string, 1, undefined), 1024, undefined))),
|
|
115
|
+
secret: s.f("secret", S.option(S.max(S.string, 1024, undefined))),
|
|
116
|
+
on: s.f("on", S.option(S.array(S.string))),
|
|
117
|
+
active: s.f("active", S.option(S.bool))
|
|
118
118
|
}));
|
|
119
119
|
|
|
120
120
|
function postIWebhooksUpdate(body, fetch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@f3liz/rescript-misskey-api",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "ReScript bindings for Misskey API using OpenAPI code generation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"misskey",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"sury": "11.0.0-alpha.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@f3liz/rescript-autogen-openapi": "^0.5.
|
|
45
|
+
"@f3liz/rescript-autogen-openapi": "^0.5.4",
|
|
46
46
|
"rescript": "^12.1.0",
|
|
47
47
|
"typescript": "^5.9.3"
|
|
48
48
|
},
|