@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
|
@@ -13,8 +13,8 @@ type postNotificationsCreateRequest = {
|
|
|
13
13
|
|
|
14
14
|
let postNotificationsCreateRequestSchema = S.object(s => {
|
|
15
15
|
body: s.field("body", S.string),
|
|
16
|
-
header: s.
|
|
17
|
-
icon: s.
|
|
16
|
+
header: s.field("header", S.option(S.string)),
|
|
17
|
+
icon: s.field("icon", S.option(S.string)),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
type postNotificationsCreateResponse = unit
|
|
@@ -21,14 +21,14 @@ type postPagesCreateRequest = {
|
|
|
21
21
|
let postPagesCreateRequestSchema = S.object(s => {
|
|
22
22
|
title: s.field("title", S.string),
|
|
23
23
|
name: s.field("name", S.string->S.min(1)->S.pattern(/^[^\s:\/?#\[\]@!$&'()*+,;=\\%\x00-\x20]{1,256}$/)),
|
|
24
|
-
summary: s.
|
|
24
|
+
summary: s.field("summary", S.option(S.string)),
|
|
25
25
|
content: s.field("content", S.array(S.dict(S.json))),
|
|
26
26
|
variables: s.field("variables", S.array(S.dict(S.json))),
|
|
27
27
|
script: s.field("script", S.string),
|
|
28
|
-
eyeCatchingImageId: s.
|
|
29
|
-
font: s.
|
|
30
|
-
alignCenter: s.
|
|
31
|
-
hideTitleWhenPinned: s.
|
|
28
|
+
eyeCatchingImageId: s.field("eyeCatchingImageId", S.option(S.string)),
|
|
29
|
+
font: s.field("font", S.option(S.string)),
|
|
30
|
+
alignCenter: s.field("alignCenter", S.option(S.bool)),
|
|
31
|
+
hideTitleWhenPinned: s.field("hideTitleWhenPinned", S.option(S.bool)),
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
type postPagesCreateResponse = KokonectLinkComponentSchemas.Page.t
|
|
@@ -109,16 +109,16 @@ type postPagesUpdateRequest = {
|
|
|
109
109
|
|
|
110
110
|
let postPagesUpdateRequestSchema = S.object(s => {
|
|
111
111
|
pageId: s.field("pageId", S.string),
|
|
112
|
-
title: s.
|
|
113
|
-
name: s.
|
|
114
|
-
summary: s.
|
|
112
|
+
title: s.field("title", S.option(S.string)),
|
|
113
|
+
name: s.field("name", S.option(S.string->S.min(1)->S.pattern(/^[^\s:\/?#\[\]@!$&'()*+,;=\\%\x00-\x20]{1,256}$/))),
|
|
114
|
+
summary: s.field("summary", S.option(S.string)),
|
|
115
115
|
content: s.field("content", S.option(S.array(S.dict(S.json)))),
|
|
116
116
|
variables: s.field("variables", S.option(S.array(S.dict(S.json)))),
|
|
117
|
-
script: s.
|
|
118
|
-
eyeCatchingImageId: s.
|
|
119
|
-
font: s.
|
|
120
|
-
alignCenter: s.
|
|
121
|
-
hideTitleWhenPinned: s.
|
|
117
|
+
script: s.field("script", S.option(S.string)),
|
|
118
|
+
eyeCatchingImageId: s.field("eyeCatchingImageId", S.option(S.string)),
|
|
119
|
+
font: s.field("font", S.option(S.string)),
|
|
120
|
+
alignCenter: s.field("alignCenter", S.option(S.bool)),
|
|
121
|
+
hideTitleWhenPinned: s.field("hideTitleWhenPinned", S.option(S.bool)),
|
|
122
122
|
})
|
|
123
123
|
|
|
124
124
|
type postPagesUpdateResponse = unit
|
|
@@ -16,11 +16,11 @@ type postRolesNotesRequest = {
|
|
|
16
16
|
|
|
17
17
|
let postRolesNotesRequestSchema = S.object(s => {
|
|
18
18
|
roleId: s.field("roleId", S.string),
|
|
19
|
-
limit: s.
|
|
20
|
-
sinceId: s.
|
|
21
|
-
untilId: s.
|
|
22
|
-
sinceDate: s.
|
|
23
|
-
untilDate: s.
|
|
19
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
20
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
21
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
22
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
23
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
type postRolesNotesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -90,11 +90,11 @@ type postRolesUsersRequest = {
|
|
|
90
90
|
|
|
91
91
|
let postRolesUsersRequestSchema = S.object(s => {
|
|
92
92
|
roleId: s.field("roleId", S.string),
|
|
93
|
-
sinceId: s.
|
|
94
|
-
untilId: s.
|
|
95
|
-
sinceDate: s.
|
|
96
|
-
untilDate: s.
|
|
97
|
-
limit: s.
|
|
93
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
94
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
95
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
96
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
97
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
98
98
|
})
|
|
99
99
|
|
|
100
100
|
type postRolesUsersResponse_1 = {
|
|
@@ -15,12 +15,12 @@ type postUsersRequest = {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
let postUsersRequestSchema = S.object(s => {
|
|
18
|
-
limit: s.
|
|
19
|
-
offset: s.
|
|
20
|
-
sort: s.
|
|
21
|
-
state: s.
|
|
22
|
-
origin: s.
|
|
23
|
-
hostname: s.
|
|
18
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
19
|
+
offset: s.field("offset", S.option(S.int)),
|
|
20
|
+
sort: s.field("sort", S.option(S.string)),
|
|
21
|
+
state: s.field("state", S.option(S.string)),
|
|
22
|
+
origin: s.field("origin", S.option(S.string)),
|
|
23
|
+
hostname: s.field("hostname", S.option(S.string)),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
type postUsersResponse = array<KokonectLinkComponentSchemas.UserDetailed.t>
|
|
@@ -58,11 +58,11 @@ type postUsersClipsRequest = {
|
|
|
58
58
|
|
|
59
59
|
let postUsersClipsRequestSchema = S.object(s => {
|
|
60
60
|
userId: s.field("userId", S.string),
|
|
61
|
-
limit: s.
|
|
62
|
-
sinceId: s.
|
|
63
|
-
untilId: s.
|
|
64
|
-
sinceDate: s.
|
|
65
|
-
untilDate: s.
|
|
61
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
62
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
63
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
64
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
65
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
66
66
|
})
|
|
67
67
|
|
|
68
68
|
type postUsersClipsResponse = array<KokonectLinkComponentSchemas.Clip.t>
|
|
@@ -100,11 +100,11 @@ type postUsersFlashsRequest = {
|
|
|
100
100
|
|
|
101
101
|
let postUsersFlashsRequestSchema = S.object(s => {
|
|
102
102
|
userId: s.field("userId", S.string),
|
|
103
|
-
limit: s.
|
|
104
|
-
sinceId: s.
|
|
105
|
-
untilId: s.
|
|
106
|
-
sinceDate: s.
|
|
107
|
-
untilDate: s.
|
|
103
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
104
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
105
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
106
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
107
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
108
108
|
})
|
|
109
109
|
|
|
110
110
|
type postUsersFlashsResponse = array<KokonectLinkComponentSchemas.Flash.t>
|
|
@@ -140,11 +140,11 @@ type postUsersFollowersRequest = {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
let postUsersFollowersRequestSchema = S.object(s => {
|
|
143
|
-
sinceId: s.
|
|
144
|
-
untilId: s.
|
|
145
|
-
sinceDate: s.
|
|
146
|
-
untilDate: s.
|
|
147
|
-
limit: s.
|
|
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 postUsersFollowersResponse = array<KokonectLinkComponentSchemas.Following.t>
|
|
@@ -181,12 +181,12 @@ type postUsersFollowingRequest = {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
let postUsersFollowingRequestSchema = S.object(s => {
|
|
184
|
-
sinceId: s.
|
|
185
|
-
untilId: s.
|
|
186
|
-
sinceDate: s.
|
|
187
|
-
untilDate: s.
|
|
188
|
-
limit: s.
|
|
189
|
-
birthday: s.
|
|
184
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
185
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
186
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
187
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
188
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
189
|
+
birthday: s.field("birthday", S.option(S.string->S.pattern(/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/))),
|
|
190
190
|
})
|
|
191
191
|
|
|
192
192
|
type postUsersFollowingResponse = array<KokonectLinkComponentSchemas.Following.t>
|
|
@@ -224,11 +224,11 @@ type postUsersGalleryPostsRequest = {
|
|
|
224
224
|
|
|
225
225
|
let postUsersGalleryPostsRequestSchema = S.object(s => {
|
|
226
226
|
userId: s.field("userId", S.string),
|
|
227
|
-
limit: s.
|
|
228
|
-
sinceId: s.
|
|
229
|
-
untilId: s.
|
|
230
|
-
sinceDate: s.
|
|
231
|
-
untilDate: s.
|
|
227
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
228
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
229
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
230
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
231
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
232
232
|
})
|
|
233
233
|
|
|
234
234
|
type postUsersGalleryPostsResponse = array<KokonectLinkComponentSchemas.GalleryPost.t>
|
|
@@ -272,17 +272,17 @@ type postUsersNotesRequest = {
|
|
|
272
272
|
|
|
273
273
|
let postUsersNotesRequestSchema = S.object(s => {
|
|
274
274
|
userId: s.field("userId", S.string),
|
|
275
|
-
withReplies: s.
|
|
276
|
-
withRenotes: s.
|
|
277
|
-
withChannelNotes: s.
|
|
278
|
-
limit: s.
|
|
279
|
-
sinceId: s.
|
|
280
|
-
untilId: s.
|
|
281
|
-
sinceDate: s.
|
|
282
|
-
untilDate: s.
|
|
283
|
-
allowPartial: s.
|
|
284
|
-
withFiles: s.
|
|
285
|
-
withCats: s.
|
|
275
|
+
withReplies: s.field("withReplies", S.option(S.bool)),
|
|
276
|
+
withRenotes: s.field("withRenotes", S.option(S.bool)),
|
|
277
|
+
withChannelNotes: s.field("withChannelNotes", S.option(S.bool)),
|
|
278
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
279
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
280
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
281
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
282
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
283
|
+
allowPartial: s.field("allowPartial", S.option(S.bool)),
|
|
284
|
+
withFiles: s.field("withFiles", S.option(S.bool)),
|
|
285
|
+
withCats: s.field("withCats", S.option(S.bool)),
|
|
286
286
|
})
|
|
287
287
|
|
|
288
288
|
type postUsersNotesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
@@ -320,11 +320,11 @@ type postUsersPagesRequest = {
|
|
|
320
320
|
|
|
321
321
|
let postUsersPagesRequestSchema = S.object(s => {
|
|
322
322
|
userId: s.field("userId", S.string),
|
|
323
|
-
limit: s.
|
|
324
|
-
sinceId: s.
|
|
325
|
-
untilId: s.
|
|
326
|
-
sinceDate: s.
|
|
327
|
-
untilDate: s.
|
|
323
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
324
|
+
sinceId: s.field("sinceId", S.option(S.string)),
|
|
325
|
+
untilId: s.field("untilId", S.option(S.string)),
|
|
326
|
+
sinceDate: s.field("sinceDate", S.option(S.int)),
|
|
327
|
+
untilDate: s.field("untilDate", S.option(S.int)),
|
|
328
328
|
})
|
|
329
329
|
|
|
330
330
|
type postUsersPagesResponse = array<KokonectLinkComponentSchemas.Page.t>
|
|
@@ -389,8 +389,8 @@ type postUsersSearchByUsernameAndHostRequest = {
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
let postUsersSearchByUsernameAndHostRequestSchema = S.object(s => {
|
|
392
|
-
limit: s.
|
|
393
|
-
detail: s.
|
|
392
|
+
limit: s.field("limit", S.option(S.int->S.min(1)->S.max(100))),
|
|
393
|
+
detail: s.field("detail", S.option(S.bool)),
|
|
394
394
|
})
|
|
395
395
|
|
|
396
396
|
type postUsersSearchByUsernameAndHostResponse = array<KokonectLinkComponentSchemas.User.t>
|
|
@@ -422,7 +422,7 @@ type postUsersShowRequest = {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
let postUsersShowRequestSchema = S.object(s => {
|
|
425
|
-
host: s.
|
|
425
|
+
host: s.field("host", S.option(S.string)),
|
|
426
426
|
})
|
|
427
427
|
|
|
428
428
|
type postUsersShowResponse = array<KokonectLinkComponentSchemas.UserDetailed.t>
|
|
@@ -17,14 +17,14 @@ type postAdminSystemWebhookTestRequest = {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
let postAdminSystemWebhookTestRequest_1Schema = S.object(s => {
|
|
20
|
-
url: s.
|
|
21
|
-
secret: s.
|
|
20
|
+
url: s.field("url", S.option(S.string)),
|
|
21
|
+
secret: s.field("secret", S.option(S.string)),
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
let postAdminSystemWebhookTestRequestSchema = S.object(s => {
|
|
25
25
|
webhookId: s.field("webhookId", S.string),
|
|
26
26
|
type_: s.field("type", S.string),
|
|
27
|
-
override: s.
|
|
27
|
+
override: s.field("override", S.option(postAdminSystemWebhookTestRequest_1Schema)),
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
type postAdminSystemWebhookTestResponse = unit
|
|
@@ -94,14 +94,14 @@ type postIWebhooksTestRequest = {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
let postIWebhooksTestRequest_1Schema = S.object(s => {
|
|
97
|
-
url: s.
|
|
98
|
-
secret: s.
|
|
97
|
+
url: s.field("url", S.option(S.string)),
|
|
98
|
+
secret: s.field("secret", S.option(S.string)),
|
|
99
99
|
})
|
|
100
100
|
|
|
101
101
|
let postIWebhooksTestRequestSchema = S.object(s => {
|
|
102
102
|
webhookId: s.field("webhookId", S.string),
|
|
103
103
|
type_: s.field("type", S.string),
|
|
104
|
-
override: s.
|
|
104
|
+
override: s.field("override", S.option(postIWebhooksTestRequest_1Schema)),
|
|
105
105
|
})
|
|
106
106
|
|
|
107
107
|
type postIWebhooksTestResponse = unit
|