@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
|
@@ -7,7 +7,7 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postFollowingCreateRequestSchema = S.object(s => ({
|
|
9
9
|
userId: s.f("userId", S.string),
|
|
10
|
-
withReplies: s.
|
|
10
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let postFollowingCreateResponseSchema = MisskeyIoComponentSchemas.UserLite.schema;
|
|
@@ -60,9 +60,9 @@ function postFollowingRequestsCancel(body, fetch) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
let postFollowingRequestsListRequestSchema = S.object(s => ({
|
|
63
|
-
sinceId: s.
|
|
64
|
-
untilId: s.
|
|
65
|
-
limit: s.
|
|
63
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
64
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
65
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
66
66
|
}));
|
|
67
67
|
|
|
68
68
|
let postFollowingRequestsListResponse_1Schema = S.object(s => ({
|
|
@@ -88,9 +88,9 @@ function postFollowingRequestsReject(body, fetch) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
let postFollowingRequestsSentRequestSchema = S.object(s => ({
|
|
91
|
-
sinceId: s.
|
|
92
|
-
untilId: s.
|
|
93
|
-
limit: s.
|
|
91
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
92
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
93
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
let postFollowingRequestsSentResponse_1Schema = S.object(s => ({
|
|
@@ -108,8 +108,8 @@ function postFollowingRequestsSent(body, fetch) {
|
|
|
108
108
|
|
|
109
109
|
let postFollowingUpdateRequestSchema = S.object(s => ({
|
|
110
110
|
userId: s.f("userId", S.string),
|
|
111
|
-
notify: s.
|
|
112
|
-
withReplies: s.
|
|
111
|
+
notify: s.f("notify", S.option(S.string)),
|
|
112
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
113
113
|
}));
|
|
114
114
|
|
|
115
115
|
let postFollowingUpdateResponseSchema = MisskeyIoComponentSchemas.UserLite.schema;
|
|
@@ -120,8 +120,8 @@ function postFollowingUpdate(body, fetch) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
let postFollowingUpdateAllRequestSchema = S.object(s => ({
|
|
123
|
-
notify: s.
|
|
124
|
-
withReplies: s.
|
|
123
|
+
notify: s.f("notify", S.option(S.string)),
|
|
124
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
125
125
|
}));
|
|
126
126
|
|
|
127
127
|
function postFollowingUpdateAll(body, fetch) {
|
|
@@ -6,8 +6,8 @@ import * as MisskeyIoComponentSchemas from "./MisskeyIoComponentSchemas.mjs";
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postGalleryFeaturedRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
untilId: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let postGalleryFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema);
|
|
@@ -24,9 +24,9 @@ function postGalleryPopular(fetch) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
let postGalleryPostsRequestSchema = S.object(s => ({
|
|
27
|
-
limit: s.
|
|
28
|
-
sinceId: s.
|
|
29
|
-
untilId: s.
|
|
27
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
28
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
29
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
30
30
|
}));
|
|
31
31
|
|
|
32
32
|
let postGalleryPostsResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema);
|
|
@@ -38,9 +38,9 @@ function postGalleryPosts(body, fetch) {
|
|
|
38
38
|
|
|
39
39
|
let postGalleryPostsCreateRequestSchema = S.object(s => ({
|
|
40
40
|
title: s.f("title", S.min(S.string, 1, undefined)),
|
|
41
|
-
description: s.
|
|
41
|
+
description: s.f("description", S.option(S.string)),
|
|
42
42
|
fileIds: s.f("fileIds", S.array(S.string)),
|
|
43
|
-
isSensitive: s.
|
|
43
|
+
isSensitive: s.f("isSensitive", S.option(S.bool))
|
|
44
44
|
}));
|
|
45
45
|
|
|
46
46
|
let postGalleryPostsCreateResponseSchema = MisskeyIoComponentSchemas.GalleryPost.schema;
|
|
@@ -90,10 +90,10 @@ function postGalleryPostsUnlike(body, fetch) {
|
|
|
90
90
|
|
|
91
91
|
let postGalleryPostsUpdateRequestSchema = S.object(s => ({
|
|
92
92
|
postId: s.f("postId", S.string),
|
|
93
|
-
title: s.
|
|
94
|
-
description: s.
|
|
95
|
-
fileIds: s.
|
|
96
|
-
isSensitive: s.
|
|
93
|
+
title: s.f("title", S.option(S.min(S.string, 1, undefined))),
|
|
94
|
+
description: s.f("description", S.option(S.string)),
|
|
95
|
+
fileIds: s.f("fileIds", S.option(S.array(S.string))),
|
|
96
|
+
isSensitive: s.f("isSensitive", S.option(S.bool))
|
|
97
97
|
}));
|
|
98
98
|
|
|
99
99
|
let postGalleryPostsUpdateResponseSchema = MisskeyIoComponentSchemas.GalleryPost.schema;
|
|
@@ -6,10 +6,10 @@ import * as MisskeyIoComponentSchemas from "./MisskeyIoComponentSchemas.mjs";
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postHashtagsListRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
attachedToUserOnly: s.
|
|
11
|
-
attachedToLocalUserOnly: s.
|
|
12
|
-
attachedToRemoteUserOnly: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
attachedToUserOnly: s.f("attachedToUserOnly", S.option(S.bool)),
|
|
11
|
+
attachedToLocalUserOnly: s.f("attachedToLocalUserOnly", S.option(S.bool)),
|
|
12
|
+
attachedToRemoteUserOnly: s.f("attachedToRemoteUserOnly", S.option(S.bool)),
|
|
13
13
|
sort: s.f("sort", S.string)
|
|
14
14
|
}));
|
|
15
15
|
|
|
@@ -21,9 +21,9 @@ function postHashtagsList(body, fetch) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
let postHashtagsSearchRequestSchema = S.object(s => ({
|
|
24
|
-
limit: s.
|
|
24
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
25
25
|
query: s.f("query", S.string),
|
|
26
|
-
offset: s.
|
|
26
|
+
offset: s.f("offset", S.option(S.int))
|
|
27
27
|
}));
|
|
28
28
|
|
|
29
29
|
let postHashtagsSearchResponseSchema = S.array(S.string);
|
|
@@ -70,12 +70,12 @@ function postHashtagsTrend(fetch) {
|
|
|
70
70
|
|
|
71
71
|
let postHashtagsUsersRequestSchema = S.object(s => ({
|
|
72
72
|
tag: s.f("tag", S.string),
|
|
73
|
-
limit: s.
|
|
73
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
74
74
|
sort: s.f("sort", S.string),
|
|
75
|
-
state: s.
|
|
76
|
-
origin: s.
|
|
77
|
-
sinceId: s.
|
|
78
|
-
untilId: s.
|
|
75
|
+
state: s.f("state", S.option(S.string)),
|
|
76
|
+
origin: s.f("origin", S.option(S.string)),
|
|
77
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
78
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
79
79
|
}));
|
|
80
80
|
|
|
81
81
|
let postHashtagsUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema);
|
|
@@ -27,10 +27,10 @@ function postUsersListsDelete(body, fetch) {
|
|
|
27
27
|
|
|
28
28
|
let postUsersListsGetMembershipsRequestSchema = S.object(s => ({
|
|
29
29
|
listId: s.f("listId", S.string),
|
|
30
|
-
forPublic: s.
|
|
31
|
-
limit: s.
|
|
32
|
-
sinceId: s.
|
|
33
|
-
untilId: s.
|
|
30
|
+
forPublic: s.f("forPublic", S.option(S.bool)),
|
|
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 postUsersListsGetMembershipsResponse_1Schema = S.object(s => ({
|
|
@@ -49,7 +49,7 @@ function postUsersListsGetMemberships(body, fetch) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
let postUsersListsListRequestSchema = S.object(s => ({
|
|
52
|
-
userId: s.
|
|
52
|
+
userId: s.f("userId", S.option(S.string))
|
|
53
53
|
}));
|
|
54
54
|
|
|
55
55
|
let postUsersListsListResponseSchema = S.array(MisskeyIoComponentSchemas.UserList.schema);
|
|
@@ -81,7 +81,7 @@ function postUsersListsPush(body, fetch) {
|
|
|
81
81
|
|
|
82
82
|
let postUsersListsShowRequestSchema = S.object(s => ({
|
|
83
83
|
listId: s.f("listId", S.string),
|
|
84
|
-
forPublic: s.
|
|
84
|
+
forPublic: s.f("forPublic", S.option(S.bool))
|
|
85
85
|
}));
|
|
86
86
|
|
|
87
87
|
let postUsersListsShowResponseSchema = MisskeyIoComponentSchemas.UserList.schema;
|
|
@@ -93,8 +93,8 @@ function postUsersListsShow(body, fetch) {
|
|
|
93
93
|
|
|
94
94
|
let postUsersListsUpdateRequestSchema = S.object(s => ({
|
|
95
95
|
listId: s.f("listId", S.string),
|
|
96
|
-
name: s.
|
|
97
|
-
isPublic: s.
|
|
96
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
97
|
+
isPublic: s.f("isPublic", S.option(S.bool))
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
100
|
let postUsersListsUpdateResponseSchema = MisskeyIoComponentSchemas.UserList.schema;
|
|
@@ -107,7 +107,7 @@ function postUsersListsUpdate(body, fetch) {
|
|
|
107
107
|
let postUsersListsUpdateMembershipRequestSchema = S.object(s => ({
|
|
108
108
|
listId: s.f("listId", S.string),
|
|
109
109
|
userId: s.f("userId", S.string),
|
|
110
|
-
withReplies: s.
|
|
110
|
+
withReplies: s.f("withReplies", S.option(S.bool))
|
|
111
111
|
}));
|
|
112
112
|
|
|
113
113
|
function postUsersListsUpdateMembership(body, fetch) {
|
|
@@ -31,15 +31,15 @@ let postAdminMetaResponseSchema = S.object(s => ({
|
|
|
31
31
|
enableEmail: s.f("enableEmail", S.bool),
|
|
32
32
|
enableServiceWorker: s.f("enableServiceWorker", S.bool),
|
|
33
33
|
translatorAvailable: s.f("translatorAvailable", S.bool),
|
|
34
|
-
silencedHosts: s.
|
|
35
|
-
sensitiveMediaHosts: s.
|
|
34
|
+
silencedHosts: s.f("silencedHosts", S.option(S.array(S.string))),
|
|
35
|
+
sensitiveMediaHosts: s.f("sensitiveMediaHosts", S.option(S.array(S.string))),
|
|
36
36
|
pinnedUsers: s.f("pinnedUsers", S.array(S.string)),
|
|
37
37
|
hiddenTags: s.f("hiddenTags", S.array(S.string)),
|
|
38
38
|
blockedHosts: s.f("blockedHosts", S.array(S.string)),
|
|
39
39
|
blockedRemoteCustomEmojis: s.f("blockedRemoteCustomEmojis", S.array(S.string)),
|
|
40
40
|
sensitiveWords: s.f("sensitiveWords", S.array(S.string)),
|
|
41
41
|
prohibitedWords: s.f("prohibitedWords", S.array(S.string)),
|
|
42
|
-
bannedEmailDomains: s.
|
|
42
|
+
bannedEmailDomains: s.f("bannedEmailDomains", S.option(S.array(S.string))),
|
|
43
43
|
preservedUsernames: s.f("preservedUsernames", S.array(S.string)),
|
|
44
44
|
hcaptchaSecretKey: s.f("hcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
45
45
|
mcaptchaSecretKey: s.f("mcaptchaSecretKey", S.nullableAsOption(S.string)),
|
|
@@ -141,11 +141,11 @@ function postAnnouncement(body, fetch) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
let postAnnouncementsRequestSchema = S.object(s => ({
|
|
144
|
-
limit: s.
|
|
145
|
-
sinceId: s.
|
|
146
|
-
untilId: s.
|
|
147
|
-
offset: s.
|
|
148
|
-
isActive: s.
|
|
144
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
145
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
146
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
147
|
+
offset: s.f("offset", S.option(S.int)),
|
|
148
|
+
isActive: s.f("isActive", S.option(S.bool))
|
|
149
149
|
}));
|
|
150
150
|
|
|
151
151
|
let postAnnouncementsResponseSchema = S.array(MisskeyIoComponentSchemas.Announcement.schema);
|
|
@@ -250,63 +250,63 @@ let getFetchRssRequestSchema = S.object(s => ({
|
|
|
250
250
|
}));
|
|
251
251
|
|
|
252
252
|
let getFetchRssResponse_6Schema = S.object(s => ({
|
|
253
|
-
name: s.
|
|
254
|
-
email: s.
|
|
253
|
+
name: s.f("name", S.option(S.string)),
|
|
254
|
+
email: s.f("email", S.option(S.string))
|
|
255
255
|
}));
|
|
256
256
|
|
|
257
257
|
let getFetchRssResponse_5Schema = S.object(s => ({
|
|
258
258
|
url: s.f("url", S.string),
|
|
259
|
-
length: s.
|
|
260
|
-
type: s.
|
|
259
|
+
length: s.f("length", S.option(S.float)),
|
|
260
|
+
type: s.f("type", S.option(S.string))
|
|
261
261
|
}));
|
|
262
262
|
|
|
263
263
|
let getFetchRssResponse_4Schema = S.object(s => ({
|
|
264
|
-
image: s.
|
|
265
|
-
owner: s.
|
|
266
|
-
author: s.
|
|
267
|
-
summary: s.
|
|
268
|
-
explicit: s.
|
|
269
|
-
categories: s.
|
|
270
|
-
keywords: s.
|
|
264
|
+
image: s.f("image", S.option(S.string)),
|
|
265
|
+
owner: s.f("owner", S.option(getFetchRssResponse_6Schema)),
|
|
266
|
+
author: s.f("author", S.option(S.string)),
|
|
267
|
+
summary: s.f("summary", S.option(S.string)),
|
|
268
|
+
explicit: s.f("explicit", S.option(S.string)),
|
|
269
|
+
categories: s.f("categories", S.option(S.array(S.string))),
|
|
270
|
+
keywords: s.f("keywords", S.option(S.array(S.string)))
|
|
271
271
|
}));
|
|
272
272
|
|
|
273
273
|
let getFetchRssResponse_3Schema = S.object(s => ({
|
|
274
|
-
link: s.
|
|
275
|
-
guid: s.
|
|
276
|
-
title: s.
|
|
277
|
-
pubDate: s.
|
|
278
|
-
creator: s.
|
|
279
|
-
summary: s.
|
|
280
|
-
content: s.
|
|
281
|
-
isoDate: s.
|
|
282
|
-
categories: s.
|
|
283
|
-
contentSnippet: s.
|
|
284
|
-
enclosure: s.
|
|
274
|
+
link: s.f("link", S.option(S.string)),
|
|
275
|
+
guid: s.f("guid", S.option(S.string)),
|
|
276
|
+
title: s.f("title", S.option(S.string)),
|
|
277
|
+
pubDate: s.f("pubDate", S.option(S.string)),
|
|
278
|
+
creator: s.f("creator", S.option(S.string)),
|
|
279
|
+
summary: s.f("summary", S.option(S.string)),
|
|
280
|
+
content: s.f("content", S.option(S.string)),
|
|
281
|
+
isoDate: s.f("isoDate", S.option(S.string)),
|
|
282
|
+
categories: s.f("categories", S.option(S.array(S.string))),
|
|
283
|
+
contentSnippet: s.f("contentSnippet", S.option(S.string)),
|
|
284
|
+
enclosure: s.f("enclosure", S.option(getFetchRssResponse_5Schema))
|
|
285
285
|
}));
|
|
286
286
|
|
|
287
287
|
let getFetchRssResponse_2Schema = S.object(s => ({
|
|
288
|
-
self: s.
|
|
289
|
-
first: s.
|
|
290
|
-
next: s.
|
|
291
|
-
last: s.
|
|
292
|
-
prev: s.
|
|
288
|
+
self: s.f("self", S.option(S.string)),
|
|
289
|
+
first: s.f("first", S.option(S.string)),
|
|
290
|
+
next: s.f("next", S.option(S.string)),
|
|
291
|
+
last: s.f("last", S.option(S.string)),
|
|
292
|
+
prev: s.f("prev", S.option(S.string))
|
|
293
293
|
}));
|
|
294
294
|
|
|
295
295
|
let getFetchRssResponse_1Schema = S.object(s => ({
|
|
296
|
-
link: s.
|
|
296
|
+
link: s.f("link", S.option(S.string)),
|
|
297
297
|
url: s.f("url", S.string),
|
|
298
|
-
title: s.
|
|
298
|
+
title: s.f("title", S.option(S.string))
|
|
299
299
|
}));
|
|
300
300
|
|
|
301
301
|
let getFetchRssResponseSchema = S.object(s => ({
|
|
302
|
-
image: s.
|
|
303
|
-
paginationLinks: s.
|
|
304
|
-
link: s.
|
|
305
|
-
title: s.
|
|
302
|
+
image: s.f("image", S.option(getFetchRssResponse_1Schema)),
|
|
303
|
+
paginationLinks: s.f("paginationLinks", S.option(getFetchRssResponse_2Schema)),
|
|
304
|
+
link: s.f("link", S.option(S.string)),
|
|
305
|
+
title: s.f("title", S.option(S.string)),
|
|
306
306
|
items: s.f("items", S.array(getFetchRssResponse_3Schema)),
|
|
307
|
-
feedUrl: s.
|
|
308
|
-
description: s.
|
|
309
|
-
itunes: s.
|
|
307
|
+
feedUrl: s.f("feedUrl", S.option(S.string)),
|
|
308
|
+
description: s.f("description", S.option(S.string)),
|
|
309
|
+
itunes: s.f("itunes", S.option(getFetchRssResponse_4Schema))
|
|
310
310
|
}));
|
|
311
311
|
|
|
312
312
|
function getFetchRss(body, fetch) {
|
|
@@ -319,63 +319,63 @@ let postFetchRssRequestSchema = S.object(s => ({
|
|
|
319
319
|
}));
|
|
320
320
|
|
|
321
321
|
let postFetchRssResponse_6Schema = S.object(s => ({
|
|
322
|
-
name: s.
|
|
323
|
-
email: s.
|
|
322
|
+
name: s.f("name", S.option(S.string)),
|
|
323
|
+
email: s.f("email", S.option(S.string))
|
|
324
324
|
}));
|
|
325
325
|
|
|
326
326
|
let postFetchRssResponse_5Schema = S.object(s => ({
|
|
327
327
|
url: s.f("url", S.string),
|
|
328
|
-
length: s.
|
|
329
|
-
type: s.
|
|
328
|
+
length: s.f("length", S.option(S.float)),
|
|
329
|
+
type: s.f("type", S.option(S.string))
|
|
330
330
|
}));
|
|
331
331
|
|
|
332
332
|
let postFetchRssResponse_4Schema = S.object(s => ({
|
|
333
|
-
image: s.
|
|
334
|
-
owner: s.
|
|
335
|
-
author: s.
|
|
336
|
-
summary: s.
|
|
337
|
-
explicit: s.
|
|
338
|
-
categories: s.
|
|
339
|
-
keywords: s.
|
|
333
|
+
image: s.f("image", S.option(S.string)),
|
|
334
|
+
owner: s.f("owner", S.option(postFetchRssResponse_6Schema)),
|
|
335
|
+
author: s.f("author", S.option(S.string)),
|
|
336
|
+
summary: s.f("summary", S.option(S.string)),
|
|
337
|
+
explicit: s.f("explicit", S.option(S.string)),
|
|
338
|
+
categories: s.f("categories", S.option(S.array(S.string))),
|
|
339
|
+
keywords: s.f("keywords", S.option(S.array(S.string)))
|
|
340
340
|
}));
|
|
341
341
|
|
|
342
342
|
let postFetchRssResponse_3Schema = S.object(s => ({
|
|
343
|
-
link: s.
|
|
344
|
-
guid: s.
|
|
345
|
-
title: s.
|
|
346
|
-
pubDate: s.
|
|
347
|
-
creator: s.
|
|
348
|
-
summary: s.
|
|
349
|
-
content: s.
|
|
350
|
-
isoDate: s.
|
|
351
|
-
categories: s.
|
|
352
|
-
contentSnippet: s.
|
|
353
|
-
enclosure: s.
|
|
343
|
+
link: s.f("link", S.option(S.string)),
|
|
344
|
+
guid: s.f("guid", S.option(S.string)),
|
|
345
|
+
title: s.f("title", S.option(S.string)),
|
|
346
|
+
pubDate: s.f("pubDate", S.option(S.string)),
|
|
347
|
+
creator: s.f("creator", S.option(S.string)),
|
|
348
|
+
summary: s.f("summary", S.option(S.string)),
|
|
349
|
+
content: s.f("content", S.option(S.string)),
|
|
350
|
+
isoDate: s.f("isoDate", S.option(S.string)),
|
|
351
|
+
categories: s.f("categories", S.option(S.array(S.string))),
|
|
352
|
+
contentSnippet: s.f("contentSnippet", S.option(S.string)),
|
|
353
|
+
enclosure: s.f("enclosure", S.option(postFetchRssResponse_5Schema))
|
|
354
354
|
}));
|
|
355
355
|
|
|
356
356
|
let postFetchRssResponse_2Schema = S.object(s => ({
|
|
357
|
-
self: s.
|
|
358
|
-
first: s.
|
|
359
|
-
next: s.
|
|
360
|
-
last: s.
|
|
361
|
-
prev: s.
|
|
357
|
+
self: s.f("self", S.option(S.string)),
|
|
358
|
+
first: s.f("first", S.option(S.string)),
|
|
359
|
+
next: s.f("next", S.option(S.string)),
|
|
360
|
+
last: s.f("last", S.option(S.string)),
|
|
361
|
+
prev: s.f("prev", S.option(S.string))
|
|
362
362
|
}));
|
|
363
363
|
|
|
364
364
|
let postFetchRssResponse_1Schema = S.object(s => ({
|
|
365
|
-
link: s.
|
|
365
|
+
link: s.f("link", S.option(S.string)),
|
|
366
366
|
url: s.f("url", S.string),
|
|
367
|
-
title: s.
|
|
367
|
+
title: s.f("title", S.option(S.string))
|
|
368
368
|
}));
|
|
369
369
|
|
|
370
370
|
let postFetchRssResponseSchema = S.object(s => ({
|
|
371
|
-
image: s.
|
|
372
|
-
paginationLinks: s.
|
|
373
|
-
link: s.
|
|
374
|
-
title: s.
|
|
371
|
+
image: s.f("image", S.option(postFetchRssResponse_1Schema)),
|
|
372
|
+
paginationLinks: s.f("paginationLinks", S.option(postFetchRssResponse_2Schema)),
|
|
373
|
+
link: s.f("link", S.option(S.string)),
|
|
374
|
+
title: s.f("title", S.option(S.string)),
|
|
375
375
|
items: s.f("items", S.array(postFetchRssResponse_3Schema)),
|
|
376
|
-
feedUrl: s.
|
|
377
|
-
description: s.
|
|
378
|
-
itunes: s.
|
|
376
|
+
feedUrl: s.f("feedUrl", S.option(S.string)),
|
|
377
|
+
description: s.f("description", S.option(S.string)),
|
|
378
|
+
itunes: s.f("itunes", S.option(postFetchRssResponse_4Schema))
|
|
379
379
|
}));
|
|
380
380
|
|
|
381
381
|
function postFetchRss(body, fetch) {
|
|
@@ -423,9 +423,9 @@ function postInviteLimit(fetch) {
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
let postInviteListRequestSchema = S.object(s => ({
|
|
426
|
-
limit: s.
|
|
427
|
-
sinceId: s.
|
|
428
|
-
untilId: s.
|
|
426
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
427
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
428
|
+
untilId: s.f("untilId", S.option(S.string))
|
|
429
429
|
}));
|
|
430
430
|
|
|
431
431
|
let postInviteListResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema);
|
|
@@ -436,7 +436,7 @@ function postInviteList(body, fetch) {
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
let getMetaRequestSchema = S.object(s => ({
|
|
439
|
-
detail: s.
|
|
439
|
+
detail: s.f("detail", S.option(S.bool))
|
|
440
440
|
}));
|
|
441
441
|
|
|
442
442
|
let getMetaResponseSchema = S.dict(S.json);
|
|
@@ -447,7 +447,7 @@ function getMeta(body, fetch) {
|
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
let postMetaRequestSchema = S.object(s => ({
|
|
450
|
-
detail: s.
|
|
450
|
+
detail: s.f("detail", S.option(S.bool))
|
|
451
451
|
}));
|
|
452
452
|
|
|
453
453
|
let postMetaResponseSchema = S.dict(S.json);
|
|
@@ -10,18 +10,18 @@ function postResetDb(fetch) {
|
|
|
10
10
|
|
|
11
11
|
let postTestRequestSchema = S.object(s => ({
|
|
12
12
|
required: s.f("required", S.bool),
|
|
13
|
-
string: s.
|
|
14
|
-
default: s.
|
|
15
|
-
nullableDefault: s.
|
|
16
|
-
id: s.
|
|
13
|
+
string: s.f("string", S.option(S.string)),
|
|
14
|
+
default: s.f("default", S.option(S.string)),
|
|
15
|
+
nullableDefault: s.f("nullableDefault", S.option(S.string)),
|
|
16
|
+
id: s.f("id", S.option(S.string))
|
|
17
17
|
}));
|
|
18
18
|
|
|
19
19
|
let postTestResponseSchema = S.object(s => ({
|
|
20
|
-
id: s.
|
|
20
|
+
id: s.f("id", S.option(S.string)),
|
|
21
21
|
required: s.f("required", S.bool),
|
|
22
|
-
string: s.
|
|
23
|
-
default: s.
|
|
24
|
-
nullableDefault: s.
|
|
22
|
+
string: s.f("string", S.option(S.string)),
|
|
23
|
+
default: s.f("default", S.option(S.string)),
|
|
24
|
+
nullableDefault: s.f("nullableDefault", S.option(S.string))
|
|
25
25
|
}));
|
|
26
26
|
|
|
27
27
|
function postTest(body, fetch) {
|