@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
|
@@ -24,23 +24,20 @@ let postEmailAddressAvailableResponseSchema = S.object(s => {
|
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
let postEmailAddressAvailable = (~body: postEmailAddressAvailableRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
27
|
+
email-address/available
|
|
28
|
+
|
|
29
|
+
No description provided.
|
|
30
|
+
|
|
31
|
+
**Credential required**: *No*
|
|
32
|
+
*/
|
|
33
|
+
let postEmailAddressAvailable = async (~body: postEmailAddressAvailableRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postEmailAddressAvailableResponse => {
|
|
34
34
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postEmailAddressAvailableRequestSchema)
|
|
35
|
-
fetch(
|
|
35
|
+
let response = await fetch(
|
|
36
36
|
~url="/email-address/available",
|
|
37
37
|
~method_="POST",
|
|
38
38
|
~body=Some(jsonBody),
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
value
|
|
42
|
-
->Promise.resolve
|
|
43
|
-
})
|
|
39
|
+
)
|
|
40
|
+
response->S.parseOrThrow(postEmailAddressAvailableResponseSchema)
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
type postGetAvatarDecorationsResponse_1 = {
|
|
@@ -64,23 +61,20 @@ let postGetAvatarDecorationsResponse_1Schema = S.object(s => {
|
|
|
64
61
|
let postGetAvatarDecorationsResponseSchema = S.array(postGetAvatarDecorationsResponse_1Schema)
|
|
65
62
|
|
|
66
63
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
let postGetAvatarDecorations = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
74
|
-
|
|
75
|
-
fetch(
|
|
64
|
+
get-avatar-decorations
|
|
65
|
+
|
|
66
|
+
No description provided.
|
|
67
|
+
|
|
68
|
+
**Credential required**: *No*
|
|
69
|
+
*/
|
|
70
|
+
let postGetAvatarDecorations = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postGetAvatarDecorationsResponse => {
|
|
71
|
+
|
|
72
|
+
let response = await fetch(
|
|
76
73
|
~url="/get-avatar-decorations",
|
|
77
74
|
~method_="POST",
|
|
78
75
|
~body=None,
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
value
|
|
82
|
-
->Promise.resolve
|
|
83
|
-
})
|
|
76
|
+
)
|
|
77
|
+
response->S.parseOrThrow(postGetAvatarDecorationsResponseSchema)
|
|
84
78
|
}
|
|
85
79
|
|
|
86
80
|
type postIMoveRequest = {
|
|
@@ -96,24 +90,21 @@ type postIMoveResponse = dict<JSON.t>
|
|
|
96
90
|
let postIMoveResponseSchema = S.dict(S.json)
|
|
97
91
|
|
|
98
92
|
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
let postIMove = (~body: postIMoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
93
|
+
i/move
|
|
94
|
+
|
|
95
|
+
No description provided.
|
|
96
|
+
|
|
97
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
98
|
+
**Credential required**: *Yes*
|
|
99
|
+
*/
|
|
100
|
+
let postIMove = async (~body: postIMoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIMoveResponse => {
|
|
107
101
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIMoveRequestSchema)
|
|
108
|
-
fetch(
|
|
102
|
+
let response = await fetch(
|
|
109
103
|
~url="/i/move",
|
|
110
104
|
~method_="POST",
|
|
111
105
|
~body=Some(jsonBody),
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
value
|
|
115
|
-
->Promise.resolve
|
|
116
|
-
})
|
|
106
|
+
)
|
|
107
|
+
response->S.parseOrThrow(postIMoveResponseSchema)
|
|
117
108
|
}
|
|
118
109
|
|
|
119
110
|
type postPinnedUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t>
|
|
@@ -121,23 +112,20 @@ type postPinnedUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t>
|
|
|
121
112
|
let postPinnedUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
|
|
122
113
|
|
|
123
114
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
let postPinnedUsers = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
131
|
-
|
|
132
|
-
fetch(
|
|
115
|
+
pinned-users
|
|
116
|
+
|
|
117
|
+
No description provided.
|
|
118
|
+
|
|
119
|
+
**Credential required**: *No*
|
|
120
|
+
*/
|
|
121
|
+
let postPinnedUsers = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPinnedUsersResponse => {
|
|
122
|
+
|
|
123
|
+
let response = await fetch(
|
|
133
124
|
~url="/pinned-users",
|
|
134
125
|
~method_="POST",
|
|
135
126
|
~body=None,
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
value
|
|
139
|
-
->Promise.resolve
|
|
140
|
-
})
|
|
127
|
+
)
|
|
128
|
+
response->S.parseOrThrow(postPinnedUsersResponseSchema)
|
|
141
129
|
}
|
|
142
130
|
|
|
143
131
|
type getRetentionResponse_1 = {
|
|
@@ -157,23 +145,20 @@ let getRetentionResponse_1Schema = S.object(s => {
|
|
|
157
145
|
let getRetentionResponseSchema = S.array(getRetentionResponse_1Schema)
|
|
158
146
|
|
|
159
147
|
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
let getRetention = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
167
|
-
|
|
168
|
-
fetch(
|
|
148
|
+
retention
|
|
149
|
+
|
|
150
|
+
No description provided.
|
|
151
|
+
|
|
152
|
+
**Credential required**: *No*
|
|
153
|
+
*/
|
|
154
|
+
let getRetention = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getRetentionResponse => {
|
|
155
|
+
|
|
156
|
+
let response = await fetch(
|
|
169
157
|
~url="/retention",
|
|
170
158
|
~method_="GET",
|
|
171
159
|
~body=None,
|
|
172
|
-
)
|
|
173
|
-
|
|
174
|
-
value
|
|
175
|
-
->Promise.resolve
|
|
176
|
-
})
|
|
160
|
+
)
|
|
161
|
+
response->S.parseOrThrow(getRetentionResponseSchema)
|
|
177
162
|
}
|
|
178
163
|
|
|
179
164
|
type postRetentionResponse_1 = {
|
|
@@ -193,23 +178,20 @@ let postRetentionResponse_1Schema = S.object(s => {
|
|
|
193
178
|
let postRetentionResponseSchema = S.array(postRetentionResponse_1Schema)
|
|
194
179
|
|
|
195
180
|
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
let postRetention = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
203
|
-
|
|
204
|
-
fetch(
|
|
181
|
+
retention
|
|
182
|
+
|
|
183
|
+
No description provided.
|
|
184
|
+
|
|
185
|
+
**Credential required**: *No*
|
|
186
|
+
*/
|
|
187
|
+
let postRetention = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRetentionResponse => {
|
|
188
|
+
|
|
189
|
+
let response = await fetch(
|
|
205
190
|
~url="/retention",
|
|
206
191
|
~method_="POST",
|
|
207
192
|
~body=None,
|
|
208
|
-
)
|
|
209
|
-
|
|
210
|
-
value
|
|
211
|
-
->Promise.resolve
|
|
212
|
-
})
|
|
193
|
+
)
|
|
194
|
+
response->S.parseOrThrow(postRetentionResponseSchema)
|
|
213
195
|
}
|
|
214
196
|
|
|
215
197
|
type postUsernameAvailableRequest = {
|
|
@@ -229,23 +211,20 @@ let postUsernameAvailableResponseSchema = S.object(s => {
|
|
|
229
211
|
})
|
|
230
212
|
|
|
231
213
|
/**
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
let postUsernameAvailable = (~body: postUsernameAvailableRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
214
|
+
username/available
|
|
215
|
+
|
|
216
|
+
No description provided.
|
|
217
|
+
|
|
218
|
+
**Credential required**: *No*
|
|
219
|
+
*/
|
|
220
|
+
let postUsernameAvailable = async (~body: postUsernameAvailableRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsernameAvailableResponse => {
|
|
239
221
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsernameAvailableRequestSchema)
|
|
240
|
-
fetch(
|
|
222
|
+
let response = await fetch(
|
|
241
223
|
~url="/username/available",
|
|
242
224
|
~method_="POST",
|
|
243
225
|
~body=Some(jsonBody),
|
|
244
|
-
)
|
|
245
|
-
|
|
246
|
-
value
|
|
247
|
-
->Promise.resolve
|
|
248
|
-
})
|
|
226
|
+
)
|
|
227
|
+
response->S.parseOrThrow(postUsernameAvailableResponseSchema)
|
|
249
228
|
}
|
|
250
229
|
|
|
251
230
|
type postUsersRequest = {
|
|
@@ -271,23 +250,20 @@ type postUsersResponse = array<MisskeyIoComponentSchemas.UserDetailed.t>
|
|
|
271
250
|
let postUsersResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
|
|
272
251
|
|
|
273
252
|
/**
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
let postUsers = (~body: postUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
253
|
+
users
|
|
254
|
+
|
|
255
|
+
No description provided.
|
|
256
|
+
|
|
257
|
+
**Credential required**: *No*
|
|
258
|
+
*/
|
|
259
|
+
let postUsers = async (~body: postUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersResponse => {
|
|
281
260
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersRequestSchema)
|
|
282
|
-
fetch(
|
|
261
|
+
let response = await fetch(
|
|
283
262
|
~url="/users",
|
|
284
263
|
~method_="POST",
|
|
285
264
|
~body=Some(jsonBody),
|
|
286
|
-
)
|
|
287
|
-
|
|
288
|
-
value
|
|
289
|
-
->Promise.resolve
|
|
290
|
-
})
|
|
265
|
+
)
|
|
266
|
+
response->S.parseOrThrow(postUsersResponseSchema)
|
|
291
267
|
}
|
|
292
268
|
|
|
293
269
|
type postUsersClipsRequest = {
|
|
@@ -309,23 +285,20 @@ type postUsersClipsResponse = array<MisskeyIoComponentSchemas.Clip.t>
|
|
|
309
285
|
let postUsersClipsResponseSchema = S.array(MisskeyIoComponentSchemas.Clip.schema)
|
|
310
286
|
|
|
311
287
|
/**
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
let postUsersClips = (~body: postUsersClipsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
288
|
+
users/clips
|
|
289
|
+
|
|
290
|
+
Show all clips this user owns.
|
|
291
|
+
|
|
292
|
+
**Credential required**: *No*
|
|
293
|
+
*/
|
|
294
|
+
let postUsersClips = async (~body: postUsersClipsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersClipsResponse => {
|
|
319
295
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersClipsRequestSchema)
|
|
320
|
-
fetch(
|
|
296
|
+
let response = await fetch(
|
|
321
297
|
~url="/users/clips",
|
|
322
298
|
~method_="POST",
|
|
323
299
|
~body=Some(jsonBody),
|
|
324
|
-
)
|
|
325
|
-
|
|
326
|
-
value
|
|
327
|
-
->Promise.resolve
|
|
328
|
-
})
|
|
300
|
+
)
|
|
301
|
+
response->S.parseOrThrow(postUsersClipsResponseSchema)
|
|
329
302
|
}
|
|
330
303
|
|
|
331
304
|
type postUsersFlashsRequest = {
|
|
@@ -347,23 +320,20 @@ type postUsersFlashsResponse = array<MisskeyIoComponentSchemas.Flash.t>
|
|
|
347
320
|
let postUsersFlashsResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema)
|
|
348
321
|
|
|
349
322
|
/**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
let postUsersFlashs = (~body: postUsersFlashsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
323
|
+
users/flashs
|
|
324
|
+
|
|
325
|
+
Show all flashs this user created.
|
|
326
|
+
|
|
327
|
+
**Credential required**: *No*
|
|
328
|
+
*/
|
|
329
|
+
let postUsersFlashs = async (~body: postUsersFlashsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersFlashsResponse => {
|
|
357
330
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersFlashsRequestSchema)
|
|
358
|
-
fetch(
|
|
331
|
+
let response = await fetch(
|
|
359
332
|
~url="/users/flashs",
|
|
360
333
|
~method_="POST",
|
|
361
334
|
~body=Some(jsonBody),
|
|
362
|
-
)
|
|
363
|
-
|
|
364
|
-
value
|
|
365
|
-
->Promise.resolve
|
|
366
|
-
})
|
|
335
|
+
)
|
|
336
|
+
response->S.parseOrThrow(postUsersFlashsResponseSchema)
|
|
367
337
|
}
|
|
368
338
|
|
|
369
339
|
type postUsersFollowersRequest = {
|
|
@@ -389,23 +359,20 @@ type postUsersFollowersResponse = array<MisskeyIoComponentSchemas.Following.t>
|
|
|
389
359
|
let postUsersFollowersResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema)
|
|
390
360
|
|
|
391
361
|
/**
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
let postUsersFollowers = (~body: postUsersFollowersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
362
|
+
users/followers
|
|
363
|
+
|
|
364
|
+
Show everyone that follows this user.
|
|
365
|
+
|
|
366
|
+
**Credential required**: *No*
|
|
367
|
+
*/
|
|
368
|
+
let postUsersFollowers = async (~body: postUsersFollowersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersFollowersResponse => {
|
|
399
369
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersFollowersRequestSchema)
|
|
400
|
-
fetch(
|
|
370
|
+
let response = await fetch(
|
|
401
371
|
~url="/users/followers",
|
|
402
372
|
~method_="POST",
|
|
403
373
|
~body=Some(jsonBody),
|
|
404
|
-
)
|
|
405
|
-
|
|
406
|
-
value
|
|
407
|
-
->Promise.resolve
|
|
408
|
-
})
|
|
374
|
+
)
|
|
375
|
+
response->S.parseOrThrow(postUsersFollowersResponseSchema)
|
|
409
376
|
}
|
|
410
377
|
|
|
411
378
|
type postUsersFollowingRequest = {
|
|
@@ -433,23 +400,20 @@ type postUsersFollowingResponse = array<MisskeyIoComponentSchemas.Following.t>
|
|
|
433
400
|
let postUsersFollowingResponseSchema = S.array(MisskeyIoComponentSchemas.Following.schema)
|
|
434
401
|
|
|
435
402
|
/**
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
let postUsersFollowing = (~body: postUsersFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
403
|
+
users/following
|
|
404
|
+
|
|
405
|
+
Show everyone that this user is following.
|
|
406
|
+
|
|
407
|
+
**Credential required**: *No*
|
|
408
|
+
*/
|
|
409
|
+
let postUsersFollowing = async (~body: postUsersFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersFollowingResponse => {
|
|
443
410
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersFollowingRequestSchema)
|
|
444
|
-
fetch(
|
|
411
|
+
let response = await fetch(
|
|
445
412
|
~url="/users/following",
|
|
446
413
|
~method_="POST",
|
|
447
414
|
~body=Some(jsonBody),
|
|
448
|
-
)
|
|
449
|
-
|
|
450
|
-
value
|
|
451
|
-
->Promise.resolve
|
|
452
|
-
})
|
|
415
|
+
)
|
|
416
|
+
response->S.parseOrThrow(postUsersFollowingResponseSchema)
|
|
453
417
|
}
|
|
454
418
|
|
|
455
419
|
type postUsersGalleryPostsRequest = {
|
|
@@ -471,23 +435,20 @@ type postUsersGalleryPostsResponse = array<MisskeyIoComponentSchemas.GalleryPost
|
|
|
471
435
|
let postUsersGalleryPostsResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema)
|
|
472
436
|
|
|
473
437
|
/**
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
let postUsersGalleryPosts = (~body: postUsersGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
438
|
+
users/gallery/posts
|
|
439
|
+
|
|
440
|
+
Show all gallery posts by the given user.
|
|
441
|
+
|
|
442
|
+
**Credential required**: *No*
|
|
443
|
+
*/
|
|
444
|
+
let postUsersGalleryPosts = async (~body: postUsersGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersGalleryPostsResponse => {
|
|
481
445
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersGalleryPostsRequestSchema)
|
|
482
|
-
fetch(
|
|
446
|
+
let response = await fetch(
|
|
483
447
|
~url="/users/gallery/posts",
|
|
484
448
|
~method_="POST",
|
|
485
449
|
~body=Some(jsonBody),
|
|
486
|
-
)
|
|
487
|
-
|
|
488
|
-
value
|
|
489
|
-
->Promise.resolve
|
|
490
|
-
})
|
|
450
|
+
)
|
|
451
|
+
response->S.parseOrThrow(postUsersGalleryPostsResponseSchema)
|
|
491
452
|
}
|
|
492
453
|
|
|
493
454
|
type postUsersGetFollowingBirthdayUsersRequest_2 = {
|
|
@@ -541,23 +502,20 @@ let postUsersGetFollowingBirthdayUsersResponse_1Schema = S.object(s => {
|
|
|
541
502
|
let postUsersGetFollowingBirthdayUsersResponseSchema = S.array(postUsersGetFollowingBirthdayUsersResponse_1Schema)
|
|
542
503
|
|
|
543
504
|
/**
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
let postUsersGetFollowingBirthdayUsers = (~body: postUsersGetFollowingBirthdayUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
505
|
+
users/get-following-birthday-users
|
|
506
|
+
|
|
507
|
+
Find users who have a birthday on the specified range.
|
|
508
|
+
|
|
509
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
510
|
+
*/
|
|
511
|
+
let postUsersGetFollowingBirthdayUsers = async (~body: postUsersGetFollowingBirthdayUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersGetFollowingBirthdayUsersResponse => {
|
|
551
512
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersGetFollowingBirthdayUsersRequestSchema)
|
|
552
|
-
fetch(
|
|
513
|
+
let response = await fetch(
|
|
553
514
|
~url="/users/get-following-birthday-users",
|
|
554
515
|
~method_="POST",
|
|
555
516
|
~body=Some(jsonBody),
|
|
556
|
-
)
|
|
557
|
-
|
|
558
|
-
value
|
|
559
|
-
->Promise.resolve
|
|
560
|
-
})
|
|
517
|
+
)
|
|
518
|
+
response->S.parseOrThrow(postUsersGetFollowingBirthdayUsersResponseSchema)
|
|
561
519
|
}
|
|
562
520
|
|
|
563
521
|
type postUsersGetFrequentlyRepliedUsersRequest = {
|
|
@@ -585,23 +543,20 @@ let postUsersGetFrequentlyRepliedUsersResponse_1Schema = S.object(s => {
|
|
|
585
543
|
let postUsersGetFrequentlyRepliedUsersResponseSchema = S.array(postUsersGetFrequentlyRepliedUsersResponse_1Schema)
|
|
586
544
|
|
|
587
545
|
/**
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
let postUsersGetFrequentlyRepliedUsers = (~body: postUsersGetFrequentlyRepliedUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
546
|
+
users/get-frequently-replied-users
|
|
547
|
+
|
|
548
|
+
Get a list of other users that the specified user frequently replies to.
|
|
549
|
+
|
|
550
|
+
**Credential required**: *No*
|
|
551
|
+
*/
|
|
552
|
+
let postUsersGetFrequentlyRepliedUsers = async (~body: postUsersGetFrequentlyRepliedUsersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersGetFrequentlyRepliedUsersResponse => {
|
|
595
553
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersGetFrequentlyRepliedUsersRequestSchema)
|
|
596
|
-
fetch(
|
|
554
|
+
let response = await fetch(
|
|
597
555
|
~url="/users/get-frequently-replied-users",
|
|
598
556
|
~method_="POST",
|
|
599
557
|
~body=Some(jsonBody),
|
|
600
|
-
)
|
|
601
|
-
|
|
602
|
-
value
|
|
603
|
-
->Promise.resolve
|
|
604
|
-
})
|
|
558
|
+
)
|
|
559
|
+
response->S.parseOrThrow(postUsersGetFrequentlyRepliedUsersResponseSchema)
|
|
605
560
|
}
|
|
606
561
|
|
|
607
562
|
type postUsersGetSecurityInfoRequest = {
|
|
@@ -627,23 +582,20 @@ let postUsersGetSecurityInfoResponseSchema = S.object(s => {
|
|
|
627
582
|
})
|
|
628
583
|
|
|
629
584
|
/**
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
let postUsersGetSecurityInfo = (~body: postUsersGetSecurityInfoRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
585
|
+
users/get-security-info
|
|
586
|
+
|
|
587
|
+
No description provided.
|
|
588
|
+
|
|
589
|
+
**Credential required**: *No*
|
|
590
|
+
*/
|
|
591
|
+
let postUsersGetSecurityInfo = async (~body: postUsersGetSecurityInfoRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersGetSecurityInfoResponse => {
|
|
637
592
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersGetSecurityInfoRequestSchema)
|
|
638
|
-
fetch(
|
|
593
|
+
let response = await fetch(
|
|
639
594
|
~url="/users/get-security-info",
|
|
640
595
|
~method_="POST",
|
|
641
596
|
~body=Some(jsonBody),
|
|
642
|
-
)
|
|
643
|
-
|
|
644
|
-
value
|
|
645
|
-
->Promise.resolve
|
|
646
|
-
})
|
|
597
|
+
)
|
|
598
|
+
response->S.parseOrThrow(postUsersGetSecurityInfoResponseSchema)
|
|
647
599
|
}
|
|
648
600
|
|
|
649
601
|
type getUsersGetSkebStatusRequest = {
|
|
@@ -683,23 +635,20 @@ let getUsersGetSkebStatusResponseSchema = S.object(s => {
|
|
|
683
635
|
})
|
|
684
636
|
|
|
685
637
|
/**
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
let getUsersGetSkebStatus = (~body: getUsersGetSkebStatusRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
638
|
+
users/get-skeb-status
|
|
639
|
+
|
|
640
|
+
No description provided.
|
|
641
|
+
|
|
642
|
+
**Credential required**: *No*
|
|
643
|
+
*/
|
|
644
|
+
let getUsersGetSkebStatus = async (~body: getUsersGetSkebStatusRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getUsersGetSkebStatusResponse => {
|
|
693
645
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getUsersGetSkebStatusRequestSchema)
|
|
694
|
-
fetch(
|
|
646
|
+
let response = await fetch(
|
|
695
647
|
~url="/users/get-skeb-status",
|
|
696
648
|
~method_="GET",
|
|
697
649
|
~body=Some(jsonBody),
|
|
698
|
-
)
|
|
699
|
-
|
|
700
|
-
value
|
|
701
|
-
->Promise.resolve
|
|
702
|
-
})
|
|
650
|
+
)
|
|
651
|
+
response->S.parseOrThrow(getUsersGetSkebStatusResponseSchema)
|
|
703
652
|
}
|
|
704
653
|
|
|
705
654
|
type postUsersGetSkebStatusRequest = {
|
|
@@ -739,23 +688,20 @@ let postUsersGetSkebStatusResponseSchema = S.object(s => {
|
|
|
739
688
|
})
|
|
740
689
|
|
|
741
690
|
/**
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
let postUsersGetSkebStatus = (~body: postUsersGetSkebStatusRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
691
|
+
users/get-skeb-status
|
|
692
|
+
|
|
693
|
+
No description provided.
|
|
694
|
+
|
|
695
|
+
**Credential required**: *No*
|
|
696
|
+
*/
|
|
697
|
+
let postUsersGetSkebStatus = async (~body: postUsersGetSkebStatusRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersGetSkebStatusResponse => {
|
|
749
698
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersGetSkebStatusRequestSchema)
|
|
750
|
-
fetch(
|
|
699
|
+
let response = await fetch(
|
|
751
700
|
~url="/users/get-skeb-status",
|
|
752
701
|
~method_="POST",
|
|
753
702
|
~body=Some(jsonBody),
|
|
754
|
-
)
|
|
755
|
-
|
|
756
|
-
value
|
|
757
|
-
->Promise.resolve
|
|
758
|
-
})
|
|
703
|
+
)
|
|
704
|
+
response->S.parseOrThrow(postUsersGetSkebStatusResponseSchema)
|
|
759
705
|
}
|
|
760
706
|
|
|
761
707
|
type postUsersNotesRequest = {
|
|
@@ -791,23 +737,20 @@ type postUsersNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
791
737
|
let postUsersNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
792
738
|
|
|
793
739
|
/**
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
let postUsersNotes = (~body: postUsersNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
740
|
+
users/notes
|
|
741
|
+
|
|
742
|
+
No description provided.
|
|
743
|
+
|
|
744
|
+
**Credential required**: *No*
|
|
745
|
+
*/
|
|
746
|
+
let postUsersNotes = async (~body: postUsersNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersNotesResponse => {
|
|
801
747
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersNotesRequestSchema)
|
|
802
|
-
fetch(
|
|
748
|
+
let response = await fetch(
|
|
803
749
|
~url="/users/notes",
|
|
804
750
|
~method_="POST",
|
|
805
751
|
~body=Some(jsonBody),
|
|
806
|
-
)
|
|
807
|
-
|
|
808
|
-
value
|
|
809
|
-
->Promise.resolve
|
|
810
|
-
})
|
|
752
|
+
)
|
|
753
|
+
response->S.parseOrThrow(postUsersNotesResponseSchema)
|
|
811
754
|
}
|
|
812
755
|
|
|
813
756
|
type postUsersPagesRequest = {
|
|
@@ -829,23 +772,20 @@ type postUsersPagesResponse = array<MisskeyIoComponentSchemas.Page.t>
|
|
|
829
772
|
let postUsersPagesResponseSchema = S.array(MisskeyIoComponentSchemas.Page.schema)
|
|
830
773
|
|
|
831
774
|
/**
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
let postUsersPages = (~body: postUsersPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
775
|
+
users/pages
|
|
776
|
+
|
|
777
|
+
Show all pages this user created.
|
|
778
|
+
|
|
779
|
+
**Credential required**: *No*
|
|
780
|
+
*/
|
|
781
|
+
let postUsersPages = async (~body: postUsersPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersPagesResponse => {
|
|
839
782
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersPagesRequestSchema)
|
|
840
|
-
fetch(
|
|
783
|
+
let response = await fetch(
|
|
841
784
|
~url="/users/pages",
|
|
842
785
|
~method_="POST",
|
|
843
786
|
~body=Some(jsonBody),
|
|
844
|
-
)
|
|
845
|
-
|
|
846
|
-
value
|
|
847
|
-
->Promise.resolve
|
|
848
|
-
})
|
|
787
|
+
)
|
|
788
|
+
response->S.parseOrThrow(postUsersPagesResponseSchema)
|
|
849
789
|
}
|
|
850
790
|
|
|
851
791
|
type postUsersReactionsRequest = {
|
|
@@ -871,23 +811,20 @@ type postUsersReactionsResponse = array<MisskeyIoComponentSchemas.NoteReaction.t
|
|
|
871
811
|
let postUsersReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema)
|
|
872
812
|
|
|
873
813
|
/**
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
let postUsersReactions = (~body: postUsersReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
814
|
+
users/reactions
|
|
815
|
+
|
|
816
|
+
Show all reactions this user made.
|
|
817
|
+
|
|
818
|
+
**Credential required**: *No*
|
|
819
|
+
*/
|
|
820
|
+
let postUsersReactions = async (~body: postUsersReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersReactionsResponse => {
|
|
881
821
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersReactionsRequestSchema)
|
|
882
|
-
fetch(
|
|
822
|
+
let response = await fetch(
|
|
883
823
|
~url="/users/reactions",
|
|
884
824
|
~method_="POST",
|
|
885
825
|
~body=Some(jsonBody),
|
|
886
|
-
)
|
|
887
|
-
|
|
888
|
-
value
|
|
889
|
-
->Promise.resolve
|
|
890
|
-
})
|
|
826
|
+
)
|
|
827
|
+
response->S.parseOrThrow(postUsersReactionsResponseSchema)
|
|
891
828
|
}
|
|
892
829
|
|
|
893
830
|
type postUsersRecommendationRequest = {
|
|
@@ -905,23 +842,20 @@ type postUsersRecommendationResponse = array<MisskeyIoComponentSchemas.UserDetai
|
|
|
905
842
|
let postUsersRecommendationResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
|
|
906
843
|
|
|
907
844
|
/**
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
let postUsersRecommendation = (~body: postUsersRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
845
|
+
users/recommendation
|
|
846
|
+
|
|
847
|
+
Show users that the authenticated user might be interested to follow.
|
|
848
|
+
|
|
849
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
850
|
+
*/
|
|
851
|
+
let postUsersRecommendation = async (~body: postUsersRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersRecommendationResponse => {
|
|
915
852
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersRecommendationRequestSchema)
|
|
916
|
-
fetch(
|
|
853
|
+
let response = await fetch(
|
|
917
854
|
~url="/users/recommendation",
|
|
918
855
|
~method_="POST",
|
|
919
856
|
~body=Some(jsonBody),
|
|
920
|
-
)
|
|
921
|
-
|
|
922
|
-
value
|
|
923
|
-
->Promise.resolve
|
|
924
|
-
})
|
|
857
|
+
)
|
|
858
|
+
response->S.parseOrThrow(postUsersRecommendationResponseSchema)
|
|
925
859
|
}
|
|
926
860
|
|
|
927
861
|
type postUsersRelationRequest = {
|
|
@@ -961,23 +895,20 @@ let postUsersRelationResponse_1Schema = S.object(s => {
|
|
|
961
895
|
let postUsersRelationResponseSchema = S.array(postUsersRelationResponse_1Schema)
|
|
962
896
|
|
|
963
897
|
/**
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
let postUsersRelation = (~body: postUsersRelationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
898
|
+
users/relation
|
|
899
|
+
|
|
900
|
+
Show the different kinds of relations between the authenticated user and the specified user(s).
|
|
901
|
+
|
|
902
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
903
|
+
*/
|
|
904
|
+
let postUsersRelation = async (~body: postUsersRelationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersRelationResponse => {
|
|
971
905
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersRelationRequestSchema)
|
|
972
|
-
fetch(
|
|
906
|
+
let response = await fetch(
|
|
973
907
|
~url="/users/relation",
|
|
974
908
|
~method_="POST",
|
|
975
909
|
~body=Some(jsonBody),
|
|
976
|
-
)
|
|
977
|
-
|
|
978
|
-
value
|
|
979
|
-
->Promise.resolve
|
|
980
|
-
})
|
|
910
|
+
)
|
|
911
|
+
response->S.parseOrThrow(postUsersRelationResponseSchema)
|
|
981
912
|
}
|
|
982
913
|
|
|
983
914
|
type postUsersReportAbuseRequest = {
|
|
@@ -995,23 +926,20 @@ let postUsersReportAbuseRequestSchema = S.object(s => {
|
|
|
995
926
|
type postUsersReportAbuseResponse = unit
|
|
996
927
|
|
|
997
928
|
/**
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
let postUsersReportAbuse = (~body: postUsersReportAbuseRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
929
|
+
users/report-abuse
|
|
930
|
+
|
|
931
|
+
File a report.
|
|
932
|
+
|
|
933
|
+
**Credential required**: *Yes* / **Permission**: *write:report-abuse*
|
|
934
|
+
*/
|
|
935
|
+
let postUsersReportAbuse = async (~body: postUsersReportAbuseRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersReportAbuseResponse => {
|
|
1005
936
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersReportAbuseRequestSchema)
|
|
1006
|
-
fetch(
|
|
937
|
+
let response = await fetch(
|
|
1007
938
|
~url="/users/report-abuse",
|
|
1008
939
|
~method_="POST",
|
|
1009
940
|
~body=Some(jsonBody),
|
|
1010
|
-
)
|
|
941
|
+
)
|
|
1011
942
|
let _ = response
|
|
1012
|
-
()
|
|
1013
|
-
->Promise.resolve
|
|
1014
|
-
})
|
|
1015
943
|
}
|
|
1016
944
|
|
|
1017
945
|
type postUsersSearchRequest = {
|
|
@@ -1035,23 +963,20 @@ type postUsersSearchResponse = array<MisskeyIoComponentSchemas.User.t>
|
|
|
1035
963
|
let postUsersSearchResponseSchema = S.array(MisskeyIoComponentSchemas.User.schema)
|
|
1036
964
|
|
|
1037
965
|
/**
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
let postUsersSearch = (~body: postUsersSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
966
|
+
users/search
|
|
967
|
+
|
|
968
|
+
Search for users.
|
|
969
|
+
|
|
970
|
+
**Credential required**: *No*
|
|
971
|
+
*/
|
|
972
|
+
let postUsersSearch = async (~body: postUsersSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersSearchResponse => {
|
|
1045
973
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersSearchRequestSchema)
|
|
1046
|
-
fetch(
|
|
974
|
+
let response = await fetch(
|
|
1047
975
|
~url="/users/search",
|
|
1048
976
|
~method_="POST",
|
|
1049
977
|
~body=Some(jsonBody),
|
|
1050
|
-
)
|
|
1051
|
-
|
|
1052
|
-
value
|
|
1053
|
-
->Promise.resolve
|
|
1054
|
-
})
|
|
978
|
+
)
|
|
979
|
+
response->S.parseOrThrow(postUsersSearchResponseSchema)
|
|
1055
980
|
}
|
|
1056
981
|
|
|
1057
982
|
type postUsersSearchByUsernameAndHostRequest = {
|
|
@@ -1073,23 +998,20 @@ type postUsersSearchByUsernameAndHostResponse = array<MisskeyIoComponentSchemas.
|
|
|
1073
998
|
let postUsersSearchByUsernameAndHostResponseSchema = S.array(MisskeyIoComponentSchemas.User.schema)
|
|
1074
999
|
|
|
1075
1000
|
/**
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
let postUsersSearchByUsernameAndHost = (~body: postUsersSearchByUsernameAndHostRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1001
|
+
users/search-by-username-and-host
|
|
1002
|
+
|
|
1003
|
+
Search for a user by username and/or host.
|
|
1004
|
+
|
|
1005
|
+
**Credential required**: *No*
|
|
1006
|
+
*/
|
|
1007
|
+
let postUsersSearchByUsernameAndHost = async (~body: postUsersSearchByUsernameAndHostRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersSearchByUsernameAndHostResponse => {
|
|
1083
1008
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersSearchByUsernameAndHostRequestSchema)
|
|
1084
|
-
fetch(
|
|
1009
|
+
let response = await fetch(
|
|
1085
1010
|
~url="/users/search-by-username-and-host",
|
|
1086
1011
|
~method_="POST",
|
|
1087
1012
|
~body=Some(jsonBody),
|
|
1088
|
-
)
|
|
1089
|
-
|
|
1090
|
-
value
|
|
1091
|
-
->Promise.resolve
|
|
1092
|
-
})
|
|
1013
|
+
)
|
|
1014
|
+
response->S.parseOrThrow(postUsersSearchByUsernameAndHostResponseSchema)
|
|
1093
1015
|
}
|
|
1094
1016
|
|
|
1095
1017
|
type postUsersShowRequest = {
|
|
@@ -1113,23 +1035,20 @@ type postUsersShowResponse = array<MisskeyIoComponentSchemas.UserDetailed.t>
|
|
|
1113
1035
|
let postUsersShowResponseSchema = S.array(MisskeyIoComponentSchemas.UserDetailed.schema)
|
|
1114
1036
|
|
|
1115
1037
|
/**
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
let postUsersShow = (~body: postUsersShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1038
|
+
users/show
|
|
1039
|
+
|
|
1040
|
+
Show the properties of a user.
|
|
1041
|
+
|
|
1042
|
+
**Credential required**: *No*
|
|
1043
|
+
*/
|
|
1044
|
+
let postUsersShow = async (~body: postUsersShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersShowResponse => {
|
|
1123
1045
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersShowRequestSchema)
|
|
1124
|
-
fetch(
|
|
1046
|
+
let response = await fetch(
|
|
1125
1047
|
~url="/users/show",
|
|
1126
1048
|
~method_="POST",
|
|
1127
1049
|
~body=Some(jsonBody),
|
|
1128
|
-
)
|
|
1129
|
-
|
|
1130
|
-
value
|
|
1131
|
-
->Promise.resolve
|
|
1132
|
-
})
|
|
1050
|
+
)
|
|
1051
|
+
response->S.parseOrThrow(postUsersShowResponseSchema)
|
|
1133
1052
|
}
|
|
1134
1053
|
|
|
1135
1054
|
type postUsersStatsRequest = {
|
|
@@ -1187,21 +1106,18 @@ let postUsersStatsResponseSchema = S.object(s => {
|
|
|
1187
1106
|
})
|
|
1188
1107
|
|
|
1189
1108
|
/**
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
let postUsersStats = (~body: postUsersStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1109
|
+
users/stats
|
|
1110
|
+
|
|
1111
|
+
Show statistics about a user.
|
|
1112
|
+
|
|
1113
|
+
**Credential required**: *No*
|
|
1114
|
+
*/
|
|
1115
|
+
let postUsersStats = async (~body: postUsersStatsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersStatsResponse => {
|
|
1197
1116
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersStatsRequestSchema)
|
|
1198
|
-
fetch(
|
|
1117
|
+
let response = await fetch(
|
|
1199
1118
|
~url="/users/stats",
|
|
1200
1119
|
~method_="POST",
|
|
1201
1120
|
~body=Some(jsonBody),
|
|
1202
|
-
)
|
|
1203
|
-
|
|
1204
|
-
value
|
|
1205
|
-
->Promise.resolve
|
|
1206
|
-
})
|
|
1121
|
+
)
|
|
1122
|
+
response->S.parseOrThrow(postUsersStatsResponseSchema)
|
|
1207
1123
|
}
|