@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
|
@@ -26,24 +26,21 @@ type postAdminAbuseReportNotificationRecipientCreateResponse = KokonectLinkCompo
|
|
|
26
26
|
let postAdminAbuseReportNotificationRecipientCreateResponseSchema = KokonectLinkComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
let postAdminAbuseReportNotificationRecipientCreate = (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
29
|
+
admin/abuse-report/notification-recipient/create
|
|
30
|
+
|
|
31
|
+
No description provided.
|
|
32
|
+
|
|
33
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
34
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
35
|
+
*/
|
|
36
|
+
let postAdminAbuseReportNotificationRecipientCreate = async (~body: postAdminAbuseReportNotificationRecipientCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientCreateResponse => {
|
|
37
37
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientCreateRequestSchema)
|
|
38
|
-
fetch(
|
|
38
|
+
let response = await fetch(
|
|
39
39
|
~url="/admin/abuse-report/notification-recipient/create",
|
|
40
40
|
~method_="POST",
|
|
41
41
|
~body=Some(jsonBody),
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
value
|
|
45
|
-
->Promise.resolve
|
|
46
|
-
})
|
|
42
|
+
)
|
|
43
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientCreateResponseSchema)
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
type postAdminAbuseReportNotificationRecipientShowRequest = {
|
|
@@ -59,24 +56,21 @@ type postAdminAbuseReportNotificationRecipientShowResponse = KokonectLinkCompone
|
|
|
59
56
|
let postAdminAbuseReportNotificationRecipientShowResponseSchema = KokonectLinkComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
60
57
|
|
|
61
58
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
let postAdminAbuseReportNotificationRecipientShow = (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
59
|
+
admin/abuse-report/notification-recipient/show
|
|
60
|
+
|
|
61
|
+
No description provided.
|
|
62
|
+
|
|
63
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
64
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-report:notification-recipient*
|
|
65
|
+
*/
|
|
66
|
+
let postAdminAbuseReportNotificationRecipientShow = async (~body: postAdminAbuseReportNotificationRecipientShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientShowResponse => {
|
|
70
67
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientShowRequestSchema)
|
|
71
|
-
fetch(
|
|
68
|
+
let response = await fetch(
|
|
72
69
|
~url="/admin/abuse-report/notification-recipient/show",
|
|
73
70
|
~method_="POST",
|
|
74
71
|
~body=Some(jsonBody),
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
value
|
|
78
|
-
->Promise.resolve
|
|
79
|
-
})
|
|
72
|
+
)
|
|
73
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientShowResponseSchema)
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
type postAdminAbuseReportNotificationRecipientUpdateRequest = {
|
|
@@ -102,24 +96,21 @@ type postAdminAbuseReportNotificationRecipientUpdateResponse = KokonectLinkCompo
|
|
|
102
96
|
let postAdminAbuseReportNotificationRecipientUpdateResponseSchema = KokonectLinkComponentSchemas.AbuseReportNotificationRecipient.schema
|
|
103
97
|
|
|
104
98
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
let postAdminAbuseReportNotificationRecipientUpdate = (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
99
|
+
admin/abuse-report/notification-recipient/update
|
|
100
|
+
|
|
101
|
+
No description provided.
|
|
102
|
+
|
|
103
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
104
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:abuse-report:notification-recipient*
|
|
105
|
+
*/
|
|
106
|
+
let postAdminAbuseReportNotificationRecipientUpdate = async (~body: postAdminAbuseReportNotificationRecipientUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseReportNotificationRecipientUpdateResponse => {
|
|
113
107
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseReportNotificationRecipientUpdateRequestSchema)
|
|
114
|
-
fetch(
|
|
108
|
+
let response = await fetch(
|
|
115
109
|
~url="/admin/abuse-report/notification-recipient/update",
|
|
116
110
|
~method_="POST",
|
|
117
111
|
~body=Some(jsonBody),
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
value
|
|
121
|
-
->Promise.resolve
|
|
122
|
-
})
|
|
112
|
+
)
|
|
113
|
+
response->S.parseOrThrow(postAdminAbuseReportNotificationRecipientUpdateResponseSchema)
|
|
123
114
|
}
|
|
124
115
|
|
|
125
116
|
type postAdminAbuseUserReportsRequest = {
|
|
@@ -181,23 +172,20 @@ let postAdminAbuseUserReportsResponse_1Schema = S.object(s => {
|
|
|
181
172
|
let postAdminAbuseUserReportsResponseSchema = S.array(postAdminAbuseUserReportsResponse_1Schema)
|
|
182
173
|
|
|
183
174
|
/**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
let postAdminAbuseUserReports = (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
175
|
+
admin/abuse-user-reports
|
|
176
|
+
|
|
177
|
+
No description provided.
|
|
178
|
+
|
|
179
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:abuse-user-reports*
|
|
180
|
+
*/
|
|
181
|
+
let postAdminAbuseUserReports = async (~body: postAdminAbuseUserReportsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAbuseUserReportsResponse => {
|
|
191
182
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAbuseUserReportsRequestSchema)
|
|
192
|
-
fetch(
|
|
183
|
+
let response = await fetch(
|
|
193
184
|
~url="/admin/abuse-user-reports",
|
|
194
185
|
~method_="POST",
|
|
195
186
|
~body=Some(jsonBody),
|
|
196
|
-
)
|
|
197
|
-
|
|
198
|
-
value
|
|
199
|
-
->Promise.resolve
|
|
200
|
-
})
|
|
187
|
+
)
|
|
188
|
+
response->S.parseOrThrow(postAdminAbuseUserReportsResponseSchema)
|
|
201
189
|
}
|
|
202
190
|
|
|
203
191
|
type postAdminAccountsCreateRequest = {
|
|
@@ -221,23 +209,20 @@ let postAdminAccountsCreateResponseSchema = S.object(s => {
|
|
|
221
209
|
})
|
|
222
210
|
|
|
223
211
|
/**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
let postAdminAccountsCreate = (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
212
|
+
admin/accounts/create
|
|
213
|
+
|
|
214
|
+
No description provided.
|
|
215
|
+
|
|
216
|
+
**Credential required**: *No*
|
|
217
|
+
*/
|
|
218
|
+
let postAdminAccountsCreate = async (~body: postAdminAccountsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsCreateResponse => {
|
|
231
219
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsCreateRequestSchema)
|
|
232
|
-
fetch(
|
|
220
|
+
let response = await fetch(
|
|
233
221
|
~url="/admin/accounts/create",
|
|
234
222
|
~method_="POST",
|
|
235
223
|
~body=Some(jsonBody),
|
|
236
|
-
)
|
|
237
|
-
|
|
238
|
-
value
|
|
239
|
-
->Promise.resolve
|
|
240
|
-
})
|
|
224
|
+
)
|
|
225
|
+
response->S.parseOrThrow(postAdminAccountsCreateResponseSchema)
|
|
241
226
|
}
|
|
242
227
|
|
|
243
228
|
type postAdminAccountsDeleteRequest = {
|
|
@@ -251,23 +236,20 @@ let postAdminAccountsDeleteRequestSchema = S.object(s => {
|
|
|
251
236
|
type postAdminAccountsDeleteResponse = unit
|
|
252
237
|
|
|
253
238
|
/**
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
let postAdminAccountsDelete = (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
239
|
+
admin/accounts/delete
|
|
240
|
+
|
|
241
|
+
No description provided.
|
|
242
|
+
|
|
243
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
244
|
+
*/
|
|
245
|
+
let postAdminAccountsDelete = async (~body: postAdminAccountsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsDeleteResponse => {
|
|
261
246
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsDeleteRequestSchema)
|
|
262
|
-
fetch(
|
|
247
|
+
let response = await fetch(
|
|
263
248
|
~url="/admin/accounts/delete",
|
|
264
249
|
~method_="POST",
|
|
265
250
|
~body=Some(jsonBody),
|
|
266
|
-
)
|
|
251
|
+
)
|
|
267
252
|
let _ = response
|
|
268
|
-
()
|
|
269
|
-
->Promise.resolve
|
|
270
|
-
})
|
|
271
253
|
}
|
|
272
254
|
|
|
273
255
|
type postAdminAccountsFindByEmailRequest = {
|
|
@@ -283,23 +265,20 @@ type postAdminAccountsFindByEmailResponse = KokonectLinkComponentSchemas.UserDet
|
|
|
283
265
|
let postAdminAccountsFindByEmailResponseSchema = KokonectLinkComponentSchemas.UserDetailedNotMe.schema
|
|
284
266
|
|
|
285
267
|
/**
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
let postAdminAccountsFindByEmail = (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
268
|
+
admin/accounts/find-by-email
|
|
269
|
+
|
|
270
|
+
No description provided.
|
|
271
|
+
|
|
272
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:account*
|
|
273
|
+
*/
|
|
274
|
+
let postAdminAccountsFindByEmail = async (~body: postAdminAccountsFindByEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAccountsFindByEmailResponse => {
|
|
293
275
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAccountsFindByEmailRequestSchema)
|
|
294
|
-
fetch(
|
|
276
|
+
let response = await fetch(
|
|
295
277
|
~url="/admin/accounts/find-by-email",
|
|
296
278
|
~method_="POST",
|
|
297
279
|
~body=Some(jsonBody),
|
|
298
|
-
)
|
|
299
|
-
|
|
300
|
-
value
|
|
301
|
-
->Promise.resolve
|
|
302
|
-
})
|
|
280
|
+
)
|
|
281
|
+
response->S.parseOrThrow(postAdminAccountsFindByEmailResponseSchema)
|
|
303
282
|
}
|
|
304
283
|
|
|
305
284
|
type postAdminAdCreateRequest = {
|
|
@@ -333,23 +312,20 @@ type postAdminAdCreateResponse = KokonectLinkComponentSchemas.Ad.t
|
|
|
333
312
|
let postAdminAdCreateResponseSchema = KokonectLinkComponentSchemas.Ad.schema
|
|
334
313
|
|
|
335
314
|
/**
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
let postAdminAdCreate = (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
315
|
+
admin/ad/create
|
|
316
|
+
|
|
317
|
+
No description provided.
|
|
318
|
+
|
|
319
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:ad*
|
|
320
|
+
*/
|
|
321
|
+
let postAdminAdCreate = async (~body: postAdminAdCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdCreateResponse => {
|
|
343
322
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdCreateRequestSchema)
|
|
344
|
-
fetch(
|
|
323
|
+
let response = await fetch(
|
|
345
324
|
~url="/admin/ad/create",
|
|
346
325
|
~method_="POST",
|
|
347
326
|
~body=Some(jsonBody),
|
|
348
|
-
)
|
|
349
|
-
|
|
350
|
-
value
|
|
351
|
-
->Promise.resolve
|
|
352
|
-
})
|
|
327
|
+
)
|
|
328
|
+
response->S.parseOrThrow(postAdminAdCreateResponseSchema)
|
|
353
329
|
}
|
|
354
330
|
|
|
355
331
|
type postAdminAdListRequest = {
|
|
@@ -375,23 +351,20 @@ type postAdminAdListResponse = array<KokonectLinkComponentSchemas.Ad.t>
|
|
|
375
351
|
let postAdminAdListResponseSchema = S.array(KokonectLinkComponentSchemas.Ad.schema)
|
|
376
352
|
|
|
377
353
|
/**
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
let postAdminAdList = (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
354
|
+
admin/ad/list
|
|
355
|
+
|
|
356
|
+
No description provided.
|
|
357
|
+
|
|
358
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:ad*
|
|
359
|
+
*/
|
|
360
|
+
let postAdminAdList = async (~body: postAdminAdListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAdListResponse => {
|
|
385
361
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAdListRequestSchema)
|
|
386
|
-
fetch(
|
|
362
|
+
let response = await fetch(
|
|
387
363
|
~url="/admin/ad/list",
|
|
388
364
|
~method_="POST",
|
|
389
365
|
~body=Some(jsonBody),
|
|
390
|
-
)
|
|
391
|
-
|
|
392
|
-
value
|
|
393
|
-
->Promise.resolve
|
|
394
|
-
})
|
|
366
|
+
)
|
|
367
|
+
response->S.parseOrThrow(postAdminAdListResponseSchema)
|
|
395
368
|
}
|
|
396
369
|
|
|
397
370
|
type postAdminAnnouncementsCreateRequest = {
|
|
@@ -437,23 +410,20 @@ let postAdminAnnouncementsCreateResponseSchema = S.object(s => {
|
|
|
437
410
|
})
|
|
438
411
|
|
|
439
412
|
/**
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
let postAdminAnnouncementsCreate = (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
413
|
+
admin/announcements/create
|
|
414
|
+
|
|
415
|
+
No description provided.
|
|
416
|
+
|
|
417
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
418
|
+
*/
|
|
419
|
+
let postAdminAnnouncementsCreate = async (~body: postAdminAnnouncementsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsCreateResponse => {
|
|
447
420
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsCreateRequestSchema)
|
|
448
|
-
fetch(
|
|
421
|
+
let response = await fetch(
|
|
449
422
|
~url="/admin/announcements/create",
|
|
450
423
|
~method_="POST",
|
|
451
424
|
~body=Some(jsonBody),
|
|
452
|
-
)
|
|
453
|
-
|
|
454
|
-
value
|
|
455
|
-
->Promise.resolve
|
|
456
|
-
})
|
|
425
|
+
)
|
|
426
|
+
response->S.parseOrThrow(postAdminAnnouncementsCreateResponseSchema)
|
|
457
427
|
}
|
|
458
428
|
|
|
459
429
|
type postAdminAnnouncementsListRequest = {
|
|
@@ -515,23 +485,20 @@ let postAdminAnnouncementsListResponse_1Schema = S.object(s => {
|
|
|
515
485
|
let postAdminAnnouncementsListResponseSchema = S.array(postAdminAnnouncementsListResponse_1Schema)
|
|
516
486
|
|
|
517
487
|
/**
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
let postAdminAnnouncementsList = (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
488
|
+
admin/announcements/list
|
|
489
|
+
|
|
490
|
+
No description provided.
|
|
491
|
+
|
|
492
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:announcements*
|
|
493
|
+
*/
|
|
494
|
+
let postAdminAnnouncementsList = async (~body: postAdminAnnouncementsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsListResponse => {
|
|
525
495
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsListRequestSchema)
|
|
526
|
-
fetch(
|
|
496
|
+
let response = await fetch(
|
|
527
497
|
~url="/admin/announcements/list",
|
|
528
498
|
~method_="POST",
|
|
529
499
|
~body=Some(jsonBody),
|
|
530
|
-
)
|
|
531
|
-
|
|
532
|
-
value
|
|
533
|
-
->Promise.resolve
|
|
534
|
-
})
|
|
500
|
+
)
|
|
501
|
+
response->S.parseOrThrow(postAdminAnnouncementsListResponseSchema)
|
|
535
502
|
}
|
|
536
503
|
|
|
537
504
|
type postAdminAnnouncementsUpdateRequest = {
|
|
@@ -563,23 +530,20 @@ let postAdminAnnouncementsUpdateRequestSchema = S.object(s => {
|
|
|
563
530
|
type postAdminAnnouncementsUpdateResponse = unit
|
|
564
531
|
|
|
565
532
|
/**
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
let postAdminAnnouncementsUpdate = (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
533
|
+
admin/announcements/update
|
|
534
|
+
|
|
535
|
+
No description provided.
|
|
536
|
+
|
|
537
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:announcements*
|
|
538
|
+
*/
|
|
539
|
+
let postAdminAnnouncementsUpdate = async (~body: postAdminAnnouncementsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAnnouncementsUpdateResponse => {
|
|
573
540
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAnnouncementsUpdateRequestSchema)
|
|
574
|
-
fetch(
|
|
541
|
+
let response = await fetch(
|
|
575
542
|
~url="/admin/announcements/update",
|
|
576
543
|
~method_="POST",
|
|
577
544
|
~body=Some(jsonBody),
|
|
578
|
-
)
|
|
545
|
+
)
|
|
579
546
|
let _ = response
|
|
580
|
-
()
|
|
581
|
-
->Promise.resolve
|
|
582
|
-
})
|
|
583
547
|
}
|
|
584
548
|
|
|
585
549
|
type postAdminAvatarDecorationsCopyRequest = {
|
|
@@ -599,23 +563,20 @@ let postAdminAvatarDecorationsCopyResponseSchema = S.object(s => {
|
|
|
599
563
|
})
|
|
600
564
|
|
|
601
565
|
/**
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
let postAdminAvatarDecorationsCopy = (~body: postAdminAvatarDecorationsCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
566
|
+
admin/avatar-decorations/copy
|
|
567
|
+
|
|
568
|
+
No description provided.
|
|
569
|
+
|
|
570
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:avatar-decorations*
|
|
571
|
+
*/
|
|
572
|
+
let postAdminAvatarDecorationsCopy = async (~body: postAdminAvatarDecorationsCopyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsCopyResponse => {
|
|
609
573
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsCopyRequestSchema)
|
|
610
|
-
fetch(
|
|
574
|
+
let response = await fetch(
|
|
611
575
|
~url="/admin/avatar-decorations/copy",
|
|
612
576
|
~method_="POST",
|
|
613
577
|
~body=Some(jsonBody),
|
|
614
|
-
)
|
|
615
|
-
|
|
616
|
-
value
|
|
617
|
-
->Promise.resolve
|
|
618
|
-
})
|
|
578
|
+
)
|
|
579
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsCopyResponseSchema)
|
|
619
580
|
}
|
|
620
581
|
|
|
621
582
|
type postAdminAvatarDecorationsListRequest = {
|
|
@@ -661,23 +622,20 @@ let postAdminAvatarDecorationsListResponse_1Schema = S.object(s => {
|
|
|
661
622
|
let postAdminAvatarDecorationsListResponseSchema = S.array(postAdminAvatarDecorationsListResponse_1Schema)
|
|
662
623
|
|
|
663
624
|
/**
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
let postAdminAvatarDecorationsList = (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
625
|
+
admin/avatar-decorations/list
|
|
626
|
+
|
|
627
|
+
No description provided.
|
|
628
|
+
|
|
629
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
|
|
630
|
+
*/
|
|
631
|
+
let postAdminAvatarDecorationsList = async (~body: postAdminAvatarDecorationsListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListResponse => {
|
|
671
632
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRequestSchema)
|
|
672
|
-
fetch(
|
|
633
|
+
let response = await fetch(
|
|
673
634
|
~url="/admin/avatar-decorations/list",
|
|
674
635
|
~method_="POST",
|
|
675
636
|
~body=Some(jsonBody),
|
|
676
|
-
)
|
|
677
|
-
|
|
678
|
-
value
|
|
679
|
-
->Promise.resolve
|
|
680
|
-
})
|
|
637
|
+
)
|
|
638
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsListResponseSchema)
|
|
681
639
|
}
|
|
682
640
|
|
|
683
641
|
type postAdminAvatarDecorationsListRemoteRequest = {
|
|
@@ -719,23 +677,20 @@ let postAdminAvatarDecorationsListRemoteResponse_1Schema = S.object(s => {
|
|
|
719
677
|
let postAdminAvatarDecorationsListRemoteResponseSchema = S.array(postAdminAvatarDecorationsListRemoteResponse_1Schema)
|
|
720
678
|
|
|
721
679
|
/**
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
let postAdminAvatarDecorationsListRemote = (~body: postAdminAvatarDecorationsListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
680
|
+
admin/avatar-decorations/list-remote
|
|
681
|
+
|
|
682
|
+
No description provided.
|
|
683
|
+
|
|
684
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:avatar-decorations*
|
|
685
|
+
*/
|
|
686
|
+
let postAdminAvatarDecorationsListRemote = async (~body: postAdminAvatarDecorationsListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminAvatarDecorationsListRemoteResponse => {
|
|
729
687
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminAvatarDecorationsListRemoteRequestSchema)
|
|
730
|
-
fetch(
|
|
688
|
+
let response = await fetch(
|
|
731
689
|
~url="/admin/avatar-decorations/list-remote",
|
|
732
690
|
~method_="POST",
|
|
733
691
|
~body=Some(jsonBody),
|
|
734
|
-
)
|
|
735
|
-
|
|
736
|
-
value
|
|
737
|
-
->Promise.resolve
|
|
738
|
-
})
|
|
692
|
+
)
|
|
693
|
+
response->S.parseOrThrow(postAdminAvatarDecorationsListRemoteResponseSchema)
|
|
739
694
|
}
|
|
740
695
|
|
|
741
696
|
type postAdminDeleteAccountRequest = {
|
|
@@ -749,23 +704,20 @@ let postAdminDeleteAccountRequestSchema = S.object(s => {
|
|
|
749
704
|
type postAdminDeleteAccountResponse = unit
|
|
750
705
|
|
|
751
706
|
/**
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
let postAdminDeleteAccount = (~body: postAdminDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
707
|
+
admin/delete-account
|
|
708
|
+
|
|
709
|
+
No description provided.
|
|
710
|
+
|
|
711
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:delete-account*
|
|
712
|
+
*/
|
|
713
|
+
let postAdminDeleteAccount = async (~body: postAdminDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDeleteAccountResponse => {
|
|
759
714
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDeleteAccountRequestSchema)
|
|
760
|
-
fetch(
|
|
715
|
+
let response = await fetch(
|
|
761
716
|
~url="/admin/delete-account",
|
|
762
717
|
~method_="POST",
|
|
763
718
|
~body=Some(jsonBody),
|
|
764
|
-
)
|
|
719
|
+
)
|
|
765
720
|
let _ = response
|
|
766
|
-
()
|
|
767
|
-
->Promise.resolve
|
|
768
|
-
})
|
|
769
721
|
}
|
|
770
722
|
|
|
771
723
|
type postAdminDeleteAllFilesOfAUserRequest = {
|
|
@@ -779,23 +731,20 @@ let postAdminDeleteAllFilesOfAUserRequestSchema = S.object(s => {
|
|
|
779
731
|
type postAdminDeleteAllFilesOfAUserResponse = unit
|
|
780
732
|
|
|
781
733
|
/**
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
let postAdminDeleteAllFilesOfAUser = (~body: postAdminDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
734
|
+
admin/delete-all-files-of-a-user
|
|
735
|
+
|
|
736
|
+
No description provided.
|
|
737
|
+
|
|
738
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:delete-all-files-of-a-user*
|
|
739
|
+
*/
|
|
740
|
+
let postAdminDeleteAllFilesOfAUser = async (~body: postAdminDeleteAllFilesOfAUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDeleteAllFilesOfAUserResponse => {
|
|
789
741
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDeleteAllFilesOfAUserRequestSchema)
|
|
790
|
-
fetch(
|
|
742
|
+
let response = await fetch(
|
|
791
743
|
~url="/admin/delete-all-files-of-a-user",
|
|
792
744
|
~method_="POST",
|
|
793
745
|
~body=Some(jsonBody),
|
|
794
|
-
)
|
|
746
|
+
)
|
|
795
747
|
let _ = response
|
|
796
|
-
()
|
|
797
|
-
->Promise.resolve
|
|
798
|
-
})
|
|
799
748
|
}
|
|
800
749
|
|
|
801
750
|
type postAdminDriveFilesRequest = {
|
|
@@ -827,23 +776,20 @@ type postAdminDriveFilesResponse = array<KokonectLinkComponentSchemas.DriveFile.
|
|
|
827
776
|
let postAdminDriveFilesResponseSchema = S.array(KokonectLinkComponentSchemas.DriveFile.schema)
|
|
828
777
|
|
|
829
778
|
/**
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
let postAdminDriveFiles = (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
779
|
+
admin/drive/files
|
|
780
|
+
|
|
781
|
+
No description provided.
|
|
782
|
+
|
|
783
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
784
|
+
*/
|
|
785
|
+
let postAdminDriveFiles = async (~body: postAdminDriveFilesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveFilesResponse => {
|
|
837
786
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveFilesRequestSchema)
|
|
838
|
-
fetch(
|
|
787
|
+
let response = await fetch(
|
|
839
788
|
~url="/admin/drive/files",
|
|
840
789
|
~method_="POST",
|
|
841
790
|
~body=Some(jsonBody),
|
|
842
|
-
)
|
|
843
|
-
|
|
844
|
-
value
|
|
845
|
-
->Promise.resolve
|
|
846
|
-
})
|
|
791
|
+
)
|
|
792
|
+
response->S.parseOrThrow(postAdminDriveFilesResponseSchema)
|
|
847
793
|
}
|
|
848
794
|
|
|
849
795
|
type postAdminDriveShowFileRequest_1 = {
|
|
@@ -933,23 +879,20 @@ let postAdminDriveShowFileResponseSchema = S.object(s => {
|
|
|
933
879
|
})
|
|
934
880
|
|
|
935
881
|
/**
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
let postAdminDriveShowFile = (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
882
|
+
admin/drive/show-file
|
|
883
|
+
|
|
884
|
+
No description provided.
|
|
885
|
+
|
|
886
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:drive*
|
|
887
|
+
*/
|
|
888
|
+
let postAdminDriveShowFile = async (~body: postAdminDriveShowFileRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminDriveShowFileResponse => {
|
|
943
889
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminDriveShowFileRequestSchema)
|
|
944
|
-
fetch(
|
|
890
|
+
let response = await fetch(
|
|
945
891
|
~url="/admin/drive/show-file",
|
|
946
892
|
~method_="POST",
|
|
947
893
|
~body=Some(jsonBody),
|
|
948
|
-
)
|
|
949
|
-
|
|
950
|
-
value
|
|
951
|
-
->Promise.resolve
|
|
952
|
-
})
|
|
894
|
+
)
|
|
895
|
+
response->S.parseOrThrow(postAdminDriveShowFileResponseSchema)
|
|
953
896
|
}
|
|
954
897
|
|
|
955
898
|
type postAdminEmojiAddRequest = {
|
|
@@ -979,23 +922,20 @@ type postAdminEmojiAddResponse = KokonectLinkComponentSchemas.EmojiDetailed.t
|
|
|
979
922
|
let postAdminEmojiAddResponseSchema = KokonectLinkComponentSchemas.EmojiDetailed.schema
|
|
980
923
|
|
|
981
924
|
/**
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
let postAdminEmojiAdd = (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
925
|
+
admin/emoji/add
|
|
926
|
+
|
|
927
|
+
No description provided.
|
|
928
|
+
|
|
929
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
930
|
+
*/
|
|
931
|
+
let postAdminEmojiAdd = async (~body: postAdminEmojiAddRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiAddResponse => {
|
|
989
932
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiAddRequestSchema)
|
|
990
|
-
fetch(
|
|
933
|
+
let response = await fetch(
|
|
991
934
|
~url="/admin/emoji/add",
|
|
992
935
|
~method_="POST",
|
|
993
936
|
~body=Some(jsonBody),
|
|
994
|
-
)
|
|
995
|
-
|
|
996
|
-
value
|
|
997
|
-
->Promise.resolve
|
|
998
|
-
})
|
|
937
|
+
)
|
|
938
|
+
response->S.parseOrThrow(postAdminEmojiAddResponseSchema)
|
|
999
939
|
}
|
|
1000
940
|
|
|
1001
941
|
type postAdminEmojiListRequest = {
|
|
@@ -1039,23 +979,20 @@ let postAdminEmojiListResponse_1Schema = S.object(s => {
|
|
|
1039
979
|
let postAdminEmojiListResponseSchema = S.array(postAdminEmojiListResponse_1Schema)
|
|
1040
980
|
|
|
1041
981
|
/**
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
let postAdminEmojiList = (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
982
|
+
admin/emoji/list
|
|
983
|
+
|
|
984
|
+
No description provided.
|
|
985
|
+
|
|
986
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
987
|
+
*/
|
|
988
|
+
let postAdminEmojiList = async (~body: postAdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListResponse => {
|
|
1049
989
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRequestSchema)
|
|
1050
|
-
fetch(
|
|
990
|
+
let response = await fetch(
|
|
1051
991
|
~url="/admin/emoji/list",
|
|
1052
992
|
~method_="POST",
|
|
1053
993
|
~body=Some(jsonBody),
|
|
1054
|
-
)
|
|
1055
|
-
|
|
1056
|
-
value
|
|
1057
|
-
->Promise.resolve
|
|
1058
|
-
})
|
|
994
|
+
)
|
|
995
|
+
response->S.parseOrThrow(postAdminEmojiListResponseSchema)
|
|
1059
996
|
}
|
|
1060
997
|
|
|
1061
998
|
type postAdminEmojiListRemoteRequest = {
|
|
@@ -1101,23 +1038,20 @@ let postAdminEmojiListRemoteResponse_1Schema = S.object(s => {
|
|
|
1101
1038
|
let postAdminEmojiListRemoteResponseSchema = S.array(postAdminEmojiListRemoteResponse_1Schema)
|
|
1102
1039
|
|
|
1103
1040
|
/**
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
let postAdminEmojiListRemote = (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1041
|
+
admin/emoji/list-remote
|
|
1042
|
+
|
|
1043
|
+
No description provided.
|
|
1044
|
+
|
|
1045
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
1046
|
+
*/
|
|
1047
|
+
let postAdminEmojiListRemote = async (~body: postAdminEmojiListRemoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiListRemoteResponse => {
|
|
1111
1048
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiListRemoteRequestSchema)
|
|
1112
|
-
fetch(
|
|
1049
|
+
let response = await fetch(
|
|
1113
1050
|
~url="/admin/emoji/list-remote",
|
|
1114
1051
|
~method_="POST",
|
|
1115
1052
|
~body=Some(jsonBody),
|
|
1116
|
-
)
|
|
1117
|
-
|
|
1118
|
-
value
|
|
1119
|
-
->Promise.resolve
|
|
1120
|
-
})
|
|
1053
|
+
)
|
|
1054
|
+
response->S.parseOrThrow(postAdminEmojiListRemoteResponseSchema)
|
|
1121
1055
|
}
|
|
1122
1056
|
|
|
1123
1057
|
type postAdminEmojiStealRequest = {
|
|
@@ -1139,23 +1073,20 @@ let postAdminEmojiStealResponseSchema = S.object(s => {
|
|
|
1139
1073
|
})
|
|
1140
1074
|
|
|
1141
1075
|
/**
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
let postAdminEmojiSteal = (~body: postAdminEmojiStealRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1076
|
+
admin/emoji/steal
|
|
1077
|
+
|
|
1078
|
+
No description provided.
|
|
1079
|
+
|
|
1080
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1081
|
+
*/
|
|
1082
|
+
let postAdminEmojiSteal = async (~body: postAdminEmojiStealRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiStealResponse => {
|
|
1149
1083
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiStealRequestSchema)
|
|
1150
|
-
fetch(
|
|
1084
|
+
let response = await fetch(
|
|
1151
1085
|
~url="/admin/emoji/steal",
|
|
1152
1086
|
~method_="POST",
|
|
1153
1087
|
~body=Some(jsonBody),
|
|
1154
|
-
)
|
|
1155
|
-
|
|
1156
|
-
value
|
|
1157
|
-
->Promise.resolve
|
|
1158
|
-
})
|
|
1088
|
+
)
|
|
1089
|
+
response->S.parseOrThrow(postAdminEmojiStealResponseSchema)
|
|
1159
1090
|
}
|
|
1160
1091
|
|
|
1161
1092
|
type postAdminEmojiUpdateRequest = {
|
|
@@ -1181,45 +1112,39 @@ let postAdminEmojiUpdateRequestSchema = S.object(s => {
|
|
|
1181
1112
|
type postAdminEmojiUpdateResponse = unit
|
|
1182
1113
|
|
|
1183
1114
|
/**
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
let postAdminEmojiUpdate = (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1115
|
+
admin/emoji/update
|
|
1116
|
+
|
|
1117
|
+
No description provided.
|
|
1118
|
+
|
|
1119
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:emoji*
|
|
1120
|
+
*/
|
|
1121
|
+
let postAdminEmojiUpdate = async (~body: postAdminEmojiUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiUpdateResponse => {
|
|
1191
1122
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiUpdateRequestSchema)
|
|
1192
|
-
fetch(
|
|
1123
|
+
let response = await fetch(
|
|
1193
1124
|
~url="/admin/emoji/update",
|
|
1194
1125
|
~method_="POST",
|
|
1195
1126
|
~body=Some(jsonBody),
|
|
1196
|
-
)
|
|
1127
|
+
)
|
|
1197
1128
|
let _ = response
|
|
1198
|
-
()
|
|
1199
|
-
->Promise.resolve
|
|
1200
|
-
})
|
|
1201
1129
|
}
|
|
1202
1130
|
|
|
1203
1131
|
type postAdminInviteRevokeResponse = unit
|
|
1204
1132
|
|
|
1205
1133
|
/**
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
let postAdminInviteRevoke = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1213
|
-
|
|
1214
|
-
fetch(
|
|
1134
|
+
admin/invite/revoke
|
|
1135
|
+
|
|
1136
|
+
No description provided.
|
|
1137
|
+
|
|
1138
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:invite-codes*
|
|
1139
|
+
*/
|
|
1140
|
+
let postAdminInviteRevoke = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminInviteRevokeResponse => {
|
|
1141
|
+
|
|
1142
|
+
let response = await fetch(
|
|
1215
1143
|
~url="/admin/invite/revoke",
|
|
1216
1144
|
~method_="POST",
|
|
1217
1145
|
~body=None,
|
|
1218
|
-
)
|
|
1146
|
+
)
|
|
1219
1147
|
let _ = response
|
|
1220
|
-
()
|
|
1221
|
-
->Promise.resolve
|
|
1222
|
-
})
|
|
1223
1148
|
}
|
|
1224
1149
|
|
|
1225
1150
|
type postAdminQueueClearRequest = {
|
|
@@ -1235,23 +1160,20 @@ let postAdminQueueClearRequestSchema = S.object(s => {
|
|
|
1235
1160
|
type postAdminQueueClearResponse = unit
|
|
1236
1161
|
|
|
1237
1162
|
/**
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
let postAdminQueueClear = (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1163
|
+
admin/queue/clear
|
|
1164
|
+
|
|
1165
|
+
No description provided.
|
|
1166
|
+
|
|
1167
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
1168
|
+
*/
|
|
1169
|
+
let postAdminQueueClear = async (~body: postAdminQueueClearRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueClearResponse => {
|
|
1245
1170
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueClearRequestSchema)
|
|
1246
|
-
fetch(
|
|
1171
|
+
let response = await fetch(
|
|
1247
1172
|
~url="/admin/queue/clear",
|
|
1248
1173
|
~method_="POST",
|
|
1249
1174
|
~body=Some(jsonBody),
|
|
1250
|
-
)
|
|
1175
|
+
)
|
|
1251
1176
|
let _ = response
|
|
1252
|
-
()
|
|
1253
|
-
->Promise.resolve
|
|
1254
|
-
})
|
|
1255
1177
|
}
|
|
1256
1178
|
|
|
1257
1179
|
type postAdminQueueJobsRequest = {
|
|
@@ -1271,23 +1193,20 @@ type postAdminQueueJobsResponse = array<KokonectLinkComponentSchemas.QueueJob.t>
|
|
|
1271
1193
|
let postAdminQueueJobsResponseSchema = S.array(KokonectLinkComponentSchemas.QueueJob.schema)
|
|
1272
1194
|
|
|
1273
1195
|
/**
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
let postAdminQueueJobs = (~body: postAdminQueueJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1196
|
+
admin/queue/jobs
|
|
1197
|
+
|
|
1198
|
+
No description provided.
|
|
1199
|
+
|
|
1200
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
1201
|
+
*/
|
|
1202
|
+
let postAdminQueueJobs = async (~body: postAdminQueueJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueJobsResponse => {
|
|
1281
1203
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueJobsRequestSchema)
|
|
1282
|
-
fetch(
|
|
1204
|
+
let response = await fetch(
|
|
1283
1205
|
~url="/admin/queue/jobs",
|
|
1284
1206
|
~method_="POST",
|
|
1285
1207
|
~body=Some(jsonBody),
|
|
1286
|
-
)
|
|
1287
|
-
|
|
1288
|
-
value
|
|
1289
|
-
->Promise.resolve
|
|
1290
|
-
})
|
|
1208
|
+
)
|
|
1209
|
+
response->S.parseOrThrow(postAdminQueueJobsResponseSchema)
|
|
1291
1210
|
}
|
|
1292
1211
|
|
|
1293
1212
|
type postAdminQueuePromoteJobsRequest = {
|
|
@@ -1301,23 +1220,20 @@ let postAdminQueuePromoteJobsRequestSchema = S.object(s => {
|
|
|
1301
1220
|
type postAdminQueuePromoteJobsResponse = unit
|
|
1302
1221
|
|
|
1303
1222
|
/**
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
let postAdminQueuePromoteJobs = (~body: postAdminQueuePromoteJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1223
|
+
admin/queue/promote-jobs
|
|
1224
|
+
|
|
1225
|
+
No description provided.
|
|
1226
|
+
|
|
1227
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
1228
|
+
*/
|
|
1229
|
+
let postAdminQueuePromoteJobs = async (~body: postAdminQueuePromoteJobsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueuePromoteJobsResponse => {
|
|
1311
1230
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueuePromoteJobsRequestSchema)
|
|
1312
|
-
fetch(
|
|
1231
|
+
let response = await fetch(
|
|
1313
1232
|
~url="/admin/queue/promote-jobs",
|
|
1314
1233
|
~method_="POST",
|
|
1315
1234
|
~body=Some(jsonBody),
|
|
1316
|
-
)
|
|
1235
|
+
)
|
|
1317
1236
|
let _ = response
|
|
1318
|
-
()
|
|
1319
|
-
->Promise.resolve
|
|
1320
|
-
})
|
|
1321
1237
|
}
|
|
1322
1238
|
|
|
1323
1239
|
type postAdminQueueQueueStatsRequest = {
|
|
@@ -1405,23 +1321,20 @@ let postAdminQueueQueueStatsResponseSchema = S.object(s => {
|
|
|
1405
1321
|
})
|
|
1406
1322
|
|
|
1407
1323
|
/**
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
let postAdminQueueQueueStats = (~body: postAdminQueueQueueStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1324
|
+
admin/queue/queue-stats
|
|
1325
|
+
|
|
1326
|
+
No description provided.
|
|
1327
|
+
|
|
1328
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
1329
|
+
*/
|
|
1330
|
+
let postAdminQueueQueueStats = async (~body: postAdminQueueQueueStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueQueueStatsResponse => {
|
|
1415
1331
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueQueueStatsRequestSchema)
|
|
1416
|
-
fetch(
|
|
1332
|
+
let response = await fetch(
|
|
1417
1333
|
~url="/admin/queue/queue-stats",
|
|
1418
1334
|
~method_="POST",
|
|
1419
1335
|
~body=Some(jsonBody),
|
|
1420
|
-
)
|
|
1421
|
-
|
|
1422
|
-
value
|
|
1423
|
-
->Promise.resolve
|
|
1424
|
-
})
|
|
1336
|
+
)
|
|
1337
|
+
response->S.parseOrThrow(postAdminQueueQueueStatsResponseSchema)
|
|
1425
1338
|
}
|
|
1426
1339
|
|
|
1427
1340
|
type postAdminQueueQueuesResponse_2 = {
|
|
@@ -1453,23 +1366,20 @@ let postAdminQueueQueuesResponse_1Schema = S.object(s => {
|
|
|
1453
1366
|
let postAdminQueueQueuesResponseSchema = S.array(postAdminQueueQueuesResponse_1Schema)
|
|
1454
1367
|
|
|
1455
1368
|
/**
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
let postAdminQueueQueues = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1463
|
-
|
|
1464
|
-
fetch(
|
|
1369
|
+
admin/queue/queues
|
|
1370
|
+
|
|
1371
|
+
No description provided.
|
|
1372
|
+
|
|
1373
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
1374
|
+
*/
|
|
1375
|
+
let postAdminQueueQueues = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueQueuesResponse => {
|
|
1376
|
+
|
|
1377
|
+
let response = await fetch(
|
|
1465
1378
|
~url="/admin/queue/queues",
|
|
1466
1379
|
~method_="POST",
|
|
1467
1380
|
~body=None,
|
|
1468
|
-
)
|
|
1469
|
-
|
|
1470
|
-
value
|
|
1471
|
-
->Promise.resolve
|
|
1472
|
-
})
|
|
1381
|
+
)
|
|
1382
|
+
response->S.parseOrThrow(postAdminQueueQueuesResponseSchema)
|
|
1473
1383
|
}
|
|
1474
1384
|
|
|
1475
1385
|
type postAdminQueueRemoveJobRequest = {
|
|
@@ -1485,23 +1395,20 @@ let postAdminQueueRemoveJobRequestSchema = S.object(s => {
|
|
|
1485
1395
|
type postAdminQueueRemoveJobResponse = unit
|
|
1486
1396
|
|
|
1487
1397
|
/**
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
let postAdminQueueRemoveJob = (~body: postAdminQueueRemoveJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1398
|
+
admin/queue/remove-job
|
|
1399
|
+
|
|
1400
|
+
No description provided.
|
|
1401
|
+
|
|
1402
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
1403
|
+
*/
|
|
1404
|
+
let postAdminQueueRemoveJob = async (~body: postAdminQueueRemoveJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueRemoveJobResponse => {
|
|
1495
1405
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueRemoveJobRequestSchema)
|
|
1496
|
-
fetch(
|
|
1406
|
+
let response = await fetch(
|
|
1497
1407
|
~url="/admin/queue/remove-job",
|
|
1498
1408
|
~method_="POST",
|
|
1499
1409
|
~body=Some(jsonBody),
|
|
1500
|
-
)
|
|
1410
|
+
)
|
|
1501
1411
|
let _ = response
|
|
1502
|
-
()
|
|
1503
|
-
->Promise.resolve
|
|
1504
|
-
})
|
|
1505
1412
|
}
|
|
1506
1413
|
|
|
1507
1414
|
type postAdminQueueRetryJobRequest = {
|
|
@@ -1517,23 +1424,20 @@ let postAdminQueueRetryJobRequestSchema = S.object(s => {
|
|
|
1517
1424
|
type postAdminQueueRetryJobResponse = unit
|
|
1518
1425
|
|
|
1519
1426
|
/**
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
let postAdminQueueRetryJob = (~body: postAdminQueueRetryJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1427
|
+
admin/queue/retry-job
|
|
1428
|
+
|
|
1429
|
+
No description provided.
|
|
1430
|
+
|
|
1431
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:queue*
|
|
1432
|
+
*/
|
|
1433
|
+
let postAdminQueueRetryJob = async (~body: postAdminQueueRetryJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueRetryJobResponse => {
|
|
1527
1434
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueRetryJobRequestSchema)
|
|
1528
|
-
fetch(
|
|
1435
|
+
let response = await fetch(
|
|
1529
1436
|
~url="/admin/queue/retry-job",
|
|
1530
1437
|
~method_="POST",
|
|
1531
1438
|
~body=Some(jsonBody),
|
|
1532
|
-
)
|
|
1439
|
+
)
|
|
1533
1440
|
let _ = response
|
|
1534
|
-
()
|
|
1535
|
-
->Promise.resolve
|
|
1536
|
-
})
|
|
1537
1441
|
}
|
|
1538
1442
|
|
|
1539
1443
|
type postAdminQueueShowJobRequest = {
|
|
@@ -1551,23 +1455,20 @@ type postAdminQueueShowJobResponse = KokonectLinkComponentSchemas.QueueJob.t
|
|
|
1551
1455
|
let postAdminQueueShowJobResponseSchema = KokonectLinkComponentSchemas.QueueJob.schema
|
|
1552
1456
|
|
|
1553
1457
|
/**
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
let postAdminQueueShowJob = (~body: postAdminQueueShowJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1458
|
+
admin/queue/show-job
|
|
1459
|
+
|
|
1460
|
+
No description provided.
|
|
1461
|
+
|
|
1462
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
1463
|
+
*/
|
|
1464
|
+
let postAdminQueueShowJob = async (~body: postAdminQueueShowJobRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueShowJobResponse => {
|
|
1561
1465
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueShowJobRequestSchema)
|
|
1562
|
-
fetch(
|
|
1466
|
+
let response = await fetch(
|
|
1563
1467
|
~url="/admin/queue/show-job",
|
|
1564
1468
|
~method_="POST",
|
|
1565
1469
|
~body=Some(jsonBody),
|
|
1566
|
-
)
|
|
1567
|
-
|
|
1568
|
-
value
|
|
1569
|
-
->Promise.resolve
|
|
1570
|
-
})
|
|
1470
|
+
)
|
|
1471
|
+
response->S.parseOrThrow(postAdminQueueShowJobResponseSchema)
|
|
1571
1472
|
}
|
|
1572
1473
|
|
|
1573
1474
|
type postAdminQueueShowJobLogsRequest = {
|
|
@@ -1585,23 +1486,20 @@ type postAdminQueueShowJobLogsResponse = array<string>
|
|
|
1585
1486
|
let postAdminQueueShowJobLogsResponseSchema = S.array(S.string)
|
|
1586
1487
|
|
|
1587
1488
|
/**
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
let postAdminQueueShowJobLogs = (~body: postAdminQueueShowJobLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1489
|
+
admin/queue/show-job-logs
|
|
1490
|
+
|
|
1491
|
+
No description provided.
|
|
1492
|
+
|
|
1493
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:queue*
|
|
1494
|
+
*/
|
|
1495
|
+
let postAdminQueueShowJobLogs = async (~body: postAdminQueueShowJobLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminQueueShowJobLogsResponse => {
|
|
1595
1496
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminQueueShowJobLogsRequestSchema)
|
|
1596
|
-
fetch(
|
|
1497
|
+
let response = await fetch(
|
|
1597
1498
|
~url="/admin/queue/show-job-logs",
|
|
1598
1499
|
~method_="POST",
|
|
1599
1500
|
~body=Some(jsonBody),
|
|
1600
|
-
)
|
|
1601
|
-
|
|
1602
|
-
value
|
|
1603
|
-
->Promise.resolve
|
|
1604
|
-
})
|
|
1501
|
+
)
|
|
1502
|
+
response->S.parseOrThrow(postAdminQueueShowJobLogsResponseSchema)
|
|
1605
1503
|
}
|
|
1606
1504
|
|
|
1607
1505
|
type postAdminResolveAbuseUserReportRequest = {
|
|
@@ -1617,23 +1515,20 @@ let postAdminResolveAbuseUserReportRequestSchema = S.object(s => {
|
|
|
1617
1515
|
type postAdminResolveAbuseUserReportResponse = unit
|
|
1618
1516
|
|
|
1619
1517
|
/**
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
let postAdminResolveAbuseUserReport = (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1518
|
+
admin/resolve-abuse-user-report
|
|
1519
|
+
|
|
1520
|
+
No description provided.
|
|
1521
|
+
|
|
1522
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:resolve-abuse-user-report*
|
|
1523
|
+
*/
|
|
1524
|
+
let postAdminResolveAbuseUserReport = async (~body: postAdminResolveAbuseUserReportRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminResolveAbuseUserReportResponse => {
|
|
1627
1525
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminResolveAbuseUserReportRequestSchema)
|
|
1628
|
-
fetch(
|
|
1526
|
+
let response = await fetch(
|
|
1629
1527
|
~url="/admin/resolve-abuse-user-report",
|
|
1630
1528
|
~method_="POST",
|
|
1631
1529
|
~body=Some(jsonBody),
|
|
1632
|
-
)
|
|
1530
|
+
)
|
|
1633
1531
|
let _ = response
|
|
1634
|
-
()
|
|
1635
|
-
->Promise.resolve
|
|
1636
|
-
})
|
|
1637
1532
|
}
|
|
1638
1533
|
|
|
1639
1534
|
type postAdminRolesAssignRequest = {
|
|
@@ -1651,23 +1546,20 @@ let postAdminRolesAssignRequestSchema = S.object(s => {
|
|
|
1651
1546
|
type postAdminRolesAssignResponse = unit
|
|
1652
1547
|
|
|
1653
1548
|
/**
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
let postAdminRolesAssign = (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1549
|
+
admin/roles/assign
|
|
1550
|
+
|
|
1551
|
+
No description provided.
|
|
1552
|
+
|
|
1553
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
1554
|
+
*/
|
|
1555
|
+
let postAdminRolesAssign = async (~body: postAdminRolesAssignRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesAssignResponse => {
|
|
1661
1556
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesAssignRequestSchema)
|
|
1662
|
-
fetch(
|
|
1557
|
+
let response = await fetch(
|
|
1663
1558
|
~url="/admin/roles/assign",
|
|
1664
1559
|
~method_="POST",
|
|
1665
1560
|
~body=Some(jsonBody),
|
|
1666
|
-
)
|
|
1561
|
+
)
|
|
1667
1562
|
let _ = response
|
|
1668
|
-
()
|
|
1669
|
-
->Promise.resolve
|
|
1670
|
-
})
|
|
1671
1563
|
}
|
|
1672
1564
|
|
|
1673
1565
|
type postAdminRolesCreateRequest = {
|
|
@@ -1711,23 +1603,20 @@ type postAdminRolesCreateResponse = KokonectLinkComponentSchemas.Role.t
|
|
|
1711
1603
|
let postAdminRolesCreateResponseSchema = KokonectLinkComponentSchemas.Role.schema
|
|
1712
1604
|
|
|
1713
1605
|
/**
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
let postAdminRolesCreate = (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1606
|
+
admin/roles/create
|
|
1607
|
+
|
|
1608
|
+
No description provided.
|
|
1609
|
+
|
|
1610
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
1611
|
+
*/
|
|
1612
|
+
let postAdminRolesCreate = async (~body: postAdminRolesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesCreateResponse => {
|
|
1721
1613
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesCreateRequestSchema)
|
|
1722
|
-
fetch(
|
|
1614
|
+
let response = await fetch(
|
|
1723
1615
|
~url="/admin/roles/create",
|
|
1724
1616
|
~method_="POST",
|
|
1725
1617
|
~body=Some(jsonBody),
|
|
1726
|
-
)
|
|
1727
|
-
|
|
1728
|
-
value
|
|
1729
|
-
->Promise.resolve
|
|
1730
|
-
})
|
|
1618
|
+
)
|
|
1619
|
+
response->S.parseOrThrow(postAdminRolesCreateResponseSchema)
|
|
1731
1620
|
}
|
|
1732
1621
|
|
|
1733
1622
|
type postAdminRolesShowRequest = {
|
|
@@ -1743,23 +1632,20 @@ type postAdminRolesShowResponse = KokonectLinkComponentSchemas.Role.t
|
|
|
1743
1632
|
let postAdminRolesShowResponseSchema = KokonectLinkComponentSchemas.Role.schema
|
|
1744
1633
|
|
|
1745
1634
|
/**
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
let postAdminRolesShow = (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1635
|
+
admin/roles/show
|
|
1636
|
+
|
|
1637
|
+
No description provided.
|
|
1638
|
+
|
|
1639
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:roles*
|
|
1640
|
+
*/
|
|
1641
|
+
let postAdminRolesShow = async (~body: postAdminRolesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesShowResponse => {
|
|
1753
1642
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesShowRequestSchema)
|
|
1754
|
-
fetch(
|
|
1643
|
+
let response = await fetch(
|
|
1755
1644
|
~url="/admin/roles/show",
|
|
1756
1645
|
~method_="POST",
|
|
1757
1646
|
~body=Some(jsonBody),
|
|
1758
|
-
)
|
|
1759
|
-
|
|
1760
|
-
value
|
|
1761
|
-
->Promise.resolve
|
|
1762
|
-
})
|
|
1647
|
+
)
|
|
1648
|
+
response->S.parseOrThrow(postAdminRolesShowResponseSchema)
|
|
1763
1649
|
}
|
|
1764
1650
|
|
|
1765
1651
|
type postAdminRolesUpdateRequest = {
|
|
@@ -1803,23 +1689,20 @@ let postAdminRolesUpdateRequestSchema = S.object(s => {
|
|
|
1803
1689
|
type postAdminRolesUpdateResponse = unit
|
|
1804
1690
|
|
|
1805
1691
|
/**
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
let postAdminRolesUpdate = (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1692
|
+
admin/roles/update
|
|
1693
|
+
|
|
1694
|
+
No description provided.
|
|
1695
|
+
|
|
1696
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:roles*
|
|
1697
|
+
*/
|
|
1698
|
+
let postAdminRolesUpdate = async (~body: postAdminRolesUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUpdateResponse => {
|
|
1813
1699
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUpdateRequestSchema)
|
|
1814
|
-
fetch(
|
|
1700
|
+
let response = await fetch(
|
|
1815
1701
|
~url="/admin/roles/update",
|
|
1816
1702
|
~method_="POST",
|
|
1817
1703
|
~body=Some(jsonBody),
|
|
1818
|
-
)
|
|
1704
|
+
)
|
|
1819
1705
|
let _ = response
|
|
1820
|
-
()
|
|
1821
|
-
->Promise.resolve
|
|
1822
|
-
})
|
|
1823
1706
|
}
|
|
1824
1707
|
|
|
1825
1708
|
type postAdminRolesUsersRequest = {
|
|
@@ -1859,23 +1742,20 @@ let postAdminRolesUsersResponse_1Schema = S.object(s => {
|
|
|
1859
1742
|
let postAdminRolesUsersResponseSchema = S.array(postAdminRolesUsersResponse_1Schema)
|
|
1860
1743
|
|
|
1861
1744
|
/**
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
let postAdminRolesUsers = (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1745
|
+
admin/roles/users
|
|
1746
|
+
|
|
1747
|
+
No description provided.
|
|
1748
|
+
|
|
1749
|
+
**Credential required**: *No* / **Permission**: *read:admin:roles*
|
|
1750
|
+
*/
|
|
1751
|
+
let postAdminRolesUsers = async (~body: postAdminRolesUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminRolesUsersResponse => {
|
|
1869
1752
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminRolesUsersRequestSchema)
|
|
1870
|
-
fetch(
|
|
1753
|
+
let response = await fetch(
|
|
1871
1754
|
~url="/admin/roles/users",
|
|
1872
1755
|
~method_="POST",
|
|
1873
1756
|
~body=Some(jsonBody),
|
|
1874
|
-
)
|
|
1875
|
-
|
|
1876
|
-
value
|
|
1877
|
-
->Promise.resolve
|
|
1878
|
-
})
|
|
1757
|
+
)
|
|
1758
|
+
response->S.parseOrThrow(postAdminRolesUsersResponseSchema)
|
|
1879
1759
|
}
|
|
1880
1760
|
|
|
1881
1761
|
type postAdminServerInfoResponse_4 = {
|
|
@@ -1937,23 +1817,20 @@ let postAdminServerInfoResponseSchema = S.object(s => {
|
|
|
1937
1817
|
})
|
|
1938
1818
|
|
|
1939
1819
|
/**
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
let postAdminServerInfo = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1947
|
-
|
|
1948
|
-
fetch(
|
|
1820
|
+
admin/server-info
|
|
1821
|
+
|
|
1822
|
+
No description provided.
|
|
1823
|
+
|
|
1824
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:server-info*
|
|
1825
|
+
*/
|
|
1826
|
+
let postAdminServerInfo = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminServerInfoResponse => {
|
|
1827
|
+
|
|
1828
|
+
let response = await fetch(
|
|
1949
1829
|
~url="/admin/server-info",
|
|
1950
1830
|
~method_="POST",
|
|
1951
1831
|
~body=None,
|
|
1952
|
-
)
|
|
1953
|
-
|
|
1954
|
-
value
|
|
1955
|
-
->Promise.resolve
|
|
1956
|
-
})
|
|
1832
|
+
)
|
|
1833
|
+
response->S.parseOrThrow(postAdminServerInfoResponseSchema)
|
|
1957
1834
|
}
|
|
1958
1835
|
|
|
1959
1836
|
type postAdminShowModerationLogsRequest = {
|
|
@@ -2001,23 +1878,20 @@ let postAdminShowModerationLogsResponse_1Schema = S.object(s => {
|
|
|
2001
1878
|
let postAdminShowModerationLogsResponseSchema = S.array(postAdminShowModerationLogsResponse_1Schema)
|
|
2002
1879
|
|
|
2003
1880
|
/**
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
let postAdminShowModerationLogs = (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1881
|
+
admin/show-moderation-logs
|
|
1882
|
+
|
|
1883
|
+
No description provided.
|
|
1884
|
+
|
|
1885
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-moderation-log*
|
|
1886
|
+
*/
|
|
1887
|
+
let postAdminShowModerationLogs = async (~body: postAdminShowModerationLogsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowModerationLogsResponse => {
|
|
2011
1888
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowModerationLogsRequestSchema)
|
|
2012
|
-
fetch(
|
|
1889
|
+
let response = await fetch(
|
|
2013
1890
|
~url="/admin/show-moderation-logs",
|
|
2014
1891
|
~method_="POST",
|
|
2015
1892
|
~body=Some(jsonBody),
|
|
2016
|
-
)
|
|
2017
|
-
|
|
2018
|
-
value
|
|
2019
|
-
->Promise.resolve
|
|
2020
|
-
})
|
|
1893
|
+
)
|
|
1894
|
+
response->S.parseOrThrow(postAdminShowModerationLogsResponseSchema)
|
|
2021
1895
|
}
|
|
2022
1896
|
|
|
2023
1897
|
type postAdminShowUserRequest = {
|
|
@@ -2141,23 +2015,20 @@ let postAdminShowUserResponseSchema = S.object(s => {
|
|
|
2141
2015
|
})
|
|
2142
2016
|
|
|
2143
2017
|
/**
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
let postAdminShowUser = (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2018
|
+
admin/show-user
|
|
2019
|
+
|
|
2020
|
+
No description provided.
|
|
2021
|
+
|
|
2022
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
|
2023
|
+
*/
|
|
2024
|
+
let postAdminShowUser = async (~body: postAdminShowUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminShowUserResponse => {
|
|
2151
2025
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminShowUserRequestSchema)
|
|
2152
|
-
fetch(
|
|
2026
|
+
let response = await fetch(
|
|
2153
2027
|
~url="/admin/show-user",
|
|
2154
2028
|
~method_="POST",
|
|
2155
2029
|
~body=Some(jsonBody),
|
|
2156
|
-
)
|
|
2157
|
-
|
|
2158
|
-
value
|
|
2159
|
-
->Promise.resolve
|
|
2160
|
-
})
|
|
2030
|
+
)
|
|
2031
|
+
response->S.parseOrThrow(postAdminShowUserResponseSchema)
|
|
2161
2032
|
}
|
|
2162
2033
|
|
|
2163
2034
|
type postAdminSystemWebhookCreateRequest = {
|
|
@@ -2181,24 +2052,21 @@ type postAdminSystemWebhookCreateResponse = KokonectLinkComponentSchemas.SystemW
|
|
|
2181
2052
|
let postAdminSystemWebhookCreateResponseSchema = KokonectLinkComponentSchemas.SystemWebhook.schema
|
|
2182
2053
|
|
|
2183
2054
|
/**
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
let postAdminSystemWebhookCreate = (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2055
|
+
admin/system-webhook/create
|
|
2056
|
+
|
|
2057
|
+
No description provided.
|
|
2058
|
+
|
|
2059
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
2060
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
2061
|
+
*/
|
|
2062
|
+
let postAdminSystemWebhookCreate = async (~body: postAdminSystemWebhookCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookCreateResponse => {
|
|
2192
2063
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookCreateRequestSchema)
|
|
2193
|
-
fetch(
|
|
2064
|
+
let response = await fetch(
|
|
2194
2065
|
~url="/admin/system-webhook/create",
|
|
2195
2066
|
~method_="POST",
|
|
2196
2067
|
~body=Some(jsonBody),
|
|
2197
|
-
)
|
|
2198
|
-
|
|
2199
|
-
value
|
|
2200
|
-
->Promise.resolve
|
|
2201
|
-
})
|
|
2068
|
+
)
|
|
2069
|
+
response->S.parseOrThrow(postAdminSystemWebhookCreateResponseSchema)
|
|
2202
2070
|
}
|
|
2203
2071
|
|
|
2204
2072
|
type postAdminSystemWebhookShowRequest = {
|
|
@@ -2214,24 +2082,21 @@ type postAdminSystemWebhookShowResponse = KokonectLinkComponentSchemas.SystemWeb
|
|
|
2214
2082
|
let postAdminSystemWebhookShowResponseSchema = KokonectLinkComponentSchemas.SystemWebhook.schema
|
|
2215
2083
|
|
|
2216
2084
|
/**
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
let postAdminSystemWebhookShow = (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2085
|
+
admin/system-webhook/show
|
|
2086
|
+
|
|
2087
|
+
No description provided.
|
|
2088
|
+
|
|
2089
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
2090
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
2091
|
+
*/
|
|
2092
|
+
let postAdminSystemWebhookShow = async (~body: postAdminSystemWebhookShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookShowResponse => {
|
|
2225
2093
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookShowRequestSchema)
|
|
2226
|
-
fetch(
|
|
2094
|
+
let response = await fetch(
|
|
2227
2095
|
~url="/admin/system-webhook/show",
|
|
2228
2096
|
~method_="POST",
|
|
2229
2097
|
~body=Some(jsonBody),
|
|
2230
|
-
)
|
|
2231
|
-
|
|
2232
|
-
value
|
|
2233
|
-
->Promise.resolve
|
|
2234
|
-
})
|
|
2098
|
+
)
|
|
2099
|
+
response->S.parseOrThrow(postAdminSystemWebhookShowResponseSchema)
|
|
2235
2100
|
}
|
|
2236
2101
|
|
|
2237
2102
|
type postAdminSystemWebhookUpdateRequest = {
|
|
@@ -2257,24 +2122,21 @@ type postAdminSystemWebhookUpdateResponse = KokonectLinkComponentSchemas.SystemW
|
|
|
2257
2122
|
let postAdminSystemWebhookUpdateResponseSchema = KokonectLinkComponentSchemas.SystemWebhook.schema
|
|
2258
2123
|
|
|
2259
2124
|
/**
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
let postAdminSystemWebhookUpdate = (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2125
|
+
admin/system-webhook/update
|
|
2126
|
+
|
|
2127
|
+
No description provided.
|
|
2128
|
+
|
|
2129
|
+
**Internal Endpoint**: This endpoint is an API for the cherrypick mainframe and is not intended for use by third parties.
|
|
2130
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:system-webhook*
|
|
2131
|
+
*/
|
|
2132
|
+
let postAdminSystemWebhookUpdate = async (~body: postAdminSystemWebhookUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminSystemWebhookUpdateResponse => {
|
|
2268
2133
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminSystemWebhookUpdateRequestSchema)
|
|
2269
|
-
fetch(
|
|
2134
|
+
let response = await fetch(
|
|
2270
2135
|
~url="/admin/system-webhook/update",
|
|
2271
2136
|
~method_="POST",
|
|
2272
2137
|
~body=Some(jsonBody),
|
|
2273
|
-
)
|
|
2274
|
-
|
|
2275
|
-
value
|
|
2276
|
-
->Promise.resolve
|
|
2277
|
-
})
|
|
2138
|
+
)
|
|
2139
|
+
response->S.parseOrThrow(postAdminSystemWebhookUpdateResponseSchema)
|
|
2278
2140
|
}
|
|
2279
2141
|
|
|
2280
2142
|
type postAdminUpdateMetaRequest_1 = {
|
|
@@ -2616,23 +2478,20 @@ let postAdminUpdateMetaRequestSchema = S.object(s => {
|
|
|
2616
2478
|
type postAdminUpdateMetaResponse = unit
|
|
2617
2479
|
|
|
2618
2480
|
/**
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
let postAdminUpdateMeta = (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2481
|
+
admin/update-meta
|
|
2482
|
+
|
|
2483
|
+
No description provided.
|
|
2484
|
+
|
|
2485
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:meta*
|
|
2486
|
+
*/
|
|
2487
|
+
let postAdminUpdateMeta = async (~body: postAdminUpdateMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateMetaResponse => {
|
|
2626
2488
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateMetaRequestSchema)
|
|
2627
|
-
fetch(
|
|
2489
|
+
let response = await fetch(
|
|
2628
2490
|
~url="/admin/update-meta",
|
|
2629
2491
|
~method_="POST",
|
|
2630
2492
|
~body=Some(jsonBody),
|
|
2631
|
-
)
|
|
2493
|
+
)
|
|
2632
2494
|
let _ = response
|
|
2633
|
-
()
|
|
2634
|
-
->Promise.resolve
|
|
2635
|
-
})
|
|
2636
2495
|
}
|
|
2637
2496
|
|
|
2638
2497
|
type postAdminUpdateProxyAccountRequest = {
|
|
@@ -2648,23 +2507,20 @@ type postAdminUpdateProxyAccountResponse = KokonectLinkComponentSchemas.UserDeta
|
|
|
2648
2507
|
let postAdminUpdateProxyAccountResponseSchema = KokonectLinkComponentSchemas.UserDetailed.schema
|
|
2649
2508
|
|
|
2650
2509
|
/**
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
let postAdminUpdateProxyAccount = (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2510
|
+
admin/update-proxy-account
|
|
2511
|
+
|
|
2512
|
+
No description provided.
|
|
2513
|
+
|
|
2514
|
+
**Credential required**: *Yes* / **Permission**: *write:admin:account*
|
|
2515
|
+
*/
|
|
2516
|
+
let postAdminUpdateProxyAccount = async (~body: postAdminUpdateProxyAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminUpdateProxyAccountResponse => {
|
|
2658
2517
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminUpdateProxyAccountRequestSchema)
|
|
2659
|
-
fetch(
|
|
2518
|
+
let response = await fetch(
|
|
2660
2519
|
~url="/admin/update-proxy-account",
|
|
2661
2520
|
~method_="POST",
|
|
2662
2521
|
~body=Some(jsonBody),
|
|
2663
|
-
)
|
|
2664
|
-
|
|
2665
|
-
value
|
|
2666
|
-
->Promise.resolve
|
|
2667
|
-
})
|
|
2522
|
+
)
|
|
2523
|
+
response->S.parseOrThrow(postAdminUpdateProxyAccountResponseSchema)
|
|
2668
2524
|
}
|
|
2669
2525
|
|
|
2670
2526
|
type postV2AdminEmojiListRequest_1 = {
|
|
@@ -2740,21 +2596,18 @@ let postV2AdminEmojiListResponseSchema = S.object(s => {
|
|
|
2740
2596
|
})
|
|
2741
2597
|
|
|
2742
2598
|
/**
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
let postV2AdminEmojiList = (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
2599
|
+
v2/admin/emoji/list
|
|
2600
|
+
|
|
2601
|
+
No description provided.
|
|
2602
|
+
|
|
2603
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:emoji*
|
|
2604
|
+
*/
|
|
2605
|
+
let postV2AdminEmojiList = async (~body: postV2AdminEmojiListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postV2AdminEmojiListResponse => {
|
|
2750
2606
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postV2AdminEmojiListRequestSchema)
|
|
2751
|
-
fetch(
|
|
2607
|
+
let response = await fetch(
|
|
2752
2608
|
~url="/v2/admin/emoji/list",
|
|
2753
2609
|
~method_="POST",
|
|
2754
2610
|
~body=Some(jsonBody),
|
|
2755
|
-
)
|
|
2756
|
-
|
|
2757
|
-
value
|
|
2758
|
-
->Promise.resolve
|
|
2759
|
-
})
|
|
2611
|
+
)
|
|
2612
|
+
response->S.parseOrThrow(postV2AdminEmojiListResponseSchema)
|
|
2760
2613
|
}
|