@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
|
@@ -24,17 +24,17 @@ type postAntennasCreateRequest = {
|
|
|
24
24
|
let postAntennasCreateRequestSchema = S.object(s => {
|
|
25
25
|
name: s.field("name", S.string->S.min(1)->S.max(100)),
|
|
26
26
|
src: s.field("src", S.string),
|
|
27
|
-
userListId: s.
|
|
28
|
-
userGroupId: s.
|
|
27
|
+
userListId: s.field("userListId", S.option(S.string)),
|
|
28
|
+
userGroupId: s.field("userGroupId", S.option(S.string)),
|
|
29
29
|
keywords: s.field("keywords", S.array(S.array(S.string))),
|
|
30
30
|
excludeKeywords: s.field("excludeKeywords", S.array(S.array(S.string))),
|
|
31
31
|
users: s.field("users", S.array(S.string)),
|
|
32
32
|
caseSensitive: s.field("caseSensitive", S.bool),
|
|
33
|
-
localOnly: s.
|
|
34
|
-
excludeBots: s.
|
|
33
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
34
|
+
excludeBots: s.field("excludeBots", S.option(S.bool)),
|
|
35
35
|
withReplies: s.field("withReplies", S.bool),
|
|
36
36
|
withFile: s.field("withFile", S.bool),
|
|
37
|
-
excludeNotesInSensitiveChannel: s.
|
|
37
|
+
excludeNotesInSensitiveChannel: s.field("excludeNotesInSensitiveChannel", S.option(S.bool)),
|
|
38
38
|
})
|
|
39
39
|
|
|
40
40
|
type postAntennasCreateResponse = KokonectLinkComponentSchemas.Antenna.t
|
|
@@ -112,19 +112,19 @@ type postAntennasUpdateRequest = {
|
|
|
112
112
|
|
|
113
113
|
let postAntennasUpdateRequestSchema = S.object(s => {
|
|
114
114
|
antennaId: s.field("antennaId", S.string),
|
|
115
|
-
name: s.
|
|
116
|
-
src: s.
|
|
117
|
-
userListId: s.
|
|
118
|
-
userGroupId: s.
|
|
119
|
-
keywords: s.
|
|
120
|
-
excludeKeywords: s.
|
|
121
|
-
users: s.
|
|
122
|
-
caseSensitive: s.
|
|
123
|
-
localOnly: s.
|
|
124
|
-
excludeBots: s.
|
|
125
|
-
withReplies: s.
|
|
126
|
-
withFile: s.
|
|
127
|
-
excludeNotesInSensitiveChannel: s.
|
|
115
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.max(100))),
|
|
116
|
+
src: s.field("src", S.option(S.string)),
|
|
117
|
+
userListId: s.field("userListId", S.option(S.string)),
|
|
118
|
+
userGroupId: s.field("userGroupId", S.option(S.string)),
|
|
119
|
+
keywords: s.field("keywords", S.option(S.array(S.array(S.string)))),
|
|
120
|
+
excludeKeywords: s.field("excludeKeywords", S.option(S.array(S.array(S.string)))),
|
|
121
|
+
users: s.field("users", S.option(S.array(S.string))),
|
|
122
|
+
caseSensitive: s.field("caseSensitive", S.option(S.bool)),
|
|
123
|
+
localOnly: s.field("localOnly", S.option(S.bool)),
|
|
124
|
+
excludeBots: s.field("excludeBots", S.option(S.bool)),
|
|
125
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
126
|
+
withFile: s.field("withFile", S.option(S.bool)),
|
|
127
|
+
excludeNotesInSensitiveChannel: s.field("excludeNotesInSensitiveChannel", S.option(S.bool)),
|
|
128
128
|
})
|
|
129
129
|
|
|
130
130
|
type postAntennasUpdateResponse = KokonectLinkComponentSchemas.Antenna.t
|
|
@@ -16,7 +16,7 @@ let postAppCreateRequestSchema = S.object(s => {
|
|
|
16
16
|
name: s.field("name", S.string),
|
|
17
17
|
description: s.field("description", S.string),
|
|
18
18
|
permission: s.field("permission", S.array(S.string)),
|
|
19
|
-
callbackUrl: s.
|
|
19
|
+
callbackUrl: s.field("callbackUrl", S.option(S.string)),
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
type postAppCreateResponse = KokonectLinkComponentSchemas.App.t
|
|
@@ -16,11 +16,11 @@ type postChannelsCreateRequest = {
|
|
|
16
16
|
|
|
17
17
|
let postChannelsCreateRequestSchema = S.object(s => {
|
|
18
18
|
name: s.field("name", S.string->S.min(1)->S.max(128)),
|
|
19
|
-
description: s.
|
|
20
|
-
bannerId: s.
|
|
21
|
-
color: s.
|
|
22
|
-
isSensitive: s.
|
|
23
|
-
allowRenoteToExternal: s.
|
|
19
|
+
description: s.field("description", S.option(S.string->S.min(1)->S.max(2048))),
|
|
20
|
+
bannerId: s.field("bannerId", S.option(S.string)),
|
|
21
|
+
color: s.field("color", S.option(S.string->S.min(1)->S.max(16))),
|
|
22
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
23
|
+
allowRenoteToExternal: s.field("allowRenoteToExternal", S.option(S.bool)),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
type postChannelsCreateResponse = KokonectLinkComponentSchemas.Channel.t
|
|
@@ -56,11 +56,11 @@ type postChannelsFollowedRequest = {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
let postChannelsFollowedRequestSchema = S.object(s => {
|
|
59
|
-
sinceId: s.
|
|
60
|
-
untilId: s.
|
|
61
|
-
sinceDate: s.
|
|
62
|
-
untilDate: s.
|
|
63
|
-
limit: s.
|
|
59
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
60
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
61
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
62
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
63
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
64
64
|
})
|
|
65
65
|
|
|
66
66
|
type postChannelsFollowedResponse = array<KokonectLinkComponentSchemas.Channel.t>
|
|
@@ -96,11 +96,11 @@ type postChannelsOwnedRequest = {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
let postChannelsOwnedRequestSchema = S.object(s => {
|
|
99
|
-
sinceId: s.
|
|
100
|
-
untilId: s.
|
|
101
|
-
sinceDate: s.
|
|
102
|
-
untilDate: s.
|
|
103
|
-
limit: s.
|
|
99
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
100
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
101
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
102
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
103
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
104
104
|
})
|
|
105
105
|
|
|
106
106
|
type postChannelsOwnedResponse = array<KokonectLinkComponentSchemas.Channel.t>
|
|
@@ -139,12 +139,12 @@ type postChannelsSearchRequest = {
|
|
|
139
139
|
|
|
140
140
|
let postChannelsSearchRequestSchema = S.object(s => {
|
|
141
141
|
query: s.field("query", S.string),
|
|
142
|
-
type_: s.
|
|
143
|
-
sinceId: s.
|
|
144
|
-
untilId: s.
|
|
145
|
-
sinceDate: s.
|
|
146
|
-
untilDate: s.
|
|
147
|
-
limit: s.
|
|
142
|
+
type_: s.field("type", S.option(S.string)),
|
|
143
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
144
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
145
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
146
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
147
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
148
148
|
})
|
|
149
149
|
|
|
150
150
|
type postChannelsSearchResponse = array<KokonectLinkComponentSchemas.Channel.t>
|
|
@@ -217,14 +217,14 @@ type postChannelsUpdateRequest = {
|
|
|
217
217
|
|
|
218
218
|
let postChannelsUpdateRequestSchema = S.object(s => {
|
|
219
219
|
channelId: s.field("channelId", S.string),
|
|
220
|
-
name: s.
|
|
221
|
-
description: s.
|
|
222
|
-
bannerId: s.
|
|
223
|
-
isArchived: s.
|
|
224
|
-
pinnedNoteIds: s.
|
|
225
|
-
color: s.
|
|
226
|
-
isSensitive: s.
|
|
227
|
-
allowRenoteToExternal: s.
|
|
220
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.max(128))),
|
|
221
|
+
description: s.field("description", S.option(S.string->S.min(1)->S.max(2048))),
|
|
222
|
+
bannerId: s.field("bannerId", S.option(S.string)),
|
|
223
|
+
isArchived: s.field("isArchived", S.option(S.bool)),
|
|
224
|
+
pinnedNoteIds: s.field("pinnedNoteIds", S.option(S.array(S.string))),
|
|
225
|
+
color: s.field("color", S.option(S.string->S.min(1)->S.max(16))),
|
|
226
|
+
isSensitive: s.field("isSensitive", S.option(S.bool)),
|
|
227
|
+
allowRenoteToExternal: s.field("allowRenoteToExternal", S.option(S.bool)),
|
|
228
228
|
})
|
|
229
229
|
|
|
230
230
|
type postChannelsUpdateResponse = KokonectLinkComponentSchemas.Channel.t
|
|
@@ -13,8 +13,8 @@ type getChartsFederationRequest = {
|
|
|
13
13
|
|
|
14
14
|
let getChartsFederationRequestSchema = S.object(s => {
|
|
15
15
|
span: s.field("span", S.string),
|
|
16
|
-
limit: s.
|
|
17
|
-
offset: s.
|
|
16
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(500))),
|
|
17
|
+
offset: s.field("offset", S.option(S.int)),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
type getChartsFederationResponse = {
|
|
@@ -69,8 +69,8 @@ type postChartsFederationRequest = {
|
|
|
69
69
|
|
|
70
70
|
let postChartsFederationRequestSchema = S.object(s => {
|
|
71
71
|
span: s.field("span", S.string),
|
|
72
|
-
limit: s.
|
|
73
|
-
offset: s.
|
|
72
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(500))),
|
|
73
|
+
offset: s.field("offset", S.option(S.int)),
|
|
74
74
|
})
|
|
75
75
|
|
|
76
76
|
type postChartsFederationResponse = {
|
|
@@ -11,8 +11,8 @@ type postChatHistoryRequest = {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
let postChatHistoryRequestSchema = S.object(s => {
|
|
14
|
-
limit: s.
|
|
15
|
-
room: s.
|
|
14
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
15
|
+
room: s.field("room", S.option(S.bool)),
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
type postChatHistoryResponse = array<KokonectLinkComponentSchemas.ChatMessage.t>
|
|
@@ -46,8 +46,8 @@ type postChatMessagesCreateToRoomRequest = {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
let postChatMessagesCreateToRoomRequestSchema = S.object(s => {
|
|
49
|
-
text: s.
|
|
50
|
-
fileId: s.
|
|
49
|
+
text: s.field("text", S.option(S.string->S.max(2000))),
|
|
50
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
51
51
|
toRoomId: s.field("toRoomId", S.string),
|
|
52
52
|
})
|
|
53
53
|
|
|
@@ -82,8 +82,8 @@ type postChatMessagesCreateToUserRequest = {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
let postChatMessagesCreateToUserRequestSchema = S.object(s => {
|
|
85
|
-
text: s.
|
|
86
|
-
fileId: s.
|
|
85
|
+
text: s.field("text", S.option(S.string->S.max(2000))),
|
|
86
|
+
fileId: s.field("fileId", S.option(S.string)),
|
|
87
87
|
toUserId: s.field("toUserId", S.string),
|
|
88
88
|
})
|
|
89
89
|
|
|
@@ -183,11 +183,11 @@ type postChatMessagesRoomTimelineRequest = {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
let postChatMessagesRoomTimelineRequestSchema = S.object(s => {
|
|
186
|
-
limit: s.
|
|
187
|
-
sinceId: s.
|
|
188
|
-
untilId: s.
|
|
189
|
-
sinceDate: s.
|
|
190
|
-
untilDate: s.
|
|
186
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
187
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
188
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
189
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
190
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
191
191
|
roomId: s.field("roomId", S.string),
|
|
192
192
|
})
|
|
193
193
|
|
|
@@ -224,9 +224,9 @@ type postChatMessagesSearchRequest = {
|
|
|
224
224
|
|
|
225
225
|
let postChatMessagesSearchRequestSchema = S.object(s => {
|
|
226
226
|
query: s.field("query", S.string->S.min(1)->S.max(256)),
|
|
227
|
-
limit: s.
|
|
228
|
-
userId: s.
|
|
229
|
-
roomId: s.
|
|
227
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
228
|
+
userId: s.field("userId", S.option(S.string)),
|
|
229
|
+
roomId: s.field("roomId", S.option(S.string)),
|
|
230
230
|
})
|
|
231
231
|
|
|
232
232
|
type postChatMessagesSearchResponse = array<KokonectLinkComponentSchemas.ChatMessage.t>
|
|
@@ -327,11 +327,11 @@ type postChatMessagesUserTimelineRequest = {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
let postChatMessagesUserTimelineRequestSchema = S.object(s => {
|
|
330
|
-
limit: s.
|
|
331
|
-
sinceId: s.
|
|
332
|
-
untilId: s.
|
|
333
|
-
sinceDate: s.
|
|
334
|
-
untilDate: s.
|
|
330
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
331
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
332
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
333
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
334
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
335
335
|
userId: s.field("userId", S.string),
|
|
336
336
|
})
|
|
337
337
|
|
|
@@ -388,7 +388,7 @@ type postChatRoomsCreateRequest = {
|
|
|
388
388
|
|
|
389
389
|
let postChatRoomsCreateRequestSchema = S.object(s => {
|
|
390
390
|
name: s.field("name", S.string->S.max(256)),
|
|
391
|
-
description: s.
|
|
391
|
+
description: s.field("description", S.option(S.string->S.max(1024))),
|
|
392
392
|
})
|
|
393
393
|
|
|
394
394
|
type postChatRoomsCreateResponse = KokonectLinkComponentSchemas.ChatRoom.t
|
|
@@ -548,11 +548,11 @@ type postChatRoomsInvitationsInboxRequest = {
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
let postChatRoomsInvitationsInboxRequestSchema = S.object(s => {
|
|
551
|
-
limit: s.
|
|
552
|
-
sinceId: s.
|
|
553
|
-
untilId: s.
|
|
554
|
-
sinceDate: s.
|
|
555
|
-
untilDate: s.
|
|
551
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
552
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
553
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
554
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
555
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
556
556
|
})
|
|
557
557
|
|
|
558
558
|
type postChatRoomsInvitationsInboxResponse = array<KokonectLinkComponentSchemas.ChatRoomInvitation.t>
|
|
@@ -590,11 +590,11 @@ type postChatRoomsInvitationsOutboxRequest = {
|
|
|
590
590
|
|
|
591
591
|
let postChatRoomsInvitationsOutboxRequestSchema = S.object(s => {
|
|
592
592
|
roomId: s.field("roomId", S.string),
|
|
593
|
-
limit: s.
|
|
594
|
-
sinceId: s.
|
|
595
|
-
untilId: s.
|
|
596
|
-
sinceDate: s.
|
|
597
|
-
untilDate: s.
|
|
593
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
594
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
595
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
596
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
597
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
598
598
|
})
|
|
599
599
|
|
|
600
600
|
type postChatRoomsInvitationsOutboxResponse = array<KokonectLinkComponentSchemas.ChatRoomInvitation.t>
|
|
@@ -690,11 +690,11 @@ type postChatRoomsJoiningRequest = {
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
let postChatRoomsJoiningRequestSchema = S.object(s => {
|
|
693
|
-
limit: s.
|
|
694
|
-
sinceId: s.
|
|
695
|
-
untilId: s.
|
|
696
|
-
sinceDate: s.
|
|
697
|
-
untilDate: s.
|
|
693
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
694
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
695
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
696
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
697
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
698
698
|
})
|
|
699
699
|
|
|
700
700
|
type postChatRoomsJoiningResponse = array<KokonectLinkComponentSchemas.ChatRoomMembership.t>
|
|
@@ -762,11 +762,11 @@ type postChatRoomsMembersRequest = {
|
|
|
762
762
|
|
|
763
763
|
let postChatRoomsMembersRequestSchema = S.object(s => {
|
|
764
764
|
roomId: s.field("roomId", S.string),
|
|
765
|
-
limit: s.
|
|
766
|
-
sinceId: s.
|
|
767
|
-
untilId: s.
|
|
768
|
-
sinceDate: s.
|
|
769
|
-
untilDate: s.
|
|
765
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
766
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
767
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
768
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
769
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
770
770
|
})
|
|
771
771
|
|
|
772
772
|
type postChatRoomsMembersResponse = array<KokonectLinkComponentSchemas.ChatRoomMembership.t>
|
|
@@ -834,11 +834,11 @@ type postChatRoomsOwnedRequest = {
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
let postChatRoomsOwnedRequestSchema = S.object(s => {
|
|
837
|
-
limit: s.
|
|
838
|
-
sinceId: s.
|
|
839
|
-
untilId: s.
|
|
840
|
-
sinceDate: s.
|
|
841
|
-
untilDate: s.
|
|
837
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
838
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
839
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
840
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
841
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
842
842
|
})
|
|
843
843
|
|
|
844
844
|
type postChatRoomsOwnedResponse = array<KokonectLinkComponentSchemas.ChatRoom.t>
|
|
@@ -905,8 +905,8 @@ type postChatRoomsUpdateRequest = {
|
|
|
905
905
|
|
|
906
906
|
let postChatRoomsUpdateRequestSchema = S.object(s => {
|
|
907
907
|
roomId: s.field("roomId", S.string),
|
|
908
|
-
name: s.
|
|
909
|
-
description: s.
|
|
908
|
+
name: s.field("name", S.option(S.string->S.max(256))),
|
|
909
|
+
description: s.field("description", S.option(S.string->S.max(1024))),
|
|
910
910
|
})
|
|
911
911
|
|
|
912
912
|
type postChatRoomsUpdateResponse = KokonectLinkComponentSchemas.ChatRoom.t
|
|
@@ -13,8 +13,8 @@ type postClipsCreateRequest = {
|
|
|
13
13
|
|
|
14
14
|
let postClipsCreateRequestSchema = S.object(s => {
|
|
15
15
|
name: s.field("name", S.string->S.min(1)->S.max(100)),
|
|
16
|
-
isPublic: s.
|
|
17
|
-
description: s.
|
|
16
|
+
isPublic: s.field("isPublic", S.option(S.bool)),
|
|
17
|
+
description: s.field("description", S.option(S.string->S.max(2048))),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
type postClipsCreateResponse = KokonectLinkComponentSchemas.Clip.t
|
|
@@ -50,11 +50,11 @@ type postClipsListRequest = {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
let postClipsListRequestSchema = S.object(s => {
|
|
53
|
-
limit: s.
|
|
54
|
-
sinceId: s.
|
|
55
|
-
untilId: s.
|
|
56
|
-
sinceDate: s.
|
|
57
|
-
untilDate: s.
|
|
53
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
54
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
55
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
56
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
57
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
type postClipsListResponse = array<KokonectLinkComponentSchemas.Clip.t>
|
|
@@ -122,9 +122,9 @@ type postClipsUpdateRequest = {
|
|
|
122
122
|
|
|
123
123
|
let postClipsUpdateRequestSchema = S.object(s => {
|
|
124
124
|
clipId: s.field("clipId", S.string),
|
|
125
|
-
name: s.
|
|
126
|
-
isPublic: s.
|
|
127
|
-
description: s.
|
|
125
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.max(100))),
|
|
126
|
+
isPublic: s.field("isPublic", S.option(S.bool)),
|
|
127
|
+
description: s.field("description", S.option(S.string->S.max(2048))),
|
|
128
128
|
})
|
|
129
129
|
|
|
130
130
|
type postClipsUpdateResponse = KokonectLinkComponentSchemas.Clip.t
|