@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
|
@@ -11,8 +11,8 @@ type postGalleryFeaturedRequest = {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
let postGalleryFeaturedRequestSchema = S.object(s => {
|
|
14
|
-
limit: s.
|
|
15
|
-
untilId: s.
|
|
14
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
15
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
type postGalleryFeaturedResponse = array<MisskeyIoComponentSchemas.GalleryPost.t>
|
|
@@ -70,9 +70,9 @@ type postGalleryPostsRequest = {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
let postGalleryPostsRequestSchema = S.object(s => {
|
|
73
|
-
limit: s.
|
|
74
|
-
sinceId: s.
|
|
75
|
-
untilId: s.
|
|
73
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
74
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
75
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
76
76
|
})
|
|
77
77
|
|
|
78
78
|
type postGalleryPostsResponse = array<MisskeyIoComponentSchemas.GalleryPost.t>
|
|
@@ -108,9 +108,9 @@ type postGalleryPostsCreateRequest = {
|
|
|
108
108
|
|
|
109
109
|
let postGalleryPostsCreateRequestSchema = S.object(s => {
|
|
110
110
|
title: s.field("title", S.string->S.min(1)),
|
|
111
|
-
description: s.
|
|
111
|
+
description: s.field("description", S.option(S.string)),
|
|
112
112
|
fileIds: s.field("fileIds", S.array(S.string)),
|
|
113
|
-
isSensitive: s.
|
|
113
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
114
114
|
})
|
|
115
115
|
|
|
116
116
|
type postGalleryPostsCreateResponse = MisskeyIoComponentSchemas.GalleryPost.t
|
|
@@ -269,10 +269,10 @@ type postGalleryPostsUpdateRequest = {
|
|
|
269
269
|
|
|
270
270
|
let postGalleryPostsUpdateRequestSchema = S.object(s => {
|
|
271
271
|
postId: s.field("postId", S.string),
|
|
272
|
-
title: s.
|
|
273
|
-
description: s.
|
|
274
|
-
fileIds: s.
|
|
275
|
-
isSensitive: s.
|
|
272
|
+
title: s.field("title", S.option(S.string->S.min(1))),
|
|
273
|
+
description: s.field("description", S.option(S.string)),
|
|
274
|
+
fileIds: s.field("fileIds", S.option(S.array(S.string))),
|
|
275
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
276
276
|
})
|
|
277
277
|
|
|
278
278
|
type postGalleryPostsUpdateResponse = MisskeyIoComponentSchemas.GalleryPost.t
|
|
@@ -14,10 +14,10 @@ type postHashtagsListRequest = {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
let postHashtagsListRequestSchema = S.object(s => {
|
|
17
|
-
limit: s.
|
|
18
|
-
attachedToUserOnly: s.
|
|
19
|
-
attachedToLocalUserOnly: s.
|
|
20
|
-
attachedToRemoteUserOnly: s.
|
|
17
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
18
|
+
attachedToUserOnly: s.field("attachedToUserOnly", S.option(S.bool)),
|
|
19
|
+
attachedToLocalUserOnly: s.field("attachedToLocalUserOnly", S.option(S.bool)),
|
|
20
|
+
attachedToRemoteUserOnly: s.field("attachedToRemoteUserOnly", S.option(S.bool)),
|
|
21
21
|
sort: s.field("sort", S.string),
|
|
22
22
|
})
|
|
23
23
|
|
|
@@ -52,9 +52,9 @@ type postHashtagsSearchRequest = {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
let postHashtagsSearchRequestSchema = S.object(s => {
|
|
55
|
-
limit: s.
|
|
55
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
56
56
|
query: s.field("query", S.string),
|
|
57
|
-
offset: s.
|
|
57
|
+
offset: s.field("offset", S.option(S.int)),
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
type postHashtagsSearchResponse = array<string>
|
|
@@ -197,12 +197,12 @@ type postHashtagsUsersRequest = {
|
|
|
197
197
|
|
|
198
198
|
let postHashtagsUsersRequestSchema = S.object(s => {
|
|
199
199
|
tag: s.field("tag", S.string),
|
|
200
|
-
limit: s.
|
|
200
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
201
201
|
sort: s.field("sort", S.string),
|
|
202
|
-
state: s.
|
|
203
|
-
origin: s.
|
|
204
|
-
sinceId: s.
|
|
205
|
-
untilId: s.
|
|
202
|
+
state: s.field("state", S.option(S.string)),
|
|
203
|
+
origin: s.field("origin", S.option(S.string)),
|
|
204
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
205
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
206
206
|
})
|
|
207
207
|
|
|
208
208
|
type postHashtagsUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t>
|
|
@@ -77,10 +77,10 @@ type postUsersListsGetMembershipsRequest = {
|
|
|
77
77
|
|
|
78
78
|
let postUsersListsGetMembershipsRequestSchema = S.object(s => {
|
|
79
79
|
listId: s.field("listId", S.string),
|
|
80
|
-
forPublic: s.
|
|
81
|
-
limit: s.
|
|
82
|
-
sinceId: s.
|
|
83
|
-
untilId: s.
|
|
80
|
+
forPublic: s.field("forPublic", S.option(S.bool)),
|
|
81
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
82
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
83
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
84
84
|
})
|
|
85
85
|
|
|
86
86
|
type postUsersListsGetMembershipsResponse_1 = {
|
|
@@ -128,7 +128,7 @@ type postUsersListsListRequest = {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
let postUsersListsListRequestSchema = S.object(s => {
|
|
131
|
-
userId: s.
|
|
131
|
+
userId: s.field("userId", S.option(S.string)),
|
|
132
132
|
})
|
|
133
133
|
|
|
134
134
|
type postUsersListsListResponse = array<MisskeyIoComponentSchemas.UserList.t>
|
|
@@ -226,7 +226,7 @@ type postUsersListsShowRequest = {
|
|
|
226
226
|
|
|
227
227
|
let postUsersListsShowRequestSchema = S.object(s => {
|
|
228
228
|
listId: s.field("listId", S.string),
|
|
229
|
-
forPublic: s.
|
|
229
|
+
forPublic: s.field("forPublic", S.option(S.bool)),
|
|
230
230
|
})
|
|
231
231
|
|
|
232
232
|
type postUsersListsShowResponse = MisskeyIoComponentSchemas.UserList.t
|
|
@@ -261,8 +261,8 @@ type postUsersListsUpdateRequest = {
|
|
|
261
261
|
|
|
262
262
|
let postUsersListsUpdateRequestSchema = S.object(s => {
|
|
263
263
|
listId: s.field("listId", S.string),
|
|
264
|
-
name: s.
|
|
265
|
-
isPublic: s.
|
|
264
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.max(100))),
|
|
265
|
+
isPublic: s.field("isPublic", S.option(S.bool)),
|
|
266
266
|
})
|
|
267
267
|
|
|
268
268
|
type postUsersListsUpdateResponse = MisskeyIoComponentSchemas.UserList.t
|
|
@@ -298,7 +298,7 @@ type postUsersListsUpdateMembershipRequest = {
|
|
|
298
298
|
let postUsersListsUpdateMembershipRequestSchema = S.object(s => {
|
|
299
299
|
listId: s.field("listId", S.string),
|
|
300
300
|
userId: s.field("userId", S.string),
|
|
301
|
-
withReplies: s.
|
|
301
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
302
302
|
})
|
|
303
303
|
|
|
304
304
|
type postUsersListsUpdateMembershipResponse = unit
|
|
@@ -151,15 +151,15 @@ let postAdminMetaResponseSchema = S.object(s => {
|
|
|
151
151
|
enableEmail: s.field("enableEmail", S.bool),
|
|
152
152
|
enableServiceWorker: s.field("enableServiceWorker", S.bool),
|
|
153
153
|
translatorAvailable: s.field("translatorAvailable", S.bool),
|
|
154
|
-
silencedHosts: s.
|
|
155
|
-
sensitiveMediaHosts: s.
|
|
154
|
+
silencedHosts: s.field("silencedHosts", S.option(S.array(S.string))),
|
|
155
|
+
sensitiveMediaHosts: s.field("sensitiveMediaHosts", S.option(S.array(S.string))),
|
|
156
156
|
pinnedUsers: s.field("pinnedUsers", S.array(S.string)),
|
|
157
157
|
hiddenTags: s.field("hiddenTags", S.array(S.string)),
|
|
158
158
|
blockedHosts: s.field("blockedHosts", S.array(S.string)),
|
|
159
159
|
blockedRemoteCustomEmojis: s.field("blockedRemoteCustomEmojis", S.array(S.string)),
|
|
160
160
|
sensitiveWords: s.field("sensitiveWords", S.array(S.string)),
|
|
161
161
|
prohibitedWords: s.field("prohibitedWords", S.array(S.string)),
|
|
162
|
-
bannedEmailDomains: s.
|
|
162
|
+
bannedEmailDomains: s.field("bannedEmailDomains", S.option(S.array(S.string))),
|
|
163
163
|
preservedUsernames: s.field("preservedUsernames", S.array(S.string)),
|
|
164
164
|
hcaptchaSecretKey: s.field("hcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
165
165
|
mcaptchaSecretKey: s.field("mcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
@@ -306,11 +306,11 @@ type postAnnouncementsRequest = {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
let postAnnouncementsRequestSchema = S.object(s => {
|
|
309
|
-
limit: s.
|
|
310
|
-
sinceId: s.
|
|
311
|
-
untilId: s.
|
|
312
|
-
offset: s.
|
|
313
|
-
isActive: s.
|
|
309
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
310
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
311
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
312
|
+
offset: s.field("offset", S.option(S.int)),
|
|
313
|
+
isActive: s.field("isActive", S.option(S.bool)),
|
|
314
314
|
})
|
|
315
315
|
|
|
316
316
|
type postAnnouncementsResponse = array<MisskeyIoComponentSchemas.Announcement.t>
|
|
@@ -673,63 +673,63 @@ type getFetchRssResponse = {
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
let getFetchRssResponse_6Schema = S.object(s => {
|
|
676
|
-
name: s.
|
|
677
|
-
email: s.
|
|
676
|
+
name: s.field("name", S.option(S.string)),
|
|
677
|
+
email: s.field("email", S.option(S.string)),
|
|
678
678
|
})
|
|
679
679
|
|
|
680
680
|
let getFetchRssResponse_5Schema = S.object(s => {
|
|
681
681
|
url: s.field("url", S.string),
|
|
682
|
-
length: s.
|
|
683
|
-
type_: s.
|
|
682
|
+
length: s.field("length", S.option(S.float)),
|
|
683
|
+
type_: s.field("type", S.option(S.string)),
|
|
684
684
|
})
|
|
685
685
|
|
|
686
686
|
let getFetchRssResponse_4Schema = S.object(s => {
|
|
687
|
-
image: s.
|
|
688
|
-
owner: s.
|
|
689
|
-
author: s.
|
|
690
|
-
summary: s.
|
|
691
|
-
explicit: s.
|
|
692
|
-
categories: s.
|
|
693
|
-
keywords: s.
|
|
687
|
+
image: s.field("image", S.option(S.string)),
|
|
688
|
+
owner: s.field("owner", S.option(getFetchRssResponse_6Schema)),
|
|
689
|
+
author: s.field("author", S.option(S.string)),
|
|
690
|
+
summary: s.field("summary", S.option(S.string)),
|
|
691
|
+
explicit: s.field("explicit", S.option(S.string)),
|
|
692
|
+
categories: s.field("categories", S.option(S.array(S.string))),
|
|
693
|
+
keywords: s.field("keywords", S.option(S.array(S.string))),
|
|
694
694
|
})
|
|
695
695
|
|
|
696
696
|
let getFetchRssResponse_3Schema = S.object(s => {
|
|
697
|
-
link: s.
|
|
698
|
-
guid: s.
|
|
699
|
-
title: s.
|
|
700
|
-
pubDate: s.
|
|
701
|
-
creator: s.
|
|
702
|
-
summary: s.
|
|
703
|
-
content: s.
|
|
704
|
-
isoDate: s.
|
|
705
|
-
categories: s.
|
|
706
|
-
contentSnippet: s.
|
|
707
|
-
enclosure: s.
|
|
697
|
+
link: s.field("link", S.option(S.string)),
|
|
698
|
+
guid: s.field("guid", S.option(S.string)),
|
|
699
|
+
title: s.field("title", S.option(S.string)),
|
|
700
|
+
pubDate: s.field("pubDate", S.option(S.string)),
|
|
701
|
+
creator: s.field("creator", S.option(S.string)),
|
|
702
|
+
summary: s.field("summary", S.option(S.string)),
|
|
703
|
+
content: s.field("content", S.option(S.string)),
|
|
704
|
+
isoDate: s.field("isoDate", S.option(S.string)),
|
|
705
|
+
categories: s.field("categories", S.option(S.array(S.string))),
|
|
706
|
+
contentSnippet: s.field("contentSnippet", S.option(S.string)),
|
|
707
|
+
enclosure: s.field("enclosure", S.option(getFetchRssResponse_5Schema)),
|
|
708
708
|
})
|
|
709
709
|
|
|
710
710
|
let getFetchRssResponse_2Schema = S.object(s => {
|
|
711
|
-
self: s.
|
|
712
|
-
first: s.
|
|
713
|
-
next: s.
|
|
714
|
-
last: s.
|
|
715
|
-
prev: s.
|
|
711
|
+
self: s.field("self", S.option(S.string)),
|
|
712
|
+
first: s.field("first", S.option(S.string)),
|
|
713
|
+
next: s.field("next", S.option(S.string)),
|
|
714
|
+
last: s.field("last", S.option(S.string)),
|
|
715
|
+
prev: s.field("prev", S.option(S.string)),
|
|
716
716
|
})
|
|
717
717
|
|
|
718
718
|
let getFetchRssResponse_1Schema = S.object(s => {
|
|
719
|
-
link: s.
|
|
719
|
+
link: s.field("link", S.option(S.string)),
|
|
720
720
|
url: s.field("url", S.string),
|
|
721
|
-
title: s.
|
|
721
|
+
title: s.field("title", S.option(S.string)),
|
|
722
722
|
})
|
|
723
723
|
|
|
724
724
|
let getFetchRssResponseSchema = S.object(s => {
|
|
725
|
-
image: s.
|
|
726
|
-
paginationLinks: s.
|
|
727
|
-
link: s.
|
|
728
|
-
title: s.
|
|
725
|
+
image: s.field("image", S.option(getFetchRssResponse_1Schema)),
|
|
726
|
+
paginationLinks: s.field("paginationLinks", S.option(getFetchRssResponse_2Schema)),
|
|
727
|
+
link: s.field("link", S.option(S.string)),
|
|
728
|
+
title: s.field("title", S.option(S.string)),
|
|
729
729
|
items: s.field("items", S.array(getFetchRssResponse_3Schema)),
|
|
730
|
-
feedUrl: s.
|
|
731
|
-
description: s.
|
|
732
|
-
itunes: s.
|
|
730
|
+
feedUrl: s.field("feedUrl", S.option(S.string)),
|
|
731
|
+
description: s.field("description", S.option(S.string)),
|
|
732
|
+
itunes: s.field("itunes", S.option(getFetchRssResponse_4Schema)),
|
|
733
733
|
})
|
|
734
734
|
|
|
735
735
|
/**
|
|
@@ -821,63 +821,63 @@ type postFetchRssResponse = {
|
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
let postFetchRssResponse_6Schema = S.object(s => {
|
|
824
|
-
name: s.
|
|
825
|
-
email: s.
|
|
824
|
+
name: s.field("name", S.option(S.string)),
|
|
825
|
+
email: s.field("email", S.option(S.string)),
|
|
826
826
|
})
|
|
827
827
|
|
|
828
828
|
let postFetchRssResponse_5Schema = S.object(s => {
|
|
829
829
|
url: s.field("url", S.string),
|
|
830
|
-
length: s.
|
|
831
|
-
type_: s.
|
|
830
|
+
length: s.field("length", S.option(S.float)),
|
|
831
|
+
type_: s.field("type", S.option(S.string)),
|
|
832
832
|
})
|
|
833
833
|
|
|
834
834
|
let postFetchRssResponse_4Schema = S.object(s => {
|
|
835
|
-
image: s.
|
|
836
|
-
owner: s.
|
|
837
|
-
author: s.
|
|
838
|
-
summary: s.
|
|
839
|
-
explicit: s.
|
|
840
|
-
categories: s.
|
|
841
|
-
keywords: s.
|
|
835
|
+
image: s.field("image", S.option(S.string)),
|
|
836
|
+
owner: s.field("owner", S.option(postFetchRssResponse_6Schema)),
|
|
837
|
+
author: s.field("author", S.option(S.string)),
|
|
838
|
+
summary: s.field("summary", S.option(S.string)),
|
|
839
|
+
explicit: s.field("explicit", S.option(S.string)),
|
|
840
|
+
categories: s.field("categories", S.option(S.array(S.string))),
|
|
841
|
+
keywords: s.field("keywords", S.option(S.array(S.string))),
|
|
842
842
|
})
|
|
843
843
|
|
|
844
844
|
let postFetchRssResponse_3Schema = S.object(s => {
|
|
845
|
-
link: s.
|
|
846
|
-
guid: s.
|
|
847
|
-
title: s.
|
|
848
|
-
pubDate: s.
|
|
849
|
-
creator: s.
|
|
850
|
-
summary: s.
|
|
851
|
-
content: s.
|
|
852
|
-
isoDate: s.
|
|
853
|
-
categories: s.
|
|
854
|
-
contentSnippet: s.
|
|
855
|
-
enclosure: s.
|
|
845
|
+
link: s.field("link", S.option(S.string)),
|
|
846
|
+
guid: s.field("guid", S.option(S.string)),
|
|
847
|
+
title: s.field("title", S.option(S.string)),
|
|
848
|
+
pubDate: s.field("pubDate", S.option(S.string)),
|
|
849
|
+
creator: s.field("creator", S.option(S.string)),
|
|
850
|
+
summary: s.field("summary", S.option(S.string)),
|
|
851
|
+
content: s.field("content", S.option(S.string)),
|
|
852
|
+
isoDate: s.field("isoDate", S.option(S.string)),
|
|
853
|
+
categories: s.field("categories", S.option(S.array(S.string))),
|
|
854
|
+
contentSnippet: s.field("contentSnippet", S.option(S.string)),
|
|
855
|
+
enclosure: s.field("enclosure", S.option(postFetchRssResponse_5Schema)),
|
|
856
856
|
})
|
|
857
857
|
|
|
858
858
|
let postFetchRssResponse_2Schema = S.object(s => {
|
|
859
|
-
self: s.
|
|
860
|
-
first: s.
|
|
861
|
-
next: s.
|
|
862
|
-
last: s.
|
|
863
|
-
prev: s.
|
|
859
|
+
self: s.field("self", S.option(S.string)),
|
|
860
|
+
first: s.field("first", S.option(S.string)),
|
|
861
|
+
next: s.field("next", S.option(S.string)),
|
|
862
|
+
last: s.field("last", S.option(S.string)),
|
|
863
|
+
prev: s.field("prev", S.option(S.string)),
|
|
864
864
|
})
|
|
865
865
|
|
|
866
866
|
let postFetchRssResponse_1Schema = S.object(s => {
|
|
867
|
-
link: s.
|
|
867
|
+
link: s.field("link", S.option(S.string)),
|
|
868
868
|
url: s.field("url", S.string),
|
|
869
|
-
title: s.
|
|
869
|
+
title: s.field("title", S.option(S.string)),
|
|
870
870
|
})
|
|
871
871
|
|
|
872
872
|
let postFetchRssResponseSchema = S.object(s => {
|
|
873
|
-
image: s.
|
|
874
|
-
paginationLinks: s.
|
|
875
|
-
link: s.
|
|
876
|
-
title: s.
|
|
873
|
+
image: s.field("image", S.option(postFetchRssResponse_1Schema)),
|
|
874
|
+
paginationLinks: s.field("paginationLinks", S.option(postFetchRssResponse_2Schema)),
|
|
875
|
+
link: s.field("link", S.option(S.string)),
|
|
876
|
+
title: s.field("title", S.option(S.string)),
|
|
877
877
|
items: s.field("items", S.array(postFetchRssResponse_3Schema)),
|
|
878
|
-
feedUrl: s.
|
|
879
|
-
description: s.
|
|
880
|
-
itunes: s.
|
|
878
|
+
feedUrl: s.field("feedUrl", S.option(S.string)),
|
|
879
|
+
description: s.field("description", S.option(S.string)),
|
|
880
|
+
itunes: s.field("itunes", S.option(postFetchRssResponse_4Schema)),
|
|
881
881
|
})
|
|
882
882
|
|
|
883
883
|
/**
|
|
@@ -1045,9 +1045,9 @@ type postInviteListRequest = {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
1047
|
let postInviteListRequestSchema = S.object(s => {
|
|
1048
|
-
limit: s.
|
|
1049
|
-
sinceId: s.
|
|
1050
|
-
untilId: s.
|
|
1048
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
1049
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
1050
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
1051
1051
|
})
|
|
1052
1052
|
|
|
1053
1053
|
type postInviteListResponse = array<MisskeyIoComponentSchemas.InviteCode.t>
|
|
@@ -1079,7 +1079,7 @@ type getMetaRequest = {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
let getMetaRequestSchema = S.object(s => {
|
|
1082
|
-
detail: s.
|
|
1082
|
+
detail: s.field("detail", S.option(S.bool)),
|
|
1083
1083
|
})
|
|
1084
1084
|
|
|
1085
1085
|
type getMetaResponse = dict<JSON.t>
|
|
@@ -1111,7 +1111,7 @@ type postMetaRequest = {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
let postMetaRequestSchema = S.object(s => {
|
|
1114
|
-
detail: s.
|
|
1114
|
+
detail: s.field("detail", S.option(S.bool)),
|
|
1115
1115
|
})
|
|
1116
1116
|
|
|
1117
1117
|
type postMetaResponse = dict<JSON.t>
|
|
@@ -37,10 +37,10 @@ type postTestRequest = {
|
|
|
37
37
|
|
|
38
38
|
let postTestRequestSchema = S.object(s => {
|
|
39
39
|
required: s.field("required", S.bool),
|
|
40
|
-
string: s.
|
|
41
|
-
default: s.
|
|
42
|
-
nullableDefault: s.
|
|
43
|
-
id: s.
|
|
40
|
+
string: s.field("string", S.option(S.string)),
|
|
41
|
+
default: s.field("default", S.option(S.string)),
|
|
42
|
+
nullableDefault: s.field("nullableDefault", S.option(S.string)),
|
|
43
|
+
id: s.field("id", S.option(S.string)),
|
|
44
44
|
})
|
|
45
45
|
|
|
46
46
|
type postTestResponse = {
|
|
@@ -52,11 +52,11 @@ type postTestResponse = {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
let postTestResponseSchema = S.object(s => {
|
|
55
|
-
id: s.
|
|
55
|
+
id: s.field("id", S.option(S.string)),
|
|
56
56
|
required: s.field("required", S.bool),
|
|
57
|
-
string: s.
|
|
58
|
-
default: s.
|
|
59
|
-
nullableDefault: s.
|
|
57
|
+
string: s.field("string", S.option(S.string)),
|
|
58
|
+
default: s.field("default", S.option(S.string)),
|
|
59
|
+
nullableDefault: s.field("nullableDefault", S.option(S.string)),
|
|
60
60
|
})
|
|
61
61
|
|
|
62
62
|
/**
|