@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
|
@@ -16,24 +16,21 @@ let postAdminEmojiImportZipRequestSchema = S.object(s => {
|
|
|
16
16
|
type postAdminEmojiImportZipResponse = unit
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let postAdminEmojiImportZip = (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
19
|
+
admin/emoji/import-zip
|
|
20
|
+
|
|
21
|
+
No description provided.
|
|
22
|
+
|
|
23
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
24
|
+
**Credential required**: *Yes*
|
|
25
|
+
*/
|
|
26
|
+
let postAdminEmojiImportZip = async (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiImportZipResponse => {
|
|
27
27
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiImportZipRequestSchema)
|
|
28
|
-
fetch(
|
|
28
|
+
let response = await fetch(
|
|
29
29
|
~url="/admin/emoji/import-zip",
|
|
30
30
|
~method_="POST",
|
|
31
31
|
~body=Some(jsonBody),
|
|
32
|
-
)
|
|
32
|
+
)
|
|
33
33
|
let _ = response
|
|
34
|
-
()
|
|
35
|
-
->Promise.resolve
|
|
36
|
-
})
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
type getBubbleGameRankingRequest = {
|
|
@@ -61,23 +58,20 @@ let getBubbleGameRankingResponse_1Schema = S.object(s => {
|
|
|
61
58
|
let getBubbleGameRankingResponseSchema = S.array(getBubbleGameRankingResponse_1Schema)
|
|
62
59
|
|
|
63
60
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
let getBubbleGameRanking = (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
61
|
+
bubble-game/ranking
|
|
62
|
+
|
|
63
|
+
No description provided.
|
|
64
|
+
|
|
65
|
+
**Credential required**: *No*
|
|
66
|
+
*/
|
|
67
|
+
let getBubbleGameRanking = async (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getBubbleGameRankingResponse => {
|
|
71
68
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getBubbleGameRankingRequestSchema)
|
|
72
|
-
fetch(
|
|
69
|
+
let response = await fetch(
|
|
73
70
|
~url="/bubble-game/ranking",
|
|
74
71
|
~method_="GET",
|
|
75
72
|
~body=Some(jsonBody),
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
value
|
|
79
|
-
->Promise.resolve
|
|
80
|
-
})
|
|
73
|
+
)
|
|
74
|
+
response->S.parseOrThrow(getBubbleGameRankingResponseSchema)
|
|
81
75
|
}
|
|
82
76
|
|
|
83
77
|
type postBubbleGameRankingRequest = {
|
|
@@ -105,23 +99,20 @@ let postBubbleGameRankingResponse_1Schema = S.object(s => {
|
|
|
105
99
|
let postBubbleGameRankingResponseSchema = S.array(postBubbleGameRankingResponse_1Schema)
|
|
106
100
|
|
|
107
101
|
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
let postBubbleGameRanking = (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
102
|
+
bubble-game/ranking
|
|
103
|
+
|
|
104
|
+
No description provided.
|
|
105
|
+
|
|
106
|
+
**Credential required**: *No*
|
|
107
|
+
*/
|
|
108
|
+
let postBubbleGameRanking = async (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRankingResponse => {
|
|
115
109
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRankingRequestSchema)
|
|
116
|
-
fetch(
|
|
110
|
+
let response = await fetch(
|
|
117
111
|
~url="/bubble-game/ranking",
|
|
118
112
|
~method_="POST",
|
|
119
113
|
~body=Some(jsonBody),
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
value
|
|
123
|
-
->Promise.resolve
|
|
124
|
-
})
|
|
114
|
+
)
|
|
115
|
+
response->S.parseOrThrow(postBubbleGameRankingResponseSchema)
|
|
125
116
|
}
|
|
126
117
|
|
|
127
118
|
type postBubbleGameRegisterRequest = {
|
|
@@ -143,46 +134,40 @@ let postBubbleGameRegisterRequestSchema = S.object(s => {
|
|
|
143
134
|
type postBubbleGameRegisterResponse = unit
|
|
144
135
|
|
|
145
136
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
let postBubbleGameRegister = (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
137
|
+
bubble-game/register
|
|
138
|
+
|
|
139
|
+
No description provided.
|
|
140
|
+
|
|
141
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
142
|
+
*/
|
|
143
|
+
let postBubbleGameRegister = async (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRegisterResponse => {
|
|
153
144
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRegisterRequestSchema)
|
|
154
|
-
fetch(
|
|
145
|
+
let response = await fetch(
|
|
155
146
|
~url="/bubble-game/register",
|
|
156
147
|
~method_="POST",
|
|
157
148
|
~body=Some(jsonBody),
|
|
158
|
-
)
|
|
149
|
+
)
|
|
159
150
|
let _ = response
|
|
160
|
-
()
|
|
161
|
-
->Promise.resolve
|
|
162
|
-
})
|
|
163
151
|
}
|
|
164
152
|
|
|
165
153
|
type postExportCustomEmojisResponse = unit
|
|
166
154
|
|
|
167
155
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
let postExportCustomEmojis = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
176
|
-
|
|
177
|
-
fetch(
|
|
156
|
+
export-custom-emojis
|
|
157
|
+
|
|
158
|
+
No description provided.
|
|
159
|
+
|
|
160
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
161
|
+
**Credential required**: *Yes*
|
|
162
|
+
*/
|
|
163
|
+
let postExportCustomEmojis = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postExportCustomEmojisResponse => {
|
|
164
|
+
|
|
165
|
+
let response = await fetch(
|
|
178
166
|
~url="/export-custom-emojis",
|
|
179
167
|
~method_="POST",
|
|
180
168
|
~body=None,
|
|
181
|
-
)
|
|
169
|
+
)
|
|
182
170
|
let _ = response
|
|
183
|
-
()
|
|
184
|
-
->Promise.resolve
|
|
185
|
-
})
|
|
186
171
|
}
|
|
187
172
|
|
|
188
173
|
type postI2faDoneRequest = {
|
|
@@ -202,24 +187,21 @@ let postI2faDoneResponseSchema = S.object(s => {
|
|
|
202
187
|
})
|
|
203
188
|
|
|
204
189
|
/**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
let postI2faDone = (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
190
|
+
i/2fa/done
|
|
191
|
+
|
|
192
|
+
No description provided.
|
|
193
|
+
|
|
194
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
195
|
+
**Credential required**: *Yes*
|
|
196
|
+
*/
|
|
197
|
+
let postI2faDone = async (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faDoneResponse => {
|
|
213
198
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faDoneRequestSchema)
|
|
214
|
-
fetch(
|
|
199
|
+
let response = await fetch(
|
|
215
200
|
~url="/i/2fa/done",
|
|
216
201
|
~method_="POST",
|
|
217
202
|
~body=Some(jsonBody),
|
|
218
|
-
)
|
|
219
|
-
|
|
220
|
-
value
|
|
221
|
-
->Promise.resolve
|
|
222
|
-
})
|
|
203
|
+
)
|
|
204
|
+
response->S.parseOrThrow(postI2faDoneResponseSchema)
|
|
223
205
|
}
|
|
224
206
|
|
|
225
207
|
type postI2faKeyDoneRequest = {
|
|
@@ -247,24 +229,21 @@ let postI2faKeyDoneResponseSchema = S.object(s => {
|
|
|
247
229
|
})
|
|
248
230
|
|
|
249
231
|
/**
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
let postI2faKeyDone = (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
232
|
+
i/2fa/key-done
|
|
233
|
+
|
|
234
|
+
No description provided.
|
|
235
|
+
|
|
236
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
237
|
+
**Credential required**: *Yes*
|
|
238
|
+
*/
|
|
239
|
+
let postI2faKeyDone = async (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faKeyDoneResponse => {
|
|
258
240
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faKeyDoneRequestSchema)
|
|
259
|
-
fetch(
|
|
241
|
+
let response = await fetch(
|
|
260
242
|
~url="/i/2fa/key-done",
|
|
261
243
|
~method_="POST",
|
|
262
244
|
~body=Some(jsonBody),
|
|
263
|
-
)
|
|
264
|
-
|
|
265
|
-
value
|
|
266
|
-
->Promise.resolve
|
|
267
|
-
})
|
|
245
|
+
)
|
|
246
|
+
response->S.parseOrThrow(postI2faKeyDoneResponseSchema)
|
|
268
247
|
}
|
|
269
248
|
|
|
270
249
|
type postI2faPasswordLessRequest = {
|
|
@@ -278,24 +257,21 @@ let postI2faPasswordLessRequestSchema = S.object(s => {
|
|
|
278
257
|
type postI2faPasswordLessResponse = unit
|
|
279
258
|
|
|
280
259
|
/**
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
let postI2faPasswordLess = (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
260
|
+
i/2fa/password-less
|
|
261
|
+
|
|
262
|
+
No description provided.
|
|
263
|
+
|
|
264
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
265
|
+
**Credential required**: *Yes*
|
|
266
|
+
*/
|
|
267
|
+
let postI2faPasswordLess = async (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faPasswordLessResponse => {
|
|
289
268
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faPasswordLessRequestSchema)
|
|
290
|
-
fetch(
|
|
269
|
+
let response = await fetch(
|
|
291
270
|
~url="/i/2fa/password-less",
|
|
292
271
|
~method_="POST",
|
|
293
272
|
~body=Some(jsonBody),
|
|
294
|
-
)
|
|
273
|
+
)
|
|
295
274
|
let _ = response
|
|
296
|
-
()
|
|
297
|
-
->Promise.resolve
|
|
298
|
-
})
|
|
299
275
|
}
|
|
300
276
|
|
|
301
277
|
type postI2faRegisterRequest = {
|
|
@@ -325,24 +301,21 @@ let postI2faRegisterResponseSchema = S.object(s => {
|
|
|
325
301
|
})
|
|
326
302
|
|
|
327
303
|
/**
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
let postI2faRegister = (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
304
|
+
i/2fa/register
|
|
305
|
+
|
|
306
|
+
No description provided.
|
|
307
|
+
|
|
308
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
309
|
+
**Credential required**: *Yes*
|
|
310
|
+
*/
|
|
311
|
+
let postI2faRegister = async (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterResponse => {
|
|
336
312
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterRequestSchema)
|
|
337
|
-
fetch(
|
|
313
|
+
let response = await fetch(
|
|
338
314
|
~url="/i/2fa/register",
|
|
339
315
|
~method_="POST",
|
|
340
316
|
~body=Some(jsonBody),
|
|
341
|
-
)
|
|
342
|
-
|
|
343
|
-
value
|
|
344
|
-
->Promise.resolve
|
|
345
|
-
})
|
|
317
|
+
)
|
|
318
|
+
response->S.parseOrThrow(postI2faRegisterResponseSchema)
|
|
346
319
|
}
|
|
347
320
|
|
|
348
321
|
type postI2faRegisterKeyRequest = {
|
|
@@ -434,24 +407,21 @@ let postI2faRegisterKeyResponseSchema = S.object(s => {
|
|
|
434
407
|
})
|
|
435
408
|
|
|
436
409
|
/**
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
let postI2faRegisterKey = (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
410
|
+
i/2fa/register-key
|
|
411
|
+
|
|
412
|
+
No description provided.
|
|
413
|
+
|
|
414
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
415
|
+
**Credential required**: *Yes*
|
|
416
|
+
*/
|
|
417
|
+
let postI2faRegisterKey = async (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterKeyResponse => {
|
|
445
418
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterKeyRequestSchema)
|
|
446
|
-
fetch(
|
|
419
|
+
let response = await fetch(
|
|
447
420
|
~url="/i/2fa/register-key",
|
|
448
421
|
~method_="POST",
|
|
449
422
|
~body=Some(jsonBody),
|
|
450
|
-
)
|
|
451
|
-
|
|
452
|
-
value
|
|
453
|
-
->Promise.resolve
|
|
454
|
-
})
|
|
423
|
+
)
|
|
424
|
+
response->S.parseOrThrow(postI2faRegisterKeyResponseSchema)
|
|
455
425
|
}
|
|
456
426
|
|
|
457
427
|
type postI2faRemoveKeyRequest = {
|
|
@@ -469,24 +439,21 @@ let postI2faRemoveKeyRequestSchema = S.object(s => {
|
|
|
469
439
|
type postI2faRemoveKeyResponse = unit
|
|
470
440
|
|
|
471
441
|
/**
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
let postI2faRemoveKey = (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
442
|
+
i/2fa/remove-key
|
|
443
|
+
|
|
444
|
+
No description provided.
|
|
445
|
+
|
|
446
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
447
|
+
**Credential required**: *Yes*
|
|
448
|
+
*/
|
|
449
|
+
let postI2faRemoveKey = async (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRemoveKeyResponse => {
|
|
480
450
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRemoveKeyRequestSchema)
|
|
481
|
-
fetch(
|
|
451
|
+
let response = await fetch(
|
|
482
452
|
~url="/i/2fa/remove-key",
|
|
483
453
|
~method_="POST",
|
|
484
454
|
~body=Some(jsonBody),
|
|
485
|
-
)
|
|
455
|
+
)
|
|
486
456
|
let _ = response
|
|
487
|
-
()
|
|
488
|
-
->Promise.resolve
|
|
489
|
-
})
|
|
490
457
|
}
|
|
491
458
|
|
|
492
459
|
type postI2faUnregisterRequest = {
|
|
@@ -502,24 +469,21 @@ let postI2faUnregisterRequestSchema = S.object(s => {
|
|
|
502
469
|
type postI2faUnregisterResponse = unit
|
|
503
470
|
|
|
504
471
|
/**
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
let postI2faUnregister = (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
472
|
+
i/2fa/unregister
|
|
473
|
+
|
|
474
|
+
No description provided.
|
|
475
|
+
|
|
476
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
477
|
+
**Credential required**: *Yes*
|
|
478
|
+
*/
|
|
479
|
+
let postI2faUnregister = async (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUnregisterResponse => {
|
|
513
480
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUnregisterRequestSchema)
|
|
514
|
-
fetch(
|
|
481
|
+
let response = await fetch(
|
|
515
482
|
~url="/i/2fa/unregister",
|
|
516
483
|
~method_="POST",
|
|
517
484
|
~body=Some(jsonBody),
|
|
518
|
-
)
|
|
485
|
+
)
|
|
519
486
|
let _ = response
|
|
520
|
-
()
|
|
521
|
-
->Promise.resolve
|
|
522
|
-
})
|
|
523
487
|
}
|
|
524
488
|
|
|
525
489
|
type postI2faUpdateKeyRequest = {
|
|
@@ -535,24 +499,21 @@ let postI2faUpdateKeyRequestSchema = S.object(s => {
|
|
|
535
499
|
type postI2faUpdateKeyResponse = unit
|
|
536
500
|
|
|
537
501
|
/**
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
let postI2faUpdateKey = (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
502
|
+
i/2fa/update-key
|
|
503
|
+
|
|
504
|
+
No description provided.
|
|
505
|
+
|
|
506
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
507
|
+
**Credential required**: *Yes*
|
|
508
|
+
*/
|
|
509
|
+
let postI2faUpdateKey = async (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUpdateKeyResponse => {
|
|
546
510
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUpdateKeyRequestSchema)
|
|
547
|
-
fetch(
|
|
511
|
+
let response = await fetch(
|
|
548
512
|
~url="/i/2fa/update-key",
|
|
549
513
|
~method_="POST",
|
|
550
514
|
~body=Some(jsonBody),
|
|
551
|
-
)
|
|
515
|
+
)
|
|
552
516
|
let _ = response
|
|
553
|
-
()
|
|
554
|
-
->Promise.resolve
|
|
555
|
-
})
|
|
556
517
|
}
|
|
557
518
|
|
|
558
519
|
type postIAppsRequest = {
|
|
@@ -584,24 +545,21 @@ let postIAppsResponse_1Schema = S.object(s => {
|
|
|
584
545
|
let postIAppsResponseSchema = S.array(postIAppsResponse_1Schema)
|
|
585
546
|
|
|
586
547
|
/**
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
let postIApps = (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
548
|
+
i/apps
|
|
549
|
+
|
|
550
|
+
No description provided.
|
|
551
|
+
|
|
552
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
553
|
+
**Credential required**: *Yes*
|
|
554
|
+
*/
|
|
555
|
+
let postIApps = async (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAppsResponse => {
|
|
595
556
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAppsRequestSchema)
|
|
596
|
-
fetch(
|
|
557
|
+
let response = await fetch(
|
|
597
558
|
~url="/i/apps",
|
|
598
559
|
~method_="POST",
|
|
599
560
|
~body=Some(jsonBody),
|
|
600
|
-
)
|
|
601
|
-
|
|
602
|
-
value
|
|
603
|
-
->Promise.resolve
|
|
604
|
-
})
|
|
561
|
+
)
|
|
562
|
+
response->S.parseOrThrow(postIAppsResponseSchema)
|
|
605
563
|
}
|
|
606
564
|
|
|
607
565
|
type postIAuthorizedAppsRequest = {
|
|
@@ -637,24 +595,21 @@ let postIAuthorizedAppsResponse_1Schema = S.object(s => {
|
|
|
637
595
|
let postIAuthorizedAppsResponseSchema = S.array(postIAuthorizedAppsResponse_1Schema)
|
|
638
596
|
|
|
639
597
|
/**
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
let postIAuthorizedApps = (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
598
|
+
i/authorized-apps
|
|
599
|
+
|
|
600
|
+
No description provided.
|
|
601
|
+
|
|
602
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
603
|
+
**Credential required**: *Yes*
|
|
604
|
+
*/
|
|
605
|
+
let postIAuthorizedApps = async (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAuthorizedAppsResponse => {
|
|
648
606
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAuthorizedAppsRequestSchema)
|
|
649
|
-
fetch(
|
|
607
|
+
let response = await fetch(
|
|
650
608
|
~url="/i/authorized-apps",
|
|
651
609
|
~method_="POST",
|
|
652
610
|
~body=Some(jsonBody),
|
|
653
|
-
)
|
|
654
|
-
|
|
655
|
-
value
|
|
656
|
-
->Promise.resolve
|
|
657
|
-
})
|
|
611
|
+
)
|
|
612
|
+
response->S.parseOrThrow(postIAuthorizedAppsResponseSchema)
|
|
658
613
|
}
|
|
659
614
|
|
|
660
615
|
type postIChangePasswordRequest = {
|
|
@@ -672,24 +627,21 @@ let postIChangePasswordRequestSchema = S.object(s => {
|
|
|
672
627
|
type postIChangePasswordResponse = unit
|
|
673
628
|
|
|
674
629
|
/**
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
let postIChangePassword = (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
630
|
+
i/change-password
|
|
631
|
+
|
|
632
|
+
No description provided.
|
|
633
|
+
|
|
634
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
635
|
+
**Credential required**: *Yes*
|
|
636
|
+
*/
|
|
637
|
+
let postIChangePassword = async (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIChangePasswordResponse => {
|
|
683
638
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIChangePasswordRequestSchema)
|
|
684
|
-
fetch(
|
|
639
|
+
let response = await fetch(
|
|
685
640
|
~url="/i/change-password",
|
|
686
641
|
~method_="POST",
|
|
687
642
|
~body=Some(jsonBody),
|
|
688
|
-
)
|
|
643
|
+
)
|
|
689
644
|
let _ = response
|
|
690
|
-
()
|
|
691
|
-
->Promise.resolve
|
|
692
|
-
})
|
|
693
645
|
}
|
|
694
646
|
|
|
695
647
|
type postIClaimAchievementRequest = {
|
|
@@ -703,23 +655,20 @@ let postIClaimAchievementRequestSchema = S.object(s => {
|
|
|
703
655
|
type postIClaimAchievementResponse = unit
|
|
704
656
|
|
|
705
657
|
/**
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
let postIClaimAchievement = (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
658
|
+
i/claim-achievement
|
|
659
|
+
|
|
660
|
+
No description provided.
|
|
661
|
+
|
|
662
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
663
|
+
*/
|
|
664
|
+
let postIClaimAchievement = async (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIClaimAchievementResponse => {
|
|
713
665
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIClaimAchievementRequestSchema)
|
|
714
|
-
fetch(
|
|
666
|
+
let response = await fetch(
|
|
715
667
|
~url="/i/claim-achievement",
|
|
716
668
|
~method_="POST",
|
|
717
669
|
~body=Some(jsonBody),
|
|
718
|
-
)
|
|
670
|
+
)
|
|
719
671
|
let _ = response
|
|
720
|
-
()
|
|
721
|
-
->Promise.resolve
|
|
722
|
-
})
|
|
723
672
|
}
|
|
724
673
|
|
|
725
674
|
type postIDeleteAccountRequest = {
|
|
@@ -735,116 +684,101 @@ let postIDeleteAccountRequestSchema = S.object(s => {
|
|
|
735
684
|
type postIDeleteAccountResponse = unit
|
|
736
685
|
|
|
737
686
|
/**
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
let postIDeleteAccount = (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
687
|
+
i/delete-account
|
|
688
|
+
|
|
689
|
+
No description provided.
|
|
690
|
+
|
|
691
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
692
|
+
**Credential required**: *Yes*
|
|
693
|
+
*/
|
|
694
|
+
let postIDeleteAccount = async (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIDeleteAccountResponse => {
|
|
746
695
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIDeleteAccountRequestSchema)
|
|
747
|
-
fetch(
|
|
696
|
+
let response = await fetch(
|
|
748
697
|
~url="/i/delete-account",
|
|
749
698
|
~method_="POST",
|
|
750
699
|
~body=Some(jsonBody),
|
|
751
|
-
)
|
|
700
|
+
)
|
|
752
701
|
let _ = response
|
|
753
|
-
()
|
|
754
|
-
->Promise.resolve
|
|
755
|
-
})
|
|
756
702
|
}
|
|
757
703
|
|
|
758
704
|
type postIExportAntennasResponse = unit
|
|
759
705
|
|
|
760
706
|
/**
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
let postIExportAntennas = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
769
|
-
|
|
770
|
-
fetch(
|
|
707
|
+
i/export-antennas
|
|
708
|
+
|
|
709
|
+
No description provided.
|
|
710
|
+
|
|
711
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
712
|
+
**Credential required**: *Yes*
|
|
713
|
+
*/
|
|
714
|
+
let postIExportAntennas = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportAntennasResponse => {
|
|
715
|
+
|
|
716
|
+
let response = await fetch(
|
|
771
717
|
~url="/i/export-antennas",
|
|
772
718
|
~method_="POST",
|
|
773
719
|
~body=None,
|
|
774
|
-
)
|
|
720
|
+
)
|
|
775
721
|
let _ = response
|
|
776
|
-
()
|
|
777
|
-
->Promise.resolve
|
|
778
|
-
})
|
|
779
722
|
}
|
|
780
723
|
|
|
781
724
|
type postIExportBlockingResponse = unit
|
|
782
725
|
|
|
783
726
|
/**
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
let postIExportBlocking = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
792
|
-
|
|
793
|
-
fetch(
|
|
727
|
+
i/export-blocking
|
|
728
|
+
|
|
729
|
+
No description provided.
|
|
730
|
+
|
|
731
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
732
|
+
**Credential required**: *Yes*
|
|
733
|
+
*/
|
|
734
|
+
let postIExportBlocking = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportBlockingResponse => {
|
|
735
|
+
|
|
736
|
+
let response = await fetch(
|
|
794
737
|
~url="/i/export-blocking",
|
|
795
738
|
~method_="POST",
|
|
796
739
|
~body=None,
|
|
797
|
-
)
|
|
740
|
+
)
|
|
798
741
|
let _ = response
|
|
799
|
-
()
|
|
800
|
-
->Promise.resolve
|
|
801
|
-
})
|
|
802
742
|
}
|
|
803
743
|
|
|
804
744
|
type postIExportClipsResponse = unit
|
|
805
745
|
|
|
806
746
|
/**
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
let postIExportClips = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
815
|
-
|
|
816
|
-
fetch(
|
|
747
|
+
i/export-clips
|
|
748
|
+
|
|
749
|
+
No description provided.
|
|
750
|
+
|
|
751
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
752
|
+
**Credential required**: *Yes*
|
|
753
|
+
*/
|
|
754
|
+
let postIExportClips = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportClipsResponse => {
|
|
755
|
+
|
|
756
|
+
let response = await fetch(
|
|
817
757
|
~url="/i/export-clips",
|
|
818
758
|
~method_="POST",
|
|
819
759
|
~body=None,
|
|
820
|
-
)
|
|
760
|
+
)
|
|
821
761
|
let _ = response
|
|
822
|
-
()
|
|
823
|
-
->Promise.resolve
|
|
824
|
-
})
|
|
825
762
|
}
|
|
826
763
|
|
|
827
764
|
type postIExportFavoritesResponse = unit
|
|
828
765
|
|
|
829
766
|
/**
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
let postIExportFavorites = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
838
|
-
|
|
839
|
-
fetch(
|
|
767
|
+
i/export-favorites
|
|
768
|
+
|
|
769
|
+
No description provided.
|
|
770
|
+
|
|
771
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
772
|
+
**Credential required**: *Yes*
|
|
773
|
+
*/
|
|
774
|
+
let postIExportFavorites = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFavoritesResponse => {
|
|
775
|
+
|
|
776
|
+
let response = await fetch(
|
|
840
777
|
~url="/i/export-favorites",
|
|
841
778
|
~method_="POST",
|
|
842
779
|
~body=None,
|
|
843
|
-
)
|
|
780
|
+
)
|
|
844
781
|
let _ = response
|
|
845
|
-
()
|
|
846
|
-
->Promise.resolve
|
|
847
|
-
})
|
|
848
782
|
}
|
|
849
783
|
|
|
850
784
|
type postIExportFollowingRequest = {
|
|
@@ -860,93 +794,81 @@ let postIExportFollowingRequestSchema = S.object(s => {
|
|
|
860
794
|
type postIExportFollowingResponse = unit
|
|
861
795
|
|
|
862
796
|
/**
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
let postIExportFollowing = (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
797
|
+
i/export-following
|
|
798
|
+
|
|
799
|
+
No description provided.
|
|
800
|
+
|
|
801
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
802
|
+
**Credential required**: *Yes*
|
|
803
|
+
*/
|
|
804
|
+
let postIExportFollowing = async (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFollowingResponse => {
|
|
871
805
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIExportFollowingRequestSchema)
|
|
872
|
-
fetch(
|
|
806
|
+
let response = await fetch(
|
|
873
807
|
~url="/i/export-following",
|
|
874
808
|
~method_="POST",
|
|
875
809
|
~body=Some(jsonBody),
|
|
876
|
-
)
|
|
810
|
+
)
|
|
877
811
|
let _ = response
|
|
878
|
-
()
|
|
879
|
-
->Promise.resolve
|
|
880
|
-
})
|
|
881
812
|
}
|
|
882
813
|
|
|
883
814
|
type postIExportMuteResponse = unit
|
|
884
815
|
|
|
885
816
|
/**
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
let postIExportMute = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
894
|
-
|
|
895
|
-
fetch(
|
|
817
|
+
i/export-mute
|
|
818
|
+
|
|
819
|
+
No description provided.
|
|
820
|
+
|
|
821
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
822
|
+
**Credential required**: *Yes*
|
|
823
|
+
*/
|
|
824
|
+
let postIExportMute = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportMuteResponse => {
|
|
825
|
+
|
|
826
|
+
let response = await fetch(
|
|
896
827
|
~url="/i/export-mute",
|
|
897
828
|
~method_="POST",
|
|
898
829
|
~body=None,
|
|
899
|
-
)
|
|
830
|
+
)
|
|
900
831
|
let _ = response
|
|
901
|
-
()
|
|
902
|
-
->Promise.resolve
|
|
903
|
-
})
|
|
904
832
|
}
|
|
905
833
|
|
|
906
834
|
type postIExportNotesResponse = unit
|
|
907
835
|
|
|
908
836
|
/**
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
let postIExportNotes = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
917
|
-
|
|
918
|
-
fetch(
|
|
837
|
+
i/export-notes
|
|
838
|
+
|
|
839
|
+
No description provided.
|
|
840
|
+
|
|
841
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
842
|
+
**Credential required**: *Yes*
|
|
843
|
+
*/
|
|
844
|
+
let postIExportNotes = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportNotesResponse => {
|
|
845
|
+
|
|
846
|
+
let response = await fetch(
|
|
919
847
|
~url="/i/export-notes",
|
|
920
848
|
~method_="POST",
|
|
921
849
|
~body=None,
|
|
922
|
-
)
|
|
850
|
+
)
|
|
923
851
|
let _ = response
|
|
924
|
-
()
|
|
925
|
-
->Promise.resolve
|
|
926
|
-
})
|
|
927
852
|
}
|
|
928
853
|
|
|
929
854
|
type postIExportUserListsResponse = unit
|
|
930
855
|
|
|
931
856
|
/**
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
let postIExportUserLists = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
940
|
-
|
|
941
|
-
fetch(
|
|
857
|
+
i/export-user-lists
|
|
858
|
+
|
|
859
|
+
No description provided.
|
|
860
|
+
|
|
861
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
862
|
+
**Credential required**: *Yes*
|
|
863
|
+
*/
|
|
864
|
+
let postIExportUserLists = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportUserListsResponse => {
|
|
865
|
+
|
|
866
|
+
let response = await fetch(
|
|
942
867
|
~url="/i/export-user-lists",
|
|
943
868
|
~method_="POST",
|
|
944
869
|
~body=None,
|
|
945
|
-
)
|
|
870
|
+
)
|
|
946
871
|
let _ = response
|
|
947
|
-
()
|
|
948
|
-
->Promise.resolve
|
|
949
|
-
})
|
|
950
872
|
}
|
|
951
873
|
|
|
952
874
|
type postIImportAntennasRequest = {
|
|
@@ -960,24 +882,21 @@ let postIImportAntennasRequestSchema = S.object(s => {
|
|
|
960
882
|
type postIImportAntennasResponse = unit
|
|
961
883
|
|
|
962
884
|
/**
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
let postIImportAntennas = (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
885
|
+
i/import-antennas
|
|
886
|
+
|
|
887
|
+
No description provided.
|
|
888
|
+
|
|
889
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
890
|
+
**Credential required**: *Yes*
|
|
891
|
+
*/
|
|
892
|
+
let postIImportAntennas = async (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportAntennasResponse => {
|
|
971
893
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportAntennasRequestSchema)
|
|
972
|
-
fetch(
|
|
894
|
+
let response = await fetch(
|
|
973
895
|
~url="/i/import-antennas",
|
|
974
896
|
~method_="POST",
|
|
975
897
|
~body=Some(jsonBody),
|
|
976
|
-
)
|
|
898
|
+
)
|
|
977
899
|
let _ = response
|
|
978
|
-
()
|
|
979
|
-
->Promise.resolve
|
|
980
|
-
})
|
|
981
900
|
}
|
|
982
901
|
|
|
983
902
|
type postIImportBlockingRequest = {
|
|
@@ -991,24 +910,21 @@ let postIImportBlockingRequestSchema = S.object(s => {
|
|
|
991
910
|
type postIImportBlockingResponse = unit
|
|
992
911
|
|
|
993
912
|
/**
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
let postIImportBlocking = (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
913
|
+
i/import-blocking
|
|
914
|
+
|
|
915
|
+
No description provided.
|
|
916
|
+
|
|
917
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
918
|
+
**Credential required**: *Yes*
|
|
919
|
+
*/
|
|
920
|
+
let postIImportBlocking = async (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportBlockingResponse => {
|
|
1002
921
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportBlockingRequestSchema)
|
|
1003
|
-
fetch(
|
|
922
|
+
let response = await fetch(
|
|
1004
923
|
~url="/i/import-blocking",
|
|
1005
924
|
~method_="POST",
|
|
1006
925
|
~body=Some(jsonBody),
|
|
1007
|
-
)
|
|
926
|
+
)
|
|
1008
927
|
let _ = response
|
|
1009
|
-
()
|
|
1010
|
-
->Promise.resolve
|
|
1011
|
-
})
|
|
1012
928
|
}
|
|
1013
929
|
|
|
1014
930
|
type postIImportFollowingRequest = {
|
|
@@ -1024,24 +940,21 @@ let postIImportFollowingRequestSchema = S.object(s => {
|
|
|
1024
940
|
type postIImportFollowingResponse = unit
|
|
1025
941
|
|
|
1026
942
|
/**
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
let postIImportFollowing = (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
943
|
+
i/import-following
|
|
944
|
+
|
|
945
|
+
No description provided.
|
|
946
|
+
|
|
947
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
948
|
+
**Credential required**: *Yes*
|
|
949
|
+
*/
|
|
950
|
+
let postIImportFollowing = async (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportFollowingResponse => {
|
|
1035
951
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportFollowingRequestSchema)
|
|
1036
|
-
fetch(
|
|
952
|
+
let response = await fetch(
|
|
1037
953
|
~url="/i/import-following",
|
|
1038
954
|
~method_="POST",
|
|
1039
955
|
~body=Some(jsonBody),
|
|
1040
|
-
)
|
|
956
|
+
)
|
|
1041
957
|
let _ = response
|
|
1042
|
-
()
|
|
1043
|
-
->Promise.resolve
|
|
1044
|
-
})
|
|
1045
958
|
}
|
|
1046
959
|
|
|
1047
960
|
type postIImportMutingRequest = {
|
|
@@ -1055,24 +968,21 @@ let postIImportMutingRequestSchema = S.object(s => {
|
|
|
1055
968
|
type postIImportMutingResponse = unit
|
|
1056
969
|
|
|
1057
970
|
/**
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
let postIImportMuting = (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
971
|
+
i/import-muting
|
|
972
|
+
|
|
973
|
+
No description provided.
|
|
974
|
+
|
|
975
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
976
|
+
**Credential required**: *Yes*
|
|
977
|
+
*/
|
|
978
|
+
let postIImportMuting = async (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportMutingResponse => {
|
|
1066
979
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportMutingRequestSchema)
|
|
1067
|
-
fetch(
|
|
980
|
+
let response = await fetch(
|
|
1068
981
|
~url="/i/import-muting",
|
|
1069
982
|
~method_="POST",
|
|
1070
983
|
~body=Some(jsonBody),
|
|
1071
|
-
)
|
|
984
|
+
)
|
|
1072
985
|
let _ = response
|
|
1073
|
-
()
|
|
1074
|
-
->Promise.resolve
|
|
1075
|
-
})
|
|
1076
986
|
}
|
|
1077
987
|
|
|
1078
988
|
type postIImportUserListsRequest = {
|
|
@@ -1086,24 +996,21 @@ let postIImportUserListsRequestSchema = S.object(s => {
|
|
|
1086
996
|
type postIImportUserListsResponse = unit
|
|
1087
997
|
|
|
1088
998
|
/**
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
let postIImportUserLists = (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
999
|
+
i/import-user-lists
|
|
1000
|
+
|
|
1001
|
+
No description provided.
|
|
1002
|
+
|
|
1003
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1004
|
+
**Credential required**: *Yes*
|
|
1005
|
+
*/
|
|
1006
|
+
let postIImportUserLists = async (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportUserListsResponse => {
|
|
1097
1007
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportUserListsRequestSchema)
|
|
1098
|
-
fetch(
|
|
1008
|
+
let response = await fetch(
|
|
1099
1009
|
~url="/i/import-user-lists",
|
|
1100
1010
|
~method_="POST",
|
|
1101
1011
|
~body=Some(jsonBody),
|
|
1102
|
-
)
|
|
1012
|
+
)
|
|
1103
1013
|
let _ = response
|
|
1104
|
-
()
|
|
1105
|
-
->Promise.resolve
|
|
1106
|
-
})
|
|
1107
1014
|
}
|
|
1108
1015
|
|
|
1109
1016
|
type postIRegenerateTokenRequest = {
|
|
@@ -1117,24 +1024,21 @@ let postIRegenerateTokenRequestSchema = S.object(s => {
|
|
|
1117
1024
|
type postIRegenerateTokenResponse = unit
|
|
1118
1025
|
|
|
1119
1026
|
/**
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
let postIRegenerateToken = (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1027
|
+
i/regenerate-token
|
|
1028
|
+
|
|
1029
|
+
No description provided.
|
|
1030
|
+
|
|
1031
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1032
|
+
**Credential required**: *Yes*
|
|
1033
|
+
*/
|
|
1034
|
+
let postIRegenerateToken = async (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegenerateTokenResponse => {
|
|
1128
1035
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegenerateTokenRequestSchema)
|
|
1129
|
-
fetch(
|
|
1036
|
+
let response = await fetch(
|
|
1130
1037
|
~url="/i/regenerate-token",
|
|
1131
1038
|
~method_="POST",
|
|
1132
1039
|
~body=Some(jsonBody),
|
|
1133
|
-
)
|
|
1040
|
+
)
|
|
1134
1041
|
let _ = response
|
|
1135
|
-
()
|
|
1136
|
-
->Promise.resolve
|
|
1137
|
-
})
|
|
1138
1042
|
}
|
|
1139
1043
|
|
|
1140
1044
|
type postIRegistryGetRequest = {
|
|
@@ -1154,23 +1058,20 @@ type postIRegistryGetResponse = dict<JSON.t>
|
|
|
1154
1058
|
let postIRegistryGetResponseSchema = S.dict(S.json)
|
|
1155
1059
|
|
|
1156
1060
|
/**
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
let postIRegistryGet = (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1061
|
+
i/registry/get
|
|
1062
|
+
|
|
1063
|
+
No description provided.
|
|
1064
|
+
|
|
1065
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1066
|
+
*/
|
|
1067
|
+
let postIRegistryGet = async (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetResponse => {
|
|
1164
1068
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetRequestSchema)
|
|
1165
|
-
fetch(
|
|
1069
|
+
let response = await fetch(
|
|
1166
1070
|
~url="/i/registry/get",
|
|
1167
1071
|
~method_="POST",
|
|
1168
1072
|
~body=Some(jsonBody),
|
|
1169
|
-
)
|
|
1170
|
-
|
|
1171
|
-
value
|
|
1172
|
-
->Promise.resolve
|
|
1173
|
-
})
|
|
1073
|
+
)
|
|
1074
|
+
response->S.parseOrThrow(postIRegistryGetResponseSchema)
|
|
1174
1075
|
}
|
|
1175
1076
|
|
|
1176
1077
|
type postIRegistryGetAllRequest = {
|
|
@@ -1188,23 +1089,20 @@ type postIRegistryGetAllResponse = dict<JSON.t>
|
|
|
1188
1089
|
let postIRegistryGetAllResponseSchema = S.dict(S.json)
|
|
1189
1090
|
|
|
1190
1091
|
/**
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
let postIRegistryGetAll = (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1092
|
+
i/registry/get-all
|
|
1093
|
+
|
|
1094
|
+
No description provided.
|
|
1095
|
+
|
|
1096
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1097
|
+
*/
|
|
1098
|
+
let postIRegistryGetAll = async (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetAllResponse => {
|
|
1198
1099
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetAllRequestSchema)
|
|
1199
|
-
fetch(
|
|
1100
|
+
let response = await fetch(
|
|
1200
1101
|
~url="/i/registry/get-all",
|
|
1201
1102
|
~method_="POST",
|
|
1202
1103
|
~body=Some(jsonBody),
|
|
1203
|
-
)
|
|
1204
|
-
|
|
1205
|
-
value
|
|
1206
|
-
->Promise.resolve
|
|
1207
|
-
})
|
|
1104
|
+
)
|
|
1105
|
+
response->S.parseOrThrow(postIRegistryGetAllResponseSchema)
|
|
1208
1106
|
}
|
|
1209
1107
|
|
|
1210
1108
|
type postIRegistryGetDetailRequest = {
|
|
@@ -1230,23 +1128,20 @@ let postIRegistryGetDetailResponseSchema = S.object(s => {
|
|
|
1230
1128
|
})
|
|
1231
1129
|
|
|
1232
1130
|
/**
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
let postIRegistryGetDetail = (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1131
|
+
i/registry/get-detail
|
|
1132
|
+
|
|
1133
|
+
No description provided.
|
|
1134
|
+
|
|
1135
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1136
|
+
*/
|
|
1137
|
+
let postIRegistryGetDetail = async (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetDetailResponse => {
|
|
1240
1138
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetDetailRequestSchema)
|
|
1241
|
-
fetch(
|
|
1139
|
+
let response = await fetch(
|
|
1242
1140
|
~url="/i/registry/get-detail",
|
|
1243
1141
|
~method_="POST",
|
|
1244
1142
|
~body=Some(jsonBody),
|
|
1245
|
-
)
|
|
1246
|
-
|
|
1247
|
-
value
|
|
1248
|
-
->Promise.resolve
|
|
1249
|
-
})
|
|
1143
|
+
)
|
|
1144
|
+
response->S.parseOrThrow(postIRegistryGetDetailResponseSchema)
|
|
1250
1145
|
}
|
|
1251
1146
|
|
|
1252
1147
|
type postIRegistryKeysRequest = {
|
|
@@ -1264,23 +1159,20 @@ type postIRegistryKeysResponse = array<string>
|
|
|
1264
1159
|
let postIRegistryKeysResponseSchema = S.array(S.string)
|
|
1265
1160
|
|
|
1266
1161
|
/**
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
let postIRegistryKeys = (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1162
|
+
i/registry/keys
|
|
1163
|
+
|
|
1164
|
+
No description provided.
|
|
1165
|
+
|
|
1166
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1167
|
+
*/
|
|
1168
|
+
let postIRegistryKeys = async (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysResponse => {
|
|
1274
1169
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysRequestSchema)
|
|
1275
|
-
fetch(
|
|
1170
|
+
let response = await fetch(
|
|
1276
1171
|
~url="/i/registry/keys",
|
|
1277
1172
|
~method_="POST",
|
|
1278
1173
|
~body=Some(jsonBody),
|
|
1279
|
-
)
|
|
1280
|
-
|
|
1281
|
-
value
|
|
1282
|
-
->Promise.resolve
|
|
1283
|
-
})
|
|
1174
|
+
)
|
|
1175
|
+
response->S.parseOrThrow(postIRegistryKeysResponseSchema)
|
|
1284
1176
|
}
|
|
1285
1177
|
|
|
1286
1178
|
type postIRegistryKeysWithTypeRequest = {
|
|
@@ -1298,23 +1190,20 @@ type postIRegistryKeysWithTypeResponse = dict<JSON.t>
|
|
|
1298
1190
|
let postIRegistryKeysWithTypeResponseSchema = S.dict(S.json)
|
|
1299
1191
|
|
|
1300
1192
|
/**
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
let postIRegistryKeysWithType = (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1193
|
+
i/registry/keys-with-type
|
|
1194
|
+
|
|
1195
|
+
No description provided.
|
|
1196
|
+
|
|
1197
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1198
|
+
*/
|
|
1199
|
+
let postIRegistryKeysWithType = async (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysWithTypeResponse => {
|
|
1308
1200
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysWithTypeRequestSchema)
|
|
1309
|
-
fetch(
|
|
1201
|
+
let response = await fetch(
|
|
1310
1202
|
~url="/i/registry/keys-with-type",
|
|
1311
1203
|
~method_="POST",
|
|
1312
1204
|
~body=Some(jsonBody),
|
|
1313
|
-
)
|
|
1314
|
-
|
|
1315
|
-
value
|
|
1316
|
-
->Promise.resolve
|
|
1317
|
-
})
|
|
1205
|
+
)
|
|
1206
|
+
response->S.parseOrThrow(postIRegistryKeysWithTypeResponseSchema)
|
|
1318
1207
|
}
|
|
1319
1208
|
|
|
1320
1209
|
type postIRegistryRemoveRequest = {
|
|
@@ -1332,23 +1221,20 @@ let postIRegistryRemoveRequestSchema = S.object(s => {
|
|
|
1332
1221
|
type postIRegistryRemoveResponse = unit
|
|
1333
1222
|
|
|
1334
1223
|
/**
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
let postIRegistryRemove = (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1224
|
+
i/registry/remove
|
|
1225
|
+
|
|
1226
|
+
No description provided.
|
|
1227
|
+
|
|
1228
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1229
|
+
*/
|
|
1230
|
+
let postIRegistryRemove = async (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryRemoveResponse => {
|
|
1342
1231
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryRemoveRequestSchema)
|
|
1343
|
-
fetch(
|
|
1232
|
+
let response = await fetch(
|
|
1344
1233
|
~url="/i/registry/remove",
|
|
1345
1234
|
~method_="POST",
|
|
1346
1235
|
~body=Some(jsonBody),
|
|
1347
|
-
)
|
|
1236
|
+
)
|
|
1348
1237
|
let _ = response
|
|
1349
|
-
()
|
|
1350
|
-
->Promise.resolve
|
|
1351
|
-
})
|
|
1352
1238
|
}
|
|
1353
1239
|
|
|
1354
1240
|
type postIRegistryScopesWithDomainResponse_1 = {
|
|
@@ -1366,24 +1252,21 @@ let postIRegistryScopesWithDomainResponse_1Schema = S.object(s => {
|
|
|
1366
1252
|
let postIRegistryScopesWithDomainResponseSchema = S.array(postIRegistryScopesWithDomainResponse_1Schema)
|
|
1367
1253
|
|
|
1368
1254
|
/**
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
let postIRegistryScopesWithDomain = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1377
|
-
|
|
1378
|
-
fetch(
|
|
1255
|
+
i/registry/scopes-with-domain
|
|
1256
|
+
|
|
1257
|
+
No description provided.
|
|
1258
|
+
|
|
1259
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1260
|
+
**Credential required**: *Yes*
|
|
1261
|
+
*/
|
|
1262
|
+
let postIRegistryScopesWithDomain = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryScopesWithDomainResponse => {
|
|
1263
|
+
|
|
1264
|
+
let response = await fetch(
|
|
1379
1265
|
~url="/i/registry/scopes-with-domain",
|
|
1380
1266
|
~method_="POST",
|
|
1381
1267
|
~body=None,
|
|
1382
|
-
)
|
|
1383
|
-
|
|
1384
|
-
value
|
|
1385
|
-
->Promise.resolve
|
|
1386
|
-
})
|
|
1268
|
+
)
|
|
1269
|
+
response->S.parseOrThrow(postIRegistryScopesWithDomainResponseSchema)
|
|
1387
1270
|
}
|
|
1388
1271
|
|
|
1389
1272
|
type postIRegistrySetRequest = {
|
|
@@ -1403,23 +1286,20 @@ let postIRegistrySetRequestSchema = S.object(s => {
|
|
|
1403
1286
|
type postIRegistrySetResponse = unit
|
|
1404
1287
|
|
|
1405
1288
|
/**
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
let postIRegistrySet = (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1289
|
+
i/registry/set
|
|
1290
|
+
|
|
1291
|
+
No description provided.
|
|
1292
|
+
|
|
1293
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1294
|
+
*/
|
|
1295
|
+
let postIRegistrySet = async (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistrySetResponse => {
|
|
1413
1296
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistrySetRequestSchema)
|
|
1414
|
-
fetch(
|
|
1297
|
+
let response = await fetch(
|
|
1415
1298
|
~url="/i/registry/set",
|
|
1416
1299
|
~method_="POST",
|
|
1417
1300
|
~body=Some(jsonBody),
|
|
1418
|
-
)
|
|
1301
|
+
)
|
|
1419
1302
|
let _ = response
|
|
1420
|
-
()
|
|
1421
|
-
->Promise.resolve
|
|
1422
|
-
})
|
|
1423
1303
|
}
|
|
1424
1304
|
|
|
1425
1305
|
type postIRevokeTokenRequest = {
|
|
@@ -1435,24 +1315,21 @@ let postIRevokeTokenRequestSchema = S.object(s => {
|
|
|
1435
1315
|
type postIRevokeTokenResponse = unit
|
|
1436
1316
|
|
|
1437
1317
|
/**
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
let postIRevokeToken = (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1318
|
+
i/revoke-token
|
|
1319
|
+
|
|
1320
|
+
No description provided.
|
|
1321
|
+
|
|
1322
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1323
|
+
**Credential required**: *Yes*
|
|
1324
|
+
*/
|
|
1325
|
+
let postIRevokeToken = async (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRevokeTokenResponse => {
|
|
1446
1326
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRevokeTokenRequestSchema)
|
|
1447
|
-
fetch(
|
|
1327
|
+
let response = await fetch(
|
|
1448
1328
|
~url="/i/revoke-token",
|
|
1449
1329
|
~method_="POST",
|
|
1450
1330
|
~body=Some(jsonBody),
|
|
1451
|
-
)
|
|
1331
|
+
)
|
|
1452
1332
|
let _ = response
|
|
1453
|
-
()
|
|
1454
|
-
->Promise.resolve
|
|
1455
|
-
})
|
|
1456
1333
|
}
|
|
1457
1334
|
|
|
1458
1335
|
type postISigninHistoryRequest = {
|
|
@@ -1472,24 +1349,21 @@ type postISigninHistoryResponse = array<MisskeyIoComponentSchemas.Signin.t>
|
|
|
1472
1349
|
let postISigninHistoryResponseSchema = S.array(MisskeyIoComponentSchemas.Signin.schema)
|
|
1473
1350
|
|
|
1474
1351
|
/**
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
let postISigninHistory = (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1352
|
+
i/signin-history
|
|
1353
|
+
|
|
1354
|
+
No description provided.
|
|
1355
|
+
|
|
1356
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1357
|
+
**Credential required**: *Yes*
|
|
1358
|
+
*/
|
|
1359
|
+
let postISigninHistory = async (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postISigninHistoryResponse => {
|
|
1483
1360
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postISigninHistoryRequestSchema)
|
|
1484
|
-
fetch(
|
|
1361
|
+
let response = await fetch(
|
|
1485
1362
|
~url="/i/signin-history",
|
|
1486
1363
|
~method_="POST",
|
|
1487
1364
|
~body=Some(jsonBody),
|
|
1488
|
-
)
|
|
1489
|
-
|
|
1490
|
-
value
|
|
1491
|
-
->Promise.resolve
|
|
1492
|
-
})
|
|
1365
|
+
)
|
|
1366
|
+
response->S.parseOrThrow(postISigninHistoryResponseSchema)
|
|
1493
1367
|
}
|
|
1494
1368
|
|
|
1495
1369
|
type postIUpdateEmailRequest = {
|
|
@@ -1509,24 +1383,21 @@ type postIUpdateEmailResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
1509
1383
|
let postIUpdateEmailResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
1510
1384
|
|
|
1511
1385
|
/**
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
let postIUpdateEmail = (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1386
|
+
i/update-email
|
|
1387
|
+
|
|
1388
|
+
No description provided.
|
|
1389
|
+
|
|
1390
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1391
|
+
**Credential required**: *Yes*
|
|
1392
|
+
*/
|
|
1393
|
+
let postIUpdateEmail = async (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateEmailResponse => {
|
|
1520
1394
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateEmailRequestSchema)
|
|
1521
|
-
fetch(
|
|
1395
|
+
let response = await fetch(
|
|
1522
1396
|
~url="/i/update-email",
|
|
1523
1397
|
~method_="POST",
|
|
1524
1398
|
~body=Some(jsonBody),
|
|
1525
|
-
)
|
|
1526
|
-
|
|
1527
|
-
value
|
|
1528
|
-
->Promise.resolve
|
|
1529
|
-
})
|
|
1399
|
+
)
|
|
1400
|
+
response->S.parseOrThrow(postIUpdateEmailResponseSchema)
|
|
1530
1401
|
}
|
|
1531
1402
|
|
|
1532
1403
|
type postPagePushRequest = {
|
|
@@ -1544,24 +1415,21 @@ let postPagePushRequestSchema = S.object(s => {
|
|
|
1544
1415
|
type postPagePushResponse = unit
|
|
1545
1416
|
|
|
1546
1417
|
/**
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
let postPagePush = (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1418
|
+
page-push
|
|
1419
|
+
|
|
1420
|
+
No description provided.
|
|
1421
|
+
|
|
1422
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1423
|
+
**Credential required**: *Yes*
|
|
1424
|
+
*/
|
|
1425
|
+
let postPagePush = async (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPagePushResponse => {
|
|
1555
1426
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postPagePushRequestSchema)
|
|
1556
|
-
fetch(
|
|
1427
|
+
let response = await fetch(
|
|
1557
1428
|
~url="/page-push",
|
|
1558
1429
|
~method_="POST",
|
|
1559
1430
|
~body=Some(jsonBody),
|
|
1560
|
-
)
|
|
1431
|
+
)
|
|
1561
1432
|
let _ = response
|
|
1562
|
-
()
|
|
1563
|
-
->Promise.resolve
|
|
1564
|
-
})
|
|
1565
1433
|
}
|
|
1566
1434
|
|
|
1567
1435
|
type postReversiCancelMatchRequest = {
|
|
@@ -1575,23 +1443,20 @@ let postReversiCancelMatchRequestSchema = S.object(s => {
|
|
|
1575
1443
|
type postReversiCancelMatchResponse = unit
|
|
1576
1444
|
|
|
1577
1445
|
/**
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
let postReversiCancelMatch = (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1446
|
+
reversi/cancel-match
|
|
1447
|
+
|
|
1448
|
+
No description provided.
|
|
1449
|
+
|
|
1450
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1451
|
+
*/
|
|
1452
|
+
let postReversiCancelMatch = async (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiCancelMatchResponse => {
|
|
1585
1453
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiCancelMatchRequestSchema)
|
|
1586
|
-
fetch(
|
|
1454
|
+
let response = await fetch(
|
|
1587
1455
|
~url="/reversi/cancel-match",
|
|
1588
1456
|
~method_="POST",
|
|
1589
1457
|
~body=Some(jsonBody),
|
|
1590
|
-
)
|
|
1458
|
+
)
|
|
1591
1459
|
let _ = response
|
|
1592
|
-
()
|
|
1593
|
-
->Promise.resolve
|
|
1594
|
-
})
|
|
1595
1460
|
}
|
|
1596
1461
|
|
|
1597
1462
|
type postReversiGamesRequest = {
|
|
@@ -1613,23 +1478,20 @@ type postReversiGamesResponse = array<MisskeyIoComponentSchemas.ReversiGameLite.
|
|
|
1613
1478
|
let postReversiGamesResponseSchema = S.array(MisskeyIoComponentSchemas.ReversiGameLite.schema)
|
|
1614
1479
|
|
|
1615
1480
|
/**
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
let postReversiGames = (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1481
|
+
reversi/games
|
|
1482
|
+
|
|
1483
|
+
No description provided.
|
|
1484
|
+
|
|
1485
|
+
**Credential required**: *No*
|
|
1486
|
+
*/
|
|
1487
|
+
let postReversiGames = async (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiGamesResponse => {
|
|
1623
1488
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiGamesRequestSchema)
|
|
1624
|
-
fetch(
|
|
1489
|
+
let response = await fetch(
|
|
1625
1490
|
~url="/reversi/games",
|
|
1626
1491
|
~method_="POST",
|
|
1627
1492
|
~body=Some(jsonBody),
|
|
1628
|
-
)
|
|
1629
|
-
|
|
1630
|
-
value
|
|
1631
|
-
->Promise.resolve
|
|
1632
|
-
})
|
|
1493
|
+
)
|
|
1494
|
+
response->S.parseOrThrow(postReversiGamesResponseSchema)
|
|
1633
1495
|
}
|
|
1634
1496
|
|
|
1635
1497
|
type postReversiInvitationsResponse = array<MisskeyIoComponentSchemas.UserLite.t>
|
|
@@ -1637,23 +1499,20 @@ type postReversiInvitationsResponse = array<MisskeyIoComponentSchemas.UserLite.t
|
|
|
1637
1499
|
let postReversiInvitationsResponseSchema = S.array(MisskeyIoComponentSchemas.UserLite.schema)
|
|
1638
1500
|
|
|
1639
1501
|
/**
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
let postReversiInvitations = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1647
|
-
|
|
1648
|
-
fetch(
|
|
1502
|
+
reversi/invitations
|
|
1503
|
+
|
|
1504
|
+
No description provided.
|
|
1505
|
+
|
|
1506
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1507
|
+
*/
|
|
1508
|
+
let postReversiInvitations = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiInvitationsResponse => {
|
|
1509
|
+
|
|
1510
|
+
let response = await fetch(
|
|
1649
1511
|
~url="/reversi/invitations",
|
|
1650
1512
|
~method_="POST",
|
|
1651
1513
|
~body=None,
|
|
1652
|
-
)
|
|
1653
|
-
|
|
1654
|
-
value
|
|
1655
|
-
->Promise.resolve
|
|
1656
|
-
})
|
|
1514
|
+
)
|
|
1515
|
+
response->S.parseOrThrow(postReversiInvitationsResponseSchema)
|
|
1657
1516
|
}
|
|
1658
1517
|
|
|
1659
1518
|
type postReversiMatchRequest = {
|
|
@@ -1673,23 +1532,20 @@ type postReversiMatchResponse = dict<JSON.t>
|
|
|
1673
1532
|
let postReversiMatchResponseSchema = S.dict(S.json)
|
|
1674
1533
|
|
|
1675
1534
|
/**
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
let postReversiMatch = (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1535
|
+
reversi/match
|
|
1536
|
+
|
|
1537
|
+
No description provided.
|
|
1538
|
+
|
|
1539
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1540
|
+
*/
|
|
1541
|
+
let postReversiMatch = async (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiMatchResponse => {
|
|
1683
1542
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiMatchRequestSchema)
|
|
1684
|
-
fetch(
|
|
1543
|
+
let response = await fetch(
|
|
1685
1544
|
~url="/reversi/match",
|
|
1686
1545
|
~method_="POST",
|
|
1687
1546
|
~body=Some(jsonBody),
|
|
1688
|
-
)
|
|
1689
|
-
|
|
1690
|
-
value
|
|
1691
|
-
->Promise.resolve
|
|
1692
|
-
})
|
|
1547
|
+
)
|
|
1548
|
+
response->S.parseOrThrow(postReversiMatchResponseSchema)
|
|
1693
1549
|
}
|
|
1694
1550
|
|
|
1695
1551
|
type postReversiShowGameRequest = {
|
|
@@ -1705,23 +1561,20 @@ type postReversiShowGameResponse = MisskeyIoComponentSchemas.ReversiGameDetailed
|
|
|
1705
1561
|
let postReversiShowGameResponseSchema = MisskeyIoComponentSchemas.ReversiGameDetailed.schema
|
|
1706
1562
|
|
|
1707
1563
|
/**
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
let postReversiShowGame = (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1564
|
+
reversi/show-game
|
|
1565
|
+
|
|
1566
|
+
No description provided.
|
|
1567
|
+
|
|
1568
|
+
**Credential required**: *No*
|
|
1569
|
+
*/
|
|
1570
|
+
let postReversiShowGame = async (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiShowGameResponse => {
|
|
1715
1571
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiShowGameRequestSchema)
|
|
1716
|
-
fetch(
|
|
1572
|
+
let response = await fetch(
|
|
1717
1573
|
~url="/reversi/show-game",
|
|
1718
1574
|
~method_="POST",
|
|
1719
1575
|
~body=Some(jsonBody),
|
|
1720
|
-
)
|
|
1721
|
-
|
|
1722
|
-
value
|
|
1723
|
-
->Promise.resolve
|
|
1724
|
-
})
|
|
1576
|
+
)
|
|
1577
|
+
response->S.parseOrThrow(postReversiShowGameResponseSchema)
|
|
1725
1578
|
}
|
|
1726
1579
|
|
|
1727
1580
|
type postReversiSurrenderRequest = {
|
|
@@ -1735,23 +1588,20 @@ let postReversiSurrenderRequestSchema = S.object(s => {
|
|
|
1735
1588
|
type postReversiSurrenderResponse = unit
|
|
1736
1589
|
|
|
1737
1590
|
/**
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
let postReversiSurrender = (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1591
|
+
reversi/surrender
|
|
1592
|
+
|
|
1593
|
+
No description provided.
|
|
1594
|
+
|
|
1595
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1596
|
+
*/
|
|
1597
|
+
let postReversiSurrender = async (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiSurrenderResponse => {
|
|
1745
1598
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiSurrenderRequestSchema)
|
|
1746
|
-
fetch(
|
|
1599
|
+
let response = await fetch(
|
|
1747
1600
|
~url="/reversi/surrender",
|
|
1748
1601
|
~method_="POST",
|
|
1749
1602
|
~body=Some(jsonBody),
|
|
1750
|
-
)
|
|
1603
|
+
)
|
|
1751
1604
|
let _ = response
|
|
1752
|
-
()
|
|
1753
|
-
->Promise.resolve
|
|
1754
|
-
})
|
|
1755
1605
|
}
|
|
1756
1606
|
|
|
1757
1607
|
type postReversiVerifyRequest = {
|
|
@@ -1775,23 +1625,20 @@ let postReversiVerifyResponseSchema = S.object(s => {
|
|
|
1775
1625
|
})
|
|
1776
1626
|
|
|
1777
1627
|
/**
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
let postReversiVerify = (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1628
|
+
reversi/verify
|
|
1629
|
+
|
|
1630
|
+
No description provided.
|
|
1631
|
+
|
|
1632
|
+
**Credential required**: *No*
|
|
1633
|
+
*/
|
|
1634
|
+
let postReversiVerify = async (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiVerifyResponse => {
|
|
1785
1635
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiVerifyRequestSchema)
|
|
1786
|
-
fetch(
|
|
1636
|
+
let response = await fetch(
|
|
1787
1637
|
~url="/reversi/verify",
|
|
1788
1638
|
~method_="POST",
|
|
1789
1639
|
~body=Some(jsonBody),
|
|
1790
|
-
)
|
|
1791
|
-
|
|
1792
|
-
value
|
|
1793
|
-
->Promise.resolve
|
|
1794
|
-
})
|
|
1640
|
+
)
|
|
1641
|
+
response->S.parseOrThrow(postReversiVerifyResponseSchema)
|
|
1795
1642
|
}
|
|
1796
1643
|
|
|
1797
1644
|
type postUsersAchievementsRequest = {
|
|
@@ -1817,23 +1664,20 @@ let postUsersAchievementsResponse_1Schema = S.object(s => {
|
|
|
1817
1664
|
let postUsersAchievementsResponseSchema = S.array(postUsersAchievementsResponse_1Schema)
|
|
1818
1665
|
|
|
1819
1666
|
/**
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
let postUsersAchievements = (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1667
|
+
users/achievements
|
|
1668
|
+
|
|
1669
|
+
No description provided.
|
|
1670
|
+
|
|
1671
|
+
**Credential required**: *No*
|
|
1672
|
+
*/
|
|
1673
|
+
let postUsersAchievements = async (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersAchievementsResponse => {
|
|
1827
1674
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersAchievementsRequestSchema)
|
|
1828
|
-
fetch(
|
|
1675
|
+
let response = await fetch(
|
|
1829
1676
|
~url="/users/achievements",
|
|
1830
1677
|
~method_="POST",
|
|
1831
1678
|
~body=Some(jsonBody),
|
|
1832
|
-
)
|
|
1833
|
-
|
|
1834
|
-
value
|
|
1835
|
-
->Promise.resolve
|
|
1836
|
-
})
|
|
1679
|
+
)
|
|
1680
|
+
response->S.parseOrThrow(postUsersAchievementsResponseSchema)
|
|
1837
1681
|
}
|
|
1838
1682
|
|
|
1839
1683
|
type postUsersListsCreateFromPublicRequest = {
|
|
@@ -1851,23 +1695,20 @@ type postUsersListsCreateFromPublicResponse = MisskeyIoComponentSchemas.UserList
|
|
|
1851
1695
|
let postUsersListsCreateFromPublicResponseSchema = MisskeyIoComponentSchemas.UserList.schema
|
|
1852
1696
|
|
|
1853
1697
|
/**
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
let postUsersListsCreateFromPublic = (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1698
|
+
users/lists/create-from-public
|
|
1699
|
+
|
|
1700
|
+
No description provided.
|
|
1701
|
+
|
|
1702
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1703
|
+
*/
|
|
1704
|
+
let postUsersListsCreateFromPublic = async (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsCreateFromPublicResponse => {
|
|
1861
1705
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsCreateFromPublicRequestSchema)
|
|
1862
|
-
fetch(
|
|
1706
|
+
let response = await fetch(
|
|
1863
1707
|
~url="/users/lists/create-from-public",
|
|
1864
1708
|
~method_="POST",
|
|
1865
1709
|
~body=Some(jsonBody),
|
|
1866
|
-
)
|
|
1867
|
-
|
|
1868
|
-
value
|
|
1869
|
-
->Promise.resolve
|
|
1870
|
-
})
|
|
1710
|
+
)
|
|
1711
|
+
response->S.parseOrThrow(postUsersListsCreateFromPublicResponseSchema)
|
|
1871
1712
|
}
|
|
1872
1713
|
|
|
1873
1714
|
type postUsersListsFavoriteRequest = {
|
|
@@ -1881,23 +1722,20 @@ let postUsersListsFavoriteRequestSchema = S.object(s => {
|
|
|
1881
1722
|
type postUsersListsFavoriteResponse = unit
|
|
1882
1723
|
|
|
1883
1724
|
/**
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
let postUsersListsFavorite = (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1725
|
+
users/lists/favorite
|
|
1726
|
+
|
|
1727
|
+
No description provided.
|
|
1728
|
+
|
|
1729
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1730
|
+
*/
|
|
1731
|
+
let postUsersListsFavorite = async (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsFavoriteResponse => {
|
|
1891
1732
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsFavoriteRequestSchema)
|
|
1892
|
-
fetch(
|
|
1733
|
+
let response = await fetch(
|
|
1893
1734
|
~url="/users/lists/favorite",
|
|
1894
1735
|
~method_="POST",
|
|
1895
1736
|
~body=Some(jsonBody),
|
|
1896
|
-
)
|
|
1737
|
+
)
|
|
1897
1738
|
let _ = response
|
|
1898
|
-
()
|
|
1899
|
-
->Promise.resolve
|
|
1900
|
-
})
|
|
1901
1739
|
}
|
|
1902
1740
|
|
|
1903
1741
|
type postUsersListsUnfavoriteRequest = {
|
|
@@ -1911,21 +1749,18 @@ let postUsersListsUnfavoriteRequestSchema = S.object(s => {
|
|
|
1911
1749
|
type postUsersListsUnfavoriteResponse = unit
|
|
1912
1750
|
|
|
1913
1751
|
/**
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
let postUsersListsUnfavorite = (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1752
|
+
users/lists/unfavorite
|
|
1753
|
+
|
|
1754
|
+
No description provided.
|
|
1755
|
+
|
|
1756
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1757
|
+
*/
|
|
1758
|
+
let postUsersListsUnfavorite = async (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsUnfavoriteResponse => {
|
|
1921
1759
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsUnfavoriteRequestSchema)
|
|
1922
|
-
fetch(
|
|
1760
|
+
let response = await fetch(
|
|
1923
1761
|
~url="/users/lists/unfavorite",
|
|
1924
1762
|
~method_="POST",
|
|
1925
1763
|
~body=Some(jsonBody),
|
|
1926
|
-
)
|
|
1764
|
+
)
|
|
1927
1765
|
let _ = response
|
|
1928
|
-
()
|
|
1929
|
-
->Promise.resolve
|
|
1930
|
-
})
|
|
1931
1766
|
}
|