@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
|
@@ -20,23 +20,20 @@ type postChatHistoryResponse = array<KokonectLinkComponentSchemas.ChatMessage.t>
|
|
|
20
20
|
let postChatHistoryResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessage.schema)
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let postChatHistory = (~body: postChatHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
23
|
+
chat/history
|
|
24
|
+
|
|
25
|
+
No description provided.
|
|
26
|
+
|
|
27
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
28
|
+
*/
|
|
29
|
+
let postChatHistory = async (~body: postChatHistoryRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatHistoryResponse => {
|
|
30
30
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatHistoryRequestSchema)
|
|
31
|
-
fetch(
|
|
31
|
+
let response = await fetch(
|
|
32
32
|
~url="/chat/history",
|
|
33
33
|
~method_="POST",
|
|
34
34
|
~body=Some(jsonBody),
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
value
|
|
38
|
-
->Promise.resolve
|
|
39
|
-
})
|
|
35
|
+
)
|
|
36
|
+
response->S.parseOrThrow(postChatHistoryResponseSchema)
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
type postChatMessagesCreateToRoomRequest = {
|
|
@@ -56,23 +53,20 @@ type postChatMessagesCreateToRoomResponse = KokonectLinkComponentSchemas.ChatMes
|
|
|
56
53
|
let postChatMessagesCreateToRoomResponseSchema = KokonectLinkComponentSchemas.ChatMessageLiteForRoom.schema
|
|
57
54
|
|
|
58
55
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
let postChatMessagesCreateToRoom = (~body: postChatMessagesCreateToRoomRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
56
|
+
chat/messages/create-to-room
|
|
57
|
+
|
|
58
|
+
No description provided.
|
|
59
|
+
|
|
60
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
61
|
+
*/
|
|
62
|
+
let postChatMessagesCreateToRoom = async (~body: postChatMessagesCreateToRoomRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesCreateToRoomResponse => {
|
|
66
63
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesCreateToRoomRequestSchema)
|
|
67
|
-
fetch(
|
|
64
|
+
let response = await fetch(
|
|
68
65
|
~url="/chat/messages/create-to-room",
|
|
69
66
|
~method_="POST",
|
|
70
67
|
~body=Some(jsonBody),
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
value
|
|
74
|
-
->Promise.resolve
|
|
75
|
-
})
|
|
68
|
+
)
|
|
69
|
+
response->S.parseOrThrow(postChatMessagesCreateToRoomResponseSchema)
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
type postChatMessagesCreateToUserRequest = {
|
|
@@ -92,23 +86,20 @@ type postChatMessagesCreateToUserResponse = KokonectLinkComponentSchemas.ChatMes
|
|
|
92
86
|
let postChatMessagesCreateToUserResponseSchema = KokonectLinkComponentSchemas.ChatMessageLiteFor1on1.schema
|
|
93
87
|
|
|
94
88
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
let postChatMessagesCreateToUser = (~body: postChatMessagesCreateToUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
89
|
+
chat/messages/create-to-user
|
|
90
|
+
|
|
91
|
+
No description provided.
|
|
92
|
+
|
|
93
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
94
|
+
*/
|
|
95
|
+
let postChatMessagesCreateToUser = async (~body: postChatMessagesCreateToUserRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesCreateToUserResponse => {
|
|
102
96
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesCreateToUserRequestSchema)
|
|
103
|
-
fetch(
|
|
97
|
+
let response = await fetch(
|
|
104
98
|
~url="/chat/messages/create-to-user",
|
|
105
99
|
~method_="POST",
|
|
106
100
|
~body=Some(jsonBody),
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
value
|
|
110
|
-
->Promise.resolve
|
|
111
|
-
})
|
|
101
|
+
)
|
|
102
|
+
response->S.parseOrThrow(postChatMessagesCreateToUserResponseSchema)
|
|
112
103
|
}
|
|
113
104
|
|
|
114
105
|
type postChatMessagesDeleteRequest = {
|
|
@@ -122,23 +113,20 @@ let postChatMessagesDeleteRequestSchema = S.object(s => {
|
|
|
122
113
|
type postChatMessagesDeleteResponse = unit
|
|
123
114
|
|
|
124
115
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
let postChatMessagesDelete = (~body: postChatMessagesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
116
|
+
chat/messages/delete
|
|
117
|
+
|
|
118
|
+
No description provided.
|
|
119
|
+
|
|
120
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
121
|
+
*/
|
|
122
|
+
let postChatMessagesDelete = async (~body: postChatMessagesDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesDeleteResponse => {
|
|
132
123
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesDeleteRequestSchema)
|
|
133
|
-
fetch(
|
|
124
|
+
let response = await fetch(
|
|
134
125
|
~url="/chat/messages/delete",
|
|
135
126
|
~method_="POST",
|
|
136
127
|
~body=Some(jsonBody),
|
|
137
|
-
)
|
|
128
|
+
)
|
|
138
129
|
let _ = response
|
|
139
|
-
()
|
|
140
|
-
->Promise.resolve
|
|
141
|
-
})
|
|
142
130
|
}
|
|
143
131
|
|
|
144
132
|
type postChatMessagesReactRequest = {
|
|
@@ -154,23 +142,20 @@ let postChatMessagesReactRequestSchema = S.object(s => {
|
|
|
154
142
|
type postChatMessagesReactResponse = unit
|
|
155
143
|
|
|
156
144
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
let postChatMessagesReact = (~body: postChatMessagesReactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
145
|
+
chat/messages/react
|
|
146
|
+
|
|
147
|
+
No description provided.
|
|
148
|
+
|
|
149
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
150
|
+
*/
|
|
151
|
+
let postChatMessagesReact = async (~body: postChatMessagesReactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesReactResponse => {
|
|
164
152
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesReactRequestSchema)
|
|
165
|
-
fetch(
|
|
153
|
+
let response = await fetch(
|
|
166
154
|
~url="/chat/messages/react",
|
|
167
155
|
~method_="POST",
|
|
168
156
|
~body=Some(jsonBody),
|
|
169
|
-
)
|
|
157
|
+
)
|
|
170
158
|
let _ = response
|
|
171
|
-
()
|
|
172
|
-
->Promise.resolve
|
|
173
|
-
})
|
|
174
159
|
}
|
|
175
160
|
|
|
176
161
|
type postChatMessagesRoomTimelineRequest = {
|
|
@@ -196,23 +181,20 @@ type postChatMessagesRoomTimelineResponse = array<KokonectLinkComponentSchemas.C
|
|
|
196
181
|
let postChatMessagesRoomTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessageLiteForRoom.schema)
|
|
197
182
|
|
|
198
183
|
/**
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
let postChatMessagesRoomTimeline = (~body: postChatMessagesRoomTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
184
|
+
chat/messages/room-timeline
|
|
185
|
+
|
|
186
|
+
No description provided.
|
|
187
|
+
|
|
188
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
189
|
+
*/
|
|
190
|
+
let postChatMessagesRoomTimeline = async (~body: postChatMessagesRoomTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesRoomTimelineResponse => {
|
|
206
191
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesRoomTimelineRequestSchema)
|
|
207
|
-
fetch(
|
|
192
|
+
let response = await fetch(
|
|
208
193
|
~url="/chat/messages/room-timeline",
|
|
209
194
|
~method_="POST",
|
|
210
195
|
~body=Some(jsonBody),
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
value
|
|
214
|
-
->Promise.resolve
|
|
215
|
-
})
|
|
196
|
+
)
|
|
197
|
+
response->S.parseOrThrow(postChatMessagesRoomTimelineResponseSchema)
|
|
216
198
|
}
|
|
217
199
|
|
|
218
200
|
type postChatMessagesSearchRequest = {
|
|
@@ -234,23 +216,20 @@ type postChatMessagesSearchResponse = array<KokonectLinkComponentSchemas.ChatMes
|
|
|
234
216
|
let postChatMessagesSearchResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessage.schema)
|
|
235
217
|
|
|
236
218
|
/**
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
let postChatMessagesSearch = (~body: postChatMessagesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
219
|
+
chat/messages/search
|
|
220
|
+
|
|
221
|
+
No description provided.
|
|
222
|
+
|
|
223
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
224
|
+
*/
|
|
225
|
+
let postChatMessagesSearch = async (~body: postChatMessagesSearchRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesSearchResponse => {
|
|
244
226
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesSearchRequestSchema)
|
|
245
|
-
fetch(
|
|
227
|
+
let response = await fetch(
|
|
246
228
|
~url="/chat/messages/search",
|
|
247
229
|
~method_="POST",
|
|
248
230
|
~body=Some(jsonBody),
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
value
|
|
252
|
-
->Promise.resolve
|
|
253
|
-
})
|
|
231
|
+
)
|
|
232
|
+
response->S.parseOrThrow(postChatMessagesSearchResponseSchema)
|
|
254
233
|
}
|
|
255
234
|
|
|
256
235
|
type postChatMessagesShowRequest = {
|
|
@@ -266,23 +245,20 @@ type postChatMessagesShowResponse = KokonectLinkComponentSchemas.ChatMessage.t
|
|
|
266
245
|
let postChatMessagesShowResponseSchema = KokonectLinkComponentSchemas.ChatMessage.schema
|
|
267
246
|
|
|
268
247
|
/**
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
let postChatMessagesShow = (~body: postChatMessagesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
248
|
+
chat/messages/show
|
|
249
|
+
|
|
250
|
+
No description provided.
|
|
251
|
+
|
|
252
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
253
|
+
*/
|
|
254
|
+
let postChatMessagesShow = async (~body: postChatMessagesShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesShowResponse => {
|
|
276
255
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesShowRequestSchema)
|
|
277
|
-
fetch(
|
|
256
|
+
let response = await fetch(
|
|
278
257
|
~url="/chat/messages/show",
|
|
279
258
|
~method_="POST",
|
|
280
259
|
~body=Some(jsonBody),
|
|
281
|
-
)
|
|
282
|
-
|
|
283
|
-
value
|
|
284
|
-
->Promise.resolve
|
|
285
|
-
})
|
|
260
|
+
)
|
|
261
|
+
response->S.parseOrThrow(postChatMessagesShowResponseSchema)
|
|
286
262
|
}
|
|
287
263
|
|
|
288
264
|
type postChatMessagesUnreactRequest = {
|
|
@@ -298,23 +274,20 @@ let postChatMessagesUnreactRequestSchema = S.object(s => {
|
|
|
298
274
|
type postChatMessagesUnreactResponse = unit
|
|
299
275
|
|
|
300
276
|
/**
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
let postChatMessagesUnreact = (~body: postChatMessagesUnreactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
277
|
+
chat/messages/unreact
|
|
278
|
+
|
|
279
|
+
No description provided.
|
|
280
|
+
|
|
281
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
282
|
+
*/
|
|
283
|
+
let postChatMessagesUnreact = async (~body: postChatMessagesUnreactRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesUnreactResponse => {
|
|
308
284
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesUnreactRequestSchema)
|
|
309
|
-
fetch(
|
|
285
|
+
let response = await fetch(
|
|
310
286
|
~url="/chat/messages/unreact",
|
|
311
287
|
~method_="POST",
|
|
312
288
|
~body=Some(jsonBody),
|
|
313
|
-
)
|
|
289
|
+
)
|
|
314
290
|
let _ = response
|
|
315
|
-
()
|
|
316
|
-
->Promise.resolve
|
|
317
|
-
})
|
|
318
291
|
}
|
|
319
292
|
|
|
320
293
|
type postChatMessagesUserTimelineRequest = {
|
|
@@ -340,45 +313,39 @@ type postChatMessagesUserTimelineResponse = array<KokonectLinkComponentSchemas.C
|
|
|
340
313
|
let postChatMessagesUserTimelineResponseSchema = S.array(KokonectLinkComponentSchemas.ChatMessageLiteFor1on1.schema)
|
|
341
314
|
|
|
342
315
|
/**
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
let postChatMessagesUserTimeline = (~body: postChatMessagesUserTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
316
|
+
chat/messages/user-timeline
|
|
317
|
+
|
|
318
|
+
No description provided.
|
|
319
|
+
|
|
320
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
321
|
+
*/
|
|
322
|
+
let postChatMessagesUserTimeline = async (~body: postChatMessagesUserTimelineRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatMessagesUserTimelineResponse => {
|
|
350
323
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatMessagesUserTimelineRequestSchema)
|
|
351
|
-
fetch(
|
|
324
|
+
let response = await fetch(
|
|
352
325
|
~url="/chat/messages/user-timeline",
|
|
353
326
|
~method_="POST",
|
|
354
327
|
~body=Some(jsonBody),
|
|
355
|
-
)
|
|
356
|
-
|
|
357
|
-
value
|
|
358
|
-
->Promise.resolve
|
|
359
|
-
})
|
|
328
|
+
)
|
|
329
|
+
response->S.parseOrThrow(postChatMessagesUserTimelineResponseSchema)
|
|
360
330
|
}
|
|
361
331
|
|
|
362
332
|
type postChatReadAllResponse = unit
|
|
363
333
|
|
|
364
334
|
/**
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
let postChatReadAll = (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
372
|
-
|
|
373
|
-
fetch(
|
|
335
|
+
chat/read-all
|
|
336
|
+
|
|
337
|
+
No description provided.
|
|
338
|
+
|
|
339
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
340
|
+
*/
|
|
341
|
+
let postChatReadAll = async (~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatReadAllResponse => {
|
|
342
|
+
|
|
343
|
+
let response = await fetch(
|
|
374
344
|
~url="/chat/read-all",
|
|
375
345
|
~method_="POST",
|
|
376
346
|
~body=None,
|
|
377
|
-
)
|
|
347
|
+
)
|
|
378
348
|
let _ = response
|
|
379
|
-
()
|
|
380
|
-
->Promise.resolve
|
|
381
|
-
})
|
|
382
349
|
}
|
|
383
350
|
|
|
384
351
|
type postChatRoomsCreateRequest = {
|
|
@@ -396,23 +363,20 @@ type postChatRoomsCreateResponse = KokonectLinkComponentSchemas.ChatRoom.t
|
|
|
396
363
|
let postChatRoomsCreateResponseSchema = KokonectLinkComponentSchemas.ChatRoom.schema
|
|
397
364
|
|
|
398
365
|
/**
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
let postChatRoomsCreate = (~body: postChatRoomsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
366
|
+
chat/rooms/create
|
|
367
|
+
|
|
368
|
+
No description provided.
|
|
369
|
+
|
|
370
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
371
|
+
*/
|
|
372
|
+
let postChatRoomsCreate = async (~body: postChatRoomsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsCreateResponse => {
|
|
406
373
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsCreateRequestSchema)
|
|
407
|
-
fetch(
|
|
374
|
+
let response = await fetch(
|
|
408
375
|
~url="/chat/rooms/create",
|
|
409
376
|
~method_="POST",
|
|
410
377
|
~body=Some(jsonBody),
|
|
411
|
-
)
|
|
412
|
-
|
|
413
|
-
value
|
|
414
|
-
->Promise.resolve
|
|
415
|
-
})
|
|
378
|
+
)
|
|
379
|
+
response->S.parseOrThrow(postChatRoomsCreateResponseSchema)
|
|
416
380
|
}
|
|
417
381
|
|
|
418
382
|
type postChatRoomsDeleteRequest = {
|
|
@@ -426,23 +390,20 @@ let postChatRoomsDeleteRequestSchema = S.object(s => {
|
|
|
426
390
|
type postChatRoomsDeleteResponse = unit
|
|
427
391
|
|
|
428
392
|
/**
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
let postChatRoomsDelete = (~body: postChatRoomsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
393
|
+
chat/rooms/delete
|
|
394
|
+
|
|
395
|
+
No description provided.
|
|
396
|
+
|
|
397
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
398
|
+
*/
|
|
399
|
+
let postChatRoomsDelete = async (~body: postChatRoomsDeleteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsDeleteResponse => {
|
|
436
400
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsDeleteRequestSchema)
|
|
437
|
-
fetch(
|
|
401
|
+
let response = await fetch(
|
|
438
402
|
~url="/chat/rooms/delete",
|
|
439
403
|
~method_="POST",
|
|
440
404
|
~body=Some(jsonBody),
|
|
441
|
-
)
|
|
405
|
+
)
|
|
442
406
|
let _ = response
|
|
443
|
-
()
|
|
444
|
-
->Promise.resolve
|
|
445
|
-
})
|
|
446
407
|
}
|
|
447
408
|
|
|
448
409
|
type postChatRoomsInvitationsCancelRequest = {
|
|
@@ -456,23 +417,20 @@ let postChatRoomsInvitationsCancelRequestSchema = S.object(s => {
|
|
|
456
417
|
type postChatRoomsInvitationsCancelResponse = unit
|
|
457
418
|
|
|
458
419
|
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
let postChatRoomsInvitationsCancel = (~body: postChatRoomsInvitationsCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
420
|
+
chat/rooms/invitations/cancel
|
|
421
|
+
|
|
422
|
+
No description provided.
|
|
423
|
+
|
|
424
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
425
|
+
*/
|
|
426
|
+
let postChatRoomsInvitationsCancel = async (~body: postChatRoomsInvitationsCancelRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsCancelResponse => {
|
|
466
427
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsCancelRequestSchema)
|
|
467
|
-
fetch(
|
|
428
|
+
let response = await fetch(
|
|
468
429
|
~url="/chat/rooms/invitations/cancel",
|
|
469
430
|
~method_="POST",
|
|
470
431
|
~body=Some(jsonBody),
|
|
471
|
-
)
|
|
432
|
+
)
|
|
472
433
|
let _ = response
|
|
473
|
-
()
|
|
474
|
-
->Promise.resolve
|
|
475
|
-
})
|
|
476
434
|
}
|
|
477
435
|
|
|
478
436
|
type postChatRoomsInvitationsCreateRequest = {
|
|
@@ -490,23 +448,20 @@ type postChatRoomsInvitationsCreateResponse = KokonectLinkComponentSchemas.ChatR
|
|
|
490
448
|
let postChatRoomsInvitationsCreateResponseSchema = KokonectLinkComponentSchemas.ChatRoomInvitation.schema
|
|
491
449
|
|
|
492
450
|
/**
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
let postChatRoomsInvitationsCreate = (~body: postChatRoomsInvitationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
451
|
+
chat/rooms/invitations/create
|
|
452
|
+
|
|
453
|
+
No description provided.
|
|
454
|
+
|
|
455
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
456
|
+
*/
|
|
457
|
+
let postChatRoomsInvitationsCreate = async (~body: postChatRoomsInvitationsCreateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsCreateResponse => {
|
|
500
458
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsCreateRequestSchema)
|
|
501
|
-
fetch(
|
|
459
|
+
let response = await fetch(
|
|
502
460
|
~url="/chat/rooms/invitations/create",
|
|
503
461
|
~method_="POST",
|
|
504
462
|
~body=Some(jsonBody),
|
|
505
|
-
)
|
|
506
|
-
|
|
507
|
-
value
|
|
508
|
-
->Promise.resolve
|
|
509
|
-
})
|
|
463
|
+
)
|
|
464
|
+
response->S.parseOrThrow(postChatRoomsInvitationsCreateResponseSchema)
|
|
510
465
|
}
|
|
511
466
|
|
|
512
467
|
type postChatRoomsInvitationsIgnoreRequest = {
|
|
@@ -520,23 +475,20 @@ let postChatRoomsInvitationsIgnoreRequestSchema = S.object(s => {
|
|
|
520
475
|
type postChatRoomsInvitationsIgnoreResponse = unit
|
|
521
476
|
|
|
522
477
|
/**
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
let postChatRoomsInvitationsIgnore = (~body: postChatRoomsInvitationsIgnoreRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
478
|
+
chat/rooms/invitations/ignore
|
|
479
|
+
|
|
480
|
+
No description provided.
|
|
481
|
+
|
|
482
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
483
|
+
*/
|
|
484
|
+
let postChatRoomsInvitationsIgnore = async (~body: postChatRoomsInvitationsIgnoreRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsIgnoreResponse => {
|
|
530
485
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsIgnoreRequestSchema)
|
|
531
|
-
fetch(
|
|
486
|
+
let response = await fetch(
|
|
532
487
|
~url="/chat/rooms/invitations/ignore",
|
|
533
488
|
~method_="POST",
|
|
534
489
|
~body=Some(jsonBody),
|
|
535
|
-
)
|
|
490
|
+
)
|
|
536
491
|
let _ = response
|
|
537
|
-
()
|
|
538
|
-
->Promise.resolve
|
|
539
|
-
})
|
|
540
492
|
}
|
|
541
493
|
|
|
542
494
|
type postChatRoomsInvitationsInboxRequest = {
|
|
@@ -560,23 +512,20 @@ type postChatRoomsInvitationsInboxResponse = array<KokonectLinkComponentSchemas.
|
|
|
560
512
|
let postChatRoomsInvitationsInboxResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomInvitation.schema)
|
|
561
513
|
|
|
562
514
|
/**
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
let postChatRoomsInvitationsInbox = (~body: postChatRoomsInvitationsInboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
515
|
+
chat/rooms/invitations/inbox
|
|
516
|
+
|
|
517
|
+
No description provided.
|
|
518
|
+
|
|
519
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
520
|
+
*/
|
|
521
|
+
let postChatRoomsInvitationsInbox = async (~body: postChatRoomsInvitationsInboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsInboxResponse => {
|
|
570
522
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsInboxRequestSchema)
|
|
571
|
-
fetch(
|
|
523
|
+
let response = await fetch(
|
|
572
524
|
~url="/chat/rooms/invitations/inbox",
|
|
573
525
|
~method_="POST",
|
|
574
526
|
~body=Some(jsonBody),
|
|
575
|
-
)
|
|
576
|
-
|
|
577
|
-
value
|
|
578
|
-
->Promise.resolve
|
|
579
|
-
})
|
|
527
|
+
)
|
|
528
|
+
response->S.parseOrThrow(postChatRoomsInvitationsInboxResponseSchema)
|
|
580
529
|
}
|
|
581
530
|
|
|
582
531
|
type postChatRoomsInvitationsOutboxRequest = {
|
|
@@ -602,23 +551,20 @@ type postChatRoomsInvitationsOutboxResponse = array<KokonectLinkComponentSchemas
|
|
|
602
551
|
let postChatRoomsInvitationsOutboxResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomInvitation.schema)
|
|
603
552
|
|
|
604
553
|
/**
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
let postChatRoomsInvitationsOutbox = (~body: postChatRoomsInvitationsOutboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
554
|
+
chat/rooms/invitations/outbox
|
|
555
|
+
|
|
556
|
+
No description provided.
|
|
557
|
+
|
|
558
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
559
|
+
*/
|
|
560
|
+
let postChatRoomsInvitationsOutbox = async (~body: postChatRoomsInvitationsOutboxRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsOutboxResponse => {
|
|
612
561
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsOutboxRequestSchema)
|
|
613
|
-
fetch(
|
|
562
|
+
let response = await fetch(
|
|
614
563
|
~url="/chat/rooms/invitations/outbox",
|
|
615
564
|
~method_="POST",
|
|
616
565
|
~body=Some(jsonBody),
|
|
617
|
-
)
|
|
618
|
-
|
|
619
|
-
value
|
|
620
|
-
->Promise.resolve
|
|
621
|
-
})
|
|
566
|
+
)
|
|
567
|
+
response->S.parseOrThrow(postChatRoomsInvitationsOutboxResponseSchema)
|
|
622
568
|
}
|
|
623
569
|
|
|
624
570
|
type postChatRoomsInvitationsRejectRequest = {
|
|
@@ -632,23 +578,20 @@ let postChatRoomsInvitationsRejectRequestSchema = S.object(s => {
|
|
|
632
578
|
type postChatRoomsInvitationsRejectResponse = unit
|
|
633
579
|
|
|
634
580
|
/**
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
let postChatRoomsInvitationsReject = (~body: postChatRoomsInvitationsRejectRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
581
|
+
chat/rooms/invitations/reject
|
|
582
|
+
|
|
583
|
+
No description provided.
|
|
584
|
+
|
|
585
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
586
|
+
*/
|
|
587
|
+
let postChatRoomsInvitationsReject = async (~body: postChatRoomsInvitationsRejectRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsInvitationsRejectResponse => {
|
|
642
588
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsInvitationsRejectRequestSchema)
|
|
643
|
-
fetch(
|
|
589
|
+
let response = await fetch(
|
|
644
590
|
~url="/chat/rooms/invitations/reject",
|
|
645
591
|
~method_="POST",
|
|
646
592
|
~body=Some(jsonBody),
|
|
647
|
-
)
|
|
593
|
+
)
|
|
648
594
|
let _ = response
|
|
649
|
-
()
|
|
650
|
-
->Promise.resolve
|
|
651
|
-
})
|
|
652
595
|
}
|
|
653
596
|
|
|
654
597
|
type postChatRoomsJoinRequest = {
|
|
@@ -662,23 +605,20 @@ let postChatRoomsJoinRequestSchema = S.object(s => {
|
|
|
662
605
|
type postChatRoomsJoinResponse = unit
|
|
663
606
|
|
|
664
607
|
/**
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
let postChatRoomsJoin = (~body: postChatRoomsJoinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
608
|
+
chat/rooms/join
|
|
609
|
+
|
|
610
|
+
No description provided.
|
|
611
|
+
|
|
612
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
613
|
+
*/
|
|
614
|
+
let postChatRoomsJoin = async (~body: postChatRoomsJoinRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsJoinResponse => {
|
|
672
615
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsJoinRequestSchema)
|
|
673
|
-
fetch(
|
|
616
|
+
let response = await fetch(
|
|
674
617
|
~url="/chat/rooms/join",
|
|
675
618
|
~method_="POST",
|
|
676
619
|
~body=Some(jsonBody),
|
|
677
|
-
)
|
|
620
|
+
)
|
|
678
621
|
let _ = response
|
|
679
|
-
()
|
|
680
|
-
->Promise.resolve
|
|
681
|
-
})
|
|
682
622
|
}
|
|
683
623
|
|
|
684
624
|
type postChatRoomsJoiningRequest = {
|
|
@@ -702,23 +642,20 @@ type postChatRoomsJoiningResponse = array<KokonectLinkComponentSchemas.ChatRoomM
|
|
|
702
642
|
let postChatRoomsJoiningResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomMembership.schema)
|
|
703
643
|
|
|
704
644
|
/**
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
let postChatRoomsJoining = (~body: postChatRoomsJoiningRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
645
|
+
chat/rooms/joining
|
|
646
|
+
|
|
647
|
+
No description provided.
|
|
648
|
+
|
|
649
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
650
|
+
*/
|
|
651
|
+
let postChatRoomsJoining = async (~body: postChatRoomsJoiningRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsJoiningResponse => {
|
|
712
652
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsJoiningRequestSchema)
|
|
713
|
-
fetch(
|
|
653
|
+
let response = await fetch(
|
|
714
654
|
~url="/chat/rooms/joining",
|
|
715
655
|
~method_="POST",
|
|
716
656
|
~body=Some(jsonBody),
|
|
717
|
-
)
|
|
718
|
-
|
|
719
|
-
value
|
|
720
|
-
->Promise.resolve
|
|
721
|
-
})
|
|
657
|
+
)
|
|
658
|
+
response->S.parseOrThrow(postChatRoomsJoiningResponseSchema)
|
|
722
659
|
}
|
|
723
660
|
|
|
724
661
|
type postChatRoomsLeaveRequest = {
|
|
@@ -732,23 +669,20 @@ let postChatRoomsLeaveRequestSchema = S.object(s => {
|
|
|
732
669
|
type postChatRoomsLeaveResponse = unit
|
|
733
670
|
|
|
734
671
|
/**
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
let postChatRoomsLeave = (~body: postChatRoomsLeaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
672
|
+
chat/rooms/leave
|
|
673
|
+
|
|
674
|
+
No description provided.
|
|
675
|
+
|
|
676
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
677
|
+
*/
|
|
678
|
+
let postChatRoomsLeave = async (~body: postChatRoomsLeaveRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsLeaveResponse => {
|
|
742
679
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsLeaveRequestSchema)
|
|
743
|
-
fetch(
|
|
680
|
+
let response = await fetch(
|
|
744
681
|
~url="/chat/rooms/leave",
|
|
745
682
|
~method_="POST",
|
|
746
683
|
~body=Some(jsonBody),
|
|
747
|
-
)
|
|
684
|
+
)
|
|
748
685
|
let _ = response
|
|
749
|
-
()
|
|
750
|
-
->Promise.resolve
|
|
751
|
-
})
|
|
752
686
|
}
|
|
753
687
|
|
|
754
688
|
type postChatRoomsMembersRequest = {
|
|
@@ -774,23 +708,20 @@ type postChatRoomsMembersResponse = array<KokonectLinkComponentSchemas.ChatRoomM
|
|
|
774
708
|
let postChatRoomsMembersResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoomMembership.schema)
|
|
775
709
|
|
|
776
710
|
/**
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
let postChatRoomsMembers = (~body: postChatRoomsMembersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
711
|
+
chat/rooms/members
|
|
712
|
+
|
|
713
|
+
No description provided.
|
|
714
|
+
|
|
715
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
716
|
+
*/
|
|
717
|
+
let postChatRoomsMembers = async (~body: postChatRoomsMembersRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsMembersResponse => {
|
|
784
718
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsMembersRequestSchema)
|
|
785
|
-
fetch(
|
|
719
|
+
let response = await fetch(
|
|
786
720
|
~url="/chat/rooms/members",
|
|
787
721
|
~method_="POST",
|
|
788
722
|
~body=Some(jsonBody),
|
|
789
|
-
)
|
|
790
|
-
|
|
791
|
-
value
|
|
792
|
-
->Promise.resolve
|
|
793
|
-
})
|
|
723
|
+
)
|
|
724
|
+
response->S.parseOrThrow(postChatRoomsMembersResponseSchema)
|
|
794
725
|
}
|
|
795
726
|
|
|
796
727
|
type postChatRoomsMuteRequest = {
|
|
@@ -806,23 +737,20 @@ let postChatRoomsMuteRequestSchema = S.object(s => {
|
|
|
806
737
|
type postChatRoomsMuteResponse = unit
|
|
807
738
|
|
|
808
739
|
/**
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
let postChatRoomsMute = (~body: postChatRoomsMuteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
740
|
+
chat/rooms/mute
|
|
741
|
+
|
|
742
|
+
No description provided.
|
|
743
|
+
|
|
744
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
745
|
+
*/
|
|
746
|
+
let postChatRoomsMute = async (~body: postChatRoomsMuteRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsMuteResponse => {
|
|
816
747
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsMuteRequestSchema)
|
|
817
|
-
fetch(
|
|
748
|
+
let response = await fetch(
|
|
818
749
|
~url="/chat/rooms/mute",
|
|
819
750
|
~method_="POST",
|
|
820
751
|
~body=Some(jsonBody),
|
|
821
|
-
)
|
|
752
|
+
)
|
|
822
753
|
let _ = response
|
|
823
|
-
()
|
|
824
|
-
->Promise.resolve
|
|
825
|
-
})
|
|
826
754
|
}
|
|
827
755
|
|
|
828
756
|
type postChatRoomsOwnedRequest = {
|
|
@@ -846,23 +774,20 @@ type postChatRoomsOwnedResponse = array<KokonectLinkComponentSchemas.ChatRoom.t>
|
|
|
846
774
|
let postChatRoomsOwnedResponseSchema = S.array(KokonectLinkComponentSchemas.ChatRoom.schema)
|
|
847
775
|
|
|
848
776
|
/**
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
let postChatRoomsOwned = (~body: postChatRoomsOwnedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
777
|
+
chat/rooms/owned
|
|
778
|
+
|
|
779
|
+
No description provided.
|
|
780
|
+
|
|
781
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
782
|
+
*/
|
|
783
|
+
let postChatRoomsOwned = async (~body: postChatRoomsOwnedRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsOwnedResponse => {
|
|
856
784
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsOwnedRequestSchema)
|
|
857
|
-
fetch(
|
|
785
|
+
let response = await fetch(
|
|
858
786
|
~url="/chat/rooms/owned",
|
|
859
787
|
~method_="POST",
|
|
860
788
|
~body=Some(jsonBody),
|
|
861
|
-
)
|
|
862
|
-
|
|
863
|
-
value
|
|
864
|
-
->Promise.resolve
|
|
865
|
-
})
|
|
789
|
+
)
|
|
790
|
+
response->S.parseOrThrow(postChatRoomsOwnedResponseSchema)
|
|
866
791
|
}
|
|
867
792
|
|
|
868
793
|
type postChatRoomsShowRequest = {
|
|
@@ -878,23 +803,20 @@ type postChatRoomsShowResponse = KokonectLinkComponentSchemas.ChatRoom.t
|
|
|
878
803
|
let postChatRoomsShowResponseSchema = KokonectLinkComponentSchemas.ChatRoom.schema
|
|
879
804
|
|
|
880
805
|
/**
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
let postChatRoomsShow = (~body: postChatRoomsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
806
|
+
chat/rooms/show
|
|
807
|
+
|
|
808
|
+
No description provided.
|
|
809
|
+
|
|
810
|
+
**Credential required**: *Yes* / **Permission**: *read:chat*
|
|
811
|
+
*/
|
|
812
|
+
let postChatRoomsShow = async (~body: postChatRoomsShowRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsShowResponse => {
|
|
888
813
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsShowRequestSchema)
|
|
889
|
-
fetch(
|
|
814
|
+
let response = await fetch(
|
|
890
815
|
~url="/chat/rooms/show",
|
|
891
816
|
~method_="POST",
|
|
892
817
|
~body=Some(jsonBody),
|
|
893
|
-
)
|
|
894
|
-
|
|
895
|
-
value
|
|
896
|
-
->Promise.resolve
|
|
897
|
-
})
|
|
818
|
+
)
|
|
819
|
+
response->S.parseOrThrow(postChatRoomsShowResponseSchema)
|
|
898
820
|
}
|
|
899
821
|
|
|
900
822
|
type postChatRoomsUpdateRequest = {
|
|
@@ -914,21 +836,18 @@ type postChatRoomsUpdateResponse = KokonectLinkComponentSchemas.ChatRoom.t
|
|
|
914
836
|
let postChatRoomsUpdateResponseSchema = KokonectLinkComponentSchemas.ChatRoom.schema
|
|
915
837
|
|
|
916
838
|
/**
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
let postChatRoomsUpdate = (~body: postChatRoomsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>):
|
|
839
|
+
chat/rooms/update
|
|
840
|
+
|
|
841
|
+
No description provided.
|
|
842
|
+
|
|
843
|
+
**Credential required**: *Yes* / **Permission**: *write:chat*
|
|
844
|
+
*/
|
|
845
|
+
let postChatRoomsUpdate = async (~body: postChatRoomsUpdateRequest, ~fetch: (~url: string, ~method_: string, ~body: option<JSON.t>) => Promise.t<JSON.t>): postChatRoomsUpdateResponse => {
|
|
924
846
|
let jsonBody = body->S.reverseConvertToJsonOrThrow(postChatRoomsUpdateRequestSchema)
|
|
925
|
-
fetch(
|
|
847
|
+
let response = await fetch(
|
|
926
848
|
~url="/chat/rooms/update",
|
|
927
849
|
~method_="POST",
|
|
928
850
|
~body=Some(jsonBody),
|
|
929
|
-
)
|
|
930
|
-
|
|
931
|
-
value
|
|
932
|
-
->Promise.resolve
|
|
933
|
-
})
|
|
851
|
+
)
|
|
852
|
+
response->S.parseOrThrow(postChatRoomsUpdateResponseSchema)
|
|
934
853
|
}
|