@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
|
@@ -32,23 +32,20 @@ type postChannelsTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
32
32
|
let postChannelsTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
let postChannelsTimeline = (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
35
|
+
channels/timeline
|
|
36
|
+
|
|
37
|
+
No description provided.
|
|
38
|
+
|
|
39
|
+
**Credential required**: *No*
|
|
40
|
+
*/
|
|
41
|
+
let postChannelsTimeline = async (~body: postChannelsTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChannelsTimelineResponse => {
|
|
42
42
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChannelsTimelineRequestSchema)
|
|
43
|
-
fetch(
|
|
43
|
+
let response = await fetch(
|
|
44
44
|
~url="/channels/timeline",
|
|
45
45
|
~method_="POST",
|
|
46
46
|
~body=Some(jsonBody),
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
value
|
|
50
|
-
->Promise.resolve
|
|
51
|
-
})
|
|
47
|
+
)
|
|
48
|
+
response->S.parseOrThrow(postChannelsTimelineResponseSchema)
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
type postNotesRequest = {
|
|
@@ -78,23 +75,20 @@ type postNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
78
75
|
let postNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
79
76
|
|
|
80
77
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
let postNotes = (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
78
|
+
notes
|
|
79
|
+
|
|
80
|
+
No description provided.
|
|
81
|
+
|
|
82
|
+
**Credential required**: *No*
|
|
83
|
+
*/
|
|
84
|
+
let postNotes = async (~body: postNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesResponse => {
|
|
88
85
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRequestSchema)
|
|
89
|
-
fetch(
|
|
86
|
+
let response = await fetch(
|
|
90
87
|
~url="/notes",
|
|
91
88
|
~method_="POST",
|
|
92
89
|
~body=Some(jsonBody),
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
value
|
|
96
|
-
->Promise.resolve
|
|
97
|
-
})
|
|
90
|
+
)
|
|
91
|
+
response->S.parseOrThrow(postNotesResponseSchema)
|
|
98
92
|
}
|
|
99
93
|
|
|
100
94
|
type postNotesChildrenRequest = {
|
|
@@ -116,23 +110,20 @@ type postNotesChildrenResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
116
110
|
let postNotesChildrenResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
117
111
|
|
|
118
112
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
let postNotesChildren = (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
113
|
+
notes/children
|
|
114
|
+
|
|
115
|
+
No description provided.
|
|
116
|
+
|
|
117
|
+
**Credential required**: *No*
|
|
118
|
+
*/
|
|
119
|
+
let postNotesChildren = async (~body: postNotesChildrenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesChildrenResponse => {
|
|
126
120
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesChildrenRequestSchema)
|
|
127
|
-
fetch(
|
|
121
|
+
let response = await fetch(
|
|
128
122
|
~url="/notes/children",
|
|
129
123
|
~method_="POST",
|
|
130
124
|
~body=Some(jsonBody),
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
value
|
|
134
|
-
->Promise.resolve
|
|
135
|
-
})
|
|
125
|
+
)
|
|
126
|
+
response->S.parseOrThrow(postNotesChildrenResponseSchema)
|
|
136
127
|
}
|
|
137
128
|
|
|
138
129
|
type postNotesConversationRequest = {
|
|
@@ -152,23 +143,20 @@ type postNotesConversationResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
152
143
|
let postNotesConversationResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
153
144
|
|
|
154
145
|
/**
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
let postNotesConversation = (~body: postNotesConversationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
146
|
+
notes/conversation
|
|
147
|
+
|
|
148
|
+
No description provided.
|
|
149
|
+
|
|
150
|
+
**Credential required**: *No*
|
|
151
|
+
*/
|
|
152
|
+
let postNotesConversation = async (~body: postNotesConversationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesConversationResponse => {
|
|
162
153
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesConversationRequestSchema)
|
|
163
|
-
fetch(
|
|
154
|
+
let response = await fetch(
|
|
164
155
|
~url="/notes/conversation",
|
|
165
156
|
~method_="POST",
|
|
166
157
|
~body=Some(jsonBody),
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
value
|
|
170
|
-
->Promise.resolve
|
|
171
|
-
})
|
|
158
|
+
)
|
|
159
|
+
response->S.parseOrThrow(postNotesConversationResponseSchema)
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
type postNotesCreateRequest_1 = {
|
|
@@ -238,23 +226,20 @@ let postNotesCreateResponseSchema = S.object(s => {
|
|
|
238
226
|
})
|
|
239
227
|
|
|
240
228
|
/**
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
let postNotesCreate = (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
229
|
+
notes/create
|
|
230
|
+
|
|
231
|
+
No description provided.
|
|
232
|
+
|
|
233
|
+
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
234
|
+
*/
|
|
235
|
+
let postNotesCreate = async (~body: postNotesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesCreateResponse => {
|
|
248
236
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesCreateRequestSchema)
|
|
249
|
-
fetch(
|
|
237
|
+
let response = await fetch(
|
|
250
238
|
~url="/notes/create",
|
|
251
239
|
~method_="POST",
|
|
252
240
|
~body=Some(jsonBody),
|
|
253
|
-
)
|
|
254
|
-
|
|
255
|
-
value
|
|
256
|
-
->Promise.resolve
|
|
257
|
-
})
|
|
241
|
+
)
|
|
242
|
+
response->S.parseOrThrow(postNotesCreateResponseSchema)
|
|
258
243
|
}
|
|
259
244
|
|
|
260
245
|
type postNotesDeleteRequest = {
|
|
@@ -268,23 +253,20 @@ let postNotesDeleteRequestSchema = S.object(s => {
|
|
|
268
253
|
type postNotesDeleteResponse = unit
|
|
269
254
|
|
|
270
255
|
/**
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
let postNotesDelete = (~body: postNotesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
256
|
+
notes/delete
|
|
257
|
+
|
|
258
|
+
No description provided.
|
|
259
|
+
|
|
260
|
+
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
261
|
+
*/
|
|
262
|
+
let postNotesDelete = async (~body: postNotesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesDeleteResponse => {
|
|
278
263
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesDeleteRequestSchema)
|
|
279
|
-
fetch(
|
|
264
|
+
let response = await fetch(
|
|
280
265
|
~url="/notes/delete",
|
|
281
266
|
~method_="POST",
|
|
282
267
|
~body=Some(jsonBody),
|
|
283
|
-
)
|
|
268
|
+
)
|
|
284
269
|
let _ = response
|
|
285
|
-
()
|
|
286
|
-
->Promise.resolve
|
|
287
|
-
})
|
|
288
270
|
}
|
|
289
271
|
|
|
290
272
|
type postNotesFavoritesCreateRequest = {
|
|
@@ -298,23 +280,20 @@ let postNotesFavoritesCreateRequestSchema = S.object(s => {
|
|
|
298
280
|
type postNotesFavoritesCreateResponse = unit
|
|
299
281
|
|
|
300
282
|
/**
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
let postNotesFavoritesCreate = (~body: postNotesFavoritesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
283
|
+
notes/favorites/create
|
|
284
|
+
|
|
285
|
+
No description provided.
|
|
286
|
+
|
|
287
|
+
**Credential required**: *Yes* / **Permission**: *write:favorites*
|
|
288
|
+
*/
|
|
289
|
+
let postNotesFavoritesCreate = async (~body: postNotesFavoritesCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFavoritesCreateResponse => {
|
|
308
290
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFavoritesCreateRequestSchema)
|
|
309
|
-
fetch(
|
|
291
|
+
let response = await fetch(
|
|
310
292
|
~url="/notes/favorites/create",
|
|
311
293
|
~method_="POST",
|
|
312
294
|
~body=Some(jsonBody),
|
|
313
|
-
)
|
|
295
|
+
)
|
|
314
296
|
let _ = response
|
|
315
|
-
()
|
|
316
|
-
->Promise.resolve
|
|
317
|
-
})
|
|
318
297
|
}
|
|
319
298
|
|
|
320
299
|
type postNotesFavoritesDeleteRequest = {
|
|
@@ -328,23 +307,20 @@ let postNotesFavoritesDeleteRequestSchema = S.object(s => {
|
|
|
328
307
|
type postNotesFavoritesDeleteResponse = unit
|
|
329
308
|
|
|
330
309
|
/**
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
let postNotesFavoritesDelete = (~body: postNotesFavoritesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
310
|
+
notes/favorites/delete
|
|
311
|
+
|
|
312
|
+
No description provided.
|
|
313
|
+
|
|
314
|
+
**Credential required**: *Yes* / **Permission**: *write:favorites*
|
|
315
|
+
*/
|
|
316
|
+
let postNotesFavoritesDelete = async (~body: postNotesFavoritesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFavoritesDeleteResponse => {
|
|
338
317
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFavoritesDeleteRequestSchema)
|
|
339
|
-
fetch(
|
|
318
|
+
let response = await fetch(
|
|
340
319
|
~url="/notes/favorites/delete",
|
|
341
320
|
~method_="POST",
|
|
342
321
|
~body=Some(jsonBody),
|
|
343
|
-
)
|
|
322
|
+
)
|
|
344
323
|
let _ = response
|
|
345
|
-
()
|
|
346
|
-
->Promise.resolve
|
|
347
|
-
})
|
|
348
324
|
}
|
|
349
325
|
|
|
350
326
|
type getNotesFeaturedRequest = {
|
|
@@ -364,23 +340,20 @@ type getNotesFeaturedResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
364
340
|
let getNotesFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
365
341
|
|
|
366
342
|
/**
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
let getNotesFeatured = (~body: getNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
343
|
+
notes/featured
|
|
344
|
+
|
|
345
|
+
No description provided.
|
|
346
|
+
|
|
347
|
+
**Credential required**: *No*
|
|
348
|
+
*/
|
|
349
|
+
let getNotesFeatured = async (~body: getNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getNotesFeaturedResponse => {
|
|
374
350
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getNotesFeaturedRequestSchema)
|
|
375
|
-
fetch(
|
|
351
|
+
let response = await fetch(
|
|
376
352
|
~url="/notes/featured",
|
|
377
353
|
~method_="GET",
|
|
378
354
|
~body=Some(jsonBody),
|
|
379
|
-
)
|
|
380
|
-
|
|
381
|
-
value
|
|
382
|
-
->Promise.resolve
|
|
383
|
-
})
|
|
355
|
+
)
|
|
356
|
+
response->S.parseOrThrow(getNotesFeaturedResponseSchema)
|
|
384
357
|
}
|
|
385
358
|
|
|
386
359
|
type postNotesFeaturedRequest = {
|
|
@@ -400,23 +373,20 @@ type postNotesFeaturedResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
400
373
|
let postNotesFeaturedResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
401
374
|
|
|
402
375
|
/**
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
let postNotesFeatured = (~body: postNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
376
|
+
notes/featured
|
|
377
|
+
|
|
378
|
+
No description provided.
|
|
379
|
+
|
|
380
|
+
**Credential required**: *No*
|
|
381
|
+
*/
|
|
382
|
+
let postNotesFeatured = async (~body: postNotesFeaturedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesFeaturedResponse => {
|
|
410
383
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesFeaturedRequestSchema)
|
|
411
|
-
fetch(
|
|
384
|
+
let response = await fetch(
|
|
412
385
|
~url="/notes/featured",
|
|
413
386
|
~method_="POST",
|
|
414
387
|
~body=Some(jsonBody),
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
value
|
|
418
|
-
->Promise.resolve
|
|
419
|
-
})
|
|
388
|
+
)
|
|
389
|
+
response->S.parseOrThrow(postNotesFeaturedResponseSchema)
|
|
420
390
|
}
|
|
421
391
|
|
|
422
392
|
type postNotesGlobalTimelineRequest = {
|
|
@@ -446,23 +416,20 @@ type postNotesGlobalTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
446
416
|
let postNotesGlobalTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
447
417
|
|
|
448
418
|
/**
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
let postNotesGlobalTimeline = (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
419
|
+
notes/global-timeline
|
|
420
|
+
|
|
421
|
+
No description provided.
|
|
422
|
+
|
|
423
|
+
**Credential required**: *No*
|
|
424
|
+
*/
|
|
425
|
+
let postNotesGlobalTimeline = async (~body: postNotesGlobalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesGlobalTimelineResponse => {
|
|
456
426
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesGlobalTimelineRequestSchema)
|
|
457
|
-
fetch(
|
|
427
|
+
let response = await fetch(
|
|
458
428
|
~url="/notes/global-timeline",
|
|
459
429
|
~method_="POST",
|
|
460
430
|
~body=Some(jsonBody),
|
|
461
|
-
)
|
|
462
|
-
|
|
463
|
-
value
|
|
464
|
-
->Promise.resolve
|
|
465
|
-
})
|
|
431
|
+
)
|
|
432
|
+
response->S.parseOrThrow(postNotesGlobalTimelineResponseSchema)
|
|
466
433
|
}
|
|
467
434
|
|
|
468
435
|
type postNotesHybridTimelineRequest = {
|
|
@@ -502,23 +469,20 @@ type postNotesHybridTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
502
469
|
let postNotesHybridTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
503
470
|
|
|
504
471
|
/**
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
let postNotesHybridTimeline = (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
472
|
+
notes/hybrid-timeline
|
|
473
|
+
|
|
474
|
+
No description provided.
|
|
475
|
+
|
|
476
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
477
|
+
*/
|
|
478
|
+
let postNotesHybridTimeline = async (~body: postNotesHybridTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesHybridTimelineResponse => {
|
|
512
479
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesHybridTimelineRequestSchema)
|
|
513
|
-
fetch(
|
|
480
|
+
let response = await fetch(
|
|
514
481
|
~url="/notes/hybrid-timeline",
|
|
515
482
|
~method_="POST",
|
|
516
483
|
~body=Some(jsonBody),
|
|
517
|
-
)
|
|
518
|
-
|
|
519
|
-
value
|
|
520
|
-
->Promise.resolve
|
|
521
|
-
})
|
|
484
|
+
)
|
|
485
|
+
response->S.parseOrThrow(postNotesHybridTimelineResponseSchema)
|
|
522
486
|
}
|
|
523
487
|
|
|
524
488
|
type postNotesLocalTimelineRequest = {
|
|
@@ -552,23 +516,20 @@ type postNotesLocalTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
552
516
|
let postNotesLocalTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
553
517
|
|
|
554
518
|
/**
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
let postNotesLocalTimeline = (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
519
|
+
notes/local-timeline
|
|
520
|
+
|
|
521
|
+
No description provided.
|
|
522
|
+
|
|
523
|
+
**Credential required**: *No*
|
|
524
|
+
*/
|
|
525
|
+
let postNotesLocalTimeline = async (~body: postNotesLocalTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesLocalTimelineResponse => {
|
|
562
526
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesLocalTimelineRequestSchema)
|
|
563
|
-
fetch(
|
|
527
|
+
let response = await fetch(
|
|
564
528
|
~url="/notes/local-timeline",
|
|
565
529
|
~method_="POST",
|
|
566
530
|
~body=Some(jsonBody),
|
|
567
|
-
)
|
|
568
|
-
|
|
569
|
-
value
|
|
570
|
-
->Promise.resolve
|
|
571
|
-
})
|
|
531
|
+
)
|
|
532
|
+
response->S.parseOrThrow(postNotesLocalTimelineResponseSchema)
|
|
572
533
|
}
|
|
573
534
|
|
|
574
535
|
type postNotesMentionsRequest = {
|
|
@@ -592,23 +553,20 @@ type postNotesMentionsResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
592
553
|
let postNotesMentionsResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
593
554
|
|
|
594
555
|
/**
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
let postNotesMentions = (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
556
|
+
notes/mentions
|
|
557
|
+
|
|
558
|
+
No description provided.
|
|
559
|
+
|
|
560
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
561
|
+
*/
|
|
562
|
+
let postNotesMentions = async (~body: postNotesMentionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesMentionsResponse => {
|
|
602
563
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesMentionsRequestSchema)
|
|
603
|
-
fetch(
|
|
564
|
+
let response = await fetch(
|
|
604
565
|
~url="/notes/mentions",
|
|
605
566
|
~method_="POST",
|
|
606
567
|
~body=Some(jsonBody),
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
value
|
|
610
|
-
->Promise.resolve
|
|
611
|
-
})
|
|
568
|
+
)
|
|
569
|
+
response->S.parseOrThrow(postNotesMentionsResponseSchema)
|
|
612
570
|
}
|
|
613
571
|
|
|
614
572
|
type postNotesPollsRecommendationRequest = {
|
|
@@ -628,23 +586,20 @@ type postNotesPollsRecommendationResponse = array<MisskeyIoComponentSchemas.Note
|
|
|
628
586
|
let postNotesPollsRecommendationResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
629
587
|
|
|
630
588
|
/**
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
let postNotesPollsRecommendation = (~body: postNotesPollsRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
589
|
+
notes/polls/recommendation
|
|
590
|
+
|
|
591
|
+
No description provided.
|
|
592
|
+
|
|
593
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
594
|
+
*/
|
|
595
|
+
let postNotesPollsRecommendation = async (~body: postNotesPollsRecommendationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesPollsRecommendationResponse => {
|
|
638
596
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesPollsRecommendationRequestSchema)
|
|
639
|
-
fetch(
|
|
597
|
+
let response = await fetch(
|
|
640
598
|
~url="/notes/polls/recommendation",
|
|
641
599
|
~method_="POST",
|
|
642
600
|
~body=Some(jsonBody),
|
|
643
|
-
)
|
|
644
|
-
|
|
645
|
-
value
|
|
646
|
-
->Promise.resolve
|
|
647
|
-
})
|
|
601
|
+
)
|
|
602
|
+
response->S.parseOrThrow(postNotesPollsRecommendationResponseSchema)
|
|
648
603
|
}
|
|
649
604
|
|
|
650
605
|
type postNotesPollsVoteRequest = {
|
|
@@ -660,23 +615,20 @@ let postNotesPollsVoteRequestSchema = S.object(s => {
|
|
|
660
615
|
type postNotesPollsVoteResponse = unit
|
|
661
616
|
|
|
662
617
|
/**
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
let postNotesPollsVote = (~body: postNotesPollsVoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
618
|
+
notes/polls/vote
|
|
619
|
+
|
|
620
|
+
No description provided.
|
|
621
|
+
|
|
622
|
+
**Credential required**: *Yes* / **Permission**: *write:votes*
|
|
623
|
+
*/
|
|
624
|
+
let postNotesPollsVote = async (~body: postNotesPollsVoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesPollsVoteResponse => {
|
|
670
625
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesPollsVoteRequestSchema)
|
|
671
|
-
fetch(
|
|
626
|
+
let response = await fetch(
|
|
672
627
|
~url="/notes/polls/vote",
|
|
673
628
|
~method_="POST",
|
|
674
629
|
~body=Some(jsonBody),
|
|
675
|
-
)
|
|
630
|
+
)
|
|
676
631
|
let _ = response
|
|
677
|
-
()
|
|
678
|
-
->Promise.resolve
|
|
679
|
-
})
|
|
680
632
|
}
|
|
681
633
|
|
|
682
634
|
type getNotesReactionsRequest = {
|
|
@@ -700,23 +652,20 @@ type getNotesReactionsResponse = array<MisskeyIoComponentSchemas.NoteReaction.t>
|
|
|
700
652
|
let getNotesReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema)
|
|
701
653
|
|
|
702
654
|
/**
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
let getNotesReactions = (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
655
|
+
notes/reactions
|
|
656
|
+
|
|
657
|
+
No description provided.
|
|
658
|
+
|
|
659
|
+
**Credential required**: *No*
|
|
660
|
+
*/
|
|
661
|
+
let getNotesReactions = async (~body: getNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getNotesReactionsResponse => {
|
|
710
662
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getNotesReactionsRequestSchema)
|
|
711
|
-
fetch(
|
|
663
|
+
let response = await fetch(
|
|
712
664
|
~url="/notes/reactions",
|
|
713
665
|
~method_="GET",
|
|
714
666
|
~body=Some(jsonBody),
|
|
715
|
-
)
|
|
716
|
-
|
|
717
|
-
value
|
|
718
|
-
->Promise.resolve
|
|
719
|
-
})
|
|
667
|
+
)
|
|
668
|
+
response->S.parseOrThrow(getNotesReactionsResponseSchema)
|
|
720
669
|
}
|
|
721
670
|
|
|
722
671
|
type postNotesReactionsRequest = {
|
|
@@ -740,23 +689,20 @@ type postNotesReactionsResponse = array<MisskeyIoComponentSchemas.NoteReaction.t
|
|
|
740
689
|
let postNotesReactionsResponseSchema = S.array(MisskeyIoComponentSchemas.NoteReaction.schema)
|
|
741
690
|
|
|
742
691
|
/**
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
let postNotesReactions = (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
692
|
+
notes/reactions
|
|
693
|
+
|
|
694
|
+
No description provided.
|
|
695
|
+
|
|
696
|
+
**Credential required**: *No*
|
|
697
|
+
*/
|
|
698
|
+
let postNotesReactions = async (~body: postNotesReactionsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesReactionsResponse => {
|
|
750
699
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesReactionsRequestSchema)
|
|
751
|
-
fetch(
|
|
700
|
+
let response = await fetch(
|
|
752
701
|
~url="/notes/reactions",
|
|
753
702
|
~method_="POST",
|
|
754
703
|
~body=Some(jsonBody),
|
|
755
|
-
)
|
|
756
|
-
|
|
757
|
-
value
|
|
758
|
-
->Promise.resolve
|
|
759
|
-
})
|
|
704
|
+
)
|
|
705
|
+
response->S.parseOrThrow(postNotesReactionsResponseSchema)
|
|
760
706
|
}
|
|
761
707
|
|
|
762
708
|
type postNotesRenotesRequest = {
|
|
@@ -778,23 +724,20 @@ type postNotesRenotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
778
724
|
let postNotesRenotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
779
725
|
|
|
780
726
|
/**
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
let postNotesRenotes = (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
727
|
+
notes/renotes
|
|
728
|
+
|
|
729
|
+
No description provided.
|
|
730
|
+
|
|
731
|
+
**Credential required**: *No*
|
|
732
|
+
*/
|
|
733
|
+
let postNotesRenotes = async (~body: postNotesRenotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRenotesResponse => {
|
|
788
734
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRenotesRequestSchema)
|
|
789
|
-
fetch(
|
|
735
|
+
let response = await fetch(
|
|
790
736
|
~url="/notes/renotes",
|
|
791
737
|
~method_="POST",
|
|
792
738
|
~body=Some(jsonBody),
|
|
793
|
-
)
|
|
794
|
-
|
|
795
|
-
value
|
|
796
|
-
->Promise.resolve
|
|
797
|
-
})
|
|
739
|
+
)
|
|
740
|
+
response->S.parseOrThrow(postNotesRenotesResponseSchema)
|
|
798
741
|
}
|
|
799
742
|
|
|
800
743
|
type postNotesRepliesRequest = {
|
|
@@ -816,23 +759,20 @@ type postNotesRepliesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
816
759
|
let postNotesRepliesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
817
760
|
|
|
818
761
|
/**
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
let postNotesReplies = (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
762
|
+
notes/replies
|
|
763
|
+
|
|
764
|
+
No description provided.
|
|
765
|
+
|
|
766
|
+
**Credential required**: *No*
|
|
767
|
+
*/
|
|
768
|
+
let postNotesReplies = async (~body: postNotesRepliesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesRepliesResponse => {
|
|
826
769
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesRepliesRequestSchema)
|
|
827
|
-
fetch(
|
|
770
|
+
let response = await fetch(
|
|
828
771
|
~url="/notes/replies",
|
|
829
772
|
~method_="POST",
|
|
830
773
|
~body=Some(jsonBody),
|
|
831
|
-
)
|
|
832
|
-
|
|
833
|
-
value
|
|
834
|
-
->Promise.resolve
|
|
835
|
-
})
|
|
774
|
+
)
|
|
775
|
+
response->S.parseOrThrow(postNotesRepliesResponseSchema)
|
|
836
776
|
}
|
|
837
777
|
|
|
838
778
|
type postNotesScheduledCancelRequest = {
|
|
@@ -846,23 +786,20 @@ let postNotesScheduledCancelRequestSchema = S.object(s => {
|
|
|
846
786
|
type postNotesScheduledCancelResponse = unit
|
|
847
787
|
|
|
848
788
|
/**
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
let postNotesScheduledCancel = (~body: postNotesScheduledCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
789
|
+
notes/scheduled/cancel
|
|
790
|
+
|
|
791
|
+
No description provided.
|
|
792
|
+
|
|
793
|
+
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
794
|
+
*/
|
|
795
|
+
let postNotesScheduledCancel = async (~body: postNotesScheduledCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesScheduledCancelResponse => {
|
|
856
796
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesScheduledCancelRequestSchema)
|
|
857
|
-
fetch(
|
|
797
|
+
let response = await fetch(
|
|
858
798
|
~url="/notes/scheduled/cancel",
|
|
859
799
|
~method_="POST",
|
|
860
800
|
~body=Some(jsonBody),
|
|
861
|
-
)
|
|
801
|
+
)
|
|
862
802
|
let _ = response
|
|
863
|
-
()
|
|
864
|
-
->Promise.resolve
|
|
865
|
-
})
|
|
866
803
|
}
|
|
867
804
|
|
|
868
805
|
type postNotesScheduledListRequest = {
|
|
@@ -880,23 +817,20 @@ type postNotesScheduledListResponse = array<MisskeyIoComponentSchemas.NoteDraft.
|
|
|
880
817
|
let postNotesScheduledListResponseSchema = S.array(MisskeyIoComponentSchemas.NoteDraft.schema)
|
|
881
818
|
|
|
882
819
|
/**
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
let postNotesScheduledList = (~body: postNotesScheduledListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
820
|
+
notes/scheduled/list
|
|
821
|
+
|
|
822
|
+
No description provided.
|
|
823
|
+
|
|
824
|
+
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
825
|
+
*/
|
|
826
|
+
let postNotesScheduledList = async (~body: postNotesScheduledListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesScheduledListResponse => {
|
|
890
827
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesScheduledListRequestSchema)
|
|
891
|
-
fetch(
|
|
828
|
+
let response = await fetch(
|
|
892
829
|
~url="/notes/scheduled/list",
|
|
893
830
|
~method_="POST",
|
|
894
831
|
~body=Some(jsonBody),
|
|
895
|
-
)
|
|
896
|
-
|
|
897
|
-
value
|
|
898
|
-
->Promise.resolve
|
|
899
|
-
})
|
|
832
|
+
)
|
|
833
|
+
response->S.parseOrThrow(postNotesScheduledListResponseSchema)
|
|
900
834
|
}
|
|
901
835
|
|
|
902
836
|
type postNotesSearchRequest = {
|
|
@@ -926,23 +860,20 @@ type postNotesSearchResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
926
860
|
let postNotesSearchResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
927
861
|
|
|
928
862
|
/**
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
let postNotesSearch = (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
863
|
+
notes/search
|
|
864
|
+
|
|
865
|
+
No description provided.
|
|
866
|
+
|
|
867
|
+
**Credential required**: *No*
|
|
868
|
+
*/
|
|
869
|
+
let postNotesSearch = async (~body: postNotesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchResponse => {
|
|
936
870
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchRequestSchema)
|
|
937
|
-
fetch(
|
|
871
|
+
let response = await fetch(
|
|
938
872
|
~url="/notes/search",
|
|
939
873
|
~method_="POST",
|
|
940
874
|
~body=Some(jsonBody),
|
|
941
|
-
)
|
|
942
|
-
|
|
943
|
-
value
|
|
944
|
-
->Promise.resolve
|
|
945
|
-
})
|
|
875
|
+
)
|
|
876
|
+
response->S.parseOrThrow(postNotesSearchResponseSchema)
|
|
946
877
|
}
|
|
947
878
|
|
|
948
879
|
type postNotesSearchByTagRequest = {
|
|
@@ -976,23 +907,20 @@ type postNotesSearchByTagResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
976
907
|
let postNotesSearchByTagResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
977
908
|
|
|
978
909
|
/**
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
let postNotesSearchByTag = (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
910
|
+
notes/search-by-tag
|
|
911
|
+
|
|
912
|
+
No description provided.
|
|
913
|
+
|
|
914
|
+
**Credential required**: *No*
|
|
915
|
+
*/
|
|
916
|
+
let postNotesSearchByTag = async (~body: postNotesSearchByTagRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesSearchByTagResponse => {
|
|
986
917
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesSearchByTagRequestSchema)
|
|
987
|
-
fetch(
|
|
918
|
+
let response = await fetch(
|
|
988
919
|
~url="/notes/search-by-tag",
|
|
989
920
|
~method_="POST",
|
|
990
921
|
~body=Some(jsonBody),
|
|
991
|
-
)
|
|
992
|
-
|
|
993
|
-
value
|
|
994
|
-
->Promise.resolve
|
|
995
|
-
})
|
|
922
|
+
)
|
|
923
|
+
response->S.parseOrThrow(postNotesSearchByTagResponseSchema)
|
|
996
924
|
}
|
|
997
925
|
|
|
998
926
|
type postNotesShowRequest = {
|
|
@@ -1008,23 +936,20 @@ type postNotesShowResponse = MisskeyIoComponentSchemas.Note.t
|
|
|
1008
936
|
let postNotesShowResponseSchema = MisskeyIoComponentSchemas.Note.schema
|
|
1009
937
|
|
|
1010
938
|
/**
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
let postNotesShow = (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
939
|
+
notes/show
|
|
940
|
+
|
|
941
|
+
No description provided.
|
|
942
|
+
|
|
943
|
+
**Credential required**: *No*
|
|
944
|
+
*/
|
|
945
|
+
let postNotesShow = async (~body: postNotesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesShowResponse => {
|
|
1018
946
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesShowRequestSchema)
|
|
1019
|
-
fetch(
|
|
947
|
+
let response = await fetch(
|
|
1020
948
|
~url="/notes/show",
|
|
1021
949
|
~method_="POST",
|
|
1022
950
|
~body=Some(jsonBody),
|
|
1023
|
-
)
|
|
1024
|
-
|
|
1025
|
-
value
|
|
1026
|
-
->Promise.resolve
|
|
1027
|
-
})
|
|
951
|
+
)
|
|
952
|
+
response->S.parseOrThrow(postNotesShowResponseSchema)
|
|
1028
953
|
}
|
|
1029
954
|
|
|
1030
955
|
type postNotesStateRequest = {
|
|
@@ -1046,23 +971,20 @@ let postNotesStateResponseSchema = S.object(s => {
|
|
|
1046
971
|
})
|
|
1047
972
|
|
|
1048
973
|
/**
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
let postNotesState = (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
974
|
+
notes/state
|
|
975
|
+
|
|
976
|
+
No description provided.
|
|
977
|
+
|
|
978
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
979
|
+
*/
|
|
980
|
+
let postNotesState = async (~body: postNotesStateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesStateResponse => {
|
|
1056
981
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesStateRequestSchema)
|
|
1057
|
-
fetch(
|
|
982
|
+
let response = await fetch(
|
|
1058
983
|
~url="/notes/state",
|
|
1059
984
|
~method_="POST",
|
|
1060
985
|
~body=Some(jsonBody),
|
|
1061
|
-
)
|
|
1062
|
-
|
|
1063
|
-
value
|
|
1064
|
-
->Promise.resolve
|
|
1065
|
-
})
|
|
986
|
+
)
|
|
987
|
+
response->S.parseOrThrow(postNotesStateResponseSchema)
|
|
1066
988
|
}
|
|
1067
989
|
|
|
1068
990
|
type postNotesThreadMutingCreateRequest = {
|
|
@@ -1076,23 +998,20 @@ let postNotesThreadMutingCreateRequestSchema = S.object(s => {
|
|
|
1076
998
|
type postNotesThreadMutingCreateResponse = unit
|
|
1077
999
|
|
|
1078
1000
|
/**
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
let postNotesThreadMutingCreate = (~body: postNotesThreadMutingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1001
|
+
notes/thread-muting/create
|
|
1002
|
+
|
|
1003
|
+
No description provided.
|
|
1004
|
+
|
|
1005
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1006
|
+
*/
|
|
1007
|
+
let postNotesThreadMutingCreate = async (~body: postNotesThreadMutingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesThreadMutingCreateResponse => {
|
|
1086
1008
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesThreadMutingCreateRequestSchema)
|
|
1087
|
-
fetch(
|
|
1009
|
+
let response = await fetch(
|
|
1088
1010
|
~url="/notes/thread-muting/create",
|
|
1089
1011
|
~method_="POST",
|
|
1090
1012
|
~body=Some(jsonBody),
|
|
1091
|
-
)
|
|
1013
|
+
)
|
|
1092
1014
|
let _ = response
|
|
1093
|
-
()
|
|
1094
|
-
->Promise.resolve
|
|
1095
|
-
})
|
|
1096
1015
|
}
|
|
1097
1016
|
|
|
1098
1017
|
type postNotesThreadMutingDeleteRequest = {
|
|
@@ -1106,23 +1025,20 @@ let postNotesThreadMutingDeleteRequestSchema = S.object(s => {
|
|
|
1106
1025
|
type postNotesThreadMutingDeleteResponse = unit
|
|
1107
1026
|
|
|
1108
1027
|
/**
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
let postNotesThreadMutingDelete = (~body: postNotesThreadMutingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1028
|
+
notes/thread-muting/delete
|
|
1029
|
+
|
|
1030
|
+
No description provided.
|
|
1031
|
+
|
|
1032
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1033
|
+
*/
|
|
1034
|
+
let postNotesThreadMutingDelete = async (~body: postNotesThreadMutingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesThreadMutingDeleteResponse => {
|
|
1116
1035
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesThreadMutingDeleteRequestSchema)
|
|
1117
|
-
fetch(
|
|
1036
|
+
let response = await fetch(
|
|
1118
1037
|
~url="/notes/thread-muting/delete",
|
|
1119
1038
|
~method_="POST",
|
|
1120
1039
|
~body=Some(jsonBody),
|
|
1121
|
-
)
|
|
1040
|
+
)
|
|
1122
1041
|
let _ = response
|
|
1123
|
-
()
|
|
1124
|
-
->Promise.resolve
|
|
1125
|
-
})
|
|
1126
1042
|
}
|
|
1127
1043
|
|
|
1128
1044
|
type postNotesTimelineRequest = {
|
|
@@ -1160,23 +1076,20 @@ type postNotesTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
1160
1076
|
let postNotesTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
1161
1077
|
|
|
1162
1078
|
/**
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
let postNotesTimeline = (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1079
|
+
notes/timeline
|
|
1080
|
+
|
|
1081
|
+
No description provided.
|
|
1082
|
+
|
|
1083
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1084
|
+
*/
|
|
1085
|
+
let postNotesTimeline = async (~body: postNotesTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesTimelineResponse => {
|
|
1170
1086
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesTimelineRequestSchema)
|
|
1171
|
-
fetch(
|
|
1087
|
+
let response = await fetch(
|
|
1172
1088
|
~url="/notes/timeline",
|
|
1173
1089
|
~method_="POST",
|
|
1174
1090
|
~body=Some(jsonBody),
|
|
1175
|
-
)
|
|
1176
|
-
|
|
1177
|
-
value
|
|
1178
|
-
->Promise.resolve
|
|
1179
|
-
})
|
|
1091
|
+
)
|
|
1092
|
+
response->S.parseOrThrow(postNotesTimelineResponseSchema)
|
|
1180
1093
|
}
|
|
1181
1094
|
|
|
1182
1095
|
type postNotesTranslateRequest = {
|
|
@@ -1200,23 +1113,20 @@ let postNotesTranslateResponseSchema = S.object(s => {
|
|
|
1200
1113
|
})
|
|
1201
1114
|
|
|
1202
1115
|
/**
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
let postNotesTranslate = (~body: postNotesTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1116
|
+
notes/translate
|
|
1117
|
+
|
|
1118
|
+
No description provided.
|
|
1119
|
+
|
|
1120
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1121
|
+
*/
|
|
1122
|
+
let postNotesTranslate = async (~body: postNotesTranslateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesTranslateResponse => {
|
|
1210
1123
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesTranslateRequestSchema)
|
|
1211
|
-
fetch(
|
|
1124
|
+
let response = await fetch(
|
|
1212
1125
|
~url="/notes/translate",
|
|
1213
1126
|
~method_="POST",
|
|
1214
1127
|
~body=Some(jsonBody),
|
|
1215
|
-
)
|
|
1216
|
-
|
|
1217
|
-
value
|
|
1218
|
-
->Promise.resolve
|
|
1219
|
-
})
|
|
1128
|
+
)
|
|
1129
|
+
response->S.parseOrThrow(postNotesTranslateResponseSchema)
|
|
1220
1130
|
}
|
|
1221
1131
|
|
|
1222
1132
|
type postNotesUnrenoteRequest = {
|
|
@@ -1230,23 +1140,20 @@ let postNotesUnrenoteRequestSchema = S.object(s => {
|
|
|
1230
1140
|
type postNotesUnrenoteResponse = unit
|
|
1231
1141
|
|
|
1232
1142
|
/**
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
let postNotesUnrenote = (~body: postNotesUnrenoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1143
|
+
notes/unrenote
|
|
1144
|
+
|
|
1145
|
+
No description provided.
|
|
1146
|
+
|
|
1147
|
+
**Credential required**: *Yes* / **Permission**: *write:notes*
|
|
1148
|
+
*/
|
|
1149
|
+
let postNotesUnrenote = async (~body: postNotesUnrenoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUnrenoteResponse => {
|
|
1240
1150
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUnrenoteRequestSchema)
|
|
1241
|
-
fetch(
|
|
1151
|
+
let response = await fetch(
|
|
1242
1152
|
~url="/notes/unrenote",
|
|
1243
1153
|
~method_="POST",
|
|
1244
1154
|
~body=Some(jsonBody),
|
|
1245
|
-
)
|
|
1155
|
+
)
|
|
1246
1156
|
let _ = response
|
|
1247
|
-
()
|
|
1248
|
-
->Promise.resolve
|
|
1249
|
-
})
|
|
1250
1157
|
}
|
|
1251
1158
|
|
|
1252
1159
|
type postNotesUserListTimelineRequest = {
|
|
@@ -1284,23 +1191,20 @@ type postNotesUserListTimelineResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
1284
1191
|
let postNotesUserListTimelineResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
1285
1192
|
|
|
1286
1193
|
/**
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
let postNotesUserListTimeline = (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1194
|
+
notes/user-list-timeline
|
|
1195
|
+
|
|
1196
|
+
No description provided.
|
|
1197
|
+
|
|
1198
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
1199
|
+
*/
|
|
1200
|
+
let postNotesUserListTimeline = async (~body: postNotesUserListTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postNotesUserListTimelineResponse => {
|
|
1294
1201
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postNotesUserListTimelineRequestSchema)
|
|
1295
|
-
fetch(
|
|
1202
|
+
let response = await fetch(
|
|
1296
1203
|
~url="/notes/user-list-timeline",
|
|
1297
1204
|
~method_="POST",
|
|
1298
1205
|
~body=Some(jsonBody),
|
|
1299
|
-
)
|
|
1300
|
-
|
|
1301
|
-
value
|
|
1302
|
-
->Promise.resolve
|
|
1303
|
-
})
|
|
1206
|
+
)
|
|
1207
|
+
response->S.parseOrThrow(postNotesUserListTimelineResponseSchema)
|
|
1304
1208
|
}
|
|
1305
1209
|
|
|
1306
1210
|
type postPromoReadRequest = {
|
|
@@ -1314,23 +1218,20 @@ let postPromoReadRequestSchema = S.object(s => {
|
|
|
1314
1218
|
type postPromoReadResponse = unit
|
|
1315
1219
|
|
|
1316
1220
|
/**
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
let postPromoRead = (~body: postPromoReadRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1221
|
+
promo/read
|
|
1222
|
+
|
|
1223
|
+
No description provided.
|
|
1224
|
+
|
|
1225
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1226
|
+
*/
|
|
1227
|
+
let postPromoRead = async (~body: postPromoReadRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPromoReadResponse => {
|
|
1324
1228
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postPromoReadRequestSchema)
|
|
1325
|
-
fetch(
|
|
1229
|
+
let response = await fetch(
|
|
1326
1230
|
~url="/promo/read",
|
|
1327
1231
|
~method_="POST",
|
|
1328
1232
|
~body=Some(jsonBody),
|
|
1329
|
-
)
|
|
1233
|
+
)
|
|
1330
1234
|
let _ = response
|
|
1331
|
-
()
|
|
1332
|
-
->Promise.resolve
|
|
1333
|
-
})
|
|
1334
1235
|
}
|
|
1335
1236
|
|
|
1336
1237
|
type getUsersFeaturedNotesRequest = {
|
|
@@ -1350,23 +1251,20 @@ type getUsersFeaturedNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
1350
1251
|
let getUsersFeaturedNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
1351
1252
|
|
|
1352
1253
|
/**
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
let getUsersFeaturedNotes = (~body: getUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1254
|
+
users/featured-notes
|
|
1255
|
+
|
|
1256
|
+
No description provided.
|
|
1257
|
+
|
|
1258
|
+
**Credential required**: *No*
|
|
1259
|
+
*/
|
|
1260
|
+
let getUsersFeaturedNotes = async (~body: getUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getUsersFeaturedNotesResponse => {
|
|
1360
1261
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(getUsersFeaturedNotesRequestSchema)
|
|
1361
|
-
fetch(
|
|
1262
|
+
let response = await fetch(
|
|
1362
1263
|
~url="/users/featured-notes",
|
|
1363
1264
|
~method_="GET",
|
|
1364
1265
|
~body=Some(jsonBody),
|
|
1365
|
-
)
|
|
1366
|
-
|
|
1367
|
-
value
|
|
1368
|
-
->Promise.resolve
|
|
1369
|
-
})
|
|
1266
|
+
)
|
|
1267
|
+
response->S.parseOrThrow(getUsersFeaturedNotesResponseSchema)
|
|
1370
1268
|
}
|
|
1371
1269
|
|
|
1372
1270
|
type postUsersFeaturedNotesRequest = {
|
|
@@ -1386,21 +1284,18 @@ type postUsersFeaturedNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
1386
1284
|
let postUsersFeaturedNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
1387
1285
|
|
|
1388
1286
|
/**
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
let postUsersFeaturedNotes = (~body: postUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1287
|
+
users/featured-notes
|
|
1288
|
+
|
|
1289
|
+
No description provided.
|
|
1290
|
+
|
|
1291
|
+
**Credential required**: *No*
|
|
1292
|
+
*/
|
|
1293
|
+
let postUsersFeaturedNotes = async (~body: postUsersFeaturedNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersFeaturedNotesResponse => {
|
|
1396
1294
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersFeaturedNotesRequestSchema)
|
|
1397
|
-
fetch(
|
|
1295
|
+
let response = await fetch(
|
|
1398
1296
|
~url="/users/featured-notes",
|
|
1399
1297
|
~method_="POST",
|
|
1400
1298
|
~body=Some(jsonBody),
|
|
1401
|
-
)
|
|
1402
|
-
|
|
1403
|
-
value
|
|
1404
|
-
->Promise.resolve
|
|
1405
|
-
})
|
|
1299
|
+
)
|
|
1300
|
+
response->S.parseOrThrow(postUsersFeaturedNotesResponseSchema)
|
|
1406
1301
|
}
|