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

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 +3225 -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 +261 -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 +336 -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 +240 -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 +7729 -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 +647 -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 +836 -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 +607 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,832 @@
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 { slackPaginate } from "../pagination.ts";
11
+ import { SlackError, SlackRateLimited } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { SlackOpError, SlackOpContext };
15
+
16
+ /** Initial item data. */
17
+ export type CreateItemRequestInitialFieldsList = Array<unknown>;
18
+ export const CreateItemRequestInitialFieldsList = /*@__PURE__*/ S.Array(
19
+ S.Unknown,
20
+ ) as any as S.Schema<CreateItemRequestInitialFieldsList>;
21
+
22
+ export interface CreateItemRequest {
23
+ /** ID of the List to add the item to. */
24
+ list_id: string;
25
+ /** ID of the record to make a copy of. */
26
+ duplicated_item_id?: string;
27
+ /** ID of the parent record for this subtask. */
28
+ parent_item_id?: string;
29
+ /** Initial item data. */
30
+ initial_fields?: CreateItemRequestInitialFieldsList;
31
+ }
32
+ export const CreateItemRequest = /*@__PURE__*/ S.suspend(() =>
33
+ S.Struct({
34
+ list_id: S.String,
35
+ duplicated_item_id: S.optional(S.String),
36
+ parent_item_id: S.optional(S.String),
37
+ initial_fields: S.optional(CreateItemRequestInitialFieldsList),
38
+ }).pipe(
39
+ T.Http({
40
+ method: "POST",
41
+ uri: "/slackLists.items.create",
42
+ code: 200,
43
+ contentType: "form-urlencoded",
44
+ }),
45
+ ),
46
+ ).annotate({
47
+ identifier: "CreateItemRequest",
48
+ }) as any as S.Schema<CreateItemRequest>;
49
+
50
+ export interface CreateItemResponse {
51
+ /** Always `true` (a failed call raises a typed error instead). */
52
+ ok: boolean;
53
+ item: unknown;
54
+ }
55
+ export const CreateItemResponse = /*@__PURE__*/ S.suspend(() =>
56
+ S.Struct({
57
+ ok: S.Boolean,
58
+ item: S.Unknown,
59
+ }),
60
+ ).annotate({
61
+ identifier: "CreateItemResponse",
62
+ }) as any as S.Schema<CreateItemResponse>;
63
+
64
+ /** A rich text description of the List. */
65
+ export type CreateSlackListRequestDescriptionBlocksList = Array<unknown>;
66
+ export const CreateSlackListRequestDescriptionBlocksList =
67
+ /*@__PURE__*/ S.Array(
68
+ S.Unknown,
69
+ ) as any as S.Schema<CreateSlackListRequestDescriptionBlocksList>;
70
+
71
+ /** Column definition for the List. */
72
+ export type CreateSlackListRequestSchemaList = Array<unknown>;
73
+ export const CreateSlackListRequestSchemaList = /*@__PURE__*/ S.Array(
74
+ S.Unknown,
75
+ ) as any as S.Schema<CreateSlackListRequestSchemaList>;
76
+
77
+ export interface CreateSlackListRequest {
78
+ /** Name of the List. */
79
+ name: string;
80
+ /** A rich text description of the List. */
81
+ description_blocks?: CreateSlackListRequestDescriptionBlocksList;
82
+ /** Column definition for the List. */
83
+ schema?: CreateSlackListRequestSchemaList;
84
+ /** ID of the List to copy. */
85
+ copy_from_list_id?: string;
86
+ /** Boolean indicating whether to include records when a List is copied. */
87
+ include_copied_list_records?: boolean;
88
+ /** Boolean indicating whether the List should be used to track todo tasks. */
89
+ todo_mode?: boolean;
90
+ }
91
+ export const CreateSlackListRequest = /*@__PURE__*/ S.suspend(() =>
92
+ S.Struct({
93
+ name: S.String,
94
+ description_blocks: S.optional(CreateSlackListRequestDescriptionBlocksList),
95
+ schema: S.optional(CreateSlackListRequestSchemaList),
96
+ copy_from_list_id: S.optional(S.String),
97
+ include_copied_list_records: S.optional(S.Boolean),
98
+ todo_mode: S.optional(S.Boolean),
99
+ }).pipe(
100
+ T.Http({
101
+ method: "POST",
102
+ uri: "/slackLists.create",
103
+ code: 200,
104
+ contentType: "form-urlencoded",
105
+ }),
106
+ ),
107
+ ).annotate({
108
+ identifier: "CreateSlackListRequest",
109
+ }) as any as S.Schema<CreateSlackListRequest>;
110
+
111
+ export interface CreateSlackListResponse {
112
+ /** Always `true` (a failed call raises a typed error instead). */
113
+ ok: boolean;
114
+ /** The ID of the List created. */
115
+ list_id: string;
116
+ /** The metadata of the List created. */
117
+ list_metadata?: unknown;
118
+ }
119
+ export const CreateSlackListResponse = /*@__PURE__*/ S.suspend(() =>
120
+ S.Struct({
121
+ ok: S.Boolean,
122
+ list_id: S.String,
123
+ list_metadata: S.optional(S.Unknown),
124
+ }),
125
+ ).annotate({
126
+ identifier: "CreateSlackListResponse",
127
+ }) as any as S.Schema<CreateSlackListResponse>;
128
+
129
+ /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
130
+ export type DeleteAccessRequestChannelIdsList = Array<string>;
131
+ export const DeleteAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(
132
+ S.String,
133
+ ) as any as S.Schema<DeleteAccessRequestChannelIdsList>;
134
+
135
+ /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
136
+ export type DeleteAccessRequestUserIdsList = Array<string>;
137
+ export const DeleteAccessRequestUserIdsList = /*@__PURE__*/ S.Array(
138
+ S.String,
139
+ ) as any as S.Schema<DeleteAccessRequestUserIdsList>;
140
+
141
+ export interface DeleteAccessRequest {
142
+ /** Encoded ID of the List. */
143
+ list_id: string;
144
+ /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
145
+ channel_ids?: DeleteAccessRequestChannelIdsList;
146
+ /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
147
+ user_ids?: DeleteAccessRequestUserIdsList;
148
+ }
149
+ export const DeleteAccessRequest = /*@__PURE__*/ S.suspend(() =>
150
+ S.Struct({
151
+ list_id: S.String,
152
+ channel_ids: S.optional(DeleteAccessRequestChannelIdsList),
153
+ user_ids: S.optional(DeleteAccessRequestUserIdsList),
154
+ }).pipe(
155
+ T.Http({
156
+ method: "POST",
157
+ uri: "/slackLists.access.delete",
158
+ code: 200,
159
+ contentType: "form-urlencoded",
160
+ }),
161
+ ),
162
+ ).annotate({
163
+ identifier: "DeleteAccessRequest",
164
+ }) as any as S.Schema<DeleteAccessRequest>;
165
+
166
+ /** The channel IDs that could not be updated. */
167
+ export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
168
+ export const DeleteAccessResponseFailedToUpdateChannelIdsList =
169
+ /*@__PURE__*/ S.Array(
170
+ S.String,
171
+ ) as any as S.Schema<DeleteAccessResponseFailedToUpdateChannelIdsList>;
172
+
173
+ /** The user IDs that could not be updated. */
174
+ export type DeleteAccessResponseFailedToUpdateUserIdsList = Array<string>;
175
+ export const DeleteAccessResponseFailedToUpdateUserIdsList =
176
+ /*@__PURE__*/ S.Array(
177
+ S.String,
178
+ ) as any as S.Schema<DeleteAccessResponseFailedToUpdateUserIdsList>;
179
+
180
+ export interface DeleteAccessResponse {
181
+ /** Always `true` (a failed call raises a typed error instead). */
182
+ ok: boolean;
183
+ /** The channel IDs that could not be updated. */
184
+ failed_to_update_channel_ids?: DeleteAccessResponseFailedToUpdateChannelIdsList;
185
+ /** The user IDs that could not be updated. */
186
+ failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
187
+ }
188
+ export const DeleteAccessResponse = /*@__PURE__*/ S.suspend(() =>
189
+ S.Struct({
190
+ ok: S.Boolean,
191
+ failed_to_update_channel_ids: S.optional(
192
+ DeleteAccessResponseFailedToUpdateChannelIdsList,
193
+ ),
194
+ failed_to_update_user_ids: S.optional(
195
+ DeleteAccessResponseFailedToUpdateUserIdsList,
196
+ ),
197
+ }),
198
+ ).annotate({
199
+ identifier: "DeleteAccessResponse",
200
+ }) as any as S.Schema<DeleteAccessResponse>;
201
+
202
+ export interface DeleteItemRequest {
203
+ /** ID of the List containing the item. */
204
+ list_id: string;
205
+ /** ID of item to delete. */
206
+ id: string;
207
+ }
208
+ export const DeleteItemRequest = /*@__PURE__*/ S.suspend(() =>
209
+ S.Struct({
210
+ list_id: S.String,
211
+ id: S.String,
212
+ }).pipe(
213
+ T.Http({
214
+ method: "POST",
215
+ uri: "/slackLists.items.delete",
216
+ code: 200,
217
+ contentType: "form-urlencoded",
218
+ }),
219
+ ),
220
+ ).annotate({
221
+ identifier: "DeleteItemRequest",
222
+ }) as any as S.Schema<DeleteItemRequest>;
223
+
224
+ export interface DeleteItemResponse {
225
+ ok: boolean;
226
+ }
227
+ export const DeleteItemResponse = /*@__PURE__*/ S.suspend(() =>
228
+ S.Struct({
229
+ ok: S.Boolean,
230
+ }),
231
+ ).annotate({
232
+ identifier: "DeleteItemResponse",
233
+ }) as any as S.Schema<DeleteItemResponse>;
234
+
235
+ /** IDs of items to delete. */
236
+ export type DeleteMultipleRequestIdsList = Array<string>;
237
+ export const DeleteMultipleRequestIdsList = /*@__PURE__*/ S.Array(
238
+ S.String,
239
+ ) as any as S.Schema<DeleteMultipleRequestIdsList>;
240
+
241
+ export interface DeleteMultipleRequest {
242
+ /** ID of the List containing the items. */
243
+ list_id: string;
244
+ /** IDs of items to delete. */
245
+ ids: DeleteMultipleRequestIdsList;
246
+ }
247
+ export const DeleteMultipleRequest = /*@__PURE__*/ S.suspend(() =>
248
+ S.Struct({
249
+ list_id: S.String,
250
+ ids: DeleteMultipleRequestIdsList,
251
+ }).pipe(
252
+ T.Http({
253
+ method: "POST",
254
+ uri: "/slackLists.items.deleteMultiple",
255
+ code: 200,
256
+ contentType: "form-urlencoded",
257
+ }),
258
+ ),
259
+ ).annotate({
260
+ identifier: "DeleteMultipleRequest",
261
+ }) as any as S.Schema<DeleteMultipleRequest>;
262
+
263
+ export interface DeleteMultipleResponse {
264
+ ok: boolean;
265
+ }
266
+ export const DeleteMultipleResponse = /*@__PURE__*/ S.suspend(() =>
267
+ S.Struct({
268
+ ok: S.Boolean,
269
+ }),
270
+ ).annotate({
271
+ identifier: "DeleteMultipleResponse",
272
+ }) as any as S.Schema<DeleteMultipleResponse>;
273
+
274
+ export interface DownloadGetRequest {
275
+ /** ID of the List to export. */
276
+ list_id: string;
277
+ /** The ID of the recently started job to export the List. */
278
+ job_id: string;
279
+ /** Format the export was started with. Must match the `format` passed to `slackLists.download.start`. Defaults to `csv`. */
280
+ format?: string;
281
+ /** Must match the `include_threads` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export matches what was generated. Only applies when `format` is `json`. */
282
+ include_threads?: boolean;
283
+ /** Must match the `include_attachments` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export matches what was generated. Only applies when `format` is `json`. */
284
+ include_attachments?: boolean;
285
+ }
286
+ export const DownloadGetRequest = /*@__PURE__*/ S.suspend(() =>
287
+ S.Struct({
288
+ list_id: S.String,
289
+ job_id: S.String,
290
+ format: S.optional(S.String),
291
+ include_threads: S.optional(S.Boolean),
292
+ include_attachments: S.optional(S.Boolean),
293
+ }).pipe(
294
+ T.Http({
295
+ method: "POST",
296
+ uri: "/slackLists.download.get",
297
+ code: 200,
298
+ contentType: "form-urlencoded",
299
+ }),
300
+ ),
301
+ ).annotate({
302
+ identifier: "DownloadGetRequest",
303
+ }) as any as S.Schema<DownloadGetRequest>;
304
+
305
+ export interface DownloadGetResponse {
306
+ /** Always `true` (a failed call raises a typed error instead). */
307
+ ok: boolean;
308
+ /** Current status of the export job. */
309
+ status: unknown;
310
+ /** The URL at which to download the CSV. */
311
+ download_url?: string;
312
+ }
313
+ export const DownloadGetResponse = /*@__PURE__*/ S.suspend(() =>
314
+ S.Struct({
315
+ ok: S.Boolean,
316
+ status: S.Unknown,
317
+ download_url: S.optional(S.String),
318
+ }),
319
+ ).annotate({
320
+ identifier: "DownloadGetResponse",
321
+ }) as any as S.Schema<DownloadGetResponse>;
322
+
323
+ export interface DownloadStartRequest {
324
+ /** ID of the List to export. */
325
+ list_id: string;
326
+ include_archived?: boolean;
327
+ /** Format of the export. Defaults to `csv` for backward compatibility. Use `json` for a complete, hierarchical export. */
328
+ format?: string;
329
+ /** Include each item's conversation thread in the export. Only applies when `format` is `json`. */
330
+ include_threads?: boolean;
331
+ /** Include file attachment metadata and access paths in the export. Only applies when `format` is `json`. */
332
+ include_attachments?: boolean;
333
+ }
334
+ export const DownloadStartRequest = /*@__PURE__*/ S.suspend(() =>
335
+ S.Struct({
336
+ list_id: S.String,
337
+ include_archived: S.optional(S.Boolean),
338
+ format: S.optional(S.String),
339
+ include_threads: S.optional(S.Boolean),
340
+ include_attachments: S.optional(S.Boolean),
341
+ }).pipe(
342
+ T.Http({
343
+ method: "POST",
344
+ uri: "/slackLists.download.start",
345
+ code: 200,
346
+ contentType: "form-urlencoded",
347
+ }),
348
+ ),
349
+ ).annotate({
350
+ identifier: "DownloadStartRequest",
351
+ }) as any as S.Schema<DownloadStartRequest>;
352
+
353
+ export interface DownloadStartResponse {
354
+ /** Always `true` (a failed call raises a typed error instead). */
355
+ ok: boolean;
356
+ /** The ID of the recently started job to export the List. */
357
+ job_id: number;
358
+ }
359
+ export const DownloadStartResponse = /*@__PURE__*/ S.suspend(() =>
360
+ S.Struct({
361
+ ok: S.Boolean,
362
+ job_id: S.Number,
363
+ }),
364
+ ).annotate({
365
+ identifier: "DownloadStartResponse",
366
+ }) as any as S.Schema<DownloadStartResponse>;
367
+
368
+ export interface ItemsInfoRequest {
369
+ /** ID of the List. */
370
+ list_id: string;
371
+ /** ID of the row to get. */
372
+ id: string;
373
+ /** Set to `true` to include `is_subscribed` data for the returned List row. */
374
+ include_is_subscribed?: boolean;
375
+ }
376
+ export const ItemsInfoRequest = /*@__PURE__*/ S.suspend(() =>
377
+ S.Struct({
378
+ list_id: S.String,
379
+ id: S.String,
380
+ include_is_subscribed: S.optional(S.Boolean),
381
+ }).pipe(
382
+ T.Http({
383
+ method: "POST",
384
+ uri: "/slackLists.items.info",
385
+ code: 200,
386
+ contentType: "form-urlencoded",
387
+ }),
388
+ ),
389
+ ).annotate({
390
+ identifier: "ItemsInfoRequest",
391
+ }) as any as S.Schema<ItemsInfoRequest>;
392
+
393
+ export type ItemsInfoResponseSubtasksList = Array<unknown>;
394
+ export const ItemsInfoResponseSubtasksList = /*@__PURE__*/ S.Array(
395
+ S.Unknown,
396
+ ) as any as S.Schema<ItemsInfoResponseSubtasksList>;
397
+
398
+ export interface ItemsInfoResponse {
399
+ /** Always `true` (a failed call raises a typed error instead). */
400
+ ok: boolean;
401
+ list: unknown;
402
+ record: unknown;
403
+ parent_task?: unknown;
404
+ subtasks?: ItemsInfoResponseSubtasksList;
405
+ }
406
+ export const ItemsInfoResponse = /*@__PURE__*/ S.suspend(() =>
407
+ S.Struct({
408
+ ok: S.Boolean,
409
+ list: S.Unknown,
410
+ record: S.Unknown,
411
+ parent_task: S.optional(S.Unknown),
412
+ subtasks: S.optional(ItemsInfoResponseSubtasksList),
413
+ }),
414
+ ).annotate({
415
+ identifier: "ItemsInfoResponse",
416
+ }) as any as S.Schema<ItemsInfoResponse>;
417
+
418
+ export interface ListItemsRequest {
419
+ /** ID of the List. */
420
+ list_id: string;
421
+ /** The maximum number of records to return. */
422
+ limit?: number;
423
+ /** Next cursor for pagination. */
424
+ cursor?: string;
425
+ /** Boolean indicating whether archived items or normal items should be returned. */
426
+ archived?: boolean;
427
+ }
428
+ export const ListItemsRequest = /*@__PURE__*/ S.suspend(() =>
429
+ S.Struct({
430
+ list_id: S.String,
431
+ limit: S.optional(S.Number),
432
+ cursor: S.optional(S.String),
433
+ archived: S.optional(S.Boolean),
434
+ }).pipe(
435
+ T.Http({
436
+ method: "POST",
437
+ uri: "/slackLists.items.list",
438
+ code: 200,
439
+ contentType: "form-urlencoded",
440
+ }),
441
+ ),
442
+ ).annotate({
443
+ identifier: "ListItemsRequest",
444
+ }) as any as S.Schema<ListItemsRequest>;
445
+
446
+ export type ListItemsResponseItemsList = Array<unknown>;
447
+ export const ListItemsResponseItemsList = /*@__PURE__*/ S.Array(
448
+ S.Unknown,
449
+ ) as any as S.Schema<ListItemsResponseItemsList>;
450
+
451
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
452
+ export interface ListItemsResponseResponseMetadata {
453
+ /** Cursor for the next page — pass as `cursor` on the next call. */
454
+ next_cursor?: string;
455
+ }
456
+ export const ListItemsResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
457
+ S.Struct({
458
+ next_cursor: S.optional(S.String),
459
+ }),
460
+ ).annotate({
461
+ identifier: "ListItemsResponseResponseMetadata",
462
+ }) as any as S.Schema<ListItemsResponseResponseMetadata>;
463
+
464
+ export interface ListItemsResponse {
465
+ /** Always `true` (a failed call raises a typed error instead). */
466
+ ok: boolean;
467
+ items: ListItemsResponseItemsList;
468
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
469
+ response_metadata?: ListItemsResponseResponseMetadata;
470
+ }
471
+ export const ListItemsResponse = /*@__PURE__*/ S.suspend(() =>
472
+ S.Struct({
473
+ ok: S.Boolean,
474
+ items: ListItemsResponseItemsList,
475
+ response_metadata: S.optional(ListItemsResponseResponseMetadata),
476
+ }),
477
+ ).annotate({
478
+ identifier: "ListItemsResponse",
479
+ }) as any as S.Schema<ListItemsResponse>;
480
+
481
+ /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
482
+ export type SetAccessRequestChannelIdsList = Array<string>;
483
+ export const SetAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(
484
+ S.String,
485
+ ) as any as S.Schema<SetAccessRequestChannelIdsList>;
486
+
487
+ /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
488
+ export type SetAccessRequestUserIdsList = Array<string>;
489
+ export const SetAccessRequestUserIdsList = /*@__PURE__*/ S.Array(
490
+ S.String,
491
+ ) as any as S.Schema<SetAccessRequestUserIdsList>;
492
+
493
+ export interface SetAccessRequest {
494
+ /** Encoded ID of the List. */
495
+ list_id: string;
496
+ /** Desired level of access. */
497
+ access_level: string;
498
+ /** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
499
+ channel_ids?: SetAccessRequestChannelIdsList;
500
+ /** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
501
+ user_ids?: SetAccessRequestUserIdsList;
502
+ }
503
+ export const SetAccessRequest = /*@__PURE__*/ S.suspend(() =>
504
+ S.Struct({
505
+ list_id: S.String,
506
+ access_level: S.String,
507
+ channel_ids: S.optional(SetAccessRequestChannelIdsList),
508
+ user_ids: S.optional(SetAccessRequestUserIdsList),
509
+ }).pipe(
510
+ T.Http({
511
+ method: "POST",
512
+ uri: "/slackLists.access.set",
513
+ code: 200,
514
+ contentType: "form-urlencoded",
515
+ }),
516
+ ),
517
+ ).annotate({
518
+ identifier: "SetAccessRequest",
519
+ }) as any as S.Schema<SetAccessRequest>;
520
+
521
+ /** The channel IDs that could not be updated. */
522
+ export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
523
+ export const SetAccessResponseFailedToUpdateChannelIdsList =
524
+ /*@__PURE__*/ S.Array(
525
+ S.String,
526
+ ) as any as S.Schema<SetAccessResponseFailedToUpdateChannelIdsList>;
527
+
528
+ /** The user IDs that could not be updated. */
529
+ export type SetAccessResponseFailedToUpdateUserIdsList = Array<string>;
530
+ export const SetAccessResponseFailedToUpdateUserIdsList = /*@__PURE__*/ S.Array(
531
+ S.String,
532
+ ) as any as S.Schema<SetAccessResponseFailedToUpdateUserIdsList>;
533
+
534
+ export interface SetAccessResponse {
535
+ /** Always `true` (a failed call raises a typed error instead). */
536
+ ok: boolean;
537
+ /** The channel IDs that could not be updated. */
538
+ failed_to_update_channel_ids?: SetAccessResponseFailedToUpdateChannelIdsList;
539
+ /** The user IDs that could not be updated. */
540
+ failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
541
+ }
542
+ export const SetAccessResponse = /*@__PURE__*/ S.suspend(() =>
543
+ S.Struct({
544
+ ok: S.Boolean,
545
+ failed_to_update_channel_ids: S.optional(
546
+ SetAccessResponseFailedToUpdateChannelIdsList,
547
+ ),
548
+ failed_to_update_user_ids: S.optional(
549
+ SetAccessResponseFailedToUpdateUserIdsList,
550
+ ),
551
+ }),
552
+ ).annotate({
553
+ identifier: "SetAccessResponse",
554
+ }) as any as S.Schema<SetAccessResponse>;
555
+
556
+ /** Cells to update. */
557
+ export type UpdateItemRequestCellsList = Array<unknown>;
558
+ export const UpdateItemRequestCellsList = /*@__PURE__*/ S.Array(
559
+ S.Unknown,
560
+ ) as any as S.Schema<UpdateItemRequestCellsList>;
561
+
562
+ export interface UpdateItemRequest {
563
+ /** ID of the List to add or update cells. */
564
+ list_id: string;
565
+ /** Cells to update. */
566
+ cells: UpdateItemRequestCellsList;
567
+ }
568
+ export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() =>
569
+ S.Struct({
570
+ list_id: S.String,
571
+ cells: UpdateItemRequestCellsList,
572
+ }).pipe(
573
+ T.Http({
574
+ method: "POST",
575
+ uri: "/slackLists.items.update",
576
+ code: 200,
577
+ contentType: "form-urlencoded",
578
+ }),
579
+ ),
580
+ ).annotate({
581
+ identifier: "UpdateItemRequest",
582
+ }) as any as S.Schema<UpdateItemRequest>;
583
+
584
+ export interface UpdateItemResponse {
585
+ /** Always `true` (a failed call raises a typed error instead). */
586
+ ok: boolean;
587
+ }
588
+ export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() =>
589
+ S.Struct({
590
+ ok: S.Boolean,
591
+ }),
592
+ ).annotate({
593
+ identifier: "UpdateItemResponse",
594
+ }) as any as S.Schema<UpdateItemResponse>;
595
+
596
+ /** A rich text description of the List. */
597
+ export type UpdateSlackListRequestDescriptionBlocksList = Array<unknown>;
598
+ export const UpdateSlackListRequestDescriptionBlocksList =
599
+ /*@__PURE__*/ S.Array(
600
+ S.Unknown,
601
+ ) as any as S.Schema<UpdateSlackListRequestDescriptionBlocksList>;
602
+
603
+ export interface UpdateSlackListRequest {
604
+ /** The ID of the List to update. */
605
+ id: string;
606
+ /** The updated name of the List. */
607
+ name?: string;
608
+ /** A rich text description of the List. */
609
+ description_blocks?: UpdateSlackListRequestDescriptionBlocksList;
610
+ /** Boolean indicating whether the List should be in todo mode. */
611
+ todo_mode?: boolean;
612
+ }
613
+ export const UpdateSlackListRequest = /*@__PURE__*/ S.suspend(() =>
614
+ S.Struct({
615
+ id: S.String,
616
+ name: S.optional(S.String),
617
+ description_blocks: S.optional(UpdateSlackListRequestDescriptionBlocksList),
618
+ todo_mode: S.optional(S.Boolean),
619
+ }).pipe(
620
+ T.Http({
621
+ method: "POST",
622
+ uri: "/slackLists.update",
623
+ code: 200,
624
+ contentType: "form-urlencoded",
625
+ }),
626
+ ),
627
+ ).annotate({
628
+ identifier: "UpdateSlackListRequest",
629
+ }) as any as S.Schema<UpdateSlackListRequest>;
630
+
631
+ export interface UpdateSlackListResponse {
632
+ /** Always `true` (a failed call raises a typed error instead). */
633
+ ok: boolean;
634
+ }
635
+ export const UpdateSlackListResponse = /*@__PURE__*/ S.suspend(() =>
636
+ S.Struct({
637
+ ok: S.Boolean,
638
+ }),
639
+ ).annotate({
640
+ identifier: "UpdateSlackListResponse",
641
+ }) as any as S.Schema<UpdateSlackListResponse>;
642
+
643
+ export type CreateItemError = SlackOpError;
644
+ /** Add a new item to an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `over_row_maximum` — Cannot create more items over the maximum. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `duplicated_item_not_found` — The item to duplicate cannot be found. - `invalid_option_id` — Option ID provided does not match column definition. - `invalid_args` — The provided arguments are invalid. - `uneditable_column` — Initial values provided for an uneditable column. - `invalid_input_type` — The field value type does not match the column type. - `invalid_column_id` — The column ID provided does not exist in the List. - `over_cell_fields_limit` — Too many values provided for a single field. - `file_not_found` — The attachment file could not be found. - `invalid_vote_value` — Invalid value provided for a vote column. See https://docs.slack.dev/reference/methods/slackLists.items.create */
645
+ export const createItem: API.OperationMethod<
646
+ CreateItemRequest,
647
+ CreateItemResponse,
648
+ CreateItemError,
649
+ SlackOpContext
650
+ > = /*@__PURE__*/ API.make(() => ({
651
+ input: CreateItemRequest,
652
+ output: CreateItemResponse,
653
+ errors: [SlackError, SlackRateLimited],
654
+ protocol: SlackProtocol,
655
+ retry: Retry.Retry,
656
+ }));
657
+
658
+ export type CreateSlackListError = SlackOpError;
659
+ /** Create a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `permission_denied` — The user does not have permission to perform this action. - `invalid_schema` — The schema was invalid. - `invalid_primary_column` — Missing or more than one primary column. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `over_list_file_maximum` — Cannot create any more List files. - `over_title_length_maximum` — Title can not exceed defined length. - `invalid_column_type` — Column type not allowed. - `missing_arg_copy_from_list_id` — Missing argument `copy_from_list_id`. - `invalid_copy_and_schema_args` — Cannot provide both `copy_from_list_id` and `schema`. - `over_column_maximum` — Cannot create List with more than allowed column count. See https://docs.slack.dev/reference/methods/slackLists.create */
660
+ export const createSlackList: API.OperationMethod<
661
+ CreateSlackListRequest,
662
+ CreateSlackListResponse,
663
+ CreateSlackListError,
664
+ SlackOpContext
665
+ > = /*@__PURE__*/ API.make(() => ({
666
+ input: CreateSlackListRequest,
667
+ output: CreateSlackListResponse,
668
+ errors: [SlackError, SlackRateLimited],
669
+ protocol: SlackProtocol,
670
+ retry: Retry.Retry,
671
+ }));
672
+
673
+ export type DeleteAccessError = SlackOpError;
674
+ /** Revoke access to a List for specified entities. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` — Lists is disabled on user's team. - `list_not_found` — The List you wish to update permissions for is not available. - `channel_not_found` — A channel could not be found. - `failed_to_update_user_ids` — Failed to update the specified user IDs. - `invalid_parameters` — One of `user_ids` or `channel_ids` must be defined, but not both. - `restricted_action` — User does not have permission to perform this action. - `user_not_found` — A user could not be found. See https://docs.slack.dev/reference/methods/slackLists.access.delete */
675
+ export const deleteAccess: API.OperationMethod<
676
+ DeleteAccessRequest,
677
+ DeleteAccessResponse,
678
+ DeleteAccessError,
679
+ SlackOpContext
680
+ > = /*@__PURE__*/ API.make(() => ({
681
+ input: DeleteAccessRequest,
682
+ output: DeleteAccessResponse,
683
+ errors: [SlackError, SlackRateLimited],
684
+ protocol: SlackProtocol,
685
+ retry: Retry.Retry,
686
+ }));
687
+
688
+ export type DeleteItemError = SlackOpError;
689
+ /** Deletes an item from an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `record_not_found` — The record was not found in the List. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.delete */
690
+ export const deleteItem: API.OperationMethod<
691
+ DeleteItemRequest,
692
+ DeleteItemResponse,
693
+ DeleteItemError,
694
+ SlackOpContext
695
+ > = /*@__PURE__*/ API.make(() => ({
696
+ input: DeleteItemRequest,
697
+ output: DeleteItemResponse,
698
+ errors: [SlackError, SlackRateLimited],
699
+ protocol: SlackProtocol,
700
+ retry: Retry.Retry,
701
+ }));
702
+
703
+ export type DeleteMultipleError = SlackOpError;
704
+ /** Deletes multiple items from an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.deleteMultiple */
705
+ export const deleteMultiple: API.OperationMethod<
706
+ DeleteMultipleRequest,
707
+ DeleteMultipleResponse,
708
+ DeleteMultipleError,
709
+ SlackOpContext
710
+ > = /*@__PURE__*/ API.make(() => ({
711
+ input: DeleteMultipleRequest,
712
+ output: DeleteMultipleResponse,
713
+ errors: [SlackError, SlackRateLimited],
714
+ protocol: SlackProtocol,
715
+ retry: Retry.Retry,
716
+ }));
717
+
718
+ export type DownloadGetError = SlackOpError;
719
+ /** Retrieve List download URL from an export job to download List contents. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `permission_denied` — The bot does not have permission to perform this action. - `unknown_method` — Feature not enabled for this team. - `job_not_found` — Could not find an export job matching that ID. See https://docs.slack.dev/reference/methods/slackLists.download.get */
720
+ export const downloadGet: API.OperationMethod<
721
+ DownloadGetRequest,
722
+ DownloadGetResponse,
723
+ DownloadGetError,
724
+ SlackOpContext
725
+ > = /*@__PURE__*/ API.make(() => ({
726
+ input: DownloadGetRequest,
727
+ output: DownloadGetResponse,
728
+ errors: [SlackError, SlackRateLimited],
729
+ protocol: SlackProtocol,
730
+ retry: Retry.Retry,
731
+ }));
732
+
733
+ export type DownloadStartError = SlackOpError;
734
+ /** Initiate a job to export List contents. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `permission_denied` — The bot does not have permission to perform this action. - `unknown_method` — Feature not enabled for this team. See https://docs.slack.dev/reference/methods/slackLists.download.start */
735
+ export const downloadStart: API.OperationMethod<
736
+ DownloadStartRequest,
737
+ DownloadStartResponse,
738
+ DownloadStartError,
739
+ SlackOpContext
740
+ > = /*@__PURE__*/ API.make(() => ({
741
+ input: DownloadStartRequest,
742
+ output: DownloadStartResponse,
743
+ errors: [SlackError, SlackRateLimited],
744
+ protocol: SlackProtocol,
745
+ retry: Retry.Retry,
746
+ }));
747
+
748
+ export type ItemsInfoError = SlackOpError;
749
+ /** Get a row from a List. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `record_not_found` — The record was not found in the List. - `record_deleted` — The record has been deleted. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.info */
750
+ export const itemsInfo: API.OperationMethod<
751
+ ItemsInfoRequest,
752
+ ItemsInfoResponse,
753
+ ItemsInfoError,
754
+ SlackOpContext
755
+ > = /*@__PURE__*/ API.make(() => ({
756
+ input: ItemsInfoRequest,
757
+ output: ItemsInfoResponse,
758
+ errors: [SlackError, SlackRateLimited],
759
+ protocol: SlackProtocol,
760
+ retry: Retry.Retry,
761
+ }));
762
+
763
+ export type ListItemsError = SlackOpError;
764
+ /** Get records from a List. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `archive_not_supported` — Archiving is not supported. See https://docs.slack.dev/reference/methods/slackLists.items.list */
765
+ export const listItems: API.PaginatedOperationMethod<
766
+ ListItemsRequest,
767
+ ListItemsResponse,
768
+ ListItemsError,
769
+ SlackOpContext,
770
+ unknown
771
+ > = /*@__PURE__*/ API.makePaginated(
772
+ () => ({
773
+ input: ListItemsRequest,
774
+ output: ListItemsResponse,
775
+ errors: [SlackError, SlackRateLimited],
776
+ protocol: SlackProtocol,
777
+ retry: Retry.Retry,
778
+ pagination: {
779
+ mode: "cursor",
780
+ inputToken: "cursor",
781
+ outputToken: "response_metadata.next_cursor",
782
+ items: "items",
783
+ pageSize: "limit",
784
+ } as const,
785
+ }),
786
+ slackPaginate,
787
+ ) as any;
788
+
789
+ export type SetAccessError = SlackOpError;
790
+ /** Set the access level to a List for specified entities. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` — Lists is disabled on user's team. - `list_not_found` — The List you wish to update permissions for is not available. - `channel_not_found` — A channel could not be found. - `failed_to_update_user_ids` — Failed to update the specified user IDs. - `invalid_parameters` — One of `user_ids` or `channel_ids` must be defined, but not both. - `restricted_action` — User does not have permission to perform this action. - `user_not_found` — A user could not be found. See https://docs.slack.dev/reference/methods/slackLists.access.set */
791
+ export const setAccess: API.OperationMethod<
792
+ SetAccessRequest,
793
+ SetAccessResponse,
794
+ SetAccessError,
795
+ SlackOpContext
796
+ > = /*@__PURE__*/ API.make(() => ({
797
+ input: SetAccessRequest,
798
+ output: SetAccessResponse,
799
+ errors: [SlackError, SlackRateLimited],
800
+ protocol: SlackProtocol,
801
+ retry: Retry.Retry,
802
+ }));
803
+
804
+ export type UpdateItemError = SlackOpError;
805
+ /** Updates cells in a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `row_not_found` — The row was not found. - `column_not_found` — The column was not found. - `file_not_found` — Invalid file ID for this List. - `invalid_input_type` — Supplied value key or value type is invalid for the given column type. - `invalid_row_id` — Invalid row ID for this List. - `invalid_column_id` — Invalid column ID for this List. - `permission_denied` — The user does not have permission to perform this action. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `channel_not_found` — The channel cannot be found. - `uneditable_column` — The column cannot be updated. - `invalid_blocks` — Rich text payload supplied is invalid. - `invalid_text_block` — Rich text payload supplied is invalid. - `invalid_email` — Email supplied is invalid. - `invalid_link` — Message archive link supplied is invalid. - `invalid_date` — Date supplied is invalid. - `invalid_option_id` — Option supplied is invalid. - `row_id_not_provided` — The `row_id` or `row_id_to_create` field must be provided. - `column_id_not_provided` — The `column_id` or `column_id_to_create` field must be provided. - `over_cell_fields_limit` — The supplied cell fields are over the cell field maximum. - `invalid_message` — Invalid message provided. - `invalid_attachment` — Invalid attachment provided. - `invalid_phone_number` — Invalid phone number provided. - `invalid_vote_value` — Invalid vote value is supplied. See https://docs.slack.dev/reference/methods/slackLists.items.update */
806
+ export const updateItem: API.OperationMethod<
807
+ UpdateItemRequest,
808
+ UpdateItemResponse,
809
+ UpdateItemError,
810
+ SlackOpContext
811
+ > = /*@__PURE__*/ API.make(() => ({
812
+ input: UpdateItemRequest,
813
+ output: UpdateItemResponse,
814
+ errors: [SlackError, SlackRateLimited],
815
+ protocol: SlackProtocol,
816
+ retry: Retry.Retry,
817
+ }));
818
+
819
+ export type UpdateSlackListError = SlackOpError;
820
+ /** Update a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `list_edits_update_error` — Failed to update List metadata. - `list_editor_upsert_error` — Failed to upsert List editor. - `over_title_length_maximum` — Title can not exceed defined length. - `file_channel_rename_error` — Failed to rename file channel based on file title. - `unexpected_description_blocks_arg` — Unexpected description blocks argument. - `missing_arguments` — No arguments were provided to update the List. See https://docs.slack.dev/reference/methods/slackLists.update */
821
+ export const updateSlackList: API.OperationMethod<
822
+ UpdateSlackListRequest,
823
+ UpdateSlackListResponse,
824
+ UpdateSlackListError,
825
+ SlackOpContext
826
+ > = /*@__PURE__*/ API.make(() => ({
827
+ input: UpdateSlackListRequest,
828
+ output: UpdateSlackListResponse,
829
+ errors: [SlackError, SlackRateLimited],
830
+ protocol: SlackProtocol,
831
+ retry: Retry.Retry,
832
+ }));