@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.
Files changed (177) hide show
  1. package/lib/es6/src/Misskey.mjs +133 -156
  2. package/lib/es6/src/bindings/Ofetch.mjs +2 -0
  3. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAccount.mjs +70 -48
  4. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAdmin.mjs +133 -98
  5. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAntennas.mjs +9 -6
  6. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkApp.mjs +6 -4
  7. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkAuth.mjs +6 -4
  8. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChannels.mjs +18 -12
  9. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkCharts.mjs +6 -4
  10. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkChat.mjs +70 -54
  11. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkClips.mjs +12 -8
  12. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDefault.mjs +27 -20
  13. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkDrive.mjs +35 -24
  14. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFederation.mjs +18 -12
  15. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlash.mjs +9 -6
  16. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFlashs.mjs +3 -2
  17. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkFollowing.mjs +21 -14
  18. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGallery.mjs +12 -8
  19. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkGroups.mjs +30 -24
  20. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkHashtags.mjs +6 -4
  21. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkLists.mjs +9 -6
  22. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkMeta.mjs +27 -18
  23. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotes.mjs +85 -58
  24. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkNotifications.mjs +2 -2
  25. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkPages.mjs +8 -6
  26. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkRole.mjs +9 -6
  27. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkUsers.mjs +35 -24
  28. package/lib/es6/src/generated/kokonect-link/api/KokonectLinkWebhooks.mjs +7 -6
  29. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAccount.mjs +92 -68
  30. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAdmin.mjs +266 -214
  31. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAntennas.mjs +17 -12
  32. package/lib/es6/src/generated/misskey-io/api/MisskeyIoApp.mjs +6 -4
  33. package/lib/es6/src/generated/misskey-io/api/MisskeyIoAuth.mjs +14 -10
  34. package/lib/es6/src/generated/misskey-io/api/MisskeyIoChannels.mjs +35 -26
  35. package/lib/es6/src/generated/misskey-io/api/MisskeyIoCharts.mjs +72 -48
  36. package/lib/es6/src/generated/misskey-io/api/MisskeyIoClip.mjs +4 -4
  37. package/lib/es6/src/generated/misskey-io/api/MisskeyIoClips.mjs +17 -12
  38. package/lib/es6/src/generated/misskey-io/api/MisskeyIoDefault.mjs +133 -110
  39. package/lib/es6/src/generated/misskey-io/api/MisskeyIoDrive.mjs +51 -36
  40. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFederation.mjs +32 -22
  41. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlash.mjs +12 -10
  42. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFlashs.mjs +5 -4
  43. package/lib/es6/src/generated/misskey-io/api/MisskeyIoFollowing.mjs +27 -20
  44. package/lib/es6/src/generated/misskey-io/api/MisskeyIoGallery.mjs +24 -18
  45. package/lib/es6/src/generated/misskey-io/api/MisskeyIoHashtags.mjs +18 -12
  46. package/lib/es6/src/generated/misskey-io/api/MisskeyIoLists.mjs +23 -18
  47. package/lib/es6/src/generated/misskey-io/api/MisskeyIoMeta.mjs +71 -48
  48. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNonProductive.mjs +5 -4
  49. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotes.mjs +96 -70
  50. package/lib/es6/src/generated/misskey-io/api/MisskeyIoNotifications.mjs +8 -8
  51. package/lib/es6/src/generated/misskey-io/api/MisskeyIoPages.mjs +17 -14
  52. package/lib/es6/src/generated/misskey-io/api/MisskeyIoReactions.mjs +4 -4
  53. package/lib/es6/src/generated/misskey-io/api/MisskeyIoResetPassword.mjs +4 -4
  54. package/lib/es6/src/generated/misskey-io/api/MisskeyIoRole.mjs +12 -8
  55. package/lib/es6/src/generated/misskey-io/api/MisskeyIoUsers.mjs +83 -56
  56. package/lib/es6/src/generated/misskey-io/api/MisskeyIoWebhooks.mjs +17 -14
  57. package/package.json +3 -2
  58. package/src/Misskey.res +92 -149
  59. package/src/bindings/Ofetch.res +14 -0
  60. package/src/generated/kokonect-link/api/KokonectLinkAccount.res +241 -313
  61. package/src/generated/kokonect-link/api/KokonectLinkAdmin.res +485 -632
  62. package/src/generated/kokonect-link/api/KokonectLinkAntennas.res +30 -39
  63. package/src/generated/kokonect-link/api/KokonectLinkApp.res +20 -26
  64. package/src/generated/kokonect-link/api/KokonectLinkAuth.res +20 -26
  65. package/src/generated/kokonect-link/api/KokonectLinkChannels.res +60 -78
  66. package/src/generated/kokonect-link/api/KokonectLinkCharts.res +20 -26
  67. package/src/generated/kokonect-link/api/KokonectLinkChat.res +260 -341
  68. package/src/generated/kokonect-link/api/KokonectLinkClips.res +40 -52
  69. package/src/generated/kokonect-link/api/KokonectLinkDefault.res +101 -131
  70. package/src/generated/kokonect-link/api/KokonectLinkDrive.res +119 -155
  71. package/src/generated/kokonect-link/api/KokonectLinkFederation.res +60 -78
  72. package/src/generated/kokonect-link/api/KokonectLinkFlash.res +31 -40
  73. package/src/generated/kokonect-link/api/KokonectLinkFlashs.res +10 -13
  74. package/src/generated/kokonect-link/api/KokonectLinkFollowing.res +70 -91
  75. package/src/generated/kokonect-link/api/KokonectLinkGallery.res +40 -52
  76. package/src/generated/kokonect-link/api/KokonectLinkGroups.res +116 -152
  77. package/src/generated/kokonect-link/api/KokonectLinkHashtags.res +20 -26
  78. package/src/generated/kokonect-link/api/KokonectLinkLists.res +30 -39
  79. package/src/generated/kokonect-link/api/KokonectLinkMeta.res +94 -121
  80. package/src/generated/kokonect-link/api/KokonectLinkNotes.res +289 -376
  81. package/src/generated/kokonect-link/api/KokonectLinkNotifications.res +9 -12
  82. package/src/generated/kokonect-link/api/KokonectLinkPages.res +29 -38
  83. package/src/generated/kokonect-link/api/KokonectLinkRole.res +30 -39
  84. package/src/generated/kokonect-link/api/KokonectLinkUsers.res +119 -155
  85. package/src/generated/kokonect-link/api/KokonectLinkWebhooks.res +30 -39
  86. package/src/generated/kokonect-link/types/Account.d.ts +235 -177
  87. package/src/generated/kokonect-link/types/Admin.d.ts +640 -484
  88. package/src/generated/kokonect-link/types/Antennas.d.ts +36 -27
  89. package/src/generated/kokonect-link/types/App.d.ts +16 -12
  90. package/src/generated/kokonect-link/types/Auth.d.ts +30 -23
  91. package/src/generated/kokonect-link/types/Channels.d.ts +76 -57
  92. package/src/generated/kokonect-link/types/Charts.d.ts +104 -78
  93. package/src/generated/kokonect-link/types/Chat.d.ts +108 -81
  94. package/src/generated/kokonect-link/types/Clip.d.ts +8 -6
  95. package/src/generated/kokonect-link/types/Clips.d.ts +40 -30
  96. package/src/generated/kokonect-link/types/Default.d.ts +297 -232
  97. package/src/generated/kokonect-link/types/Drive.d.ts +120 -90
  98. package/src/generated/kokonect-link/types/Federation.d.ts +68 -51
  99. package/src/generated/kokonect-link/types/Flash.d.ts +33 -25
  100. package/src/generated/kokonect-link/types/Flashs.d.ts +12 -9
  101. package/src/generated/kokonect-link/types/Following.d.ts +68 -51
  102. package/src/generated/kokonect-link/types/Gallery.d.ts +52 -39
  103. package/src/generated/kokonect-link/types/Groups.d.ts +48 -36
  104. package/src/generated/kokonect-link/types/Hashtags.d.ts +32 -24
  105. package/src/generated/kokonect-link/types/Lists.d.ts +48 -36
  106. package/src/generated/kokonect-link/types/Meta.d.ts +133 -100
  107. package/src/generated/kokonect-link/types/NonProductive.d.ts +8 -6
  108. package/src/generated/kokonect-link/types/Notes.d.ts +256 -192
  109. package/src/generated/kokonect-link/types/Notifications.d.ts +20 -15
  110. package/src/generated/kokonect-link/types/Pages.d.ts +40 -30
  111. package/src/generated/kokonect-link/types/Reactions.d.ts +8 -6
  112. package/src/generated/kokonect-link/types/ResetPassword.d.ts +8 -6
  113. package/src/generated/kokonect-link/types/Role.d.ts +28 -21
  114. package/src/generated/kokonect-link/types/Users.d.ts +161 -121
  115. package/src/generated/kokonect-link/types/Webhooks.d.ts +44 -34
  116. package/src/generated/kokonect-link/types/index.d.ts +1 -2
  117. package/src/generated/kokonect-link/wrapper/index.d.ts +4813 -2131
  118. package/src/generated/kokonect-link/wrapper/index.mjs +2 -710
  119. package/src/generated/misskey-io/api/MisskeyIoAccount.res +335 -437
  120. package/src/generated/misskey-io/api/MisskeyIoAdmin.res +1035 -1356
  121. package/src/generated/misskey-io/api/MisskeyIoAntennas.res +60 -78
  122. package/src/generated/misskey-io/api/MisskeyIoApp.res +20 -26
  123. package/src/generated/misskey-io/api/MisskeyIoAuth.res +51 -66
  124. package/src/generated/misskey-io/api/MisskeyIoChannels.res +129 -168
  125. package/src/generated/misskey-io/api/MisskeyIoCharts.res +240 -312
  126. package/src/generated/misskey-io/api/MisskeyIoClip.res +18 -24
  127. package/src/generated/misskey-io/api/MisskeyIoClips.res +60 -78
  128. package/src/generated/misskey-io/api/MisskeyIoDefault.res +561 -726
  129. package/src/generated/misskey-io/api/MisskeyIoDrive.res +178 -232
  130. package/src/generated/misskey-io/api/MisskeyIoFederation.res +109 -142
  131. package/src/generated/misskey-io/api/MisskeyIoFlash.res +47 -62
  132. package/src/generated/misskey-io/api/MisskeyIoFlashs.res +19 -25
  133. package/src/generated/misskey-io/api/MisskeyIoFollowing.res +97 -127
  134. package/src/generated/misskey-io/api/MisskeyIoGallery.res +88 -115
  135. package/src/generated/misskey-io/api/MisskeyIoHashtags.res +62 -80
  136. package/src/generated/misskey-io/api/MisskeyIoLists.res +86 -113
  137. package/src/generated/misskey-io/api/MisskeyIoMeta.res +251 -323
  138. package/src/generated/misskey-io/api/MisskeyIoNonProductive.res +19 -25
  139. package/src/generated/misskey-io/api/MisskeyIoNotes.res +341 -446
  140. package/src/generated/misskey-io/api/MisskeyIoNotifications.res +39 -51
  141. package/src/generated/misskey-io/api/MisskeyIoPages.res +67 -88
  142. package/src/generated/misskey-io/api/MisskeyIoReactions.res +18 -24
  143. package/src/generated/misskey-io/api/MisskeyIoResetPassword.res +18 -24
  144. package/src/generated/misskey-io/api/MisskeyIoRole.res +41 -53
  145. package/src/generated/misskey-io/api/MisskeyIoUsers.res +284 -368
  146. package/src/generated/misskey-io/api/MisskeyIoWebhooks.res +69 -90
  147. package/src/generated/misskey-io/types/Account.d.ts +139 -105
  148. package/src/generated/misskey-io/types/Admin.d.ts +438 -331
  149. package/src/generated/misskey-io/types/Antennas.d.ts +24 -18
  150. package/src/generated/misskey-io/types/App.d.ts +8 -6
  151. package/src/generated/misskey-io/types/Auth.d.ts +22 -17
  152. package/src/generated/misskey-io/types/Channels.d.ts +52 -39
  153. package/src/generated/misskey-io/types/Charts.d.ts +96 -72
  154. package/src/generated/misskey-io/types/Clip.d.ts +8 -6
  155. package/src/generated/misskey-io/types/Clips.d.ts +24 -18
  156. package/src/generated/misskey-io/types/Default.d.ts +253 -198
  157. package/src/generated/misskey-io/types/Drive.d.ts +72 -54
  158. package/src/generated/misskey-io/types/Federation.d.ts +44 -33
  159. package/src/generated/misskey-io/types/Flash.d.ts +20 -15
  160. package/src/generated/misskey-io/types/Flashs.d.ts +8 -6
  161. package/src/generated/misskey-io/types/Following.d.ts +40 -30
  162. package/src/generated/misskey-io/types/Gallery.d.ts +36 -27
  163. package/src/generated/misskey-io/types/Hashtags.d.ts +24 -18
  164. package/src/generated/misskey-io/types/Lists.d.ts +36 -27
  165. package/src/generated/misskey-io/types/Meta.d.ts +97 -73
  166. package/src/generated/misskey-io/types/NonProductive.d.ts +8 -6
  167. package/src/generated/misskey-io/types/Notes.d.ts +140 -105
  168. package/src/generated/misskey-io/types/Notifications.d.ts +16 -12
  169. package/src/generated/misskey-io/types/Pages.d.ts +28 -21
  170. package/src/generated/misskey-io/types/Reactions.d.ts +8 -6
  171. package/src/generated/misskey-io/types/ResetPassword.d.ts +8 -6
  172. package/src/generated/misskey-io/types/Role.d.ts +16 -12
  173. package/src/generated/misskey-io/types/Users.d.ts +113 -85
  174. package/src/generated/misskey-io/types/Webhooks.d.ts +30 -23
  175. package/src/generated/misskey-io/types/index.d.ts +1 -2
  176. package/src/generated/misskey-io/wrapper/index.d.ts +3127 -1399
  177. package/src/generated/misskey-io/wrapper/index.mjs +2 -469
@@ -16,24 +16,21 @@ let postAdminEmojiImportZipRequestSchema = S.object(s => {
16
16
  type postAdminEmojiImportZipResponse = unit
17
17
 
18
18
  /**
19
- * admin/emoji/import-zip
20
- *
21
- * No description provided.
22
- *
23
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
24
- * **Credential required**: *Yes*
25
- */
26
- let postAdminEmojiImportZip = (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postAdminEmojiImportZipResponse> => {
19
+ admin/emoji/import-zip
20
+
21
+ No description provided.
22
+
23
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
24
+ **Credential required**: *Yes*
25
+ */
26
+ let postAdminEmojiImportZip = async (~body: postAdminEmojiImportZipRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postAdminEmojiImportZipResponse => {
27
27
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postAdminEmojiImportZipRequestSchema)
28
- fetch(
28
+ let response = await fetch(
29
29
  ~url="/admin/emoji/import-zip",
30
30
  ~method_="POST",
31
31
  ~body=Some(jsonBody),
32
- )->Promise.then(response => {
32
+ )
33
33
  let _ = response
34
- ()
35
- ->Promise.resolve
36
- })
37
34
  }
38
35
 
39
36
  type getBubbleGameRankingRequest = {
@@ -61,23 +58,20 @@ let getBubbleGameRankingResponse_1Schema = S.object(s => {
61
58
  let getBubbleGameRankingResponseSchema = S.array(getBubbleGameRankingResponse_1Schema)
62
59
 
63
60
  /**
64
- * bubble-game/ranking
65
- *
66
- * No description provided.
67
- *
68
- * **Credential required**: *No*
69
- */
70
- let getBubbleGameRanking = (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<getBubbleGameRankingResponse> => {
61
+ bubble-game/ranking
62
+
63
+ No description provided.
64
+
65
+ **Credential required**: *No*
66
+ */
67
+ let getBubbleGameRanking = async (~body: getBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): getBubbleGameRankingResponse => {
71
68
  let jsonBody = body->S.reverseConvertToJsonOrThrow(getBubbleGameRankingRequestSchema)
72
- fetch(
69
+ let response = await fetch(
73
70
  ~url="/bubble-game/ranking",
74
71
  ~method_="GET",
75
72
  ~body=Some(jsonBody),
76
- )->Promise.then(response => {
77
- let value = response->S.parseOrThrow(getBubbleGameRankingResponseSchema)
78
- value
79
- ->Promise.resolve
80
- })
73
+ )
74
+ response->S.parseOrThrow(getBubbleGameRankingResponseSchema)
81
75
  }
82
76
 
83
77
  type postBubbleGameRankingRequest = {
@@ -105,23 +99,20 @@ let postBubbleGameRankingResponse_1Schema = S.object(s => {
105
99
  let postBubbleGameRankingResponseSchema = S.array(postBubbleGameRankingResponse_1Schema)
106
100
 
107
101
  /**
108
- * bubble-game/ranking
109
- *
110
- * No description provided.
111
- *
112
- * **Credential required**: *No*
113
- */
114
- let postBubbleGameRanking = (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postBubbleGameRankingResponse> => {
102
+ bubble-game/ranking
103
+
104
+ No description provided.
105
+
106
+ **Credential required**: *No*
107
+ */
108
+ let postBubbleGameRanking = async (~body: postBubbleGameRankingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRankingResponse => {
115
109
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRankingRequestSchema)
116
- fetch(
110
+ let response = await fetch(
117
111
  ~url="/bubble-game/ranking",
118
112
  ~method_="POST",
119
113
  ~body=Some(jsonBody),
120
- )->Promise.then(response => {
121
- let value = response->S.parseOrThrow(postBubbleGameRankingResponseSchema)
122
- value
123
- ->Promise.resolve
124
- })
114
+ )
115
+ response->S.parseOrThrow(postBubbleGameRankingResponseSchema)
125
116
  }
126
117
 
127
118
  type postBubbleGameRegisterRequest = {
@@ -143,46 +134,40 @@ let postBubbleGameRegisterRequestSchema = S.object(s => {
143
134
  type postBubbleGameRegisterResponse = unit
144
135
 
145
136
  /**
146
- * bubble-game/register
147
- *
148
- * No description provided.
149
- *
150
- * **Credential required**: *Yes* / **Permission**: *write:account*
151
- */
152
- let postBubbleGameRegister = (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postBubbleGameRegisterResponse> => {
137
+ bubble-game/register
138
+
139
+ No description provided.
140
+
141
+ **Credential required**: *Yes* / **Permission**: *write:account*
142
+ */
143
+ let postBubbleGameRegister = async (~body: postBubbleGameRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postBubbleGameRegisterResponse => {
153
144
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postBubbleGameRegisterRequestSchema)
154
- fetch(
145
+ let response = await fetch(
155
146
  ~url="/bubble-game/register",
156
147
  ~method_="POST",
157
148
  ~body=Some(jsonBody),
158
- )->Promise.then(response => {
149
+ )
159
150
  let _ = response
160
- ()
161
- ->Promise.resolve
162
- })
163
151
  }
164
152
 
165
153
  type postExportCustomEmojisResponse = unit
166
154
 
167
155
  /**
168
- * export-custom-emojis
169
- *
170
- * No description provided.
171
- *
172
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
173
- * **Credential required**: *Yes*
174
- */
175
- let postExportCustomEmojis = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postExportCustomEmojisResponse> => {
176
-
177
- fetch(
156
+ export-custom-emojis
157
+
158
+ No description provided.
159
+
160
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
161
+ **Credential required**: *Yes*
162
+ */
163
+ let postExportCustomEmojis = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postExportCustomEmojisResponse => {
164
+
165
+ let response = await fetch(
178
166
  ~url="/export-custom-emojis",
179
167
  ~method_="POST",
180
168
  ~body=None,
181
- )->Promise.then(response => {
169
+ )
182
170
  let _ = response
183
- ()
184
- ->Promise.resolve
185
- })
186
171
  }
187
172
 
188
173
  type postI2faDoneRequest = {
@@ -202,24 +187,21 @@ let postI2faDoneResponseSchema = S.object(s => {
202
187
  })
203
188
 
204
189
  /**
205
- * i/2fa/done
206
- *
207
- * No description provided.
208
- *
209
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
210
- * **Credential required**: *Yes*
211
- */
212
- let postI2faDone = (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faDoneResponse> => {
190
+ i/2fa/done
191
+
192
+ No description provided.
193
+
194
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
195
+ **Credential required**: *Yes*
196
+ */
197
+ let postI2faDone = async (~body: postI2faDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faDoneResponse => {
213
198
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faDoneRequestSchema)
214
- fetch(
199
+ let response = await fetch(
215
200
  ~url="/i/2fa/done",
216
201
  ~method_="POST",
217
202
  ~body=Some(jsonBody),
218
- )->Promise.then(response => {
219
- let value = response->S.parseOrThrow(postI2faDoneResponseSchema)
220
- value
221
- ->Promise.resolve
222
- })
203
+ )
204
+ response->S.parseOrThrow(postI2faDoneResponseSchema)
223
205
  }
224
206
 
225
207
  type postI2faKeyDoneRequest = {
@@ -247,24 +229,21 @@ let postI2faKeyDoneResponseSchema = S.object(s => {
247
229
  })
248
230
 
249
231
  /**
250
- * i/2fa/key-done
251
- *
252
- * No description provided.
253
- *
254
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
255
- * **Credential required**: *Yes*
256
- */
257
- let postI2faKeyDone = (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faKeyDoneResponse> => {
232
+ i/2fa/key-done
233
+
234
+ No description provided.
235
+
236
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
237
+ **Credential required**: *Yes*
238
+ */
239
+ let postI2faKeyDone = async (~body: postI2faKeyDoneRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faKeyDoneResponse => {
258
240
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faKeyDoneRequestSchema)
259
- fetch(
241
+ let response = await fetch(
260
242
  ~url="/i/2fa/key-done",
261
243
  ~method_="POST",
262
244
  ~body=Some(jsonBody),
263
- )->Promise.then(response => {
264
- let value = response->S.parseOrThrow(postI2faKeyDoneResponseSchema)
265
- value
266
- ->Promise.resolve
267
- })
245
+ )
246
+ response->S.parseOrThrow(postI2faKeyDoneResponseSchema)
268
247
  }
269
248
 
270
249
  type postI2faPasswordLessRequest = {
@@ -278,24 +257,21 @@ let postI2faPasswordLessRequestSchema = S.object(s => {
278
257
  type postI2faPasswordLessResponse = unit
279
258
 
280
259
  /**
281
- * i/2fa/password-less
282
- *
283
- * No description provided.
284
- *
285
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
286
- * **Credential required**: *Yes*
287
- */
288
- let postI2faPasswordLess = (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faPasswordLessResponse> => {
260
+ i/2fa/password-less
261
+
262
+ No description provided.
263
+
264
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
265
+ **Credential required**: *Yes*
266
+ */
267
+ let postI2faPasswordLess = async (~body: postI2faPasswordLessRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faPasswordLessResponse => {
289
268
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faPasswordLessRequestSchema)
290
- fetch(
269
+ let response = await fetch(
291
270
  ~url="/i/2fa/password-less",
292
271
  ~method_="POST",
293
272
  ~body=Some(jsonBody),
294
- )->Promise.then(response => {
273
+ )
295
274
  let _ = response
296
- ()
297
- ->Promise.resolve
298
- })
299
275
  }
300
276
 
301
277
  type postI2faRegisterRequest = {
@@ -325,24 +301,21 @@ let postI2faRegisterResponseSchema = S.object(s => {
325
301
  })
326
302
 
327
303
  /**
328
- * i/2fa/register
329
- *
330
- * No description provided.
331
- *
332
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
333
- * **Credential required**: *Yes*
334
- */
335
- let postI2faRegister = (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faRegisterResponse> => {
304
+ i/2fa/register
305
+
306
+ No description provided.
307
+
308
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
309
+ **Credential required**: *Yes*
310
+ */
311
+ let postI2faRegister = async (~body: postI2faRegisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterResponse => {
336
312
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterRequestSchema)
337
- fetch(
313
+ let response = await fetch(
338
314
  ~url="/i/2fa/register",
339
315
  ~method_="POST",
340
316
  ~body=Some(jsonBody),
341
- )->Promise.then(response => {
342
- let value = response->S.parseOrThrow(postI2faRegisterResponseSchema)
343
- value
344
- ->Promise.resolve
345
- })
317
+ )
318
+ response->S.parseOrThrow(postI2faRegisterResponseSchema)
346
319
  }
347
320
 
348
321
  type postI2faRegisterKeyRequest = {
@@ -434,24 +407,21 @@ let postI2faRegisterKeyResponseSchema = S.object(s => {
434
407
  })
435
408
 
436
409
  /**
437
- * i/2fa/register-key
438
- *
439
- * No description provided.
440
- *
441
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
442
- * **Credential required**: *Yes*
443
- */
444
- let postI2faRegisterKey = (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faRegisterKeyResponse> => {
410
+ i/2fa/register-key
411
+
412
+ No description provided.
413
+
414
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
415
+ **Credential required**: *Yes*
416
+ */
417
+ let postI2faRegisterKey = async (~body: postI2faRegisterKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRegisterKeyResponse => {
445
418
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRegisterKeyRequestSchema)
446
- fetch(
419
+ let response = await fetch(
447
420
  ~url="/i/2fa/register-key",
448
421
  ~method_="POST",
449
422
  ~body=Some(jsonBody),
450
- )->Promise.then(response => {
451
- let value = response->S.parseOrThrow(postI2faRegisterKeyResponseSchema)
452
- value
453
- ->Promise.resolve
454
- })
423
+ )
424
+ response->S.parseOrThrow(postI2faRegisterKeyResponseSchema)
455
425
  }
456
426
 
457
427
  type postI2faRemoveKeyRequest = {
@@ -469,24 +439,21 @@ let postI2faRemoveKeyRequestSchema = S.object(s => {
469
439
  type postI2faRemoveKeyResponse = unit
470
440
 
471
441
  /**
472
- * i/2fa/remove-key
473
- *
474
- * No description provided.
475
- *
476
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
477
- * **Credential required**: *Yes*
478
- */
479
- let postI2faRemoveKey = (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faRemoveKeyResponse> => {
442
+ i/2fa/remove-key
443
+
444
+ No description provided.
445
+
446
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
447
+ **Credential required**: *Yes*
448
+ */
449
+ let postI2faRemoveKey = async (~body: postI2faRemoveKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faRemoveKeyResponse => {
480
450
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faRemoveKeyRequestSchema)
481
- fetch(
451
+ let response = await fetch(
482
452
  ~url="/i/2fa/remove-key",
483
453
  ~method_="POST",
484
454
  ~body=Some(jsonBody),
485
- )->Promise.then(response => {
455
+ )
486
456
  let _ = response
487
- ()
488
- ->Promise.resolve
489
- })
490
457
  }
491
458
 
492
459
  type postI2faUnregisterRequest = {
@@ -502,24 +469,21 @@ let postI2faUnregisterRequestSchema = S.object(s => {
502
469
  type postI2faUnregisterResponse = unit
503
470
 
504
471
  /**
505
- * i/2fa/unregister
506
- *
507
- * No description provided.
508
- *
509
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
510
- * **Credential required**: *Yes*
511
- */
512
- let postI2faUnregister = (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faUnregisterResponse> => {
472
+ i/2fa/unregister
473
+
474
+ No description provided.
475
+
476
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
477
+ **Credential required**: *Yes*
478
+ */
479
+ let postI2faUnregister = async (~body: postI2faUnregisterRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUnregisterResponse => {
513
480
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUnregisterRequestSchema)
514
- fetch(
481
+ let response = await fetch(
515
482
  ~url="/i/2fa/unregister",
516
483
  ~method_="POST",
517
484
  ~body=Some(jsonBody),
518
- )->Promise.then(response => {
485
+ )
519
486
  let _ = response
520
- ()
521
- ->Promise.resolve
522
- })
523
487
  }
524
488
 
525
489
  type postI2faUpdateKeyRequest = {
@@ -535,24 +499,21 @@ let postI2faUpdateKeyRequestSchema = S.object(s => {
535
499
  type postI2faUpdateKeyResponse = unit
536
500
 
537
501
  /**
538
- * i/2fa/update-key
539
- *
540
- * No description provided.
541
- *
542
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
543
- * **Credential required**: *Yes*
544
- */
545
- let postI2faUpdateKey = (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postI2faUpdateKeyResponse> => {
502
+ i/2fa/update-key
503
+
504
+ No description provided.
505
+
506
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
507
+ **Credential required**: *Yes*
508
+ */
509
+ let postI2faUpdateKey = async (~body: postI2faUpdateKeyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postI2faUpdateKeyResponse => {
546
510
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postI2faUpdateKeyRequestSchema)
547
- fetch(
511
+ let response = await fetch(
548
512
  ~url="/i/2fa/update-key",
549
513
  ~method_="POST",
550
514
  ~body=Some(jsonBody),
551
- )->Promise.then(response => {
515
+ )
552
516
  let _ = response
553
- ()
554
- ->Promise.resolve
555
- })
556
517
  }
557
518
 
558
519
  type postIAppsRequest = {
@@ -584,24 +545,21 @@ let postIAppsResponse_1Schema = S.object(s => {
584
545
  let postIAppsResponseSchema = S.array(postIAppsResponse_1Schema)
585
546
 
586
547
  /**
587
- * i/apps
588
- *
589
- * No description provided.
590
- *
591
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
592
- * **Credential required**: *Yes*
593
- */
594
- let postIApps = (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIAppsResponse> => {
548
+ i/apps
549
+
550
+ No description provided.
551
+
552
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
553
+ **Credential required**: *Yes*
554
+ */
555
+ let postIApps = async (~body: postIAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAppsResponse => {
595
556
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAppsRequestSchema)
596
- fetch(
557
+ let response = await fetch(
597
558
  ~url="/i/apps",
598
559
  ~method_="POST",
599
560
  ~body=Some(jsonBody),
600
- )->Promise.then(response => {
601
- let value = response->S.parseOrThrow(postIAppsResponseSchema)
602
- value
603
- ->Promise.resolve
604
- })
561
+ )
562
+ response->S.parseOrThrow(postIAppsResponseSchema)
605
563
  }
606
564
 
607
565
  type postIAuthorizedAppsRequest = {
@@ -637,24 +595,21 @@ let postIAuthorizedAppsResponse_1Schema = S.object(s => {
637
595
  let postIAuthorizedAppsResponseSchema = S.array(postIAuthorizedAppsResponse_1Schema)
638
596
 
639
597
  /**
640
- * i/authorized-apps
641
- *
642
- * No description provided.
643
- *
644
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
645
- * **Credential required**: *Yes*
646
- */
647
- let postIAuthorizedApps = (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIAuthorizedAppsResponse> => {
598
+ i/authorized-apps
599
+
600
+ No description provided.
601
+
602
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
603
+ **Credential required**: *Yes*
604
+ */
605
+ let postIAuthorizedApps = async (~body: postIAuthorizedAppsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIAuthorizedAppsResponse => {
648
606
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIAuthorizedAppsRequestSchema)
649
- fetch(
607
+ let response = await fetch(
650
608
  ~url="/i/authorized-apps",
651
609
  ~method_="POST",
652
610
  ~body=Some(jsonBody),
653
- )->Promise.then(response => {
654
- let value = response->S.parseOrThrow(postIAuthorizedAppsResponseSchema)
655
- value
656
- ->Promise.resolve
657
- })
611
+ )
612
+ response->S.parseOrThrow(postIAuthorizedAppsResponseSchema)
658
613
  }
659
614
 
660
615
  type postIChangePasswordRequest = {
@@ -672,24 +627,21 @@ let postIChangePasswordRequestSchema = S.object(s => {
672
627
  type postIChangePasswordResponse = unit
673
628
 
674
629
  /**
675
- * i/change-password
676
- *
677
- * No description provided.
678
- *
679
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
680
- * **Credential required**: *Yes*
681
- */
682
- let postIChangePassword = (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIChangePasswordResponse> => {
630
+ i/change-password
631
+
632
+ No description provided.
633
+
634
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
635
+ **Credential required**: *Yes*
636
+ */
637
+ let postIChangePassword = async (~body: postIChangePasswordRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIChangePasswordResponse => {
683
638
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIChangePasswordRequestSchema)
684
- fetch(
639
+ let response = await fetch(
685
640
  ~url="/i/change-password",
686
641
  ~method_="POST",
687
642
  ~body=Some(jsonBody),
688
- )->Promise.then(response => {
643
+ )
689
644
  let _ = response
690
- ()
691
- ->Promise.resolve
692
- })
693
645
  }
694
646
 
695
647
  type postIClaimAchievementRequest = {
@@ -703,23 +655,20 @@ let postIClaimAchievementRequestSchema = S.object(s => {
703
655
  type postIClaimAchievementResponse = unit
704
656
 
705
657
  /**
706
- * i/claim-achievement
707
- *
708
- * No description provided.
709
- *
710
- * **Credential required**: *Yes* / **Permission**: *write:account*
711
- */
712
- let postIClaimAchievement = (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIClaimAchievementResponse> => {
658
+ i/claim-achievement
659
+
660
+ No description provided.
661
+
662
+ **Credential required**: *Yes* / **Permission**: *write:account*
663
+ */
664
+ let postIClaimAchievement = async (~body: postIClaimAchievementRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIClaimAchievementResponse => {
713
665
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIClaimAchievementRequestSchema)
714
- fetch(
666
+ let response = await fetch(
715
667
  ~url="/i/claim-achievement",
716
668
  ~method_="POST",
717
669
  ~body=Some(jsonBody),
718
- )->Promise.then(response => {
670
+ )
719
671
  let _ = response
720
- ()
721
- ->Promise.resolve
722
- })
723
672
  }
724
673
 
725
674
  type postIDeleteAccountRequest = {
@@ -735,116 +684,101 @@ let postIDeleteAccountRequestSchema = S.object(s => {
735
684
  type postIDeleteAccountResponse = unit
736
685
 
737
686
  /**
738
- * i/delete-account
739
- *
740
- * No description provided.
741
- *
742
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
743
- * **Credential required**: *Yes*
744
- */
745
- let postIDeleteAccount = (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIDeleteAccountResponse> => {
687
+ i/delete-account
688
+
689
+ No description provided.
690
+
691
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
692
+ **Credential required**: *Yes*
693
+ */
694
+ let postIDeleteAccount = async (~body: postIDeleteAccountRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIDeleteAccountResponse => {
746
695
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIDeleteAccountRequestSchema)
747
- fetch(
696
+ let response = await fetch(
748
697
  ~url="/i/delete-account",
749
698
  ~method_="POST",
750
699
  ~body=Some(jsonBody),
751
- )->Promise.then(response => {
700
+ )
752
701
  let _ = response
753
- ()
754
- ->Promise.resolve
755
- })
756
702
  }
757
703
 
758
704
  type postIExportAntennasResponse = unit
759
705
 
760
706
  /**
761
- * i/export-antennas
762
- *
763
- * No description provided.
764
- *
765
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
766
- * **Credential required**: *Yes*
767
- */
768
- let postIExportAntennas = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportAntennasResponse> => {
769
-
770
- fetch(
707
+ i/export-antennas
708
+
709
+ No description provided.
710
+
711
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
712
+ **Credential required**: *Yes*
713
+ */
714
+ let postIExportAntennas = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportAntennasResponse => {
715
+
716
+ let response = await fetch(
771
717
  ~url="/i/export-antennas",
772
718
  ~method_="POST",
773
719
  ~body=None,
774
- )->Promise.then(response => {
720
+ )
775
721
  let _ = response
776
- ()
777
- ->Promise.resolve
778
- })
779
722
  }
780
723
 
781
724
  type postIExportBlockingResponse = unit
782
725
 
783
726
  /**
784
- * i/export-blocking
785
- *
786
- * No description provided.
787
- *
788
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
789
- * **Credential required**: *Yes*
790
- */
791
- let postIExportBlocking = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportBlockingResponse> => {
792
-
793
- fetch(
727
+ i/export-blocking
728
+
729
+ No description provided.
730
+
731
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
732
+ **Credential required**: *Yes*
733
+ */
734
+ let postIExportBlocking = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportBlockingResponse => {
735
+
736
+ let response = await fetch(
794
737
  ~url="/i/export-blocking",
795
738
  ~method_="POST",
796
739
  ~body=None,
797
- )->Promise.then(response => {
740
+ )
798
741
  let _ = response
799
- ()
800
- ->Promise.resolve
801
- })
802
742
  }
803
743
 
804
744
  type postIExportClipsResponse = unit
805
745
 
806
746
  /**
807
- * i/export-clips
808
- *
809
- * No description provided.
810
- *
811
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
812
- * **Credential required**: *Yes*
813
- */
814
- let postIExportClips = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportClipsResponse> => {
815
-
816
- fetch(
747
+ i/export-clips
748
+
749
+ No description provided.
750
+
751
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
752
+ **Credential required**: *Yes*
753
+ */
754
+ let postIExportClips = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportClipsResponse => {
755
+
756
+ let response = await fetch(
817
757
  ~url="/i/export-clips",
818
758
  ~method_="POST",
819
759
  ~body=None,
820
- )->Promise.then(response => {
760
+ )
821
761
  let _ = response
822
- ()
823
- ->Promise.resolve
824
- })
825
762
  }
826
763
 
827
764
  type postIExportFavoritesResponse = unit
828
765
 
829
766
  /**
830
- * i/export-favorites
831
- *
832
- * No description provided.
833
- *
834
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
835
- * **Credential required**: *Yes*
836
- */
837
- let postIExportFavorites = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportFavoritesResponse> => {
838
-
839
- fetch(
767
+ i/export-favorites
768
+
769
+ No description provided.
770
+
771
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
772
+ **Credential required**: *Yes*
773
+ */
774
+ let postIExportFavorites = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFavoritesResponse => {
775
+
776
+ let response = await fetch(
840
777
  ~url="/i/export-favorites",
841
778
  ~method_="POST",
842
779
  ~body=None,
843
- )->Promise.then(response => {
780
+ )
844
781
  let _ = response
845
- ()
846
- ->Promise.resolve
847
- })
848
782
  }
849
783
 
850
784
  type postIExportFollowingRequest = {
@@ -860,93 +794,81 @@ let postIExportFollowingRequestSchema = S.object(s => {
860
794
  type postIExportFollowingResponse = unit
861
795
 
862
796
  /**
863
- * i/export-following
864
- *
865
- * No description provided.
866
- *
867
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
868
- * **Credential required**: *Yes*
869
- */
870
- let postIExportFollowing = (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportFollowingResponse> => {
797
+ i/export-following
798
+
799
+ No description provided.
800
+
801
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
802
+ **Credential required**: *Yes*
803
+ */
804
+ let postIExportFollowing = async (~body: postIExportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportFollowingResponse => {
871
805
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIExportFollowingRequestSchema)
872
- fetch(
806
+ let response = await fetch(
873
807
  ~url="/i/export-following",
874
808
  ~method_="POST",
875
809
  ~body=Some(jsonBody),
876
- )->Promise.then(response => {
810
+ )
877
811
  let _ = response
878
- ()
879
- ->Promise.resolve
880
- })
881
812
  }
882
813
 
883
814
  type postIExportMuteResponse = unit
884
815
 
885
816
  /**
886
- * i/export-mute
887
- *
888
- * No description provided.
889
- *
890
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
891
- * **Credential required**: *Yes*
892
- */
893
- let postIExportMute = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportMuteResponse> => {
894
-
895
- fetch(
817
+ i/export-mute
818
+
819
+ No description provided.
820
+
821
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
822
+ **Credential required**: *Yes*
823
+ */
824
+ let postIExportMute = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportMuteResponse => {
825
+
826
+ let response = await fetch(
896
827
  ~url="/i/export-mute",
897
828
  ~method_="POST",
898
829
  ~body=None,
899
- )->Promise.then(response => {
830
+ )
900
831
  let _ = response
901
- ()
902
- ->Promise.resolve
903
- })
904
832
  }
905
833
 
906
834
  type postIExportNotesResponse = unit
907
835
 
908
836
  /**
909
- * i/export-notes
910
- *
911
- * No description provided.
912
- *
913
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
914
- * **Credential required**: *Yes*
915
- */
916
- let postIExportNotes = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportNotesResponse> => {
917
-
918
- fetch(
837
+ i/export-notes
838
+
839
+ No description provided.
840
+
841
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
842
+ **Credential required**: *Yes*
843
+ */
844
+ let postIExportNotes = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportNotesResponse => {
845
+
846
+ let response = await fetch(
919
847
  ~url="/i/export-notes",
920
848
  ~method_="POST",
921
849
  ~body=None,
922
- )->Promise.then(response => {
850
+ )
923
851
  let _ = response
924
- ()
925
- ->Promise.resolve
926
- })
927
852
  }
928
853
 
929
854
  type postIExportUserListsResponse = unit
930
855
 
931
856
  /**
932
- * i/export-user-lists
933
- *
934
- * No description provided.
935
- *
936
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
937
- * **Credential required**: *Yes*
938
- */
939
- let postIExportUserLists = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIExportUserListsResponse> => {
940
-
941
- fetch(
857
+ i/export-user-lists
858
+
859
+ No description provided.
860
+
861
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
862
+ **Credential required**: *Yes*
863
+ */
864
+ let postIExportUserLists = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIExportUserListsResponse => {
865
+
866
+ let response = await fetch(
942
867
  ~url="/i/export-user-lists",
943
868
  ~method_="POST",
944
869
  ~body=None,
945
- )->Promise.then(response => {
870
+ )
946
871
  let _ = response
947
- ()
948
- ->Promise.resolve
949
- })
950
872
  }
951
873
 
952
874
  type postIImportAntennasRequest = {
@@ -960,24 +882,21 @@ let postIImportAntennasRequestSchema = S.object(s => {
960
882
  type postIImportAntennasResponse = unit
961
883
 
962
884
  /**
963
- * i/import-antennas
964
- *
965
- * No description provided.
966
- *
967
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
968
- * **Credential required**: *Yes*
969
- */
970
- let postIImportAntennas = (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIImportAntennasResponse> => {
885
+ i/import-antennas
886
+
887
+ No description provided.
888
+
889
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
890
+ **Credential required**: *Yes*
891
+ */
892
+ let postIImportAntennas = async (~body: postIImportAntennasRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportAntennasResponse => {
971
893
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportAntennasRequestSchema)
972
- fetch(
894
+ let response = await fetch(
973
895
  ~url="/i/import-antennas",
974
896
  ~method_="POST",
975
897
  ~body=Some(jsonBody),
976
- )->Promise.then(response => {
898
+ )
977
899
  let _ = response
978
- ()
979
- ->Promise.resolve
980
- })
981
900
  }
982
901
 
983
902
  type postIImportBlockingRequest = {
@@ -991,24 +910,21 @@ let postIImportBlockingRequestSchema = S.object(s => {
991
910
  type postIImportBlockingResponse = unit
992
911
 
993
912
  /**
994
- * i/import-blocking
995
- *
996
- * No description provided.
997
- *
998
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
999
- * **Credential required**: *Yes*
1000
- */
1001
- let postIImportBlocking = (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIImportBlockingResponse> => {
913
+ i/import-blocking
914
+
915
+ No description provided.
916
+
917
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
918
+ **Credential required**: *Yes*
919
+ */
920
+ let postIImportBlocking = async (~body: postIImportBlockingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportBlockingResponse => {
1002
921
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportBlockingRequestSchema)
1003
- fetch(
922
+ let response = await fetch(
1004
923
  ~url="/i/import-blocking",
1005
924
  ~method_="POST",
1006
925
  ~body=Some(jsonBody),
1007
- )->Promise.then(response => {
926
+ )
1008
927
  let _ = response
1009
- ()
1010
- ->Promise.resolve
1011
- })
1012
928
  }
1013
929
 
1014
930
  type postIImportFollowingRequest = {
@@ -1024,24 +940,21 @@ let postIImportFollowingRequestSchema = S.object(s => {
1024
940
  type postIImportFollowingResponse = unit
1025
941
 
1026
942
  /**
1027
- * i/import-following
1028
- *
1029
- * No description provided.
1030
- *
1031
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1032
- * **Credential required**: *Yes*
1033
- */
1034
- let postIImportFollowing = (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIImportFollowingResponse> => {
943
+ i/import-following
944
+
945
+ No description provided.
946
+
947
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
948
+ **Credential required**: *Yes*
949
+ */
950
+ let postIImportFollowing = async (~body: postIImportFollowingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportFollowingResponse => {
1035
951
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportFollowingRequestSchema)
1036
- fetch(
952
+ let response = await fetch(
1037
953
  ~url="/i/import-following",
1038
954
  ~method_="POST",
1039
955
  ~body=Some(jsonBody),
1040
- )->Promise.then(response => {
956
+ )
1041
957
  let _ = response
1042
- ()
1043
- ->Promise.resolve
1044
- })
1045
958
  }
1046
959
 
1047
960
  type postIImportMutingRequest = {
@@ -1055,24 +968,21 @@ let postIImportMutingRequestSchema = S.object(s => {
1055
968
  type postIImportMutingResponse = unit
1056
969
 
1057
970
  /**
1058
- * i/import-muting
1059
- *
1060
- * No description provided.
1061
- *
1062
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1063
- * **Credential required**: *Yes*
1064
- */
1065
- let postIImportMuting = (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIImportMutingResponse> => {
971
+ i/import-muting
972
+
973
+ No description provided.
974
+
975
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
976
+ **Credential required**: *Yes*
977
+ */
978
+ let postIImportMuting = async (~body: postIImportMutingRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportMutingResponse => {
1066
979
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportMutingRequestSchema)
1067
- fetch(
980
+ let response = await fetch(
1068
981
  ~url="/i/import-muting",
1069
982
  ~method_="POST",
1070
983
  ~body=Some(jsonBody),
1071
- )->Promise.then(response => {
984
+ )
1072
985
  let _ = response
1073
- ()
1074
- ->Promise.resolve
1075
- })
1076
986
  }
1077
987
 
1078
988
  type postIImportUserListsRequest = {
@@ -1086,24 +996,21 @@ let postIImportUserListsRequestSchema = S.object(s => {
1086
996
  type postIImportUserListsResponse = unit
1087
997
 
1088
998
  /**
1089
- * i/import-user-lists
1090
- *
1091
- * No description provided.
1092
- *
1093
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1094
- * **Credential required**: *Yes*
1095
- */
1096
- let postIImportUserLists = (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIImportUserListsResponse> => {
999
+ i/import-user-lists
1000
+
1001
+ No description provided.
1002
+
1003
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1004
+ **Credential required**: *Yes*
1005
+ */
1006
+ let postIImportUserLists = async (~body: postIImportUserListsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIImportUserListsResponse => {
1097
1007
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIImportUserListsRequestSchema)
1098
- fetch(
1008
+ let response = await fetch(
1099
1009
  ~url="/i/import-user-lists",
1100
1010
  ~method_="POST",
1101
1011
  ~body=Some(jsonBody),
1102
- )->Promise.then(response => {
1012
+ )
1103
1013
  let _ = response
1104
- ()
1105
- ->Promise.resolve
1106
- })
1107
1014
  }
1108
1015
 
1109
1016
  type postIRegenerateTokenRequest = {
@@ -1117,24 +1024,21 @@ let postIRegenerateTokenRequestSchema = S.object(s => {
1117
1024
  type postIRegenerateTokenResponse = unit
1118
1025
 
1119
1026
  /**
1120
- * i/regenerate-token
1121
- *
1122
- * No description provided.
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 postIRegenerateToken = (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegenerateTokenResponse> => {
1027
+ i/regenerate-token
1028
+
1029
+ No description provided.
1030
+
1031
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1032
+ **Credential required**: *Yes*
1033
+ */
1034
+ let postIRegenerateToken = async (~body: postIRegenerateTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegenerateTokenResponse => {
1128
1035
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegenerateTokenRequestSchema)
1129
- fetch(
1036
+ let response = await fetch(
1130
1037
  ~url="/i/regenerate-token",
1131
1038
  ~method_="POST",
1132
1039
  ~body=Some(jsonBody),
1133
- )->Promise.then(response => {
1040
+ )
1134
1041
  let _ = response
1135
- ()
1136
- ->Promise.resolve
1137
- })
1138
1042
  }
1139
1043
 
1140
1044
  type postIRegistryGetRequest = {
@@ -1154,23 +1058,20 @@ type postIRegistryGetResponse = dict<JSON.t>
1154
1058
  let postIRegistryGetResponseSchema = S.dict(S.json)
1155
1059
 
1156
1060
  /**
1157
- * i/registry/get
1158
- *
1159
- * No description provided.
1160
- *
1161
- * **Credential required**: *Yes* / **Permission**: *read:account*
1162
- */
1163
- let postIRegistryGet = (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryGetResponse> => {
1061
+ i/registry/get
1062
+
1063
+ No description provided.
1064
+
1065
+ **Credential required**: *Yes* / **Permission**: *read:account*
1066
+ */
1067
+ let postIRegistryGet = async (~body: postIRegistryGetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetResponse => {
1164
1068
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetRequestSchema)
1165
- fetch(
1069
+ let response = await fetch(
1166
1070
  ~url="/i/registry/get",
1167
1071
  ~method_="POST",
1168
1072
  ~body=Some(jsonBody),
1169
- )->Promise.then(response => {
1170
- let value = response->S.parseOrThrow(postIRegistryGetResponseSchema)
1171
- value
1172
- ->Promise.resolve
1173
- })
1073
+ )
1074
+ response->S.parseOrThrow(postIRegistryGetResponseSchema)
1174
1075
  }
1175
1076
 
1176
1077
  type postIRegistryGetAllRequest = {
@@ -1188,23 +1089,20 @@ type postIRegistryGetAllResponse = dict<JSON.t>
1188
1089
  let postIRegistryGetAllResponseSchema = S.dict(S.json)
1189
1090
 
1190
1091
  /**
1191
- * i/registry/get-all
1192
- *
1193
- * No description provided.
1194
- *
1195
- * **Credential required**: *Yes* / **Permission**: *read:account*
1196
- */
1197
- let postIRegistryGetAll = (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryGetAllResponse> => {
1092
+ i/registry/get-all
1093
+
1094
+ No description provided.
1095
+
1096
+ **Credential required**: *Yes* / **Permission**: *read:account*
1097
+ */
1098
+ let postIRegistryGetAll = async (~body: postIRegistryGetAllRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetAllResponse => {
1198
1099
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetAllRequestSchema)
1199
- fetch(
1100
+ let response = await fetch(
1200
1101
  ~url="/i/registry/get-all",
1201
1102
  ~method_="POST",
1202
1103
  ~body=Some(jsonBody),
1203
- )->Promise.then(response => {
1204
- let value = response->S.parseOrThrow(postIRegistryGetAllResponseSchema)
1205
- value
1206
- ->Promise.resolve
1207
- })
1104
+ )
1105
+ response->S.parseOrThrow(postIRegistryGetAllResponseSchema)
1208
1106
  }
1209
1107
 
1210
1108
  type postIRegistryGetDetailRequest = {
@@ -1230,23 +1128,20 @@ let postIRegistryGetDetailResponseSchema = S.object(s => {
1230
1128
  })
1231
1129
 
1232
1130
  /**
1233
- * i/registry/get-detail
1234
- *
1235
- * No description provided.
1236
- *
1237
- * **Credential required**: *Yes* / **Permission**: *read:account*
1238
- */
1239
- let postIRegistryGetDetail = (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryGetDetailResponse> => {
1131
+ i/registry/get-detail
1132
+
1133
+ No description provided.
1134
+
1135
+ **Credential required**: *Yes* / **Permission**: *read:account*
1136
+ */
1137
+ let postIRegistryGetDetail = async (~body: postIRegistryGetDetailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryGetDetailResponse => {
1240
1138
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryGetDetailRequestSchema)
1241
- fetch(
1139
+ let response = await fetch(
1242
1140
  ~url="/i/registry/get-detail",
1243
1141
  ~method_="POST",
1244
1142
  ~body=Some(jsonBody),
1245
- )->Promise.then(response => {
1246
- let value = response->S.parseOrThrow(postIRegistryGetDetailResponseSchema)
1247
- value
1248
- ->Promise.resolve
1249
- })
1143
+ )
1144
+ response->S.parseOrThrow(postIRegistryGetDetailResponseSchema)
1250
1145
  }
1251
1146
 
1252
1147
  type postIRegistryKeysRequest = {
@@ -1264,23 +1159,20 @@ type postIRegistryKeysResponse = array<string>
1264
1159
  let postIRegistryKeysResponseSchema = S.array(S.string)
1265
1160
 
1266
1161
  /**
1267
- * i/registry/keys
1268
- *
1269
- * No description provided.
1270
- *
1271
- * **Credential required**: *Yes* / **Permission**: *read:account*
1272
- */
1273
- let postIRegistryKeys = (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryKeysResponse> => {
1162
+ i/registry/keys
1163
+
1164
+ No description provided.
1165
+
1166
+ **Credential required**: *Yes* / **Permission**: *read:account*
1167
+ */
1168
+ let postIRegistryKeys = async (~body: postIRegistryKeysRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysResponse => {
1274
1169
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysRequestSchema)
1275
- fetch(
1170
+ let response = await fetch(
1276
1171
  ~url="/i/registry/keys",
1277
1172
  ~method_="POST",
1278
1173
  ~body=Some(jsonBody),
1279
- )->Promise.then(response => {
1280
- let value = response->S.parseOrThrow(postIRegistryKeysResponseSchema)
1281
- value
1282
- ->Promise.resolve
1283
- })
1174
+ )
1175
+ response->S.parseOrThrow(postIRegistryKeysResponseSchema)
1284
1176
  }
1285
1177
 
1286
1178
  type postIRegistryKeysWithTypeRequest = {
@@ -1298,23 +1190,20 @@ type postIRegistryKeysWithTypeResponse = dict<JSON.t>
1298
1190
  let postIRegistryKeysWithTypeResponseSchema = S.dict(S.json)
1299
1191
 
1300
1192
  /**
1301
- * i/registry/keys-with-type
1302
- *
1303
- * No description provided.
1304
- *
1305
- * **Credential required**: *Yes* / **Permission**: *read:account*
1306
- */
1307
- let postIRegistryKeysWithType = (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryKeysWithTypeResponse> => {
1193
+ i/registry/keys-with-type
1194
+
1195
+ No description provided.
1196
+
1197
+ **Credential required**: *Yes* / **Permission**: *read:account*
1198
+ */
1199
+ let postIRegistryKeysWithType = async (~body: postIRegistryKeysWithTypeRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryKeysWithTypeResponse => {
1308
1200
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryKeysWithTypeRequestSchema)
1309
- fetch(
1201
+ let response = await fetch(
1310
1202
  ~url="/i/registry/keys-with-type",
1311
1203
  ~method_="POST",
1312
1204
  ~body=Some(jsonBody),
1313
- )->Promise.then(response => {
1314
- let value = response->S.parseOrThrow(postIRegistryKeysWithTypeResponseSchema)
1315
- value
1316
- ->Promise.resolve
1317
- })
1205
+ )
1206
+ response->S.parseOrThrow(postIRegistryKeysWithTypeResponseSchema)
1318
1207
  }
1319
1208
 
1320
1209
  type postIRegistryRemoveRequest = {
@@ -1332,23 +1221,20 @@ let postIRegistryRemoveRequestSchema = S.object(s => {
1332
1221
  type postIRegistryRemoveResponse = unit
1333
1222
 
1334
1223
  /**
1335
- * i/registry/remove
1336
- *
1337
- * No description provided.
1338
- *
1339
- * **Credential required**: *Yes* / **Permission**: *write:account*
1340
- */
1341
- let postIRegistryRemove = (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryRemoveResponse> => {
1224
+ i/registry/remove
1225
+
1226
+ No description provided.
1227
+
1228
+ **Credential required**: *Yes* / **Permission**: *write:account*
1229
+ */
1230
+ let postIRegistryRemove = async (~body: postIRegistryRemoveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryRemoveResponse => {
1342
1231
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistryRemoveRequestSchema)
1343
- fetch(
1232
+ let response = await fetch(
1344
1233
  ~url="/i/registry/remove",
1345
1234
  ~method_="POST",
1346
1235
  ~body=Some(jsonBody),
1347
- )->Promise.then(response => {
1236
+ )
1348
1237
  let _ = response
1349
- ()
1350
- ->Promise.resolve
1351
- })
1352
1238
  }
1353
1239
 
1354
1240
  type postIRegistryScopesWithDomainResponse_1 = {
@@ -1366,24 +1252,21 @@ let postIRegistryScopesWithDomainResponse_1Schema = S.object(s => {
1366
1252
  let postIRegistryScopesWithDomainResponseSchema = S.array(postIRegistryScopesWithDomainResponse_1Schema)
1367
1253
 
1368
1254
  /**
1369
- * i/registry/scopes-with-domain
1370
- *
1371
- * No description provided.
1372
- *
1373
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1374
- * **Credential required**: *Yes*
1375
- */
1376
- let postIRegistryScopesWithDomain = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistryScopesWithDomainResponse> => {
1377
-
1378
- fetch(
1255
+ i/registry/scopes-with-domain
1256
+
1257
+ No description provided.
1258
+
1259
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1260
+ **Credential required**: *Yes*
1261
+ */
1262
+ let postIRegistryScopesWithDomain = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistryScopesWithDomainResponse => {
1263
+
1264
+ let response = await fetch(
1379
1265
  ~url="/i/registry/scopes-with-domain",
1380
1266
  ~method_="POST",
1381
1267
  ~body=None,
1382
- )->Promise.then(response => {
1383
- let value = response->S.parseOrThrow(postIRegistryScopesWithDomainResponseSchema)
1384
- value
1385
- ->Promise.resolve
1386
- })
1268
+ )
1269
+ response->S.parseOrThrow(postIRegistryScopesWithDomainResponseSchema)
1387
1270
  }
1388
1271
 
1389
1272
  type postIRegistrySetRequest = {
@@ -1403,23 +1286,20 @@ let postIRegistrySetRequestSchema = S.object(s => {
1403
1286
  type postIRegistrySetResponse = unit
1404
1287
 
1405
1288
  /**
1406
- * i/registry/set
1407
- *
1408
- * No description provided.
1409
- *
1410
- * **Credential required**: *Yes* / **Permission**: *write:account*
1411
- */
1412
- let postIRegistrySet = (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRegistrySetResponse> => {
1289
+ i/registry/set
1290
+
1291
+ No description provided.
1292
+
1293
+ **Credential required**: *Yes* / **Permission**: *write:account*
1294
+ */
1295
+ let postIRegistrySet = async (~body: postIRegistrySetRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRegistrySetResponse => {
1413
1296
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRegistrySetRequestSchema)
1414
- fetch(
1297
+ let response = await fetch(
1415
1298
  ~url="/i/registry/set",
1416
1299
  ~method_="POST",
1417
1300
  ~body=Some(jsonBody),
1418
- )->Promise.then(response => {
1301
+ )
1419
1302
  let _ = response
1420
- ()
1421
- ->Promise.resolve
1422
- })
1423
1303
  }
1424
1304
 
1425
1305
  type postIRevokeTokenRequest = {
@@ -1435,24 +1315,21 @@ let postIRevokeTokenRequestSchema = S.object(s => {
1435
1315
  type postIRevokeTokenResponse = unit
1436
1316
 
1437
1317
  /**
1438
- * i/revoke-token
1439
- *
1440
- * No description provided.
1441
- *
1442
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1443
- * **Credential required**: *Yes*
1444
- */
1445
- let postIRevokeToken = (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIRevokeTokenResponse> => {
1318
+ i/revoke-token
1319
+
1320
+ No description provided.
1321
+
1322
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1323
+ **Credential required**: *Yes*
1324
+ */
1325
+ let postIRevokeToken = async (~body: postIRevokeTokenRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIRevokeTokenResponse => {
1446
1326
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIRevokeTokenRequestSchema)
1447
- fetch(
1327
+ let response = await fetch(
1448
1328
  ~url="/i/revoke-token",
1449
1329
  ~method_="POST",
1450
1330
  ~body=Some(jsonBody),
1451
- )->Promise.then(response => {
1331
+ )
1452
1332
  let _ = response
1453
- ()
1454
- ->Promise.resolve
1455
- })
1456
1333
  }
1457
1334
 
1458
1335
  type postISigninHistoryRequest = {
@@ -1472,24 +1349,21 @@ type postISigninHistoryResponse = array<MisskeyIoComponentSchemas.Signin.t>
1472
1349
  let postISigninHistoryResponseSchema = S.array(MisskeyIoComponentSchemas.Signin.schema)
1473
1350
 
1474
1351
  /**
1475
- * i/signin-history
1476
- *
1477
- * No description provided.
1478
- *
1479
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1480
- * **Credential required**: *Yes*
1481
- */
1482
- let postISigninHistory = (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postISigninHistoryResponse> => {
1352
+ i/signin-history
1353
+
1354
+ No description provided.
1355
+
1356
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1357
+ **Credential required**: *Yes*
1358
+ */
1359
+ let postISigninHistory = async (~body: postISigninHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postISigninHistoryResponse => {
1483
1360
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postISigninHistoryRequestSchema)
1484
- fetch(
1361
+ let response = await fetch(
1485
1362
  ~url="/i/signin-history",
1486
1363
  ~method_="POST",
1487
1364
  ~body=Some(jsonBody),
1488
- )->Promise.then(response => {
1489
- let value = response->S.parseOrThrow(postISigninHistoryResponseSchema)
1490
- value
1491
- ->Promise.resolve
1492
- })
1365
+ )
1366
+ response->S.parseOrThrow(postISigninHistoryResponseSchema)
1493
1367
  }
1494
1368
 
1495
1369
  type postIUpdateEmailRequest = {
@@ -1509,24 +1383,21 @@ type postIUpdateEmailResponse = MisskeyIoComponentSchemas.MeDetailed.t
1509
1383
  let postIUpdateEmailResponseSchema = MisskeyIoComponentSchemas.MeDetailed.schema
1510
1384
 
1511
1385
  /**
1512
- * i/update-email
1513
- *
1514
- * No description provided.
1515
- *
1516
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1517
- * **Credential required**: *Yes*
1518
- */
1519
- let postIUpdateEmail = (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postIUpdateEmailResponse> => {
1386
+ i/update-email
1387
+
1388
+ No description provided.
1389
+
1390
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1391
+ **Credential required**: *Yes*
1392
+ */
1393
+ let postIUpdateEmail = async (~body: postIUpdateEmailRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postIUpdateEmailResponse => {
1520
1394
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postIUpdateEmailRequestSchema)
1521
- fetch(
1395
+ let response = await fetch(
1522
1396
  ~url="/i/update-email",
1523
1397
  ~method_="POST",
1524
1398
  ~body=Some(jsonBody),
1525
- )->Promise.then(response => {
1526
- let value = response->S.parseOrThrow(postIUpdateEmailResponseSchema)
1527
- value
1528
- ->Promise.resolve
1529
- })
1399
+ )
1400
+ response->S.parseOrThrow(postIUpdateEmailResponseSchema)
1530
1401
  }
1531
1402
 
1532
1403
  type postPagePushRequest = {
@@ -1544,24 +1415,21 @@ let postPagePushRequestSchema = S.object(s => {
1544
1415
  type postPagePushResponse = unit
1545
1416
 
1546
1417
  /**
1547
- * page-push
1548
- *
1549
- * No description provided.
1550
- *
1551
- * **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1552
- * **Credential required**: *Yes*
1553
- */
1554
- let postPagePush = (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postPagePushResponse> => {
1418
+ page-push
1419
+
1420
+ No description provided.
1421
+
1422
+ **Internal Endpoint**: This endpoint is an API for the misskey mainframe and is not intended for use by third parties.
1423
+ **Credential required**: *Yes*
1424
+ */
1425
+ let postPagePush = async (~body: postPagePushRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postPagePushResponse => {
1555
1426
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postPagePushRequestSchema)
1556
- fetch(
1427
+ let response = await fetch(
1557
1428
  ~url="/page-push",
1558
1429
  ~method_="POST",
1559
1430
  ~body=Some(jsonBody),
1560
- )->Promise.then(response => {
1431
+ )
1561
1432
  let _ = response
1562
- ()
1563
- ->Promise.resolve
1564
- })
1565
1433
  }
1566
1434
 
1567
1435
  type postReversiCancelMatchRequest = {
@@ -1575,23 +1443,20 @@ let postReversiCancelMatchRequestSchema = S.object(s => {
1575
1443
  type postReversiCancelMatchResponse = unit
1576
1444
 
1577
1445
  /**
1578
- * reversi/cancel-match
1579
- *
1580
- * No description provided.
1581
- *
1582
- * **Credential required**: *Yes* / **Permission**: *read:account*
1583
- */
1584
- let postReversiCancelMatch = (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiCancelMatchResponse> => {
1446
+ reversi/cancel-match
1447
+
1448
+ No description provided.
1449
+
1450
+ **Credential required**: *Yes* / **Permission**: *read:account*
1451
+ */
1452
+ let postReversiCancelMatch = async (~body: postReversiCancelMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiCancelMatchResponse => {
1585
1453
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiCancelMatchRequestSchema)
1586
- fetch(
1454
+ let response = await fetch(
1587
1455
  ~url="/reversi/cancel-match",
1588
1456
  ~method_="POST",
1589
1457
  ~body=Some(jsonBody),
1590
- )->Promise.then(response => {
1458
+ )
1591
1459
  let _ = response
1592
- ()
1593
- ->Promise.resolve
1594
- })
1595
1460
  }
1596
1461
 
1597
1462
  type postReversiGamesRequest = {
@@ -1613,23 +1478,20 @@ type postReversiGamesResponse = array<MisskeyIoComponentSchemas.ReversiGameLite.
1613
1478
  let postReversiGamesResponseSchema = S.array(MisskeyIoComponentSchemas.ReversiGameLite.schema)
1614
1479
 
1615
1480
  /**
1616
- * reversi/games
1617
- *
1618
- * No description provided.
1619
- *
1620
- * **Credential required**: *No*
1621
- */
1622
- let postReversiGames = (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiGamesResponse> => {
1481
+ reversi/games
1482
+
1483
+ No description provided.
1484
+
1485
+ **Credential required**: *No*
1486
+ */
1487
+ let postReversiGames = async (~body: postReversiGamesRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiGamesResponse => {
1623
1488
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiGamesRequestSchema)
1624
- fetch(
1489
+ let response = await fetch(
1625
1490
  ~url="/reversi/games",
1626
1491
  ~method_="POST",
1627
1492
  ~body=Some(jsonBody),
1628
- )->Promise.then(response => {
1629
- let value = response->S.parseOrThrow(postReversiGamesResponseSchema)
1630
- value
1631
- ->Promise.resolve
1632
- })
1493
+ )
1494
+ response->S.parseOrThrow(postReversiGamesResponseSchema)
1633
1495
  }
1634
1496
 
1635
1497
  type postReversiInvitationsResponse = array<MisskeyIoComponentSchemas.UserLite.t>
@@ -1637,23 +1499,20 @@ type postReversiInvitationsResponse = array<MisskeyIoComponentSchemas.UserLite.t
1637
1499
  let postReversiInvitationsResponseSchema = S.array(MisskeyIoComponentSchemas.UserLite.schema)
1638
1500
 
1639
1501
  /**
1640
- * reversi/invitations
1641
- *
1642
- * No description provided.
1643
- *
1644
- * **Credential required**: *Yes* / **Permission**: *read:account*
1645
- */
1646
- let postReversiInvitations = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiInvitationsResponse> => {
1647
-
1648
- fetch(
1502
+ reversi/invitations
1503
+
1504
+ No description provided.
1505
+
1506
+ **Credential required**: *Yes* / **Permission**: *read:account*
1507
+ */
1508
+ let postReversiInvitations = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiInvitationsResponse => {
1509
+
1510
+ let response = await fetch(
1649
1511
  ~url="/reversi/invitations",
1650
1512
  ~method_="POST",
1651
1513
  ~body=None,
1652
- )->Promise.then(response => {
1653
- let value = response->S.parseOrThrow(postReversiInvitationsResponseSchema)
1654
- value
1655
- ->Promise.resolve
1656
- })
1514
+ )
1515
+ response->S.parseOrThrow(postReversiInvitationsResponseSchema)
1657
1516
  }
1658
1517
 
1659
1518
  type postReversiMatchRequest = {
@@ -1673,23 +1532,20 @@ type postReversiMatchResponse = dict<JSON.t>
1673
1532
  let postReversiMatchResponseSchema = S.dict(S.json)
1674
1533
 
1675
1534
  /**
1676
- * reversi/match
1677
- *
1678
- * No description provided.
1679
- *
1680
- * **Credential required**: *Yes* / **Permission**: *read:account*
1681
- */
1682
- let postReversiMatch = (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiMatchResponse> => {
1535
+ reversi/match
1536
+
1537
+ No description provided.
1538
+
1539
+ **Credential required**: *Yes* / **Permission**: *read:account*
1540
+ */
1541
+ let postReversiMatch = async (~body: postReversiMatchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiMatchResponse => {
1683
1542
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiMatchRequestSchema)
1684
- fetch(
1543
+ let response = await fetch(
1685
1544
  ~url="/reversi/match",
1686
1545
  ~method_="POST",
1687
1546
  ~body=Some(jsonBody),
1688
- )->Promise.then(response => {
1689
- let value = response->S.parseOrThrow(postReversiMatchResponseSchema)
1690
- value
1691
- ->Promise.resolve
1692
- })
1547
+ )
1548
+ response->S.parseOrThrow(postReversiMatchResponseSchema)
1693
1549
  }
1694
1550
 
1695
1551
  type postReversiShowGameRequest = {
@@ -1705,23 +1561,20 @@ type postReversiShowGameResponse = MisskeyIoComponentSchemas.ReversiGameDetailed
1705
1561
  let postReversiShowGameResponseSchema = MisskeyIoComponentSchemas.ReversiGameDetailed.schema
1706
1562
 
1707
1563
  /**
1708
- * reversi/show-game
1709
- *
1710
- * No description provided.
1711
- *
1712
- * **Credential required**: *No*
1713
- */
1714
- let postReversiShowGame = (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiShowGameResponse> => {
1564
+ reversi/show-game
1565
+
1566
+ No description provided.
1567
+
1568
+ **Credential required**: *No*
1569
+ */
1570
+ let postReversiShowGame = async (~body: postReversiShowGameRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiShowGameResponse => {
1715
1571
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiShowGameRequestSchema)
1716
- fetch(
1572
+ let response = await fetch(
1717
1573
  ~url="/reversi/show-game",
1718
1574
  ~method_="POST",
1719
1575
  ~body=Some(jsonBody),
1720
- )->Promise.then(response => {
1721
- let value = response->S.parseOrThrow(postReversiShowGameResponseSchema)
1722
- value
1723
- ->Promise.resolve
1724
- })
1576
+ )
1577
+ response->S.parseOrThrow(postReversiShowGameResponseSchema)
1725
1578
  }
1726
1579
 
1727
1580
  type postReversiSurrenderRequest = {
@@ -1735,23 +1588,20 @@ let postReversiSurrenderRequestSchema = S.object(s => {
1735
1588
  type postReversiSurrenderResponse = unit
1736
1589
 
1737
1590
  /**
1738
- * reversi/surrender
1739
- *
1740
- * No description provided.
1741
- *
1742
- * **Credential required**: *Yes* / **Permission**: *read:account*
1743
- */
1744
- let postReversiSurrender = (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiSurrenderResponse> => {
1591
+ reversi/surrender
1592
+
1593
+ No description provided.
1594
+
1595
+ **Credential required**: *Yes* / **Permission**: *read:account*
1596
+ */
1597
+ let postReversiSurrender = async (~body: postReversiSurrenderRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiSurrenderResponse => {
1745
1598
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiSurrenderRequestSchema)
1746
- fetch(
1599
+ let response = await fetch(
1747
1600
  ~url="/reversi/surrender",
1748
1601
  ~method_="POST",
1749
1602
  ~body=Some(jsonBody),
1750
- )->Promise.then(response => {
1603
+ )
1751
1604
  let _ = response
1752
- ()
1753
- ->Promise.resolve
1754
- })
1755
1605
  }
1756
1606
 
1757
1607
  type postReversiVerifyRequest = {
@@ -1775,23 +1625,20 @@ let postReversiVerifyResponseSchema = S.object(s => {
1775
1625
  })
1776
1626
 
1777
1627
  /**
1778
- * reversi/verify
1779
- *
1780
- * No description provided.
1781
- *
1782
- * **Credential required**: *No*
1783
- */
1784
- let postReversiVerify = (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postReversiVerifyResponse> => {
1628
+ reversi/verify
1629
+
1630
+ No description provided.
1631
+
1632
+ **Credential required**: *No*
1633
+ */
1634
+ let postReversiVerify = async (~body: postReversiVerifyRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postReversiVerifyResponse => {
1785
1635
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postReversiVerifyRequestSchema)
1786
- fetch(
1636
+ let response = await fetch(
1787
1637
  ~url="/reversi/verify",
1788
1638
  ~method_="POST",
1789
1639
  ~body=Some(jsonBody),
1790
- )->Promise.then(response => {
1791
- let value = response->S.parseOrThrow(postReversiVerifyResponseSchema)
1792
- value
1793
- ->Promise.resolve
1794
- })
1640
+ )
1641
+ response->S.parseOrThrow(postReversiVerifyResponseSchema)
1795
1642
  }
1796
1643
 
1797
1644
  type postUsersAchievementsRequest = {
@@ -1817,23 +1664,20 @@ let postUsersAchievementsResponse_1Schema = S.object(s => {
1817
1664
  let postUsersAchievementsResponseSchema = S.array(postUsersAchievementsResponse_1Schema)
1818
1665
 
1819
1666
  /**
1820
- * users/achievements
1821
- *
1822
- * No description provided.
1823
- *
1824
- * **Credential required**: *No*
1825
- */
1826
- let postUsersAchievements = (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postUsersAchievementsResponse> => {
1667
+ users/achievements
1668
+
1669
+ No description provided.
1670
+
1671
+ **Credential required**: *No*
1672
+ */
1673
+ let postUsersAchievements = async (~body: postUsersAchievementsRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersAchievementsResponse => {
1827
1674
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersAchievementsRequestSchema)
1828
- fetch(
1675
+ let response = await fetch(
1829
1676
  ~url="/users/achievements",
1830
1677
  ~method_="POST",
1831
1678
  ~body=Some(jsonBody),
1832
- )->Promise.then(response => {
1833
- let value = response->S.parseOrThrow(postUsersAchievementsResponseSchema)
1834
- value
1835
- ->Promise.resolve
1836
- })
1679
+ )
1680
+ response->S.parseOrThrow(postUsersAchievementsResponseSchema)
1837
1681
  }
1838
1682
 
1839
1683
  type postUsersListsCreateFromPublicRequest = {
@@ -1851,23 +1695,20 @@ type postUsersListsCreateFromPublicResponse = MisskeyIoComponentSchemas.UserList
1851
1695
  let postUsersListsCreateFromPublicResponseSchema = MisskeyIoComponentSchemas.UserList.schema
1852
1696
 
1853
1697
  /**
1854
- * users/lists/create-from-public
1855
- *
1856
- * No description provided.
1857
- *
1858
- * **Credential required**: *Yes* / **Permission**: *write:account*
1859
- */
1860
- let postUsersListsCreateFromPublic = (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postUsersListsCreateFromPublicResponse> => {
1698
+ users/lists/create-from-public
1699
+
1700
+ No description provided.
1701
+
1702
+ **Credential required**: *Yes* / **Permission**: *write:account*
1703
+ */
1704
+ let postUsersListsCreateFromPublic = async (~body: postUsersListsCreateFromPublicRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsCreateFromPublicResponse => {
1861
1705
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsCreateFromPublicRequestSchema)
1862
- fetch(
1706
+ let response = await fetch(
1863
1707
  ~url="/users/lists/create-from-public",
1864
1708
  ~method_="POST",
1865
1709
  ~body=Some(jsonBody),
1866
- )->Promise.then(response => {
1867
- let value = response->S.parseOrThrow(postUsersListsCreateFromPublicResponseSchema)
1868
- value
1869
- ->Promise.resolve
1870
- })
1710
+ )
1711
+ response->S.parseOrThrow(postUsersListsCreateFromPublicResponseSchema)
1871
1712
  }
1872
1713
 
1873
1714
  type postUsersListsFavoriteRequest = {
@@ -1881,23 +1722,20 @@ let postUsersListsFavoriteRequestSchema = S.object(s => {
1881
1722
  type postUsersListsFavoriteResponse = unit
1882
1723
 
1883
1724
  /**
1884
- * users/lists/favorite
1885
- *
1886
- * No description provided.
1887
- *
1888
- * **Credential required**: *Yes* / **Permission**: *write:account*
1889
- */
1890
- let postUsersListsFavorite = (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postUsersListsFavoriteResponse> => {
1725
+ users/lists/favorite
1726
+
1727
+ No description provided.
1728
+
1729
+ **Credential required**: *Yes* / **Permission**: *write:account*
1730
+ */
1731
+ let postUsersListsFavorite = async (~body: postUsersListsFavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsFavoriteResponse => {
1891
1732
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsFavoriteRequestSchema)
1892
- fetch(
1733
+ let response = await fetch(
1893
1734
  ~url="/users/lists/favorite",
1894
1735
  ~method_="POST",
1895
1736
  ~body=Some(jsonBody),
1896
- )->Promise.then(response => {
1737
+ )
1897
1738
  let _ = response
1898
- ()
1899
- ->Promise.resolve
1900
- })
1901
1739
  }
1902
1740
 
1903
1741
  type postUsersListsUnfavoriteRequest = {
@@ -1911,21 +1749,18 @@ let postUsersListsUnfavoriteRequestSchema = S.object(s => {
1911
1749
  type postUsersListsUnfavoriteResponse = unit
1912
1750
 
1913
1751
  /**
1914
- * users/lists/unfavorite
1915
- *
1916
- * No description provided.
1917
- *
1918
- * **Credential required**: *Yes* / **Permission**: *write:account*
1919
- */
1920
- let postUsersListsUnfavorite = (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): promise<postUsersListsUnfavoriteResponse> => {
1752
+ users/lists/unfavorite
1753
+
1754
+ No description provided.
1755
+
1756
+ **Credential required**: *Yes* / **Permission**: *write:account*
1757
+ */
1758
+ let postUsersListsUnfavorite = async (~body: postUsersListsUnfavoriteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postUsersListsUnfavoriteResponse => {
1921
1759
  let jsonBody = body->S.reverseConvertToJsonOrThrow(postUsersListsUnfavoriteRequestSchema)
1922
- fetch(
1760
+ let response = await fetch(
1923
1761
  ~url="/users/lists/unfavorite",
1924
1762
  ~method_="POST",
1925
1763
  ~body=Some(jsonBody),
1926
- )->Promise.then(response => {
1764
+ )
1927
1765
  let _ = response
1928
- ()
1929
- ->Promise.resolve
1930
- })
1931
1766
  }