@f3liz/rescript-misskey-api 0.6.8 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es6/src/Misskey.mjs +133 -156
- package/lib/es6/src/bindings/Ofetch.mjs +2 -0
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
- package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
- package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
- package/package.json +3 -2
- package/src/Misskey.res +92 -149
- package/src/bindings/Ofetch.res +14 -0
- package/src/generated/kokonect-link/api/KokonectLinkAccount.res +241 -313
- package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +485 -632
- package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkApp.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkAuth.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChannels.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkCharts.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkChat.res +260 -341
- package/src/generated/kokonect-link/api/KokonectLinkClips.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkDefault.res +101 -131
- package/src/generated/kokonect-link/api/KokonectLinkDrive.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkFederation.res +60 -78
- package/src/generated/kokonect-link/api/KokonectLinkFlash.res +31 -40
- package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +10 -13
- package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +70 -91
- package/src/generated/kokonect-link/api/KokonectLinkGallery.res +40 -52
- package/src/generated/kokonect-link/api/KokonectLinkGroups.res +116 -152
- package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +20 -26
- package/src/generated/kokonect-link/api/KokonectLinkLists.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkMeta.res +94 -121
- package/src/generated/kokonect-link/api/KokonectLinkNotes.res +289 -376
- package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +9 -12
- package/src/generated/kokonect-link/api/KokonectLinkPages.res +29 -38
- package/src/generated/kokonect-link/api/KokonectLinkRole.res +30 -39
- package/src/generated/kokonect-link/api/KokonectLinkUsers.res +119 -155
- package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +30 -39
- package/src/generated/kokonect-link/types/Account.d.ts +235 -177
- package/src/generated/kokonect-link/types/Admin.d.ts +640 -484
- package/src/generated/kokonect-link/types/Antennas.d.ts +36 -27
- package/src/generated/kokonect-link/types/App.d.ts +16 -12
- package/src/generated/kokonect-link/types/Auth.d.ts +30 -23
- package/src/generated/kokonect-link/types/Channels.d.ts +76 -57
- package/src/generated/kokonect-link/types/Charts.d.ts +104 -78
- package/src/generated/kokonect-link/types/Chat.d.ts +108 -81
- package/src/generated/kokonect-link/types/Clip.d.ts +8 -6
- package/src/generated/kokonect-link/types/Clips.d.ts +40 -30
- package/src/generated/kokonect-link/types/Default.d.ts +297 -232
- package/src/generated/kokonect-link/types/Drive.d.ts +120 -90
- package/src/generated/kokonect-link/types/Federation.d.ts +68 -51
- package/src/generated/kokonect-link/types/Flash.d.ts +33 -25
- package/src/generated/kokonect-link/types/Flashs.d.ts +12 -9
- package/src/generated/kokonect-link/types/Following.d.ts +68 -51
- package/src/generated/kokonect-link/types/Gallery.d.ts +52 -39
- package/src/generated/kokonect-link/types/Groups.d.ts +48 -36
- package/src/generated/kokonect-link/types/Hashtags.d.ts +32 -24
- package/src/generated/kokonect-link/types/Lists.d.ts +48 -36
- package/src/generated/kokonect-link/types/Meta.d.ts +133 -100
- package/src/generated/kokonect-link/types/NonProductive.d.ts +8 -6
- package/src/generated/kokonect-link/types/Notes.d.ts +256 -192
- package/src/generated/kokonect-link/types/Notifications.d.ts +20 -15
- package/src/generated/kokonect-link/types/Pages.d.ts +40 -30
- package/src/generated/kokonect-link/types/Reactions.d.ts +8 -6
- package/src/generated/kokonect-link/types/ResetPassword.d.ts +8 -6
- package/src/generated/kokonect-link/types/Role.d.ts +28 -21
- package/src/generated/kokonect-link/types/Users.d.ts +161 -121
- package/src/generated/kokonect-link/types/Webhooks.d.ts +44 -34
- package/src/generated/kokonect-link/types/index.d.ts +1 -2
- package/src/generated/kokonect-link/wrapper/index.d.ts +4813 -2131
- package/src/generated/kokonect-link/wrapper/index.mjs +2 -710
- package/src/generated/misskey-io/api/MisskeyIoAccount.res +335 -437
- package/src/generated/misskey-io/api/MisskeyIoAdmin.res +1035 -1356
- package/src/generated/misskey-io/api/MisskeyIoAntennas.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoApp.res +20 -26
- package/src/generated/misskey-io/api/MisskeyIoAuth.res +51 -66
- package/src/generated/misskey-io/api/MisskeyIoChannels.res +129 -168
- package/src/generated/misskey-io/api/MisskeyIoCharts.res +240 -312
- package/src/generated/misskey-io/api/MisskeyIoClip.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoClips.res +60 -78
- package/src/generated/misskey-io/api/MisskeyIoDefault.res +561 -726
- package/src/generated/misskey-io/api/MisskeyIoDrive.res +178 -232
- package/src/generated/misskey-io/api/MisskeyIoFederation.res +109 -142
- package/src/generated/misskey-io/api/MisskeyIoFlash.res +47 -62
- package/src/generated/misskey-io/api/MisskeyIoFlashs.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoFollowing.res +97 -127
- package/src/generated/misskey-io/api/MisskeyIoGallery.res +88 -115
- package/src/generated/misskey-io/api/MisskeyIoHashtags.res +62 -80
- package/src/generated/misskey-io/api/MisskeyIoLists.res +86 -113
- package/src/generated/misskey-io/api/MisskeyIoMeta.res +251 -323
- package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +19 -25
- package/src/generated/misskey-io/api/MisskeyIoNotes.res +341 -446
- package/src/generated/misskey-io/api/MisskeyIoNotifications.res +39 -51
- package/src/generated/misskey-io/api/MisskeyIoPages.res +67 -88
- package/src/generated/misskey-io/api/MisskeyIoReactions.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +18 -24
- package/src/generated/misskey-io/api/MisskeyIoRole.res +41 -53
- package/src/generated/misskey-io/api/MisskeyIoUsers.res +284 -368
- package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +69 -90
- package/src/generated/misskey-io/types/Account.d.ts +139 -105
- package/src/generated/misskey-io/types/Admin.d.ts +438 -331
- package/src/generated/misskey-io/types/Antennas.d.ts +24 -18
- package/src/generated/misskey-io/types/App.d.ts +8 -6
- package/src/generated/misskey-io/types/Auth.d.ts +22 -17
- package/src/generated/misskey-io/types/Channels.d.ts +52 -39
- package/src/generated/misskey-io/types/Charts.d.ts +96 -72
- package/src/generated/misskey-io/types/Clip.d.ts +8 -6
- package/src/generated/misskey-io/types/Clips.d.ts +24 -18
- package/src/generated/misskey-io/types/Default.d.ts +253 -198
- package/src/generated/misskey-io/types/Drive.d.ts +72 -54
- package/src/generated/misskey-io/types/Federation.d.ts +44 -33
- package/src/generated/misskey-io/types/Flash.d.ts +20 -15
- package/src/generated/misskey-io/types/Flashs.d.ts +8 -6
- package/src/generated/misskey-io/types/Following.d.ts +40 -30
- package/src/generated/misskey-io/types/Gallery.d.ts +36 -27
- package/src/generated/misskey-io/types/Hashtags.d.ts +24 -18
- package/src/generated/misskey-io/types/Lists.d.ts +36 -27
- package/src/generated/misskey-io/types/Meta.d.ts +97 -73
- package/src/generated/misskey-io/types/NonProductive.d.ts +8 -6
- package/src/generated/misskey-io/types/Notes.d.ts +140 -105
- package/src/generated/misskey-io/types/Notifications.d.ts +16 -12
- package/src/generated/misskey-io/types/Pages.d.ts +28 -21
- package/src/generated/misskey-io/types/Reactions.d.ts +8 -6
- package/src/generated/misskey-io/types/ResetPassword.d.ts +8 -6
- package/src/generated/misskey-io/types/Role.d.ts +16 -12
- package/src/generated/misskey-io/types/Users.d.ts +113 -85
- package/src/generated/misskey-io/types/Webhooks.d.ts +30 -23
- package/src/generated/misskey-io/types/index.d.ts +1 -2
- package/src/generated/misskey-io/wrapper/index.d.ts +3127 -1399
- package/src/generated/misskey-io/wrapper/index.mjs +2 -469
|
@@ -18,23 +18,20 @@ type postBlockingCreateResponse = MisskeyIoComponentSchemas.UserDetailedNotMe.t
|
|
|
18
18
|
let postBlockingCreateResponseSchema = MisskeyIoComponentSchemas.UserDetailedNotMe.schema
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
let postBlockingCreate = (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
21
|
+
blocking/create
|
|
22
|
+
|
|
23
|
+
No description provided.
|
|
24
|
+
|
|
25
|
+
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
26
|
+
*/
|
|
27
|
+
let postBlockingCreate = async (~body: postBlockingCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingCreateResponse => {
|
|
28
28
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingCreateRequestSchema)
|
|
29
|
-
fetch(
|
|
29
|
+
let response = await fetch(
|
|
30
30
|
~url="/blocking/create",
|
|
31
31
|
~method_="POST",
|
|
32
32
|
~body=Some(jsonBody),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
value
|
|
36
|
-
->Promise.resolve
|
|
37
|
-
})
|
|
33
|
+
)
|
|
34
|
+
response->S.parseOrThrow(postBlockingCreateResponseSchema)
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
type postBlockingDeleteRequest = {
|
|
@@ -50,23 +47,20 @@ type postBlockingDeleteResponse = MisskeyIoComponentSchemas.UserDetailedNotMe.t
|
|
|
50
47
|
let postBlockingDeleteResponseSchema = MisskeyIoComponentSchemas.UserDetailedNotMe.schema
|
|
51
48
|
|
|
52
49
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
let postBlockingDelete = (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
50
|
+
blocking/delete
|
|
51
|
+
|
|
52
|
+
No description provided.
|
|
53
|
+
|
|
54
|
+
**Credential required**: *Yes* / **Permission**: *write:blocks*
|
|
55
|
+
*/
|
|
56
|
+
let postBlockingDelete = async (~body: postBlockingDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingDeleteResponse => {
|
|
60
57
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingDeleteRequestSchema)
|
|
61
|
-
fetch(
|
|
58
|
+
let response = await fetch(
|
|
62
59
|
~url="/blocking/delete",
|
|
63
60
|
~method_="POST",
|
|
64
61
|
~body=Some(jsonBody),
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
value
|
|
68
|
-
->Promise.resolve
|
|
69
|
-
})
|
|
62
|
+
)
|
|
63
|
+
response->S.parseOrThrow(postBlockingDeleteResponseSchema)
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
type postBlockingListRequest = {
|
|
@@ -86,23 +80,20 @@ type postBlockingListResponse = array<MisskeyIoComponentSchemas.Blocking.t>
|
|
|
86
80
|
let postBlockingListResponseSchema = S.array(MisskeyIoComponentSchemas.Blocking.schema)
|
|
87
81
|
|
|
88
82
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
let postBlockingList = (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
83
|
+
blocking/list
|
|
84
|
+
|
|
85
|
+
No description provided.
|
|
86
|
+
|
|
87
|
+
**Credential required**: *Yes* / **Permission**: *read:blocks*
|
|
88
|
+
*/
|
|
89
|
+
let postBlockingList = async (~body: postBlockingListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBlockingListResponse => {
|
|
96
90
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postBlockingListRequestSchema)
|
|
97
|
-
fetch(
|
|
91
|
+
let response = await fetch(
|
|
98
92
|
~url="/blocking/list",
|
|
99
93
|
~method_="POST",
|
|
100
94
|
~body=Some(jsonBody),
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
value
|
|
104
|
-
->Promise.resolve
|
|
105
|
-
})
|
|
95
|
+
)
|
|
96
|
+
response->S.parseOrThrow(postBlockingListResponseSchema)
|
|
106
97
|
}
|
|
107
98
|
|
|
108
99
|
type postClipsAddNoteRequest = {
|
|
@@ -118,23 +109,20 @@ let postClipsAddNoteRequestSchema = S.object(s => {
|
|
|
118
109
|
type postClipsAddNoteResponse = unit
|
|
119
110
|
|
|
120
111
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
let postClipsAddNote = (~body: postClipsAddNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
112
|
+
clips/add-note
|
|
113
|
+
|
|
114
|
+
No description provided.
|
|
115
|
+
|
|
116
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
117
|
+
*/
|
|
118
|
+
let postClipsAddNote = async (~body: postClipsAddNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsAddNoteResponse => {
|
|
128
119
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsAddNoteRequestSchema)
|
|
129
|
-
fetch(
|
|
120
|
+
let response = await fetch(
|
|
130
121
|
~url="/clips/add-note",
|
|
131
122
|
~method_="POST",
|
|
132
123
|
~body=Some(jsonBody),
|
|
133
|
-
)
|
|
124
|
+
)
|
|
134
125
|
let _ = response
|
|
135
|
-
()
|
|
136
|
-
->Promise.resolve
|
|
137
|
-
})
|
|
138
126
|
}
|
|
139
127
|
|
|
140
128
|
type postClipsMyFavoritesResponse = array<MisskeyIoComponentSchemas.Clip.t>
|
|
@@ -142,23 +130,20 @@ type postClipsMyFavoritesResponse = array<MisskeyIoComponentSchemas.Clip.t>
|
|
|
142
130
|
let postClipsMyFavoritesResponseSchema = S.array(MisskeyIoComponentSchemas.Clip.schema)
|
|
143
131
|
|
|
144
132
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
let postClipsMyFavorites = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
152
|
-
|
|
153
|
-
fetch(
|
|
133
|
+
clips/my-favorites
|
|
134
|
+
|
|
135
|
+
No description provided.
|
|
136
|
+
|
|
137
|
+
**Credential required**: *Yes* / **Permission**: *read:clip-favorite*
|
|
138
|
+
*/
|
|
139
|
+
let postClipsMyFavorites = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsMyFavoritesResponse => {
|
|
140
|
+
|
|
141
|
+
let response = await fetch(
|
|
154
142
|
~url="/clips/my-favorites",
|
|
155
143
|
~method_="POST",
|
|
156
144
|
~body=None,
|
|
157
|
-
)
|
|
158
|
-
|
|
159
|
-
value
|
|
160
|
-
->Promise.resolve
|
|
161
|
-
})
|
|
145
|
+
)
|
|
146
|
+
response->S.parseOrThrow(postClipsMyFavoritesResponseSchema)
|
|
162
147
|
}
|
|
163
148
|
|
|
164
149
|
type postClipsNotesRequest = {
|
|
@@ -180,23 +165,20 @@ type postClipsNotesResponse = array<MisskeyIoComponentSchemas.Note.t>
|
|
|
180
165
|
let postClipsNotesResponseSchema = S.array(MisskeyIoComponentSchemas.Note.schema)
|
|
181
166
|
|
|
182
167
|
/**
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
let postClipsNotes = (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
168
|
+
clips/notes
|
|
169
|
+
|
|
170
|
+
No description provided.
|
|
171
|
+
|
|
172
|
+
**Credential required**: *No* / **Permission**: *read:account*
|
|
173
|
+
*/
|
|
174
|
+
let postClipsNotes = async (~body: postClipsNotesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsNotesResponse => {
|
|
190
175
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsNotesRequestSchema)
|
|
191
|
-
fetch(
|
|
176
|
+
let response = await fetch(
|
|
192
177
|
~url="/clips/notes",
|
|
193
178
|
~method_="POST",
|
|
194
179
|
~body=Some(jsonBody),
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
value
|
|
198
|
-
->Promise.resolve
|
|
199
|
-
})
|
|
180
|
+
)
|
|
181
|
+
response->S.parseOrThrow(postClipsNotesResponseSchema)
|
|
200
182
|
}
|
|
201
183
|
|
|
202
184
|
type postClipsRemoveNoteRequest = {
|
|
@@ -212,23 +194,20 @@ let postClipsRemoveNoteRequestSchema = S.object(s => {
|
|
|
212
194
|
type postClipsRemoveNoteResponse = unit
|
|
213
195
|
|
|
214
196
|
/**
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
let postClipsRemoveNote = (~body: postClipsRemoveNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
197
|
+
clips/remove-note
|
|
198
|
+
|
|
199
|
+
No description provided.
|
|
200
|
+
|
|
201
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
202
|
+
*/
|
|
203
|
+
let postClipsRemoveNote = async (~body: postClipsRemoveNoteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postClipsRemoveNoteResponse => {
|
|
222
204
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postClipsRemoveNoteRequestSchema)
|
|
223
|
-
fetch(
|
|
205
|
+
let response = await fetch(
|
|
224
206
|
~url="/clips/remove-note",
|
|
225
207
|
~method_="POST",
|
|
226
208
|
~body=Some(jsonBody),
|
|
227
|
-
)
|
|
209
|
+
)
|
|
228
210
|
let _ = response
|
|
229
|
-
()
|
|
230
|
-
->Promise.resolve
|
|
231
|
-
})
|
|
232
211
|
}
|
|
233
212
|
|
|
234
213
|
type postFlashMyRequest = {
|
|
@@ -248,23 +227,20 @@ type postFlashMyResponse = array<MisskeyIoComponentSchemas.Flash.t>
|
|
|
248
227
|
let postFlashMyResponseSchema = S.array(MisskeyIoComponentSchemas.Flash.schema)
|
|
249
228
|
|
|
250
229
|
/**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
let postFlashMy = (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
230
|
+
flash/my
|
|
231
|
+
|
|
232
|
+
No description provided.
|
|
233
|
+
|
|
234
|
+
**Credential required**: *Yes* / **Permission**: *read:flash*
|
|
235
|
+
*/
|
|
236
|
+
let postFlashMy = async (~body: postFlashMyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyResponse => {
|
|
258
237
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyRequestSchema)
|
|
259
|
-
fetch(
|
|
238
|
+
let response = await fetch(
|
|
260
239
|
~url="/flash/my",
|
|
261
240
|
~method_="POST",
|
|
262
241
|
~body=Some(jsonBody),
|
|
263
|
-
)
|
|
264
|
-
|
|
265
|
-
value
|
|
266
|
-
->Promise.resolve
|
|
267
|
-
})
|
|
242
|
+
)
|
|
243
|
+
response->S.parseOrThrow(postFlashMyResponseSchema)
|
|
268
244
|
}
|
|
269
245
|
|
|
270
246
|
type postFlashMyLikesRequest = {
|
|
@@ -294,23 +270,20 @@ let postFlashMyLikesResponse_1Schema = S.object(s => {
|
|
|
294
270
|
let postFlashMyLikesResponseSchema = S.array(postFlashMyLikesResponse_1Schema)
|
|
295
271
|
|
|
296
272
|
/**
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
let postFlashMyLikes = (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
273
|
+
flash/my-likes
|
|
274
|
+
|
|
275
|
+
No description provided.
|
|
276
|
+
|
|
277
|
+
**Credential required**: *Yes* / **Permission**: *read:flash-likes*
|
|
278
|
+
*/
|
|
279
|
+
let postFlashMyLikes = async (~body: postFlashMyLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postFlashMyLikesResponse => {
|
|
304
280
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postFlashMyLikesRequestSchema)
|
|
305
|
-
fetch(
|
|
281
|
+
let response = await fetch(
|
|
306
282
|
~url="/flash/my-likes",
|
|
307
283
|
~method_="POST",
|
|
308
284
|
~body=Some(jsonBody),
|
|
309
|
-
)
|
|
310
|
-
|
|
311
|
-
value
|
|
312
|
-
->Promise.resolve
|
|
313
|
-
})
|
|
285
|
+
)
|
|
286
|
+
response->S.parseOrThrow(postFlashMyLikesResponseSchema)
|
|
314
287
|
}
|
|
315
288
|
|
|
316
289
|
type postIResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
@@ -318,23 +291,20 @@ type postIResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
318
291
|
let postIResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
319
292
|
|
|
320
293
|
/**
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
let postI = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
328
|
-
|
|
329
|
-
fetch(
|
|
294
|
+
i
|
|
295
|
+
|
|
296
|
+
No description provided.
|
|
297
|
+
|
|
298
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
299
|
+
*/
|
|
300
|
+
let postI = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIResponse => {
|
|
301
|
+
|
|
302
|
+
let response = await fetch(
|
|
330
303
|
~url="/i",
|
|
331
304
|
~method_="POST",
|
|
332
305
|
~body=None,
|
|
333
|
-
)
|
|
334
|
-
|
|
335
|
-
value
|
|
336
|
-
->Promise.resolve
|
|
337
|
-
})
|
|
306
|
+
)
|
|
307
|
+
response->S.parseOrThrow(postIResponseSchema)
|
|
338
308
|
}
|
|
339
309
|
|
|
340
310
|
type postIFavoritesRequest = {
|
|
@@ -354,23 +324,20 @@ type postIFavoritesResponse = array<MisskeyIoComponentSchemas.NoteFavorite.t>
|
|
|
354
324
|
let postIFavoritesResponseSchema = S.array(MisskeyIoComponentSchemas.NoteFavorite.schema)
|
|
355
325
|
|
|
356
326
|
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
let postIFavorites = (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
327
|
+
i/favorites
|
|
328
|
+
|
|
329
|
+
No description provided.
|
|
330
|
+
|
|
331
|
+
**Credential required**: *Yes* / **Permission**: *read:favorites*
|
|
332
|
+
*/
|
|
333
|
+
let postIFavorites = async (~body: postIFavoritesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIFavoritesResponse => {
|
|
364
334
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIFavoritesRequestSchema)
|
|
365
|
-
fetch(
|
|
335
|
+
let response = await fetch(
|
|
366
336
|
~url="/i/favorites",
|
|
367
337
|
~method_="POST",
|
|
368
338
|
~body=Some(jsonBody),
|
|
369
|
-
)
|
|
370
|
-
|
|
371
|
-
value
|
|
372
|
-
->Promise.resolve
|
|
373
|
-
})
|
|
339
|
+
)
|
|
340
|
+
response->S.parseOrThrow(postIFavoritesResponseSchema)
|
|
374
341
|
}
|
|
375
342
|
|
|
376
343
|
type postIGalleryLikesRequest = {
|
|
@@ -400,23 +367,20 @@ let postIGalleryLikesResponse_1Schema = S.object(s => {
|
|
|
400
367
|
let postIGalleryLikesResponseSchema = S.array(postIGalleryLikesResponse_1Schema)
|
|
401
368
|
|
|
402
369
|
/**
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
let postIGalleryLikes = (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
370
|
+
i/gallery/likes
|
|
371
|
+
|
|
372
|
+
No description provided.
|
|
373
|
+
|
|
374
|
+
**Credential required**: *Yes* / **Permission**: *read:gallery-likes*
|
|
375
|
+
*/
|
|
376
|
+
let postIGalleryLikes = async (~body: postIGalleryLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryLikesResponse => {
|
|
410
377
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryLikesRequestSchema)
|
|
411
|
-
fetch(
|
|
378
|
+
let response = await fetch(
|
|
412
379
|
~url="/i/gallery/likes",
|
|
413
380
|
~method_="POST",
|
|
414
381
|
~body=Some(jsonBody),
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
value
|
|
418
|
-
->Promise.resolve
|
|
419
|
-
})
|
|
382
|
+
)
|
|
383
|
+
response->S.parseOrThrow(postIGalleryLikesResponseSchema)
|
|
420
384
|
}
|
|
421
385
|
|
|
422
386
|
type postIGalleryPostsRequest = {
|
|
@@ -436,23 +400,20 @@ type postIGalleryPostsResponse = array<MisskeyIoComponentSchemas.GalleryPost.t>
|
|
|
436
400
|
let postIGalleryPostsResponseSchema = S.array(MisskeyIoComponentSchemas.GalleryPost.schema)
|
|
437
401
|
|
|
438
402
|
/**
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
let postIGalleryPosts = (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
403
|
+
i/gallery/posts
|
|
404
|
+
|
|
405
|
+
No description provided.
|
|
406
|
+
|
|
407
|
+
**Credential required**: *Yes* / **Permission**: *read:gallery*
|
|
408
|
+
*/
|
|
409
|
+
let postIGalleryPosts = async (~body: postIGalleryPostsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIGalleryPostsResponse => {
|
|
446
410
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIGalleryPostsRequestSchema)
|
|
447
|
-
fetch(
|
|
411
|
+
let response = await fetch(
|
|
448
412
|
~url="/i/gallery/posts",
|
|
449
413
|
~method_="POST",
|
|
450
414
|
~body=Some(jsonBody),
|
|
451
|
-
)
|
|
452
|
-
|
|
453
|
-
value
|
|
454
|
-
->Promise.resolve
|
|
455
|
-
})
|
|
415
|
+
)
|
|
416
|
+
response->S.parseOrThrow(postIGalleryPostsResponseSchema)
|
|
456
417
|
}
|
|
457
418
|
|
|
458
419
|
type postINotificationsRequest = {
|
|
@@ -478,23 +439,20 @@ type postINotificationsResponse = array<MisskeyIoComponentSchemas.Notification.t
|
|
|
478
439
|
let postINotificationsResponseSchema = S.array(MisskeyIoComponentSchemas.Notification.schema)
|
|
479
440
|
|
|
480
441
|
/**
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
let postINotifications = (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
442
|
+
i/notifications
|
|
443
|
+
|
|
444
|
+
No description provided.
|
|
445
|
+
|
|
446
|
+
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
447
|
+
*/
|
|
448
|
+
let postINotifications = async (~body: postINotificationsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsResponse => {
|
|
488
449
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsRequestSchema)
|
|
489
|
-
fetch(
|
|
450
|
+
let response = await fetch(
|
|
490
451
|
~url="/i/notifications",
|
|
491
452
|
~method_="POST",
|
|
492
453
|
~body=Some(jsonBody),
|
|
493
|
-
)
|
|
494
|
-
|
|
495
|
-
value
|
|
496
|
-
->Promise.resolve
|
|
497
|
-
})
|
|
454
|
+
)
|
|
455
|
+
response->S.parseOrThrow(postINotificationsResponseSchema)
|
|
498
456
|
}
|
|
499
457
|
|
|
500
458
|
type postINotificationsGroupedRequest = {
|
|
@@ -520,23 +478,20 @@ type postINotificationsGroupedResponse = array<MisskeyIoComponentSchemas.Notific
|
|
|
520
478
|
let postINotificationsGroupedResponseSchema = S.array(MisskeyIoComponentSchemas.Notification.schema)
|
|
521
479
|
|
|
522
480
|
/**
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
let postINotificationsGrouped = (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
481
|
+
i/notifications-grouped
|
|
482
|
+
|
|
483
|
+
No description provided.
|
|
484
|
+
|
|
485
|
+
**Credential required**: *Yes* / **Permission**: *read:notifications*
|
|
486
|
+
*/
|
|
487
|
+
let postINotificationsGrouped = async (~body: postINotificationsGroupedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postINotificationsGroupedResponse => {
|
|
530
488
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postINotificationsGroupedRequestSchema)
|
|
531
|
-
fetch(
|
|
489
|
+
let response = await fetch(
|
|
532
490
|
~url="/i/notifications-grouped",
|
|
533
491
|
~method_="POST",
|
|
534
492
|
~body=Some(jsonBody),
|
|
535
|
-
)
|
|
536
|
-
|
|
537
|
-
value
|
|
538
|
-
->Promise.resolve
|
|
539
|
-
})
|
|
493
|
+
)
|
|
494
|
+
response->S.parseOrThrow(postINotificationsGroupedResponseSchema)
|
|
540
495
|
}
|
|
541
496
|
|
|
542
497
|
type postIPageLikesRequest = {
|
|
@@ -566,23 +521,20 @@ let postIPageLikesResponse_1Schema = S.object(s => {
|
|
|
566
521
|
let postIPageLikesResponseSchema = S.array(postIPageLikesResponse_1Schema)
|
|
567
522
|
|
|
568
523
|
/**
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
let postIPageLikes = (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
524
|
+
i/page-likes
|
|
525
|
+
|
|
526
|
+
No description provided.
|
|
527
|
+
|
|
528
|
+
**Credential required**: *Yes* / **Permission**: *read:page-likes*
|
|
529
|
+
*/
|
|
530
|
+
let postIPageLikes = async (~body: postIPageLikesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPageLikesResponse => {
|
|
576
531
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPageLikesRequestSchema)
|
|
577
|
-
fetch(
|
|
532
|
+
let response = await fetch(
|
|
578
533
|
~url="/i/page-likes",
|
|
579
534
|
~method_="POST",
|
|
580
535
|
~body=Some(jsonBody),
|
|
581
|
-
)
|
|
582
|
-
|
|
583
|
-
value
|
|
584
|
-
->Promise.resolve
|
|
585
|
-
})
|
|
536
|
+
)
|
|
537
|
+
response->S.parseOrThrow(postIPageLikesResponseSchema)
|
|
586
538
|
}
|
|
587
539
|
|
|
588
540
|
type postIPagesRequest = {
|
|
@@ -602,23 +554,20 @@ type postIPagesResponse = array<MisskeyIoComponentSchemas.Page.t>
|
|
|
602
554
|
let postIPagesResponseSchema = S.array(MisskeyIoComponentSchemas.Page.schema)
|
|
603
555
|
|
|
604
556
|
/**
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
let postIPages = (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
557
|
+
i/pages
|
|
558
|
+
|
|
559
|
+
No description provided.
|
|
560
|
+
|
|
561
|
+
**Credential required**: *Yes* / **Permission**: *read:pages*
|
|
562
|
+
*/
|
|
563
|
+
let postIPages = async (~body: postIPagesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPagesResponse => {
|
|
612
564
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPagesRequestSchema)
|
|
613
|
-
fetch(
|
|
565
|
+
let response = await fetch(
|
|
614
566
|
~url="/i/pages",
|
|
615
567
|
~method_="POST",
|
|
616
568
|
~body=Some(jsonBody),
|
|
617
|
-
)
|
|
618
|
-
|
|
619
|
-
value
|
|
620
|
-
->Promise.resolve
|
|
621
|
-
})
|
|
569
|
+
)
|
|
570
|
+
response->S.parseOrThrow(postIPagesResponseSchema)
|
|
622
571
|
}
|
|
623
572
|
|
|
624
573
|
type postIPinRequest = {
|
|
@@ -634,23 +583,20 @@ type postIPinResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
634
583
|
let postIPinResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
635
584
|
|
|
636
585
|
/**
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
let postIPin = (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
586
|
+
i/pin
|
|
587
|
+
|
|
588
|
+
No description provided.
|
|
589
|
+
|
|
590
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
591
|
+
*/
|
|
592
|
+
let postIPin = async (~body: postIPinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPinResponse => {
|
|
644
593
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPinRequestSchema)
|
|
645
|
-
fetch(
|
|
594
|
+
let response = await fetch(
|
|
646
595
|
~url="/i/pin",
|
|
647
596
|
~method_="POST",
|
|
648
597
|
~body=Some(jsonBody),
|
|
649
|
-
)
|
|
650
|
-
|
|
651
|
-
value
|
|
652
|
-
->Promise.resolve
|
|
653
|
-
})
|
|
598
|
+
)
|
|
599
|
+
response->S.parseOrThrow(postIPinResponseSchema)
|
|
654
600
|
}
|
|
655
601
|
|
|
656
602
|
type postIPurgeTimelineCacheRequest = {
|
|
@@ -668,23 +614,20 @@ let postIPurgeTimelineCacheRequestSchema = S.object(s => {
|
|
|
668
614
|
type postIPurgeTimelineCacheResponse = unit
|
|
669
615
|
|
|
670
616
|
/**
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
let postIPurgeTimelineCache = (~body: postIPurgeTimelineCacheRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
617
|
+
i/purge-timeline-cache
|
|
618
|
+
|
|
619
|
+
No description provided.
|
|
620
|
+
|
|
621
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
622
|
+
*/
|
|
623
|
+
let postIPurgeTimelineCache = async (~body: postIPurgeTimelineCacheRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIPurgeTimelineCacheResponse => {
|
|
678
624
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIPurgeTimelineCacheRequestSchema)
|
|
679
|
-
fetch(
|
|
625
|
+
let response = await fetch(
|
|
680
626
|
~url="/i/purge-timeline-cache",
|
|
681
627
|
~method_="POST",
|
|
682
628
|
~body=Some(jsonBody),
|
|
683
|
-
)
|
|
629
|
+
)
|
|
684
630
|
let _ = response
|
|
685
|
-
()
|
|
686
|
-
->Promise.resolve
|
|
687
|
-
})
|
|
688
631
|
}
|
|
689
632
|
|
|
690
633
|
type postIReadAnnouncementRequest = {
|
|
@@ -698,23 +641,20 @@ let postIReadAnnouncementRequestSchema = S.object(s => {
|
|
|
698
641
|
type postIReadAnnouncementResponse = unit
|
|
699
642
|
|
|
700
643
|
/**
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
let postIReadAnnouncement = (~body: postIReadAnnouncementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
644
|
+
i/read-announcement
|
|
645
|
+
|
|
646
|
+
No description provided.
|
|
647
|
+
|
|
648
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
649
|
+
*/
|
|
650
|
+
let postIReadAnnouncement = async (~body: postIReadAnnouncementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIReadAnnouncementResponse => {
|
|
708
651
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIReadAnnouncementRequestSchema)
|
|
709
|
-
fetch(
|
|
652
|
+
let response = await fetch(
|
|
710
653
|
~url="/i/read-announcement",
|
|
711
654
|
~method_="POST",
|
|
712
655
|
~body=Some(jsonBody),
|
|
713
|
-
)
|
|
656
|
+
)
|
|
714
657
|
let _ = response
|
|
715
|
-
()
|
|
716
|
-
->Promise.resolve
|
|
717
|
-
})
|
|
718
658
|
}
|
|
719
659
|
|
|
720
660
|
type postIUnpinRequest = {
|
|
@@ -730,23 +670,20 @@ type postIUnpinResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
730
670
|
let postIUnpinResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
731
671
|
|
|
732
672
|
/**
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
let postIUnpin = (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
673
|
+
i/unpin
|
|
674
|
+
|
|
675
|
+
No description provided.
|
|
676
|
+
|
|
677
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
678
|
+
*/
|
|
679
|
+
let postIUnpin = async (~body: postIUnpinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUnpinResponse => {
|
|
740
680
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUnpinRequestSchema)
|
|
741
|
-
fetch(
|
|
681
|
+
let response = await fetch(
|
|
742
682
|
~url="/i/unpin",
|
|
743
683
|
~method_="POST",
|
|
744
684
|
~body=Some(jsonBody),
|
|
745
|
-
)
|
|
746
|
-
|
|
747
|
-
value
|
|
748
|
-
->Promise.resolve
|
|
749
|
-
})
|
|
685
|
+
)
|
|
686
|
+
response->S.parseOrThrow(postIUnpinResponseSchema)
|
|
750
687
|
}
|
|
751
688
|
|
|
752
689
|
type postIUpdateRequest_5 = {
|
|
@@ -926,23 +863,20 @@ type postIUpdateResponse = MisskeyIoComponentSchemas.MeDetailed.t
|
|
|
926
863
|
let postIUpdateResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
|
|
927
864
|
|
|
928
865
|
/**
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
let postIUpdate = (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
866
|
+
i/update
|
|
867
|
+
|
|
868
|
+
No description provided.
|
|
869
|
+
|
|
870
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
871
|
+
*/
|
|
872
|
+
let postIUpdate = async (~body: postIUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateResponse => {
|
|
936
873
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateRequestSchema)
|
|
937
|
-
fetch(
|
|
874
|
+
let response = await fetch(
|
|
938
875
|
~url="/i/update",
|
|
939
876
|
~method_="POST",
|
|
940
877
|
~body=Some(jsonBody),
|
|
941
|
-
)
|
|
942
|
-
|
|
943
|
-
value
|
|
944
|
-
->Promise.resolve
|
|
945
|
-
})
|
|
878
|
+
)
|
|
879
|
+
response->S.parseOrThrow(postIUpdateResponseSchema)
|
|
946
880
|
}
|
|
947
881
|
|
|
948
882
|
type postMuteCreateRequest = {
|
|
@@ -958,23 +892,20 @@ let postMuteCreateRequestSchema = S.object(s => {
|
|
|
958
892
|
type postMuteCreateResponse = unit
|
|
959
893
|
|
|
960
894
|
/**
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
let postMuteCreate = (~body: postMuteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
895
|
+
mute/create
|
|
896
|
+
|
|
897
|
+
No description provided.
|
|
898
|
+
|
|
899
|
+
**Credential required**: *Yes* / **Permission**: *write:mutes*
|
|
900
|
+
*/
|
|
901
|
+
let postMuteCreate = async (~body: postMuteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMuteCreateResponse => {
|
|
968
902
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMuteCreateRequestSchema)
|
|
969
|
-
fetch(
|
|
903
|
+
let response = await fetch(
|
|
970
904
|
~url="/mute/create",
|
|
971
905
|
~method_="POST",
|
|
972
906
|
~body=Some(jsonBody),
|
|
973
|
-
)
|
|
907
|
+
)
|
|
974
908
|
let _ = response
|
|
975
|
-
()
|
|
976
|
-
->Promise.resolve
|
|
977
|
-
})
|
|
978
909
|
}
|
|
979
910
|
|
|
980
911
|
type postMuteDeleteRequest = {
|
|
@@ -988,23 +919,20 @@ let postMuteDeleteRequestSchema = S.object(s => {
|
|
|
988
919
|
type postMuteDeleteResponse = unit
|
|
989
920
|
|
|
990
921
|
/**
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
let postMuteDelete = (~body: postMuteDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
922
|
+
mute/delete
|
|
923
|
+
|
|
924
|
+
No description provided.
|
|
925
|
+
|
|
926
|
+
**Credential required**: *Yes* / **Permission**: *write:mutes*
|
|
927
|
+
*/
|
|
928
|
+
let postMuteDelete = async (~body: postMuteDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMuteDeleteResponse => {
|
|
998
929
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMuteDeleteRequestSchema)
|
|
999
|
-
fetch(
|
|
930
|
+
let response = await fetch(
|
|
1000
931
|
~url="/mute/delete",
|
|
1001
932
|
~method_="POST",
|
|
1002
933
|
~body=Some(jsonBody),
|
|
1003
|
-
)
|
|
934
|
+
)
|
|
1004
935
|
let _ = response
|
|
1005
|
-
()
|
|
1006
|
-
->Promise.resolve
|
|
1007
|
-
})
|
|
1008
936
|
}
|
|
1009
937
|
|
|
1010
938
|
type postMuteListRequest = {
|
|
@@ -1024,23 +952,20 @@ type postMuteListResponse = array<MisskeyIoComponentSchemas.Muting.t>
|
|
|
1024
952
|
let postMuteListResponseSchema = S.array(MisskeyIoComponentSchemas.Muting.schema)
|
|
1025
953
|
|
|
1026
954
|
/**
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
let postMuteList = (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
955
|
+
mute/list
|
|
956
|
+
|
|
957
|
+
No description provided.
|
|
958
|
+
|
|
959
|
+
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
960
|
+
*/
|
|
961
|
+
let postMuteList = async (~body: postMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMuteListResponse => {
|
|
1034
962
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMuteListRequestSchema)
|
|
1035
|
-
fetch(
|
|
963
|
+
let response = await fetch(
|
|
1036
964
|
~url="/mute/list",
|
|
1037
965
|
~method_="POST",
|
|
1038
966
|
~body=Some(jsonBody),
|
|
1039
|
-
)
|
|
1040
|
-
|
|
1041
|
-
value
|
|
1042
|
-
->Promise.resolve
|
|
1043
|
-
})
|
|
967
|
+
)
|
|
968
|
+
response->S.parseOrThrow(postMuteListResponseSchema)
|
|
1044
969
|
}
|
|
1045
970
|
|
|
1046
971
|
type postMyAppsRequest = {
|
|
@@ -1058,23 +983,20 @@ type postMyAppsResponse = array<MisskeyIoComponentSchemas.App.t>
|
|
|
1058
983
|
let postMyAppsResponseSchema = S.array(MisskeyIoComponentSchemas.App.schema)
|
|
1059
984
|
|
|
1060
985
|
/**
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
let postMyApps = (~body: postMyAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
986
|
+
my/apps
|
|
987
|
+
|
|
988
|
+
No description provided.
|
|
989
|
+
|
|
990
|
+
**Credential required**: *Yes* / **Permission**: *read:account*
|
|
991
|
+
*/
|
|
992
|
+
let postMyApps = async (~body: postMyAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postMyAppsResponse => {
|
|
1068
993
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postMyAppsRequestSchema)
|
|
1069
|
-
fetch(
|
|
994
|
+
let response = await fetch(
|
|
1070
995
|
~url="/my/apps",
|
|
1071
996
|
~method_="POST",
|
|
1072
997
|
~body=Some(jsonBody),
|
|
1073
|
-
)
|
|
1074
|
-
|
|
1075
|
-
value
|
|
1076
|
-
->Promise.resolve
|
|
1077
|
-
})
|
|
998
|
+
)
|
|
999
|
+
response->S.parseOrThrow(postMyAppsResponseSchema)
|
|
1078
1000
|
}
|
|
1079
1001
|
|
|
1080
1002
|
type postRenoteMuteCreateRequest = {
|
|
@@ -1088,23 +1010,20 @@ let postRenoteMuteCreateRequestSchema = S.object(s => {
|
|
|
1088
1010
|
type postRenoteMuteCreateResponse = unit
|
|
1089
1011
|
|
|
1090
1012
|
/**
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
let postRenoteMuteCreate = (~body: postRenoteMuteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1013
|
+
renote-mute/create
|
|
1014
|
+
|
|
1015
|
+
No description provided.
|
|
1016
|
+
|
|
1017
|
+
**Credential required**: *Yes* / **Permission**: *write:mutes*
|
|
1018
|
+
*/
|
|
1019
|
+
let postRenoteMuteCreate = async (~body: postRenoteMuteCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRenoteMuteCreateResponse => {
|
|
1098
1020
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postRenoteMuteCreateRequestSchema)
|
|
1099
|
-
fetch(
|
|
1021
|
+
let response = await fetch(
|
|
1100
1022
|
~url="/renote-mute/create",
|
|
1101
1023
|
~method_="POST",
|
|
1102
1024
|
~body=Some(jsonBody),
|
|
1103
|
-
)
|
|
1025
|
+
)
|
|
1104
1026
|
let _ = response
|
|
1105
|
-
()
|
|
1106
|
-
->Promise.resolve
|
|
1107
|
-
})
|
|
1108
1027
|
}
|
|
1109
1028
|
|
|
1110
1029
|
type postRenoteMuteDeleteRequest = {
|
|
@@ -1118,23 +1037,20 @@ let postRenoteMuteDeleteRequestSchema = S.object(s => {
|
|
|
1118
1037
|
type postRenoteMuteDeleteResponse = unit
|
|
1119
1038
|
|
|
1120
1039
|
/**
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
let postRenoteMuteDelete = (~body: postRenoteMuteDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1040
|
+
renote-mute/delete
|
|
1041
|
+
|
|
1042
|
+
No description provided.
|
|
1043
|
+
|
|
1044
|
+
**Credential required**: *Yes* / **Permission**: *write:mutes*
|
|
1045
|
+
*/
|
|
1046
|
+
let postRenoteMuteDelete = async (~body: postRenoteMuteDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRenoteMuteDeleteResponse => {
|
|
1128
1047
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postRenoteMuteDeleteRequestSchema)
|
|
1129
|
-
fetch(
|
|
1048
|
+
let response = await fetch(
|
|
1130
1049
|
~url="/renote-mute/delete",
|
|
1131
1050
|
~method_="POST",
|
|
1132
1051
|
~body=Some(jsonBody),
|
|
1133
|
-
)
|
|
1052
|
+
)
|
|
1134
1053
|
let _ = response
|
|
1135
|
-
()
|
|
1136
|
-
->Promise.resolve
|
|
1137
|
-
})
|
|
1138
1054
|
}
|
|
1139
1055
|
|
|
1140
1056
|
type postRenoteMuteListRequest = {
|
|
@@ -1154,23 +1070,20 @@ type postRenoteMuteListResponse = array<MisskeyIoComponentSchemas.RenoteMuting.t
|
|
|
1154
1070
|
let postRenoteMuteListResponseSchema = S.array(MisskeyIoComponentSchemas.RenoteMuting.schema)
|
|
1155
1071
|
|
|
1156
1072
|
/**
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
let postRenoteMuteList = (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1073
|
+
renote-mute/list
|
|
1074
|
+
|
|
1075
|
+
No description provided.
|
|
1076
|
+
|
|
1077
|
+
**Credential required**: *Yes* / **Permission**: *read:mutes*
|
|
1078
|
+
*/
|
|
1079
|
+
let postRenoteMuteList = async (~body: postRenoteMuteListRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postRenoteMuteListResponse => {
|
|
1164
1080
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postRenoteMuteListRequestSchema)
|
|
1165
|
-
fetch(
|
|
1081
|
+
let response = await fetch(
|
|
1166
1082
|
~url="/renote-mute/list",
|
|
1167
1083
|
~method_="POST",
|
|
1168
1084
|
~body=Some(jsonBody),
|
|
1169
|
-
)
|
|
1170
|
-
|
|
1171
|
-
value
|
|
1172
|
-
->Promise.resolve
|
|
1173
|
-
})
|
|
1085
|
+
)
|
|
1086
|
+
response->S.parseOrThrow(postRenoteMuteListResponseSchema)
|
|
1174
1087
|
}
|
|
1175
1088
|
|
|
1176
1089
|
type postSwRegisterRequest = {
|
|
@@ -1204,24 +1117,21 @@ let postSwRegisterResponseSchema = S.object(s => {
|
|
|
1204
1117
|
})
|
|
1205
1118
|
|
|
1206
1119
|
/**
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
let postSwRegister = (~body: postSwRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1120
|
+
sw/register
|
|
1121
|
+
|
|
1122
|
+
Register to receive push notifications.
|
|
1123
|
+
|
|
1124
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1125
|
+
**Credential required**: *Yes*
|
|
1126
|
+
*/
|
|
1127
|
+
let postSwRegister = async (~body: postSwRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postSwRegisterResponse => {
|
|
1215
1128
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postSwRegisterRequestSchema)
|
|
1216
|
-
fetch(
|
|
1129
|
+
let response = await fetch(
|
|
1217
1130
|
~url="/sw/register",
|
|
1218
1131
|
~method_="POST",
|
|
1219
1132
|
~body=Some(jsonBody),
|
|
1220
|
-
)
|
|
1221
|
-
|
|
1222
|
-
value
|
|
1223
|
-
->Promise.resolve
|
|
1224
|
-
})
|
|
1133
|
+
)
|
|
1134
|
+
response->S.parseOrThrow(postSwRegisterResponseSchema)
|
|
1225
1135
|
}
|
|
1226
1136
|
|
|
1227
1137
|
type postSwShowRegistrationRequest = {
|
|
@@ -1249,24 +1159,21 @@ let postSwShowRegistrationResponse_1Schema = S.object(s => {
|
|
|
1249
1159
|
let postSwShowRegistrationResponseSchema = S.nullableAsOption(postSwShowRegistrationResponse_1Schema)
|
|
1250
1160
|
|
|
1251
1161
|
/**
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
let postSwShowRegistration = (~body: postSwShowRegistrationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1162
|
+
sw/show-registration
|
|
1163
|
+
|
|
1164
|
+
Check push notification registration exists.
|
|
1165
|
+
|
|
1166
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1167
|
+
**Credential required**: *Yes*
|
|
1168
|
+
*/
|
|
1169
|
+
let postSwShowRegistration = async (~body: postSwShowRegistrationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postSwShowRegistrationResponse => {
|
|
1260
1170
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postSwShowRegistrationRequestSchema)
|
|
1261
|
-
fetch(
|
|
1171
|
+
let response = await fetch(
|
|
1262
1172
|
~url="/sw/show-registration",
|
|
1263
1173
|
~method_="POST",
|
|
1264
1174
|
~body=Some(jsonBody),
|
|
1265
|
-
)
|
|
1266
|
-
|
|
1267
|
-
value
|
|
1268
|
-
->Promise.resolve
|
|
1269
|
-
})
|
|
1175
|
+
)
|
|
1176
|
+
response->S.parseOrThrow(postSwShowRegistrationResponseSchema)
|
|
1270
1177
|
}
|
|
1271
1178
|
|
|
1272
1179
|
type postSwUnregisterRequest = {
|
|
@@ -1280,23 +1187,20 @@ let postSwUnregisterRequestSchema = S.object(s => {
|
|
|
1280
1187
|
type postSwUnregisterResponse = unit
|
|
1281
1188
|
|
|
1282
1189
|
/**
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
let postSwUnregister = (~body: postSwUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1190
|
+
sw/unregister
|
|
1191
|
+
|
|
1192
|
+
Unregister from receiving push notifications.
|
|
1193
|
+
|
|
1194
|
+
**Credential required**: *No*
|
|
1195
|
+
*/
|
|
1196
|
+
let postSwUnregister = async (~body: postSwUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postSwUnregisterResponse => {
|
|
1290
1197
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postSwUnregisterRequestSchema)
|
|
1291
|
-
fetch(
|
|
1198
|
+
let response = await fetch(
|
|
1292
1199
|
~url="/sw/unregister",
|
|
1293
1200
|
~method_="POST",
|
|
1294
1201
|
~body=Some(jsonBody),
|
|
1295
|
-
)
|
|
1202
|
+
)
|
|
1296
1203
|
let _ = response
|
|
1297
|
-
()
|
|
1298
|
-
->Promise.resolve
|
|
1299
|
-
})
|
|
1300
1204
|
}
|
|
1301
1205
|
|
|
1302
1206
|
type postSwUpdateRegistrationRequest = {
|
|
@@ -1322,24 +1226,21 @@ let postSwUpdateRegistrationResponseSchema = S.object(s => {
|
|
|
1322
1226
|
})
|
|
1323
1227
|
|
|
1324
1228
|
/**
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
let postSwUpdateRegistration = (~body: postSwUpdateRegistrationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1229
|
+
sw/update-registration
|
|
1230
|
+
|
|
1231
|
+
Update push notification registration.
|
|
1232
|
+
|
|
1233
|
+
**Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
|
|
1234
|
+
**Credential required**: *Yes*
|
|
1235
|
+
*/
|
|
1236
|
+
let postSwUpdateRegistration = async (~body: postSwUpdateRegistrationRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postSwUpdateRegistrationResponse => {
|
|
1333
1237
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postSwUpdateRegistrationRequestSchema)
|
|
1334
|
-
fetch(
|
|
1238
|
+
let response = await fetch(
|
|
1335
1239
|
~url="/sw/update-registration",
|
|
1336
1240
|
~method_="POST",
|
|
1337
1241
|
~body=Some(jsonBody),
|
|
1338
|
-
)
|
|
1339
|
-
|
|
1340
|
-
value
|
|
1341
|
-
->Promise.resolve
|
|
1342
|
-
})
|
|
1242
|
+
)
|
|
1243
|
+
response->S.parseOrThrow(postSwUpdateRegistrationResponseSchema)
|
|
1343
1244
|
}
|
|
1344
1245
|
|
|
1345
1246
|
type postUsersUpdateMemoRequest = {
|
|
@@ -1355,21 +1256,18 @@ let postUsersUpdateMemoRequestSchema = S.object(s => {
|
|
|
1355
1256
|
type postUsersUpdateMemoResponse = unit
|
|
1356
1257
|
|
|
1357
1258
|
/**
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
let postUsersUpdateMemo = (~body: postUsersUpdateMemoRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
1259
|
+
users/update-memo
|
|
1260
|
+
|
|
1261
|
+
No description provided.
|
|
1262
|
+
|
|
1263
|
+
**Credential required**: *Yes* / **Permission**: *write:account*
|
|
1264
|
+
*/
|
|
1265
|
+
let postUsersUpdateMemo = async (~body: postUsersUpdateMemoRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersUpdateMemoResponse => {
|
|
1365
1266
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersUpdateMemoRequestSchema)
|
|
1366
|
-
fetch(
|
|
1267
|
+
let response = await fetch(
|
|
1367
1268
|
~url="/users/update-memo",
|
|
1368
1269
|
~method_="POST",
|
|
1369
1270
|
~body=Some(jsonBody),
|
|
1370
|
-
)
|
|
1271
|
+
)
|
|
1371
1272
|
let _ = response
|
|
1372
|
-
()
|
|
1373
|
-
->Promise.resolve
|
|
1374
|
-
})
|
|
1375
1273
|
}
|