@distilled.cloud/slack 1.0.0-rc.14 → 1.0.0-rc.16

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 (209) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -34
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +31 -31
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +41 -41
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +9 -9
  11. package/lib/pagination.d.ts +2 -2
  12. package/lib/pagination.js +28 -28
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +61 -59
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +2 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +34 -33
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/admin.d.ts +123 -575
  21. package/lib/services/admin.d.ts.map +1 -1
  22. package/lib/services/admin.js +304 -2878
  23. package/lib/services/agents.d.ts +13 -55
  24. package/lib/services/agents.d.ts.map +1 -1
  25. package/lib/services/agents.js +48 -309
  26. package/lib/services/api.d.ts +0 -4
  27. package/lib/services/api.d.ts.map +1 -1
  28. package/lib/services/api.js +16 -18
  29. package/lib/services/apps.d.ts +25 -106
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +84 -509
  32. package/lib/services/assistant.d.ts +6 -40
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +33 -204
  35. package/lib/services/auth.d.ts +4 -15
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +22 -90
  38. package/lib/services/blocks.d.ts +1 -7
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +16 -21
  41. package/lib/services/bookmarks.d.ts +4 -15
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +27 -76
  44. package/lib/services/bots.d.ts +1 -9
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +17 -54
  47. package/lib/services/calls.d.ts +6 -22
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +35 -110
  50. package/lib/services/canvases.d.ts +7 -35
  51. package/lib/services/canvases.d.ts.map +1 -1
  52. package/lib/services/canvases.js +39 -135
  53. package/lib/services/chat.d.ts +14 -83
  54. package/lib/services/chat.d.ts.map +1 -1
  55. package/lib/services/chat.js +59 -381
  56. package/lib/services/conversations.d.ts +31 -116
  57. package/lib/services/conversations.d.ts.map +1 -1
  58. package/lib/services/conversations.js +94 -690
  59. package/lib/services/dialog.d.ts +1 -4
  60. package/lib/services/dialog.d.ts.map +1 -1
  61. package/lib/services/dialog.js +13 -17
  62. package/lib/services/dnd.d.ts +5 -17
  63. package/lib/services/dnd.d.ts.map +1 -1
  64. package/lib/services/dnd.js +26 -91
  65. package/lib/services/emoji.d.ts +1 -8
  66. package/lib/services/emoji.d.ts.map +1 -1
  67. package/lib/services/emoji.js +18 -29
  68. package/lib/services/entity.d.ts +4 -16
  69. package/lib/services/entity.d.ts.map +1 -1
  70. package/lib/services/entity.js +29 -71
  71. package/lib/services/files.d.ts +16 -80
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +75 -433
  74. package/lib/services/functions.d.ts +8 -49
  75. package/lib/services/functions.d.ts.map +1 -1
  76. package/lib/services/functions.js +45 -203
  77. package/lib/services/lists.d.ts +13 -55
  78. package/lib/services/lists.d.ts.map +1 -1
  79. package/lib/services/lists.js +53 -248
  80. package/lib/services/migration.d.ts +1 -7
  81. package/lib/services/migration.d.ts.map +1 -1
  82. package/lib/services/migration.js +18 -27
  83. package/lib/services/oauth.d.ts +7 -43
  84. package/lib/services/oauth.d.ts.map +1 -1
  85. package/lib/services/oauth.js +34 -289
  86. package/lib/services/openid.d.ts +3 -10
  87. package/lib/services/openid.d.ts.map +1 -1
  88. package/lib/services/openid.js +19 -79
  89. package/lib/services/pins.d.ts +3 -13
  90. package/lib/services/pins.d.ts.map +1 -1
  91. package/lib/services/pins.js +27 -61
  92. package/lib/services/reactions.d.ts +5 -17
  93. package/lib/services/reactions.d.ts.map +1 -1
  94. package/lib/services/reactions.js +30 -96
  95. package/lib/services/reminders.d.ts +5 -17
  96. package/lib/services/reminders.d.ts.map +1 -1
  97. package/lib/services/reminders.js +33 -83
  98. package/lib/services/rtm.d.ts +2 -11
  99. package/lib/services/rtm.d.ts.map +1 -1
  100. package/lib/services/rtm.js +22 -56
  101. package/lib/services/search.d.ts +4 -35
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +28 -167
  104. package/lib/services/stars.d.ts +4 -26
  105. package/lib/services/stars.d.ts.map +1 -1
  106. package/lib/services/stars.js +28 -128
  107. package/lib/services/team.d.ts +11 -63
  108. package/lib/services/team.d.ts.map +1 -1
  109. package/lib/services/team.js +45 -289
  110. package/lib/services/tooling.d.ts +2 -5
  111. package/lib/services/tooling.d.ts.map +1 -1
  112. package/lib/services/tooling.js +15 -28
  113. package/lib/services/usergroups.d.ts +7 -31
  114. package/lib/services/usergroups.d.ts.map +1 -1
  115. package/lib/services/usergroups.js +40 -146
  116. package/lib/services/users.d.ts +14 -48
  117. package/lib/services/users.d.ts.map +1 -1
  118. package/lib/services/users.js +54 -249
  119. package/lib/services/views.d.ts +4 -14
  120. package/lib/services/views.d.ts.map +1 -1
  121. package/lib/services/views.js +28 -73
  122. package/lib/services/workflows.d.ts +8 -51
  123. package/lib/services/workflows.d.ts.map +1 -1
  124. package/lib/services/workflows.js +37 -188
  125. package/lib/traits.d.ts +1 -1
  126. package/lib/traits.js +8 -8
  127. package/package.json +14 -10
  128. package/src/credentials.ts +20 -21
  129. package/src/errors.ts +31 -27
  130. package/src/index.ts +1 -1
  131. package/src/pagination.ts +2 -2
  132. package/src/protocol.ts +30 -29
  133. package/src/retry.ts +6 -6
  134. package/src/services/admin.ts +2717 -3451
  135. package/src/services/agents.ts +380 -370
  136. package/src/services/api.ts +31 -21
  137. package/src/services/apps.ts +569 -621
  138. package/src/services/assistant.ts +235 -270
  139. package/src/services/auth.ts +118 -100
  140. package/src/services/blocks.ts +33 -29
  141. package/src/services/bookmarks.ts +101 -83
  142. package/src/services/bots.ts +74 -67
  143. package/src/services/calls.ts +118 -124
  144. package/src/services/canvases.ts +171 -178
  145. package/src/services/chat.ts +428 -496
  146. package/src/services/conversations.ts +675 -761
  147. package/src/services/dialog.ts +30 -17
  148. package/src/services/dnd.ts +125 -99
  149. package/src/services/emoji.ts +46 -42
  150. package/src/services/entity.ts +94 -92
  151. package/src/services/files.ts +536 -531
  152. package/src/services/functions.ts +209 -274
  153. package/src/services/lists.ts +289 -304
  154. package/src/services/migration.ts +39 -37
  155. package/src/services/oauth.ts +345 -361
  156. package/src/services/openid.ts +137 -122
  157. package/src/services/pins.ts +83 -70
  158. package/src/services/reactions.ts +119 -103
  159. package/src/services/reminders.ts +112 -90
  160. package/src/services/rtm.ts +73 -65
  161. package/src/services/search.ts +193 -244
  162. package/src/services/stars.ts +101 -160
  163. package/src/services/team.ts +333 -369
  164. package/src/services/tooling.ts +43 -30
  165. package/src/services/usergroups.ts +175 -179
  166. package/src/services/users.ts +301 -268
  167. package/src/services/views.ts +85 -80
  168. package/src/services/workflows.ts +184 -269
  169. package/src/traits.ts +1 -1
  170. package/lib/protocol.test.d.ts +0 -2
  171. package/lib/protocol.test.d.ts.map +0 -1
  172. package/lib/protocol.test.js +0 -288
  173. package/lib/protocol.test.js.map +0 -1
  174. package/lib/services/admin.js.map +0 -1
  175. package/lib/services/agents.js.map +0 -1
  176. package/lib/services/api.js.map +0 -1
  177. package/lib/services/apps.js.map +0 -1
  178. package/lib/services/assistant.js.map +0 -1
  179. package/lib/services/auth.js.map +0 -1
  180. package/lib/services/blocks.js.map +0 -1
  181. package/lib/services/bookmarks.js.map +0 -1
  182. package/lib/services/bots.js.map +0 -1
  183. package/lib/services/calls.js.map +0 -1
  184. package/lib/services/canvases.js.map +0 -1
  185. package/lib/services/chat.js.map +0 -1
  186. package/lib/services/conversations.js.map +0 -1
  187. package/lib/services/dialog.js.map +0 -1
  188. package/lib/services/dnd.js.map +0 -1
  189. package/lib/services/emoji.js.map +0 -1
  190. package/lib/services/entity.js.map +0 -1
  191. package/lib/services/files.js.map +0 -1
  192. package/lib/services/functions.js.map +0 -1
  193. package/lib/services/lists.js.map +0 -1
  194. package/lib/services/migration.js.map +0 -1
  195. package/lib/services/oauth.js.map +0 -1
  196. package/lib/services/openid.js.map +0 -1
  197. package/lib/services/pins.js.map +0 -1
  198. package/lib/services/reactions.js.map +0 -1
  199. package/lib/services/reminders.js.map +0 -1
  200. package/lib/services/rtm.js.map +0 -1
  201. package/lib/services/search.js.map +0 -1
  202. package/lib/services/stars.js.map +0 -1
  203. package/lib/services/team.js.map +0 -1
  204. package/lib/services/tooling.js.map +0 -1
  205. package/lib/services/usergroups.js.map +0 -1
  206. package/lib/services/users.js.map +0 -1
  207. package/lib/services/views.js.map +0 -1
  208. package/lib/services/workflows.js.map +0 -1
  209. package/src/protocol.test.ts +0 -372
@@ -1,11 +1,9 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
- import * as Redacted from "effect/Redacted";
2
+ import type * as Redacted from "effect/Redacted";
4
3
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
5
4
  export type { SlackOpError, SlackOpContext };
6
5
  /** IDs of items to be deleted */
7
6
  export type BulkDeleteRequestIdsList = Array<string>;
8
- export declare const BulkDeleteRequestIdsList: S.Schema<BulkDeleteRequestIdsList>;
9
7
  export interface BulkDeleteRequest {
10
8
  /** name of the datastore */
11
9
  datastore: string;
@@ -13,20 +11,16 @@ export interface BulkDeleteRequest {
13
11
  ids: BulkDeleteRequestIdsList;
14
12
  app_id?: string;
15
13
  }
16
- export declare const BulkDeleteRequest: S.Schema<BulkDeleteRequest>;
17
14
  /** attribute names and values of the items that failed to be processed */
18
15
  export type BulkDeleteResponseFailedItemsList = Array<string>;
19
- export declare const BulkDeleteResponseFailedItemsList: S.Schema<BulkDeleteResponseFailedItemsList>;
20
16
  export interface BulkDeleteResponse {
21
17
  /** Always `true` (a failed call raises a typed error instead). */
22
18
  ok: boolean;
23
19
  /** attribute names and values of the items that failed to be processed */
24
20
  failed_items?: BulkDeleteResponseFailedItemsList;
25
21
  }
26
- export declare const BulkDeleteResponse: S.Schema<BulkDeleteResponse>;
27
22
  /** items' ids */
28
23
  export type BulkGetRequestIdsList = Array<string>;
29
- export declare const BulkGetRequestIdsList: S.Schema<BulkGetRequestIdsList>;
30
24
  export interface BulkGetRequest {
31
25
  /** name of the datastore */
32
26
  datastore: string;
@@ -34,17 +28,13 @@ export interface BulkGetRequest {
34
28
  ids: BulkGetRequestIdsList;
35
29
  app_id?: string;
36
30
  }
37
- export declare const BulkGetRequest: S.Schema<BulkGetRequest>;
38
31
  export type BulkGetResponseItemsItemMap = {
39
32
  [key: string]: unknown | undefined;
40
33
  };
41
- export declare const BulkGetResponseItemsItemMap: S.Schema<BulkGetResponseItemsItemMap>;
42
34
  /** array of attribute names and values of each item */
43
35
  export type BulkGetResponseItemsList = Array<BulkGetResponseItemsItemMap>;
44
- export declare const BulkGetResponseItemsList: S.Schema<BulkGetResponseItemsList>;
45
36
  /** attribute names and values of the items that failed to be processed */
46
37
  export type BulkGetResponseFailedItemsList = Array<string>;
47
- export declare const BulkGetResponseFailedItemsList: S.Schema<BulkGetResponseFailedItemsList>;
48
38
  export interface BulkGetResponse {
49
39
  /** Always `true` (a failed call raises a typed error instead). */
50
40
  ok: boolean;
@@ -53,14 +43,11 @@ export interface BulkGetResponse {
53
43
  /** attribute names and values of the items that failed to be processed */
54
44
  failed_items?: BulkGetResponseFailedItemsList;
55
45
  }
56
- export declare const BulkGetResponse: S.Schema<BulkGetResponse>;
57
46
  export type BulkPutRequestItemsItemMap = {
58
47
  [key: string]: unknown | undefined;
59
48
  };
60
- export declare const BulkPutRequestItemsItemMap: S.Schema<BulkPutRequestItemsItemMap>;
61
49
  /** attribute names and values of the items; limit of 25 */
62
50
  export type BulkPutRequestItemsList = Array<BulkPutRequestItemsItemMap>;
63
- export declare const BulkPutRequestItemsList: S.Schema<BulkPutRequestItemsList>;
64
51
  export interface BulkPutRequest {
65
52
  /** name of the datastore */
66
53
  datastore: string;
@@ -68,14 +55,11 @@ export interface BulkPutRequest {
68
55
  items: BulkPutRequestItemsList;
69
56
  app_id?: string;
70
57
  }
71
- export declare const BulkPutRequest: S.Schema<BulkPutRequest>;
72
58
  export type BulkPutResponseFailedItemsItemMap = {
73
59
  [key: string]: unknown | undefined;
74
60
  };
75
- export declare const BulkPutResponseFailedItemsItemMap: S.Schema<BulkPutResponseFailedItemsItemMap>;
76
61
  /** attribute names and values of the items that failed to be processed */
77
62
  export type BulkPutResponseFailedItemsList = Array<BulkPutResponseFailedItemsItemMap>;
78
- export declare const BulkPutResponseFailedItemsList: S.Schema<BulkPutResponseFailedItemsList>;
79
63
  export interface BulkPutResponse {
80
64
  /** Always `true` (a failed call raises a typed error instead). */
81
65
  ok: boolean;
@@ -84,31 +68,26 @@ export interface BulkPutResponse {
84
68
  /** attribute names and values of the items that failed to be processed */
85
69
  failed_items?: BulkPutResponseFailedItemsList;
86
70
  }
87
- export declare const BulkPutResponse: S.Schema<BulkPutResponse>;
88
71
  export interface ConnectionsOpenRequest {
89
72
  }
90
- export declare const ConnectionsOpenRequest: S.Schema<ConnectionsOpenRequest>;
91
73
  export interface ConnectionsOpenResponse {
92
74
  /** Always `true` (a failed call raises a typed error instead). */
93
75
  ok: boolean;
94
76
  /** The URL to connect to. */
95
77
  url: string;
96
78
  }
97
- export declare const ConnectionsOpenResponse: S.Schema<ConnectionsOpenResponse>;
98
79
  export interface CreateManifestRequest {
99
80
  /** A JSON app manifest encoded as a string. This manifest **must** use a valid [app manifest schema - read our guide to creating one](/app-manifests/configuring-apps-with-app-manifests#fields). */
100
81
  manifest: string;
101
82
  /** When called with an org token, which specific team to create app on */
102
83
  team_id?: string;
103
84
  }
104
- export declare const CreateManifestRequest: S.Schema<CreateManifestRequest>;
105
85
  export interface CreateManifestResponseCredentials {
106
86
  client_id?: string;
107
87
  client_secret?: string | Redacted.Redacted<string>;
108
88
  verification_token?: string;
109
89
  signing_secret?: string | Redacted.Redacted<string>;
110
90
  }
111
- export declare const CreateManifestResponseCredentials: S.Schema<CreateManifestResponseCredentials>;
112
91
  export interface CreateManifestResponse {
113
92
  /** Always `true` (a failed call raises a typed error instead). */
114
93
  ok: boolean;
@@ -121,17 +100,14 @@ export interface CreateManifestResponse {
121
100
  team_domain?: string;
122
101
  app_token?: string;
123
102
  }
124
- export declare const CreateManifestResponse: S.Schema<CreateManifestResponse>;
125
103
  /** A map of attributes referenced in expression */
126
104
  export type DatastoreCountRequestExpressionAttributesMap = {
127
105
  [key: string]: unknown | undefined;
128
106
  };
129
- export declare const DatastoreCountRequestExpressionAttributesMap: S.Schema<DatastoreCountRequestExpressionAttributesMap>;
130
107
  /** A map of values referenced in expression */
131
108
  export type DatastoreCountRequestExpressionValuesMap = {
132
109
  [key: string]: unknown | undefined;
133
110
  };
134
- export declare const DatastoreCountRequestExpressionValuesMap: S.Schema<DatastoreCountRequestExpressionValuesMap>;
135
111
  export interface DatastoreCountRequest {
136
112
  /** Name of the datastore */
137
113
  datastore: string;
@@ -144,7 +120,6 @@ export interface DatastoreCountRequest {
144
120
  /** Required if calling with user token */
145
121
  app_id?: string;
146
122
  }
147
- export declare const DatastoreCountRequest: S.Schema<DatastoreCountRequest>;
148
123
  export interface DatastoreCountResponse {
149
124
  /** Always `true` (a failed call raises a typed error instead). */
150
125
  ok: boolean;
@@ -153,17 +128,14 @@ export interface DatastoreCountResponse {
153
128
  /** number of matching items */
154
129
  count?: number;
155
130
  }
156
- export declare const DatastoreCountResponse: S.Schema<DatastoreCountResponse>;
157
131
  /** A map of attributes referenced in expression */
158
132
  export type DatastoreQueryRequestExpressionAttributesMap = {
159
133
  [key: string]: unknown | undefined;
160
134
  };
161
- export declare const DatastoreQueryRequestExpressionAttributesMap: S.Schema<DatastoreQueryRequestExpressionAttributesMap>;
162
135
  /** A map of values referenced in expression */
163
136
  export type DatastoreQueryRequestExpressionValuesMap = {
164
137
  [key: string]: unknown | undefined;
165
138
  };
166
- export declare const DatastoreQueryRequestExpressionValuesMap: S.Schema<DatastoreQueryRequestExpressionValuesMap>;
167
139
  export interface DatastoreQueryRequest {
168
140
  /** Name of the datastore */
169
141
  datastore: string;
@@ -180,20 +152,16 @@ export interface DatastoreQueryRequest {
180
152
  /** The maximum number of items to evaluate for a given request (not necessarily the number of matching items). If the given request dataset size exceeds 1 MB before reaching the limit, the returned item count will likely be less than the limit. In any case where there are more items available beyond an imposed limit, a `next_cursor` value will be provided for use in subsequent requests. */
181
153
  limit?: number;
182
154
  }
183
- export declare const DatastoreQueryRequest: S.Schema<DatastoreQueryRequest>;
184
155
  export type DatastoreQueryResponseItemsItemMap = {
185
156
  [key: string]: unknown | undefined;
186
157
  };
187
- export declare const DatastoreQueryResponseItemsItemMap: S.Schema<DatastoreQueryResponseItemsItemMap>;
188
158
  /** attribute names and values of the items */
189
159
  export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsItemMap>;
190
- export declare const DatastoreQueryResponseItemsList: S.Schema<DatastoreQueryResponseItemsList>;
191
160
  /** Pagination metadata. An empty `next_cursor` means the last page. */
192
161
  export interface DatastoreQueryResponseResponseMetadata {
193
- /** Cursor for the next page — pass as `cursor` on the next call. */
162
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
194
163
  next_cursor?: string;
195
164
  }
196
- export declare const DatastoreQueryResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
197
165
  export interface DatastoreQueryResponse {
198
166
  /** Always `true` (a failed call raises a typed error instead). */
199
167
  ok: boolean;
@@ -204,7 +172,6 @@ export interface DatastoreQueryResponse {
204
172
  /** Pagination metadata. An empty `next_cursor` means the last page. */
205
173
  response_metadata?: DatastoreQueryResponseResponseMetadata;
206
174
  }
207
- export declare const DatastoreQueryResponse: S.Schema<DatastoreQueryResponse>;
208
175
  export interface DeleteAuthExternalRequest {
209
176
  /** The id of the app whose tokens you want to delete */
210
177
  app_id?: string;
@@ -213,12 +180,10 @@ export interface DeleteAuthExternalRequest {
213
180
  /** The id of the token that you want to delete */
214
181
  external_token_id?: string;
215
182
  }
216
- export declare const DeleteAuthExternalRequest: S.Schema<DeleteAuthExternalRequest>;
217
183
  export interface DeleteAuthExternalResponse {
218
184
  /** Always `true` (a failed call raises a typed error instead). */
219
185
  ok: boolean;
220
186
  }
221
- export declare const DeleteAuthExternalResponse: S.Schema<DeleteAuthExternalResponse>;
222
187
  export interface DeleteDatastoreRequest {
223
188
  /** name of the datastore */
224
189
  datastore: string;
@@ -226,47 +191,39 @@ export interface DeleteDatastoreRequest {
226
191
  id: string;
227
192
  app_id?: string;
228
193
  }
229
- export declare const DeleteDatastoreRequest: S.Schema<DeleteDatastoreRequest>;
230
194
  export interface DeleteDatastoreResponse {
231
195
  /** Always `true` (a failed call raises a typed error instead). */
232
196
  ok: boolean;
233
197
  }
234
- export declare const DeleteDatastoreResponse: S.Schema<DeleteDatastoreResponse>;
235
198
  export interface DeleteManifestRequest {
236
199
  /** The ID of the app you want to delete. */
237
200
  app_id: string;
238
201
  }
239
- export declare const DeleteManifestRequest: S.Schema<DeleteManifestRequest>;
240
202
  export interface DeleteManifestResponse {
241
203
  /** Always `true` (a failed call raises a typed error instead). */
242
204
  ok: boolean;
243
205
  }
244
- export declare const DeleteManifestResponse: S.Schema<DeleteManifestResponse>;
245
206
  export interface ExportManifestRequest {
246
207
  /** The ID of the app whose configuration you want to export as a manifest. */
247
208
  app_id: string;
248
209
  }
249
- export declare const ExportManifestRequest: S.Schema<ExportManifestRequest>;
250
210
  export interface ExportManifestResponse {
251
211
  /** Always `true` (a failed call raises a typed error instead). */
252
212
  ok: boolean;
253
213
  manifest: unknown;
254
214
  }
255
- export declare const ExportManifestResponse: S.Schema<ExportManifestResponse>;
256
215
  export interface GetAuthExternalRequest {
257
216
  /** The id of the token you want to get the token for */
258
217
  external_token_id: string;
259
218
  /** Always refresh existing token before returning even when the token has not expired */
260
219
  force_refresh?: boolean;
261
220
  }
262
- export declare const GetAuthExternalRequest: S.Schema<GetAuthExternalRequest>;
263
221
  export interface GetAuthExternalResponse {
264
222
  /** Always `true` (a failed call raises a typed error instead). */
265
223
  ok: boolean;
266
224
  external_token: string;
267
225
  token_response_extras: unknown;
268
226
  }
269
- export declare const GetAuthExternalResponse: S.Schema<GetAuthExternalResponse>;
270
227
  export interface GetDatastoreRequest {
271
228
  /** name of the datastore */
272
229
  datastore: string;
@@ -274,12 +231,10 @@ export interface GetDatastoreRequest {
274
231
  id: string;
275
232
  app_id?: string;
276
233
  }
277
- export declare const GetDatastoreRequest: S.Schema<GetDatastoreRequest>;
278
234
  /** attribute names and values of the item */
279
235
  export type GetDatastoreResponseItemMap = {
280
236
  [key: string]: unknown | undefined;
281
237
  };
282
- export declare const GetDatastoreResponseItemMap: S.Schema<GetDatastoreResponseItemMap>;
283
238
  export interface GetDatastoreResponse {
284
239
  /** Always `true` (a failed call raises a typed error instead). */
285
240
  ok: boolean;
@@ -288,10 +243,8 @@ export interface GetDatastoreResponse {
288
243
  /** attribute names and values of the item */
289
244
  item?: GetDatastoreResponseItemMap;
290
245
  }
291
- export declare const GetDatastoreResponse: S.Schema<GetDatastoreResponse>;
292
246
  /** The direction you want the data sorted by (always by timestamp) */
293
247
  export type ListActivitiesRequestSortDirection = "asc" | "desc";
294
- export declare const ListActivitiesRequestSortDirection: any;
295
248
  export interface ListActivitiesRequest {
296
249
  /** The id of the app to get activities from. */
297
250
  app_id: string;
@@ -320,12 +273,9 @@ export interface ListActivitiesRequest {
320
273
  /** The direction you want the data sorted by (always by timestamp) */
321
274
  sort_direction?: ListActivitiesRequestSortDirection | (string & {});
322
275
  }
323
- export declare const ListActivitiesRequest: S.Schema<ListActivitiesRequest>;
324
276
  export type ListActivitiesResponseActivitiesList = Array<unknown>;
325
- export declare const ListActivitiesResponseActivitiesList: S.Schema<ListActivitiesResponseActivitiesList>;
326
277
  /** Pagination metadata. An empty `next_cursor` means the last page. */
327
278
  export type ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
328
- export declare const ListActivitiesResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
329
279
  export interface ListActivitiesResponse {
330
280
  /** Always `true` (a failed call raises a typed error instead). */
331
281
  ok: boolean;
@@ -333,13 +283,11 @@ export interface ListActivitiesResponse {
333
283
  /** Pagination metadata. An empty `next_cursor` means the last page. */
334
284
  response_metadata?: DatastoreQueryResponseResponseMetadata;
335
285
  }
336
- export declare const ListActivitiesResponse: S.Schema<ListActivitiesResponse>;
337
286
  export interface ListEventAuthorizationsRequest {
338
287
  event_context: string;
339
288
  cursor?: string;
340
289
  limit?: number;
341
290
  }
342
- export declare const ListEventAuthorizationsRequest: S.Schema<ListEventAuthorizationsRequest>;
343
291
  export interface ListEventAuthorizationsResponseAuthorizationsItem {
344
292
  enterprise_id: string | null;
345
293
  team_id: string | null;
@@ -347,12 +295,9 @@ export interface ListEventAuthorizationsResponseAuthorizationsItem {
347
295
  is_bot: boolean;
348
296
  is_enterprise_install: boolean;
349
297
  }
350
- export declare const ListEventAuthorizationsResponseAuthorizationsItem: S.Schema<ListEventAuthorizationsResponseAuthorizationsItem>;
351
298
  export type ListEventAuthorizationsResponseAuthorizationsList = Array<ListEventAuthorizationsResponseAuthorizationsItem>;
352
- export declare const ListEventAuthorizationsResponseAuthorizationsList: S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
353
299
  /** Pagination metadata. An empty `next_cursor` means the last page. */
354
300
  export type ListEventAuthorizationsResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
355
- export declare const ListEventAuthorizationsResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
356
301
  export interface ListEventAuthorizationsResponse {
357
302
  /** Always `true` (a failed call raises a typed error instead). */
358
303
  ok: boolean;
@@ -362,12 +307,10 @@ export interface ListEventAuthorizationsResponse {
362
307
  /** Pagination metadata. An empty `next_cursor` means the last page. */
363
308
  response_metadata?: DatastoreQueryResponseResponseMetadata;
364
309
  }
365
- export declare const ListEventAuthorizationsResponse: S.Schema<ListEventAuthorizationsResponse>;
366
310
  /** attribute names and values of the item */
367
311
  export type PutDatastoreRequestItemMap = {
368
312
  [key: string]: unknown | undefined;
369
313
  };
370
- export declare const PutDatastoreRequestItemMap: S.Schema<PutDatastoreRequestItemMap>;
371
314
  export interface PutDatastoreRequest {
372
315
  /** name of the datastore */
373
316
  datastore: string;
@@ -375,12 +318,10 @@ export interface PutDatastoreRequest {
375
318
  item: PutDatastoreRequestItemMap;
376
319
  app_id?: string;
377
320
  }
378
- export declare const PutDatastoreRequest: S.Schema<PutDatastoreRequest>;
379
321
  /** attribute names and values of the item */
380
322
  export type PutDatastoreResponseItemMap = {
381
323
  [key: string]: unknown | undefined;
382
324
  };
383
- export declare const PutDatastoreResponseItemMap: S.Schema<PutDatastoreResponseItemMap>;
384
325
  export interface PutDatastoreResponse {
385
326
  /** Always `true` (a failed call raises a typed error instead). */
386
327
  ok: boolean;
@@ -389,7 +330,6 @@ export interface PutDatastoreResponse {
389
330
  /** attribute names and values of the item */
390
331
  item?: PutDatastoreResponseItemMap;
391
332
  }
392
- export declare const PutDatastoreResponse: S.Schema<PutDatastoreResponse>;
393
333
  export interface SetIconRequest {
394
334
  /** The ID of the app whose icon you want to set. */
395
335
  app_id: string;
@@ -398,45 +338,37 @@ export interface SetIconRequest {
398
338
  /** URL of a publicly hosted image */
399
339
  url?: string;
400
340
  }
401
- export declare const SetIconRequest: S.Schema<SetIconRequest>;
402
341
  export interface SetIconResponse {
403
342
  /** Always `true` (a failed call raises a typed error instead). */
404
343
  ok: boolean;
405
344
  }
406
- export declare const SetIconResponse: S.Schema<SetIconResponse>;
407
345
  /** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
408
346
  export type SetManagedPermissionsRequestPermissions = "everyone" | "app_owner";
409
- export declare const SetManagedPermissionsRequestPermissions: any;
410
347
  export interface SetManagedPermissionsRequest {
411
348
  /** Encoded ID of the managed app to configure */
412
349
  app_id: string;
413
350
  /** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
414
351
  permissions: SetManagedPermissionsRequestPermissions | (string & {});
415
352
  }
416
- export declare const SetManagedPermissionsRequest: S.Schema<SetManagedPermissionsRequest>;
417
353
  export interface SetManagedPermissionsResponse {
418
354
  /** Always `true` (a failed call raises a typed error instead). */
419
355
  ok: boolean;
420
356
  }
421
- export declare const SetManagedPermissionsResponse: S.Schema<SetManagedPermissionsResponse>;
422
357
  export interface UninstallAppRequest {
423
358
  /** Issued when you created your application. */
424
359
  client_id: string;
425
360
  /** Issued when you created your application. */
426
361
  client_secret: string | Redacted.Redacted<string>;
427
362
  }
428
- export declare const UninstallAppRequest: S.Schema<UninstallAppRequest>;
429
363
  export interface UninstallAppResponse {
430
364
  /** Always `true` (a failed call raises a typed error instead). */
431
365
  ok: boolean;
432
366
  uninstalled: boolean;
433
367
  }
434
- export declare const UninstallAppResponse: S.Schema<UninstallAppResponse>;
435
368
  /** attribute names and values to be updated */
436
369
  export type UpdateDatastoreRequestItemMap = {
437
370
  [key: string]: unknown | undefined;
438
371
  };
439
- export declare const UpdateDatastoreRequestItemMap: S.Schema<UpdateDatastoreRequestItemMap>;
440
372
  export interface UpdateDatastoreRequest {
441
373
  /** name of the datastore */
442
374
  datastore: string;
@@ -444,12 +376,10 @@ export interface UpdateDatastoreRequest {
444
376
  item: UpdateDatastoreRequestItemMap;
445
377
  app_id?: string;
446
378
  }
447
- export declare const UpdateDatastoreRequest: S.Schema<UpdateDatastoreRequest>;
448
379
  /** attribute names and values of the item, including those updated */
449
380
  export type UpdateDatastoreResponseItemMap = {
450
381
  [key: string]: unknown | undefined;
451
382
  };
452
- export declare const UpdateDatastoreResponseItemMap: S.Schema<UpdateDatastoreResponseItemMap>;
453
383
  export interface UpdateDatastoreResponse {
454
384
  /** Always `true` (a failed call raises a typed error instead). */
455
385
  ok: boolean;
@@ -458,54 +388,44 @@ export interface UpdateDatastoreResponse {
458
388
  /** attribute names and values of the item, including those updated */
459
389
  item?: UpdateDatastoreResponseItemMap;
460
390
  }
461
- export declare const UpdateDatastoreResponse: S.Schema<UpdateDatastoreResponse>;
462
391
  export interface UpdateManifestRequest {
463
392
  /** A JSON app manifest encoded as a string. This manifest **must** use a valid [app manifest schema - read our guide to creating one](/app-manifests/configuring-apps-with-app-manifests#fields). As this method entirely _replaces_ any previous configuration, manifest must contain both unmodified and modified fields. */
464
393
  manifest: string;
465
394
  /** The ID of the app whose configuration you want to update. */
466
395
  app_id: string;
467
396
  }
468
- export declare const UpdateManifestRequest: S.Schema<UpdateManifestRequest>;
469
397
  export interface UpdateManifestResponse {
470
398
  /** Always `true` (a failed call raises a typed error instead). */
471
399
  ok: boolean;
472
400
  app_id: string;
473
401
  permissions_updated?: boolean;
474
402
  }
475
- export declare const UpdateManifestResponse: S.Schema<UpdateManifestResponse>;
476
403
  /** The status that should be set for the user. */
477
404
  export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
478
- export declare const UpdateUserConnectionRequestStatus: any;
479
405
  export interface UpdateUserConnectionRequest {
480
406
  /** The ID of the user for the status update. */
481
407
  user_id: string;
482
408
  /** The status that should be set for the user. */
483
409
  status: UpdateUserConnectionRequestStatus | (string & {});
484
410
  }
485
- export declare const UpdateUserConnectionRequest: S.Schema<UpdateUserConnectionRequest>;
486
411
  export interface UpdateUserConnectionResponse {
487
412
  /** Always `true` (a failed call raises a typed error instead). */
488
413
  ok: boolean;
489
414
  }
490
- export declare const UpdateUserConnectionResponse: S.Schema<UpdateUserConnectionResponse>;
491
415
  export interface ValidateManifestRequest {
492
416
  /** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
493
417
  manifest: string;
494
418
  /** The ID of the app whose configuration you want to validate. */
495
419
  app_id?: string;
496
420
  }
497
- export declare const ValidateManifestRequest: S.Schema<ValidateManifestRequest>;
498
421
  export type ValidateManifestResponseErrorsList = Array<string>;
499
- export declare const ValidateManifestResponseErrorsList: S.Schema<ValidateManifestResponseErrorsList>;
500
422
  export interface ValidateManifestResponseWarningsItem {
501
423
  code: string;
502
424
  message: string;
503
425
  pointer?: string;
504
426
  }
505
- export declare const ValidateManifestResponseWarningsItem: S.Schema<ValidateManifestResponseWarningsItem>;
506
427
  /** Non-blocking warnings from app manifest validation. */
507
428
  export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
508
- export declare const ValidateManifestResponseWarningsList: S.Schema<ValidateManifestResponseWarningsList>;
509
429
  export interface ValidateManifestResponse {
510
430
  /** Always `true` (a failed call raises a typed error instead). */
511
431
  ok: boolean;
@@ -513,74 +433,73 @@ export interface ValidateManifestResponse {
513
433
  /** Non-blocking warnings from app manifest validation. */
514
434
  warnings?: ValidateManifestResponseWarningsList;
515
435
  }
516
- export declare const ValidateManifestResponse: S.Schema<ValidateManifestResponse>;
517
436
  export type BulkDeleteError = SlackOpError;
518
- /** Delete items from a datastore in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be deleted - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkDelete */
437
+ /** Delete items from a datastore in bulk Required scopes -- bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be deleted - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkDelete */
519
438
  export declare const bulkDelete: API.OperationMethod<BulkDeleteRequest, BulkDeleteResponse, BulkDeleteError, SlackOpContext>;
520
439
  export type BulkGetError = SlackOpError;
521
- /** Get items from a datastore in bulk Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be retrieved - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkGet */
440
+ /** Get items from a datastore in bulk Required scopes -- bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be retrieved - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkGet */
522
441
  export declare const bulkGet: API.OperationMethod<BulkGetRequest, BulkGetResponse, BulkGetError, SlackOpContext>;
523
442
  export type BulkPutError = SlackOpError;
524
- /** Creates or replaces existing items in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be updated - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkPut */
443
+ /** Creates or replaces existing items in bulk Required scopes -- bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be updated - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkPut */
525
444
  export declare const bulkPut: API.OperationMethod<BulkPutRequest, BulkPutResponse, BulkPutError, SlackOpContext>;
526
445
  export type ConnectionsOpenError = SlackOpError;
527
- /** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` — The authenticated team cannot use this API - `insecure_request` — The method was not called via a `POST` request. - `internal_error` — An unexpected exception with the service has occurred. - `invalid_auth` — The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` — An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
446
+ /** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` -- The authenticated team cannot use this API - `insecure_request` -- The method was not called via a `POST` request. - `internal_error` -- An unexpected exception with the service has occurred. - `invalid_auth` -- The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` -- An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
528
447
  export declare const connectionsOpen: API.OperationMethod<ConnectionsOpenRequest, ConnectionsOpenResponse, ConnectionsOpenError, SlackOpContext>;
529
448
  export type CreateManifestError = SlackOpError;
530
- /** Create an app from an app manifest. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_arguments` — Invalid API arguments provided. - `invalid_manager_app` — The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` — The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` — The provided team ID is not valid - `not_in_team` — Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `failed_datastore_operation` — Failed while managing datastore infrastructure - `failed_generating_app_token` — App level token failed to generate. - `feature_not_enabled` — The required feature is not enabled for this workspace. - `managed_app_limit_reached` — The manager app has reached the maximum number of managed apps it can create. - `ratelimited` — Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` — Socket mode is not enabled in manifest. - `enterprise_is_restricted` — Org-level tokens are not allowed. - `unknown_method` — Unknown method - `dynamic_client_registration_invalid_redirect_uri` — The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` — Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` — Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` — The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` — The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` — The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` — The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
449
+ /** Create an app from an app manifest. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_arguments` -- Invalid API arguments provided. - `invalid_manager_app` -- The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` -- The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` -- The provided team ID is not valid - `not_in_team` -- Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `failed_generating_app_token` -- App level token failed to generate. - `feature_not_enabled` -- The required feature is not enabled for this workspace. - `managed_app_limit_reached` -- The manager app has reached the maximum number of managed apps it can create. - `ratelimited` -- Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` -- Socket mode is not enabled in manifest. - `enterprise_is_restricted` -- Org-level tokens are not allowed. - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
531
450
  export declare const createManifest: API.OperationMethod<CreateManifestRequest, CreateManifestResponse, CreateManifestError, SlackOpContext>;
532
451
  export type DatastoreCountError = SlackOpError;
533
- /** Count the number of items in a datastore that match a query Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.count */
452
+ /** Count the number of items in a datastore that match a query Required scopes -- bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to access datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore query not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.count */
534
453
  export declare const datastoreCount: API.OperationMethod<DatastoreCountRequest, DatastoreCountResponse, DatastoreCountError, SlackOpContext>;
535
454
  export type DatastoreQueryError = SlackOpError;
536
- /** Query a datastore for items Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.query */
455
+ /** Query a datastore for items Required scopes -- bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to access datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore query not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.query */
537
456
  export declare const datastoreQuery: API.PaginatedOperationMethod<DatastoreQueryRequest, DatastoreQueryResponse, DatastoreQueryError, SlackOpContext, DatastoreQueryResponseItemsItemMap>;
538
457
  export type DeleteAuthExternalError = SlackOpError;
539
- /** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete` — There was an error deleting tokens - `providers_not_found` — The provided `provider_key` is invalid - `no_tokens_found` — No tokens found to delete - `method_not_supported` — This API method is not supported - `app_not_found` — The provided `app_id` was not found - `token_not_found` — The token pointed to by the external_token_id input is not found - `invalid_auth` — The token used to invoke this API doesn't have permission to delete the token pointed to by the external_token_id input - `invalid_args` — The arguments provided to this API are invalid See https://docs.slack.dev/reference/methods/apps.auth.external.delete */
458
+ /** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete` -- There was an error deleting tokens - `providers_not_found` -- The provided `provider_key` is invalid - `no_tokens_found` -- No tokens found to delete - `method_not_supported` -- This API method is not supported - `app_not_found` -- The provided `app_id` was not found - `token_not_found` -- The token pointed to by the external_token_id input is not found - `invalid_auth` -- The token used to invoke this API doesn't have permission to delete the token pointed to by the external_token_id input - `invalid_args` -- The arguments provided to this API are invalid See https://docs.slack.dev/reference/methods/apps.auth.external.delete */
540
459
  export declare const deleteAuthExternal: API.OperationMethod<DeleteAuthExternalRequest, DeleteAuthExternalResponse, DeleteAuthExternalError, SlackOpContext>;
541
460
  export type DeleteDatastoreError = SlackOpError;
542
- /** Delete an item from a datastore Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to delete datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore delete not allowed on a free team. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.delete */
461
+ /** Delete an item from a datastore Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to delete datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore delete not allowed on a free team. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.delete */
543
462
  export declare const deleteDatastore: API.OperationMethod<DeleteDatastoreRequest, DeleteDatastoreResponse, DeleteDatastoreError, SlackOpContext>;
544
463
  export type DeleteManifestError = SlackOpError;
545
- /** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found. - `internal_error` — Internal error. - `invalid_app_id` — The app ID passed in was invalid. - `no_permission` — User described by the used token does not have proper permissions to take this action. - `published_app_only` — This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
464
+ /** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found. - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed in was invalid. - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `published_app_only` -- This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
546
465
  export declare const deleteManifest: API.OperationMethod<DeleteManifestRequest, DeleteManifestResponse, DeleteManifestError, SlackOpContext>;
547
466
  export type ExportManifestError = SlackOpError;
548
- /** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes — configuration: `app_configurations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found or has been deleted. - `failed_export` — Failed to export manifest for given app ID - `internal_error` — Internal error. - `invalid_app_id` — The app ID passed is invalid. - `no_permission` — User does not have proper permissions. - `unknown_method` — This method does not exist. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only access apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.export */
467
+ /** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes -- configuration: `app_configurations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_export` -- Failed to export manifest for given app ID - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed is invalid. - `no_permission` -- User does not have proper permissions. - `unknown_method` -- This method does not exist. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only access apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.export */
549
468
  export declare const exportManifest: API.OperationMethod<ExportManifestRequest, ExportManifestResponse, ExportManifestError, SlackOpContext>;
550
469
  export type GetAuthExternalError = SlackOpError;
551
- /** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found` — No token found for the passed external_token_id - `method_not_supported` — This API method is not supported - `no_refresh_token` — No refresh token found for the passed external_token_id - `access_token_exchange_failed` — There was an error while attempting to exchange or refresh token See https://docs.slack.dev/reference/methods/apps.auth.external.get */
470
+ /** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found` -- No token found for the passed external_token_id - `method_not_supported` -- This API method is not supported - `no_refresh_token` -- No refresh token found for the passed external_token_id - `access_token_exchange_failed` -- There was an error while attempting to exchange or refresh token See https://docs.slack.dev/reference/methods/apps.auth.external.get */
552
471
  export declare const getAuthExternal: API.OperationMethod<GetAuthExternalRequest, GetAuthExternalResponse, GetAuthExternalError, SlackOpContext>;
553
472
  export type GetDatastoreError = SlackOpError;
554
- /** Get an item from a datastore Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to get datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error. - `access_denied` — Not authorized to access to the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore get not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
473
+ /** Get an item from a datastore Required scopes -- bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to get datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error. - `access_denied` -- Not authorized to access to the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore get not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
555
474
  export declare const getDatastore: API.OperationMethod<GetDatastoreRequest, GetDatastoreResponse, GetDatastoreError, SlackOpContext>;
556
475
  export type ListActivitiesError = SlackOpError;
557
- /** Get logs for a specified app Required scopes — user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something went wrong on our end, please try again. - `invalid_app_id` — App ID provided is not valid. - `invalid_app` — App ID provided is not valid for team and user. - `invalid_args` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` — Feature is only available on a paid team. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.activities.list */
476
+ /** Get logs for a specified app Required scopes -- user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Something went wrong on our end, please try again. - `invalid_app_id` -- App ID provided is not valid. - `invalid_app` -- App ID provided is not valid for team and user. - `invalid_args` -- Required arguments either were not provided or contain invalid values. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` -- Feature is only available on a paid team. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.activities.list */
558
477
  export declare const listActivities: API.PaginatedOperationMethod<ListActivitiesRequest, ListActivitiesResponse, ListActivitiesError, SlackOpContext, unknown>;
559
478
  export type ListEventAuthorizationsError = SlackOpError;
560
- /** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` — The given authorization token is not associated with the app that sent this event. - `internal_error` — An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` — The `cursor` argument was invalid. - `invalid_event_context` — The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
479
+ /** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` -- The given authorization token is not associated with the app that sent this event. - `internal_error` -- An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` -- The `cursor` argument was invalid. - `invalid_event_context` -- The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
561
480
  export declare const listEventAuthorizations: API.PaginatedOperationMethod<ListEventAuthorizationsRequest, ListEventAuthorizationsResponse, ListEventAuthorizationsError, SlackOpContext, ListEventAuthorizationsResponseAuthorizationsItem>;
562
481
  export type PutDatastoreError = SlackOpError;
563
- /** Creates a new item, or replaces an old item with a new item. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
482
+ /** Creates a new item, or replaces an old item with a new item. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
564
483
  export declare const putDatastore: API.OperationMethod<PutDatastoreRequest, PutDatastoreResponse, PutDatastoreError, SlackOpContext>;
565
484
  export type SetIconError = SlackOpError;
566
- /** Sets the app icon Required scopes — user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` — Icon must be a valid image file. - `internal_error` — Internal error. - `icon_not_accessible` — The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` — App does not exist. - `invalid_app_id` — App ID is not valid. - `invalid_icon_size` — Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` — Only one of `URL` or `file` can be defined. - `missing_arguments` — One of `URL` or `file` must be provided. - `no_permission` — User does not have required permissions for app. - `unable_to_open_file` — Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
485
+ /** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
567
486
  export declare const setIcon: API.OperationMethod<SetIconRequest, SetIconResponse, SetIconError, SlackOpContext>;
568
487
  export type SetManagedPermissionsError = SlackOpError;
569
- /** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions as themselves, using a user token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes — configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token. - `access_denied` — The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` — The manager app the token was issued to is not eligible to configure app permissions. - `feature_not_enabled` — This method is not enabled for the manager app's organization. - `app_not_found` — This app does not exist. - `app_not_managed` — The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` — The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` — App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` — The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
488
+ /** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions as themselves, using a user token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token. - `access_denied` -- The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` -- The manager app the token was issued to is not eligible to configure app permissions. - `feature_not_enabled` -- This method is not enabled for the manager app's organization. - `app_not_found` -- This app does not exist. - `app_not_managed` -- The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` -- The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` -- App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` -- The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
570
489
  export declare const setManagedPermissions: API.OperationMethod<SetManagedPermissionsRequest, SetManagedPermissionsResponse, SetManagedPermissionsError, SlackOpContext>;
571
490
  export type UninstallAppError = SlackOpError;
572
- /** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `client_id_token_mismatch` — The provided client ID and token do not belong to the same app. - `internal_error` — Internal error uninstall - `invalid_client_id` — Value passed for `client_id` was invalid. - `no_permission` — Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
491
+ /** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `client_id_token_mismatch` -- The provided client ID and token do not belong to the same app. - `internal_error` -- Internal error uninstall - `invalid_client_id` -- Value passed for `client_id` was invalid. - `no_permission` -- Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
573
492
  export declare const uninstallApp: API.OperationMethod<UninstallAppRequest, UninstallAppResponse, UninstallAppError, SlackOpContext>;
574
493
  export type UpdateDatastoreError = SlackOpError;
575
- /** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
494
+ /** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
576
495
  export declare const updateDatastore: API.OperationMethod<UpdateDatastoreRequest, UpdateDatastoreResponse, UpdateDatastoreError, SlackOpContext>;
577
496
  export type UpdateManifestError = SlackOpError;
578
- /** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found or has been deleted. - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `failed_datastore_operation` — Failed while managing datastore infrastructure - `internal_error` — Internal error. - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_app_id` — The app id passed is invalid. - `invalid_manifest` — The provided manifest file does not validate against schema. - `no_permission` — User does not have permission to update app - `unknown_method` — Unknown method - `dynamic_client_registration_invalid_redirect_uri` — The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` — Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` — Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` — Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` — The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` — The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` — The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` — The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.update */
497
+ /** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `internal_error` -- Internal error. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `no_permission` -- User does not have permission to update app - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` -- Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.update */
579
498
  export declare const updateManifest: API.OperationMethod<UpdateManifestRequest, UpdateManifestResponse, UpdateManifestError, SlackOpContext>;
580
499
  export type UpdateUserConnectionError = SlackOpError;
581
- /** Updates the connection status between a user and an app. Required scopes — user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The app was not found. - `invalid_auth` — The token doesn't have access to this endpoint. - `app_not_subscribed` — The app is not subscribed to the required events. - `user_not_found` — Value passed for `user_id` was invalid. - `missing_scope` — The token provided doesn't have the required scopes. - `internal_error` — The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
500
+ /** Updates the connection status between a user and an app. Required scopes -- user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `invalid_auth` -- The token doesn't have access to this endpoint. - `app_not_subscribed` -- The app is not subscribed to the required events. - `user_not_found` -- Value passed for `user_id` was invalid. - `missing_scope` -- The token provided doesn't have the required scopes. - `internal_error` -- The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
582
501
  export declare const updateUserConnection: API.OperationMethod<UpdateUserConnectionRequest, UpdateUserConnectionResponse, UpdateUserConnectionError, SlackOpContext>;
583
502
  export type ValidateManifestError = SlackOpError;
584
- /** Validate an app manifest Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_app_id` — The app id passed is invalid. - `invalid_manifest` — The provided manifest file does not validate against schema. - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `unknown_method` — Unknown method - `no_permission` — User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
503
+ /** Validate an app manifest Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `unknown_method` -- Unknown method - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
585
504
  export declare const validateManifest: API.OperationMethod<ValidateManifestRequest, ValidateManifestResponse, ValidateManifestError, SlackOpContext>;
586
505
  //# sourceMappingURL=apps.d.ts.map