@f3liz/rescript-misskey-api 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +241 -313
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +485 -632
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +260 -341
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +101 -131
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +31 -40
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +10 -13
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +70 -91
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +116 -152
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +94 -121
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +289 -376
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +9 -12
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +29 -38
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +30 -39
- package/src/generated/kokonect-link/types/Account.d.ts +235 -177
- package/src/generated/kokonect-link/types/Admin.d.ts +640 -484
- package/src/generated/kokonect-link/types/Antennas.d.ts +36 -27
- package/src/generated/kokonect-link/types/App.d.ts +16 -12
- package/src/generated/kokonect-link/types/Auth.d.ts +30 -23
- package/src/generated/kokonect-link/types/Channels.d.ts +76 -57
- package/src/generated/kokonect-link/types/Charts.d.ts +104 -78
- package/src/generated/kokonect-link/types/Chat.d.ts +108 -81
- package/src/generated/kokonect-link/types/Clip.d.ts +8 -6
- package/src/generated/kokonect-link/types/Clips.d.ts +40 -30
- package/src/generated/kokonect-link/types/Default.d.ts +297 -232
- package/src/generated/kokonect-link/types/Drive.d.ts +120 -90
- package/src/generated/kokonect-link/types/Federation.d.ts +68 -51
- package/src/generated/kokonect-link/types/Flash.d.ts +33 -25
- package/src/generated/kokonect-link/types/Flashs.d.ts +12 -9
- package/src/generated/kokonect-link/types/Following.d.ts +68 -51
- package/src/generated/kokonect-link/types/Gallery.d.ts +52 -39
- package/src/generated/kokonect-link/types/Groups.d.ts +48 -36
- package/src/generated/kokonect-link/types/Hashtags.d.ts +32 -24
- package/src/generated/kokonect-link/types/Lists.d.ts +48 -36
- package/src/generated/kokonect-link/types/Meta.d.ts +133 -100
- package/src/generated/kokonect-link/types/NonProductive.d.ts +8 -6
- package/src/generated/kokonect-link/types/Notes.d.ts +256 -192
- package/src/generated/kokonect-link/types/Notifications.d.ts +20 -15
- package/src/generated/kokonect-link/types/Pages.d.ts +40 -30
- package/src/generated/kokonect-link/types/Reactions.d.ts +8 -6
- package/src/generated/kokonect-link/types/ResetPassword.d.ts +8 -6
- package/src/generated/kokonect-link/types/Role.d.ts +28 -21
- package/src/generated/kokonect-link/types/Users.d.ts +161 -121
- package/src/generated/kokonect-link/types/Webhooks.d.ts +44 -34
- package/src/generated/kokonect-link/types/index.d.ts +1 -2
- package/src/generated/kokonect-link/wrapper/index.d.ts +4813 -2131
- package/src/generated/kokonect-link/wrapper/index.mjs +2 -710
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +335 -437
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +1035 -1356
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoApp.res +20 -26
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +51 -66
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +129 -168
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +240 -312
- package/src/generated/misskey-io/api/MisskeyIoClip.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoClips.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +561 -726
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +178 -232
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +109 -142
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +47 -62
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +97 -127
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +88 -115
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +62 -80
- package/src/generated/misskey-io/api/MisskeyIoLists.res +86 -113
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +251 -323
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +341 -446
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +39 -51
- package/src/generated/misskey-io/api/MisskeyIoPages.res +67 -88
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoRole.res +41 -53
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +284 -368
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +69 -90
- package/src/generated/misskey-io/types/Account.d.ts +139 -105
- package/src/generated/misskey-io/types/Admin.d.ts +438 -331
- package/src/generated/misskey-io/types/Antennas.d.ts +24 -18
- package/src/generated/misskey-io/types/App.d.ts +8 -6
- package/src/generated/misskey-io/types/Auth.d.ts +22 -17
- package/src/generated/misskey-io/types/Channels.d.ts +52 -39
- package/src/generated/misskey-io/types/Charts.d.ts +96 -72
- package/src/generated/misskey-io/types/Clip.d.ts +8 -6
- package/src/generated/misskey-io/types/Clips.d.ts +24 -18
- package/src/generated/misskey-io/types/Default.d.ts +253 -198
- package/src/generated/misskey-io/types/Drive.d.ts +72 -54
- package/src/generated/misskey-io/types/Federation.d.ts +44 -33
- package/src/generated/misskey-io/types/Flash.d.ts +20 -15
- package/src/generated/misskey-io/types/Flashs.d.ts +8 -6
- package/src/generated/misskey-io/types/Following.d.ts +40 -30
- package/src/generated/misskey-io/types/Gallery.d.ts +36 -27
- package/src/generated/misskey-io/types/Hashtags.d.ts +24 -18
- package/src/generated/misskey-io/types/Lists.d.ts +36 -27
- package/src/generated/misskey-io/types/Meta.d.ts +97 -73
- package/src/generated/misskey-io/types/NonProductive.d.ts +8 -6
- package/src/generated/misskey-io/types/Notes.d.ts +140 -105
- package/src/generated/misskey-io/types/Notifications.d.ts +16 -12
- package/src/generated/misskey-io/types/Pages.d.ts +28 -21
- package/src/generated/misskey-io/types/Reactions.d.ts +8 -6
- package/src/generated/misskey-io/types/ResetPassword.d.ts +8 -6
- package/src/generated/misskey-io/types/Role.d.ts +16 -12
- package/src/generated/misskey-io/types/Users.d.ts +113 -85
- package/src/generated/misskey-io/types/Webhooks.d.ts +30 -23
- package/src/generated/misskey-io/types/index.d.ts +1 -2
- package/src/generated/misskey-io/wrapper/index.d.ts +3127 -1399
- package/src/generated/misskey-io/wrapper/index.mjs +2 -469
|
@@ -18,23 +18,20 @@ type postBlockingCreateResponse = KokonectLinkComponentSchemas.UserDetailedNotMe
|
|
|
18
18
|
let postBlockingCreateResponseSchema = KokonectLinkComponentSchemas.UserDetailedNotMe.schema
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
let postBlockingCreate = (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
21
|
+
blocking/create
|
|
22
|
+
|
|
23
|
+
No description provided.
|
|
24
|
+
|
|
25
|
+
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
26
|
+
*/
|
|
27
|
+
let postBlockingCreate = async (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingCreateResponse => {
|
|
28
28
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingCreateRequestSchema)
|
|
29
|
-
fetch(
|
|
29
|
+
let response = await fetch(
|
|
30
30
|
~url="/blocking/create",
|
|
31
31
|
~method_="POST",
|
|
32
32
|
~body=Some(jsonBody),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
value
|
|
36
|
-
->Promise.resolve
|
|
37
|
-
})
|
|
33
|
+
)
|
|
34
|
+
response->S.parseOrThrow(postBlockingCreateResponseSchema)
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
type postBlockingDeleteRequest = {
|
|
@@ -50,23 +47,20 @@ type postBlockingDeleteResponse = KokonectLinkComponentSchemas.UserDetailedNotMe
|
|
|
50
47
|
let postBlockingDeleteResponseSchema = KokonectLinkComponentSchemas.UserDetailedNotMe.schema
|
|
51
48
|
|
|
52
49
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
let postBlockingDelete = (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
50
|
+
blocking/delete
|
|
51
|
+
|
|
52
|
+
No description provided.
|
|
53
|
+
|
|
54
|
+
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
55
|
+
*/
|
|
56
|
+
let postBlockingDelete = async (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingDeleteResponse => {
|
|
60
57
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingDeleteRequestSchema)
|
|
61
|
-
fetch(
|
|
58
|
+
let response = await fetch(
|
|
62
59
|
~url="/blocking/delete",
|
|
63
60
|
~method_="POST",
|
|
64
61
|
~body=Some(jsonBody),
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
value
|
|
68
|
-
->Promise.resolve
|
|
69
|
-
})
|
|
62
|
+
)
|
|
63
|
+
response->S.parseOrThrow(postBlockingDeleteResponseSchema)
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
type postBlockingListRequest = {
|
|
@@ -90,23 +84,20 @@ type postBlockingListResponse = array<KokonectLinkComponentSchemas.Blocking.t>
|
|
|
90
84
|
let postBlockingListResponseSchema = S.array(KokonectLinkComponentSchemas.Blocking.schema)
|
|
91
85
|
|
|
92
86
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
let postBlockingList = (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
87
|
+
blocking/list
|
|
88
|
+
|
|
89
|
+
No description provided.
|
|
90
|
+
|
|
91
|
+
**Credential required**: *Yes* / **Permission**: *read:blocks*
|
|
92
|
+
*/
|
|
93
|
+
let postBlockingList = async (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingListResponse => {
|
|
100
94
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingListRequestSchema)
|
|
101
|
-
fetch(
|
|
95
|
+
let response = await fetch(
|
|
102
96
|
~url="/blocking/list",
|
|
103
97
|
~method_="POST",
|
|
104
98
|
~body=Some(jsonBody),
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
value
|
|
108
|
-
->Promise.resolve
|
|
109
|
-
})
|
|
99
|
+
)
|
|
100
|
+
response->S.parseOrThrow(postBlockingListResponseSchema)
|
|
110
101
|
}
|
|
111
102
|
|
|
112
103
|
type postClipsNotesRequest = {
|
|
@@ -134,23 +125,20 @@ type postClipsNotesResponse = array<KokonectLinkComponentSchemas.Note.t>
|
|
|
134
125
|
let postClipsNotesResponseSchema = S.array(KokonectLinkComponentSchemas.Note.schema)
|
|
135
126
|
|
|
136
127
|
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
let postClipsNotes = (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
128
|
+
clips/notes
|
|
129
|
+
|
|
130
|
+
No description provided.
|
|
131
|
+
|
|
132
|
+
**Credential required**: *No* / **Permission**: *read:account*
|
|
133
|
+
*/
|
|
134
|
+
let postClipsNotes = async (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsNotesResponse => {
|
|
144
135
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsNotesRequestSchema)
|
|
145
|
-
fetch(
|
|
136
|
+
let response = await fetch(
|
|
146
137
|
~url="/clips/notes",
|
|
147
138
|
~method_="POST",
|
|
148
139
|
~body=Some(jsonBody),
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
value
|
|
152
|
-
->Promise.resolve
|
|
153
|
-
})
|
|
140
|
+
)
|
|
141
|
+
response->S.parseOrThrow(postClipsNotesResponseSchema)
|
|
154
142
|
}
|
|
155
143
|
|
|
156
144
|
type postFlashMyRequest = {
|
|
@@ -174,23 +162,20 @@ type postFlashMyResponse = array<KokonectLinkComponentSchemas.Flash.t>
|
|
|
174
162
|
let postFlashMyResponseSchema = S.array(KokonectLinkComponentSchemas.Flash.schema)
|
|
175
163
|
|
|
176
164
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
let postFlashMy = (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
165
|
+
flash/my
|
|
166
|
+
|
|
167
|
+
No description provided.
|
|
168
|
+
|
|
169
|
+
**Credential required**: *Yes* / **Permission**: *read:flash*
|
|
170
|
+
*/
|
|
171
|
+
let postFlashMy = async (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyResponse => {
|
|
184
172
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyRequestSchema)
|
|
185
|
-
fetch(
|
|
173
|
+
let response = await fetch(
|
|
186
174
|
~url="/flash/my",
|
|
187
175
|
~method_="POST",
|
|
188
176
|
~body=Some(jsonBody),
|
|
189
|
-
)
|
|
190
|
-
|
|
191
|
-
value
|
|
192
|
-
->Promise.resolve
|
|
193
|
-
})
|
|
177
|
+
)
|
|
178
|
+
response->S.parseOrThrow(postFlashMyResponseSchema)
|
|
194
179
|
}
|
|
195
180
|
|
|
196
181
|
type postFlashMyLikesRequest = {
|
|
@@ -226,23 +211,20 @@ let postFlashMyLikesResponse_1Schema = S.object(s => {
|
|
|
226
211
|
let postFlashMyLikesResponseSchema = S.array(postFlashMyLikesResponse_1Schema)
|
|
227
212
|
|
|
228
213
|
/**
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
let postFlashMyLikes = (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
214
|
+
flash/my-likes
|
|
215
|
+
|
|
216
|
+
No description provided.
|
|
217
|
+
|
|
218
|
+
**Credential required**: *Yes* / **Permission**: *read:flash-likes*
|
|
219
|
+
*/
|
|
220
|
+
let postFlashMyLikes = async (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyLikesResponse => {
|
|
236
221
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyLikesRequestSchema)
|
|
237
|
-
fetch(
|
|
222
|
+
let response = await fetch(
|
|
238
223
|
~url="/flash/my-likes",
|
|
239
224
|
~method_="POST",
|
|
240
225
|
~body=Some(jsonBody),
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
value
|
|
244
|
-
->Promise.resolve
|
|
245
|
-
})
|
|
226
|
+
)
|
|
227
|
+
response->S.parseOrThrow(postFlashMyLikesResponseSchema)
|
|
246
228
|
}
|
|
247
229
|
|
|
248
230
|
type postIResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
@@ -250,23 +232,20 @@ type postIResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
|
250
232
|
let postIResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema
|
|
251
233
|
|
|
252
234
|
/**
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
let postI = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
260
|
-
|
|
261
|
-
fetch(
|
|
235
|
+
i
|
|
236
|
+
|
|
237
|
+
No description provided.
|
|
238
|
+
|
|
239
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
240
|
+
*/
|
|
241
|
+
let postI = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIResponse => {
|
|
242
|
+
|
|
243
|
+
let response = await fetch(
|
|
262
244
|
~url="/i",
|
|
263
245
|
~method_="POST",
|
|
264
246
|
~body=None,
|
|
265
|
-
)
|
|
266
|
-
|
|
267
|
-
value
|
|
268
|
-
->Promise.resolve
|
|
269
|
-
})
|
|
247
|
+
)
|
|
248
|
+
response->S.parseOrThrow(postIResponseSchema)
|
|
270
249
|
}
|
|
271
250
|
|
|
272
251
|
type postIAutoDeleteSettingsResponse = {
|
|
@@ -280,23 +259,20 @@ let postIAutoDeleteSettingsResponseSchema = S.object(s => {
|
|
|
280
259
|
})
|
|
281
260
|
|
|
282
261
|
/**
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
let postIAutoDeleteSettings = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
290
|
-
|
|
291
|
-
fetch(
|
|
262
|
+
i/auto-delete-settings
|
|
263
|
+
|
|
264
|
+
No description provided.
|
|
265
|
+
|
|
266
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
267
|
+
*/
|
|
268
|
+
let postIAutoDeleteSettings = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAutoDeleteSettingsResponse => {
|
|
269
|
+
|
|
270
|
+
let response = await fetch(
|
|
292
271
|
~url="/i/auto-delete-settings",
|
|
293
272
|
~method_="POST",
|
|
294
273
|
~body=None,
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
value
|
|
298
|
-
->Promise.resolve
|
|
299
|
-
})
|
|
274
|
+
)
|
|
275
|
+
response->S.parseOrThrow(postIAutoDeleteSettingsResponseSchema)
|
|
300
276
|
}
|
|
301
277
|
|
|
302
278
|
type postIFavoritesRequest = {
|
|
@@ -320,23 +296,20 @@ type postIFavoritesResponse = array<KokonectLinkComponentSchemas.NoteFavorite.t>
|
|
|
320
296
|
let postIFavoritesResponseSchema = S.array(KokonectLinkComponentSchemas.NoteFavorite.schema)
|
|
321
297
|
|
|
322
298
|
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
let postIFavorites = (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
299
|
+
i/favorites
|
|
300
|
+
|
|
301
|
+
No description provided.
|
|
302
|
+
|
|
303
|
+
**Credential required**: *Yes* / **Permission**: *read:favorites*
|
|
304
|
+
*/
|
|
305
|
+
let postIFavorites = async (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIFavoritesResponse => {
|
|
330
306
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIFavoritesRequestSchema)
|
|
331
|
-
fetch(
|
|
307
|
+
let response = await fetch(
|
|
332
308
|
~url="/i/favorites",
|
|
333
309
|
~method_="POST",
|
|
334
310
|
~body=Some(jsonBody),
|
|
335
|
-
)
|
|
336
|
-
|
|
337
|
-
value
|
|
338
|
-
->Promise.resolve
|
|
339
|
-
})
|
|
311
|
+
)
|
|
312
|
+
response->S.parseOrThrow(postIFavoritesResponseSchema)
|
|
340
313
|
}
|
|
341
314
|
|
|
342
315
|
type postIFollowersServersResponse_1 = {
|
|
@@ -360,23 +333,20 @@ let postIFollowersServersResponseSchema = S.object(s => {
|
|
|
360
333
|
})
|
|
361
334
|
|
|
362
335
|
/**
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
let postIFollowersServers = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
370
|
-
|
|
371
|
-
fetch(
|
|
336
|
+
i/followers-servers
|
|
337
|
+
|
|
338
|
+
No description provided.
|
|
339
|
+
|
|
340
|
+
**Credential required**: *Yes* / **Permission**: *read:following*
|
|
341
|
+
*/
|
|
342
|
+
let postIFollowersServers = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIFollowersServersResponse => {
|
|
343
|
+
|
|
344
|
+
let response = await fetch(
|
|
372
345
|
~url="/i/followers-servers",
|
|
373
346
|
~method_="POST",
|
|
374
347
|
~body=None,
|
|
375
|
-
)
|
|
376
|
-
|
|
377
|
-
value
|
|
378
|
-
->Promise.resolve
|
|
379
|
-
})
|
|
348
|
+
)
|
|
349
|
+
response->S.parseOrThrow(postIFollowersServersResponseSchema)
|
|
380
350
|
}
|
|
381
351
|
|
|
382
352
|
type postIGalleryLikesRequest = {
|
|
@@ -410,23 +380,20 @@ let postIGalleryLikesResponse_1Schema = S.object(s => {
|
|
|
410
380
|
let postIGalleryLikesResponseSchema = S.array(postIGalleryLikesResponse_1Schema)
|
|
411
381
|
|
|
412
382
|
/**
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
let postIGalleryLikes = (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
383
|
+
i/gallery/likes
|
|
384
|
+
|
|
385
|
+
No description provided.
|
|
386
|
+
|
|
387
|
+
**Credential required**: *Yes* / **Permission**: *read:gallery-likes*
|
|
388
|
+
*/
|
|
389
|
+
let postIGalleryLikes = async (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryLikesResponse => {
|
|
420
390
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryLikesRequestSchema)
|
|
421
|
-
fetch(
|
|
391
|
+
let response = await fetch(
|
|
422
392
|
~url="/i/gallery/likes",
|
|
423
393
|
~method_="POST",
|
|
424
394
|
~body=Some(jsonBody),
|
|
425
|
-
)
|
|
426
|
-
|
|
427
|
-
value
|
|
428
|
-
->Promise.resolve
|
|
429
|
-
})
|
|
395
|
+
)
|
|
396
|
+
response->S.parseOrThrow(postIGalleryLikesResponseSchema)
|
|
430
397
|
}
|
|
431
398
|
|
|
432
399
|
type postIGalleryPostsRequest = {
|
|
@@ -450,23 +417,20 @@ type postIGalleryPostsResponse = array<KokonectLinkComponentSchemas.GalleryPost.
|
|
|
450
417
|
let postIGalleryPostsResponseSchema = S.array(KokonectLinkComponentSchemas.GalleryPost.schema)
|
|
451
418
|
|
|
452
419
|
/**
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
let postIGalleryPosts = (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
420
|
+
i/gallery/posts
|
|
421
|
+
|
|
422
|
+
No description provided.
|
|
423
|
+
|
|
424
|
+
**Credential required**: *Yes* / **Permission**: *read:gallery*
|
|
425
|
+
*/
|
|
426
|
+
let postIGalleryPosts = async (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryPostsResponse => {
|
|
460
427
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryPostsRequestSchema)
|
|
461
|
-
fetch(
|
|
428
|
+
let response = await fetch(
|
|
462
429
|
~url="/i/gallery/posts",
|
|
463
430
|
~method_="POST",
|
|
464
431
|
~body=Some(jsonBody),
|
|
465
|
-
)
|
|
466
|
-
|
|
467
|
-
value
|
|
468
|
-
->Promise.resolve
|
|
469
|
-
})
|
|
432
|
+
)
|
|
433
|
+
response->S.parseOrThrow(postIGalleryPostsResponseSchema)
|
|
470
434
|
}
|
|
471
435
|
|
|
472
436
|
type postINotificationsRequest = {
|
|
@@ -496,23 +460,20 @@ type postINotificationsResponse = array<KokonectLinkComponentSchemas.Notificatio
|
|
|
496
460
|
let postINotificationsResponseSchema = S.array(KokonectLinkComponentSchemas.Notification.schema)
|
|
497
461
|
|
|
498
462
|
/**
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
let postINotifications = (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
463
|
+
i/notifications
|
|
464
|
+
|
|
465
|
+
No description provided.
|
|
466
|
+
|
|
467
|
+
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
468
|
+
*/
|
|
469
|
+
let postINotifications = async (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsResponse => {
|
|
506
470
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsRequestSchema)
|
|
507
|
-
fetch(
|
|
471
|
+
let response = await fetch(
|
|
508
472
|
~url="/i/notifications",
|
|
509
473
|
~method_="POST",
|
|
510
474
|
~body=Some(jsonBody),
|
|
511
|
-
)
|
|
512
|
-
|
|
513
|
-
value
|
|
514
|
-
->Promise.resolve
|
|
515
|
-
})
|
|
475
|
+
)
|
|
476
|
+
response->S.parseOrThrow(postINotificationsResponseSchema)
|
|
516
477
|
}
|
|
517
478
|
|
|
518
479
|
type postINotificationsGroupedRequest = {
|
|
@@ -542,23 +503,20 @@ type postINotificationsGroupedResponse = array<KokonectLinkComponentSchemas.Noti
|
|
|
542
503
|
let postINotificationsGroupedResponseSchema = S.array(KokonectLinkComponentSchemas.Notification.schema)
|
|
543
504
|
|
|
544
505
|
/**
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
let postINotificationsGrouped = (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
506
|
+
i/notifications-grouped
|
|
507
|
+
|
|
508
|
+
No description provided.
|
|
509
|
+
|
|
510
|
+
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
511
|
+
*/
|
|
512
|
+
let postINotificationsGrouped = async (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsGroupedResponse => {
|
|
552
513
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsGroupedRequestSchema)
|
|
553
|
-
fetch(
|
|
514
|
+
let response = await fetch(
|
|
554
515
|
~url="/i/notifications-grouped",
|
|
555
516
|
~method_="POST",
|
|
556
517
|
~body=Some(jsonBody),
|
|
557
|
-
)
|
|
558
|
-
|
|
559
|
-
value
|
|
560
|
-
->Promise.resolve
|
|
561
|
-
})
|
|
518
|
+
)
|
|
519
|
+
response->S.parseOrThrow(postINotificationsGroupedResponseSchema)
|
|
562
520
|
}
|
|
563
521
|
|
|
564
522
|
type postIPageLikesRequest = {
|
|
@@ -592,23 +550,20 @@ let postIPageLikesResponse_1Schema = S.object(s => {
|
|
|
592
550
|
let postIPageLikesResponseSchema = S.array(postIPageLikesResponse_1Schema)
|
|
593
551
|
|
|
594
552
|
/**
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
let postIPageLikes = (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
553
|
+
i/page-likes
|
|
554
|
+
|
|
555
|
+
No description provided.
|
|
556
|
+
|
|
557
|
+
**Credential required**: *Yes* / **Permission**: *read:page-likes*
|
|
558
|
+
*/
|
|
559
|
+
let postIPageLikes = async (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPageLikesResponse => {
|
|
602
560
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPageLikesRequestSchema)
|
|
603
|
-
fetch(
|
|
561
|
+
let response = await fetch(
|
|
604
562
|
~url="/i/page-likes",
|
|
605
563
|
~method_="POST",
|
|
606
564
|
~body=Some(jsonBody),
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
value
|
|
610
|
-
->Promise.resolve
|
|
611
|
-
})
|
|
565
|
+
)
|
|
566
|
+
response->S.parseOrThrow(postIPageLikesResponseSchema)
|
|
612
567
|
}
|
|
613
568
|
|
|
614
569
|
type postIPagesRequest = {
|
|
@@ -632,23 +587,20 @@ type postIPagesResponse = array<KokonectLinkComponentSchemas.Page.t>
|
|
|
632
587
|
let postIPagesResponseSchema = S.array(KokonectLinkComponentSchemas.Page.schema)
|
|
633
588
|
|
|
634
589
|
/**
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
let postIPages = (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
590
|
+
i/pages
|
|
591
|
+
|
|
592
|
+
No description provided.
|
|
593
|
+
|
|
594
|
+
**Credential required**: *Yes* / **Permission**: *read:pages*
|
|
595
|
+
*/
|
|
596
|
+
let postIPages = async (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPagesResponse => {
|
|
642
597
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPagesRequestSchema)
|
|
643
|
-
fetch(
|
|
598
|
+
let response = await fetch(
|
|
644
599
|
~url="/i/pages",
|
|
645
600
|
~method_="POST",
|
|
646
601
|
~body=Some(jsonBody),
|
|
647
|
-
)
|
|
648
|
-
|
|
649
|
-
value
|
|
650
|
-
->Promise.resolve
|
|
651
|
-
})
|
|
602
|
+
)
|
|
603
|
+
response->S.parseOrThrow(postIPagesResponseSchema)
|
|
652
604
|
}
|
|
653
605
|
|
|
654
606
|
type postIPinRequest = {
|
|
@@ -664,23 +616,20 @@ type postIPinResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
|
664
616
|
let postIPinResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema
|
|
665
617
|
|
|
666
618
|
/**
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
let postIPin = (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
619
|
+
i/pin
|
|
620
|
+
|
|
621
|
+
No description provided.
|
|
622
|
+
|
|
623
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
624
|
+
*/
|
|
625
|
+
let postIPin = async (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPinResponse => {
|
|
674
626
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPinRequestSchema)
|
|
675
|
-
fetch(
|
|
627
|
+
let response = await fetch(
|
|
676
628
|
~url="/i/pin",
|
|
677
629
|
~method_="POST",
|
|
678
630
|
~body=Some(jsonBody),
|
|
679
|
-
)
|
|
680
|
-
|
|
681
|
-
value
|
|
682
|
-
->Promise.resolve
|
|
683
|
-
})
|
|
631
|
+
)
|
|
632
|
+
response->S.parseOrThrow(postIPinResponseSchema)
|
|
684
633
|
}
|
|
685
634
|
|
|
686
635
|
type postIUnpinRequest = {
|
|
@@ -696,23 +645,20 @@ type postIUnpinResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
|
696
645
|
let postIUnpinResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema
|
|
697
646
|
|
|
698
647
|
/**
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
let postIUnpin = (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
648
|
+
i/unpin
|
|
649
|
+
|
|
650
|
+
No description provided.
|
|
651
|
+
|
|
652
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
653
|
+
*/
|
|
654
|
+
let postIUnpin = async (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUnpinResponse => {
|
|
706
655
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUnpinRequestSchema)
|
|
707
|
-
fetch(
|
|
656
|
+
let response = await fetch(
|
|
708
657
|
~url="/i/unpin",
|
|
709
658
|
~method_="POST",
|
|
710
659
|
~body=Some(jsonBody),
|
|
711
|
-
)
|
|
712
|
-
|
|
713
|
-
value
|
|
714
|
-
->Promise.resolve
|
|
715
|
-
})
|
|
660
|
+
)
|
|
661
|
+
response->S.parseOrThrow(postIUnpinResponseSchema)
|
|
716
662
|
}
|
|
717
663
|
|
|
718
664
|
type postIUpdateRequest_3 = {
|
|
@@ -876,23 +822,20 @@ type postIUpdateResponse = KokonectLinkComponentSchemas.MeDetailed.t
|
|
|
876
822
|
let postIUpdateResponseSchema = KokonectLinkComponentSchemas.MeDetailed.schema
|
|
877
823
|
|
|
878
824
|
/**
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
let postIUpdate = (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
825
|
+
i/update
|
|
826
|
+
|
|
827
|
+
No description provided.
|
|
828
|
+
|
|
829
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
830
|
+
*/
|
|
831
|
+
let postIUpdate = async (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateResponse => {
|
|
886
832
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateRequestSchema)
|
|
887
|
-
fetch(
|
|
833
|
+
let response = await fetch(
|
|
888
834
|
~url="/i/update",
|
|
889
835
|
~method_="POST",
|
|
890
836
|
~body=Some(jsonBody),
|
|
891
|
-
)
|
|
892
|
-
|
|
893
|
-
value
|
|
894
|
-
->Promise.resolve
|
|
895
|
-
})
|
|
837
|
+
)
|
|
838
|
+
response->S.parseOrThrow(postIUpdateResponseSchema)
|
|
896
839
|
}
|
|
897
840
|
|
|
898
841
|
type postIUpdateAutoDeleteSettingsRequest = {
|
|
@@ -908,23 +851,20 @@ let postIUpdateAutoDeleteSettingsRequestSchema = S.object(s => {
|
|
|
908
851
|
type postIUpdateAutoDeleteSettingsResponse = unit
|
|
909
852
|
|
|
910
853
|
/**
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
let postIUpdateAutoDeleteSettings = (~body: postIUpdateAutoDeleteSettingsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
854
|
+
i/update-auto-delete-settings
|
|
855
|
+
|
|
856
|
+
No description provided.
|
|
857
|
+
|
|
858
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
859
|
+
*/
|
|
860
|
+
let postIUpdateAutoDeleteSettings = async (~body: postIUpdateAutoDeleteSettingsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateAutoDeleteSettingsResponse => {
|
|
918
861
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateAutoDeleteSettingsRequestSchema)
|
|
919
|
-
fetch(
|
|
862
|
+
let response = await fetch(
|
|
920
863
|
~url="/i/update-auto-delete-settings",
|
|
921
864
|
~method_="POST",
|
|
922
865
|
~body=Some(jsonBody),
|
|
923
|
-
)
|
|
866
|
+
)
|
|
924
867
|
let _ = response
|
|
925
|
-
()
|
|
926
|
-
->Promise.resolve
|
|
927
|
-
})
|
|
928
868
|
}
|
|
929
869
|
|
|
930
870
|
type postIUserGroupInvitesRequest = {
|
|
@@ -954,23 +894,20 @@ let postIUserGroupInvitesResponse_1Schema = S.object(s => {
|
|
|
954
894
|
let postIUserGroupInvitesResponseSchema = S.array(postIUserGroupInvitesResponse_1Schema)
|
|
955
895
|
|
|
956
896
|
/**
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
let postIUserGroupInvites = (~body: postIUserGroupInvitesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
897
|
+
i/user-group-invites
|
|
898
|
+
|
|
899
|
+
No description provided.
|
|
900
|
+
|
|
901
|
+
**Credential required**: *Yes* / **Permission**: *read:user-groups*
|
|
902
|
+
*/
|
|
903
|
+
let postIUserGroupInvites = async (~body: postIUserGroupInvitesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUserGroupInvitesResponse => {
|
|
964
904
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUserGroupInvitesRequestSchema)
|
|
965
|
-
fetch(
|
|
905
|
+
let response = await fetch(
|
|
966
906
|
~url="/i/user-group-invites",
|
|
967
907
|
~method_="POST",
|
|
968
908
|
~body=Some(jsonBody),
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
value
|
|
972
|
-
->Promise.resolve
|
|
973
|
-
})
|
|
909
|
+
)
|
|
910
|
+
response->S.parseOrThrow(postIUserGroupInvitesResponseSchema)
|
|
974
911
|
}
|
|
975
912
|
|
|
976
913
|
type postMuteListRequest = {
|
|
@@ -994,23 +931,20 @@ type postMuteListResponse = array<KokonectLinkComponentSchemas.Muting.t>
|
|
|
994
931
|
let postMuteListResponseSchema = S.array(KokonectLinkComponentSchemas.Muting.schema)
|
|
995
932
|
|
|
996
933
|
/**
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
let postMuteList = (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
934
|
+
mute/list
|
|
935
|
+
|
|
936
|
+
No description provided.
|
|
937
|
+
|
|
938
|
+
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
939
|
+
*/
|
|
940
|
+
let postMuteList = async (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMuteListResponse => {
|
|
1004
941
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMuteListRequestSchema)
|
|
1005
|
-
fetch(
|
|
942
|
+
let response = await fetch(
|
|
1006
943
|
~url="/mute/list",
|
|
1007
944
|
~method_="POST",
|
|
1008
945
|
~body=Some(jsonBody),
|
|
1009
|
-
)
|
|
1010
|
-
|
|
1011
|
-
value
|
|
1012
|
-
->Promise.resolve
|
|
1013
|
-
})
|
|
946
|
+
)
|
|
947
|
+
response->S.parseOrThrow(postMuteListResponseSchema)
|
|
1014
948
|
}
|
|
1015
949
|
|
|
1016
950
|
type postRenoteMuteListRequest = {
|
|
@@ -1034,23 +968,20 @@ type postRenoteMuteListResponse = array<KokonectLinkComponentSchemas.RenoteMutin
|
|
|
1034
968
|
let postRenoteMuteListResponseSchema = S.array(KokonectLinkComponentSchemas.RenoteMuting.schema)
|
|
1035
969
|
|
|
1036
970
|
/**
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
let postRenoteMuteList = (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
971
|
+
renote-mute/list
|
|
972
|
+
|
|
973
|
+
No description provided.
|
|
974
|
+
|
|
975
|
+
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
976
|
+
*/
|
|
977
|
+
let postRenoteMuteList = async (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRenoteMuteListResponse => {
|
|
1044
978
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postRenoteMuteListRequestSchema)
|
|
1045
|
-
fetch(
|
|
979
|
+
let response = await fetch(
|
|
1046
980
|
~url="/renote-mute/list",
|
|
1047
981
|
~method_="POST",
|
|
1048
982
|
~body=Some(jsonBody),
|
|
1049
|
-
)
|
|
1050
|
-
|
|
1051
|
-
value
|
|
1052
|
-
->Promise.resolve
|
|
1053
|
-
})
|
|
983
|
+
)
|
|
984
|
+
response->S.parseOrThrow(postRenoteMuteListResponseSchema)
|
|
1054
985
|
}
|
|
1055
986
|
|
|
1056
987
|
type postVerifyEmailRequest = {
|
|
@@ -1064,21 +995,18 @@ let postVerifyEmailRequestSchema = S.object(s => {
|
|
|
1064
995
|
type postVerifyEmailResponse = unit
|
|
1065
996
|
|
|
1066
997
|
/**
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
let postVerifyEmail = (~body: postVerifyEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
998
|
+
verify-email
|
|
999
|
+
|
|
1000
|
+
No description provided.
|
|
1001
|
+
|
|
1002
|
+
**Credential required**: *No*
|
|
1003
|
+
*/
|
|
1004
|
+
let postVerifyEmail = async (~body: postVerifyEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postVerifyEmailResponse => {
|
|
1074
1005
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postVerifyEmailRequestSchema)
|
|
1075
|
-
fetch(
|
|
1006
|
+
let response = await fetch(
|
|
1076
1007
|
~url="/verify-email",
|
|
1077
1008
|
~method_="POST",
|
|
1078
1009
|
~body=Some(jsonBody),
|
|
1079
|
-
)
|
|
1010
|
+
)
|
|
1080
1011
|
let _ = response
|
|
1081
|
-
()
|
|
1082
|
-
->Promise.resolve
|
|
1083
|
-
})
|
|
1084
1012
|
}
|