@f3liz/rescript-misskey-api 0.6.8 → 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 +241 -313
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +485 -632
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +260 -341
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +101 -131
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +31 -40
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +10 -13
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +70 -91
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +116 -152
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +94 -121
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +289 -376
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +9 -12
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +29 -38
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +30 -39
- package/src/generated/kokonect-link/types/Account.d.ts +235 -177
- package/src/generated/kokonect-link/types/Admin.d.ts +640 -484
- package/src/generated/kokonect-link/types/Antennas.d.ts +36 -27
- package/src/generated/kokonect-link/types/App.d.ts +16 -12
- package/src/generated/kokonect-link/types/Auth.d.ts +30 -23
- package/src/generated/kokonect-link/types/Channels.d.ts +76 -57
- package/src/generated/kokonect-link/types/Charts.d.ts +104 -78
- package/src/generated/kokonect-link/types/Chat.d.ts +108 -81
- package/src/generated/kokonect-link/types/Clip.d.ts +8 -6
- package/src/generated/kokonect-link/types/Clips.d.ts +40 -30
- package/src/generated/kokonect-link/types/Default.d.ts +297 -232
- package/src/generated/kokonect-link/types/Drive.d.ts +120 -90
- package/src/generated/kokonect-link/types/Federation.d.ts +68 -51
- package/src/generated/kokonect-link/types/Flash.d.ts +33 -25
- package/src/generated/kokonect-link/types/Flashs.d.ts +12 -9
- package/src/generated/kokonect-link/types/Following.d.ts +68 -51
- package/src/generated/kokonect-link/types/Gallery.d.ts +52 -39
- package/src/generated/kokonect-link/types/Groups.d.ts +48 -36
- package/src/generated/kokonect-link/types/Hashtags.d.ts +32 -24
- package/src/generated/kokonect-link/types/Lists.d.ts +48 -36
- package/src/generated/kokonect-link/types/Meta.d.ts +133 -100
- package/src/generated/kokonect-link/types/NonProductive.d.ts +8 -6
- package/src/generated/kokonect-link/types/Notes.d.ts +256 -192
- package/src/generated/kokonect-link/types/Notifications.d.ts +20 -15
- package/src/generated/kokonect-link/types/Pages.d.ts +40 -30
- package/src/generated/kokonect-link/types/Reactions.d.ts +8 -6
- package/src/generated/kokonect-link/types/ResetPassword.d.ts +8 -6
- package/src/generated/kokonect-link/types/Role.d.ts +28 -21
- package/src/generated/kokonect-link/types/Users.d.ts +161 -121
- package/src/generated/kokonect-link/types/Webhooks.d.ts +44 -34
- package/src/generated/kokonect-link/types/index.d.ts +1 -2
- package/src/generated/kokonect-link/wrapper/index.d.ts +4813 -2131
- package/src/generated/kokonect-link/wrapper/index.mjs +2 -710
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +335 -437
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +1035 -1356
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoApp.res +20 -26
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +51 -66
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +129 -168
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +240 -312
- package/src/generated/misskey-io/api/MisskeyIoClip.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoClips.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +561 -726
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +178 -232
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +109 -142
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +47 -62
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +97 -127
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +88 -115
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +62 -80
- package/src/generated/misskey-io/api/MisskeyIoLists.res +86 -113
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +251 -323
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +341 -446
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +39 -51
- package/src/generated/misskey-io/api/MisskeyIoPages.res +67 -88
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoRole.res +41 -53
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +284 -368
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +69 -90
- package/src/generated/misskey-io/types/Account.d.ts +139 -105
- package/src/generated/misskey-io/types/Admin.d.ts +438 -331
- package/src/generated/misskey-io/types/Antennas.d.ts +24 -18
- package/src/generated/misskey-io/types/App.d.ts +8 -6
- package/src/generated/misskey-io/types/Auth.d.ts +22 -17
- package/src/generated/misskey-io/types/Channels.d.ts +52 -39
- package/src/generated/misskey-io/types/Charts.d.ts +96 -72
- package/src/generated/misskey-io/types/Clip.d.ts +8 -6
- package/src/generated/misskey-io/types/Clips.d.ts +24 -18
- package/src/generated/misskey-io/types/Default.d.ts +253 -198
- package/src/generated/misskey-io/types/Drive.d.ts +72 -54
- package/src/generated/misskey-io/types/Federation.d.ts +44 -33
- package/src/generated/misskey-io/types/Flash.d.ts +20 -15
- package/src/generated/misskey-io/types/Flashs.d.ts +8 -6
- package/src/generated/misskey-io/types/Following.d.ts +40 -30
- package/src/generated/misskey-io/types/Gallery.d.ts +36 -27
- package/src/generated/misskey-io/types/Hashtags.d.ts +24 -18
- package/src/generated/misskey-io/types/Lists.d.ts +36 -27
- package/src/generated/misskey-io/types/Meta.d.ts +97 -73
- package/src/generated/misskey-io/types/NonProductive.d.ts +8 -6
- package/src/generated/misskey-io/types/Notes.d.ts +140 -105
- package/src/generated/misskey-io/types/Notifications.d.ts +16 -12
- package/src/generated/misskey-io/types/Pages.d.ts +28 -21
- package/src/generated/misskey-io/types/Reactions.d.ts +8 -6
- package/src/generated/misskey-io/types/ResetPassword.d.ts +8 -6
- package/src/generated/misskey-io/types/Role.d.ts +16 -12
- package/src/generated/misskey-io/types/Users.d.ts +113 -85
- package/src/generated/misskey-io/types/Webhooks.d.ts +30 -23
- package/src/generated/misskey-io/types/index.d.ts +1 -2
- package/src/generated/misskey-io/wrapper/index.d.ts +3127 -1399
- package/src/generated/misskey-io/wrapper/index.mjs +2 -469
|
@@ -18,23 +18,20 @@ type postApGetResponse = dict<JSON.t>
|
|
|
18
18
|
let postApGetResponseSchema = S.dict(S.json)
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
let postApGet = (~body: postApGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
21
|
+
ap/get
|
|
22
|
+
|
|
23
|
+
No description provided.
|
|
24
|
+
|
|
25
|
+
**Credential required**: *Yes* / **Permission**: *read:federation*
|
|
26
|
+
*/
|
|
27
|
+
let postApGet = async (~body: postApGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postApGetResponse => {
|
|
28
28
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postApGetRequestSchema)
|
|
29
|
-
fetch(
|
|
29
|
+
let response = await fetch(
|
|
30
30
|
~url="/ap/get",
|
|
31
31
|
~method_="POST",
|
|
32
32
|
~body=Some(jsonBody),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
value
|
|
36
|
-
->Promise.resolve
|
|
37
|
-
})
|
|
33
|
+
)
|
|
34
|
+
response->S.parseOrThrow(postApGetResponseSchema)
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
type postApShowRequest = {
|
|
@@ -60,23 +57,20 @@ let postApShowResponse_1Schema = S.object(s => {
|
|
|
60
57
|
let postApShowResponseSchema = postApShowResponse_1Schema
|
|
61
58
|
|
|
62
59
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
let postApShow = (~body: postApShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
60
|
+
ap/show
|
|
61
|
+
|
|
62
|
+
No description provided.
|
|
63
|
+
|
|
64
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
65
|
+
*/
|
|
66
|
+
let postApShow = async (~body: postApShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postApShowResponse => {
|
|
70
67
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postApShowRequestSchema)
|
|
71
|
-
fetch(
|
|
68
|
+
let response = await fetch(
|
|
72
69
|
~url="/ap/show",
|
|
73
70
|
~method_="POST",
|
|
74
71
|
~body=Some(jsonBody),
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
value
|
|
78
|
-
->Promise.resolve
|
|
79
|
-
})
|
|
72
|
+
)
|
|
73
|
+
response->S.parseOrThrow(postApShowResponseSchema)
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
type postFederationFollowersRequest = {
|
|
@@ -98,23 +92,20 @@ type postFederationFollowersResponse = array<MisskeyIoComponentSchemas.Following
|
|
|
98
92
|
let postFederationFollowersResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema)
|
|
99
93
|
|
|
100
94
|
/**
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
let postFederationFollowers = (~body: postFederationFollowersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
95
|
+
federation/followers
|
|
96
|
+
|
|
97
|
+
No description provided.
|
|
98
|
+
|
|
99
|
+
**Credential required**: *No*
|
|
100
|
+
*/
|
|
101
|
+
let postFederationFollowers = async (~body: postFederationFollowersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationFollowersResponse => {
|
|
108
102
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationFollowersRequestSchema)
|
|
109
|
-
fetch(
|
|
103
|
+
let response = await fetch(
|
|
110
104
|
~url="/federation/followers",
|
|
111
105
|
~method_="POST",
|
|
112
106
|
~body=Some(jsonBody),
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
value
|
|
116
|
-
->Promise.resolve
|
|
117
|
-
})
|
|
107
|
+
)
|
|
108
|
+
response->S.parseOrThrow(postFederationFollowersResponseSchema)
|
|
118
109
|
}
|
|
119
110
|
|
|
120
111
|
type postFederationFollowingRequest = {
|
|
@@ -136,23 +127,20 @@ type postFederationFollowingResponse = array<MisskeyIoComponentSchemas.Following
|
|
|
136
127
|
let postFederationFollowingResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema)
|
|
137
128
|
|
|
138
129
|
/**
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
let postFederationFollowing = (~body: postFederationFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
130
|
+
federation/following
|
|
131
|
+
|
|
132
|
+
No description provided.
|
|
133
|
+
|
|
134
|
+
**Credential required**: *No*
|
|
135
|
+
*/
|
|
136
|
+
let postFederationFollowing = async (~body: postFederationFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationFollowingResponse => {
|
|
146
137
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationFollowingRequestSchema)
|
|
147
|
-
fetch(
|
|
138
|
+
let response = await fetch(
|
|
148
139
|
~url="/federation/following",
|
|
149
140
|
~method_="POST",
|
|
150
141
|
~body=Some(jsonBody),
|
|
151
|
-
)
|
|
152
|
-
|
|
153
|
-
value
|
|
154
|
-
->Promise.resolve
|
|
155
|
-
})
|
|
142
|
+
)
|
|
143
|
+
response->S.parseOrThrow(postFederationFollowingResponseSchema)
|
|
156
144
|
}
|
|
157
145
|
|
|
158
146
|
type getFederationInstancesRequest = {
|
|
@@ -188,23 +176,20 @@ type getFederationInstancesResponse = array<MisskeyIoComponentSchemas.Federation
|
|
|
188
176
|
let getFederationInstancesResponseSchema = S.array(MisskeyIoComponentSchemas.FederationInstance.schema)
|
|
189
177
|
|
|
190
178
|
/**
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
let getFederationInstances = (~body: getFederationInstancesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
179
|
+
federation/instances
|
|
180
|
+
|
|
181
|
+
No description provided.
|
|
182
|
+
|
|
183
|
+
**Credential required**: *No*
|
|
184
|
+
*/
|
|
185
|
+
let getFederationInstances = async (~body: getFederationInstancesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getFederationInstancesResponse => {
|
|
198
186
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getFederationInstancesRequestSchema)
|
|
199
|
-
fetch(
|
|
187
|
+
let response = await fetch(
|
|
200
188
|
~url="/federation/instances",
|
|
201
189
|
~method_="GET",
|
|
202
190
|
~body=Some(jsonBody),
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
value
|
|
206
|
-
->Promise.resolve
|
|
207
|
-
})
|
|
191
|
+
)
|
|
192
|
+
response->S.parseOrThrow(getFederationInstancesResponseSchema)
|
|
208
193
|
}
|
|
209
194
|
|
|
210
195
|
type postFederationInstancesRequest = {
|
|
@@ -240,23 +225,20 @@ type postFederationInstancesResponse = array<MisskeyIoComponentSchemas.Federatio
|
|
|
240
225
|
let postFederationInstancesResponseSchema = S.array(MisskeyIoComponentSchemas.FederationInstance.schema)
|
|
241
226
|
|
|
242
227
|
/**
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
let postFederationInstances = (~body: postFederationInstancesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
228
|
+
federation/instances
|
|
229
|
+
|
|
230
|
+
No description provided.
|
|
231
|
+
|
|
232
|
+
**Credential required**: *No*
|
|
233
|
+
*/
|
|
234
|
+
let postFederationInstances = async (~body: postFederationInstancesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationInstancesResponse => {
|
|
250
235
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationInstancesRequestSchema)
|
|
251
|
-
fetch(
|
|
236
|
+
let response = await fetch(
|
|
252
237
|
~url="/federation/instances",
|
|
253
238
|
~method_="POST",
|
|
254
239
|
~body=Some(jsonBody),
|
|
255
|
-
)
|
|
256
|
-
|
|
257
|
-
value
|
|
258
|
-
->Promise.resolve
|
|
259
|
-
})
|
|
240
|
+
)
|
|
241
|
+
response->S.parseOrThrow(postFederationInstancesResponseSchema)
|
|
260
242
|
}
|
|
261
243
|
|
|
262
244
|
type postFederationShowInstanceRequest = {
|
|
@@ -272,23 +254,20 @@ type postFederationShowInstanceResponse = option<MisskeyIoComponentSchemas.Feder
|
|
|
272
254
|
let postFederationShowInstanceResponseSchema = S.nullableAsOption(MisskeyIoComponentSchemas.FederationInstance.schema)
|
|
273
255
|
|
|
274
256
|
/**
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
let postFederationShowInstance = (~body: postFederationShowInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
257
|
+
federation/show-instance
|
|
258
|
+
|
|
259
|
+
No description provided.
|
|
260
|
+
|
|
261
|
+
**Credential required**: *No*
|
|
262
|
+
*/
|
|
263
|
+
let postFederationShowInstance = async (~body: postFederationShowInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationShowInstanceResponse => {
|
|
282
264
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationShowInstanceRequestSchema)
|
|
283
|
-
fetch(
|
|
265
|
+
let response = await fetch(
|
|
284
266
|
~url="/federation/show-instance",
|
|
285
267
|
~method_="POST",
|
|
286
268
|
~body=Some(jsonBody),
|
|
287
|
-
)
|
|
288
|
-
|
|
289
|
-
value
|
|
290
|
-
->Promise.resolve
|
|
291
|
-
})
|
|
269
|
+
)
|
|
270
|
+
response->S.parseOrThrow(postFederationShowInstanceResponseSchema)
|
|
292
271
|
}
|
|
293
272
|
|
|
294
273
|
type getFederationStatsRequest = {
|
|
@@ -314,23 +293,20 @@ let getFederationStatsResponseSchema = S.object(s => {
|
|
|
314
293
|
})
|
|
315
294
|
|
|
316
295
|
/**
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
let getFederationStats = (~body: getFederationStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
296
|
+
federation/stats
|
|
297
|
+
|
|
298
|
+
No description provided.
|
|
299
|
+
|
|
300
|
+
**Credential required**: *No*
|
|
301
|
+
*/
|
|
302
|
+
let getFederationStats = async (~body: getFederationStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getFederationStatsResponse => {
|
|
324
303
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getFederationStatsRequestSchema)
|
|
325
|
-
fetch(
|
|
304
|
+
let response = await fetch(
|
|
326
305
|
~url="/federation/stats",
|
|
327
306
|
~method_="GET",
|
|
328
307
|
~body=Some(jsonBody),
|
|
329
|
-
)
|
|
330
|
-
|
|
331
|
-
value
|
|
332
|
-
->Promise.resolve
|
|
333
|
-
})
|
|
308
|
+
)
|
|
309
|
+
response->S.parseOrThrow(getFederationStatsResponseSchema)
|
|
334
310
|
}
|
|
335
311
|
|
|
336
312
|
type postFederationStatsRequest = {
|
|
@@ -356,23 +332,20 @@ let postFederationStatsResponseSchema = S.object(s => {
|
|
|
356
332
|
})
|
|
357
333
|
|
|
358
334
|
/**
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
let postFederationStats = (~body: postFederationStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
335
|
+
federation/stats
|
|
336
|
+
|
|
337
|
+
No description provided.
|
|
338
|
+
|
|
339
|
+
**Credential required**: *No*
|
|
340
|
+
*/
|
|
341
|
+
let postFederationStats = async (~body: postFederationStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationStatsResponse => {
|
|
366
342
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationStatsRequestSchema)
|
|
367
|
-
fetch(
|
|
343
|
+
let response = await fetch(
|
|
368
344
|
~url="/federation/stats",
|
|
369
345
|
~method_="POST",
|
|
370
346
|
~body=Some(jsonBody),
|
|
371
|
-
)
|
|
372
|
-
|
|
373
|
-
value
|
|
374
|
-
->Promise.resolve
|
|
375
|
-
})
|
|
347
|
+
)
|
|
348
|
+
response->S.parseOrThrow(postFederationStatsResponseSchema)
|
|
376
349
|
}
|
|
377
350
|
|
|
378
351
|
type postFederationUpdateRemoteUserRequest = {
|
|
@@ -386,23 +359,20 @@ let postFederationUpdateRemoteUserRequestSchema = S.object(s => {
|
|
|
386
359
|
type postFederationUpdateRemoteUserResponse = unit
|
|
387
360
|
|
|
388
361
|
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
let postFederationUpdateRemoteUser = (~body: postFederationUpdateRemoteUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
362
|
+
federation/update-remote-user
|
|
363
|
+
|
|
364
|
+
No description provided.
|
|
365
|
+
|
|
366
|
+
**Credential required**: *No*
|
|
367
|
+
*/
|
|
368
|
+
let postFederationUpdateRemoteUser = async (~body: postFederationUpdateRemoteUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationUpdateRemoteUserResponse => {
|
|
396
369
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationUpdateRemoteUserRequestSchema)
|
|
397
|
-
fetch(
|
|
370
|
+
let response = await fetch(
|
|
398
371
|
~url="/federation/update-remote-user",
|
|
399
372
|
~method_="POST",
|
|
400
373
|
~body=Some(jsonBody),
|
|
401
|
-
)
|
|
374
|
+
)
|
|
402
375
|
let _ = response
|
|
403
|
-
()
|
|
404
|
-
->Promise.resolve
|
|
405
|
-
})
|
|
406
376
|
}
|
|
407
377
|
|
|
408
378
|
type postFederationUsersRequest = {
|
|
@@ -424,21 +394,18 @@ type postFederationUsersResponse = array<MisskeyIoComponentSchemas.UserDetailedN
|
|
|
424
394
|
let postFederationUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailedNotMe.schema)
|
|
425
395
|
|
|
426
396
|
/**
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
let postFederationUsers = (~body: postFederationUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
397
|
+
federation/users
|
|
398
|
+
|
|
399
|
+
No description provided.
|
|
400
|
+
|
|
401
|
+
**Credential required**: *No*
|
|
402
|
+
*/
|
|
403
|
+
let postFederationUsers = async (~body: postFederationUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFederationUsersResponse => {
|
|
434
404
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFederationUsersRequestSchema)
|
|
435
|
-
fetch(
|
|
405
|
+
let response = await fetch(
|
|
436
406
|
~url="/federation/users",
|
|
437
407
|
~method_="POST",
|
|
438
408
|
~body=Some(jsonBody),
|
|
439
|
-
)
|
|
440
|
-
|
|
441
|
-
value
|
|
442
|
-
->Promise.resolve
|
|
443
|
-
})
|
|
409
|
+
)
|
|
410
|
+
response->S.parseOrThrow(postFederationUsersResponseSchema)
|
|
444
411
|
}
|
|
@@ -26,23 +26,20 @@ type postFlashCreateResponse = MisskeyIoComponentSchemas.Flash.t
|
|
|
26
26
|
let postFlashCreateResponseSchema = MisskeyIoComponentSchemas.Flash.schema
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
let postFlashCreate = (~body: postFlashCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
29
|
+
flash/create
|
|
30
|
+
|
|
31
|
+
No description provided.
|
|
32
|
+
|
|
33
|
+
**Credential required**: *Yes* / **Permission**: *write:flash*
|
|
34
|
+
*/
|
|
35
|
+
let postFlashCreate = async (~body: postFlashCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashCreateResponse => {
|
|
36
36
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashCreateRequestSchema)
|
|
37
|
-
fetch(
|
|
37
|
+
let response = await fetch(
|
|
38
38
|
~url="/flash/create",
|
|
39
39
|
~method_="POST",
|
|
40
40
|
~body=Some(jsonBody),
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
value
|
|
44
|
-
->Promise.resolve
|
|
45
|
-
})
|
|
41
|
+
)
|
|
42
|
+
response->S.parseOrThrow(postFlashCreateResponseSchema)
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
type postFlashFeaturedRequest = {
|
|
@@ -60,23 +57,20 @@ type postFlashFeaturedResponse = array<MisskeyIoComponentSchemas.Flash.t>
|
|
|
60
57
|
let postFlashFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema)
|
|
61
58
|
|
|
62
59
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
let postFlashFeatured = (~body: postFlashFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
60
|
+
flash/featured
|
|
61
|
+
|
|
62
|
+
No description provided.
|
|
63
|
+
|
|
64
|
+
**Credential required**: *No*
|
|
65
|
+
*/
|
|
66
|
+
let postFlashFeatured = async (~body: postFlashFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashFeaturedResponse => {
|
|
70
67
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashFeaturedRequestSchema)
|
|
71
|
-
fetch(
|
|
68
|
+
let response = await fetch(
|
|
72
69
|
~url="/flash/featured",
|
|
73
70
|
~method_="POST",
|
|
74
71
|
~body=Some(jsonBody),
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
value
|
|
78
|
-
->Promise.resolve
|
|
79
|
-
})
|
|
72
|
+
)
|
|
73
|
+
response->S.parseOrThrow(postFlashFeaturedResponseSchema)
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
type postFlashLikeRequest = {
|
|
@@ -90,23 +84,20 @@ let postFlashLikeRequestSchema = S.object(s => {
|
|
|
90
84
|
type postFlashLikeResponse = unit
|
|
91
85
|
|
|
92
86
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
let postFlashLike = (~body: postFlashLikeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
87
|
+
flash/like
|
|
88
|
+
|
|
89
|
+
No description provided.
|
|
90
|
+
|
|
91
|
+
**Credential required**: *Yes* / **Permission**: *write:flash-likes*
|
|
92
|
+
*/
|
|
93
|
+
let postFlashLike = async (~body: postFlashLikeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashLikeResponse => {
|
|
100
94
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashLikeRequestSchema)
|
|
101
|
-
fetch(
|
|
95
|
+
let response = await fetch(
|
|
102
96
|
~url="/flash/like",
|
|
103
97
|
~method_="POST",
|
|
104
98
|
~body=Some(jsonBody),
|
|
105
|
-
)
|
|
99
|
+
)
|
|
106
100
|
let _ = response
|
|
107
|
-
()
|
|
108
|
-
->Promise.resolve
|
|
109
|
-
})
|
|
110
101
|
}
|
|
111
102
|
|
|
112
103
|
type postFlashUnlikeRequest = {
|
|
@@ -120,23 +111,20 @@ let postFlashUnlikeRequestSchema = S.object(s => {
|
|
|
120
111
|
type postFlashUnlikeResponse = unit
|
|
121
112
|
|
|
122
113
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
let postFlashUnlike = (~body: postFlashUnlikeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
114
|
+
flash/unlike
|
|
115
|
+
|
|
116
|
+
No description provided.
|
|
117
|
+
|
|
118
|
+
**Credential required**: *Yes* / **Permission**: *write:flash-likes*
|
|
119
|
+
*/
|
|
120
|
+
let postFlashUnlike = async (~body: postFlashUnlikeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashUnlikeResponse => {
|
|
130
121
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashUnlikeRequestSchema)
|
|
131
|
-
fetch(
|
|
122
|
+
let response = await fetch(
|
|
132
123
|
~url="/flash/unlike",
|
|
133
124
|
~method_="POST",
|
|
134
125
|
~body=Some(jsonBody),
|
|
135
|
-
)
|
|
126
|
+
)
|
|
136
127
|
let _ = response
|
|
137
|
-
()
|
|
138
|
-
->Promise.resolve
|
|
139
|
-
})
|
|
140
128
|
}
|
|
141
129
|
|
|
142
130
|
type postFlashUpdateRequest = {
|
|
@@ -160,21 +148,18 @@ let postFlashUpdateRequestSchema = S.object(s => {
|
|
|
160
148
|
type postFlashUpdateResponse = unit
|
|
161
149
|
|
|
162
150
|
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
let postFlashUpdate = (~body: postFlashUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
151
|
+
flash/update
|
|
152
|
+
|
|
153
|
+
No description provided.
|
|
154
|
+
|
|
155
|
+
**Credential required**: *Yes* / **Permission**: *write:flash*
|
|
156
|
+
*/
|
|
157
|
+
let postFlashUpdate = async (~body: postFlashUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashUpdateResponse => {
|
|
170
158
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashUpdateRequestSchema)
|
|
171
|
-
fetch(
|
|
159
|
+
let response = await fetch(
|
|
172
160
|
~url="/flash/update",
|
|
173
161
|
~method_="POST",
|
|
174
162
|
~body=Some(jsonBody),
|
|
175
|
-
)
|
|
163
|
+
)
|
|
176
164
|
let _ = response
|
|
177
|
-
()
|
|
178
|
-
->Promise.resolve
|
|
179
|
-
})
|
|
180
165
|
}
|
|
@@ -16,23 +16,20 @@ let postFlashDeleteRequestSchema = S.object(s => {
|
|
|
16
16
|
type postFlashDeleteResponse = unit
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let postFlashDelete = (~body: postFlashDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
19
|
+
flash/delete
|
|
20
|
+
|
|
21
|
+
No description provided.
|
|
22
|
+
|
|
23
|
+
**Credential required**: *Yes* / **Permission**: *write:flash*
|
|
24
|
+
*/
|
|
25
|
+
let postFlashDelete = async (~body: postFlashDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashDeleteResponse => {
|
|
26
26
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashDeleteRequestSchema)
|
|
27
|
-
fetch(
|
|
27
|
+
let response = await fetch(
|
|
28
28
|
~url="/flash/delete",
|
|
29
29
|
~method_="POST",
|
|
30
30
|
~body=Some(jsonBody),
|
|
31
|
-
)
|
|
31
|
+
)
|
|
32
32
|
let _ = response
|
|
33
|
-
()
|
|
34
|
-
->Promise.resolve
|
|
35
|
-
})
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
type postFlashShowRequest = {
|
|
@@ -48,21 +45,18 @@ type postFlashShowResponse = MisskeyIoComponentSchemas.Flash.t
|
|
|
48
45
|
let postFlashShowResponseSchema = MisskeyIoComponentSchemas.Flash.schema
|
|
49
46
|
|
|
50
47
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
let postFlashShow = (~body: postFlashShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
48
|
+
flash/show
|
|
49
|
+
|
|
50
|
+
No description provided.
|
|
51
|
+
|
|
52
|
+
**Credential required**: *No*
|
|
53
|
+
*/
|
|
54
|
+
let postFlashShow = async (~body: postFlashShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashShowResponse => {
|
|
58
55
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashShowRequestSchema)
|
|
59
|
-
fetch(
|
|
56
|
+
let response = await fetch(
|
|
60
57
|
~url="/flash/show",
|
|
61
58
|
~method_="POST",
|
|
62
59
|
~body=Some(jsonBody),
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
value
|
|
66
|
-
->Promise.resolve
|
|
67
|
-
})
|
|
60
|
+
)
|
|
61
|
+
response->S.parseOrThrow(postFlashShowResponseSchema)
|
|
68
62
|
}
|