@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
|
@@ -8,17 +8,17 @@ 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.
|
|
12
|
-
userGroupId: s.
|
|
11
|
+
userListId: s.f("userListId", S.option(S.string)),
|
|
12
|
+
userGroupId: s.f("userGroupId", S.option(S.string)),
|
|
13
13
|
keywords: s.f("keywords", S.array(S.array(S.string))),
|
|
14
14
|
excludeKeywords: s.f("excludeKeywords", S.array(S.array(S.string))),
|
|
15
15
|
users: s.f("users", S.array(S.string)),
|
|
16
16
|
caseSensitive: s.f("caseSensitive", S.bool),
|
|
17
|
-
localOnly: s.
|
|
18
|
-
excludeBots: s.
|
|
17
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
18
|
+
excludeBots: s.f("excludeBots", S.option(S.bool)),
|
|
19
19
|
withReplies: s.f("withReplies", S.bool),
|
|
20
20
|
withFile: s.f("withFile", S.bool),
|
|
21
|
-
excludeNotesInSensitiveChannel: s.
|
|
21
|
+
excludeNotesInSensitiveChannel: s.f("excludeNotesInSensitiveChannel", S.option(S.bool))
|
|
22
22
|
}));
|
|
23
23
|
|
|
24
24
|
let postAntennasCreateResponseSchema = KokonectLinkComponentSchemas.Antenna.schema;
|
|
@@ -41,19 +41,19 @@ function postAntennasShow(body, fetch) {
|
|
|
41
41
|
|
|
42
42
|
let postAntennasUpdateRequestSchema = S.object(s => ({
|
|
43
43
|
antennaId: s.f("antennaId", S.string),
|
|
44
|
-
name: s.
|
|
45
|
-
src: s.
|
|
46
|
-
userListId: s.
|
|
47
|
-
userGroupId: s.
|
|
48
|
-
keywords: s.
|
|
49
|
-
excludeKeywords: s.
|
|
50
|
-
users: s.
|
|
51
|
-
caseSensitive: s.
|
|
52
|
-
localOnly: s.
|
|
53
|
-
excludeBots: s.
|
|
54
|
-
withReplies: s.
|
|
55
|
-
withFile: s.
|
|
56
|
-
excludeNotesInSensitiveChannel: s.
|
|
44
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 100, undefined))),
|
|
45
|
+
src: s.f("src", S.option(S.string)),
|
|
46
|
+
userListId: s.f("userListId", S.option(S.string)),
|
|
47
|
+
userGroupId: s.f("userGroupId", S.option(S.string)),
|
|
48
|
+
keywords: s.f("keywords", S.option(S.array(S.array(S.string)))),
|
|
49
|
+
excludeKeywords: s.f("excludeKeywords", S.option(S.array(S.array(S.string)))),
|
|
50
|
+
users: s.f("users", S.option(S.array(S.string))),
|
|
51
|
+
caseSensitive: s.f("caseSensitive", S.option(S.bool)),
|
|
52
|
+
localOnly: s.f("localOnly", S.option(S.bool)),
|
|
53
|
+
excludeBots: s.f("excludeBots", S.option(S.bool)),
|
|
54
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
55
|
+
withFile: s.f("withFile", S.option(S.bool)),
|
|
56
|
+
excludeNotesInSensitiveChannel: s.f("excludeNotesInSensitiveChannel", S.option(S.bool))
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
let postAntennasUpdateResponseSchema = KokonectLinkComponentSchemas.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 = KokonectLinkComponentSchemas.App.schema;
|
|
@@ -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 = KokonectLinkComponentSchemas.Channel.schema;
|
|
@@ -22,11 +22,11 @@ function postChannelsCreate(body, fetch) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
let postChannelsFollowedRequestSchema = S.object(s => ({
|
|
25
|
-
sinceId: s.
|
|
26
|
-
untilId: s.
|
|
27
|
-
sinceDate: s.
|
|
28
|
-
untilDate: s.
|
|
29
|
-
limit: s.
|
|
25
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
26
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
27
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
28
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
29
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
30
30
|
}));
|
|
31
31
|
|
|
32
32
|
let postChannelsFollowedResponseSchema = S.array(KokonectLinkComponentSchemas.Channel.schema);
|
|
@@ -37,11 +37,11 @@ function postChannelsFollowed(body, fetch) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
let postChannelsOwnedRequestSchema = S.object(s => ({
|
|
40
|
-
sinceId: s.
|
|
41
|
-
untilId: s.
|
|
42
|
-
sinceDate: s.
|
|
43
|
-
untilDate: s.
|
|
44
|
-
limit: s.
|
|
40
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
41
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
42
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
43
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
44
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
45
45
|
}));
|
|
46
46
|
|
|
47
47
|
let postChannelsOwnedResponseSchema = S.array(KokonectLinkComponentSchemas.Channel.schema);
|
|
@@ -53,12 +53,12 @@ function postChannelsOwned(body, fetch) {
|
|
|
53
53
|
|
|
54
54
|
let postChannelsSearchRequestSchema = S.object(s => ({
|
|
55
55
|
query: s.f("query", S.string),
|
|
56
|
-
type: s.
|
|
57
|
-
sinceId: s.
|
|
58
|
-
untilId: s.
|
|
59
|
-
sinceDate: s.
|
|
60
|
-
untilDate: s.
|
|
61
|
-
limit: s.
|
|
56
|
+
type: s.f("type", S.option(S.string)),
|
|
57
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
58
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
59
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
60
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
61
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
62
62
|
}));
|
|
63
63
|
|
|
64
64
|
let postChannelsSearchResponseSchema = S.array(KokonectLinkComponentSchemas.Channel.schema);
|
|
@@ -81,14 +81,14 @@ function postChannelsShow(body, fetch) {
|
|
|
81
81
|
|
|
82
82
|
let postChannelsUpdateRequestSchema = S.object(s => ({
|
|
83
83
|
channelId: s.f("channelId", S.string),
|
|
84
|
-
name: s.
|
|
85
|
-
description: s.
|
|
86
|
-
bannerId: s.
|
|
87
|
-
isArchived: s.
|
|
88
|
-
pinnedNoteIds: s.
|
|
89
|
-
color: s.
|
|
90
|
-
isSensitive: s.
|
|
91
|
-
allowRenoteToExternal: s.
|
|
84
|
+
name: s.f("name", S.option(S.max(S.min(S.string, 1, undefined), 128, undefined))),
|
|
85
|
+
description: s.f("description", S.option(S.max(S.min(S.string, 1, undefined), 2048, undefined))),
|
|
86
|
+
bannerId: s.f("bannerId", S.option(S.string)),
|
|
87
|
+
isArchived: s.f("isArchived", S.option(S.bool)),
|
|
88
|
+
pinnedNoteIds: s.f("pinnedNoteIds", S.option(S.array(S.string))),
|
|
89
|
+
color: s.f("color", S.option(S.max(S.min(S.string, 1, undefined), 16, undefined))),
|
|
90
|
+
isSensitive: s.f("isSensitive", S.option(S.bool)),
|
|
91
|
+
allowRenoteToExternal: s.f("allowRenoteToExternal", S.option(S.bool))
|
|
92
92
|
}));
|
|
93
93
|
|
|
94
94
|
let postChannelsUpdateResponseSchema = KokonectLinkComponentSchemas.Channel.schema;
|
|
@@ -6,8 +6,8 @@ S.enableJson();
|
|
|
6
6
|
|
|
7
7
|
let getChartsFederationRequestSchema = 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 getChartsFederationResponseSchema = S.object(s => ({
|
|
@@ -29,8 +29,8 @@ function getChartsFederation(body, fetch) {
|
|
|
29
29
|
|
|
30
30
|
let postChartsFederationRequestSchema = 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 postChartsFederationResponseSchema = S.object(s => ({
|
|
@@ -6,8 +6,8 @@ import * as KokonectLinkComponentSchemas from "./KokonectLinkComponentSchemas.mj
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postChatHistoryRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
room: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
room: s.f("room", S.option(S.bool))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let postChatHistoryResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessage.schema);
|
|
@@ -18,8 +18,8 @@ function postChatHistory(body, fetch) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
let postChatMessagesCreateToRoomRequestSchema = S.object(s => ({
|
|
21
|
-
text: s.
|
|
22
|
-
fileId: s.
|
|
21
|
+
text: s.f("text", S.option(S.max(S.string, 2000, undefined))),
|
|
22
|
+
fileId: s.f("fileId", S.option(S.string)),
|
|
23
23
|
toRoomId: s.f("toRoomId", S.string)
|
|
24
24
|
}));
|
|
25
25
|
|
|
@@ -31,8 +31,8 @@ function postChatMessagesCreateToRoom(body, fetch) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
let postChatMessagesCreateToUserRequestSchema = S.object(s => ({
|
|
34
|
-
text: s.
|
|
35
|
-
fileId: s.
|
|
34
|
+
text: s.f("text", S.option(S.max(S.string, 2000, undefined))),
|
|
35
|
+
fileId: s.f("fileId", S.option(S.string)),
|
|
36
36
|
toUserId: s.f("toUserId", S.string)
|
|
37
37
|
}));
|
|
38
38
|
|
|
@@ -63,11 +63,11 @@ function postChatMessagesReact(body, fetch) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
let postChatMessagesRoomTimelineRequestSchema = S.object(s => ({
|
|
66
|
-
limit: s.
|
|
67
|
-
sinceId: s.
|
|
68
|
-
untilId: s.
|
|
69
|
-
sinceDate: s.
|
|
70
|
-
untilDate: s.
|
|
66
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
67
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
68
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
69
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
70
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
71
71
|
roomId: s.f("roomId", S.string)
|
|
72
72
|
}));
|
|
73
73
|
|
|
@@ -80,9 +80,9 @@ function postChatMessagesRoomTimeline(body, fetch) {
|
|
|
80
80
|
|
|
81
81
|
let postChatMessagesSearchRequestSchema = S.object(s => ({
|
|
82
82
|
query: s.f("query", S.max(S.min(S.string, 1, undefined), 256, undefined)),
|
|
83
|
-
limit: s.
|
|
84
|
-
userId: s.
|
|
85
|
-
roomId: s.
|
|
83
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
84
|
+
userId: s.f("userId", S.option(S.string)),
|
|
85
|
+
roomId: s.f("roomId", S.option(S.string))
|
|
86
86
|
}));
|
|
87
87
|
|
|
88
88
|
let postChatMessagesSearchResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessage.schema);
|
|
@@ -114,11 +114,11 @@ function postChatMessagesUnreact(body, fetch) {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
let postChatMessagesUserTimelineRequestSchema = S.object(s => ({
|
|
117
|
-
limit: s.
|
|
118
|
-
sinceId: s.
|
|
119
|
-
untilId: s.
|
|
120
|
-
sinceDate: s.
|
|
121
|
-
untilDate: s.
|
|
117
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
118
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
119
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
120
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
121
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
122
122
|
userId: s.f("userId", S.string)
|
|
123
123
|
}));
|
|
124
124
|
|
|
@@ -135,7 +135,7 @@ function postChatReadAll(fetch) {
|
|
|
135
135
|
|
|
136
136
|
let postChatRoomsCreateRequestSchema = S.object(s => ({
|
|
137
137
|
name: s.f("name", S.max(S.string, 256, undefined)),
|
|
138
|
-
description: s.
|
|
138
|
+
description: s.f("description", S.option(S.max(S.string, 1024, undefined)))
|
|
139
139
|
}));
|
|
140
140
|
|
|
141
141
|
let postChatRoomsCreateResponseSchema = KokonectLinkComponentSchemas.ChatRoom.schema;
|
|
@@ -185,11 +185,11 @@ function postChatRoomsInvitationsIgnore(body, fetch) {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
let postChatRoomsInvitationsInboxRequestSchema = S.object(s => ({
|
|
188
|
-
limit: s.
|
|
189
|
-
sinceId: s.
|
|
190
|
-
untilId: s.
|
|
191
|
-
sinceDate: s.
|
|
192
|
-
untilDate: s.
|
|
188
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
189
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
190
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
191
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
192
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
193
193
|
}));
|
|
194
194
|
|
|
195
195
|
let postChatRoomsInvitationsInboxResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomInvitation.schema);
|
|
@@ -201,11 +201,11 @@ function postChatRoomsInvitationsInbox(body, fetch) {
|
|
|
201
201
|
|
|
202
202
|
let postChatRoomsInvitationsOutboxRequestSchema = S.object(s => ({
|
|
203
203
|
roomId: s.f("roomId", S.string),
|
|
204
|
-
limit: s.
|
|
205
|
-
sinceId: s.
|
|
206
|
-
untilId: s.
|
|
207
|
-
sinceDate: s.
|
|
208
|
-
untilDate: s.
|
|
204
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
205
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
206
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
207
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
208
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
209
209
|
}));
|
|
210
210
|
|
|
211
211
|
let postChatRoomsInvitationsOutboxResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomInvitation.schema);
|
|
@@ -234,11 +234,11 @@ function postChatRoomsJoin(body, fetch) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
let postChatRoomsJoiningRequestSchema = S.object(s => ({
|
|
237
|
-
limit: s.
|
|
238
|
-
sinceId: s.
|
|
239
|
-
untilId: s.
|
|
240
|
-
sinceDate: s.
|
|
241
|
-
untilDate: s.
|
|
237
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
238
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
239
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
240
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
241
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
242
242
|
}));
|
|
243
243
|
|
|
244
244
|
let postChatRoomsJoiningResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomMembership.schema);
|
|
@@ -259,11 +259,11 @@ function postChatRoomsLeave(body, fetch) {
|
|
|
259
259
|
|
|
260
260
|
let postChatRoomsMembersRequestSchema = S.object(s => ({
|
|
261
261
|
roomId: s.f("roomId", S.string),
|
|
262
|
-
limit: s.
|
|
263
|
-
sinceId: s.
|
|
264
|
-
untilId: s.
|
|
265
|
-
sinceDate: s.
|
|
266
|
-
untilDate: s.
|
|
262
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
263
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
264
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
265
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
266
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
267
267
|
}));
|
|
268
268
|
|
|
269
269
|
let postChatRoomsMembersResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomMembership.schema);
|
|
@@ -284,11 +284,11 @@ function postChatRoomsMute(body, fetch) {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
let postChatRoomsOwnedRequestSchema = S.object(s => ({
|
|
287
|
-
limit: s.
|
|
288
|
-
sinceId: s.
|
|
289
|
-
untilId: s.
|
|
290
|
-
sinceDate: s.
|
|
291
|
-
untilDate: s.
|
|
287
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
288
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
289
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
290
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
291
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
292
292
|
}));
|
|
293
293
|
|
|
294
294
|
let postChatRoomsOwnedResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoom.schema);
|
|
@@ -311,8 +311,8 @@ function postChatRoomsShow(body, fetch) {
|
|
|
311
311
|
|
|
312
312
|
let postChatRoomsUpdateRequestSchema = S.object(s => ({
|
|
313
313
|
roomId: s.f("roomId", S.string),
|
|
314
|
-
name: s.
|
|
315
|
-
description: s.
|
|
314
|
+
name: s.f("name", S.option(S.max(S.string, 256, undefined))),
|
|
315
|
+
description: s.f("description", S.option(S.max(S.string, 1024, undefined)))
|
|
316
316
|
}));
|
|
317
317
|
|
|
318
318
|
let postChatRoomsUpdateResponseSchema = KokonectLinkComponentSchemas.ChatRoom.schema;
|
|
@@ -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 = KokonectLinkComponentSchemas.Clip.schema;
|
|
@@ -19,11 +19,11 @@ function postClipsCreate(body, fetch) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
let postClipsListRequestSchema = S.object(s => ({
|
|
22
|
-
limit: s.
|
|
23
|
-
sinceId: s.
|
|
24
|
-
untilId: s.
|
|
25
|
-
sinceDate: s.
|
|
26
|
-
untilDate: s.
|
|
22
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
23
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
24
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
25
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
26
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
27
27
|
}));
|
|
28
28
|
|
|
29
29
|
let postClipsListResponseSchema = S.array(KokonectLinkComponentSchemas.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 = KokonectLinkComponentSchemas.Clip.schema;
|