@distilled.cloud/slack 0.0.0 → 1.0.0-rc.11

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 (212) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +27 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +53 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +83 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +59 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +17 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +17 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +31 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +31 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +230 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +52 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +45 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/admin.d.ts +2796 -0
  27. package/lib/services/admin.d.ts.map +1 -0
  28. package/lib/services/admin.js +3217 -0
  29. package/lib/services/admin.js.map +1 -0
  30. package/lib/services/api.d.ts +23 -0
  31. package/lib/services/api.d.ts.map +1 -0
  32. package/lib/services/api.js +26 -0
  33. package/lib/services/api.js.map +1 -0
  34. package/lib/services/apps.d.ts +568 -0
  35. package/lib/services/apps.d.ts.map +1 -0
  36. package/lib/services/apps.js +584 -0
  37. package/lib/services/apps.js.map +1 -0
  38. package/lib/services/assistant.d.ts +290 -0
  39. package/lib/services/assistant.d.ts.map +1 -0
  40. package/lib/services/assistant.js +232 -0
  41. package/lib/services/assistant.js.map +1 -0
  42. package/lib/services/auth.d.ts +90 -0
  43. package/lib/services/auth.d.ts.map +1 -0
  44. package/lib/services/auth.js +114 -0
  45. package/lib/services/auth.js.map +1 -0
  46. package/lib/services/blocks.d.ts +31 -0
  47. package/lib/services/blocks.d.ts.map +1 -0
  48. package/lib/services/blocks.js +31 -0
  49. package/lib/services/blocks.js.map +1 -0
  50. package/lib/services/bookmarks.d.ts +91 -0
  51. package/lib/services/bookmarks.d.ts.map +1 -0
  52. package/lib/services/bookmarks.js +98 -0
  53. package/lib/services/bookmarks.js.map +1 -0
  54. package/lib/services/bots.d.ts +60 -0
  55. package/lib/services/bots.d.ts.map +1 -0
  56. package/lib/services/bots.js +68 -0
  57. package/lib/services/bots.js.map +1 -0
  58. package/lib/services/calls.d.ts +124 -0
  59. package/lib/services/calls.d.ts.map +1 -0
  60. package/lib/services/calls.js +136 -0
  61. package/lib/services/calls.js.map +1 -0
  62. package/lib/services/canvases.d.ts +152 -0
  63. package/lib/services/canvases.d.ts.map +1 -0
  64. package/lib/services/canvases.js +152 -0
  65. package/lib/services/canvases.js.map +1 -0
  66. package/lib/services/chat.d.ts +525 -0
  67. package/lib/services/chat.d.ts.map +1 -0
  68. package/lib/services/chat.js +436 -0
  69. package/lib/services/chat.js.map +1 -0
  70. package/lib/services/conversations.d.ts +642 -0
  71. package/lib/services/conversations.d.ts.map +1 -0
  72. package/lib/services/conversations.js +769 -0
  73. package/lib/services/conversations.js.map +1 -0
  74. package/lib/services/dialog.d.ts +20 -0
  75. package/lib/services/dialog.d.ts.map +1 -0
  76. package/lib/services/dialog.js +27 -0
  77. package/lib/services/dialog.js.map +1 -0
  78. package/lib/services/dnd.d.ts +94 -0
  79. package/lib/services/dnd.d.ts.map +1 -0
  80. package/lib/services/dnd.js +111 -0
  81. package/lib/services/dnd.js.map +1 -0
  82. package/lib/services/emoji.d.ts +35 -0
  83. package/lib/services/emoji.d.ts.map +1 -0
  84. package/lib/services/emoji.js +40 -0
  85. package/lib/services/emoji.js.map +1 -0
  86. package/lib/services/entity.d.ts +93 -0
  87. package/lib/services/entity.d.ts.map +1 -0
  88. package/lib/services/entity.js +89 -0
  89. package/lib/services/entity.js.map +1 -0
  90. package/lib/services/files.d.ts +473 -0
  91. package/lib/services/files.d.ts.map +1 -0
  92. package/lib/services/files.js +510 -0
  93. package/lib/services/files.js.map +1 -0
  94. package/lib/services/functions.d.ts +235 -0
  95. package/lib/services/functions.d.ts.map +1 -0
  96. package/lib/services/functions.js +256 -0
  97. package/lib/services/functions.js.map +1 -0
  98. package/lib/services/index.d.ts +35 -0
  99. package/lib/services/index.d.ts.map +1 -0
  100. package/lib/services/index.js +36 -0
  101. package/lib/services/index.js.map +1 -0
  102. package/lib/services/lists.d.ts +300 -0
  103. package/lib/services/lists.d.ts.map +1 -0
  104. package/lib/services/lists.js +366 -0
  105. package/lib/services/lists.js.map +1 -0
  106. package/lib/services/migration.d.ts +34 -0
  107. package/lib/services/migration.d.ts.map +1 -0
  108. package/lib/services/migration.js +36 -0
  109. package/lib/services/migration.js.map +1 -0
  110. package/lib/services/oauth.d.ts +307 -0
  111. package/lib/services/oauth.d.ts.map +1 -0
  112. package/lib/services/oauth.js +278 -0
  113. package/lib/services/oauth.js.map +1 -0
  114. package/lib/services/openid.d.ts +86 -0
  115. package/lib/services/openid.d.ts.map +1 -0
  116. package/lib/services/openid.js +93 -0
  117. package/lib/services/openid.js.map +1 -0
  118. package/lib/services/pins.d.ts +64 -0
  119. package/lib/services/pins.d.ts.map +1 -0
  120. package/lib/services/pins.js +75 -0
  121. package/lib/services/pins.js.map +1 -0
  122. package/lib/services/reactions.d.ts +108 -0
  123. package/lib/services/reactions.d.ts.map +1 -0
  124. package/lib/services/reactions.js +119 -0
  125. package/lib/services/reactions.js.map +1 -0
  126. package/lib/services/reminders.d.ts +89 -0
  127. package/lib/services/reminders.d.ts.map +1 -0
  128. package/lib/services/reminders.js +109 -0
  129. package/lib/services/reminders.js.map +1 -0
  130. package/lib/services/rtm.d.ts +68 -0
  131. package/lib/services/rtm.d.ts.map +1 -0
  132. package/lib/services/rtm.js +74 -0
  133. package/lib/services/rtm.js.map +1 -0
  134. package/lib/services/search.d.ts +239 -0
  135. package/lib/services/search.d.ts.map +1 -0
  136. package/lib/services/search.js +190 -0
  137. package/lib/services/search.js.map +1 -0
  138. package/lib/services/stars.d.ts +126 -0
  139. package/lib/services/stars.d.ts.map +1 -0
  140. package/lib/services/stars.js +145 -0
  141. package/lib/services/stars.js.map +1 -0
  142. package/lib/services/team.d.ts +309 -0
  143. package/lib/services/team.d.ts.map +1 -0
  144. package/lib/services/team.js +333 -0
  145. package/lib/services/team.js.map +1 -0
  146. package/lib/services/tooling.d.ts +31 -0
  147. package/lib/services/tooling.d.ts.map +1 -0
  148. package/lib/services/tooling.js +38 -0
  149. package/lib/services/tooling.js.map +1 -0
  150. package/lib/services/usergroups.d.ts +183 -0
  151. package/lib/services/usergroups.d.ts.map +1 -0
  152. package/lib/services/usergroups.js +180 -0
  153. package/lib/services/usergroups.js.map +1 -0
  154. package/lib/services/users.d.ts +246 -0
  155. package/lib/services/users.d.ts.map +1 -0
  156. package/lib/services/users.js +309 -0
  157. package/lib/services/users.js.map +1 -0
  158. package/lib/services/views.d.ts +84 -0
  159. package/lib/services/views.d.ts.map +1 -0
  160. package/lib/services/views.js +95 -0
  161. package/lib/services/views.js.map +1 -0
  162. package/lib/services/workflows.d.ts +231 -0
  163. package/lib/services/workflows.d.ts.map +1 -0
  164. package/lib/services/workflows.js +238 -0
  165. package/lib/services/workflows.js.map +1 -0
  166. package/lib/traits.d.ts +11 -0
  167. package/lib/traits.d.ts.map +1 -0
  168. package/lib/traits.js +12 -0
  169. package/lib/traits.js.map +1 -0
  170. package/package.json +82 -4
  171. package/src/credentials.ts +86 -0
  172. package/src/errors.ts +101 -0
  173. package/src/index.ts +20 -0
  174. package/src/pagination.ts +35 -0
  175. package/src/protocol.ts +326 -0
  176. package/src/retry.ts +76 -0
  177. package/src/services/admin.ts +7722 -0
  178. package/src/services/api.ts +58 -0
  179. package/src/services/apps.ts +1441 -0
  180. package/src/services/assistant.ts +639 -0
  181. package/src/services/auth.ts +241 -0
  182. package/src/services/blocks.ts +80 -0
  183. package/src/services/bookmarks.ts +223 -0
  184. package/src/services/bots.ts +144 -0
  185. package/src/services/calls.ts +318 -0
  186. package/src/services/canvases.ts +392 -0
  187. package/src/services/chat.ts +1191 -0
  188. package/src/services/conversations.ts +1754 -0
  189. package/src/services/dialog.ts +55 -0
  190. package/src/services/dnd.ts +246 -0
  191. package/src/services/emoji.ts +91 -0
  192. package/src/services/entity.ts +225 -0
  193. package/src/services/files.ts +1192 -0
  194. package/src/services/functions.ts +642 -0
  195. package/src/services/index.ts +35 -0
  196. package/src/services/lists.ts +832 -0
  197. package/src/services/migration.ts +85 -0
  198. package/src/services/oauth.ts +658 -0
  199. package/src/services/openid.ts +243 -0
  200. package/src/services/pins.ts +167 -0
  201. package/src/services/reactions.ts +272 -0
  202. package/src/services/reminders.ts +240 -0
  203. package/src/services/rtm.ts +162 -0
  204. package/src/services/search.ts +507 -0
  205. package/src/services/stars.ts +323 -0
  206. package/src/services/team.ts +834 -0
  207. package/src/services/tooling.ts +78 -0
  208. package/src/services/usergroups.ts +441 -0
  209. package/src/services/users.ts +685 -0
  210. package/src/services/views.ts +212 -0
  211. package/src/services/workflows.ts +605 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,318 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ SlackProtocol,
7
+ type SlackOpError,
8
+ type SlackOpContext,
9
+ } from "../protocol.ts";
10
+ import { SlackError, SlackRateLimited } from "../errors.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { SlackOpError, SlackOpContext };
14
+
15
+ /** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
16
+ export type AddCallRequestUsersList = Array<unknown>;
17
+ export const AddCallRequestUsersList = /*@__PURE__*/ S.Array(
18
+ S.Unknown,
19
+ ) as any as S.Schema<AddCallRequestUsersList>;
20
+
21
+ export interface AddCallRequest {
22
+ /** An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service. */
23
+ external_unique_id: string;
24
+ /** An optional, human-readable ID supplied by the 3rd-party Call provider. If supplied, this ID will be displayed in the Call object. */
25
+ external_display_id?: string;
26
+ /** The URL required for a client to join the Call. */
27
+ join_url: string;
28
+ /** When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. */
29
+ desktop_app_join_url?: string;
30
+ /** Unix timestamp of the call start time */
31
+ date_start?: number;
32
+ /** The name of the Call. */
33
+ title?: string;
34
+ /** The valid Slack user ID of the user who created this Call. When this method is called with a user token, the `created_by` field is optional and defaults to the authed user of the token. Otherwise, the field is required. */
35
+ created_by?: string;
36
+ /** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
37
+ users?: AddCallRequestUsersList;
38
+ }
39
+ export const AddCallRequest = /*@__PURE__*/ S.suspend(() =>
40
+ S.Struct({
41
+ external_unique_id: S.String,
42
+ external_display_id: S.optional(S.String),
43
+ join_url: S.String,
44
+ desktop_app_join_url: S.optional(S.String),
45
+ date_start: S.optional(S.Number),
46
+ title: S.optional(S.String),
47
+ created_by: S.optional(S.String),
48
+ users: S.optional(AddCallRequestUsersList),
49
+ }).pipe(T.Http({ method: "POST", uri: "/calls.add", code: 200 })),
50
+ ).annotate({ identifier: "AddCallRequest" }) as any as S.Schema<AddCallRequest>;
51
+
52
+ export interface AddCallResponse {
53
+ /** Always `true` (a failed call raises a typed error instead). */
54
+ ok: boolean;
55
+ call: unknown;
56
+ }
57
+ export const AddCallResponse = /*@__PURE__*/ S.suspend(() =>
58
+ S.Struct({
59
+ ok: S.Boolean,
60
+ call: S.Unknown,
61
+ }),
62
+ ).annotate({
63
+ identifier: "AddCallResponse",
64
+ }) as any as S.Schema<AddCallResponse>;
65
+
66
+ /** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
67
+ export type AddParticipantRequestUsersList = Array<unknown>;
68
+ export const AddParticipantRequestUsersList = /*@__PURE__*/ S.Array(
69
+ S.Unknown,
70
+ ) as any as S.Schema<AddParticipantRequestUsersList>;
71
+
72
+ export interface AddParticipantRequest {
73
+ /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
74
+ id: string;
75
+ /** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
76
+ users: AddParticipantRequestUsersList;
77
+ }
78
+ export const AddParticipantRequest = /*@__PURE__*/ S.suspend(() =>
79
+ S.Struct({
80
+ id: S.String,
81
+ users: AddParticipantRequestUsersList,
82
+ }).pipe(
83
+ T.Http({ method: "POST", uri: "/calls.participants.add", code: 200 }),
84
+ ),
85
+ ).annotate({
86
+ identifier: "AddParticipantRequest",
87
+ }) as any as S.Schema<AddParticipantRequest>;
88
+
89
+ export interface AddParticipantResponse {
90
+ /** Always `true` (a failed call raises a typed error instead). */
91
+ ok: boolean;
92
+ call: unknown;
93
+ }
94
+ export const AddParticipantResponse = /*@__PURE__*/ S.suspend(() =>
95
+ S.Struct({
96
+ ok: S.Boolean,
97
+ call: S.Unknown,
98
+ }),
99
+ ).annotate({
100
+ identifier: "AddParticipantResponse",
101
+ }) as any as S.Schema<AddParticipantResponse>;
102
+
103
+ export interface CallsEndRequest {
104
+ /** `id` returned when registering the call using the [`calls.add`](/reference/methods/calls.add) method. */
105
+ id: string;
106
+ /** Call duration in seconds */
107
+ duration?: number;
108
+ }
109
+ export const CallsEndRequest = /*@__PURE__*/ S.suspend(() =>
110
+ S.Struct({
111
+ id: S.String,
112
+ duration: S.optional(S.Number),
113
+ }).pipe(T.Http({ method: "POST", uri: "/calls.end", code: 200 })),
114
+ ).annotate({
115
+ identifier: "CallsEndRequest",
116
+ }) as any as S.Schema<CallsEndRequest>;
117
+
118
+ export interface CallsEndResponse {
119
+ /** Always `true` (a failed call raises a typed error instead). */
120
+ ok: boolean;
121
+ call: unknown;
122
+ }
123
+ export const CallsEndResponse = /*@__PURE__*/ S.suspend(() =>
124
+ S.Struct({
125
+ ok: S.Boolean,
126
+ call: S.Unknown,
127
+ }),
128
+ ).annotate({
129
+ identifier: "CallsEndResponse",
130
+ }) as any as S.Schema<CallsEndResponse>;
131
+
132
+ export interface CallsInfoRequest {
133
+ /** `id` of the Call returned by the [`calls.add`](/reference/methods/calls.add) method. */
134
+ id: string;
135
+ }
136
+ export const CallsInfoRequest = /*@__PURE__*/ S.suspend(() =>
137
+ S.Struct({
138
+ id: S.String,
139
+ }).pipe(T.Http({ method: "POST", uri: "/calls.info", code: 200 })),
140
+ ).annotate({
141
+ identifier: "CallsInfoRequest",
142
+ }) as any as S.Schema<CallsInfoRequest>;
143
+
144
+ export interface CallsInfoResponse {
145
+ /** Always `true` (a failed call raises a typed error instead). */
146
+ ok: boolean;
147
+ call: unknown;
148
+ }
149
+ export const CallsInfoResponse = /*@__PURE__*/ S.suspend(() =>
150
+ S.Struct({
151
+ ok: S.Boolean,
152
+ call: S.Unknown,
153
+ }),
154
+ ).annotate({
155
+ identifier: "CallsInfoResponse",
156
+ }) as any as S.Schema<CallsInfoResponse>;
157
+
158
+ /** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
159
+ export type RemoveParticipantRequestUsersList = Array<unknown>;
160
+ export const RemoveParticipantRequestUsersList = /*@__PURE__*/ S.Array(
161
+ S.Unknown,
162
+ ) as any as S.Schema<RemoveParticipantRequestUsersList>;
163
+
164
+ export interface RemoveParticipantRequest {
165
+ /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
166
+ id: string;
167
+ /** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
168
+ users: RemoveParticipantRequestUsersList;
169
+ }
170
+ export const RemoveParticipantRequest = /*@__PURE__*/ S.suspend(() =>
171
+ S.Struct({
172
+ id: S.String,
173
+ users: RemoveParticipantRequestUsersList,
174
+ }).pipe(
175
+ T.Http({ method: "POST", uri: "/calls.participants.remove", code: 200 }),
176
+ ),
177
+ ).annotate({
178
+ identifier: "RemoveParticipantRequest",
179
+ }) as any as S.Schema<RemoveParticipantRequest>;
180
+
181
+ export interface RemoveParticipantResponse {
182
+ /** Always `true` (a failed call raises a typed error instead). */
183
+ ok: boolean;
184
+ call: unknown;
185
+ }
186
+ export const RemoveParticipantResponse = /*@__PURE__*/ S.suspend(() =>
187
+ S.Struct({
188
+ ok: S.Boolean,
189
+ call: S.Unknown,
190
+ }),
191
+ ).annotate({
192
+ identifier: "RemoveParticipantResponse",
193
+ }) as any as S.Schema<RemoveParticipantResponse>;
194
+
195
+ export interface UpdateCallRequest {
196
+ /** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
197
+ id: string;
198
+ /** The name of the Call. */
199
+ title?: string;
200
+ /** The URL required for a client to join the Call. */
201
+ join_url?: string;
202
+ /** When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. */
203
+ desktop_app_join_url?: string;
204
+ }
205
+ export const UpdateCallRequest = /*@__PURE__*/ S.suspend(() =>
206
+ S.Struct({
207
+ id: S.String,
208
+ title: S.optional(S.String),
209
+ join_url: S.optional(S.String),
210
+ desktop_app_join_url: S.optional(S.String),
211
+ }).pipe(T.Http({ method: "POST", uri: "/calls.update", code: 200 })),
212
+ ).annotate({
213
+ identifier: "UpdateCallRequest",
214
+ }) as any as S.Schema<UpdateCallRequest>;
215
+
216
+ export interface UpdateCallResponse {
217
+ /** Always `true` (a failed call raises a typed error instead). */
218
+ ok: boolean;
219
+ call: unknown;
220
+ }
221
+ export const UpdateCallResponse = /*@__PURE__*/ S.suspend(() =>
222
+ S.Struct({
223
+ ok: S.Boolean,
224
+ call: S.Unknown,
225
+ }),
226
+ ).annotate({
227
+ identifier: "UpdateCallResponse",
228
+ }) as any as S.Schema<UpdateCallResponse>;
229
+
230
+ export type AddCallError = SlackOpError;
231
+ /** Registers a new Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error has occurred while trying to register the Call. - `invalid_created_by` — The `created_by` user ID is invalid. - `invalid_start_time` — The start time is invalid. - `not_authorized` — The specified user is not authorized to create a Call in this channel. - `not_implemented` — This method is not available. - `user_not_found` — A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
232
+ export const addCall: API.OperationMethod<
233
+ AddCallRequest,
234
+ AddCallResponse,
235
+ AddCallError,
236
+ SlackOpContext
237
+ > = /*@__PURE__*/ API.make(() => ({
238
+ input: AddCallRequest,
239
+ output: AddCallResponse,
240
+ errors: [SlackError, SlackRateLimited],
241
+ protocol: SlackProtocol,
242
+ retry: Retry.Retry,
243
+ }));
244
+
245
+ export type AddParticipantError = SlackOpError;
246
+ /** Registers new participants added to a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is already part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while adding a Call participant. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
247
+ export const addParticipant: API.OperationMethod<
248
+ AddParticipantRequest,
249
+ AddParticipantResponse,
250
+ AddParticipantError,
251
+ SlackOpContext
252
+ > = /*@__PURE__*/ API.make(() => ({
253
+ input: AddParticipantRequest,
254
+ output: AddParticipantResponse,
255
+ errors: [SlackError, SlackRateLimited],
256
+ protocol: SlackProtocol,
257
+ retry: Retry.Retry,
258
+ }));
259
+
260
+ export type CallsEndError = SlackOpError;
261
+ /** Ends a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` — The Call has been already stopped. - `internal_error` — An unexpected error has occurred while ending the Call. - `invalid_call_id` — Invalid Call ID. - `not_implemented` — This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
262
+ export const callsEnd: API.OperationMethod<
263
+ CallsEndRequest,
264
+ CallsEndResponse,
265
+ CallsEndError,
266
+ SlackOpContext
267
+ > = /*@__PURE__*/ API.make(() => ({
268
+ input: CallsEndRequest,
269
+ output: CallsEndResponse,
270
+ errors: [SlackError, SlackRateLimited],
271
+ protocol: SlackProtocol,
272
+ retry: Retry.Retry,
273
+ }));
274
+
275
+ export type CallsInfoError = SlackOpError;
276
+ /** Returns information about a Call. Required scopes — bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred while finding information about this Call. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
277
+ export const callsInfo: API.OperationMethod<
278
+ CallsInfoRequest,
279
+ CallsInfoResponse,
280
+ CallsInfoError,
281
+ SlackOpContext
282
+ > = /*@__PURE__*/ API.make(() => ({
283
+ input: CallsInfoRequest,
284
+ output: CallsInfoResponse,
285
+ errors: [SlackError, SlackRateLimited],
286
+ protocol: SlackProtocol,
287
+ retry: Retry.Retry,
288
+ }));
289
+
290
+ export type RemoveParticipantError = SlackOpError;
291
+ /** Registers participants removed from a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is not part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
292
+ export const removeParticipant: API.OperationMethod<
293
+ RemoveParticipantRequest,
294
+ RemoveParticipantResponse,
295
+ RemoveParticipantError,
296
+ SlackOpContext
297
+ > = /*@__PURE__*/ API.make(() => ({
298
+ input: RemoveParticipantRequest,
299
+ output: RemoveParticipantResponse,
300
+ errors: [SlackError, SlackRateLimited],
301
+ protocol: SlackProtocol,
302
+ retry: Retry.Retry,
303
+ }));
304
+
305
+ export type UpdateCallError = SlackOpError;
306
+ /** Updates information about a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected exception occurred while updating the Call info. - `invalid_call_id` — The Call's `id` was invalid. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
307
+ export const updateCall: API.OperationMethod<
308
+ UpdateCallRequest,
309
+ UpdateCallResponse,
310
+ UpdateCallError,
311
+ SlackOpContext
312
+ > = /*@__PURE__*/ API.make(() => ({
313
+ input: UpdateCallRequest,
314
+ output: UpdateCallResponse,
315
+ errors: [SlackError, SlackRateLimited],
316
+ protocol: SlackProtocol,
317
+ retry: Retry.Retry,
318
+ }));