@f3liz/rescript-misskey-api 0.6.9 → 0.7.0
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/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +94 -166
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +182 -329
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +97 -178
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +37 -67
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +24 -42
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +4 -7
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +28 -49
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +16 -28
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +42 -78
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +8 -14
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +36 -63
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +114 -201
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +3 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +11 -20
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +12 -21
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +47 -83
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +10 -19
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +126 -228
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +373 -694
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoApp.res +8 -14
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +19 -34
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +48 -87
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +96 -168
- package/src/generated/misskey-io/api/MisskeyIoClip.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +23 -41
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +188 -353
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +69 -123
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +43 -76
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +17 -32
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +37 -67
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +33 -60
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +24 -42
- package/src/generated/misskey-io/api/MisskeyIoLists.res +32 -59
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +95 -167
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +7 -13
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +131 -236
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +12 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +24 -45
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +6 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +16 -28
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +111 -195
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +24 -45
|
@@ -9,18 +9,18 @@ let postIClaimAchievementRequestSchema = S.object(s => ({
|
|
|
9
9
|
name: s.f("name", S.string)
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
|
-
function postIClaimAchievement(body, fetch) {
|
|
12
|
+
async function postIClaimAchievement(body, fetch) {
|
|
13
13
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIClaimAchievementRequestSchema);
|
|
14
|
-
|
|
14
|
+
await fetch("/i/claim-achievement", "POST", jsonBody);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
let postIRevokeTokenRequest_1Schema = S.object(s => ({
|
|
18
18
|
token: s.f("token", S.nullableAsOption(S.string))
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
|
-
function postIRevokeToken(body, fetch) {
|
|
21
|
+
async function postIRevokeToken(body, fetch) {
|
|
22
22
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIRevokeTokenRequest_1Schema);
|
|
23
|
-
|
|
23
|
+
await fetch("/i/revoke-token", "POST", jsonBody);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
let postISigninHistoryRequestSchema = S.object(s => ({
|
|
@@ -33,9 +33,10 @@ let postISigninHistoryRequestSchema = S.object(s => ({
|
|
|
33
33
|
|
|
34
34
|
let postISigninHistoryResponseSchema = S.array(KokonectLinkComponentSchemas.Signin.schema);
|
|
35
35
|
|
|
36
|
-
function postISigninHistory(body, fetch) {
|
|
36
|
+
async function postISigninHistory(body, fetch) {
|
|
37
37
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postISigninHistoryRequestSchema);
|
|
38
|
-
|
|
38
|
+
let response = await fetch("/i/signin-history", "POST", jsonBody);
|
|
39
|
+
return S.parseOrThrow(response, postISigninHistoryResponseSchema);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
let postITruncateAccountRequestSchema = S.object(s => ({
|
|
@@ -43,9 +44,9 @@ let postITruncateAccountRequestSchema = S.object(s => ({
|
|
|
43
44
|
token: s.f("token", S.option(S.string))
|
|
44
45
|
}));
|
|
45
46
|
|
|
46
|
-
function postITruncateAccount(body, fetch) {
|
|
47
|
+
async function postITruncateAccount(body, fetch) {
|
|
47
48
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postITruncateAccountRequestSchema);
|
|
48
|
-
|
|
49
|
+
await fetch("/i/truncate-account", "POST", jsonBody);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
@@ -56,9 +57,10 @@ let postIUpdateEmailRequestSchema = S.object(s => ({
|
|
|
56
57
|
|
|
57
58
|
let postIUpdateEmailResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema;
|
|
58
59
|
|
|
59
|
-
function postIUpdateEmail(body, fetch) {
|
|
60
|
+
async function postIUpdateEmail(body, fetch) {
|
|
60
61
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postIUpdateEmailRequestSchema);
|
|
61
|
-
|
|
62
|
+
let response = await fetch("/i/update-email", "POST", jsonBody);
|
|
63
|
+
return S.parseOrThrow(response, postIUpdateEmailResponseSchema);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
let postReversiGamesRequestSchema = S.object(s => ({
|
|
@@ -72,9 +74,10 @@ let postReversiGamesRequestSchema = S.object(s => ({
|
|
|
72
74
|
|
|
73
75
|
let postReversiGamesResponseSchema = S.array(KokonectLinkComponentSchemas.ReversiGameLite.schema);
|
|
74
76
|
|
|
75
|
-
function postReversiGames(body, fetch) {
|
|
77
|
+
async function postReversiGames(body, fetch) {
|
|
76
78
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiGamesRequestSchema);
|
|
77
|
-
|
|
79
|
+
let response = await fetch("/reversi/games", "POST", jsonBody);
|
|
80
|
+
return S.parseOrThrow(response, postReversiGamesResponseSchema);
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
let postReversiMatchRequestSchema = S.object(s => ({
|
|
@@ -85,9 +88,10 @@ let postReversiMatchRequestSchema = S.object(s => ({
|
|
|
85
88
|
|
|
86
89
|
let postReversiMatchResponseSchema = KokonectLinkComponentSchemas.ReversiGameDetailed.schema;
|
|
87
90
|
|
|
88
|
-
function postReversiMatch(body, fetch) {
|
|
91
|
+
async function postReversiMatch(body, fetch) {
|
|
89
92
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiMatchRequestSchema);
|
|
90
|
-
|
|
93
|
+
let response = await fetch("/reversi/match", "POST", jsonBody);
|
|
94
|
+
return S.parseOrThrow(response, postReversiMatchResponseSchema);
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
let postReversiShowGameRequestSchema = S.object(s => ({
|
|
@@ -96,9 +100,10 @@ let postReversiShowGameRequestSchema = S.object(s => ({
|
|
|
96
100
|
|
|
97
101
|
let postReversiShowGameResponseSchema = KokonectLinkComponentSchemas.ReversiGameDetailed.schema;
|
|
98
102
|
|
|
99
|
-
function postReversiShowGame(body, fetch) {
|
|
103
|
+
async function postReversiShowGame(body, fetch) {
|
|
100
104
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiShowGameRequestSchema);
|
|
101
|
-
|
|
105
|
+
let response = await fetch("/reversi/show-game", "POST", jsonBody);
|
|
106
|
+
return S.parseOrThrow(response, postReversiShowGameResponseSchema);
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
let postReversiVerifyRequestSchema = S.object(s => ({
|
|
@@ -111,9 +116,10 @@ let postReversiVerifyResponseSchema = S.object(s => ({
|
|
|
111
116
|
game: s.f("game", S.option(KokonectLinkComponentSchemas.ReversiGameDetailed.schema))
|
|
112
117
|
}));
|
|
113
118
|
|
|
114
|
-
function postReversiVerify(body, fetch) {
|
|
119
|
+
async function postReversiVerify(body, fetch) {
|
|
115
120
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postReversiVerifyRequestSchema);
|
|
116
|
-
|
|
121
|
+
let response = await fetch("/reversi/verify", "POST", jsonBody);
|
|
122
|
+
return S.parseOrThrow(response, postReversiVerifyResponseSchema);
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
let postUsersListsCreateFromPublicRequestSchema = S.object(s => ({
|
|
@@ -123,9 +129,10 @@ let postUsersListsCreateFromPublicRequestSchema = S.object(s => ({
|
|
|
123
129
|
|
|
124
130
|
let postUsersListsCreateFromPublicResponseSchema = KokonectLinkComponentSchemas.UserList.schema;
|
|
125
131
|
|
|
126
|
-
function postUsersListsCreateFromPublic(body, fetch) {
|
|
132
|
+
async function postUsersListsCreateFromPublic(body, fetch) {
|
|
127
133
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postUsersListsCreateFromPublicRequestSchema);
|
|
128
|
-
|
|
134
|
+
let response = await fetch("/users/lists/create-from-public", "POST", jsonBody);
|
|
135
|
+
return S.parseOrThrow(response, postUsersListsCreateFromPublicResponseSchema);
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
let postIRevokeTokenRequestSchema = postIRevokeTokenRequest_1Schema;
|
|
@@ -18,9 +18,10 @@ let postDriveFilesRequestSchema = S.object(s => ({
|
|
|
18
18
|
|
|
19
19
|
let postDriveFilesResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema);
|
|
20
20
|
|
|
21
|
-
function postDriveFiles(body, fetch) {
|
|
21
|
+
async function postDriveFiles(body, fetch) {
|
|
22
22
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesRequestSchema);
|
|
23
|
-
|
|
23
|
+
let response = await fetch("/drive/files", "POST", jsonBody);
|
|
24
|
+
return S.parseOrThrow(response, postDriveFilesResponseSchema);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
let postDriveFilesAttachedChatMessagesRequestSchema = S.object(s => ({
|
|
@@ -34,9 +35,10 @@ let postDriveFilesAttachedChatMessagesRequestSchema = S.object(s => ({
|
|
|
34
35
|
|
|
35
36
|
let postDriveFilesAttachedChatMessagesResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessage.schema);
|
|
36
37
|
|
|
37
|
-
function postDriveFilesAttachedChatMessages(body, fetch) {
|
|
38
|
+
async function postDriveFilesAttachedChatMessages(body, fetch) {
|
|
38
39
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesAttachedChatMessagesRequestSchema);
|
|
39
|
-
|
|
40
|
+
let response = await fetch("/drive/files/attached-chat-messages", "POST", jsonBody);
|
|
41
|
+
return S.parseOrThrow(response, postDriveFilesAttachedChatMessagesResponseSchema);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
let postDriveFilesAttachedNotesRequestSchema = S.object(s => ({
|
|
@@ -50,9 +52,10 @@ let postDriveFilesAttachedNotesRequestSchema = S.object(s => ({
|
|
|
50
52
|
|
|
51
53
|
let postDriveFilesAttachedNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema);
|
|
52
54
|
|
|
53
|
-
function postDriveFilesAttachedNotes(body, fetch) {
|
|
55
|
+
async function postDriveFilesAttachedNotes(body, fetch) {
|
|
54
56
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesAttachedNotesRequestSchema);
|
|
55
|
-
|
|
57
|
+
let response = await fetch("/drive/files/attached-notes", "POST", jsonBody);
|
|
58
|
+
return S.parseOrThrow(response, postDriveFilesAttachedNotesResponseSchema);
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
let postDriveFilesCreateRequestSchema = S.object(s => ({
|
|
@@ -66,9 +69,10 @@ let postDriveFilesCreateRequestSchema = S.object(s => ({
|
|
|
66
69
|
|
|
67
70
|
let postDriveFilesCreateResponseSchema = KokonectLinkComponentSchemas.DriveFile.schema;
|
|
68
71
|
|
|
69
|
-
function postDriveFilesCreate(body, fetch) {
|
|
72
|
+
async function postDriveFilesCreate(body, fetch) {
|
|
70
73
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesCreateRequestSchema);
|
|
71
|
-
|
|
74
|
+
let response = await fetch("/drive/files/create", "POST", jsonBody);
|
|
75
|
+
return S.parseOrThrow(response, postDriveFilesCreateResponseSchema);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
let postDriveFilesMoveBulkRequestSchema = S.object(s => ({
|
|
@@ -76,9 +80,9 @@ let postDriveFilesMoveBulkRequestSchema = S.object(s => ({
|
|
|
76
80
|
folderId: s.f("folderId", S.option(S.string))
|
|
77
81
|
}));
|
|
78
82
|
|
|
79
|
-
function postDriveFilesMoveBulk(body, fetch) {
|
|
83
|
+
async function postDriveFilesMoveBulk(body, fetch) {
|
|
80
84
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesMoveBulkRequestSchema);
|
|
81
|
-
|
|
85
|
+
await fetch("/drive/files/move-bulk", "POST", jsonBody);
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
let postDriveFilesShowRequest_1Schema = S.object(s => ({
|
|
@@ -87,9 +91,10 @@ let postDriveFilesShowRequest_1Schema = S.object(s => ({
|
|
|
87
91
|
|
|
88
92
|
let postDriveFilesShowResponseSchema = KokonectLinkComponentSchemas.DriveFile.schema;
|
|
89
93
|
|
|
90
|
-
function postDriveFilesShow(body, fetch) {
|
|
94
|
+
async function postDriveFilesShow(body, fetch) {
|
|
91
95
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesShowRequest_1Schema);
|
|
92
|
-
|
|
96
|
+
let response = await fetch("/drive/files/show", "POST", jsonBody);
|
|
97
|
+
return S.parseOrThrow(response, postDriveFilesShowResponseSchema);
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
let postDriveFilesUpdateRequestSchema = S.object(s => ({
|
|
@@ -102,9 +107,10 @@ let postDriveFilesUpdateRequestSchema = S.object(s => ({
|
|
|
102
107
|
|
|
103
108
|
let postDriveFilesUpdateResponseSchema = KokonectLinkComponentSchemas.DriveFile.schema;
|
|
104
109
|
|
|
105
|
-
function postDriveFilesUpdate(body, fetch) {
|
|
110
|
+
async function postDriveFilesUpdate(body, fetch) {
|
|
106
111
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFilesUpdateRequestSchema);
|
|
107
|
-
|
|
112
|
+
let response = await fetch("/drive/files/update", "POST", jsonBody);
|
|
113
|
+
return S.parseOrThrow(response, postDriveFilesUpdateResponseSchema);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
let postDriveFoldersRequestSchema = S.object(s => ({
|
|
@@ -118,9 +124,10 @@ let postDriveFoldersRequestSchema = S.object(s => ({
|
|
|
118
124
|
|
|
119
125
|
let postDriveFoldersResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFolder.schema);
|
|
120
126
|
|
|
121
|
-
function postDriveFolders(body, fetch) {
|
|
127
|
+
async function postDriveFolders(body, fetch) {
|
|
122
128
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFoldersRequestSchema);
|
|
123
|
-
|
|
129
|
+
let response = await fetch("/drive/folders", "POST", jsonBody);
|
|
130
|
+
return S.parseOrThrow(response, postDriveFoldersResponseSchema);
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
let postDriveFoldersCreateRequestSchema = S.object(s => ({
|
|
@@ -130,9 +137,10 @@ let postDriveFoldersCreateRequestSchema = S.object(s => ({
|
|
|
130
137
|
|
|
131
138
|
let postDriveFoldersCreateResponseSchema = KokonectLinkComponentSchemas.DriveFolder.schema;
|
|
132
139
|
|
|
133
|
-
function postDriveFoldersCreate(body, fetch) {
|
|
140
|
+
async function postDriveFoldersCreate(body, fetch) {
|
|
134
141
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFoldersCreateRequestSchema);
|
|
135
|
-
|
|
142
|
+
let response = await fetch("/drive/folders/create", "POST", jsonBody);
|
|
143
|
+
return S.parseOrThrow(response, postDriveFoldersCreateResponseSchema);
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
let postDriveFoldersShowRequestSchema = S.object(s => ({
|
|
@@ -141,9 +149,10 @@ let postDriveFoldersShowRequestSchema = S.object(s => ({
|
|
|
141
149
|
|
|
142
150
|
let postDriveFoldersShowResponseSchema = KokonectLinkComponentSchemas.DriveFolder.schema;
|
|
143
151
|
|
|
144
|
-
function postDriveFoldersShow(body, fetch) {
|
|
152
|
+
async function postDriveFoldersShow(body, fetch) {
|
|
145
153
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFoldersShowRequestSchema);
|
|
146
|
-
|
|
154
|
+
let response = await fetch("/drive/folders/show", "POST", jsonBody);
|
|
155
|
+
return S.parseOrThrow(response, postDriveFoldersShowResponseSchema);
|
|
147
156
|
}
|
|
148
157
|
|
|
149
158
|
let postDriveFoldersUpdateRequestSchema = S.object(s => ({
|
|
@@ -154,9 +163,10 @@ let postDriveFoldersUpdateRequestSchema = S.object(s => ({
|
|
|
154
163
|
|
|
155
164
|
let postDriveFoldersUpdateResponseSchema = KokonectLinkComponentSchemas.DriveFolder.schema;
|
|
156
165
|
|
|
157
|
-
function postDriveFoldersUpdate(body, fetch) {
|
|
166
|
+
async function postDriveFoldersUpdate(body, fetch) {
|
|
158
167
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveFoldersUpdateRequestSchema);
|
|
159
|
-
|
|
168
|
+
let response = await fetch("/drive/folders/update", "POST", jsonBody);
|
|
169
|
+
return S.parseOrThrow(response, postDriveFoldersUpdateResponseSchema);
|
|
160
170
|
}
|
|
161
171
|
|
|
162
172
|
let postDriveStreamRequestSchema = S.object(s => ({
|
|
@@ -170,9 +180,10 @@ let postDriveStreamRequestSchema = S.object(s => ({
|
|
|
170
180
|
|
|
171
181
|
let postDriveStreamResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema);
|
|
172
182
|
|
|
173
|
-
function postDriveStream(body, fetch) {
|
|
183
|
+
async function postDriveStream(body, fetch) {
|
|
174
184
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postDriveStreamRequestSchema);
|
|
175
|
-
|
|
185
|
+
let response = await fetch("/drive/stream", "POST", jsonBody);
|
|
186
|
+
return S.parseOrThrow(response, postDriveStreamResponseSchema);
|
|
176
187
|
}
|
|
177
188
|
|
|
178
189
|
let postDriveFilesShowRequestSchema = postDriveFilesShowRequest_1Schema;
|
|
@@ -16,9 +16,10 @@ let postFederationFollowersRequestSchema = S.object(s => ({
|
|
|
16
16
|
|
|
17
17
|
let postFederationFollowersResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
18
18
|
|
|
19
|
-
function postFederationFollowers(body, fetch) {
|
|
19
|
+
async function postFederationFollowers(body, fetch) {
|
|
20
20
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFederationFollowersRequestSchema);
|
|
21
|
-
|
|
21
|
+
let response = await fetch("/federation/followers", "POST", jsonBody);
|
|
22
|
+
return S.parseOrThrow(response, postFederationFollowersResponseSchema);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
let postFederationFollowingRequestSchema = S.object(s => ({
|
|
@@ -32,9 +33,10 @@ let postFederationFollowingRequestSchema = S.object(s => ({
|
|
|
32
33
|
|
|
33
34
|
let postFederationFollowingResponseSchema = S.array(KokonectLinkComponentSchemas.Following.schema);
|
|
34
35
|
|
|
35
|
-
function postFederationFollowing(body, fetch) {
|
|
36
|
+
async function postFederationFollowing(body, fetch) {
|
|
36
37
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFederationFollowingRequestSchema);
|
|
37
|
-
|
|
38
|
+
let response = await fetch("/federation/following", "POST", jsonBody);
|
|
39
|
+
return S.parseOrThrow(response, postFederationFollowingResponseSchema);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
let getFederationRemoteSoftwareRequestSchema = S.object(s => ({
|
|
@@ -56,9 +58,10 @@ let getFederationRemoteSoftwareResponse_1Schema = S.object(s => ({
|
|
|
56
58
|
|
|
57
59
|
let getFederationRemoteSoftwareResponseSchema = S.array(getFederationRemoteSoftwareResponse_1Schema);
|
|
58
60
|
|
|
59
|
-
function getFederationRemoteSoftware(body, fetch) {
|
|
61
|
+
async function getFederationRemoteSoftware(body, fetch) {
|
|
60
62
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, getFederationRemoteSoftwareRequestSchema);
|
|
61
|
-
|
|
63
|
+
let response = await fetch("/federation/remote-software", "GET", jsonBody);
|
|
64
|
+
return S.parseOrThrow(response, getFederationRemoteSoftwareResponseSchema);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
let postFederationRemoteSoftwareRequestSchema = S.object(s => ({
|
|
@@ -80,9 +83,10 @@ let postFederationRemoteSoftwareResponse_1Schema = S.object(s => ({
|
|
|
80
83
|
|
|
81
84
|
let postFederationRemoteSoftwareResponseSchema = S.array(postFederationRemoteSoftwareResponse_1Schema);
|
|
82
85
|
|
|
83
|
-
function postFederationRemoteSoftware(body, fetch) {
|
|
86
|
+
async function postFederationRemoteSoftware(body, fetch) {
|
|
84
87
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFederationRemoteSoftwareRequestSchema);
|
|
85
|
-
|
|
88
|
+
let response = await fetch("/federation/remote-software", "POST", jsonBody);
|
|
89
|
+
return S.parseOrThrow(response, postFederationRemoteSoftwareResponseSchema);
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
let postFederationShowInstanceRequestSchema = S.object(s => ({
|
|
@@ -91,9 +95,10 @@ let postFederationShowInstanceRequestSchema = S.object(s => ({
|
|
|
91
95
|
|
|
92
96
|
let postFederationShowInstanceResponseSchema = S.nullableAsOption(KokonectLinkComponentSchemas.FederationInstance.schema);
|
|
93
97
|
|
|
94
|
-
function postFederationShowInstance(body, fetch) {
|
|
98
|
+
async function postFederationShowInstance(body, fetch) {
|
|
95
99
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFederationShowInstanceRequestSchema);
|
|
96
|
-
|
|
100
|
+
let response = await fetch("/federation/show-instance", "POST", jsonBody);
|
|
101
|
+
return S.parseOrThrow(response, postFederationShowInstanceResponseSchema);
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
let postFederationUsersRequestSchema = S.object(s => ({
|
|
@@ -107,9 +112,10 @@ let postFederationUsersRequestSchema = S.object(s => ({
|
|
|
107
112
|
|
|
108
113
|
let postFederationUsersResponseSchema = S.array(KokonectLinkComponentSchemas.UserDetailedNotMe.schema);
|
|
109
114
|
|
|
110
|
-
function postFederationUsers(body, fetch) {
|
|
115
|
+
async function postFederationUsers(body, fetch) {
|
|
111
116
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFederationUsersRequestSchema);
|
|
112
|
-
|
|
117
|
+
let response = await fetch("/federation/users", "POST", jsonBody);
|
|
118
|
+
return S.parseOrThrow(response, postFederationUsersResponseSchema);
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
export {
|
|
@@ -15,9 +15,10 @@ let postFlashCreateRequestSchema = S.object(s => ({
|
|
|
15
15
|
|
|
16
16
|
let postFlashCreateResponseSchema = KokonectLinkComponentSchemas.Flash.schema;
|
|
17
17
|
|
|
18
|
-
function postFlashCreate(body, fetch) {
|
|
18
|
+
async function postFlashCreate(body, fetch) {
|
|
19
19
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFlashCreateRequestSchema);
|
|
20
|
-
|
|
20
|
+
let response = await fetch("/flash/create", "POST", jsonBody);
|
|
21
|
+
return S.parseOrThrow(response, postFlashCreateResponseSchema);
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
let postFlashGenTokenRequestSchema = S.object(s => ({
|
|
@@ -28,9 +29,10 @@ let postFlashGenTokenResponseSchema = S.object(s => ({
|
|
|
28
29
|
token: s.f("token", S.string)
|
|
29
30
|
}));
|
|
30
31
|
|
|
31
|
-
function postFlashGenToken(body, fetch) {
|
|
32
|
+
async function postFlashGenToken(body, fetch) {
|
|
32
33
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFlashGenTokenRequestSchema);
|
|
33
|
-
|
|
34
|
+
let response = await fetch("/flash/gen-token", "POST", jsonBody);
|
|
35
|
+
return S.parseOrThrow(response, postFlashGenTokenResponseSchema);
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
let postFlashSearchRequestSchema = S.object(s => ({
|
|
@@ -44,9 +46,10 @@ let postFlashSearchRequestSchema = S.object(s => ({
|
|
|
44
46
|
|
|
45
47
|
let postFlashSearchResponseSchema = S.array(KokonectLinkComponentSchemas.Flash.schema);
|
|
46
48
|
|
|
47
|
-
function postFlashSearch(body, fetch) {
|
|
49
|
+
async function postFlashSearch(body, fetch) {
|
|
48
50
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFlashSearchRequestSchema);
|
|
49
|
-
|
|
51
|
+
let response = await fetch("/flash/search", "POST", jsonBody);
|
|
52
|
+
return S.parseOrThrow(response, postFlashSearchResponseSchema);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export {
|
|
@@ -11,9 +11,10 @@ let postFlashShowRequestSchema = S.object(s => ({
|
|
|
11
11
|
|
|
12
12
|
let postFlashShowResponseSchema = KokonectLinkComponentSchemas.Flash.schema;
|
|
13
13
|
|
|
14
|
-
function postFlashShow(body, fetch) {
|
|
14
|
+
async function postFlashShow(body, fetch) {
|
|
15
15
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFlashShowRequestSchema);
|
|
16
|
-
|
|
16
|
+
let response = await fetch("/flash/show", "POST", jsonBody);
|
|
17
|
+
return S.parseOrThrow(response, postFlashShowResponseSchema);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export {
|
|
@@ -12,9 +12,10 @@ let postFollowingCreateRequestSchema = S.object(s => ({
|
|
|
12
12
|
|
|
13
13
|
let postFollowingCreateResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
14
14
|
|
|
15
|
-
function postFollowingCreate(body, fetch) {
|
|
15
|
+
async function postFollowingCreate(body, fetch) {
|
|
16
16
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingCreateRequestSchema);
|
|
17
|
-
|
|
17
|
+
let response = await fetch("/following/create", "POST", jsonBody);
|
|
18
|
+
return S.parseOrThrow(response, postFollowingCreateResponseSchema);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
let postFollowingDeleteRequestSchema = S.object(s => ({
|
|
@@ -23,9 +24,10 @@ let postFollowingDeleteRequestSchema = S.object(s => ({
|
|
|
23
24
|
|
|
24
25
|
let postFollowingDeleteResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
25
26
|
|
|
26
|
-
function postFollowingDelete(body, fetch) {
|
|
27
|
+
async function postFollowingDelete(body, fetch) {
|
|
27
28
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingDeleteRequestSchema);
|
|
28
|
-
|
|
29
|
+
let response = await fetch("/following/delete", "POST", jsonBody);
|
|
30
|
+
return S.parseOrThrow(response, postFollowingDeleteResponseSchema);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
let postFollowingInvalidateRequestSchema = S.object(s => ({
|
|
@@ -34,9 +36,10 @@ let postFollowingInvalidateRequestSchema = S.object(s => ({
|
|
|
34
36
|
|
|
35
37
|
let postFollowingInvalidateResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
36
38
|
|
|
37
|
-
function postFollowingInvalidate(body, fetch) {
|
|
39
|
+
async function postFollowingInvalidate(body, fetch) {
|
|
38
40
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingInvalidateRequestSchema);
|
|
39
|
-
|
|
41
|
+
let response = await fetch("/following/invalidate", "POST", jsonBody);
|
|
42
|
+
return S.parseOrThrow(response, postFollowingInvalidateResponseSchema);
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
let postFollowingRequestsCancelRequestSchema = S.object(s => ({
|
|
@@ -45,9 +48,10 @@ let postFollowingRequestsCancelRequestSchema = S.object(s => ({
|
|
|
45
48
|
|
|
46
49
|
let postFollowingRequestsCancelResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
47
50
|
|
|
48
|
-
function postFollowingRequestsCancel(body, fetch) {
|
|
51
|
+
async function postFollowingRequestsCancel(body, fetch) {
|
|
49
52
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingRequestsCancelRequestSchema);
|
|
50
|
-
|
|
53
|
+
let response = await fetch("/following/requests/cancel", "POST", jsonBody);
|
|
54
|
+
return S.parseOrThrow(response, postFollowingRequestsCancelResponseSchema);
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
let postFollowingRequestsListRequestSchema = S.object(s => ({
|
|
@@ -66,9 +70,10 @@ let postFollowingRequestsListResponse_1Schema = S.object(s => ({
|
|
|
66
70
|
|
|
67
71
|
let postFollowingRequestsListResponseSchema = S.array(postFollowingRequestsListResponse_1Schema);
|
|
68
72
|
|
|
69
|
-
function postFollowingRequestsList(body, fetch) {
|
|
73
|
+
async function postFollowingRequestsList(body, fetch) {
|
|
70
74
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingRequestsListRequestSchema);
|
|
71
|
-
|
|
75
|
+
let response = await fetch("/following/requests/list", "POST", jsonBody);
|
|
76
|
+
return S.parseOrThrow(response, postFollowingRequestsListResponseSchema);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
let postFollowingRequestsSentRequestSchema = S.object(s => ({
|
|
@@ -87,9 +92,10 @@ let postFollowingRequestsSentResponse_1Schema = S.object(s => ({
|
|
|
87
92
|
|
|
88
93
|
let postFollowingRequestsSentResponseSchema = S.array(postFollowingRequestsSentResponse_1Schema);
|
|
89
94
|
|
|
90
|
-
function postFollowingRequestsSent(body, fetch) {
|
|
95
|
+
async function postFollowingRequestsSent(body, fetch) {
|
|
91
96
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingRequestsSentRequestSchema);
|
|
92
|
-
|
|
97
|
+
let response = await fetch("/following/requests/sent", "POST", jsonBody);
|
|
98
|
+
return S.parseOrThrow(response, postFollowingRequestsSentResponseSchema);
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
let postFollowingUpdateRequestSchema = S.object(s => ({
|
|
@@ -100,9 +106,10 @@ let postFollowingUpdateRequestSchema = S.object(s => ({
|
|
|
100
106
|
|
|
101
107
|
let postFollowingUpdateResponseSchema = KokonectLinkComponentSchemas.UserLite.schema;
|
|
102
108
|
|
|
103
|
-
function postFollowingUpdate(body, fetch) {
|
|
109
|
+
async function postFollowingUpdate(body, fetch) {
|
|
104
110
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postFollowingUpdateRequestSchema);
|
|
105
|
-
|
|
111
|
+
let response = await fetch("/following/update", "POST", jsonBody);
|
|
112
|
+
return S.parseOrThrow(response, postFollowingUpdateResponseSchema);
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
export {
|
|
@@ -15,9 +15,10 @@ let postGalleryPostsRequestSchema = S.object(s => ({
|
|
|
15
15
|
|
|
16
16
|
let postGalleryPostsResponseSchema = S.array(KokonectLinkComponentSchemas.GalleryPost.schema);
|
|
17
17
|
|
|
18
|
-
function postGalleryPosts(body, fetch) {
|
|
18
|
+
async function postGalleryPosts(body, fetch) {
|
|
19
19
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postGalleryPostsRequestSchema);
|
|
20
|
-
|
|
20
|
+
let response = await fetch("/gallery/posts", "POST", jsonBody);
|
|
21
|
+
return S.parseOrThrow(response, postGalleryPostsResponseSchema);
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
let postGalleryPostsCreateRequestSchema = S.object(s => ({
|
|
@@ -29,9 +30,10 @@ let postGalleryPostsCreateRequestSchema = S.object(s => ({
|
|
|
29
30
|
|
|
30
31
|
let postGalleryPostsCreateResponseSchema = KokonectLinkComponentSchemas.GalleryPost.schema;
|
|
31
32
|
|
|
32
|
-
function postGalleryPostsCreate(body, fetch) {
|
|
33
|
+
async function postGalleryPostsCreate(body, fetch) {
|
|
33
34
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postGalleryPostsCreateRequestSchema);
|
|
34
|
-
|
|
35
|
+
let response = await fetch("/gallery/posts/create", "POST", jsonBody);
|
|
36
|
+
return S.parseOrThrow(response, postGalleryPostsCreateResponseSchema);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
let postGalleryPostsShowRequestSchema = S.object(s => ({
|
|
@@ -40,9 +42,10 @@ let postGalleryPostsShowRequestSchema = S.object(s => ({
|
|
|
40
42
|
|
|
41
43
|
let postGalleryPostsShowResponseSchema = KokonectLinkComponentSchemas.GalleryPost.schema;
|
|
42
44
|
|
|
43
|
-
function postGalleryPostsShow(body, fetch) {
|
|
45
|
+
async function postGalleryPostsShow(body, fetch) {
|
|
44
46
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postGalleryPostsShowRequestSchema);
|
|
45
|
-
|
|
47
|
+
let response = await fetch("/gallery/posts/show", "POST", jsonBody);
|
|
48
|
+
return S.parseOrThrow(response, postGalleryPostsShowResponseSchema);
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
let postGalleryPostsUpdateRequestSchema = S.object(s => ({
|
|
@@ -55,9 +58,10 @@ let postGalleryPostsUpdateRequestSchema = S.object(s => ({
|
|
|
55
58
|
|
|
56
59
|
let postGalleryPostsUpdateResponseSchema = KokonectLinkComponentSchemas.GalleryPost.schema;
|
|
57
60
|
|
|
58
|
-
function postGalleryPostsUpdate(body, fetch) {
|
|
61
|
+
async function postGalleryPostsUpdate(body, fetch) {
|
|
59
62
|
let jsonBody = S.reverseConvertToJsonOrThrow(body, postGalleryPostsUpdateRequestSchema);
|
|
60
|
-
|
|
63
|
+
let response = await fetch("/gallery/posts/update", "POST", jsonBody);
|
|
64
|
+
return S.parseOrThrow(response, postGalleryPostsUpdateResponseSchema);
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
export {
|