@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
|
@@ -6,8 +6,8 @@ S.enableJson();
|
|
|
6
6
|
|
|
7
7
|
let postNotificationsCreateRequestSchema = S.object(s => ({
|
|
8
8
|
body: s.f("body", S.string),
|
|
9
|
-
header: s.
|
|
10
|
-
icon: s.
|
|
9
|
+
header: s.f("header", S.option(S.string)),
|
|
10
|
+
icon: s.f("icon", S.option(S.string))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
function postNotificationsCreate(body, fetch) {
|
|
@@ -8,14 +8,14 @@ S.enableJson();
|
|
|
8
8
|
let postPagesCreateRequestSchema = S.object(s => ({
|
|
9
9
|
title: s.f("title", S.string),
|
|
10
10
|
name: s.f("name", S.pattern(S.min(S.string, 1, undefined), /^[^\s:\/?#\[\]@!$&'()*+,;=\\%\x00-\x20]{1,256}$/, undefined)),
|
|
11
|
-
summary: s.
|
|
11
|
+
summary: s.f("summary", S.option(S.string)),
|
|
12
12
|
content: s.f("content", S.array(S.dict(S.json))),
|
|
13
13
|
variables: s.f("variables", S.array(S.dict(S.json))),
|
|
14
14
|
script: s.f("script", S.string),
|
|
15
|
-
eyeCatchingImageId: s.
|
|
16
|
-
font: s.
|
|
17
|
-
alignCenter: s.
|
|
18
|
-
hideTitleWhenPinned: s.
|
|
15
|
+
eyeCatchingImageId: s.f("eyeCatchingImageId", S.option(S.string)),
|
|
16
|
+
font: s.f("font", S.option(S.string)),
|
|
17
|
+
alignCenter: s.f("alignCenter", S.option(S.bool)),
|
|
18
|
+
hideTitleWhenPinned: s.f("hideTitleWhenPinned", S.option(S.bool))
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
let postPagesCreateResponseSchema = KokonectLinkComponentSchemas.Page.schema;
|
|
@@ -39,16 +39,16 @@ function postPagesShow(body, fetch) {
|
|
|
39
39
|
|
|
40
40
|
let postPagesUpdateRequestSchema = S.object(s => ({
|
|
41
41
|
pageId: s.f("pageId", S.string),
|
|
42
|
-
title: s.
|
|
43
|
-
name: s.
|
|
44
|
-
summary: s.
|
|
42
|
+
title: s.f("title", S.option(S.string)),
|
|
43
|
+
name: s.f("name", S.option(S.pattern(S.min(S.string, 1, undefined), /^[^\s:\/?#\[\]@!$&'()*+,;=\\%\x00-\x20]{1,256}$/, undefined))),
|
|
44
|
+
summary: s.f("summary", S.option(S.string)),
|
|
45
45
|
content: s.f("content", S.option(S.array(S.dict(S.json)))),
|
|
46
46
|
variables: s.f("variables", S.option(S.array(S.dict(S.json)))),
|
|
47
|
-
script: s.
|
|
48
|
-
eyeCatchingImageId: s.
|
|
49
|
-
font: s.
|
|
50
|
-
alignCenter: s.
|
|
51
|
-
hideTitleWhenPinned: s.
|
|
47
|
+
script: s.f("script", S.option(S.string)),
|
|
48
|
+
eyeCatchingImageId: s.f("eyeCatchingImageId", S.option(S.string)),
|
|
49
|
+
font: s.f("font", S.option(S.string)),
|
|
50
|
+
alignCenter: s.f("alignCenter", S.option(S.bool)),
|
|
51
|
+
hideTitleWhenPinned: s.f("hideTitleWhenPinned", S.option(S.bool))
|
|
52
52
|
}));
|
|
53
53
|
|
|
54
54
|
function postPagesUpdate(body, fetch) {
|
|
@@ -7,11 +7,11 @@ S.enableJson();
|
|
|
7
7
|
|
|
8
8
|
let postRolesNotesRequestSchema = S.object(s => ({
|
|
9
9
|
roleId: s.f("roleId", S.string),
|
|
10
|
-
limit: s.
|
|
11
|
-
sinceId: s.
|
|
12
|
-
untilId: s.
|
|
13
|
-
sinceDate: s.
|
|
14
|
-
untilDate: s.
|
|
10
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
11
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
12
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
13
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
14
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
let postRolesNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -34,11 +34,11 @@ function postRolesShow(body, fetch) {
|
|
|
34
34
|
|
|
35
35
|
let postRolesUsersRequestSchema = S.object(s => ({
|
|
36
36
|
roleId: s.f("roleId", S.string),
|
|
37
|
-
sinceId: s.
|
|
38
|
-
untilId: s.
|
|
39
|
-
sinceDate: s.
|
|
40
|
-
untilDate: s.
|
|
41
|
-
limit: s.
|
|
37
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
38
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
39
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
40
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
41
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined)))
|
|
42
42
|
}));
|
|
43
43
|
|
|
44
44
|
let postRolesUsersResponse_1Schema = S.object(s => ({
|
|
@@ -6,12 +6,12 @@ import * as KokonectLinkComponentSchemas from "./KokonectLinkComponentSchemas.mj
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postUsersRequestSchema = S.object(s => ({
|
|
9
|
-
limit: s.
|
|
10
|
-
offset: s.
|
|
11
|
-
sort: s.
|
|
12
|
-
state: s.
|
|
13
|
-
origin: s.
|
|
14
|
-
hostname: s.
|
|
9
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
10
|
+
offset: s.f("offset", S.option(S.int)),
|
|
11
|
+
sort: s.f("sort", S.option(S.string)),
|
|
12
|
+
state: s.f("state", S.option(S.string)),
|
|
13
|
+
origin: s.f("origin", S.option(S.string)),
|
|
14
|
+
hostname: s.f("hostname", S.option(S.string))
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
let postUsersResponseSchema = S.array(KokonectLinkComponentSchemas.UserDetailed.schema);
|
|
@@ -23,11 +23,11 @@ function postUsers(body, fetch) {
|
|
|
23
23
|
|
|
24
24
|
let postUsersClipsRequestSchema = S.object(s => ({
|
|
25
25
|
userId: s.f("userId", S.string),
|
|
26
|
-
limit: s.
|
|
27
|
-
sinceId: s.
|
|
28
|
-
untilId: s.
|
|
29
|
-
sinceDate: s.
|
|
30
|
-
untilDate: s.
|
|
26
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
27
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
28
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
29
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
30
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
31
31
|
}));
|
|
32
32
|
|
|
33
33
|
let postUsersClipsResponseSchema = S.array(KokonectLinkComponentSchemas.Clip.schema);
|
|
@@ -39,11 +39,11 @@ function postUsersClips(body, fetch) {
|
|
|
39
39
|
|
|
40
40
|
let postUsersFlashsRequestSchema = S.object(s => ({
|
|
41
41
|
userId: s.f("userId", S.string),
|
|
42
|
-
limit: s.
|
|
43
|
-
sinceId: s.
|
|
44
|
-
untilId: s.
|
|
45
|
-
sinceDate: s.
|
|
46
|
-
untilDate: s.
|
|
42
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
43
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
44
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
45
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
46
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
47
47
|
}));
|
|
48
48
|
|
|
49
49
|
let postUsersFlashsResponseSchema = S.array(KokonectLinkComponentSchemas.Flash.schema);
|
|
@@ -54,11 +54,11 @@ function postUsersFlashs(body, fetch) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
let postUsersFollowersRequestSchema = S.object(s => ({
|
|
57
|
-
sinceId: s.
|
|
58
|
-
untilId: s.
|
|
59
|
-
sinceDate: s.
|
|
60
|
-
untilDate: s.
|
|
61
|
-
limit: s.
|
|
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 postUsersFollowersResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
@@ -69,12 +69,12 @@ function postUsersFollowers(body, fetch) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
let postUsersFollowingRequestSchema = S.object(s => ({
|
|
72
|
-
sinceId: s.
|
|
73
|
-
untilId: s.
|
|
74
|
-
sinceDate: s.
|
|
75
|
-
untilDate: s.
|
|
76
|
-
limit: s.
|
|
77
|
-
birthday: s.
|
|
72
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
73
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
74
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
75
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
76
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
77
|
+
birthday: s.f("birthday", S.option(S.pattern(S.string, /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/, undefined)))
|
|
78
78
|
}));
|
|
79
79
|
|
|
80
80
|
let postUsersFollowingResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
@@ -86,11 +86,11 @@ function postUsersFollowing(body, fetch) {
|
|
|
86
86
|
|
|
87
87
|
let postUsersGalleryPostsRequestSchema = S.object(s => ({
|
|
88
88
|
userId: s.f("userId", S.string),
|
|
89
|
-
limit: s.
|
|
90
|
-
sinceId: s.
|
|
91
|
-
untilId: s.
|
|
92
|
-
sinceDate: s.
|
|
93
|
-
untilDate: s.
|
|
89
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
90
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
91
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
92
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
93
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
let postUsersGalleryPostsResponseSchema = S.array(KokonectLinkComponentSchemas.GalleryPost.schema);
|
|
@@ -102,17 +102,17 @@ function postUsersGalleryPosts(body, fetch) {
|
|
|
102
102
|
|
|
103
103
|
let postUsersNotesRequestSchema = S.object(s => ({
|
|
104
104
|
userId: s.f("userId", S.string),
|
|
105
|
-
withReplies: s.
|
|
106
|
-
withRenotes: s.
|
|
107
|
-
withChannelNotes: s.
|
|
108
|
-
limit: s.
|
|
109
|
-
sinceId: s.
|
|
110
|
-
untilId: s.
|
|
111
|
-
sinceDate: s.
|
|
112
|
-
untilDate: s.
|
|
113
|
-
allowPartial: s.
|
|
114
|
-
withFiles: s.
|
|
115
|
-
withCats: s.
|
|
105
|
+
withReplies: s.f("withReplies", S.option(S.bool)),
|
|
106
|
+
withRenotes: s.f("withRenotes", S.option(S.bool)),
|
|
107
|
+
withChannelNotes: s.f("withChannelNotes", S.option(S.bool)),
|
|
108
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
109
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
110
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
111
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
112
|
+
untilDate: s.f("untilDate", S.option(S.int)),
|
|
113
|
+
allowPartial: s.f("allowPartial", S.option(S.bool)),
|
|
114
|
+
withFiles: s.f("withFiles", S.option(S.bool)),
|
|
115
|
+
withCats: s.f("withCats", S.option(S.bool))
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
118
|
let postUsersNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
@@ -124,11 +124,11 @@ function postUsersNotes(body, fetch) {
|
|
|
124
124
|
|
|
125
125
|
let postUsersPagesRequestSchema = S.object(s => ({
|
|
126
126
|
userId: s.f("userId", S.string),
|
|
127
|
-
limit: s.
|
|
128
|
-
sinceId: s.
|
|
129
|
-
untilId: s.
|
|
130
|
-
sinceDate: s.
|
|
131
|
-
untilDate: s.
|
|
127
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
128
|
+
sinceId: s.f("sinceId", S.option(S.string)),
|
|
129
|
+
untilId: s.f("untilId", S.option(S.string)),
|
|
130
|
+
sinceDate: s.f("sinceDate", S.option(S.int)),
|
|
131
|
+
untilDate: s.f("untilDate", S.option(S.int))
|
|
132
132
|
}));
|
|
133
133
|
|
|
134
134
|
let postUsersPagesResponseSchema = S.array(KokonectLinkComponentSchemas.Page.schema);
|
|
@@ -149,8 +149,8 @@ function postUsersReportAbuse(body, fetch) {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
let postUsersSearchByUsernameAndHostRequestSchema = S.object(s => ({
|
|
152
|
-
limit: s.
|
|
153
|
-
detail: s.
|
|
152
|
+
limit: s.f("limit", S.option(S.max(S.min(S.int, 1, undefined), 100, undefined))),
|
|
153
|
+
detail: s.f("detail", S.option(S.bool))
|
|
154
154
|
}));
|
|
155
155
|
|
|
156
156
|
let postUsersSearchByUsernameAndHostResponseSchema = S.array(KokonectLinkComponentSchemas.User.schema);
|
|
@@ -161,7 +161,7 @@ function postUsersSearchByUsernameAndHost(body, fetch) {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
let postUsersShowRequestSchema = S.object(s => ({
|
|
164
|
-
host: s.
|
|
164
|
+
host: s.f("host", S.option(S.string))
|
|
165
165
|
}));
|
|
166
166
|
|
|
167
167
|
let postUsersShowResponseSchema = S.array(KokonectLinkComponentSchemas.UserDetailed.schema);
|
|
@@ -6,14 +6,14 @@ import * as KokonectLinkComponentSchemas from "./KokonectLinkComponentSchemas.mj
|
|
|
6
6
|
S.enableJson();
|
|
7
7
|
|
|
8
8
|
let postAdminSystemWebhookTestRequest_1Schema = S.object(s => ({
|
|
9
|
-
url: s.
|
|
10
|
-
secret: s.
|
|
9
|
+
url: s.f("url", S.option(S.string)),
|
|
10
|
+
secret: s.f("secret", S.option(S.string))
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let postAdminSystemWebhookTestRequestSchema = S.object(s => ({
|
|
14
14
|
webhookId: s.f("webhookId", S.string),
|
|
15
15
|
type: s.f("type", S.string),
|
|
16
|
-
override: s.
|
|
16
|
+
override: s.f("override", S.option(postAdminSystemWebhookTestRequest_1Schema))
|
|
17
17
|
}));
|
|
18
18
|
|
|
19
19
|
function postAdminSystemWebhookTest(body, fetch) {
|
|
@@ -33,14 +33,14 @@ function postIWebhooksShow(body, fetch) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
let postIWebhooksTestRequest_1Schema = S.object(s => ({
|
|
36
|
-
url: s.
|
|
37
|
-
secret: s.
|
|
36
|
+
url: s.f("url", S.option(S.string)),
|
|
37
|
+
secret: s.f("secret", S.option(S.string))
|
|
38
38
|
}));
|
|
39
39
|
|
|
40
40
|
let postIWebhooksTestRequestSchema = S.object(s => ({
|
|
41
41
|
webhookId: s.f("webhookId", S.string),
|
|
42
42
|
type: s.f("type", S.string),
|
|
43
|
-
override: s.
|
|
43
|
+
override: s.f("override", S.option(postIWebhooksTestRequest_1Schema))
|
|
44
44
|
}));
|
|
45
45
|
|
|
46
46
|
function postIWebhooksTest(body, fetch) {
|