@f3liz/rescript-misskey-api 0.6.8 → 0.6.9
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/package.json +2 -2
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +144 -144
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +300 -300
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +12 -12
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +12 -12
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +36 -36
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +12 -12
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +162 -162
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +24 -24
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +64 -64
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +72 -72
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +36 -36
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +19 -19
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +6 -6
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +42 -42
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +24 -24
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +72 -72
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +12 -12
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +54 -54
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +174 -174
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +6 -6
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +18 -18
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +72 -72
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +20 -20
- 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 +207 -207
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +652 -652
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +36 -36
- package/src/generated/misskey-io/api/MisskeyIoApp.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +32 -32
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +78 -78
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +144 -144
- package/src/generated/misskey-io/api/MisskeyIoClip.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoClips.res +36 -36
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +363 -363
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +108 -108
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +66 -66
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +30 -30
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +60 -60
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +54 -54
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +36 -36
- package/src/generated/misskey-io/api/MisskeyIoLists.res +54 -54
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +145 -145
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +210 -210
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +24 -24
- package/src/generated/misskey-io/api/MisskeyIoPages.res +42 -42
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +12 -12
- package/src/generated/misskey-io/api/MisskeyIoRole.res +24 -24
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +169 -169
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +44 -44
- 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
|
@@ -246,12 +246,12 @@ let postAdminMetaResponseSchema = S.object(s => {
|
|
|
246
246
|
})
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
249
|
+
admin/meta
|
|
250
|
+
|
|
251
|
+
No description provided.
|
|
252
|
+
|
|
253
|
+
**Credential required**: *Yes* / **Permission**: *read:admin:meta*
|
|
254
|
+
*/
|
|
255
255
|
let postAdminMeta = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminMetaResponse> => {
|
|
256
256
|
|
|
257
257
|
fetch(
|
|
@@ -278,12 +278,12 @@ type postAnnouncementResponse = MisskeyIoComponentSchemas.Announcement.t
|
|
|
278
278
|
let postAnnouncementResponseSchema = MisskeyIoComponentSchemas.Announcement.schema
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
281
|
+
announcement
|
|
282
|
+
|
|
283
|
+
No description provided.
|
|
284
|
+
|
|
285
|
+
**Credential required**: *No*
|
|
286
|
+
*/
|
|
287
287
|
let postAnnouncement = (~body: postAnnouncementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAnnouncementResponse> => {
|
|
288
288
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAnnouncementRequestSchema)
|
|
289
289
|
fetch(
|
|
@@ -318,12 +318,12 @@ type postAnnouncementsResponse = array<MisskeyIoComponentSchemas.Announcement.t>
|
|
|
318
318
|
let postAnnouncementsResponseSchema = S.array(MisskeyIoComponentSchemas.Announcement.schema)
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
321
|
+
announcements
|
|
322
|
+
|
|
323
|
+
No description provided.
|
|
324
|
+
|
|
325
|
+
**Credential required**: *No*
|
|
326
|
+
*/
|
|
327
327
|
let postAnnouncements = (~body: postAnnouncementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAnnouncementsResponse> => {
|
|
328
328
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAnnouncementsRequestSchema)
|
|
329
329
|
fetch(
|
|
@@ -350,12 +350,12 @@ type postAnnouncementsShowResponse = MisskeyIoComponentSchemas.Announcement.t
|
|
|
350
350
|
let postAnnouncementsShowResponseSchema = MisskeyIoComponentSchemas.Announcement.schema
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
353
|
+
announcements/show
|
|
354
|
+
|
|
355
|
+
No description provided.
|
|
356
|
+
|
|
357
|
+
**Credential required**: *No*
|
|
358
|
+
*/
|
|
359
359
|
let postAnnouncementsShow = (~body: postAnnouncementsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAnnouncementsShowResponse> => {
|
|
360
360
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postAnnouncementsShowRequestSchema)
|
|
361
361
|
fetch(
|
|
@@ -382,12 +382,12 @@ type getEmojiResponse = MisskeyIoComponentSchemas.EmojiDetailed.t
|
|
|
382
382
|
let getEmojiResponseSchema = MisskeyIoComponentSchemas.EmojiDetailed.schema
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
385
|
+
emoji
|
|
386
|
+
|
|
387
|
+
No description provided.
|
|
388
|
+
|
|
389
|
+
**Credential required**: *No*
|
|
390
|
+
*/
|
|
391
391
|
let getEmoji = (~body: getEmojiRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getEmojiResponse> => {
|
|
392
392
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getEmojiRequestSchema)
|
|
393
393
|
fetch(
|
|
@@ -414,12 +414,12 @@ type postEmojiResponse = MisskeyIoComponentSchemas.EmojiDetailed.t
|
|
|
414
414
|
let postEmojiResponseSchema = MisskeyIoComponentSchemas.EmojiDetailed.schema
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
417
|
+
emoji
|
|
418
|
+
|
|
419
|
+
No description provided.
|
|
420
|
+
|
|
421
|
+
**Credential required**: *No*
|
|
422
|
+
*/
|
|
423
423
|
let postEmoji = (~body: postEmojiRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postEmojiResponse> => {
|
|
424
424
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postEmojiRequestSchema)
|
|
425
425
|
fetch(
|
|
@@ -442,12 +442,12 @@ let getEmojisResponseSchema = S.object(s => {
|
|
|
442
442
|
})
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
445
|
+
emojis
|
|
446
|
+
|
|
447
|
+
No description provided.
|
|
448
|
+
|
|
449
|
+
**Credential required**: *No*
|
|
450
|
+
*/
|
|
451
451
|
let getEmojis = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getEmojisResponse> => {
|
|
452
452
|
|
|
453
453
|
fetch(
|
|
@@ -470,12 +470,12 @@ let postEmojisResponseSchema = S.object(s => {
|
|
|
470
470
|
})
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
473
|
+
emojis
|
|
474
|
+
|
|
475
|
+
No description provided.
|
|
476
|
+
|
|
477
|
+
**Credential required**: *No*
|
|
478
|
+
*/
|
|
479
479
|
let postEmojis = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postEmojisResponse> => {
|
|
480
480
|
|
|
481
481
|
fetch(
|
|
@@ -520,12 +520,12 @@ let postEndpointResponse_1Schema = S.object(s => {
|
|
|
520
520
|
let postEndpointResponseSchema = S.nullableAsOption(postEndpointResponse_1Schema)
|
|
521
521
|
|
|
522
522
|
/**
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
523
|
+
endpoint
|
|
524
|
+
|
|
525
|
+
No description provided.
|
|
526
|
+
|
|
527
|
+
**Credential required**: *No*
|
|
528
|
+
*/
|
|
529
529
|
let postEndpoint = (~body: postEndpointRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postEndpointResponse> => {
|
|
530
530
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postEndpointRequestSchema)
|
|
531
531
|
fetch(
|
|
@@ -544,12 +544,12 @@ type postEndpointsResponse = array<string>
|
|
|
544
544
|
let postEndpointsResponseSchema = S.array(S.string)
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
547
|
+
endpoints
|
|
548
|
+
|
|
549
|
+
No description provided.
|
|
550
|
+
|
|
551
|
+
**Credential required**: *No*
|
|
552
|
+
*/
|
|
553
553
|
let postEndpoints = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postEndpointsResponse> => {
|
|
554
554
|
|
|
555
555
|
fetch(
|
|
@@ -584,13 +584,13 @@ let postFetchExternalResourcesResponseSchema = S.object(s => {
|
|
|
584
584
|
})
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
587
|
+
fetch-external-resources
|
|
588
|
+
|
|
589
|
+
No description provided.
|
|
590
|
+
|
|
591
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
592
|
+
**Credential required**: *Yes*
|
|
593
|
+
*/
|
|
594
594
|
let postFetchExternalResources = (~body: postFetchExternalResourcesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postFetchExternalResourcesResponse> => {
|
|
595
595
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFetchExternalResourcesRequestSchema)
|
|
596
596
|
fetch(
|
|
@@ -733,12 +733,12 @@ let getFetchRssResponseSchema = S.object(s => {
|
|
|
733
733
|
})
|
|
734
734
|
|
|
735
735
|
/**
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
736
|
+
fetch-rss
|
|
737
|
+
|
|
738
|
+
No description provided.
|
|
739
|
+
|
|
740
|
+
**Credential required**: *No*
|
|
741
|
+
*/
|
|
742
742
|
let getFetchRss = (~body: getFetchRssRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getFetchRssResponse> => {
|
|
743
743
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getFetchRssRequestSchema)
|
|
744
744
|
fetch(
|
|
@@ -881,12 +881,12 @@ let postFetchRssResponseSchema = S.object(s => {
|
|
|
881
881
|
})
|
|
882
882
|
|
|
883
883
|
/**
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
884
|
+
fetch-rss
|
|
885
|
+
|
|
886
|
+
No description provided.
|
|
887
|
+
|
|
888
|
+
**Credential required**: *No*
|
|
889
|
+
*/
|
|
890
890
|
let postFetchRss = (~body: postFetchRssRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postFetchRssResponse> => {
|
|
891
891
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFetchRssRequestSchema)
|
|
892
892
|
fetch(
|
|
@@ -909,12 +909,12 @@ let getGetOnlineUsersCountResponseSchema = S.object(s => {
|
|
|
909
909
|
})
|
|
910
910
|
|
|
911
911
|
/**
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
912
|
+
get-online-users-count
|
|
913
|
+
|
|
914
|
+
No description provided.
|
|
915
|
+
|
|
916
|
+
**Credential required**: *No*
|
|
917
|
+
*/
|
|
918
918
|
let getGetOnlineUsersCount = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getGetOnlineUsersCountResponse> => {
|
|
919
919
|
|
|
920
920
|
fetch(
|
|
@@ -937,12 +937,12 @@ let postGetOnlineUsersCountResponseSchema = S.object(s => {
|
|
|
937
937
|
})
|
|
938
938
|
|
|
939
939
|
/**
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
940
|
+
get-online-users-count
|
|
941
|
+
|
|
942
|
+
No description provided.
|
|
943
|
+
|
|
944
|
+
**Credential required**: *No*
|
|
945
|
+
*/
|
|
946
946
|
let postGetOnlineUsersCount = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postGetOnlineUsersCountResponse> => {
|
|
947
947
|
|
|
948
948
|
fetch(
|
|
@@ -961,12 +961,12 @@ type postInviteCreateResponse = MisskeyIoComponentSchemas.InviteCode.t
|
|
|
961
961
|
let postInviteCreateResponseSchema = MisskeyIoComponentSchemas.InviteCode.schema
|
|
962
962
|
|
|
963
963
|
/**
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
964
|
+
invite/create
|
|
965
|
+
|
|
966
|
+
No description provided.
|
|
967
|
+
|
|
968
|
+
**Credential required**: *Yes* / **Permission**: *write:invite-codes*
|
|
969
|
+
*/
|
|
970
970
|
let postInviteCreate = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postInviteCreateResponse> => {
|
|
971
971
|
|
|
972
972
|
fetch(
|
|
@@ -991,12 +991,12 @@ let postInviteDeleteRequestSchema = S.object(s => {
|
|
|
991
991
|
type postInviteDeleteResponse = unit
|
|
992
992
|
|
|
993
993
|
/**
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
994
|
+
invite/delete
|
|
995
|
+
|
|
996
|
+
No description provided.
|
|
997
|
+
|
|
998
|
+
**Credential required**: *Yes* / **Permission**: *write:invite-codes*
|
|
999
|
+
*/
|
|
1000
1000
|
let postInviteDelete = (~body: postInviteDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postInviteDeleteResponse> => {
|
|
1001
1001
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postInviteDeleteRequestSchema)
|
|
1002
1002
|
fetch(
|
|
@@ -1019,12 +1019,12 @@ let postInviteLimitResponseSchema = S.object(s => {
|
|
|
1019
1019
|
})
|
|
1020
1020
|
|
|
1021
1021
|
/**
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1022
|
+
invite/limit
|
|
1023
|
+
|
|
1024
|
+
No description provided.
|
|
1025
|
+
|
|
1026
|
+
**Credential required**: *Yes* / **Permission**: *read:invite-codes*
|
|
1027
|
+
*/
|
|
1028
1028
|
let postInviteLimit = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postInviteLimitResponse> => {
|
|
1029
1029
|
|
|
1030
1030
|
fetch(
|
|
@@ -1055,12 +1055,12 @@ type postInviteListResponse = array<MisskeyIoComponentSchemas.InviteCode.t>
|
|
|
1055
1055
|
let postInviteListResponseSchema = S.array(MisskeyIoComponentSchemas.InviteCode.schema)
|
|
1056
1056
|
|
|
1057
1057
|
/**
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1058
|
+
invite/list
|
|
1059
|
+
|
|
1060
|
+
No description provided.
|
|
1061
|
+
|
|
1062
|
+
**Credential required**: *Yes* / **Permission**: *read:invite-codes*
|
|
1063
|
+
*/
|
|
1064
1064
|
let postInviteList = (~body: postInviteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postInviteListResponse> => {
|
|
1065
1065
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postInviteListRequestSchema)
|
|
1066
1066
|
fetch(
|
|
@@ -1087,12 +1087,12 @@ type getMetaResponse = dict<JSON.t>
|
|
|
1087
1087
|
let getMetaResponseSchema = S.dict(S.json)
|
|
1088
1088
|
|
|
1089
1089
|
/**
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1090
|
+
meta
|
|
1091
|
+
|
|
1092
|
+
No description provided.
|
|
1093
|
+
|
|
1094
|
+
**Credential required**: *No*
|
|
1095
|
+
*/
|
|
1096
1096
|
let getMeta = (~body: getMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getMetaResponse> => {
|
|
1097
1097
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getMetaRequestSchema)
|
|
1098
1098
|
fetch(
|
|
@@ -1119,12 +1119,12 @@ type postMetaResponse = dict<JSON.t>
|
|
|
1119
1119
|
let postMetaResponseSchema = S.dict(S.json)
|
|
1120
1120
|
|
|
1121
1121
|
/**
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1122
|
+
meta
|
|
1123
|
+
|
|
1124
|
+
No description provided.
|
|
1125
|
+
|
|
1126
|
+
**Credential required**: *No*
|
|
1127
|
+
*/
|
|
1128
1128
|
let postMeta = (~body: postMetaRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postMetaResponse> => {
|
|
1129
1129
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMetaRequestSchema)
|
|
1130
1130
|
fetch(
|
|
@@ -1147,12 +1147,12 @@ let postPingResponseSchema = S.object(s => {
|
|
|
1147
1147
|
})
|
|
1148
1148
|
|
|
1149
1149
|
/**
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1150
|
+
ping
|
|
1151
|
+
|
|
1152
|
+
No description provided.
|
|
1153
|
+
|
|
1154
|
+
**Credential required**: *No*
|
|
1155
|
+
*/
|
|
1156
1156
|
let postPing = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postPingResponse> => {
|
|
1157
1157
|
|
|
1158
1158
|
fetch(
|
|
@@ -1187,12 +1187,12 @@ let getStatsResponseSchema = S.object(s => {
|
|
|
1187
1187
|
})
|
|
1188
1188
|
|
|
1189
1189
|
/**
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1190
|
+
stats
|
|
1191
|
+
|
|
1192
|
+
No description provided.
|
|
1193
|
+
|
|
1194
|
+
**Credential required**: *No*
|
|
1195
|
+
*/
|
|
1196
1196
|
let getStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getStatsResponse> => {
|
|
1197
1197
|
|
|
1198
1198
|
fetch(
|
|
@@ -1227,12 +1227,12 @@ let postStatsResponseSchema = S.object(s => {
|
|
|
1227
1227
|
})
|
|
1228
1228
|
|
|
1229
1229
|
/**
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1230
|
+
stats
|
|
1231
|
+
|
|
1232
|
+
No description provided.
|
|
1233
|
+
|
|
1234
|
+
**Credential required**: *No*
|
|
1235
|
+
*/
|
|
1236
1236
|
let postStats = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postStatsResponse> => {
|
|
1237
1237
|
|
|
1238
1238
|
fetch(
|
|
@@ -8,12 +8,12 @@ S.enableJson()
|
|
|
8
8
|
type postResetDbResponse = unit
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
reset-db
|
|
12
|
+
|
|
13
|
+
Only available when running with <code>NODE_ENV=testing</code>. Reset the database and flush Redis.
|
|
14
|
+
|
|
15
|
+
**Credential required**: *No*
|
|
16
|
+
*/
|
|
17
17
|
let postResetDb = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postResetDbResponse> => {
|
|
18
18
|
|
|
19
19
|
fetch(
|
|
@@ -60,12 +60,12 @@ let postTestResponseSchema = S.object(s => {
|
|
|
60
60
|
})
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
test
|
|
64
|
+
|
|
65
|
+
Endpoint for testing input validation.
|
|
66
|
+
|
|
67
|
+
**Credential required**: *No*
|
|
68
|
+
*/
|
|
69
69
|
let postTest = (~body: postTestRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postTestResponse> => {
|
|
70
70
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postTestRequestSchema)
|
|
71
71
|
fetch(
|