@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
|
@@ -8,16 +8,16 @@ S.enableJson();
|
|
|
8
8
|
let postAntennasCreateRequestSchema = S.object(s => ({
|
|
9
9
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 100, undefined)),
|
|
10
10
|
src: s.f("src", S.string),
|
|
11
|
-
userListId: s.
|
|
11
|
+
userListId: s.f("userListId", S.option(S.string)),
|
|
12
12
|
keywords: s.f("keywords", S.array(S.array(S.string))),
|
|
13
13
|
excludeKeywords: s.f("excludeKeywords", S.array(S.array(S.string))),
|
|
14
14
|
users: s.f("users", S.array(S.string)),
|
|
15
15
|
caseSensitive: s.f("caseSensitive", S.bool),
|
|
16
|
-
localOnly: s.
|
|
17
|
-
excludeBots: s.
|
|
16
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
17
|
+
excludeBots: s.f("excludeBots", S.option(S.bool)),
|
|
18
18
|
withReplies: s.f("withReplies", S.bool),
|
|
19
19
|
withFile: s.f("withFile", S.bool),
|
|
20
|
-
excludeNotesInSensitiveChannel: s.
|
|
20
|
+
excludeNotesInSensitiveChannel: s.f("excludeNotesInSensitiveChannel", S.option(S.bool))
|
|
21
21
|
}));
|
|
22
22
|
|
|
23
23
|
let postAntennasCreateResponseSchema = MisskeyIoComponentSchemas.Antenna.schema;
|
|
@@ -44,11 +44,11 @@ function postAntennasList(fetch) {
|
|
|
44
44
|
|
|
45
45
|
let postAntennasNotesRequestSchema = S.object(s => ({
|
|
46
46
|
antennaId: s.f("antennaId", S.string),
|
|
47
|
-
limit: s.
|
|
48
|
-
sinceId: s.
|
|
49
|
-
untilId: s.
|
|
50
|
-
sinceDate: s.
|
|
51
|
-
untilDate: s.
|
|
47
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
48
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
49
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
50
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
51
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
let postAntennasNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema);
|
|
@@ -71,18 +71,18 @@ function postAntennasShow(body, fetch) {
|
|
|
71
71
|
|
|
72
72
|
let postAntennasUpdateRequestSchema = S.object(s => ({
|
|
73
73
|
antennaId: s.f("antennaId", S.string),
|
|
74
|
-
name: s.
|
|
75
|
-
src: s.
|
|
76
|
-
userListId: s.
|
|
77
|
-
keywords: s.
|
|
78
|
-
excludeKeywords: s.
|
|
79
|
-
users: s.
|
|
80
|
-
caseSensitive: s.
|
|
81
|
-
localOnly: s.
|
|
82
|
-
excludeBots: s.
|
|
83
|
-
withReplies: s.
|
|
84
|
-
withFile: s.
|
|
85
|
-
excludeNotesInSensitiveChannel: s.
|
|
74
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
75
|
+
src: s.f("src", S.option(S.string)),
|
|
76
|
+
userListId: s.f("userListId", S.option(S.string)),
|
|
77
|
+
keywords: s.f("keywords", S.option(S.array(S.array(S.string)))),
|
|
78
|
+
excludeKeywords: s.f("excludeKeywords", S.option(S.array(S.array(S.string)))),
|
|
79
|
+
users: s.f("users", S.option(S.array(S.string))),
|
|
80
|
+
caseSensitive: s.f("caseSensitive", S.option(S.bool)),
|
|
81
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
82
|
+
excludeBots: s.f("excludeBots", S.option(S.bool)),
|
|
83
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
84
|
+
withFile: s.f("withFile", S.option(S.bool)),
|
|
85
|
+
excludeNotesInSensitiveChannel: s.f("excludeNotesInSensitiveChannel", S.option(S.bool))
|
|
86
86
|
}));
|
|
87
87
|
|
|
88
88
|
let postAntennasUpdateResponseSchema = MisskeyIoComponentSchemas.Antenna.schema;
|
|
@@ -9,7 +9,7 @@ let postAppCreateRequestSchema = S.object(s => ({
|
|
|
9
9
|
name: s.f("name", S.string),
|
|
10
10
|
description: s.f("description", S.string),
|
|
11
11
|
permission: s.f("permission", S.array(S.string)),
|
|
12
|
-
callbackUrl: s.
|
|
12
|
+
callbackUrl: s.f("callbackUrl", S.option(S.string))
|
|
13
13
|
}));
|
|
14
14
|
|
|
15
15
|
let postAppCreateResponseSchema = MisskeyIoComponentSchemas.App.schema;
|
|
@@ -60,9 +60,9 @@ function postAuthSessionUserkey(body, fetch) {
|
|
|
60
60
|
|
|
61
61
|
let postMiauthGenTokenRequestSchema = S.object(s => ({
|
|
62
62
|
session: s.f("session", S.nullableAsOption(S.string)),
|
|
63
|
-
name: s.
|
|
64
|
-
description: s.
|
|
65
|
-
iconUrl: s.
|
|
63
|
+
name: s.f("name", S.option(S.string)),
|
|
64
|
+
description: s.f("description", S.option(S.string)),
|
|
65
|
+
iconUrl: s.f("iconUrl", S.option(S.string)),
|
|
66
66
|
permission: s.f("permission", S.array(S.string))
|
|
67
67
|
}));
|
|
68
68
|
|
|
@@ -7,11 +7,11 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postChannelsCreateRequestSchema = S.object(s => ({
|
|
9
9
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 128, undefined)),
|
|
10
|
-
description: s.
|
|
11
|
-
bannerId: s.
|
|
12
|
-
color: s.
|
|
13
|
-
isSensitive: s.
|
|
14
|
-
allowRenoteToExternal: s.
|
|
10
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 2048, undefined))),
|
|
11
|
+
bannerId: s.f("bannerId", S.option(S.string)),
|
|
12
|
+
color: s.f("color", S.option(S.max(S.min(S.string, 1, undefined), 16, undefined))),
|
|
13
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
14
|
+
allowRenoteToExternal: s.f("allowRenoteToExternal", S.option(S.bool))
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
let postChannelsCreateResponseSchema = MisskeyIoComponentSchemas.Channel.schema;
|
|
@@ -52,9 +52,9 @@ function postChannelsFollow(body, fetch) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
let postChannelsFollowedRequestSchema = S.object(s => ({
|
|
55
|
-
sinceId: s.
|
|
56
|
-
untilId: s.
|
|
57
|
-
limit: s.
|
|
55
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
56
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
57
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
58
58
|
}));
|
|
59
59
|
|
|
60
60
|
let postChannelsFollowedResponseSchema = S.array(MisskeyIoComponentSchemas.Channel.schema);
|
|
@@ -71,9 +71,9 @@ function postChannelsMyFavorites(fetch) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
let postChannelsOwnedRequestSchema = S.object(s => ({
|
|
74
|
-
sinceId: s.
|
|
75
|
-
untilId: s.
|
|
76
|
-
limit: s.
|
|
74
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
75
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
76
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
77
77
|
}));
|
|
78
78
|
|
|
79
79
|
let postChannelsOwnedResponseSchema = S.array(MisskeyIoComponentSchemas.Channel.schema);
|
|
@@ -85,10 +85,10 @@ function postChannelsOwned(body, fetch) {
|
|
|
85
85
|
|
|
86
86
|
let postChannelsSearchRequestSchema = S.object(s => ({
|
|
87
87
|
query: s.f("query", S.string),
|
|
88
|
-
type: s.
|
|
89
|
-
sinceId: s.
|
|
90
|
-
untilId: s.
|
|
91
|
-
limit: s.
|
|
88
|
+
type: s.f("type", S.option(S.string)),
|
|
89
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
90
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
91
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
92
92
|
}));
|
|
93
93
|
|
|
94
94
|
let postChannelsSearchResponseSchema = S.array(MisskeyIoComponentSchemas.Channel.schema);
|
|
@@ -129,14 +129,14 @@ function postChannelsUnfollow(body, fetch) {
|
|
|
129
129
|
|
|
130
130
|
let postChannelsUpdateRequestSchema = S.object(s => ({
|
|
131
131
|
channelId: s.f("channelId", S.string),
|
|
132
|
-
name: s.
|
|
133
|
-
description: s.
|
|
134
|
-
bannerId: s.
|
|
135
|
-
isArchived: s.
|
|
136
|
-
pinnedNoteIds: s.
|
|
137
|
-
color: s.
|
|
138
|
-
isSensitive: s.
|
|
139
|
-
allowRenoteToExternal: s.
|
|
132
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
133
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 2048, undefined))),
|
|
134
|
+
bannerId: s.f("bannerId", S.option(S.string)),
|
|
135
|
+
isArchived: s.f("isArchived", S.option(S.bool)),
|
|
136
|
+
pinnedNoteIds: s.f("pinnedNoteIds", S.option(S.array(S.string))),
|
|
137
|
+
color: s.f("color", S.option(S.max(S.min(S.string, 1, undefined), 16, undefined))),
|
|
138
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
139
|
+
allowRenoteToExternal: s.f("allowRenoteToExternal", S.option(S.bool))
|
|
140
140
|
}));
|
|
141
141
|
|
|
142
142
|
let postChannelsUpdateResponseSchema = MisskeyIoComponentSchemas.Channel.schema;
|
|
@@ -6,8 +6,8 @@ S.enableJson();
|
|
|
6
6
|
|
|
7
7
|
let getChartsActiveUsersRequestSchema = S.object(s => ({
|
|
8
8
|
span: s.f("span", S.string),
|
|
9
|
-
limit: s.
|
|
10
|
-
offset: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
10
|
+
offset: s.f("offset", S.option(S.int))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let getChartsActiveUsersResponseSchema = S.object(s => ({
|
|
@@ -29,8 +29,8 @@ function getChartsActiveUsers(body, fetch) {
|
|
|
29
29
|
|
|
30
30
|
let postChartsActiveUsersRequestSchema = S.object(s => ({
|
|
31
31
|
span: s.f("span", S.string),
|
|
32
|
-
limit: s.
|
|
33
|
-
offset: s.
|
|
32
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
33
|
+
offset: s.f("offset", S.option(S.int))
|
|
34
34
|
}));
|
|
35
35
|
|
|
36
36
|
let postChartsActiveUsersResponseSchema = S.object(s => ({
|
|
@@ -52,8 +52,8 @@ function postChartsActiveUsers(body, fetch) {
|
|
|
52
52
|
|
|
53
53
|
let getChartsApRequestRequestSchema = S.object(s => ({
|
|
54
54
|
span: s.f("span", S.string),
|
|
55
|
-
limit: s.
|
|
56
|
-
offset: s.
|
|
55
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
56
|
+
offset: s.f("offset", S.option(S.int))
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
let getChartsApRequestResponseSchema = S.object(s => ({
|
|
@@ -69,8 +69,8 @@ function getChartsApRequest(body, fetch) {
|
|
|
69
69
|
|
|
70
70
|
let postChartsApRequestRequestSchema = S.object(s => ({
|
|
71
71
|
span: s.f("span", S.string),
|
|
72
|
-
limit: s.
|
|
73
|
-
offset: s.
|
|
72
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
73
|
+
offset: s.f("offset", S.option(S.int))
|
|
74
74
|
}));
|
|
75
75
|
|
|
76
76
|
let postChartsApRequestResponseSchema = S.object(s => ({
|
|
@@ -86,8 +86,8 @@ function postChartsApRequest(body, fetch) {
|
|
|
86
86
|
|
|
87
87
|
let getChartsDriveRequestSchema = S.object(s => ({
|
|
88
88
|
span: s.f("span", S.string),
|
|
89
|
-
limit: s.
|
|
90
|
-
offset: s.
|
|
89
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
90
|
+
offset: s.f("offset", S.option(S.int))
|
|
91
91
|
}));
|
|
92
92
|
|
|
93
93
|
let getChartsDriveResponse_1Schema = S.object(s => ({
|
|
@@ -109,8 +109,8 @@ function getChartsDrive(body, fetch) {
|
|
|
109
109
|
|
|
110
110
|
let postChartsDriveRequestSchema = S.object(s => ({
|
|
111
111
|
span: s.f("span", S.string),
|
|
112
|
-
limit: s.
|
|
113
|
-
offset: s.
|
|
112
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
113
|
+
offset: s.f("offset", S.option(S.int))
|
|
114
114
|
}));
|
|
115
115
|
|
|
116
116
|
let postChartsDriveResponse_1Schema = S.object(s => ({
|
|
@@ -132,8 +132,8 @@ function postChartsDrive(body, fetch) {
|
|
|
132
132
|
|
|
133
133
|
let getChartsFederationRequestSchema = S.object(s => ({
|
|
134
134
|
span: s.f("span", S.string),
|
|
135
|
-
limit: s.
|
|
136
|
-
offset: s.
|
|
135
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
136
|
+
offset: s.f("offset", S.option(S.int))
|
|
137
137
|
}));
|
|
138
138
|
|
|
139
139
|
let getChartsFederationResponseSchema = S.object(s => ({
|
|
@@ -154,8 +154,8 @@ function getChartsFederation(body, fetch) {
|
|
|
154
154
|
|
|
155
155
|
let postChartsFederationRequestSchema = S.object(s => ({
|
|
156
156
|
span: s.f("span", S.string),
|
|
157
|
-
limit: s.
|
|
158
|
-
offset: s.
|
|
157
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
158
|
+
offset: s.f("offset", S.option(S.int))
|
|
159
159
|
}));
|
|
160
160
|
|
|
161
161
|
let postChartsFederationResponseSchema = S.object(s => ({
|
|
@@ -176,8 +176,8 @@ function postChartsFederation(body, fetch) {
|
|
|
176
176
|
|
|
177
177
|
let getChartsInstanceRequestSchema = S.object(s => ({
|
|
178
178
|
span: s.f("span", S.string),
|
|
179
|
-
limit: s.
|
|
180
|
-
offset: s.
|
|
179
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
180
|
+
offset: s.f("offset", S.option(S.int)),
|
|
181
181
|
host: s.f("host", S.string)
|
|
182
182
|
}));
|
|
183
183
|
|
|
@@ -231,8 +231,8 @@ function getChartsInstance(body, fetch) {
|
|
|
231
231
|
|
|
232
232
|
let postChartsInstanceRequestSchema = S.object(s => ({
|
|
233
233
|
span: s.f("span", S.string),
|
|
234
|
-
limit: s.
|
|
235
|
-
offset: s.
|
|
234
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
235
|
+
offset: s.f("offset", S.option(S.int)),
|
|
236
236
|
host: s.f("host", S.string)
|
|
237
237
|
}));
|
|
238
238
|
|
|
@@ -286,8 +286,8 @@ function postChartsInstance(body, fetch) {
|
|
|
286
286
|
|
|
287
287
|
let getChartsNotesRequestSchema = S.object(s => ({
|
|
288
288
|
span: s.f("span", S.string),
|
|
289
|
-
limit: s.
|
|
290
|
-
offset: s.
|
|
289
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
290
|
+
offset: s.f("offset", S.option(S.int))
|
|
291
291
|
}));
|
|
292
292
|
|
|
293
293
|
let getChartsNotesResponse_2Schema = S.object(s => ({
|
|
@@ -316,8 +316,8 @@ function getChartsNotes(body, fetch) {
|
|
|
316
316
|
|
|
317
317
|
let postChartsNotesRequestSchema = S.object(s => ({
|
|
318
318
|
span: s.f("span", S.string),
|
|
319
|
-
limit: s.
|
|
320
|
-
offset: s.
|
|
319
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
320
|
+
offset: s.f("offset", S.option(S.int))
|
|
321
321
|
}));
|
|
322
322
|
|
|
323
323
|
let postChartsNotesResponse_2Schema = S.object(s => ({
|
|
@@ -346,8 +346,8 @@ function postChartsNotes(body, fetch) {
|
|
|
346
346
|
|
|
347
347
|
let getChartsUserDriveRequestSchema = S.object(s => ({
|
|
348
348
|
span: s.f("span", S.string),
|
|
349
|
-
limit: s.
|
|
350
|
-
offset: s.
|
|
349
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
350
|
+
offset: s.f("offset", S.option(S.int)),
|
|
351
351
|
userId: s.f("userId", S.string)
|
|
352
352
|
}));
|
|
353
353
|
|
|
@@ -367,8 +367,8 @@ function getChartsUserDrive(body, fetch) {
|
|
|
367
367
|
|
|
368
368
|
let postChartsUserDriveRequestSchema = S.object(s => ({
|
|
369
369
|
span: s.f("span", S.string),
|
|
370
|
-
limit: s.
|
|
371
|
-
offset: s.
|
|
370
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
371
|
+
offset: s.f("offset", S.option(S.int)),
|
|
372
372
|
userId: s.f("userId", S.string)
|
|
373
373
|
}));
|
|
374
374
|
|
|
@@ -388,8 +388,8 @@ function postChartsUserDrive(body, fetch) {
|
|
|
388
388
|
|
|
389
389
|
let getChartsUserFollowingRequestSchema = S.object(s => ({
|
|
390
390
|
span: s.f("span", S.string),
|
|
391
|
-
limit: s.
|
|
392
|
-
offset: s.
|
|
391
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
392
|
+
offset: s.f("offset", S.option(S.int)),
|
|
393
393
|
userId: s.f("userId", S.string)
|
|
394
394
|
}));
|
|
395
395
|
|
|
@@ -416,8 +416,8 @@ function getChartsUserFollowing(body, fetch) {
|
|
|
416
416
|
|
|
417
417
|
let postChartsUserFollowingRequestSchema = S.object(s => ({
|
|
418
418
|
span: s.f("span", S.string),
|
|
419
|
-
limit: s.
|
|
420
|
-
offset: s.
|
|
419
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
420
|
+
offset: s.f("offset", S.option(S.int)),
|
|
421
421
|
userId: s.f("userId", S.string)
|
|
422
422
|
}));
|
|
423
423
|
|
|
@@ -444,8 +444,8 @@ function postChartsUserFollowing(body, fetch) {
|
|
|
444
444
|
|
|
445
445
|
let getChartsUserNotesRequestSchema = S.object(s => ({
|
|
446
446
|
span: s.f("span", S.string),
|
|
447
|
-
limit: s.
|
|
448
|
-
offset: s.
|
|
447
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
448
|
+
offset: s.f("offset", S.option(S.int)),
|
|
449
449
|
userId: s.f("userId", S.string)
|
|
450
450
|
}));
|
|
451
451
|
|
|
@@ -470,8 +470,8 @@ function getChartsUserNotes(body, fetch) {
|
|
|
470
470
|
|
|
471
471
|
let postChartsUserNotesRequestSchema = S.object(s => ({
|
|
472
472
|
span: s.f("span", S.string),
|
|
473
|
-
limit: s.
|
|
474
|
-
offset: s.
|
|
473
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
474
|
+
offset: s.f("offset", S.option(S.int)),
|
|
475
475
|
userId: s.f("userId", S.string)
|
|
476
476
|
}));
|
|
477
477
|
|
|
@@ -496,8 +496,8 @@ function postChartsUserNotes(body, fetch) {
|
|
|
496
496
|
|
|
497
497
|
let getChartsUserPvRequestSchema = S.object(s => ({
|
|
498
498
|
span: s.f("span", S.string),
|
|
499
|
-
limit: s.
|
|
500
|
-
offset: s.
|
|
499
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
500
|
+
offset: s.f("offset", S.option(S.int)),
|
|
501
501
|
userId: s.f("userId", S.string)
|
|
502
502
|
}));
|
|
503
503
|
|
|
@@ -518,8 +518,8 @@ function getChartsUserPv(body, fetch) {
|
|
|
518
518
|
|
|
519
519
|
let postChartsUserPvRequestSchema = S.object(s => ({
|
|
520
520
|
span: s.f("span", S.string),
|
|
521
|
-
limit: s.
|
|
522
|
-
offset: s.
|
|
521
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
522
|
+
offset: s.f("offset", S.option(S.int)),
|
|
523
523
|
userId: s.f("userId", S.string)
|
|
524
524
|
}));
|
|
525
525
|
|
|
@@ -540,8 +540,8 @@ function postChartsUserPv(body, fetch) {
|
|
|
540
540
|
|
|
541
541
|
let getChartsUserReactionsRequestSchema = S.object(s => ({
|
|
542
542
|
span: s.f("span", S.string),
|
|
543
|
-
limit: s.
|
|
544
|
-
offset: s.
|
|
543
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
544
|
+
offset: s.f("offset", S.option(S.int)),
|
|
545
545
|
userId: s.f("userId", S.string)
|
|
546
546
|
}));
|
|
547
547
|
|
|
@@ -561,8 +561,8 @@ function getChartsUserReactions(body, fetch) {
|
|
|
561
561
|
|
|
562
562
|
let postChartsUserReactionsRequestSchema = S.object(s => ({
|
|
563
563
|
span: s.f("span", S.string),
|
|
564
|
-
limit: s.
|
|
565
|
-
offset: s.
|
|
564
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
565
|
+
offset: s.f("offset", S.option(S.int)),
|
|
566
566
|
userId: s.f("userId", S.string)
|
|
567
567
|
}));
|
|
568
568
|
|
|
@@ -582,8 +582,8 @@ function postChartsUserReactions(body, fetch) {
|
|
|
582
582
|
|
|
583
583
|
let getChartsUsersRequestSchema = S.object(s => ({
|
|
584
584
|
span: s.f("span", S.string),
|
|
585
|
-
limit: s.
|
|
586
|
-
offset: s.
|
|
585
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
586
|
+
offset: s.f("offset", S.option(S.int))
|
|
587
587
|
}));
|
|
588
588
|
|
|
589
589
|
let getChartsUsersResponse_1Schema = S.object(s => ({
|
|
@@ -604,8 +604,8 @@ function getChartsUsers(body, fetch) {
|
|
|
604
604
|
|
|
605
605
|
let postChartsUsersRequestSchema = S.object(s => ({
|
|
606
606
|
span: s.f("span", S.string),
|
|
607
|
-
limit: s.
|
|
608
|
-
offset: s.
|
|
607
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 500, undefined))),
|
|
608
|
+
offset: s.f("offset", S.option(S.int))
|
|
609
609
|
}));
|
|
610
610
|
|
|
611
611
|
let postChartsUsersResponse_1Schema = S.object(s => ({
|
|
@@ -7,8 +7,8 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postClipsCreateRequestSchema = S.object(s => ({
|
|
9
9
|
name: s.f("name", S.max(S.min(S.string, 1, undefined), 100, undefined)),
|
|
10
|
-
isPublic: s.
|
|
11
|
-
description: s.
|
|
10
|
+
isPublic: s.f("isPublic", S.option(S.bool)),
|
|
11
|
+
description: s.f("description", S.option(S.max(S.string, 2048, undefined)))
|
|
12
12
|
}));
|
|
13
13
|
|
|
14
14
|
let postClipsCreateResponseSchema = MisskeyIoComponentSchemas.Clip.schema;
|
|
@@ -46,9 +46,9 @@ function postClipsShow(body, fetch) {
|
|
|
46
46
|
|
|
47
47
|
let postClipsUpdateRequestSchema = S.object(s => ({
|
|
48
48
|
clipId: s.f("clipId", S.string),
|
|
49
|
-
name: s.
|
|
50
|
-
isPublic: s.
|
|
51
|
-
description: s.
|
|
49
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
50
|
+
isPublic: s.f("isPublic", S.option(S.bool)),
|
|
51
|
+
description: s.f("description", S.option(S.max(S.string, 2048, undefined)))
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
let postClipsUpdateResponseSchema = MisskeyIoComponentSchemas.Clip.schema;
|