@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
|
@@ -42,23 +42,20 @@ let postAdminAbuseReportResolverCreateResponseSchema = S.object(s => {
|
|
|
42
42
|
})
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
let postAdminAbuseReportResolverCreate = (~body: postAdminAbuseReportResolverCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
45
|
+
admin/abuse-report-resolver/create
|
|
46
|
+
|
|
47
|
+
No description provided.
|
|
48
|
+
|
|
49
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
50
|
+
*/
|
|
51
|
+
let postAdminAbuseReportResolverCreate = async (~body: postAdminAbuseReportResolverCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverCreateResponse => {
|
|
52
52
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverCreateRequestSchema)
|
|
53
|
-
fetch(
|
|
53
|
+
let response = await fetch(
|
|
54
54
|
~url="/admin/abuse-report-resolver/create",
|
|
55
55
|
~method_="POST",
|
|
56
56
|
~body=Some(jsonBody),
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
value
|
|
60
|
-
->Promise.resolve
|
|
61
|
-
})
|
|
57
|
+
)
|
|
58
|
+
response->S.parseOrThrow(postAdminAbuseReportResolverCreateResponseSchema)
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
type postAdminAbuseReportResolverDeleteRequest = {
|
|
@@ -72,23 +69,20 @@ let postAdminAbuseReportResolverDeleteRequestSchema = S.object(s => {
|
|
|
72
69
|
type postAdminAbuseReportResolverDeleteResponse = unit
|
|
73
70
|
|
|
74
71
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
let postAdminAbuseReportResolverDelete = (~body: postAdminAbuseReportResolverDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
72
|
+
admin/abuse-report-resolver/delete
|
|
73
|
+
|
|
74
|
+
No description provided.
|
|
75
|
+
|
|
76
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
77
|
+
*/
|
|
78
|
+
let postAdminAbuseReportResolverDelete = async (~body: postAdminAbuseReportResolverDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverDeleteResponse => {
|
|
82
79
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverDeleteRequestSchema)
|
|
83
|
-
fetch(
|
|
80
|
+
let response = await fetch(
|
|
84
81
|
~url="/admin/abuse-report-resolver/delete",
|
|
85
82
|
~method_="POST",
|
|
86
83
|
~body=Some(jsonBody),
|
|
87
|
-
)
|
|
84
|
+
)
|
|
88
85
|
let _ = response
|
|
89
|
-
()
|
|
90
|
-
->Promise.resolve
|
|
91
|
-
})
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
type postAdminAbuseReportResolverListRequest = {
|
|
@@ -126,23 +120,20 @@ let postAdminAbuseReportResolverListResponse_1Schema = S.object(s => {
|
|
|
126
120
|
let postAdminAbuseReportResolverListResponseSchema = S.array(postAdminAbuseReportResolverListResponse_1Schema)
|
|
127
121
|
|
|
128
122
|
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
let postAdminAbuseReportResolverList = (~body: postAdminAbuseReportResolverListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
123
|
+
admin/abuse-report-resolver/list
|
|
124
|
+
|
|
125
|
+
No description provided.
|
|
126
|
+
|
|
127
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report-resolvers*
|
|
128
|
+
*/
|
|
129
|
+
let postAdminAbuseReportResolverList = async (~body: postAdminAbuseReportResolverListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverListResponse => {
|
|
136
130
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverListRequestSchema)
|
|
137
|
-
fetch(
|
|
131
|
+
let response = await fetch(
|
|
138
132
|
~url="/admin/abuse-report-resolver/list",
|
|
139
133
|
~method_="POST",
|
|
140
134
|
~body=Some(jsonBody),
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
value
|
|
144
|
-
->Promise.resolve
|
|
145
|
-
})
|
|
135
|
+
)
|
|
136
|
+
response->S.parseOrThrow(postAdminAbuseReportResolverListResponseSchema)
|
|
146
137
|
}
|
|
147
138
|
|
|
148
139
|
type postAdminAbuseReportResolverUpdateRequest = {
|
|
@@ -168,23 +159,20 @@ let postAdminAbuseReportResolverUpdateRequestSchema = S.object(s => {
|
|
|
168
159
|
type postAdminAbuseReportResolverUpdateResponse = unit
|
|
169
160
|
|
|
170
161
|
/**
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
let postAdminAbuseReportResolverUpdate = (~body: postAdminAbuseReportResolverUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
162
|
+
admin/abuse-report-resolver/update
|
|
163
|
+
|
|
164
|
+
No description provided.
|
|
165
|
+
|
|
166
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report-resolvers*
|
|
167
|
+
*/
|
|
168
|
+
let postAdminAbuseReportResolverUpdate = async (~body: postAdminAbuseReportResolverUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportResolverUpdateResponse => {
|
|
178
169
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportResolverUpdateRequestSchema)
|
|
179
|
-
fetch(
|
|
170
|
+
let response = await fetch(
|
|
180
171
|
~url="/admin/abuse-report-resolver/update",
|
|
181
172
|
~method_="POST",
|
|
182
173
|
~body=Some(jsonBody),
|
|
183
|
-
)
|
|
174
|
+
)
|
|
184
175
|
let _ = response
|
|
185
|
-
()
|
|
186
|
-
->Promise.resolve
|
|
187
|
-
})
|
|
188
176
|
}
|
|
189
177
|
|
|
190
178
|
type postAdminAbuseReportNotificationRecipientCreateRequest = {
|
|
@@ -208,24 +196,21 @@ type postAdminAbuseReportNotificationRecipientCreateResponse = MisskeyIoComponen
|
|
|
208
196
|
let postAdminAbuseReportNotificationRecipientCreateResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
209
197
|
|
|
210
198
|
/**
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
let postAdminAbuseReportNotificationRecipientCreate = (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
199
|
+
admin/abuse-report/notification-recipient/create
|
|
200
|
+
|
|
201
|
+
No description provided.
|
|
202
|
+
|
|
203
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
204
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
205
|
+
*/
|
|
206
|
+
let postAdminAbuseReportNotificationRecipientCreate = async (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientCreateResponse => {
|
|
219
207
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientCreateRequestSchema)
|
|
220
|
-
fetch(
|
|
208
|
+
let response = await fetch(
|
|
221
209
|
~url="/admin/abuse-report/notification-recipient/create",
|
|
222
210
|
~method_="POST",
|
|
223
211
|
~body=Some(jsonBody),
|
|
224
|
-
)
|
|
225
|
-
|
|
226
|
-
value
|
|
227
|
-
->Promise.resolve
|
|
228
|
-
})
|
|
212
|
+
)
|
|
213
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
|
|
229
214
|
}
|
|
230
215
|
|
|
231
216
|
type postAdminAbuseReportNotificationRecipientDeleteRequest = {
|
|
@@ -239,24 +224,21 @@ let postAdminAbuseReportNotificationRecipientDeleteRequestSchema = S.object(s =>
|
|
|
239
224
|
type postAdminAbuseReportNotificationRecipientDeleteResponse = unit
|
|
240
225
|
|
|
241
226
|
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
let postAdminAbuseReportNotificationRecipientDelete = (~body: postAdminAbuseReportNotificationRecipientDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
227
|
+
admin/abuse-report/notification-recipient/delete
|
|
228
|
+
|
|
229
|
+
No description provided.
|
|
230
|
+
|
|
231
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
232
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
233
|
+
*/
|
|
234
|
+
let postAdminAbuseReportNotificationRecipientDelete = async (~body: postAdminAbuseReportNotificationRecipientDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientDeleteResponse => {
|
|
250
235
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientDeleteRequestSchema)
|
|
251
|
-
fetch(
|
|
236
|
+
let response = await fetch(
|
|
252
237
|
~url="/admin/abuse-report/notification-recipient/delete",
|
|
253
238
|
~method_="POST",
|
|
254
239
|
~body=Some(jsonBody),
|
|
255
|
-
)
|
|
240
|
+
)
|
|
256
241
|
let _ = response
|
|
257
|
-
()
|
|
258
|
-
->Promise.resolve
|
|
259
|
-
})
|
|
260
242
|
}
|
|
261
243
|
|
|
262
244
|
type postAdminAbuseReportNotificationRecipientListRequest = {
|
|
@@ -272,24 +254,21 @@ type postAdminAbuseReportNotificationRecipientListResponse = array<MisskeyIoComp
|
|
|
272
254
|
let postAdminAbuseReportNotificationRecipientListResponseSchema = S.array(MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema)
|
|
273
255
|
|
|
274
256
|
/**
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
let postAdminAbuseReportNotificationRecipientList = (~body: postAdminAbuseReportNotificationRecipientListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
257
|
+
admin/abuse-report/notification-recipient/list
|
|
258
|
+
|
|
259
|
+
No description provided.
|
|
260
|
+
|
|
261
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
262
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
|
|
263
|
+
*/
|
|
264
|
+
let postAdminAbuseReportNotificationRecipientList = async (~body: postAdminAbuseReportNotificationRecipientListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientListResponse => {
|
|
283
265
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientListRequestSchema)
|
|
284
|
-
fetch(
|
|
266
|
+
let response = await fetch(
|
|
285
267
|
~url="/admin/abuse-report/notification-recipient/list",
|
|
286
268
|
~method_="POST",
|
|
287
269
|
~body=Some(jsonBody),
|
|
288
|
-
)
|
|
289
|
-
|
|
290
|
-
value
|
|
291
|
-
->Promise.resolve
|
|
292
|
-
})
|
|
270
|
+
)
|
|
271
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientListResponseSchema)
|
|
293
272
|
}
|
|
294
273
|
|
|
295
274
|
type postAdminAbuseReportNotificationRecipientShowRequest = {
|
|
@@ -305,24 +284,21 @@ type postAdminAbuseReportNotificationRecipientShowResponse = MisskeyIoComponentS
|
|
|
305
284
|
let postAdminAbuseReportNotificationRecipientShowResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
306
285
|
|
|
307
286
|
/**
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
let postAdminAbuseReportNotificationRecipientShow = (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
287
|
+
admin/abuse-report/notification-recipient/show
|
|
288
|
+
|
|
289
|
+
No description provided.
|
|
290
|
+
|
|
291
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
292
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
|
|
293
|
+
*/
|
|
294
|
+
let postAdminAbuseReportNotificationRecipientShow = async (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientShowResponse => {
|
|
316
295
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientShowRequestSchema)
|
|
317
|
-
fetch(
|
|
296
|
+
let response = await fetch(
|
|
318
297
|
~url="/admin/abuse-report/notification-recipient/show",
|
|
319
298
|
~method_="POST",
|
|
320
299
|
~body=Some(jsonBody),
|
|
321
|
-
)
|
|
322
|
-
|
|
323
|
-
value
|
|
324
|
-
->Promise.resolve
|
|
325
|
-
})
|
|
300
|
+
)
|
|
301
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
|
|
326
302
|
}
|
|
327
303
|
|
|
328
304
|
type postAdminAbuseReportNotificationRecipientUpdateRequest = {
|
|
@@ -348,24 +324,21 @@ type postAdminAbuseReportNotificationRecipientUpdateResponse = MisskeyIoComponen
|
|
|
348
324
|
let postAdminAbuseReportNotificationRecipientUpdateResponseSchema = MisskeyIoComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
349
325
|
|
|
350
326
|
/**
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
let postAdminAbuseReportNotificationRecipientUpdate = (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
327
|
+
admin/abuse-report/notification-recipient/update
|
|
328
|
+
|
|
329
|
+
No description provided.
|
|
330
|
+
|
|
331
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
332
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
333
|
+
*/
|
|
334
|
+
let postAdminAbuseReportNotificationRecipientUpdate = async (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientUpdateResponse => {
|
|
359
335
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientUpdateRequestSchema)
|
|
360
|
-
fetch(
|
|
336
|
+
let response = await fetch(
|
|
361
337
|
~url="/admin/abuse-report/notification-recipient/update",
|
|
362
338
|
~method_="POST",
|
|
363
339
|
~body=Some(jsonBody),
|
|
364
|
-
)
|
|
365
|
-
|
|
366
|
-
value
|
|
367
|
-
->Promise.resolve
|
|
368
|
-
})
|
|
340
|
+
)
|
|
341
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
|
|
369
342
|
}
|
|
370
343
|
|
|
371
344
|
type postAdminAbuseUserReportsRequest = {
|
|
@@ -429,23 +402,20 @@ let postAdminAbuseUserReportsResponse_1Schema = S.object(s => {
|
|
|
429
402
|
let postAdminAbuseUserReportsResponseSchema = S.array(postAdminAbuseUserReportsResponse_1Schema)
|
|
430
403
|
|
|
431
404
|
/**
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
let postAdminAbuseUserReports = (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
405
|
+
admin/abuse-user-reports
|
|
406
|
+
|
|
407
|
+
No description provided.
|
|
408
|
+
|
|
409
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
|
|
410
|
+
*/
|
|
411
|
+
let postAdminAbuseUserReports = async (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseUserReportsResponse => {
|
|
439
412
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseUserReportsRequestSchema)
|
|
440
|
-
fetch(
|
|
413
|
+
let response = await fetch(
|
|
441
414
|
~url="/admin/abuse-user-reports",
|
|
442
415
|
~method_="POST",
|
|
443
416
|
~body=Some(jsonBody),
|
|
444
|
-
)
|
|
445
|
-
|
|
446
|
-
value
|
|
447
|
-
->Promise.resolve
|
|
448
|
-
})
|
|
417
|
+
)
|
|
418
|
+
response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
|
|
449
419
|
}
|
|
450
420
|
|
|
451
421
|
type postAdminAccountsCreateRequest = {
|
|
@@ -465,23 +435,20 @@ type postAdminAccountsCreateResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
465
435
|
let postAdminAccountsCreateResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
466
436
|
|
|
467
437
|
/**
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
let postAdminAccountsCreate = (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
438
|
+
admin/accounts/create
|
|
439
|
+
|
|
440
|
+
No description provided.
|
|
441
|
+
|
|
442
|
+
**Credential required**: *No*
|
|
443
|
+
*/
|
|
444
|
+
let postAdminAccountsCreate = async (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsCreateResponse => {
|
|
475
445
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsCreateRequestSchema)
|
|
476
|
-
fetch(
|
|
446
|
+
let response = await fetch(
|
|
477
447
|
~url="/admin/accounts/create",
|
|
478
448
|
~method_="POST",
|
|
479
449
|
~body=Some(jsonBody),
|
|
480
|
-
)
|
|
481
|
-
|
|
482
|
-
value
|
|
483
|
-
->Promise.resolve
|
|
484
|
-
})
|
|
450
|
+
)
|
|
451
|
+
response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
|
|
485
452
|
}
|
|
486
453
|
|
|
487
454
|
type postAdminAccountsDeleteRequest = {
|
|
@@ -497,23 +464,20 @@ let postAdminAccountsDeleteRequestSchema = S.object(s => {
|
|
|
497
464
|
type postAdminAccountsDeleteResponse = unit
|
|
498
465
|
|
|
499
466
|
/**
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
let postAdminAccountsDelete = (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
467
|
+
admin/accounts/delete
|
|
468
|
+
|
|
469
|
+
No description provided.
|
|
470
|
+
|
|
471
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
472
|
+
*/
|
|
473
|
+
let postAdminAccountsDelete = async (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsDeleteResponse => {
|
|
507
474
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsDeleteRequestSchema)
|
|
508
|
-
fetch(
|
|
475
|
+
let response = await fetch(
|
|
509
476
|
~url="/admin/accounts/delete",
|
|
510
477
|
~method_="POST",
|
|
511
478
|
~body=Some(jsonBody),
|
|
512
|
-
)
|
|
479
|
+
)
|
|
513
480
|
let _ = response
|
|
514
|
-
()
|
|
515
|
-
->Promise.resolve
|
|
516
|
-
})
|
|
517
481
|
}
|
|
518
482
|
|
|
519
483
|
type postAdminAccountsFindByEmailRequest = {
|
|
@@ -529,23 +493,20 @@ type postAdminAccountsFindByEmailResponse = MisskeyIoComponentSchemas.UserDetail
|
|
|
529
493
|
let postAdminAccountsFindByEmailResponseSchema = MisskeyIoComponentSchemas.UserDetailed.schema
|
|
530
494
|
|
|
531
495
|
/**
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
let postAdminAccountsFindByEmail = (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
496
|
+
admin/accounts/find-by-email
|
|
497
|
+
|
|
498
|
+
No description provided.
|
|
499
|
+
|
|
500
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:account*
|
|
501
|
+
*/
|
|
502
|
+
let postAdminAccountsFindByEmail = async (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsFindByEmailResponse => {
|
|
539
503
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsFindByEmailRequestSchema)
|
|
540
|
-
fetch(
|
|
504
|
+
let response = await fetch(
|
|
541
505
|
~url="/admin/accounts/find-by-email",
|
|
542
506
|
~method_="POST",
|
|
543
507
|
~body=Some(jsonBody),
|
|
544
|
-
)
|
|
545
|
-
|
|
546
|
-
value
|
|
547
|
-
->Promise.resolve
|
|
548
|
-
})
|
|
508
|
+
)
|
|
509
|
+
response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
|
|
549
510
|
}
|
|
550
511
|
|
|
551
512
|
type postAdminAccountsPendingListRequest = {
|
|
@@ -587,23 +548,20 @@ let postAdminAccountsPendingListResponse_1Schema = S.object(s => {
|
|
|
587
548
|
let postAdminAccountsPendingListResponseSchema = S.array(postAdminAccountsPendingListResponse_1Schema)
|
|
588
549
|
|
|
589
550
|
/**
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
let postAdminAccountsPendingList = (~body: postAdminAccountsPendingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
551
|
+
admin/accounts/pending/list
|
|
552
|
+
|
|
553
|
+
No description provided.
|
|
554
|
+
|
|
555
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:account*
|
|
556
|
+
*/
|
|
557
|
+
let postAdminAccountsPendingList = async (~body: postAdminAccountsPendingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsPendingListResponse => {
|
|
597
558
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsPendingListRequestSchema)
|
|
598
|
-
fetch(
|
|
559
|
+
let response = await fetch(
|
|
599
560
|
~url="/admin/accounts/pending/list",
|
|
600
561
|
~method_="POST",
|
|
601
562
|
~body=Some(jsonBody),
|
|
602
|
-
)
|
|
603
|
-
|
|
604
|
-
value
|
|
605
|
-
->Promise.resolve
|
|
606
|
-
})
|
|
563
|
+
)
|
|
564
|
+
response->S.parseOrThrow(postAdminAccountsPendingListResponseSchema)
|
|
607
565
|
}
|
|
608
566
|
|
|
609
567
|
type postAdminAccountsPendingRevokeRequest = {
|
|
@@ -619,23 +577,20 @@ let postAdminAccountsPendingRevokeRequestSchema = S.object(s => {
|
|
|
619
577
|
type postAdminAccountsPendingRevokeResponse = unit
|
|
620
578
|
|
|
621
579
|
/**
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
let postAdminAccountsPendingRevoke = (~body: postAdminAccountsPendingRevokeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
580
|
+
admin/accounts/pending/revoke
|
|
581
|
+
|
|
582
|
+
No description provided.
|
|
583
|
+
|
|
584
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
585
|
+
*/
|
|
586
|
+
let postAdminAccountsPendingRevoke = async (~body: postAdminAccountsPendingRevokeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsPendingRevokeResponse => {
|
|
629
587
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsPendingRevokeRequestSchema)
|
|
630
|
-
fetch(
|
|
588
|
+
let response = await fetch(
|
|
631
589
|
~url="/admin/accounts/pending/revoke",
|
|
632
590
|
~method_="POST",
|
|
633
591
|
~body=Some(jsonBody),
|
|
634
|
-
)
|
|
592
|
+
)
|
|
635
593
|
let _ = response
|
|
636
|
-
()
|
|
637
|
-
->Promise.resolve
|
|
638
|
-
})
|
|
639
594
|
}
|
|
640
595
|
|
|
641
596
|
type postAdminAdCreateRequest = {
|
|
@@ -669,23 +624,20 @@ type postAdminAdCreateResponse = MisskeyIoComponentSchemas.Ad.t
|
|
|
669
624
|
let postAdminAdCreateResponseSchema = MisskeyIoComponentSchemas.Ad.schema
|
|
670
625
|
|
|
671
626
|
/**
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
let postAdminAdCreate = (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
627
|
+
admin/ad/create
|
|
628
|
+
|
|
629
|
+
No description provided.
|
|
630
|
+
|
|
631
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
632
|
+
*/
|
|
633
|
+
let postAdminAdCreate = async (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdCreateResponse => {
|
|
679
634
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdCreateRequestSchema)
|
|
680
|
-
fetch(
|
|
635
|
+
let response = await fetch(
|
|
681
636
|
~url="/admin/ad/create",
|
|
682
637
|
~method_="POST",
|
|
683
638
|
~body=Some(jsonBody),
|
|
684
|
-
)
|
|
685
|
-
|
|
686
|
-
value
|
|
687
|
-
->Promise.resolve
|
|
688
|
-
})
|
|
639
|
+
)
|
|
640
|
+
response->S.parseOrThrow(postAdminAdCreateResponseSchema)
|
|
689
641
|
}
|
|
690
642
|
|
|
691
643
|
type postAdminAdDeleteRequest = {
|
|
@@ -699,23 +651,20 @@ let postAdminAdDeleteRequestSchema = S.object(s => {
|
|
|
699
651
|
type postAdminAdDeleteResponse = unit
|
|
700
652
|
|
|
701
653
|
/**
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
let postAdminAdDelete = (~body: postAdminAdDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
654
|
+
admin/ad/delete
|
|
655
|
+
|
|
656
|
+
No description provided.
|
|
657
|
+
|
|
658
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
659
|
+
*/
|
|
660
|
+
let postAdminAdDelete = async (~body: postAdminAdDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdDeleteResponse => {
|
|
709
661
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdDeleteRequestSchema)
|
|
710
|
-
fetch(
|
|
662
|
+
let response = await fetch(
|
|
711
663
|
~url="/admin/ad/delete",
|
|
712
664
|
~method_="POST",
|
|
713
665
|
~body=Some(jsonBody),
|
|
714
|
-
)
|
|
666
|
+
)
|
|
715
667
|
let _ = response
|
|
716
|
-
()
|
|
717
|
-
->Promise.resolve
|
|
718
|
-
})
|
|
719
668
|
}
|
|
720
669
|
|
|
721
670
|
type postAdminAdListRequest = {
|
|
@@ -737,23 +686,20 @@ type postAdminAdListResponse = array<MisskeyIoComponentSchemas.Ad.t>
|
|
|
737
686
|
let postAdminAdListResponseSchema = S.array(MisskeyIoComponentSchemas.Ad.schema)
|
|
738
687
|
|
|
739
688
|
/**
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
let postAdminAdList = (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
689
|
+
admin/ad/list
|
|
690
|
+
|
|
691
|
+
No description provided.
|
|
692
|
+
|
|
693
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:ad*
|
|
694
|
+
*/
|
|
695
|
+
let postAdminAdList = async (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdListResponse => {
|
|
747
696
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdListRequestSchema)
|
|
748
|
-
fetch(
|
|
697
|
+
let response = await fetch(
|
|
749
698
|
~url="/admin/ad/list",
|
|
750
699
|
~method_="POST",
|
|
751
700
|
~body=Some(jsonBody),
|
|
752
|
-
)
|
|
753
|
-
|
|
754
|
-
value
|
|
755
|
-
->Promise.resolve
|
|
756
|
-
})
|
|
701
|
+
)
|
|
702
|
+
response->S.parseOrThrow(postAdminAdListResponseSchema)
|
|
757
703
|
}
|
|
758
704
|
|
|
759
705
|
type postAdminAdUpdateRequest = {
|
|
@@ -787,23 +733,20 @@ let postAdminAdUpdateRequestSchema = S.object(s => {
|
|
|
787
733
|
type postAdminAdUpdateResponse = unit
|
|
788
734
|
|
|
789
735
|
/**
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
let postAdminAdUpdate = (~body: postAdminAdUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
736
|
+
admin/ad/update
|
|
737
|
+
|
|
738
|
+
No description provided.
|
|
739
|
+
|
|
740
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
741
|
+
*/
|
|
742
|
+
let postAdminAdUpdate = async (~body: postAdminAdUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdUpdateResponse => {
|
|
797
743
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdUpdateRequestSchema)
|
|
798
|
-
fetch(
|
|
744
|
+
let response = await fetch(
|
|
799
745
|
~url="/admin/ad/update",
|
|
800
746
|
~method_="POST",
|
|
801
747
|
~body=Some(jsonBody),
|
|
802
|
-
)
|
|
748
|
+
)
|
|
803
749
|
let _ = response
|
|
804
|
-
()
|
|
805
|
-
->Promise.resolve
|
|
806
|
-
})
|
|
807
750
|
}
|
|
808
751
|
|
|
809
752
|
type postAdminAnnouncementsCreateRequest = {
|
|
@@ -873,23 +816,20 @@ let postAdminAnnouncementsCreateResponseSchema = S.object(s => {
|
|
|
873
816
|
})
|
|
874
817
|
|
|
875
818
|
/**
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
let postAdminAnnouncementsCreate = (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
819
|
+
admin/announcements/create
|
|
820
|
+
|
|
821
|
+
No description provided.
|
|
822
|
+
|
|
823
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
824
|
+
*/
|
|
825
|
+
let postAdminAnnouncementsCreate = async (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsCreateResponse => {
|
|
883
826
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsCreateRequestSchema)
|
|
884
|
-
fetch(
|
|
827
|
+
let response = await fetch(
|
|
885
828
|
~url="/admin/announcements/create",
|
|
886
829
|
~method_="POST",
|
|
887
830
|
~body=Some(jsonBody),
|
|
888
|
-
)
|
|
889
|
-
|
|
890
|
-
value
|
|
891
|
-
->Promise.resolve
|
|
892
|
-
})
|
|
831
|
+
)
|
|
832
|
+
response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
|
|
893
833
|
}
|
|
894
834
|
|
|
895
835
|
type postAdminAnnouncementsDeleteRequest = {
|
|
@@ -903,23 +843,20 @@ let postAdminAnnouncementsDeleteRequestSchema = S.object(s => {
|
|
|
903
843
|
type postAdminAnnouncementsDeleteResponse = unit
|
|
904
844
|
|
|
905
845
|
/**
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
let postAdminAnnouncementsDelete = (~body: postAdminAnnouncementsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
846
|
+
admin/announcements/delete
|
|
847
|
+
|
|
848
|
+
No description provided.
|
|
849
|
+
|
|
850
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
851
|
+
*/
|
|
852
|
+
let postAdminAnnouncementsDelete = async (~body: postAdminAnnouncementsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsDeleteResponse => {
|
|
913
853
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsDeleteRequestSchema)
|
|
914
|
-
fetch(
|
|
854
|
+
let response = await fetch(
|
|
915
855
|
~url="/admin/announcements/delete",
|
|
916
856
|
~method_="POST",
|
|
917
857
|
~body=Some(jsonBody),
|
|
918
|
-
)
|
|
858
|
+
)
|
|
919
859
|
let _ = response
|
|
920
|
-
()
|
|
921
|
-
->Promise.resolve
|
|
922
|
-
})
|
|
923
860
|
}
|
|
924
861
|
|
|
925
862
|
type postAdminAnnouncementsListRequest = {
|
|
@@ -985,23 +922,20 @@ let postAdminAnnouncementsListResponse_1Schema = S.object(s => {
|
|
|
985
922
|
let postAdminAnnouncementsListResponseSchema = S.array(postAdminAnnouncementsListResponse_1Schema)
|
|
986
923
|
|
|
987
924
|
/**
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
let postAdminAnnouncementsList = (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
925
|
+
admin/announcements/list
|
|
926
|
+
|
|
927
|
+
No description provided.
|
|
928
|
+
|
|
929
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:announcements*
|
|
930
|
+
*/
|
|
931
|
+
let postAdminAnnouncementsList = async (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsListResponse => {
|
|
995
932
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsListRequestSchema)
|
|
996
|
-
fetch(
|
|
933
|
+
let response = await fetch(
|
|
997
934
|
~url="/admin/announcements/list",
|
|
998
935
|
~method_="POST",
|
|
999
936
|
~body=Some(jsonBody),
|
|
1000
|
-
)
|
|
1001
|
-
|
|
1002
|
-
value
|
|
1003
|
-
->Promise.resolve
|
|
1004
|
-
})
|
|
937
|
+
)
|
|
938
|
+
response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
|
|
1005
939
|
}
|
|
1006
940
|
|
|
1007
941
|
type postAdminAnnouncementsUpdateRequest = {
|
|
@@ -1039,23 +973,20 @@ let postAdminAnnouncementsUpdateRequestSchema = S.object(s => {
|
|
|
1039
973
|
type postAdminAnnouncementsUpdateResponse = unit
|
|
1040
974
|
|
|
1041
975
|
/**
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
let postAdminAnnouncementsUpdate = (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
976
|
+
admin/announcements/update
|
|
977
|
+
|
|
978
|
+
No description provided.
|
|
979
|
+
|
|
980
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
981
|
+
*/
|
|
982
|
+
let postAdminAnnouncementsUpdate = async (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsUpdateResponse => {
|
|
1049
983
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsUpdateRequestSchema)
|
|
1050
|
-
fetch(
|
|
984
|
+
let response = await fetch(
|
|
1051
985
|
~url="/admin/announcements/update",
|
|
1052
986
|
~method_="POST",
|
|
1053
987
|
~body=Some(jsonBody),
|
|
1054
|
-
)
|
|
988
|
+
)
|
|
1055
989
|
let _ = response
|
|
1056
|
-
()
|
|
1057
|
-
->Promise.resolve
|
|
1058
|
-
})
|
|
1059
990
|
}
|
|
1060
991
|
|
|
1061
992
|
type postAdminAvatarDecorationsCreateRequest = {
|
|
@@ -1093,23 +1024,20 @@ let postAdminAvatarDecorationsCreateResponseSchema = S.object(s => {
|
|
|
1093
1024
|
})
|
|
1094
1025
|
|
|
1095
1026
|
/**
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
let postAdminAvatarDecorationsCreate = (~body: postAdminAvatarDecorationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1027
|
+
admin/avatar-decorations/create
|
|
1028
|
+
|
|
1029
|
+
No description provided.
|
|
1030
|
+
|
|
1031
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1032
|
+
*/
|
|
1033
|
+
let postAdminAvatarDecorationsCreate = async (~body: postAdminAvatarDecorationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsCreateResponse => {
|
|
1103
1034
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsCreateRequestSchema)
|
|
1104
|
-
fetch(
|
|
1035
|
+
let response = await fetch(
|
|
1105
1036
|
~url="/admin/avatar-decorations/create",
|
|
1106
1037
|
~method_="POST",
|
|
1107
1038
|
~body=Some(jsonBody),
|
|
1108
|
-
)
|
|
1109
|
-
|
|
1110
|
-
value
|
|
1111
|
-
->Promise.resolve
|
|
1112
|
-
})
|
|
1039
|
+
)
|
|
1040
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsCreateResponseSchema)
|
|
1113
1041
|
}
|
|
1114
1042
|
|
|
1115
1043
|
type postAdminAvatarDecorationsDeleteRequest = {
|
|
@@ -1123,23 +1051,20 @@ let postAdminAvatarDecorationsDeleteRequestSchema = S.object(s => {
|
|
|
1123
1051
|
type postAdminAvatarDecorationsDeleteResponse = unit
|
|
1124
1052
|
|
|
1125
1053
|
/**
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
let postAdminAvatarDecorationsDelete = (~body: postAdminAvatarDecorationsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1054
|
+
admin/avatar-decorations/delete
|
|
1055
|
+
|
|
1056
|
+
No description provided.
|
|
1057
|
+
|
|
1058
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1059
|
+
*/
|
|
1060
|
+
let postAdminAvatarDecorationsDelete = async (~body: postAdminAvatarDecorationsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsDeleteResponse => {
|
|
1133
1061
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsDeleteRequestSchema)
|
|
1134
|
-
fetch(
|
|
1062
|
+
let response = await fetch(
|
|
1135
1063
|
~url="/admin/avatar-decorations/delete",
|
|
1136
1064
|
~method_="POST",
|
|
1137
1065
|
~body=Some(jsonBody),
|
|
1138
|
-
)
|
|
1066
|
+
)
|
|
1139
1067
|
let _ = response
|
|
1140
|
-
()
|
|
1141
|
-
->Promise.resolve
|
|
1142
|
-
})
|
|
1143
1068
|
}
|
|
1144
1069
|
|
|
1145
1070
|
type postAdminAvatarDecorationsListRequest = {
|
|
@@ -1181,23 +1106,20 @@ let postAdminAvatarDecorationsListResponse_1Schema = S.object(s => {
|
|
|
1181
1106
|
let postAdminAvatarDecorationsListResponseSchema = S.array(postAdminAvatarDecorationsListResponse_1Schema)
|
|
1182
1107
|
|
|
1183
1108
|
/**
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
let postAdminAvatarDecorationsList = (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1109
|
+
admin/avatar-decorations/list
|
|
1110
|
+
|
|
1111
|
+
No description provided.
|
|
1112
|
+
|
|
1113
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
|
|
1114
|
+
*/
|
|
1115
|
+
let postAdminAvatarDecorationsList = async (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListResponse => {
|
|
1191
1116
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRequestSchema)
|
|
1192
|
-
fetch(
|
|
1117
|
+
let response = await fetch(
|
|
1193
1118
|
~url="/admin/avatar-decorations/list",
|
|
1194
1119
|
~method_="POST",
|
|
1195
1120
|
~body=Some(jsonBody),
|
|
1196
|
-
)
|
|
1197
|
-
|
|
1198
|
-
value
|
|
1199
|
-
->Promise.resolve
|
|
1200
|
-
})
|
|
1121
|
+
)
|
|
1122
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
|
|
1201
1123
|
}
|
|
1202
1124
|
|
|
1203
1125
|
type postAdminAvatarDecorationsUpdateRequest = {
|
|
@@ -1219,23 +1141,20 @@ let postAdminAvatarDecorationsUpdateRequestSchema = S.object(s => {
|
|
|
1219
1141
|
type postAdminAvatarDecorationsUpdateResponse = unit
|
|
1220
1142
|
|
|
1221
1143
|
/**
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
let postAdminAvatarDecorationsUpdate = (~body: postAdminAvatarDecorationsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1144
|
+
admin/avatar-decorations/update
|
|
1145
|
+
|
|
1146
|
+
No description provided.
|
|
1147
|
+
|
|
1148
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
1149
|
+
*/
|
|
1150
|
+
let postAdminAvatarDecorationsUpdate = async (~body: postAdminAvatarDecorationsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsUpdateResponse => {
|
|
1229
1151
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsUpdateRequestSchema)
|
|
1230
|
-
fetch(
|
|
1152
|
+
let response = await fetch(
|
|
1231
1153
|
~url="/admin/avatar-decorations/update",
|
|
1232
1154
|
~method_="POST",
|
|
1233
1155
|
~body=Some(jsonBody),
|
|
1234
|
-
)
|
|
1156
|
+
)
|
|
1235
1157
|
let _ = response
|
|
1236
|
-
()
|
|
1237
|
-
->Promise.resolve
|
|
1238
|
-
})
|
|
1239
1158
|
}
|
|
1240
1159
|
|
|
1241
1160
|
type postAdminCaptchaCurrentResponse_2 = {
|
|
@@ -1277,23 +1196,20 @@ let postAdminCaptchaCurrentResponseSchema = S.object(s => {
|
|
|
1277
1196
|
})
|
|
1278
1197
|
|
|
1279
1198
|
/**
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
let postAdminCaptchaCurrent = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1287
|
-
|
|
1288
|
-
fetch(
|
|
1199
|
+
admin/captcha/current
|
|
1200
|
+
|
|
1201
|
+
No description provided.
|
|
1202
|
+
|
|
1203
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:meta*
|
|
1204
|
+
*/
|
|
1205
|
+
let postAdminCaptchaCurrent = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminCaptchaCurrentResponse => {
|
|
1206
|
+
|
|
1207
|
+
let response = await fetch(
|
|
1289
1208
|
~url="/admin/captcha/current",
|
|
1290
1209
|
~method_="POST",
|
|
1291
1210
|
~body=None,
|
|
1292
|
-
)
|
|
1293
|
-
|
|
1294
|
-
value
|
|
1295
|
-
->Promise.resolve
|
|
1296
|
-
})
|
|
1211
|
+
)
|
|
1212
|
+
response->S.parseOrThrow(postAdminCaptchaCurrentResponseSchema)
|
|
1297
1213
|
}
|
|
1298
1214
|
|
|
1299
1215
|
type postAdminCaptchaSaveRequest = {
|
|
@@ -1315,67 +1231,58 @@ let postAdminCaptchaSaveRequestSchema = S.object(s => {
|
|
|
1315
1231
|
type postAdminCaptchaSaveResponse = unit
|
|
1316
1232
|
|
|
1317
1233
|
/**
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
let postAdminCaptchaSave = (~body: postAdminCaptchaSaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1234
|
+
admin/captcha/save
|
|
1235
|
+
|
|
1236
|
+
No description provided.
|
|
1237
|
+
|
|
1238
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:meta*
|
|
1239
|
+
*/
|
|
1240
|
+
let postAdminCaptchaSave = async (~body: postAdminCaptchaSaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminCaptchaSaveResponse => {
|
|
1325
1241
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminCaptchaSaveRequestSchema)
|
|
1326
|
-
fetch(
|
|
1242
|
+
let response = await fetch(
|
|
1327
1243
|
~url="/admin/captcha/save",
|
|
1328
1244
|
~method_="POST",
|
|
1329
1245
|
~body=Some(jsonBody),
|
|
1330
|
-
)
|
|
1246
|
+
)
|
|
1331
1247
|
let _ = response
|
|
1332
|
-
()
|
|
1333
|
-
->Promise.resolve
|
|
1334
|
-
})
|
|
1335
1248
|
}
|
|
1336
1249
|
|
|
1337
1250
|
type postAdminDriveCleanRemoteFilesResponse = unit
|
|
1338
1251
|
|
|
1339
1252
|
/**
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
let postAdminDriveCleanRemoteFiles = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1347
|
-
|
|
1348
|
-
fetch(
|
|
1253
|
+
admin/drive/clean-remote-files
|
|
1254
|
+
|
|
1255
|
+
No description provided.
|
|
1256
|
+
|
|
1257
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1258
|
+
*/
|
|
1259
|
+
let postAdminDriveCleanRemoteFiles = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanRemoteFilesResponse => {
|
|
1260
|
+
|
|
1261
|
+
let response = await fetch(
|
|
1349
1262
|
~url="/admin/drive/clean-remote-files",
|
|
1350
1263
|
~method_="POST",
|
|
1351
1264
|
~body=None,
|
|
1352
|
-
)
|
|
1265
|
+
)
|
|
1353
1266
|
let _ = response
|
|
1354
|
-
()
|
|
1355
|
-
->Promise.resolve
|
|
1356
|
-
})
|
|
1357
1267
|
}
|
|
1358
1268
|
|
|
1359
1269
|
type postAdminDriveCleanupResponse = unit
|
|
1360
1270
|
|
|
1361
1271
|
/**
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
let postAdminDriveCleanup = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1369
|
-
|
|
1370
|
-
fetch(
|
|
1272
|
+
admin/drive/cleanup
|
|
1273
|
+
|
|
1274
|
+
No description provided.
|
|
1275
|
+
|
|
1276
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1277
|
+
*/
|
|
1278
|
+
let postAdminDriveCleanup = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveCleanupResponse => {
|
|
1279
|
+
|
|
1280
|
+
let response = await fetch(
|
|
1371
1281
|
~url="/admin/drive/cleanup",
|
|
1372
1282
|
~method_="POST",
|
|
1373
1283
|
~body=None,
|
|
1374
|
-
)
|
|
1284
|
+
)
|
|
1375
1285
|
let _ = response
|
|
1376
|
-
()
|
|
1377
|
-
->Promise.resolve
|
|
1378
|
-
})
|
|
1379
1286
|
}
|
|
1380
1287
|
|
|
1381
1288
|
type postAdminDriveDeleteAllFilesOfAUserRequest = {
|
|
@@ -1389,23 +1296,20 @@ let postAdminDriveDeleteAllFilesOfAUserRequestSchema = S.object(s => {
|
|
|
1389
1296
|
type postAdminDriveDeleteAllFilesOfAUserResponse = unit
|
|
1390
1297
|
|
|
1391
1298
|
/**
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
let postAdminDriveDeleteAllFilesOfAUser = (~body: postAdminDriveDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1299
|
+
admin/drive/delete-all-files-of-a-user
|
|
1300
|
+
|
|
1301
|
+
No description provided.
|
|
1302
|
+
|
|
1303
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:drive*
|
|
1304
|
+
*/
|
|
1305
|
+
let postAdminDriveDeleteAllFilesOfAUser = async (~body: postAdminDriveDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveDeleteAllFilesOfAUserResponse => {
|
|
1399
1306
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveDeleteAllFilesOfAUserRequestSchema)
|
|
1400
|
-
fetch(
|
|
1307
|
+
let response = await fetch(
|
|
1401
1308
|
~url="/admin/drive/delete-all-files-of-a-user",
|
|
1402
1309
|
~method_="POST",
|
|
1403
1310
|
~body=Some(jsonBody),
|
|
1404
|
-
)
|
|
1311
|
+
)
|
|
1405
1312
|
let _ = response
|
|
1406
|
-
()
|
|
1407
|
-
->Promise.resolve
|
|
1408
|
-
})
|
|
1409
1313
|
}
|
|
1410
1314
|
|
|
1411
1315
|
type postAdminDriveFilesRequest = {
|
|
@@ -1433,23 +1337,20 @@ type postAdminDriveFilesResponse = array<MisskeyIoComponentSchemas.DriveFile.t>
|
|
|
1433
1337
|
let postAdminDriveFilesResponseSchema = S.array(MisskeyIoComponentSchemas.DriveFile.schema)
|
|
1434
1338
|
|
|
1435
1339
|
/**
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
let postAdminDriveFiles = (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1340
|
+
admin/drive/files
|
|
1341
|
+
|
|
1342
|
+
No description provided.
|
|
1343
|
+
|
|
1344
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
1345
|
+
*/
|
|
1346
|
+
let postAdminDriveFiles = async (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveFilesResponse => {
|
|
1443
1347
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveFilesRequestSchema)
|
|
1444
|
-
fetch(
|
|
1348
|
+
let response = await fetch(
|
|
1445
1349
|
~url="/admin/drive/files",
|
|
1446
1350
|
~method_="POST",
|
|
1447
1351
|
~body=Some(jsonBody),
|
|
1448
|
-
)
|
|
1449
|
-
|
|
1450
|
-
value
|
|
1451
|
-
->Promise.resolve
|
|
1452
|
-
})
|
|
1352
|
+
)
|
|
1353
|
+
response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
|
|
1453
1354
|
}
|
|
1454
1355
|
|
|
1455
1356
|
type postAdminDriveShowFileRequest = {
|
|
@@ -1529,23 +1430,20 @@ let postAdminDriveShowFileResponseSchema = S.object(s => {
|
|
|
1529
1430
|
})
|
|
1530
1431
|
|
|
1531
1432
|
/**
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
let postAdminDriveShowFile = (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1433
|
+
admin/drive/show-file
|
|
1434
|
+
|
|
1435
|
+
No description provided.
|
|
1436
|
+
|
|
1437
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
1438
|
+
*/
|
|
1439
|
+
let postAdminDriveShowFile = async (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveShowFileResponse => {
|
|
1539
1440
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveShowFileRequestSchema)
|
|
1540
|
-
fetch(
|
|
1441
|
+
let response = await fetch(
|
|
1541
1442
|
~url="/admin/drive/show-file",
|
|
1542
1443
|
~method_="POST",
|
|
1543
1444
|
~body=Some(jsonBody),
|
|
1544
|
-
)
|
|
1545
|
-
|
|
1546
|
-
value
|
|
1547
|
-
->Promise.resolve
|
|
1548
|
-
})
|
|
1445
|
+
)
|
|
1446
|
+
response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
|
|
1549
1447
|
}
|
|
1550
1448
|
|
|
1551
1449
|
type postAdminEmojiAddRequest = {
|
|
@@ -1581,23 +1479,20 @@ type postAdminEmojiAddResponse = MisskeyIoComponentSchemas.EmojiDetailed.t
|
|
|
1581
1479
|
let postAdminEmojiAddResponseSchema = MisskeyIoComponentSchemas.EmojiDetailed.schema
|
|
1582
1480
|
|
|
1583
1481
|
/**
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
let postAdminEmojiAdd = (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1482
|
+
admin/emoji/add
|
|
1483
|
+
|
|
1484
|
+
No description provided.
|
|
1485
|
+
|
|
1486
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1487
|
+
*/
|
|
1488
|
+
let postAdminEmojiAdd = async (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddResponse => {
|
|
1591
1489
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddRequestSchema)
|
|
1592
|
-
fetch(
|
|
1490
|
+
let response = await fetch(
|
|
1593
1491
|
~url="/admin/emoji/add",
|
|
1594
1492
|
~method_="POST",
|
|
1595
1493
|
~body=Some(jsonBody),
|
|
1596
|
-
)
|
|
1597
|
-
|
|
1598
|
-
value
|
|
1599
|
-
->Promise.resolve
|
|
1600
|
-
})
|
|
1494
|
+
)
|
|
1495
|
+
response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
|
|
1601
1496
|
}
|
|
1602
1497
|
|
|
1603
1498
|
type postAdminEmojiAddAliasesBulkRequest = {
|
|
@@ -1613,23 +1508,20 @@ let postAdminEmojiAddAliasesBulkRequestSchema = S.object(s => {
|
|
|
1613
1508
|
type postAdminEmojiAddAliasesBulkResponse = unit
|
|
1614
1509
|
|
|
1615
1510
|
/**
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
let postAdminEmojiAddAliasesBulk = (~body: postAdminEmojiAddAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1511
|
+
admin/emoji/add-aliases-bulk
|
|
1512
|
+
|
|
1513
|
+
No description provided.
|
|
1514
|
+
|
|
1515
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1516
|
+
*/
|
|
1517
|
+
let postAdminEmojiAddAliasesBulk = async (~body: postAdminEmojiAddAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddAliasesBulkResponse => {
|
|
1623
1518
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddAliasesBulkRequestSchema)
|
|
1624
|
-
fetch(
|
|
1519
|
+
let response = await fetch(
|
|
1625
1520
|
~url="/admin/emoji/add-aliases-bulk",
|
|
1626
1521
|
~method_="POST",
|
|
1627
1522
|
~body=Some(jsonBody),
|
|
1628
|
-
)
|
|
1523
|
+
)
|
|
1629
1524
|
let _ = response
|
|
1630
|
-
()
|
|
1631
|
-
->Promise.resolve
|
|
1632
|
-
})
|
|
1633
1525
|
}
|
|
1634
1526
|
|
|
1635
1527
|
type postAdminEmojiCopyRequest = {
|
|
@@ -1649,23 +1541,20 @@ let postAdminEmojiCopyResponseSchema = S.object(s => {
|
|
|
1649
1541
|
})
|
|
1650
1542
|
|
|
1651
1543
|
/**
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
let postAdminEmojiCopy = (~body: postAdminEmojiCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1544
|
+
admin/emoji/copy
|
|
1545
|
+
|
|
1546
|
+
No description provided.
|
|
1547
|
+
|
|
1548
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1549
|
+
*/
|
|
1550
|
+
let postAdminEmojiCopy = async (~body: postAdminEmojiCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiCopyResponse => {
|
|
1659
1551
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiCopyRequestSchema)
|
|
1660
|
-
fetch(
|
|
1552
|
+
let response = await fetch(
|
|
1661
1553
|
~url="/admin/emoji/copy",
|
|
1662
1554
|
~method_="POST",
|
|
1663
1555
|
~body=Some(jsonBody),
|
|
1664
|
-
)
|
|
1665
|
-
|
|
1666
|
-
value
|
|
1667
|
-
->Promise.resolve
|
|
1668
|
-
})
|
|
1556
|
+
)
|
|
1557
|
+
response->S.parseOrThrow(postAdminEmojiCopyResponseSchema)
|
|
1669
1558
|
}
|
|
1670
1559
|
|
|
1671
1560
|
type postAdminEmojiDeleteRequest = {
|
|
@@ -1679,23 +1568,20 @@ let postAdminEmojiDeleteRequestSchema = S.object(s => {
|
|
|
1679
1568
|
type postAdminEmojiDeleteResponse = unit
|
|
1680
1569
|
|
|
1681
1570
|
/**
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
let postAdminEmojiDelete = (~body: postAdminEmojiDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1571
|
+
admin/emoji/delete
|
|
1572
|
+
|
|
1573
|
+
No description provided.
|
|
1574
|
+
|
|
1575
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1576
|
+
*/
|
|
1577
|
+
let postAdminEmojiDelete = async (~body: postAdminEmojiDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiDeleteResponse => {
|
|
1689
1578
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiDeleteRequestSchema)
|
|
1690
|
-
fetch(
|
|
1579
|
+
let response = await fetch(
|
|
1691
1580
|
~url="/admin/emoji/delete",
|
|
1692
1581
|
~method_="POST",
|
|
1693
1582
|
~body=Some(jsonBody),
|
|
1694
|
-
)
|
|
1583
|
+
)
|
|
1695
1584
|
let _ = response
|
|
1696
|
-
()
|
|
1697
|
-
->Promise.resolve
|
|
1698
|
-
})
|
|
1699
1585
|
}
|
|
1700
1586
|
|
|
1701
1587
|
type postAdminEmojiDeleteBulkRequest = {
|
|
@@ -1709,23 +1595,20 @@ let postAdminEmojiDeleteBulkRequestSchema = S.object(s => {
|
|
|
1709
1595
|
type postAdminEmojiDeleteBulkResponse = unit
|
|
1710
1596
|
|
|
1711
1597
|
/**
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
let postAdminEmojiDeleteBulk = (~body: postAdminEmojiDeleteBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1598
|
+
admin/emoji/delete-bulk
|
|
1599
|
+
|
|
1600
|
+
No description provided.
|
|
1601
|
+
|
|
1602
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1603
|
+
*/
|
|
1604
|
+
let postAdminEmojiDeleteBulk = async (~body: postAdminEmojiDeleteBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiDeleteBulkResponse => {
|
|
1719
1605
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiDeleteBulkRequestSchema)
|
|
1720
|
-
fetch(
|
|
1606
|
+
let response = await fetch(
|
|
1721
1607
|
~url="/admin/emoji/delete-bulk",
|
|
1722
1608
|
~method_="POST",
|
|
1723
1609
|
~body=Some(jsonBody),
|
|
1724
|
-
)
|
|
1610
|
+
)
|
|
1725
1611
|
let _ = response
|
|
1726
|
-
()
|
|
1727
|
-
->Promise.resolve
|
|
1728
|
-
})
|
|
1729
1612
|
}
|
|
1730
1613
|
|
|
1731
1614
|
type postAdminEmojiListRequest = {
|
|
@@ -1765,23 +1648,20 @@ let postAdminEmojiListResponse_1Schema = S.object(s => {
|
|
|
1765
1648
|
let postAdminEmojiListResponseSchema = S.array(postAdminEmojiListResponse_1Schema)
|
|
1766
1649
|
|
|
1767
1650
|
/**
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
let postAdminEmojiList = (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1651
|
+
admin/emoji/list
|
|
1652
|
+
|
|
1653
|
+
No description provided.
|
|
1654
|
+
|
|
1655
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
1656
|
+
*/
|
|
1657
|
+
let postAdminEmojiList = async (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListResponse => {
|
|
1775
1658
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRequestSchema)
|
|
1776
|
-
fetch(
|
|
1659
|
+
let response = await fetch(
|
|
1777
1660
|
~url="/admin/emoji/list",
|
|
1778
1661
|
~method_="POST",
|
|
1779
1662
|
~body=Some(jsonBody),
|
|
1780
|
-
)
|
|
1781
|
-
|
|
1782
|
-
value
|
|
1783
|
-
->Promise.resolve
|
|
1784
|
-
})
|
|
1663
|
+
)
|
|
1664
|
+
response->S.parseOrThrow(postAdminEmojiListResponseSchema)
|
|
1785
1665
|
}
|
|
1786
1666
|
|
|
1787
1667
|
type postAdminEmojiListRemoteRequest = {
|
|
@@ -1823,23 +1703,20 @@ let postAdminEmojiListRemoteResponse_1Schema = S.object(s => {
|
|
|
1823
1703
|
let postAdminEmojiListRemoteResponseSchema = S.array(postAdminEmojiListRemoteResponse_1Schema)
|
|
1824
1704
|
|
|
1825
1705
|
/**
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
let postAdminEmojiListRemote = (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1706
|
+
admin/emoji/list-remote
|
|
1707
|
+
|
|
1708
|
+
No description provided.
|
|
1709
|
+
|
|
1710
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
1711
|
+
*/
|
|
1712
|
+
let postAdminEmojiListRemote = async (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListRemoteResponse => {
|
|
1833
1713
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRemoteRequestSchema)
|
|
1834
|
-
fetch(
|
|
1714
|
+
let response = await fetch(
|
|
1835
1715
|
~url="/admin/emoji/list-remote",
|
|
1836
1716
|
~method_="POST",
|
|
1837
1717
|
~body=Some(jsonBody),
|
|
1838
|
-
)
|
|
1839
|
-
|
|
1840
|
-
value
|
|
1841
|
-
->Promise.resolve
|
|
1842
|
-
})
|
|
1718
|
+
)
|
|
1719
|
+
response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
|
|
1843
1720
|
}
|
|
1844
1721
|
|
|
1845
1722
|
type postAdminEmojiRemoveAliasesBulkRequest = {
|
|
@@ -1855,23 +1732,20 @@ let postAdminEmojiRemoveAliasesBulkRequestSchema = S.object(s => {
|
|
|
1855
1732
|
type postAdminEmojiRemoveAliasesBulkResponse = unit
|
|
1856
1733
|
|
|
1857
1734
|
/**
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
let postAdminEmojiRemoveAliasesBulk = (~body: postAdminEmojiRemoveAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1735
|
+
admin/emoji/remove-aliases-bulk
|
|
1736
|
+
|
|
1737
|
+
No description provided.
|
|
1738
|
+
|
|
1739
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1740
|
+
*/
|
|
1741
|
+
let postAdminEmojiRemoveAliasesBulk = async (~body: postAdminEmojiRemoveAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiRemoveAliasesBulkResponse => {
|
|
1865
1742
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiRemoveAliasesBulkRequestSchema)
|
|
1866
|
-
fetch(
|
|
1743
|
+
let response = await fetch(
|
|
1867
1744
|
~url="/admin/emoji/remove-aliases-bulk",
|
|
1868
1745
|
~method_="POST",
|
|
1869
1746
|
~body=Some(jsonBody),
|
|
1870
|
-
)
|
|
1747
|
+
)
|
|
1871
1748
|
let _ = response
|
|
1872
|
-
()
|
|
1873
|
-
->Promise.resolve
|
|
1874
|
-
})
|
|
1875
1749
|
}
|
|
1876
1750
|
|
|
1877
1751
|
type postAdminEmojiSetAliasesBulkRequest = {
|
|
@@ -1887,23 +1761,20 @@ let postAdminEmojiSetAliasesBulkRequestSchema = S.object(s => {
|
|
|
1887
1761
|
type postAdminEmojiSetAliasesBulkResponse = unit
|
|
1888
1762
|
|
|
1889
1763
|
/**
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
let postAdminEmojiSetAliasesBulk = (~body: postAdminEmojiSetAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1764
|
+
admin/emoji/set-aliases-bulk
|
|
1765
|
+
|
|
1766
|
+
No description provided.
|
|
1767
|
+
|
|
1768
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1769
|
+
*/
|
|
1770
|
+
let postAdminEmojiSetAliasesBulk = async (~body: postAdminEmojiSetAliasesBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetAliasesBulkResponse => {
|
|
1897
1771
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetAliasesBulkRequestSchema)
|
|
1898
|
-
fetch(
|
|
1772
|
+
let response = await fetch(
|
|
1899
1773
|
~url="/admin/emoji/set-aliases-bulk",
|
|
1900
1774
|
~method_="POST",
|
|
1901
1775
|
~body=Some(jsonBody),
|
|
1902
|
-
)
|
|
1776
|
+
)
|
|
1903
1777
|
let _ = response
|
|
1904
|
-
()
|
|
1905
|
-
->Promise.resolve
|
|
1906
|
-
})
|
|
1907
1778
|
}
|
|
1908
1779
|
|
|
1909
1780
|
type postAdminEmojiSetCategoryBulkRequest = {
|
|
@@ -1919,23 +1790,20 @@ let postAdminEmojiSetCategoryBulkRequestSchema = S.object(s => {
|
|
|
1919
1790
|
type postAdminEmojiSetCategoryBulkResponse = unit
|
|
1920
1791
|
|
|
1921
1792
|
/**
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
let postAdminEmojiSetCategoryBulk = (~body: postAdminEmojiSetCategoryBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1793
|
+
admin/emoji/set-category-bulk
|
|
1794
|
+
|
|
1795
|
+
No description provided.
|
|
1796
|
+
|
|
1797
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1798
|
+
*/
|
|
1799
|
+
let postAdminEmojiSetCategoryBulk = async (~body: postAdminEmojiSetCategoryBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetCategoryBulkResponse => {
|
|
1929
1800
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetCategoryBulkRequestSchema)
|
|
1930
|
-
fetch(
|
|
1801
|
+
let response = await fetch(
|
|
1931
1802
|
~url="/admin/emoji/set-category-bulk",
|
|
1932
1803
|
~method_="POST",
|
|
1933
1804
|
~body=Some(jsonBody),
|
|
1934
|
-
)
|
|
1805
|
+
)
|
|
1935
1806
|
let _ = response
|
|
1936
|
-
()
|
|
1937
|
-
->Promise.resolve
|
|
1938
|
-
})
|
|
1939
1807
|
}
|
|
1940
1808
|
|
|
1941
1809
|
type postAdminEmojiSetLicenseBulkRequest = {
|
|
@@ -1951,23 +1819,20 @@ let postAdminEmojiSetLicenseBulkRequestSchema = S.object(s => {
|
|
|
1951
1819
|
type postAdminEmojiSetLicenseBulkResponse = unit
|
|
1952
1820
|
|
|
1953
1821
|
/**
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
let postAdminEmojiSetLicenseBulk = (~body: postAdminEmojiSetLicenseBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1822
|
+
admin/emoji/set-license-bulk
|
|
1823
|
+
|
|
1824
|
+
No description provided.
|
|
1825
|
+
|
|
1826
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1827
|
+
*/
|
|
1828
|
+
let postAdminEmojiSetLicenseBulk = async (~body: postAdminEmojiSetLicenseBulkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiSetLicenseBulkResponse => {
|
|
1961
1829
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiSetLicenseBulkRequestSchema)
|
|
1962
|
-
fetch(
|
|
1830
|
+
let response = await fetch(
|
|
1963
1831
|
~url="/admin/emoji/set-license-bulk",
|
|
1964
1832
|
~method_="POST",
|
|
1965
1833
|
~body=Some(jsonBody),
|
|
1966
|
-
)
|
|
1834
|
+
)
|
|
1967
1835
|
let _ = response
|
|
1968
|
-
()
|
|
1969
|
-
->Promise.resolve
|
|
1970
|
-
})
|
|
1971
1836
|
}
|
|
1972
1837
|
|
|
1973
1838
|
type postAdminEmojiUpdateRequest = {
|
|
@@ -2003,23 +1868,20 @@ let postAdminEmojiUpdateRequestSchema = S.object(s => {
|
|
|
2003
1868
|
type postAdminEmojiUpdateResponse = unit
|
|
2004
1869
|
|
|
2005
1870
|
/**
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
let postAdminEmojiUpdate = (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1871
|
+
admin/emoji/update
|
|
1872
|
+
|
|
1873
|
+
No description provided.
|
|
1874
|
+
|
|
1875
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1876
|
+
*/
|
|
1877
|
+
let postAdminEmojiUpdate = async (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiUpdateResponse => {
|
|
2013
1878
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiUpdateRequestSchema)
|
|
2014
|
-
fetch(
|
|
1879
|
+
let response = await fetch(
|
|
2015
1880
|
~url="/admin/emoji/update",
|
|
2016
1881
|
~method_="POST",
|
|
2017
1882
|
~body=Some(jsonBody),
|
|
2018
|
-
)
|
|
1883
|
+
)
|
|
2019
1884
|
let _ = response
|
|
2020
|
-
()
|
|
2021
|
-
->Promise.resolve
|
|
2022
|
-
})
|
|
2023
1885
|
}
|
|
2024
1886
|
|
|
2025
1887
|
type postAdminFederationDeleteAllFilesRequest = {
|
|
@@ -2033,23 +1895,20 @@ let postAdminFederationDeleteAllFilesRequestSchema = S.object(s => {
|
|
|
2033
1895
|
type postAdminFederationDeleteAllFilesResponse = unit
|
|
2034
1896
|
|
|
2035
1897
|
/**
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
let postAdminFederationDeleteAllFiles = (~body: postAdminFederationDeleteAllFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1898
|
+
admin/federation/delete-all-files
|
|
1899
|
+
|
|
1900
|
+
No description provided.
|
|
1901
|
+
|
|
1902
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
1903
|
+
*/
|
|
1904
|
+
let postAdminFederationDeleteAllFiles = async (~body: postAdminFederationDeleteAllFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationDeleteAllFilesResponse => {
|
|
2043
1905
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationDeleteAllFilesRequestSchema)
|
|
2044
|
-
fetch(
|
|
1906
|
+
let response = await fetch(
|
|
2045
1907
|
~url="/admin/federation/delete-all-files",
|
|
2046
1908
|
~method_="POST",
|
|
2047
1909
|
~body=Some(jsonBody),
|
|
2048
|
-
)
|
|
1910
|
+
)
|
|
2049
1911
|
let _ = response
|
|
2050
|
-
()
|
|
2051
|
-
->Promise.resolve
|
|
2052
|
-
})
|
|
2053
1912
|
}
|
|
2054
1913
|
|
|
2055
1914
|
type postAdminFederationRefreshRemoteInstanceMetadataRequest = {
|
|
@@ -2063,23 +1922,20 @@ let postAdminFederationRefreshRemoteInstanceMetadataRequestSchema = S.object(s =
|
|
|
2063
1922
|
type postAdminFederationRefreshRemoteInstanceMetadataResponse = unit
|
|
2064
1923
|
|
|
2065
1924
|
/**
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
let postAdminFederationRefreshRemoteInstanceMetadata = (~body: postAdminFederationRefreshRemoteInstanceMetadataRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1925
|
+
admin/federation/refresh-remote-instance-metadata
|
|
1926
|
+
|
|
1927
|
+
No description provided.
|
|
1928
|
+
|
|
1929
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
1930
|
+
*/
|
|
1931
|
+
let postAdminFederationRefreshRemoteInstanceMetadata = async (~body: postAdminFederationRefreshRemoteInstanceMetadataRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationRefreshRemoteInstanceMetadataResponse => {
|
|
2073
1932
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationRefreshRemoteInstanceMetadataRequestSchema)
|
|
2074
|
-
fetch(
|
|
1933
|
+
let response = await fetch(
|
|
2075
1934
|
~url="/admin/federation/refresh-remote-instance-metadata",
|
|
2076
1935
|
~method_="POST",
|
|
2077
1936
|
~body=Some(jsonBody),
|
|
2078
|
-
)
|
|
1937
|
+
)
|
|
2079
1938
|
let _ = response
|
|
2080
|
-
()
|
|
2081
|
-
->Promise.resolve
|
|
2082
|
-
})
|
|
2083
1939
|
}
|
|
2084
1940
|
|
|
2085
1941
|
type postAdminFederationRemoveAllFollowingRequest = {
|
|
@@ -2093,23 +1949,20 @@ let postAdminFederationRemoveAllFollowingRequestSchema = S.object(s => {
|
|
|
2093
1949
|
type postAdminFederationRemoveAllFollowingResponse = unit
|
|
2094
1950
|
|
|
2095
1951
|
/**
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
let postAdminFederationRemoveAllFollowing = (~body: postAdminFederationRemoveAllFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1952
|
+
admin/federation/remove-all-following
|
|
1953
|
+
|
|
1954
|
+
No description provided.
|
|
1955
|
+
|
|
1956
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
1957
|
+
*/
|
|
1958
|
+
let postAdminFederationRemoveAllFollowing = async (~body: postAdminFederationRemoveAllFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationRemoveAllFollowingResponse => {
|
|
2103
1959
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationRemoveAllFollowingRequestSchema)
|
|
2104
|
-
fetch(
|
|
1960
|
+
let response = await fetch(
|
|
2105
1961
|
~url="/admin/federation/remove-all-following",
|
|
2106
1962
|
~method_="POST",
|
|
2107
1963
|
~body=Some(jsonBody),
|
|
2108
|
-
)
|
|
1964
|
+
)
|
|
2109
1965
|
let _ = response
|
|
2110
|
-
()
|
|
2111
|
-
->Promise.resolve
|
|
2112
|
-
})
|
|
2113
1966
|
}
|
|
2114
1967
|
|
|
2115
1968
|
type postAdminFederationUpdateInstanceRequest = {
|
|
@@ -2127,23 +1980,20 @@ let postAdminFederationUpdateInstanceRequestSchema = S.object(s => {
|
|
|
2127
1980
|
type postAdminFederationUpdateInstanceResponse = unit
|
|
2128
1981
|
|
|
2129
1982
|
/**
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
let postAdminFederationUpdateInstance = (~body: postAdminFederationUpdateInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1983
|
+
admin/federation/update-instance
|
|
1984
|
+
|
|
1985
|
+
No description provided.
|
|
1986
|
+
|
|
1987
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:federation*
|
|
1988
|
+
*/
|
|
1989
|
+
let postAdminFederationUpdateInstance = async (~body: postAdminFederationUpdateInstanceRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminFederationUpdateInstanceResponse => {
|
|
2137
1990
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminFederationUpdateInstanceRequestSchema)
|
|
2138
|
-
fetch(
|
|
1991
|
+
let response = await fetch(
|
|
2139
1992
|
~url="/admin/federation/update-instance",
|
|
2140
1993
|
~method_="POST",
|
|
2141
1994
|
~body=Some(jsonBody),
|
|
2142
|
-
)
|
|
1995
|
+
)
|
|
2143
1996
|
let _ = response
|
|
2144
|
-
()
|
|
2145
|
-
->Promise.resolve
|
|
2146
|
-
})
|
|
2147
1997
|
}
|
|
2148
1998
|
|
|
2149
1999
|
type postAdminForwardAbuseUserReportRequest = {
|
|
@@ -2157,23 +2007,20 @@ let postAdminForwardAbuseUserReportRequestSchema = S.object(s => {
|
|
|
2157
2007
|
type postAdminForwardAbuseUserReportResponse = unit
|
|
2158
2008
|
|
|
2159
2009
|
/**
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
let postAdminForwardAbuseUserReport = (~body: postAdminForwardAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2010
|
+
admin/forward-abuse-user-report
|
|
2011
|
+
|
|
2012
|
+
No description provided.
|
|
2013
|
+
|
|
2014
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
2015
|
+
*/
|
|
2016
|
+
let postAdminForwardAbuseUserReport = async (~body: postAdminForwardAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminForwardAbuseUserReportResponse => {
|
|
2167
2017
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminForwardAbuseUserReportRequestSchema)
|
|
2168
|
-
fetch(
|
|
2018
|
+
let response = await fetch(
|
|
2169
2019
|
~url="/admin/forward-abuse-user-report",
|
|
2170
2020
|
~method_="POST",
|
|
2171
2021
|
~body=Some(jsonBody),
|
|
2172
|
-
)
|
|
2022
|
+
)
|
|
2173
2023
|
let _ = response
|
|
2174
|
-
()
|
|
2175
|
-
->Promise.resolve
|
|
2176
|
-
})
|
|
2177
2024
|
}
|
|
2178
2025
|
|
|
2179
2026
|
type postAdminGetIndexStatsResponse_1 = {
|
|
@@ -2191,23 +2038,20 @@ let postAdminGetIndexStatsResponse_1Schema = S.object(s => {
|
|
|
2191
2038
|
let postAdminGetIndexStatsResponseSchema = S.array(postAdminGetIndexStatsResponse_1Schema)
|
|
2192
2039
|
|
|
2193
2040
|
/**
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
let postAdminGetIndexStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2201
|
-
|
|
2202
|
-
fetch(
|
|
2041
|
+
admin/get-index-stats
|
|
2042
|
+
|
|
2043
|
+
No description provided.
|
|
2044
|
+
|
|
2045
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:index-stats*
|
|
2046
|
+
*/
|
|
2047
|
+
let postAdminGetIndexStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetIndexStatsResponse => {
|
|
2048
|
+
|
|
2049
|
+
let response = await fetch(
|
|
2203
2050
|
~url="/admin/get-index-stats",
|
|
2204
2051
|
~method_="POST",
|
|
2205
2052
|
~body=None,
|
|
2206
|
-
)
|
|
2207
|
-
|
|
2208
|
-
value
|
|
2209
|
-
->Promise.resolve
|
|
2210
|
-
})
|
|
2053
|
+
)
|
|
2054
|
+
response->S.parseOrThrow(postAdminGetIndexStatsResponseSchema)
|
|
2211
2055
|
}
|
|
2212
2056
|
|
|
2213
2057
|
type postAdminGetTableStatsResponse = dict<JSON.t>
|
|
@@ -2215,23 +2059,20 @@ type postAdminGetTableStatsResponse = dict<JSON.t>
|
|
|
2215
2059
|
let postAdminGetTableStatsResponseSchema = S.dict(S.json)
|
|
2216
2060
|
|
|
2217
2061
|
/**
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
let postAdminGetTableStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2225
|
-
|
|
2226
|
-
fetch(
|
|
2062
|
+
admin/get-table-stats
|
|
2063
|
+
|
|
2064
|
+
No description provided.
|
|
2065
|
+
|
|
2066
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:table-stats*
|
|
2067
|
+
*/
|
|
2068
|
+
let postAdminGetTableStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetTableStatsResponse => {
|
|
2069
|
+
|
|
2070
|
+
let response = await fetch(
|
|
2227
2071
|
~url="/admin/get-table-stats",
|
|
2228
2072
|
~method_="POST",
|
|
2229
2073
|
~body=None,
|
|
2230
|
-
)
|
|
2231
|
-
|
|
2232
|
-
value
|
|
2233
|
-
->Promise.resolve
|
|
2234
|
-
})
|
|
2074
|
+
)
|
|
2075
|
+
response->S.parseOrThrow(postAdminGetTableStatsResponseSchema)
|
|
2235
2076
|
}
|
|
2236
2077
|
|
|
2237
2078
|
type postAdminGetUserIpsRequest = {
|
|
@@ -2257,23 +2098,20 @@ let postAdminGetUserIpsResponse_1Schema = S.object(s => {
|
|
|
2257
2098
|
let postAdminGetUserIpsResponseSchema = S.array(postAdminGetUserIpsResponse_1Schema)
|
|
2258
2099
|
|
|
2259
2100
|
/**
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
let postAdminGetUserIps = (~body: postAdminGetUserIpsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2101
|
+
admin/get-user-ips
|
|
2102
|
+
|
|
2103
|
+
No description provided.
|
|
2104
|
+
|
|
2105
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:user-ips*
|
|
2106
|
+
*/
|
|
2107
|
+
let postAdminGetUserIps = async (~body: postAdminGetUserIpsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminGetUserIpsResponse => {
|
|
2267
2108
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminGetUserIpsRequestSchema)
|
|
2268
|
-
fetch(
|
|
2109
|
+
let response = await fetch(
|
|
2269
2110
|
~url="/admin/get-user-ips",
|
|
2270
2111
|
~method_="POST",
|
|
2271
2112
|
~body=Some(jsonBody),
|
|
2272
|
-
)
|
|
2273
|
-
|
|
2274
|
-
value
|
|
2275
|
-
->Promise.resolve
|
|
2276
|
-
})
|
|
2113
|
+
)
|
|
2114
|
+
response->S.parseOrThrow(postAdminGetUserIpsResponseSchema)
|
|
2277
2115
|
}
|
|
2278
2116
|
|
|
2279
2117
|
type postAdminIndieAuthCreateRequest = {
|
|
@@ -2303,23 +2141,20 @@ let postAdminIndieAuthCreateResponseSchema = S.object(s => {
|
|
|
2303
2141
|
})
|
|
2304
2142
|
|
|
2305
2143
|
/**
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
let postAdminIndieAuthCreate = (~body: postAdminIndieAuthCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2144
|
+
admin/indie-auth/create
|
|
2145
|
+
|
|
2146
|
+
No description provided.
|
|
2147
|
+
|
|
2148
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2149
|
+
*/
|
|
2150
|
+
let postAdminIndieAuthCreate = async (~body: postAdminIndieAuthCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthCreateResponse => {
|
|
2313
2151
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthCreateRequestSchema)
|
|
2314
|
-
fetch(
|
|
2152
|
+
let response = await fetch(
|
|
2315
2153
|
~url="/admin/indie-auth/create",
|
|
2316
2154
|
~method_="POST",
|
|
2317
2155
|
~body=Some(jsonBody),
|
|
2318
|
-
)
|
|
2319
|
-
|
|
2320
|
-
value
|
|
2321
|
-
->Promise.resolve
|
|
2322
|
-
})
|
|
2156
|
+
)
|
|
2157
|
+
response->S.parseOrThrow(postAdminIndieAuthCreateResponseSchema)
|
|
2323
2158
|
}
|
|
2324
2159
|
|
|
2325
2160
|
type postAdminIndieAuthDeleteRequest = {
|
|
@@ -2333,23 +2168,20 @@ let postAdminIndieAuthDeleteRequestSchema = S.object(s => {
|
|
|
2333
2168
|
type postAdminIndieAuthDeleteResponse = unit
|
|
2334
2169
|
|
|
2335
2170
|
/**
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
let postAdminIndieAuthDelete = (~body: postAdminIndieAuthDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2171
|
+
admin/indie-auth/delete
|
|
2172
|
+
|
|
2173
|
+
No description provided.
|
|
2174
|
+
|
|
2175
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2176
|
+
*/
|
|
2177
|
+
let postAdminIndieAuthDelete = async (~body: postAdminIndieAuthDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthDeleteResponse => {
|
|
2343
2178
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthDeleteRequestSchema)
|
|
2344
|
-
fetch(
|
|
2179
|
+
let response = await fetch(
|
|
2345
2180
|
~url="/admin/indie-auth/delete",
|
|
2346
2181
|
~method_="POST",
|
|
2347
2182
|
~body=Some(jsonBody),
|
|
2348
|
-
)
|
|
2183
|
+
)
|
|
2349
2184
|
let _ = response
|
|
2350
|
-
()
|
|
2351
|
-
->Promise.resolve
|
|
2352
|
-
})
|
|
2353
2185
|
}
|
|
2354
2186
|
|
|
2355
2187
|
type postAdminIndieAuthListRequest = {
|
|
@@ -2381,23 +2213,20 @@ let postAdminIndieAuthListResponse_1Schema = S.object(s => {
|
|
|
2381
2213
|
let postAdminIndieAuthListResponseSchema = S.array(postAdminIndieAuthListResponse_1Schema)
|
|
2382
2214
|
|
|
2383
2215
|
/**
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
let postAdminIndieAuthList = (~body: postAdminIndieAuthListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2216
|
+
admin/indie-auth/list
|
|
2217
|
+
|
|
2218
|
+
No description provided.
|
|
2219
|
+
|
|
2220
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:indie-auth*
|
|
2221
|
+
*/
|
|
2222
|
+
let postAdminIndieAuthList = async (~body: postAdminIndieAuthListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthListResponse => {
|
|
2391
2223
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthListRequestSchema)
|
|
2392
|
-
fetch(
|
|
2224
|
+
let response = await fetch(
|
|
2393
2225
|
~url="/admin/indie-auth/list",
|
|
2394
2226
|
~method_="POST",
|
|
2395
2227
|
~body=Some(jsonBody),
|
|
2396
|
-
)
|
|
2397
|
-
|
|
2398
|
-
value
|
|
2399
|
-
->Promise.resolve
|
|
2400
|
-
})
|
|
2228
|
+
)
|
|
2229
|
+
response->S.parseOrThrow(postAdminIndieAuthListResponseSchema)
|
|
2401
2230
|
}
|
|
2402
2231
|
|
|
2403
2232
|
type postAdminIndieAuthUpdateRequest = {
|
|
@@ -2415,23 +2244,20 @@ let postAdminIndieAuthUpdateRequestSchema = S.object(s => {
|
|
|
2415
2244
|
type postAdminIndieAuthUpdateResponse = unit
|
|
2416
2245
|
|
|
2417
2246
|
/**
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
let postAdminIndieAuthUpdate = (~body: postAdminIndieAuthUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2247
|
+
admin/indie-auth/update
|
|
2248
|
+
|
|
2249
|
+
No description provided.
|
|
2250
|
+
|
|
2251
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:indie-auth*
|
|
2252
|
+
*/
|
|
2253
|
+
let postAdminIndieAuthUpdate = async (~body: postAdminIndieAuthUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminIndieAuthUpdateResponse => {
|
|
2425
2254
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminIndieAuthUpdateRequestSchema)
|
|
2426
|
-
fetch(
|
|
2255
|
+
let response = await fetch(
|
|
2427
2256
|
~url="/admin/indie-auth/update",
|
|
2428
2257
|
~method_="POST",
|
|
2429
2258
|
~body=Some(jsonBody),
|
|
2430
|
-
)
|
|
2259
|
+
)
|
|
2431
2260
|
let _ = response
|
|
2432
|
-
()
|
|
2433
|
-
->Promise.resolve
|
|
2434
|
-
})
|
|
2435
2261
|
}
|
|
2436
2262
|
|
|
2437
2263
|
type postAdminInviteCreateRequest = {
|
|
@@ -2449,23 +2275,20 @@ type postAdminInviteCreateResponse = array<MisskeyIoComponentSchemas.InviteCode.
|
|
|
2449
2275
|
let postAdminInviteCreateResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema)
|
|
2450
2276
|
|
|
2451
2277
|
/**
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
let postAdminInviteCreate = (~body: postAdminInviteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2278
|
+
admin/invite/create
|
|
2279
|
+
|
|
2280
|
+
No description provided.
|
|
2281
|
+
|
|
2282
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
|
|
2283
|
+
*/
|
|
2284
|
+
let postAdminInviteCreate = async (~body: postAdminInviteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteCreateResponse => {
|
|
2459
2285
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminInviteCreateRequestSchema)
|
|
2460
|
-
fetch(
|
|
2286
|
+
let response = await fetch(
|
|
2461
2287
|
~url="/admin/invite/create",
|
|
2462
2288
|
~method_="POST",
|
|
2463
2289
|
~body=Some(jsonBody),
|
|
2464
|
-
)
|
|
2465
|
-
|
|
2466
|
-
value
|
|
2467
|
-
->Promise.resolve
|
|
2468
|
-
})
|
|
2290
|
+
)
|
|
2291
|
+
response->S.parseOrThrow(postAdminInviteCreateResponseSchema)
|
|
2469
2292
|
}
|
|
2470
2293
|
|
|
2471
2294
|
type postAdminInviteListRequest = {
|
|
@@ -2487,23 +2310,20 @@ type postAdminInviteListResponse = array<MisskeyIoComponentSchemas.InviteCode.t>
|
|
|
2487
2310
|
let postAdminInviteListResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema)
|
|
2488
2311
|
|
|
2489
2312
|
/**
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
let postAdminInviteList = (~body: postAdminInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2313
|
+
admin/invite/list
|
|
2314
|
+
|
|
2315
|
+
No description provided.
|
|
2316
|
+
|
|
2317
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:invite-codes*
|
|
2318
|
+
*/
|
|
2319
|
+
let postAdminInviteList = async (~body: postAdminInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteListResponse => {
|
|
2497
2320
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminInviteListRequestSchema)
|
|
2498
|
-
fetch(
|
|
2321
|
+
let response = await fetch(
|
|
2499
2322
|
~url="/admin/invite/list",
|
|
2500
2323
|
~method_="POST",
|
|
2501
2324
|
~body=Some(jsonBody),
|
|
2502
|
-
)
|
|
2503
|
-
|
|
2504
|
-
value
|
|
2505
|
-
->Promise.resolve
|
|
2506
|
-
})
|
|
2325
|
+
)
|
|
2326
|
+
response->S.parseOrThrow(postAdminInviteListResponseSchema)
|
|
2507
2327
|
}
|
|
2508
2328
|
|
|
2509
2329
|
type postAdminPromoCreateRequest = {
|
|
@@ -2519,23 +2339,20 @@ let postAdminPromoCreateRequestSchema = S.object(s => {
|
|
|
2519
2339
|
type postAdminPromoCreateResponse = unit
|
|
2520
2340
|
|
|
2521
2341
|
/**
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
let postAdminPromoCreate = (~body: postAdminPromoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2342
|
+
admin/promo/create
|
|
2343
|
+
|
|
2344
|
+
No description provided.
|
|
2345
|
+
|
|
2346
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:promo*
|
|
2347
|
+
*/
|
|
2348
|
+
let postAdminPromoCreate = async (~body: postAdminPromoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminPromoCreateResponse => {
|
|
2529
2349
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminPromoCreateRequestSchema)
|
|
2530
|
-
fetch(
|
|
2350
|
+
let response = await fetch(
|
|
2531
2351
|
~url="/admin/promo/create",
|
|
2532
2352
|
~method_="POST",
|
|
2533
2353
|
~body=Some(jsonBody),
|
|
2534
|
-
)
|
|
2354
|
+
)
|
|
2535
2355
|
let _ = response
|
|
2536
|
-
()
|
|
2537
|
-
->Promise.resolve
|
|
2538
|
-
})
|
|
2539
2356
|
}
|
|
2540
2357
|
|
|
2541
2358
|
type postAdminQueueClearRequest = {
|
|
@@ -2551,23 +2368,20 @@ let postAdminQueueClearRequestSchema = S.object(s => {
|
|
|
2551
2368
|
type postAdminQueueClearResponse = unit
|
|
2552
2369
|
|
|
2553
2370
|
/**
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
let postAdminQueueClear = (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2371
|
+
admin/queue/clear
|
|
2372
|
+
|
|
2373
|
+
No description provided.
|
|
2374
|
+
|
|
2375
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
2376
|
+
*/
|
|
2377
|
+
let postAdminQueueClear = async (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueClearResponse => {
|
|
2561
2378
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueClearRequestSchema)
|
|
2562
|
-
fetch(
|
|
2379
|
+
let response = await fetch(
|
|
2563
2380
|
~url="/admin/queue/clear",
|
|
2564
2381
|
~method_="POST",
|
|
2565
2382
|
~body=Some(jsonBody),
|
|
2566
|
-
)
|
|
2383
|
+
)
|
|
2567
2384
|
let _ = response
|
|
2568
|
-
()
|
|
2569
|
-
->Promise.resolve
|
|
2570
|
-
})
|
|
2571
2385
|
}
|
|
2572
2386
|
|
|
2573
2387
|
type postAdminQueueDeliverDelayedResponse = array<array<JSON.t>>
|
|
@@ -2575,23 +2389,20 @@ type postAdminQueueDeliverDelayedResponse = array<array<JSON.t>>
|
|
|
2575
2389
|
let postAdminQueueDeliverDelayedResponseSchema = S.array(S.array(S.json))
|
|
2576
2390
|
|
|
2577
2391
|
/**
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
let postAdminQueueDeliverDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2585
|
-
|
|
2586
|
-
fetch(
|
|
2392
|
+
admin/queue/deliver-delayed
|
|
2393
|
+
|
|
2394
|
+
No description provided.
|
|
2395
|
+
|
|
2396
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
2397
|
+
*/
|
|
2398
|
+
let postAdminQueueDeliverDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueDeliverDelayedResponse => {
|
|
2399
|
+
|
|
2400
|
+
let response = await fetch(
|
|
2587
2401
|
~url="/admin/queue/deliver-delayed",
|
|
2588
2402
|
~method_="POST",
|
|
2589
2403
|
~body=None,
|
|
2590
|
-
)
|
|
2591
|
-
|
|
2592
|
-
value
|
|
2593
|
-
->Promise.resolve
|
|
2594
|
-
})
|
|
2404
|
+
)
|
|
2405
|
+
response->S.parseOrThrow(postAdminQueueDeliverDelayedResponseSchema)
|
|
2595
2406
|
}
|
|
2596
2407
|
|
|
2597
2408
|
type postAdminQueueInboxDelayedResponse = array<array<JSON.t>>
|
|
@@ -2599,23 +2410,20 @@ type postAdminQueueInboxDelayedResponse = array<array<JSON.t>>
|
|
|
2599
2410
|
let postAdminQueueInboxDelayedResponseSchema = S.array(S.array(S.json))
|
|
2600
2411
|
|
|
2601
2412
|
/**
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
let postAdminQueueInboxDelayed = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2609
|
-
|
|
2610
|
-
fetch(
|
|
2413
|
+
admin/queue/inbox-delayed
|
|
2414
|
+
|
|
2415
|
+
No description provided.
|
|
2416
|
+
|
|
2417
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
2418
|
+
*/
|
|
2419
|
+
let postAdminQueueInboxDelayed = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueInboxDelayedResponse => {
|
|
2420
|
+
|
|
2421
|
+
let response = await fetch(
|
|
2611
2422
|
~url="/admin/queue/inbox-delayed",
|
|
2612
2423
|
~method_="POST",
|
|
2613
2424
|
~body=None,
|
|
2614
|
-
)
|
|
2615
|
-
|
|
2616
|
-
value
|
|
2617
|
-
->Promise.resolve
|
|
2618
|
-
})
|
|
2425
|
+
)
|
|
2426
|
+
response->S.parseOrThrow(postAdminQueueInboxDelayedResponseSchema)
|
|
2619
2427
|
}
|
|
2620
2428
|
|
|
2621
2429
|
type postAdminQueuePromoteRequest = {
|
|
@@ -2629,23 +2437,20 @@ let postAdminQueuePromoteRequestSchema = S.object(s => {
|
|
|
2629
2437
|
type postAdminQueuePromoteResponse = unit
|
|
2630
2438
|
|
|
2631
2439
|
/**
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
let postAdminQueuePromote = (~body: postAdminQueuePromoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2440
|
+
admin/queue/promote
|
|
2441
|
+
|
|
2442
|
+
No description provided.
|
|
2443
|
+
|
|
2444
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
2445
|
+
*/
|
|
2446
|
+
let postAdminQueuePromote = async (~body: postAdminQueuePromoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueuePromoteResponse => {
|
|
2639
2447
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueuePromoteRequestSchema)
|
|
2640
|
-
fetch(
|
|
2448
|
+
let response = await fetch(
|
|
2641
2449
|
~url="/admin/queue/promote",
|
|
2642
2450
|
~method_="POST",
|
|
2643
2451
|
~body=Some(jsonBody),
|
|
2644
|
-
)
|
|
2452
|
+
)
|
|
2645
2453
|
let _ = response
|
|
2646
|
-
()
|
|
2647
|
-
->Promise.resolve
|
|
2648
|
-
})
|
|
2649
2454
|
}
|
|
2650
2455
|
|
|
2651
2456
|
type postAdminQueueStatsResponse = {
|
|
@@ -2663,23 +2468,20 @@ let postAdminQueueStatsResponseSchema = S.object(s => {
|
|
|
2663
2468
|
})
|
|
2664
2469
|
|
|
2665
2470
|
/**
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
let postAdminQueueStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2673
|
-
|
|
2674
|
-
fetch(
|
|
2471
|
+
admin/queue/stats
|
|
2472
|
+
|
|
2473
|
+
No description provided.
|
|
2474
|
+
|
|
2475
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
2476
|
+
*/
|
|
2477
|
+
let postAdminQueueStats = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueStatsResponse => {
|
|
2478
|
+
|
|
2479
|
+
let response = await fetch(
|
|
2675
2480
|
~url="/admin/queue/stats",
|
|
2676
2481
|
~method_="POST",
|
|
2677
2482
|
~body=None,
|
|
2678
|
-
)
|
|
2679
|
-
|
|
2680
|
-
value
|
|
2681
|
-
->Promise.resolve
|
|
2682
|
-
})
|
|
2483
|
+
)
|
|
2484
|
+
response->S.parseOrThrow(postAdminQueueStatsResponseSchema)
|
|
2683
2485
|
}
|
|
2684
2486
|
|
|
2685
2487
|
type postAdminRegenerateUserTokenRequest = {
|
|
@@ -2693,23 +2495,20 @@ let postAdminRegenerateUserTokenRequestSchema = S.object(s => {
|
|
|
2693
2495
|
type postAdminRegenerateUserTokenResponse = unit
|
|
2694
2496
|
|
|
2695
2497
|
/**
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
let postAdminRegenerateUserToken = (~body: postAdminRegenerateUserTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2498
|
+
admin/regenerate-user-token
|
|
2499
|
+
|
|
2500
|
+
No description provided.
|
|
2501
|
+
|
|
2502
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:regenerate-user-token*
|
|
2503
|
+
*/
|
|
2504
|
+
let postAdminRegenerateUserToken = async (~body: postAdminRegenerateUserTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRegenerateUserTokenResponse => {
|
|
2703
2505
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRegenerateUserTokenRequestSchema)
|
|
2704
|
-
fetch(
|
|
2506
|
+
let response = await fetch(
|
|
2705
2507
|
~url="/admin/regenerate-user-token",
|
|
2706
2508
|
~method_="POST",
|
|
2707
2509
|
~body=Some(jsonBody),
|
|
2708
|
-
)
|
|
2510
|
+
)
|
|
2709
2511
|
let _ = response
|
|
2710
|
-
()
|
|
2711
|
-
->Promise.resolve
|
|
2712
|
-
})
|
|
2713
2512
|
}
|
|
2714
2513
|
|
|
2715
2514
|
type postAdminRelaysAddRequest = {
|
|
@@ -2733,23 +2532,20 @@ let postAdminRelaysAddResponseSchema = S.object(s => {
|
|
|
2733
2532
|
})
|
|
2734
2533
|
|
|
2735
2534
|
/**
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
let postAdminRelaysAdd = (~body: postAdminRelaysAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2535
|
+
admin/relays/add
|
|
2536
|
+
|
|
2537
|
+
No description provided.
|
|
2538
|
+
|
|
2539
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:relays*
|
|
2540
|
+
*/
|
|
2541
|
+
let postAdminRelaysAdd = async (~body: postAdminRelaysAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysAddResponse => {
|
|
2743
2542
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRelaysAddRequestSchema)
|
|
2744
|
-
fetch(
|
|
2543
|
+
let response = await fetch(
|
|
2745
2544
|
~url="/admin/relays/add",
|
|
2746
2545
|
~method_="POST",
|
|
2747
2546
|
~body=Some(jsonBody),
|
|
2748
|
-
)
|
|
2749
|
-
|
|
2750
|
-
value
|
|
2751
|
-
->Promise.resolve
|
|
2752
|
-
})
|
|
2547
|
+
)
|
|
2548
|
+
response->S.parseOrThrow(postAdminRelaysAddResponseSchema)
|
|
2753
2549
|
}
|
|
2754
2550
|
|
|
2755
2551
|
type postAdminRelaysListResponse_1 = {
|
|
@@ -2769,23 +2565,20 @@ let postAdminRelaysListResponse_1Schema = S.object(s => {
|
|
|
2769
2565
|
let postAdminRelaysListResponseSchema = S.array(postAdminRelaysListResponse_1Schema)
|
|
2770
2566
|
|
|
2771
2567
|
/**
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
let postAdminRelaysList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2779
|
-
|
|
2780
|
-
fetch(
|
|
2568
|
+
admin/relays/list
|
|
2569
|
+
|
|
2570
|
+
No description provided.
|
|
2571
|
+
|
|
2572
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:relays*
|
|
2573
|
+
*/
|
|
2574
|
+
let postAdminRelaysList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysListResponse => {
|
|
2575
|
+
|
|
2576
|
+
let response = await fetch(
|
|
2781
2577
|
~url="/admin/relays/list",
|
|
2782
2578
|
~method_="POST",
|
|
2783
2579
|
~body=None,
|
|
2784
|
-
)
|
|
2785
|
-
|
|
2786
|
-
value
|
|
2787
|
-
->Promise.resolve
|
|
2788
|
-
})
|
|
2580
|
+
)
|
|
2581
|
+
response->S.parseOrThrow(postAdminRelaysListResponseSchema)
|
|
2789
2582
|
}
|
|
2790
2583
|
|
|
2791
2584
|
type postAdminRelaysRemoveRequest = {
|
|
@@ -2799,23 +2592,20 @@ let postAdminRelaysRemoveRequestSchema = S.object(s => {
|
|
|
2799
2592
|
type postAdminRelaysRemoveResponse = unit
|
|
2800
2593
|
|
|
2801
2594
|
/**
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
let postAdminRelaysRemove = (~body: postAdminRelaysRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2595
|
+
admin/relays/remove
|
|
2596
|
+
|
|
2597
|
+
No description provided.
|
|
2598
|
+
|
|
2599
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:relays*
|
|
2600
|
+
*/
|
|
2601
|
+
let postAdminRelaysRemove = async (~body: postAdminRelaysRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRelaysRemoveResponse => {
|
|
2809
2602
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRelaysRemoveRequestSchema)
|
|
2810
|
-
fetch(
|
|
2603
|
+
let response = await fetch(
|
|
2811
2604
|
~url="/admin/relays/remove",
|
|
2812
2605
|
~method_="POST",
|
|
2813
2606
|
~body=Some(jsonBody),
|
|
2814
|
-
)
|
|
2607
|
+
)
|
|
2815
2608
|
let _ = response
|
|
2816
|
-
()
|
|
2817
|
-
->Promise.resolve
|
|
2818
|
-
})
|
|
2819
2609
|
}
|
|
2820
2610
|
|
|
2821
2611
|
type postAdminResetPasswordRequest = {
|
|
@@ -2835,23 +2625,20 @@ let postAdminResetPasswordResponseSchema = S.object(s => {
|
|
|
2835
2625
|
})
|
|
2836
2626
|
|
|
2837
2627
|
/**
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
let postAdminResetPassword = (~body: postAdminResetPasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2628
|
+
admin/reset-password
|
|
2629
|
+
|
|
2630
|
+
No description provided.
|
|
2631
|
+
|
|
2632
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:reset-password*
|
|
2633
|
+
*/
|
|
2634
|
+
let postAdminResetPassword = async (~body: postAdminResetPasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResetPasswordResponse => {
|
|
2845
2635
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResetPasswordRequestSchema)
|
|
2846
|
-
fetch(
|
|
2636
|
+
let response = await fetch(
|
|
2847
2637
|
~url="/admin/reset-password",
|
|
2848
2638
|
~method_="POST",
|
|
2849
2639
|
~body=Some(jsonBody),
|
|
2850
|
-
)
|
|
2851
|
-
|
|
2852
|
-
value
|
|
2853
|
-
->Promise.resolve
|
|
2854
|
-
})
|
|
2640
|
+
)
|
|
2641
|
+
response->S.parseOrThrow(postAdminResetPasswordResponseSchema)
|
|
2855
2642
|
}
|
|
2856
2643
|
|
|
2857
2644
|
type postAdminResolveAbuseUserReportRequest = {
|
|
@@ -2869,23 +2656,20 @@ let postAdminResolveAbuseUserReportRequestSchema = S.object(s => {
|
|
|
2869
2656
|
type postAdminResolveAbuseUserReportResponse = unit
|
|
2870
2657
|
|
|
2871
2658
|
/**
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
let postAdminResolveAbuseUserReport = (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2659
|
+
admin/resolve-abuse-user-report
|
|
2660
|
+
|
|
2661
|
+
No description provided.
|
|
2662
|
+
|
|
2663
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
2664
|
+
*/
|
|
2665
|
+
let postAdminResolveAbuseUserReport = async (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResolveAbuseUserReportResponse => {
|
|
2879
2666
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResolveAbuseUserReportRequestSchema)
|
|
2880
|
-
fetch(
|
|
2667
|
+
let response = await fetch(
|
|
2881
2668
|
~url="/admin/resolve-abuse-user-report",
|
|
2882
2669
|
~method_="POST",
|
|
2883
2670
|
~body=Some(jsonBody),
|
|
2884
|
-
)
|
|
2671
|
+
)
|
|
2885
2672
|
let _ = response
|
|
2886
|
-
()
|
|
2887
|
-
->Promise.resolve
|
|
2888
|
-
})
|
|
2889
2673
|
}
|
|
2890
2674
|
|
|
2891
2675
|
type postAdminRolesAssignRequest = {
|
|
@@ -2905,23 +2689,20 @@ let postAdminRolesAssignRequestSchema = S.object(s => {
|
|
|
2905
2689
|
type postAdminRolesAssignResponse = unit
|
|
2906
2690
|
|
|
2907
2691
|
/**
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
let postAdminRolesAssign = (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2692
|
+
admin/roles/assign
|
|
2693
|
+
|
|
2694
|
+
No description provided.
|
|
2695
|
+
|
|
2696
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2697
|
+
*/
|
|
2698
|
+
let postAdminRolesAssign = async (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesAssignResponse => {
|
|
2915
2699
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesAssignRequestSchema)
|
|
2916
|
-
fetch(
|
|
2700
|
+
let response = await fetch(
|
|
2917
2701
|
~url="/admin/roles/assign",
|
|
2918
2702
|
~method_="POST",
|
|
2919
2703
|
~body=Some(jsonBody),
|
|
2920
|
-
)
|
|
2704
|
+
)
|
|
2921
2705
|
let _ = response
|
|
2922
|
-
()
|
|
2923
|
-
->Promise.resolve
|
|
2924
|
-
})
|
|
2925
2706
|
}
|
|
2926
2707
|
|
|
2927
2708
|
type postAdminRolesCreateRequest = {
|
|
@@ -2967,23 +2748,20 @@ type postAdminRolesCreateResponse = MisskeyIoComponentSchemas.Role.t
|
|
|
2967
2748
|
let postAdminRolesCreateResponseSchema = MisskeyIoComponentSchemas.Role.schema
|
|
2968
2749
|
|
|
2969
2750
|
/**
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
let postAdminRolesCreate = (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2751
|
+
admin/roles/create
|
|
2752
|
+
|
|
2753
|
+
No description provided.
|
|
2754
|
+
|
|
2755
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2756
|
+
*/
|
|
2757
|
+
let postAdminRolesCreate = async (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesCreateResponse => {
|
|
2977
2758
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesCreateRequestSchema)
|
|
2978
|
-
fetch(
|
|
2759
|
+
let response = await fetch(
|
|
2979
2760
|
~url="/admin/roles/create",
|
|
2980
2761
|
~method_="POST",
|
|
2981
2762
|
~body=Some(jsonBody),
|
|
2982
|
-
)
|
|
2983
|
-
|
|
2984
|
-
value
|
|
2985
|
-
->Promise.resolve
|
|
2986
|
-
})
|
|
2763
|
+
)
|
|
2764
|
+
response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
|
|
2987
2765
|
}
|
|
2988
2766
|
|
|
2989
2767
|
type postAdminRolesDeleteRequest = {
|
|
@@ -2997,23 +2775,20 @@ let postAdminRolesDeleteRequestSchema = S.object(s => {
|
|
|
2997
2775
|
type postAdminRolesDeleteResponse = unit
|
|
2998
2776
|
|
|
2999
2777
|
/**
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
let postAdminRolesDelete = (~body: postAdminRolesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2778
|
+
admin/roles/delete
|
|
2779
|
+
|
|
2780
|
+
No description provided.
|
|
2781
|
+
|
|
2782
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2783
|
+
*/
|
|
2784
|
+
let postAdminRolesDelete = async (~body: postAdminRolesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesDeleteResponse => {
|
|
3007
2785
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesDeleteRequestSchema)
|
|
3008
|
-
fetch(
|
|
2786
|
+
let response = await fetch(
|
|
3009
2787
|
~url="/admin/roles/delete",
|
|
3010
2788
|
~method_="POST",
|
|
3011
2789
|
~body=Some(jsonBody),
|
|
3012
|
-
)
|
|
2790
|
+
)
|
|
3013
2791
|
let _ = response
|
|
3014
|
-
()
|
|
3015
|
-
->Promise.resolve
|
|
3016
|
-
})
|
|
3017
2792
|
}
|
|
3018
2793
|
|
|
3019
2794
|
type postAdminRolesListResponse = array<MisskeyIoComponentSchemas.Role.t>
|
|
@@ -3021,23 +2796,20 @@ type postAdminRolesListResponse = array<MisskeyIoComponentSchemas.Role.t>
|
|
|
3021
2796
|
let postAdminRolesListResponseSchema = S.array(MisskeyIoComponentSchemas.Role.schema)
|
|
3022
2797
|
|
|
3023
2798
|
/**
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
let postAdminRolesList = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3031
|
-
|
|
3032
|
-
fetch(
|
|
2799
|
+
admin/roles/list
|
|
2800
|
+
|
|
2801
|
+
No description provided.
|
|
2802
|
+
|
|
2803
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:roles*
|
|
2804
|
+
*/
|
|
2805
|
+
let postAdminRolesList = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesListResponse => {
|
|
2806
|
+
|
|
2807
|
+
let response = await fetch(
|
|
3033
2808
|
~url="/admin/roles/list",
|
|
3034
2809
|
~method_="POST",
|
|
3035
2810
|
~body=None,
|
|
3036
|
-
)
|
|
3037
|
-
|
|
3038
|
-
value
|
|
3039
|
-
->Promise.resolve
|
|
3040
|
-
})
|
|
2811
|
+
)
|
|
2812
|
+
response->S.parseOrThrow(postAdminRolesListResponseSchema)
|
|
3041
2813
|
}
|
|
3042
2814
|
|
|
3043
2815
|
type postAdminRolesShowRequest = {
|
|
@@ -3053,23 +2825,20 @@ type postAdminRolesShowResponse = MisskeyIoComponentSchemas.Role.t
|
|
|
3053
2825
|
let postAdminRolesShowResponseSchema = MisskeyIoComponentSchemas.Role.schema
|
|
3054
2826
|
|
|
3055
2827
|
/**
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
let postAdminRolesShow = (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2828
|
+
admin/roles/show
|
|
2829
|
+
|
|
2830
|
+
No description provided.
|
|
2831
|
+
|
|
2832
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:roles*
|
|
2833
|
+
*/
|
|
2834
|
+
let postAdminRolesShow = async (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesShowResponse => {
|
|
3063
2835
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesShowRequestSchema)
|
|
3064
|
-
fetch(
|
|
2836
|
+
let response = await fetch(
|
|
3065
2837
|
~url="/admin/roles/show",
|
|
3066
2838
|
~method_="POST",
|
|
3067
2839
|
~body=Some(jsonBody),
|
|
3068
|
-
)
|
|
3069
|
-
|
|
3070
|
-
value
|
|
3071
|
-
->Promise.resolve
|
|
3072
|
-
})
|
|
2840
|
+
)
|
|
2841
|
+
response->S.parseOrThrow(postAdminRolesShowResponseSchema)
|
|
3073
2842
|
}
|
|
3074
2843
|
|
|
3075
2844
|
type postAdminRolesUnassignRequest = {
|
|
@@ -3085,23 +2854,20 @@ let postAdminRolesUnassignRequestSchema = S.object(s => {
|
|
|
3085
2854
|
type postAdminRolesUnassignResponse = unit
|
|
3086
2855
|
|
|
3087
2856
|
/**
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
let postAdminRolesUnassign = (~body: postAdminRolesUnassignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2857
|
+
admin/roles/unassign
|
|
2858
|
+
|
|
2859
|
+
No description provided.
|
|
2860
|
+
|
|
2861
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2862
|
+
*/
|
|
2863
|
+
let postAdminRolesUnassign = async (~body: postAdminRolesUnassignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUnassignResponse => {
|
|
3095
2864
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUnassignRequestSchema)
|
|
3096
|
-
fetch(
|
|
2865
|
+
let response = await fetch(
|
|
3097
2866
|
~url="/admin/roles/unassign",
|
|
3098
2867
|
~method_="POST",
|
|
3099
2868
|
~body=Some(jsonBody),
|
|
3100
|
-
)
|
|
2869
|
+
)
|
|
3101
2870
|
let _ = response
|
|
3102
|
-
()
|
|
3103
|
-
->Promise.resolve
|
|
3104
|
-
})
|
|
3105
2871
|
}
|
|
3106
2872
|
|
|
3107
2873
|
type postAdminRolesUpdateRequest = {
|
|
@@ -3147,23 +2913,20 @@ let postAdminRolesUpdateRequestSchema = S.object(s => {
|
|
|
3147
2913
|
type postAdminRolesUpdateResponse = unit
|
|
3148
2914
|
|
|
3149
2915
|
/**
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
let postAdminRolesUpdate = (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2916
|
+
admin/roles/update
|
|
2917
|
+
|
|
2918
|
+
No description provided.
|
|
2919
|
+
|
|
2920
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2921
|
+
*/
|
|
2922
|
+
let postAdminRolesUpdate = async (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateResponse => {
|
|
3157
2923
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateRequestSchema)
|
|
3158
|
-
fetch(
|
|
2924
|
+
let response = await fetch(
|
|
3159
2925
|
~url="/admin/roles/update",
|
|
3160
2926
|
~method_="POST",
|
|
3161
2927
|
~body=Some(jsonBody),
|
|
3162
|
-
)
|
|
2928
|
+
)
|
|
3163
2929
|
let _ = response
|
|
3164
|
-
()
|
|
3165
|
-
->Promise.resolve
|
|
3166
|
-
})
|
|
3167
2930
|
}
|
|
3168
2931
|
|
|
3169
2932
|
type postAdminRolesUpdateDefaultPoliciesRequest = {
|
|
@@ -3177,23 +2940,20 @@ let postAdminRolesUpdateDefaultPoliciesRequestSchema = S.object(s => {
|
|
|
3177
2940
|
type postAdminRolesUpdateDefaultPoliciesResponse = unit
|
|
3178
2941
|
|
|
3179
2942
|
/**
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
let postAdminRolesUpdateDefaultPolicies = (~body: postAdminRolesUpdateDefaultPoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2943
|
+
admin/roles/update-default-policies
|
|
2944
|
+
|
|
2945
|
+
No description provided.
|
|
2946
|
+
|
|
2947
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2948
|
+
*/
|
|
2949
|
+
let postAdminRolesUpdateDefaultPolicies = async (~body: postAdminRolesUpdateDefaultPoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateDefaultPoliciesResponse => {
|
|
3187
2950
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateDefaultPoliciesRequestSchema)
|
|
3188
|
-
fetch(
|
|
2951
|
+
let response = await fetch(
|
|
3189
2952
|
~url="/admin/roles/update-default-policies",
|
|
3190
2953
|
~method_="POST",
|
|
3191
2954
|
~body=Some(jsonBody),
|
|
3192
|
-
)
|
|
2955
|
+
)
|
|
3193
2956
|
let _ = response
|
|
3194
|
-
()
|
|
3195
|
-
->Promise.resolve
|
|
3196
|
-
})
|
|
3197
2957
|
}
|
|
3198
2958
|
|
|
3199
2959
|
@unboxed type postAdminRolesUpdateInlinePoliciesRequest_2 = Bool(bool) | Float(float) | String(string)
|
|
@@ -3229,23 +2989,20 @@ let postAdminRolesUpdateInlinePoliciesRequestSchema = S.object(s => {
|
|
|
3229
2989
|
type postAdminRolesUpdateInlinePoliciesResponse = unit
|
|
3230
2990
|
|
|
3231
2991
|
/**
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
let postAdminRolesUpdateInlinePolicies = (~body: postAdminRolesUpdateInlinePoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2992
|
+
admin/roles/update-inline-policies
|
|
2993
|
+
|
|
2994
|
+
No description provided.
|
|
2995
|
+
|
|
2996
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
2997
|
+
*/
|
|
2998
|
+
let postAdminRolesUpdateInlinePolicies = async (~body: postAdminRolesUpdateInlinePoliciesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateInlinePoliciesResponse => {
|
|
3239
2999
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateInlinePoliciesRequestSchema)
|
|
3240
|
-
fetch(
|
|
3000
|
+
let response = await fetch(
|
|
3241
3001
|
~url="/admin/roles/update-inline-policies",
|
|
3242
3002
|
~method_="POST",
|
|
3243
3003
|
~body=Some(jsonBody),
|
|
3244
|
-
)
|
|
3004
|
+
)
|
|
3245
3005
|
let _ = response
|
|
3246
|
-
()
|
|
3247
|
-
->Promise.resolve
|
|
3248
|
-
})
|
|
3249
3006
|
}
|
|
3250
3007
|
|
|
3251
3008
|
type postAdminRolesUsersRequest = {
|
|
@@ -3283,23 +3040,20 @@ let postAdminRolesUsersResponse_1Schema = S.object(s => {
|
|
|
3283
3040
|
let postAdminRolesUsersResponseSchema = S.array(postAdminRolesUsersResponse_1Schema)
|
|
3284
3041
|
|
|
3285
3042
|
/**
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
let postAdminRolesUsers = (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3043
|
+
admin/roles/users
|
|
3044
|
+
|
|
3045
|
+
No description provided.
|
|
3046
|
+
|
|
3047
|
+
**Credential required**: *No* / **Permission**: *read:admin:roles*
|
|
3048
|
+
*/
|
|
3049
|
+
let postAdminRolesUsers = async (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUsersResponse => {
|
|
3293
3050
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUsersRequestSchema)
|
|
3294
|
-
fetch(
|
|
3051
|
+
let response = await fetch(
|
|
3295
3052
|
~url="/admin/roles/users",
|
|
3296
3053
|
~method_="POST",
|
|
3297
3054
|
~body=Some(jsonBody),
|
|
3298
|
-
)
|
|
3299
|
-
|
|
3300
|
-
value
|
|
3301
|
-
->Promise.resolve
|
|
3302
|
-
})
|
|
3055
|
+
)
|
|
3056
|
+
response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
|
|
3303
3057
|
}
|
|
3304
3058
|
|
|
3305
3059
|
type postAdminSendEmailRequest = {
|
|
@@ -3317,23 +3071,20 @@ let postAdminSendEmailRequestSchema = S.object(s => {
|
|
|
3317
3071
|
type postAdminSendEmailResponse = unit
|
|
3318
3072
|
|
|
3319
3073
|
/**
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
let postAdminSendEmail = (~body: postAdminSendEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3074
|
+
admin/send-email
|
|
3075
|
+
|
|
3076
|
+
No description provided.
|
|
3077
|
+
|
|
3078
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:send-email*
|
|
3079
|
+
*/
|
|
3080
|
+
let postAdminSendEmail = async (~body: postAdminSendEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSendEmailResponse => {
|
|
3327
3081
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSendEmailRequestSchema)
|
|
3328
|
-
fetch(
|
|
3082
|
+
let response = await fetch(
|
|
3329
3083
|
~url="/admin/send-email",
|
|
3330
3084
|
~method_="POST",
|
|
3331
3085
|
~body=Some(jsonBody),
|
|
3332
|
-
)
|
|
3086
|
+
)
|
|
3333
3087
|
let _ = response
|
|
3334
|
-
()
|
|
3335
|
-
->Promise.resolve
|
|
3336
|
-
})
|
|
3337
3088
|
}
|
|
3338
3089
|
|
|
3339
3090
|
type postAdminShowModerationLogsRequest = {
|
|
@@ -3375,23 +3126,20 @@ let postAdminShowModerationLogsResponse_1Schema = S.object(s => {
|
|
|
3375
3126
|
let postAdminShowModerationLogsResponseSchema = S.array(postAdminShowModerationLogsResponse_1Schema)
|
|
3376
3127
|
|
|
3377
3128
|
/**
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
let postAdminShowModerationLogs = (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3129
|
+
admin/show-moderation-logs
|
|
3130
|
+
|
|
3131
|
+
No description provided.
|
|
3132
|
+
|
|
3133
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
|
|
3134
|
+
*/
|
|
3135
|
+
let postAdminShowModerationLogs = async (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowModerationLogsResponse => {
|
|
3385
3136
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowModerationLogsRequestSchema)
|
|
3386
|
-
fetch(
|
|
3137
|
+
let response = await fetch(
|
|
3387
3138
|
~url="/admin/show-moderation-logs",
|
|
3388
3139
|
~method_="POST",
|
|
3389
3140
|
~body=Some(jsonBody),
|
|
3390
|
-
)
|
|
3391
|
-
|
|
3392
|
-
value
|
|
3393
|
-
->Promise.resolve
|
|
3394
|
-
})
|
|
3141
|
+
)
|
|
3142
|
+
response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
|
|
3395
3143
|
}
|
|
3396
3144
|
|
|
3397
3145
|
type postAdminShowUserRequest = {
|
|
@@ -3537,23 +3285,20 @@ let postAdminShowUserResponseSchema = S.object(s => {
|
|
|
3537
3285
|
})
|
|
3538
3286
|
|
|
3539
3287
|
/**
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
let postAdminShowUser = (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3288
|
+
admin/show-user
|
|
3289
|
+
|
|
3290
|
+
No description provided.
|
|
3291
|
+
|
|
3292
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
|
3293
|
+
*/
|
|
3294
|
+
let postAdminShowUser = async (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserResponse => {
|
|
3547
3295
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserRequestSchema)
|
|
3548
|
-
fetch(
|
|
3296
|
+
let response = await fetch(
|
|
3549
3297
|
~url="/admin/show-user",
|
|
3550
3298
|
~method_="POST",
|
|
3551
3299
|
~body=Some(jsonBody),
|
|
3552
|
-
)
|
|
3553
|
-
|
|
3554
|
-
value
|
|
3555
|
-
->Promise.resolve
|
|
3556
|
-
})
|
|
3300
|
+
)
|
|
3301
|
+
response->S.parseOrThrow(postAdminShowUserResponseSchema)
|
|
3557
3302
|
}
|
|
3558
3303
|
|
|
3559
3304
|
type postAdminShowUserAccountMoveLogsRequest = {
|
|
@@ -3599,23 +3344,20 @@ let postAdminShowUserAccountMoveLogsResponse_1Schema = S.object(s => {
|
|
|
3599
3344
|
let postAdminShowUserAccountMoveLogsResponseSchema = S.array(postAdminShowUserAccountMoveLogsResponse_1Schema)
|
|
3600
3345
|
|
|
3601
3346
|
/**
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
let postAdminShowUserAccountMoveLogs = (~body: postAdminShowUserAccountMoveLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3347
|
+
admin/show-user-account-move-logs
|
|
3348
|
+
|
|
3349
|
+
No description provided.
|
|
3350
|
+
|
|
3351
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-account-move-log*
|
|
3352
|
+
*/
|
|
3353
|
+
let postAdminShowUserAccountMoveLogs = async (~body: postAdminShowUserAccountMoveLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserAccountMoveLogsResponse => {
|
|
3609
3354
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserAccountMoveLogsRequestSchema)
|
|
3610
|
-
fetch(
|
|
3355
|
+
let response = await fetch(
|
|
3611
3356
|
~url="/admin/show-user-account-move-logs",
|
|
3612
3357
|
~method_="POST",
|
|
3613
3358
|
~body=Some(jsonBody),
|
|
3614
|
-
)
|
|
3615
|
-
|
|
3616
|
-
value
|
|
3617
|
-
->Promise.resolve
|
|
3618
|
-
})
|
|
3359
|
+
)
|
|
3360
|
+
response->S.parseOrThrow(postAdminShowUserAccountMoveLogsResponseSchema)
|
|
3619
3361
|
}
|
|
3620
3362
|
|
|
3621
3363
|
type postAdminShowUsersRequest = {
|
|
@@ -3643,23 +3385,20 @@ type postAdminShowUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t
|
|
|
3643
3385
|
let postAdminShowUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
|
|
3644
3386
|
|
|
3645
3387
|
/**
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
let postAdminShowUsers = (~body: postAdminShowUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3388
|
+
admin/show-users
|
|
3389
|
+
|
|
3390
|
+
No description provided.
|
|
3391
|
+
|
|
3392
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
|
3393
|
+
*/
|
|
3394
|
+
let postAdminShowUsers = async (~body: postAdminShowUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUsersResponse => {
|
|
3653
3395
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUsersRequestSchema)
|
|
3654
|
-
fetch(
|
|
3396
|
+
let response = await fetch(
|
|
3655
3397
|
~url="/admin/show-users",
|
|
3656
3398
|
~method_="POST",
|
|
3657
3399
|
~body=Some(jsonBody),
|
|
3658
|
-
)
|
|
3659
|
-
|
|
3660
|
-
value
|
|
3661
|
-
->Promise.resolve
|
|
3662
|
-
})
|
|
3400
|
+
)
|
|
3401
|
+
response->S.parseOrThrow(postAdminShowUsersResponseSchema)
|
|
3663
3402
|
}
|
|
3664
3403
|
|
|
3665
3404
|
type postAdminSsoCreateRequest = {
|
|
@@ -3729,23 +3468,20 @@ let postAdminSsoCreateResponseSchema = S.object(s => {
|
|
|
3729
3468
|
})
|
|
3730
3469
|
|
|
3731
3470
|
/**
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
let postAdminSsoCreate = (~body: postAdminSsoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3471
|
+
admin/sso/create
|
|
3472
|
+
|
|
3473
|
+
No description provided.
|
|
3474
|
+
|
|
3475
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3476
|
+
*/
|
|
3477
|
+
let postAdminSsoCreate = async (~body: postAdminSsoCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoCreateResponse => {
|
|
3739
3478
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoCreateRequestSchema)
|
|
3740
|
-
fetch(
|
|
3479
|
+
let response = await fetch(
|
|
3741
3480
|
~url="/admin/sso/create",
|
|
3742
3481
|
~method_="POST",
|
|
3743
3482
|
~body=Some(jsonBody),
|
|
3744
|
-
)
|
|
3745
|
-
|
|
3746
|
-
value
|
|
3747
|
-
->Promise.resolve
|
|
3748
|
-
})
|
|
3483
|
+
)
|
|
3484
|
+
response->S.parseOrThrow(postAdminSsoCreateResponseSchema)
|
|
3749
3485
|
}
|
|
3750
3486
|
|
|
3751
3487
|
type postAdminSsoDeleteRequest = {
|
|
@@ -3759,23 +3495,20 @@ let postAdminSsoDeleteRequestSchema = S.object(s => {
|
|
|
3759
3495
|
type postAdminSsoDeleteResponse = unit
|
|
3760
3496
|
|
|
3761
3497
|
/**
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
let postAdminSsoDelete = (~body: postAdminSsoDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3498
|
+
admin/sso/delete
|
|
3499
|
+
|
|
3500
|
+
No description provided.
|
|
3501
|
+
|
|
3502
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3503
|
+
*/
|
|
3504
|
+
let postAdminSsoDelete = async (~body: postAdminSsoDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoDeleteResponse => {
|
|
3769
3505
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoDeleteRequestSchema)
|
|
3770
|
-
fetch(
|
|
3506
|
+
let response = await fetch(
|
|
3771
3507
|
~url="/admin/sso/delete",
|
|
3772
3508
|
~method_="POST",
|
|
3773
3509
|
~body=Some(jsonBody),
|
|
3774
|
-
)
|
|
3510
|
+
)
|
|
3775
3511
|
let _ = response
|
|
3776
|
-
()
|
|
3777
|
-
->Promise.resolve
|
|
3778
|
-
})
|
|
3779
3512
|
}
|
|
3780
3513
|
|
|
3781
3514
|
type postAdminSsoListRequest = {
|
|
@@ -3829,23 +3562,20 @@ let postAdminSsoListResponse_1Schema = S.object(s => {
|
|
|
3829
3562
|
let postAdminSsoListResponseSchema = S.array(postAdminSsoListResponse_1Schema)
|
|
3830
3563
|
|
|
3831
3564
|
/**
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
let postAdminSsoList = (~body: postAdminSsoListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3565
|
+
admin/sso/list
|
|
3566
|
+
|
|
3567
|
+
No description provided.
|
|
3568
|
+
|
|
3569
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:sso*
|
|
3570
|
+
*/
|
|
3571
|
+
let postAdminSsoList = async (~body: postAdminSsoListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoListResponse => {
|
|
3839
3572
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoListRequestSchema)
|
|
3840
|
-
fetch(
|
|
3573
|
+
let response = await fetch(
|
|
3841
3574
|
~url="/admin/sso/list",
|
|
3842
3575
|
~method_="POST",
|
|
3843
3576
|
~body=Some(jsonBody),
|
|
3844
|
-
)
|
|
3845
|
-
|
|
3846
|
-
value
|
|
3847
|
-
->Promise.resolve
|
|
3848
|
-
})
|
|
3577
|
+
)
|
|
3578
|
+
response->S.parseOrThrow(postAdminSsoListResponseSchema)
|
|
3849
3579
|
}
|
|
3850
3580
|
|
|
3851
3581
|
type postAdminSsoUpdateRequest = {
|
|
@@ -3883,23 +3613,20 @@ let postAdminSsoUpdateRequestSchema = S.object(s => {
|
|
|
3883
3613
|
type postAdminSsoUpdateResponse = unit
|
|
3884
3614
|
|
|
3885
3615
|
/**
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
let postAdminSsoUpdate = (~body: postAdminSsoUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3616
|
+
admin/sso/update
|
|
3617
|
+
|
|
3618
|
+
No description provided.
|
|
3619
|
+
|
|
3620
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:sso*
|
|
3621
|
+
*/
|
|
3622
|
+
let postAdminSsoUpdate = async (~body: postAdminSsoUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSsoUpdateResponse => {
|
|
3893
3623
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSsoUpdateRequestSchema)
|
|
3894
|
-
fetch(
|
|
3624
|
+
let response = await fetch(
|
|
3895
3625
|
~url="/admin/sso/update",
|
|
3896
3626
|
~method_="POST",
|
|
3897
3627
|
~body=Some(jsonBody),
|
|
3898
|
-
)
|
|
3628
|
+
)
|
|
3899
3629
|
let _ = response
|
|
3900
|
-
()
|
|
3901
|
-
->Promise.resolve
|
|
3902
|
-
})
|
|
3903
3630
|
}
|
|
3904
3631
|
|
|
3905
3632
|
type postAdminSuspendUserRequest = {
|
|
@@ -3913,23 +3640,20 @@ let postAdminSuspendUserRequestSchema = S.object(s => {
|
|
|
3913
3640
|
type postAdminSuspendUserResponse = unit
|
|
3914
3641
|
|
|
3915
3642
|
/**
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
let postAdminSuspendUser = (~body: postAdminSuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3643
|
+
admin/suspend-user
|
|
3644
|
+
|
|
3645
|
+
No description provided.
|
|
3646
|
+
|
|
3647
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:suspend-user*
|
|
3648
|
+
*/
|
|
3649
|
+
let postAdminSuspendUser = async (~body: postAdminSuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSuspendUserResponse => {
|
|
3923
3650
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSuspendUserRequestSchema)
|
|
3924
|
-
fetch(
|
|
3651
|
+
let response = await fetch(
|
|
3925
3652
|
~url="/admin/suspend-user",
|
|
3926
3653
|
~method_="POST",
|
|
3927
3654
|
~body=Some(jsonBody),
|
|
3928
|
-
)
|
|
3655
|
+
)
|
|
3929
3656
|
let _ = response
|
|
3930
|
-
()
|
|
3931
|
-
->Promise.resolve
|
|
3932
|
-
})
|
|
3933
3657
|
}
|
|
3934
3658
|
|
|
3935
3659
|
type postAdminSystemWebhookCreateRequest = {
|
|
@@ -3953,24 +3677,21 @@ type postAdminSystemWebhookCreateResponse = MisskeyIoComponentSchemas.SystemWebh
|
|
|
3953
3677
|
let postAdminSystemWebhookCreateResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
|
|
3954
3678
|
|
|
3955
3679
|
/**
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
let postAdminSystemWebhookCreate = (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3680
|
+
admin/system-webhook/create
|
|
3681
|
+
|
|
3682
|
+
No description provided.
|
|
3683
|
+
|
|
3684
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3685
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3686
|
+
*/
|
|
3687
|
+
let postAdminSystemWebhookCreate = async (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookCreateResponse => {
|
|
3964
3688
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookCreateRequestSchema)
|
|
3965
|
-
fetch(
|
|
3689
|
+
let response = await fetch(
|
|
3966
3690
|
~url="/admin/system-webhook/create",
|
|
3967
3691
|
~method_="POST",
|
|
3968
3692
|
~body=Some(jsonBody),
|
|
3969
|
-
)
|
|
3970
|
-
|
|
3971
|
-
value
|
|
3972
|
-
->Promise.resolve
|
|
3973
|
-
})
|
|
3693
|
+
)
|
|
3694
|
+
response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
|
|
3974
3695
|
}
|
|
3975
3696
|
|
|
3976
3697
|
type postAdminSystemWebhookDeleteRequest = {
|
|
@@ -3984,24 +3705,21 @@ let postAdminSystemWebhookDeleteRequestSchema = S.object(s => {
|
|
|
3984
3705
|
type postAdminSystemWebhookDeleteResponse = unit
|
|
3985
3706
|
|
|
3986
3707
|
/**
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
let postAdminSystemWebhookDelete = (~body: postAdminSystemWebhookDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3708
|
+
admin/system-webhook/delete
|
|
3709
|
+
|
|
3710
|
+
No description provided.
|
|
3711
|
+
|
|
3712
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3713
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3714
|
+
*/
|
|
3715
|
+
let postAdminSystemWebhookDelete = async (~body: postAdminSystemWebhookDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookDeleteResponse => {
|
|
3995
3716
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookDeleteRequestSchema)
|
|
3996
|
-
fetch(
|
|
3717
|
+
let response = await fetch(
|
|
3997
3718
|
~url="/admin/system-webhook/delete",
|
|
3998
3719
|
~method_="POST",
|
|
3999
3720
|
~body=Some(jsonBody),
|
|
4000
|
-
)
|
|
3721
|
+
)
|
|
4001
3722
|
let _ = response
|
|
4002
|
-
()
|
|
4003
|
-
->Promise.resolve
|
|
4004
|
-
})
|
|
4005
3723
|
}
|
|
4006
3724
|
|
|
4007
3725
|
type postAdminSystemWebhookListRequest = {
|
|
@@ -4019,24 +3737,21 @@ type postAdminSystemWebhookListResponse = array<MisskeyIoComponentSchemas.System
|
|
|
4019
3737
|
let postAdminSystemWebhookListResponseSchema = S.array(MisskeyIoComponentSchemas.SystemWebhook.schema)
|
|
4020
3738
|
|
|
4021
3739
|
/**
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
let postAdminSystemWebhookList = (~body: postAdminSystemWebhookListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3740
|
+
admin/system-webhook/list
|
|
3741
|
+
|
|
3742
|
+
No description provided.
|
|
3743
|
+
|
|
3744
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3745
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3746
|
+
*/
|
|
3747
|
+
let postAdminSystemWebhookList = async (~body: postAdminSystemWebhookListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookListResponse => {
|
|
4030
3748
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookListRequestSchema)
|
|
4031
|
-
fetch(
|
|
3749
|
+
let response = await fetch(
|
|
4032
3750
|
~url="/admin/system-webhook/list",
|
|
4033
3751
|
~method_="POST",
|
|
4034
3752
|
~body=Some(jsonBody),
|
|
4035
|
-
)
|
|
4036
|
-
|
|
4037
|
-
value
|
|
4038
|
-
->Promise.resolve
|
|
4039
|
-
})
|
|
3753
|
+
)
|
|
3754
|
+
response->S.parseOrThrow(postAdminSystemWebhookListResponseSchema)
|
|
4040
3755
|
}
|
|
4041
3756
|
|
|
4042
3757
|
type postAdminSystemWebhookShowRequest = {
|
|
@@ -4052,24 +3767,21 @@ type postAdminSystemWebhookShowResponse = MisskeyIoComponentSchemas.SystemWebhoo
|
|
|
4052
3767
|
let postAdminSystemWebhookShowResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
|
|
4053
3768
|
|
|
4054
3769
|
/**
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
let postAdminSystemWebhookShow = (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3770
|
+
admin/system-webhook/show
|
|
3771
|
+
|
|
3772
|
+
No description provided.
|
|
3773
|
+
|
|
3774
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3775
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3776
|
+
*/
|
|
3777
|
+
let postAdminSystemWebhookShow = async (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookShowResponse => {
|
|
4063
3778
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookShowRequestSchema)
|
|
4064
|
-
fetch(
|
|
3779
|
+
let response = await fetch(
|
|
4065
3780
|
~url="/admin/system-webhook/show",
|
|
4066
3781
|
~method_="POST",
|
|
4067
3782
|
~body=Some(jsonBody),
|
|
4068
|
-
)
|
|
4069
|
-
|
|
4070
|
-
value
|
|
4071
|
-
->Promise.resolve
|
|
4072
|
-
})
|
|
3783
|
+
)
|
|
3784
|
+
response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
|
|
4073
3785
|
}
|
|
4074
3786
|
|
|
4075
3787
|
type postAdminSystemWebhookUpdateRequest = {
|
|
@@ -4095,24 +3807,21 @@ type postAdminSystemWebhookUpdateResponse = MisskeyIoComponentSchemas.SystemWebh
|
|
|
4095
3807
|
let postAdminSystemWebhookUpdateResponseSchema = MisskeyIoComponentSchemas.SystemWebhook.schema
|
|
4096
3808
|
|
|
4097
3809
|
/**
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
let postAdminSystemWebhookUpdate = (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3810
|
+
admin/system-webhook/update
|
|
3811
|
+
|
|
3812
|
+
No description provided.
|
|
3813
|
+
|
|
3814
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
3815
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
3816
|
+
*/
|
|
3817
|
+
let postAdminSystemWebhookUpdate = async (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookUpdateResponse => {
|
|
4106
3818
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookUpdateRequestSchema)
|
|
4107
|
-
fetch(
|
|
3819
|
+
let response = await fetch(
|
|
4108
3820
|
~url="/admin/system-webhook/update",
|
|
4109
3821
|
~method_="POST",
|
|
4110
3822
|
~body=Some(jsonBody),
|
|
4111
|
-
)
|
|
4112
|
-
|
|
4113
|
-
value
|
|
4114
|
-
->Promise.resolve
|
|
4115
|
-
})
|
|
3823
|
+
)
|
|
3824
|
+
response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
|
|
4116
3825
|
}
|
|
4117
3826
|
|
|
4118
3827
|
type postAdminUnsetUserAvatarRequest = {
|
|
@@ -4126,23 +3835,20 @@ let postAdminUnsetUserAvatarRequestSchema = S.object(s => {
|
|
|
4126
3835
|
type postAdminUnsetUserAvatarResponse = unit
|
|
4127
3836
|
|
|
4128
3837
|
/**
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
let postAdminUnsetUserAvatar = (~body: postAdminUnsetUserAvatarRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3838
|
+
admin/unset-user-avatar
|
|
3839
|
+
|
|
3840
|
+
No description provided.
|
|
3841
|
+
|
|
3842
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:user-avatar*
|
|
3843
|
+
*/
|
|
3844
|
+
let postAdminUnsetUserAvatar = async (~body: postAdminUnsetUserAvatarRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserAvatarResponse => {
|
|
4136
3845
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserAvatarRequestSchema)
|
|
4137
|
-
fetch(
|
|
3846
|
+
let response = await fetch(
|
|
4138
3847
|
~url="/admin/unset-user-avatar",
|
|
4139
3848
|
~method_="POST",
|
|
4140
3849
|
~body=Some(jsonBody),
|
|
4141
|
-
)
|
|
3850
|
+
)
|
|
4142
3851
|
let _ = response
|
|
4143
|
-
()
|
|
4144
|
-
->Promise.resolve
|
|
4145
|
-
})
|
|
4146
3852
|
}
|
|
4147
3853
|
|
|
4148
3854
|
type postAdminUnsetUserBannerRequest = {
|
|
@@ -4156,23 +3862,20 @@ let postAdminUnsetUserBannerRequestSchema = S.object(s => {
|
|
|
4156
3862
|
type postAdminUnsetUserBannerResponse = unit
|
|
4157
3863
|
|
|
4158
3864
|
/**
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
let postAdminUnsetUserBanner = (~body: postAdminUnsetUserBannerRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3865
|
+
admin/unset-user-banner
|
|
3866
|
+
|
|
3867
|
+
No description provided.
|
|
3868
|
+
|
|
3869
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:user-banner*
|
|
3870
|
+
*/
|
|
3871
|
+
let postAdminUnsetUserBanner = async (~body: postAdminUnsetUserBannerRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserBannerResponse => {
|
|
4166
3872
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserBannerRequestSchema)
|
|
4167
|
-
fetch(
|
|
3873
|
+
let response = await fetch(
|
|
4168
3874
|
~url="/admin/unset-user-banner",
|
|
4169
3875
|
~method_="POST",
|
|
4170
3876
|
~body=Some(jsonBody),
|
|
4171
|
-
)
|
|
3877
|
+
)
|
|
4172
3878
|
let _ = response
|
|
4173
|
-
()
|
|
4174
|
-
->Promise.resolve
|
|
4175
|
-
})
|
|
4176
3879
|
}
|
|
4177
3880
|
|
|
4178
3881
|
type postAdminUnsetUserMutualLinkRequest = {
|
|
@@ -4188,23 +3891,20 @@ let postAdminUnsetUserMutualLinkRequestSchema = S.object(s => {
|
|
|
4188
3891
|
type postAdminUnsetUserMutualLinkResponse = unit
|
|
4189
3892
|
|
|
4190
3893
|
/**
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
let postAdminUnsetUserMutualLink = (~body: postAdminUnsetUserMutualLinkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3894
|
+
admin/unset-user-mutual-link
|
|
3895
|
+
|
|
3896
|
+
No description provided.
|
|
3897
|
+
|
|
3898
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:user-mutual-link*
|
|
3899
|
+
*/
|
|
3900
|
+
let postAdminUnsetUserMutualLink = async (~body: postAdminUnsetUserMutualLinkRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsetUserMutualLinkResponse => {
|
|
4198
3901
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsetUserMutualLinkRequestSchema)
|
|
4199
|
-
fetch(
|
|
3902
|
+
let response = await fetch(
|
|
4200
3903
|
~url="/admin/unset-user-mutual-link",
|
|
4201
3904
|
~method_="POST",
|
|
4202
3905
|
~body=Some(jsonBody),
|
|
4203
|
-
)
|
|
3906
|
+
)
|
|
4204
3907
|
let _ = response
|
|
4205
|
-
()
|
|
4206
|
-
->Promise.resolve
|
|
4207
|
-
})
|
|
4208
3908
|
}
|
|
4209
3909
|
|
|
4210
3910
|
type postAdminUnsuspendUserRequest = {
|
|
@@ -4218,23 +3918,20 @@ let postAdminUnsuspendUserRequestSchema = S.object(s => {
|
|
|
4218
3918
|
type postAdminUnsuspendUserResponse = unit
|
|
4219
3919
|
|
|
4220
3920
|
/**
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
let postAdminUnsuspendUser = (~body: postAdminUnsuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3921
|
+
admin/unsuspend-user
|
|
3922
|
+
|
|
3923
|
+
No description provided.
|
|
3924
|
+
|
|
3925
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:unsuspend-user*
|
|
3926
|
+
*/
|
|
3927
|
+
let postAdminUnsuspendUser = async (~body: postAdminUnsuspendUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUnsuspendUserResponse => {
|
|
4228
3928
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUnsuspendUserRequestSchema)
|
|
4229
|
-
fetch(
|
|
3929
|
+
let response = await fetch(
|
|
4230
3930
|
~url="/admin/unsuspend-user",
|
|
4231
3931
|
~method_="POST",
|
|
4232
3932
|
~body=Some(jsonBody),
|
|
4233
|
-
)
|
|
3933
|
+
)
|
|
4234
3934
|
let _ = response
|
|
4235
|
-
()
|
|
4236
|
-
->Promise.resolve
|
|
4237
|
-
})
|
|
4238
3935
|
}
|
|
4239
3936
|
|
|
4240
3937
|
type postAdminUpdateAbuseUserReportRequest = {
|
|
@@ -4250,23 +3947,20 @@ let postAdminUpdateAbuseUserReportRequestSchema = S.object(s => {
|
|
|
4250
3947
|
type postAdminUpdateAbuseUserReportResponse = unit
|
|
4251
3948
|
|
|
4252
3949
|
/**
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
let postAdminUpdateAbuseUserReport = (~body: postAdminUpdateAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
3950
|
+
admin/update-abuse-user-report
|
|
3951
|
+
|
|
3952
|
+
No description provided.
|
|
3953
|
+
|
|
3954
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
3955
|
+
*/
|
|
3956
|
+
let postAdminUpdateAbuseUserReport = async (~body: postAdminUpdateAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateAbuseUserReportResponse => {
|
|
4260
3957
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateAbuseUserReportRequestSchema)
|
|
4261
|
-
fetch(
|
|
3958
|
+
let response = await fetch(
|
|
4262
3959
|
~url="/admin/update-abuse-user-report",
|
|
4263
3960
|
~method_="POST",
|
|
4264
3961
|
~body=Some(jsonBody),
|
|
4265
|
-
)
|
|
3962
|
+
)
|
|
4266
3963
|
let _ = response
|
|
4267
|
-
()
|
|
4268
|
-
->Promise.resolve
|
|
4269
|
-
})
|
|
4270
3964
|
}
|
|
4271
3965
|
|
|
4272
3966
|
type postAdminUpdateMetaRequest = {
|
|
@@ -4508,23 +4202,20 @@ let postAdminUpdateMetaRequestSchema = S.object(s => {
|
|
|
4508
4202
|
type postAdminUpdateMetaResponse = unit
|
|
4509
4203
|
|
|
4510
4204
|
/**
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
let postAdminUpdateMeta = (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4205
|
+
admin/update-meta
|
|
4206
|
+
|
|
4207
|
+
No description provided.
|
|
4208
|
+
|
|
4209
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:meta*
|
|
4210
|
+
*/
|
|
4211
|
+
let postAdminUpdateMeta = async (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateMetaResponse => {
|
|
4518
4212
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateMetaRequestSchema)
|
|
4519
|
-
fetch(
|
|
4213
|
+
let response = await fetch(
|
|
4520
4214
|
~url="/admin/update-meta",
|
|
4521
4215
|
~method_="POST",
|
|
4522
4216
|
~body=Some(jsonBody),
|
|
4523
|
-
)
|
|
4217
|
+
)
|
|
4524
4218
|
let _ = response
|
|
4525
|
-
()
|
|
4526
|
-
->Promise.resolve
|
|
4527
|
-
})
|
|
4528
4219
|
}
|
|
4529
4220
|
|
|
4530
4221
|
type postAdminUpdateProxyAccountRequest = {
|
|
@@ -4540,23 +4231,20 @@ type postAdminUpdateProxyAccountResponse = MisskeyIoComponentSchemas.UserDetaile
|
|
|
4540
4231
|
let postAdminUpdateProxyAccountResponseSchema = MisskeyIoComponentSchemas.UserDetailed.schema
|
|
4541
4232
|
|
|
4542
4233
|
/**
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
let postAdminUpdateProxyAccount = (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4234
|
+
admin/update-proxy-account
|
|
4235
|
+
|
|
4236
|
+
No description provided.
|
|
4237
|
+
|
|
4238
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
4239
|
+
*/
|
|
4240
|
+
let postAdminUpdateProxyAccount = async (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateProxyAccountResponse => {
|
|
4550
4241
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateProxyAccountRequestSchema)
|
|
4551
|
-
fetch(
|
|
4242
|
+
let response = await fetch(
|
|
4552
4243
|
~url="/admin/update-proxy-account",
|
|
4553
4244
|
~method_="POST",
|
|
4554
4245
|
~body=Some(jsonBody),
|
|
4555
|
-
)
|
|
4556
|
-
|
|
4557
|
-
value
|
|
4558
|
-
->Promise.resolve
|
|
4559
|
-
})
|
|
4246
|
+
)
|
|
4247
|
+
response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
|
|
4560
4248
|
}
|
|
4561
4249
|
|
|
4562
4250
|
type postAdminUpdateUserNameRequest = {
|
|
@@ -4572,23 +4260,20 @@ let postAdminUpdateUserNameRequestSchema = S.object(s => {
|
|
|
4572
4260
|
type postAdminUpdateUserNameResponse = unit
|
|
4573
4261
|
|
|
4574
4262
|
/**
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
let postAdminUpdateUserName = (~body: postAdminUpdateUserNameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4263
|
+
admin/update-user-name
|
|
4264
|
+
|
|
4265
|
+
No description provided.
|
|
4266
|
+
|
|
4267
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:user-name*
|
|
4268
|
+
*/
|
|
4269
|
+
let postAdminUpdateUserName = async (~body: postAdminUpdateUserNameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateUserNameResponse => {
|
|
4582
4270
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateUserNameRequestSchema)
|
|
4583
|
-
fetch(
|
|
4271
|
+
let response = await fetch(
|
|
4584
4272
|
~url="/admin/update-user-name",
|
|
4585
4273
|
~method_="POST",
|
|
4586
4274
|
~body=Some(jsonBody),
|
|
4587
|
-
)
|
|
4275
|
+
)
|
|
4588
4276
|
let _ = response
|
|
4589
|
-
()
|
|
4590
|
-
->Promise.resolve
|
|
4591
|
-
})
|
|
4592
4277
|
}
|
|
4593
4278
|
|
|
4594
4279
|
type postAdminUpdateUserNoteRequest = {
|
|
@@ -4604,23 +4289,20 @@ let postAdminUpdateUserNoteRequestSchema = S.object(s => {
|
|
|
4604
4289
|
type postAdminUpdateUserNoteResponse = unit
|
|
4605
4290
|
|
|
4606
4291
|
/**
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
let postAdminUpdateUserNote = (~body: postAdminUpdateUserNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4292
|
+
admin/update-user-note
|
|
4293
|
+
|
|
4294
|
+
No description provided.
|
|
4295
|
+
|
|
4296
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:user-note*
|
|
4297
|
+
*/
|
|
4298
|
+
let postAdminUpdateUserNote = async (~body: postAdminUpdateUserNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateUserNoteResponse => {
|
|
4614
4299
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateUserNoteRequestSchema)
|
|
4615
|
-
fetch(
|
|
4300
|
+
let response = await fetch(
|
|
4616
4301
|
~url="/admin/update-user-note",
|
|
4617
4302
|
~method_="POST",
|
|
4618
4303
|
~body=Some(jsonBody),
|
|
4619
|
-
)
|
|
4304
|
+
)
|
|
4620
4305
|
let _ = response
|
|
4621
|
-
()
|
|
4622
|
-
->Promise.resolve
|
|
4623
|
-
})
|
|
4624
4306
|
}
|
|
4625
4307
|
|
|
4626
4308
|
type postV2AdminEmojiListRequest_1 = {
|
|
@@ -4692,21 +4374,18 @@ let postV2AdminEmojiListResponseSchema = S.object(s => {
|
|
|
4692
4374
|
})
|
|
4693
4375
|
|
|
4694
4376
|
/**
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
let postV2AdminEmojiList = (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
4377
|
+
v2/admin/emoji/list
|
|
4378
|
+
|
|
4379
|
+
No description provided.
|
|
4380
|
+
|
|
4381
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
4382
|
+
*/
|
|
4383
|
+
let postV2AdminEmojiList = async (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postV2AdminEmojiListResponse => {
|
|
4702
4384
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postV2AdminEmojiListRequestSchema)
|
|
4703
|
-
fetch(
|
|
4385
|
+
let response = await fetch(
|
|
4704
4386
|
~url="/v2/admin/emoji/list",
|
|
4705
4387
|
~method_="POST",
|
|
4706
4388
|
~body=Some(jsonBody),
|
|
4707
|
-
)
|
|
4708
|
-
|
|
4709
|
-
value
|
|
4710
|
-
->Promise.resolve
|
|
4711
|
-
})
|
|
4389
|
+
)
|
|
4390
|
+
response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
|
|
4712
4391
|
}
|