@distilled.cloud/slack 0.0.0 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +27 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +53 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +59 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +31 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +31 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +230 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +52 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +45 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/admin.d.ts +2796 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +3225 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/api.d.ts +23 -0
- package/lib/services/api.d.ts.map +1 -0
- package/lib/services/api.js +26 -0
- package/lib/services/api.js.map +1 -0
- package/lib/services/apps.d.ts +568 -0
- package/lib/services/apps.d.ts.map +1 -0
- package/lib/services/apps.js +584 -0
- package/lib/services/apps.js.map +1 -0
- package/lib/services/assistant.d.ts +290 -0
- package/lib/services/assistant.d.ts.map +1 -0
- package/lib/services/assistant.js +232 -0
- package/lib/services/assistant.js.map +1 -0
- package/lib/services/auth.d.ts +90 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +114 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/blocks.d.ts +31 -0
- package/lib/services/blocks.d.ts.map +1 -0
- package/lib/services/blocks.js +31 -0
- package/lib/services/blocks.js.map +1 -0
- package/lib/services/bookmarks.d.ts +91 -0
- package/lib/services/bookmarks.d.ts.map +1 -0
- package/lib/services/bookmarks.js +98 -0
- package/lib/services/bookmarks.js.map +1 -0
- package/lib/services/bots.d.ts +60 -0
- package/lib/services/bots.d.ts.map +1 -0
- package/lib/services/bots.js +68 -0
- package/lib/services/bots.js.map +1 -0
- package/lib/services/calls.d.ts +124 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +136 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/canvases.d.ts +152 -0
- package/lib/services/canvases.d.ts.map +1 -0
- package/lib/services/canvases.js +152 -0
- package/lib/services/canvases.js.map +1 -0
- package/lib/services/chat.d.ts +525 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +436 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/conversations.d.ts +642 -0
- package/lib/services/conversations.d.ts.map +1 -0
- package/lib/services/conversations.js +769 -0
- package/lib/services/conversations.js.map +1 -0
- package/lib/services/dialog.d.ts +20 -0
- package/lib/services/dialog.d.ts.map +1 -0
- package/lib/services/dialog.js +27 -0
- package/lib/services/dialog.js.map +1 -0
- package/lib/services/dnd.d.ts +94 -0
- package/lib/services/dnd.d.ts.map +1 -0
- package/lib/services/dnd.js +111 -0
- package/lib/services/dnd.js.map +1 -0
- package/lib/services/emoji.d.ts +35 -0
- package/lib/services/emoji.d.ts.map +1 -0
- package/lib/services/emoji.js +40 -0
- package/lib/services/emoji.js.map +1 -0
- package/lib/services/entity.d.ts +93 -0
- package/lib/services/entity.d.ts.map +1 -0
- package/lib/services/entity.js +89 -0
- package/lib/services/entity.js.map +1 -0
- package/lib/services/files.d.ts +473 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +510 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/functions.d.ts +235 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +261 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +36 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/lists.d.ts +300 -0
- package/lib/services/lists.d.ts.map +1 -0
- package/lib/services/lists.js +366 -0
- package/lib/services/lists.js.map +1 -0
- package/lib/services/migration.d.ts +34 -0
- package/lib/services/migration.d.ts.map +1 -0
- package/lib/services/migration.js +36 -0
- package/lib/services/migration.js.map +1 -0
- package/lib/services/oauth.d.ts +307 -0
- package/lib/services/oauth.d.ts.map +1 -0
- package/lib/services/oauth.js +278 -0
- package/lib/services/oauth.js.map +1 -0
- package/lib/services/openid.d.ts +86 -0
- package/lib/services/openid.d.ts.map +1 -0
- package/lib/services/openid.js +93 -0
- package/lib/services/openid.js.map +1 -0
- package/lib/services/pins.d.ts +64 -0
- package/lib/services/pins.d.ts.map +1 -0
- package/lib/services/pins.js +75 -0
- package/lib/services/pins.js.map +1 -0
- package/lib/services/reactions.d.ts +108 -0
- package/lib/services/reactions.d.ts.map +1 -0
- package/lib/services/reactions.js +119 -0
- package/lib/services/reactions.js.map +1 -0
- package/lib/services/reminders.d.ts +89 -0
- package/lib/services/reminders.d.ts.map +1 -0
- package/lib/services/reminders.js +109 -0
- package/lib/services/reminders.js.map +1 -0
- package/lib/services/rtm.d.ts +68 -0
- package/lib/services/rtm.d.ts.map +1 -0
- package/lib/services/rtm.js +74 -0
- package/lib/services/rtm.js.map +1 -0
- package/lib/services/search.d.ts +239 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +190 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/stars.d.ts +126 -0
- package/lib/services/stars.d.ts.map +1 -0
- package/lib/services/stars.js +145 -0
- package/lib/services/stars.js.map +1 -0
- package/lib/services/team.d.ts +309 -0
- package/lib/services/team.d.ts.map +1 -0
- package/lib/services/team.js +336 -0
- package/lib/services/team.js.map +1 -0
- package/lib/services/tooling.d.ts +31 -0
- package/lib/services/tooling.d.ts.map +1 -0
- package/lib/services/tooling.js +38 -0
- package/lib/services/tooling.js.map +1 -0
- package/lib/services/usergroups.d.ts +183 -0
- package/lib/services/usergroups.d.ts.map +1 -0
- package/lib/services/usergroups.js +180 -0
- package/lib/services/usergroups.js.map +1 -0
- package/lib/services/users.d.ts +246 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +309 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/views.d.ts +84 -0
- package/lib/services/views.d.ts.map +1 -0
- package/lib/services/views.js +95 -0
- package/lib/services/views.js.map +1 -0
- package/lib/services/workflows.d.ts +231 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +240 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +12 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -4
- package/src/credentials.ts +86 -0
- package/src/errors.ts +101 -0
- package/src/index.ts +20 -0
- package/src/pagination.ts +35 -0
- package/src/protocol.ts +326 -0
- package/src/retry.ts +76 -0
- package/src/services/admin.ts +7729 -0
- package/src/services/api.ts +58 -0
- package/src/services/apps.ts +1441 -0
- package/src/services/assistant.ts +639 -0
- package/src/services/auth.ts +241 -0
- package/src/services/blocks.ts +80 -0
- package/src/services/bookmarks.ts +223 -0
- package/src/services/bots.ts +144 -0
- package/src/services/calls.ts +318 -0
- package/src/services/canvases.ts +392 -0
- package/src/services/chat.ts +1191 -0
- package/src/services/conversations.ts +1754 -0
- package/src/services/dialog.ts +55 -0
- package/src/services/dnd.ts +246 -0
- package/src/services/emoji.ts +91 -0
- package/src/services/entity.ts +225 -0
- package/src/services/files.ts +1192 -0
- package/src/services/functions.ts +647 -0
- package/src/services/index.ts +35 -0
- package/src/services/lists.ts +832 -0
- package/src/services/migration.ts +85 -0
- package/src/services/oauth.ts +658 -0
- package/src/services/openid.ts +243 -0
- package/src/services/pins.ts +167 -0
- package/src/services/reactions.ts +272 -0
- package/src/services/reminders.ts +240 -0
- package/src/services/rtm.ts +162 -0
- package/src/services/search.ts +507 -0
- package/src/services/stars.ts +323 -0
- package/src/services/team.ts +836 -0
- package/src/services/tooling.ts +78 -0
- package/src/services/usergroups.ts +441 -0
- package/src/services/users.ts +685 -0
- package/src/services/views.ts +212 -0
- package/src/services/workflows.ts +607 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
5
|
+
export type { SlackOpError, SlackOpContext };
|
|
6
|
+
/** IDs of items to be deleted */
|
|
7
|
+
export type BulkDeleteRequestIdsList = Array<string>;
|
|
8
|
+
export declare const BulkDeleteRequestIdsList: S.Schema<BulkDeleteRequestIdsList>;
|
|
9
|
+
export interface BulkDeleteRequest {
|
|
10
|
+
/** name of the datastore */
|
|
11
|
+
datastore: string;
|
|
12
|
+
/** IDs of items to be deleted */
|
|
13
|
+
ids: BulkDeleteRequestIdsList;
|
|
14
|
+
app_id?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const BulkDeleteRequest: S.Schema<BulkDeleteRequest>;
|
|
17
|
+
/** attribute names and values of the items that failed to be processed */
|
|
18
|
+
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
19
|
+
export declare const BulkDeleteResponseFailedItemsList: S.Schema<BulkDeleteResponseFailedItemsList>;
|
|
20
|
+
export interface BulkDeleteResponse {
|
|
21
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
22
|
+
ok: boolean;
|
|
23
|
+
/** attribute names and values of the items that failed to be processed */
|
|
24
|
+
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
25
|
+
}
|
|
26
|
+
export declare const BulkDeleteResponse: S.Schema<BulkDeleteResponse>;
|
|
27
|
+
/** items' ids */
|
|
28
|
+
export type BulkGetRequestIdsList = Array<string>;
|
|
29
|
+
export declare const BulkGetRequestIdsList: S.Schema<BulkGetRequestIdsList>;
|
|
30
|
+
export interface BulkGetRequest {
|
|
31
|
+
/** name of the datastore */
|
|
32
|
+
datastore: string;
|
|
33
|
+
/** items' ids */
|
|
34
|
+
ids: BulkGetRequestIdsList;
|
|
35
|
+
app_id?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const BulkGetRequest: S.Schema<BulkGetRequest>;
|
|
38
|
+
export type BulkGetResponseItemsItemMap = {
|
|
39
|
+
[key: string]: unknown | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare const BulkGetResponseItemsItemMap: S.Schema<BulkGetResponseItemsItemMap>;
|
|
42
|
+
/** array of attribute names and values of each item */
|
|
43
|
+
export type BulkGetResponseItemsList = Array<BulkGetResponseItemsItemMap>;
|
|
44
|
+
export declare const BulkGetResponseItemsList: S.Schema<BulkGetResponseItemsList>;
|
|
45
|
+
/** attribute names and values of the items that failed to be processed */
|
|
46
|
+
export type BulkGetResponseFailedItemsList = Array<string>;
|
|
47
|
+
export declare const BulkGetResponseFailedItemsList: S.Schema<BulkGetResponseFailedItemsList>;
|
|
48
|
+
export interface BulkGetResponse {
|
|
49
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
50
|
+
ok: boolean;
|
|
51
|
+
/** array of attribute names and values of each item */
|
|
52
|
+
items?: BulkGetResponseItemsList;
|
|
53
|
+
/** attribute names and values of the items that failed to be processed */
|
|
54
|
+
failed_items?: BulkGetResponseFailedItemsList;
|
|
55
|
+
}
|
|
56
|
+
export declare const BulkGetResponse: S.Schema<BulkGetResponse>;
|
|
57
|
+
export type BulkPutRequestItemsItemMap = {
|
|
58
|
+
[key: string]: unknown | undefined;
|
|
59
|
+
};
|
|
60
|
+
export declare const BulkPutRequestItemsItemMap: S.Schema<BulkPutRequestItemsItemMap>;
|
|
61
|
+
/** attribute names and values of the items; limit of 25 */
|
|
62
|
+
export type BulkPutRequestItemsList = Array<BulkPutRequestItemsItemMap>;
|
|
63
|
+
export declare const BulkPutRequestItemsList: S.Schema<BulkPutRequestItemsList>;
|
|
64
|
+
export interface BulkPutRequest {
|
|
65
|
+
/** name of the datastore */
|
|
66
|
+
datastore: string;
|
|
67
|
+
/** attribute names and values of the items; limit of 25 */
|
|
68
|
+
items: BulkPutRequestItemsList;
|
|
69
|
+
app_id?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const BulkPutRequest: S.Schema<BulkPutRequest>;
|
|
72
|
+
export type BulkPutResponseFailedItemsItemMap = {
|
|
73
|
+
[key: string]: unknown | undefined;
|
|
74
|
+
};
|
|
75
|
+
export declare const BulkPutResponseFailedItemsItemMap: S.Schema<BulkPutResponseFailedItemsItemMap>;
|
|
76
|
+
/** attribute names and values of the items that failed to be processed */
|
|
77
|
+
export type BulkPutResponseFailedItemsList = Array<BulkPutResponseFailedItemsItemMap>;
|
|
78
|
+
export declare const BulkPutResponseFailedItemsList: S.Schema<BulkPutResponseFailedItemsList>;
|
|
79
|
+
export interface BulkPutResponse {
|
|
80
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
81
|
+
ok: boolean;
|
|
82
|
+
/** name of the datastore */
|
|
83
|
+
datastore?: string;
|
|
84
|
+
/** attribute names and values of the items that failed to be processed */
|
|
85
|
+
failed_items?: BulkPutResponseFailedItemsList;
|
|
86
|
+
}
|
|
87
|
+
export declare const BulkPutResponse: S.Schema<BulkPutResponse>;
|
|
88
|
+
export interface ConnectionsOpenRequest {
|
|
89
|
+
}
|
|
90
|
+
export declare const ConnectionsOpenRequest: S.Schema<ConnectionsOpenRequest>;
|
|
91
|
+
export interface ConnectionsOpenResponse {
|
|
92
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
93
|
+
ok: boolean;
|
|
94
|
+
/** The URL to connect to. */
|
|
95
|
+
url: string;
|
|
96
|
+
}
|
|
97
|
+
export declare const ConnectionsOpenResponse: S.Schema<ConnectionsOpenResponse>;
|
|
98
|
+
export interface CreateManifestRequest {
|
|
99
|
+
/** 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
|
+
manifest: string;
|
|
101
|
+
/** When called with an org token, which specific team to create app on */
|
|
102
|
+
team_id?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare const CreateManifestRequest: S.Schema<CreateManifestRequest>;
|
|
105
|
+
export interface CreateManifestResponseCredentials {
|
|
106
|
+
client_id?: string;
|
|
107
|
+
client_secret?: string | Redacted.Redacted<string>;
|
|
108
|
+
verification_token?: string;
|
|
109
|
+
signing_secret?: string | Redacted.Redacted<string>;
|
|
110
|
+
}
|
|
111
|
+
export declare const CreateManifestResponseCredentials: S.Schema<CreateManifestResponseCredentials>;
|
|
112
|
+
export interface CreateManifestResponse {
|
|
113
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
114
|
+
ok: boolean;
|
|
115
|
+
app_id: string;
|
|
116
|
+
credentials: CreateManifestResponseCredentials;
|
|
117
|
+
oauth_authorize_url?: string;
|
|
118
|
+
/** The team ID where the app was created on */
|
|
119
|
+
team_id?: string;
|
|
120
|
+
/** The team domain where the app was created on */
|
|
121
|
+
team_domain?: string;
|
|
122
|
+
app_token?: string;
|
|
123
|
+
}
|
|
124
|
+
export declare const CreateManifestResponse: S.Schema<CreateManifestResponse>;
|
|
125
|
+
/** A map of attributes referenced in expression */
|
|
126
|
+
export type DatastoreCountRequestExpressionAttributesMap = {
|
|
127
|
+
[key: string]: unknown | undefined;
|
|
128
|
+
};
|
|
129
|
+
export declare const DatastoreCountRequestExpressionAttributesMap: S.Schema<DatastoreCountRequestExpressionAttributesMap>;
|
|
130
|
+
/** A map of values referenced in expression */
|
|
131
|
+
export type DatastoreCountRequestExpressionValuesMap = {
|
|
132
|
+
[key: string]: unknown | undefined;
|
|
133
|
+
};
|
|
134
|
+
export declare const DatastoreCountRequestExpressionValuesMap: S.Schema<DatastoreCountRequestExpressionValuesMap>;
|
|
135
|
+
export interface DatastoreCountRequest {
|
|
136
|
+
/** Name of the datastore */
|
|
137
|
+
datastore: string;
|
|
138
|
+
/** A query filter expression */
|
|
139
|
+
expression?: string;
|
|
140
|
+
/** A map of attributes referenced in expression */
|
|
141
|
+
expression_attributes?: DatastoreCountRequestExpressionAttributesMap;
|
|
142
|
+
/** A map of values referenced in expression */
|
|
143
|
+
expression_values?: DatastoreCountRequestExpressionValuesMap;
|
|
144
|
+
/** Required if calling with user token */
|
|
145
|
+
app_id?: string;
|
|
146
|
+
}
|
|
147
|
+
export declare const DatastoreCountRequest: S.Schema<DatastoreCountRequest>;
|
|
148
|
+
export interface DatastoreCountResponse {
|
|
149
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
150
|
+
ok: boolean;
|
|
151
|
+
/** name of the datastore */
|
|
152
|
+
datastore?: string;
|
|
153
|
+
/** number of matching items */
|
|
154
|
+
count?: number;
|
|
155
|
+
}
|
|
156
|
+
export declare const DatastoreCountResponse: S.Schema<DatastoreCountResponse>;
|
|
157
|
+
/** A map of attributes referenced in expression */
|
|
158
|
+
export type DatastoreQueryRequestExpressionAttributesMap = {
|
|
159
|
+
[key: string]: unknown | undefined;
|
|
160
|
+
};
|
|
161
|
+
export declare const DatastoreQueryRequestExpressionAttributesMap: S.Schema<DatastoreQueryRequestExpressionAttributesMap>;
|
|
162
|
+
/** A map of values referenced in expression */
|
|
163
|
+
export type DatastoreQueryRequestExpressionValuesMap = {
|
|
164
|
+
[key: string]: unknown | undefined;
|
|
165
|
+
};
|
|
166
|
+
export declare const DatastoreQueryRequestExpressionValuesMap: S.Schema<DatastoreQueryRequestExpressionValuesMap>;
|
|
167
|
+
export interface DatastoreQueryRequest {
|
|
168
|
+
/** Name of the datastore */
|
|
169
|
+
datastore: string;
|
|
170
|
+
/** A query filter expression */
|
|
171
|
+
expression?: string;
|
|
172
|
+
/** A map of attributes referenced in expression */
|
|
173
|
+
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap;
|
|
174
|
+
/** A map of values referenced in expression */
|
|
175
|
+
expression_values?: DatastoreQueryRequestExpressionValuesMap;
|
|
176
|
+
/** Required if calling with user token */
|
|
177
|
+
app_id?: string;
|
|
178
|
+
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
179
|
+
cursor?: string;
|
|
180
|
+
/** 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
|
+
limit?: number;
|
|
182
|
+
}
|
|
183
|
+
export declare const DatastoreQueryRequest: S.Schema<DatastoreQueryRequest>;
|
|
184
|
+
export type DatastoreQueryResponseItemsItemMap = {
|
|
185
|
+
[key: string]: unknown | undefined;
|
|
186
|
+
};
|
|
187
|
+
export declare const DatastoreQueryResponseItemsItemMap: S.Schema<DatastoreQueryResponseItemsItemMap>;
|
|
188
|
+
/** attribute names and values of the items */
|
|
189
|
+
export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsItemMap>;
|
|
190
|
+
export declare const DatastoreQueryResponseItemsList: S.Schema<DatastoreQueryResponseItemsList>;
|
|
191
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
192
|
+
export interface DatastoreQueryResponseResponseMetadata {
|
|
193
|
+
/** Cursor for the next page — pass as `cursor` on the next call. */
|
|
194
|
+
next_cursor?: string;
|
|
195
|
+
}
|
|
196
|
+
export declare const DatastoreQueryResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
197
|
+
export interface DatastoreQueryResponse {
|
|
198
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
199
|
+
ok: boolean;
|
|
200
|
+
/** name of the datastore */
|
|
201
|
+
datastore?: string;
|
|
202
|
+
/** attribute names and values of the items */
|
|
203
|
+
items: DatastoreQueryResponseItemsList;
|
|
204
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
205
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
206
|
+
}
|
|
207
|
+
export declare const DatastoreQueryResponse: S.Schema<DatastoreQueryResponse>;
|
|
208
|
+
export interface DeleteAuthExternalRequest {
|
|
209
|
+
/** The id of the app whose tokens you want to delete */
|
|
210
|
+
app_id?: string;
|
|
211
|
+
/** The provider key of the provider whose tokens you want to delete */
|
|
212
|
+
provider_key?: string;
|
|
213
|
+
/** The id of the token that you want to delete */
|
|
214
|
+
external_token_id?: string;
|
|
215
|
+
}
|
|
216
|
+
export declare const DeleteAuthExternalRequest: S.Schema<DeleteAuthExternalRequest>;
|
|
217
|
+
export interface DeleteAuthExternalResponse {
|
|
218
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
219
|
+
ok: boolean;
|
|
220
|
+
}
|
|
221
|
+
export declare const DeleteAuthExternalResponse: S.Schema<DeleteAuthExternalResponse>;
|
|
222
|
+
export interface DeleteDatastoreRequest {
|
|
223
|
+
/** name of the datastore */
|
|
224
|
+
datastore: string;
|
|
225
|
+
/** item id */
|
|
226
|
+
id: string;
|
|
227
|
+
app_id?: string;
|
|
228
|
+
}
|
|
229
|
+
export declare const DeleteDatastoreRequest: S.Schema<DeleteDatastoreRequest>;
|
|
230
|
+
export interface DeleteDatastoreResponse {
|
|
231
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
232
|
+
ok: boolean;
|
|
233
|
+
}
|
|
234
|
+
export declare const DeleteDatastoreResponse: S.Schema<DeleteDatastoreResponse>;
|
|
235
|
+
export interface DeleteManifestRequest {
|
|
236
|
+
/** The ID of the app you want to delete. */
|
|
237
|
+
app_id: string;
|
|
238
|
+
}
|
|
239
|
+
export declare const DeleteManifestRequest: S.Schema<DeleteManifestRequest>;
|
|
240
|
+
export interface DeleteManifestResponse {
|
|
241
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
242
|
+
ok: boolean;
|
|
243
|
+
}
|
|
244
|
+
export declare const DeleteManifestResponse: S.Schema<DeleteManifestResponse>;
|
|
245
|
+
export interface ExportManifestRequest {
|
|
246
|
+
/** The ID of the app whose configuration you want to export as a manifest. */
|
|
247
|
+
app_id: string;
|
|
248
|
+
}
|
|
249
|
+
export declare const ExportManifestRequest: S.Schema<ExportManifestRequest>;
|
|
250
|
+
export interface ExportManifestResponse {
|
|
251
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
252
|
+
ok: boolean;
|
|
253
|
+
manifest: unknown;
|
|
254
|
+
}
|
|
255
|
+
export declare const ExportManifestResponse: S.Schema<ExportManifestResponse>;
|
|
256
|
+
export interface GetAuthExternalRequest {
|
|
257
|
+
/** The id of the token you want to get the token for */
|
|
258
|
+
external_token_id: string;
|
|
259
|
+
/** Always refresh existing token before returning even when the token has not expired */
|
|
260
|
+
force_refresh?: boolean;
|
|
261
|
+
}
|
|
262
|
+
export declare const GetAuthExternalRequest: S.Schema<GetAuthExternalRequest>;
|
|
263
|
+
export interface GetAuthExternalResponse {
|
|
264
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
265
|
+
ok: boolean;
|
|
266
|
+
external_token: string;
|
|
267
|
+
token_response_extras: unknown;
|
|
268
|
+
}
|
|
269
|
+
export declare const GetAuthExternalResponse: S.Schema<GetAuthExternalResponse>;
|
|
270
|
+
export interface GetDatastoreRequest {
|
|
271
|
+
/** name of the datastore */
|
|
272
|
+
datastore: string;
|
|
273
|
+
/** item id */
|
|
274
|
+
id: string;
|
|
275
|
+
app_id?: string;
|
|
276
|
+
}
|
|
277
|
+
export declare const GetDatastoreRequest: S.Schema<GetDatastoreRequest>;
|
|
278
|
+
/** attribute names and values of the item */
|
|
279
|
+
export type GetDatastoreResponseItemMap = {
|
|
280
|
+
[key: string]: unknown | undefined;
|
|
281
|
+
};
|
|
282
|
+
export declare const GetDatastoreResponseItemMap: S.Schema<GetDatastoreResponseItemMap>;
|
|
283
|
+
export interface GetDatastoreResponse {
|
|
284
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
285
|
+
ok: boolean;
|
|
286
|
+
/** name of the datastore */
|
|
287
|
+
datastore?: string;
|
|
288
|
+
/** attribute names and values of the item */
|
|
289
|
+
item?: GetDatastoreResponseItemMap;
|
|
290
|
+
}
|
|
291
|
+
export declare const GetDatastoreResponse: S.Schema<GetDatastoreResponse>;
|
|
292
|
+
/** The direction you want the data sorted by (always by timestamp) */
|
|
293
|
+
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
294
|
+
export declare const ListActivitiesRequestSortDirection: any;
|
|
295
|
+
export interface ListActivitiesRequest {
|
|
296
|
+
/** The id of the app to get activities from. */
|
|
297
|
+
app_id: string;
|
|
298
|
+
/** The team who owns this log. */
|
|
299
|
+
team_id?: string;
|
|
300
|
+
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
301
|
+
cursor?: string;
|
|
302
|
+
/** The maximum number of items to return. */
|
|
303
|
+
limit?: number;
|
|
304
|
+
/** The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal'). */
|
|
305
|
+
min_log_level?: string;
|
|
306
|
+
/** The event type of log events to be returned. */
|
|
307
|
+
log_event_type?: string;
|
|
308
|
+
/** The source of log events to be returned. Acceptable values are ('slack', 'developer'). */
|
|
309
|
+
source?: string;
|
|
310
|
+
/** The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). */
|
|
311
|
+
component_type?: string;
|
|
312
|
+
/** The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for workflows */
|
|
313
|
+
component_id?: string;
|
|
314
|
+
/** The trace id of log events to be returned. */
|
|
315
|
+
trace_id?: string;
|
|
316
|
+
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
317
|
+
min_date_created?: number;
|
|
318
|
+
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
319
|
+
max_date_created?: number;
|
|
320
|
+
/** The direction you want the data sorted by (always by timestamp) */
|
|
321
|
+
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
322
|
+
}
|
|
323
|
+
export declare const ListActivitiesRequest: S.Schema<ListActivitiesRequest>;
|
|
324
|
+
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
325
|
+
export declare const ListActivitiesResponseActivitiesList: S.Schema<ListActivitiesResponseActivitiesList>;
|
|
326
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
327
|
+
export type ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
328
|
+
export declare const ListActivitiesResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
329
|
+
export interface ListActivitiesResponse {
|
|
330
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
331
|
+
ok: boolean;
|
|
332
|
+
activities: ListActivitiesResponseActivitiesList;
|
|
333
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
334
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
335
|
+
}
|
|
336
|
+
export declare const ListActivitiesResponse: S.Schema<ListActivitiesResponse>;
|
|
337
|
+
export interface ListEventAuthorizationsRequest {
|
|
338
|
+
event_context: string;
|
|
339
|
+
cursor?: string;
|
|
340
|
+
limit?: number;
|
|
341
|
+
}
|
|
342
|
+
export declare const ListEventAuthorizationsRequest: S.Schema<ListEventAuthorizationsRequest>;
|
|
343
|
+
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
344
|
+
enterprise_id: string | null;
|
|
345
|
+
team_id: string | null;
|
|
346
|
+
user_id: string;
|
|
347
|
+
is_bot: boolean;
|
|
348
|
+
is_enterprise_install: boolean;
|
|
349
|
+
}
|
|
350
|
+
export declare const ListEventAuthorizationsResponseAuthorizationsItem: S.Schema<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
351
|
+
export type ListEventAuthorizationsResponseAuthorizationsList = Array<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
352
|
+
export declare const ListEventAuthorizationsResponseAuthorizationsList: S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
|
|
353
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
354
|
+
export type ListEventAuthorizationsResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
355
|
+
export declare const ListEventAuthorizationsResponseResponseMetadata: S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
356
|
+
export interface ListEventAuthorizationsResponse {
|
|
357
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
358
|
+
ok: boolean;
|
|
359
|
+
/** The next cursor for use in [pagination](/apis/web-api/pagination). If present, pass this in subsequent calls to get additional results */
|
|
360
|
+
cursor_next?: string;
|
|
361
|
+
authorizations: ListEventAuthorizationsResponseAuthorizationsList;
|
|
362
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
363
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
364
|
+
}
|
|
365
|
+
export declare const ListEventAuthorizationsResponse: S.Schema<ListEventAuthorizationsResponse>;
|
|
366
|
+
/** attribute names and values of the item */
|
|
367
|
+
export type PutDatastoreRequestItemMap = {
|
|
368
|
+
[key: string]: unknown | undefined;
|
|
369
|
+
};
|
|
370
|
+
export declare const PutDatastoreRequestItemMap: S.Schema<PutDatastoreRequestItemMap>;
|
|
371
|
+
export interface PutDatastoreRequest {
|
|
372
|
+
/** name of the datastore */
|
|
373
|
+
datastore: string;
|
|
374
|
+
/** attribute names and values of the item */
|
|
375
|
+
item: PutDatastoreRequestItemMap;
|
|
376
|
+
app_id?: string;
|
|
377
|
+
}
|
|
378
|
+
export declare const PutDatastoreRequest: S.Schema<PutDatastoreRequest>;
|
|
379
|
+
/** attribute names and values of the item */
|
|
380
|
+
export type PutDatastoreResponseItemMap = {
|
|
381
|
+
[key: string]: unknown | undefined;
|
|
382
|
+
};
|
|
383
|
+
export declare const PutDatastoreResponseItemMap: S.Schema<PutDatastoreResponseItemMap>;
|
|
384
|
+
export interface PutDatastoreResponse {
|
|
385
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
386
|
+
ok: boolean;
|
|
387
|
+
/** name of the datastore */
|
|
388
|
+
datastore?: string;
|
|
389
|
+
/** attribute names and values of the item */
|
|
390
|
+
item?: PutDatastoreResponseItemMap;
|
|
391
|
+
}
|
|
392
|
+
export declare const PutDatastoreResponse: S.Schema<PutDatastoreResponse>;
|
|
393
|
+
export interface SetIconRequest {
|
|
394
|
+
/** The ID of the app whose icon you want to set. */
|
|
395
|
+
app_id: string;
|
|
396
|
+
/** File contents via `multipart/form-data` */
|
|
397
|
+
file?: unknown;
|
|
398
|
+
/** URL of a publicly hosted image */
|
|
399
|
+
url?: string;
|
|
400
|
+
}
|
|
401
|
+
export declare const SetIconRequest: S.Schema<SetIconRequest>;
|
|
402
|
+
export interface SetIconResponse {
|
|
403
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
404
|
+
ok: boolean;
|
|
405
|
+
}
|
|
406
|
+
export declare const SetIconResponse: S.Schema<SetIconResponse>;
|
|
407
|
+
export interface UninstallAppRequest {
|
|
408
|
+
/** Issued when you created your application. */
|
|
409
|
+
client_id: string;
|
|
410
|
+
/** Issued when you created your application. */
|
|
411
|
+
client_secret: string | Redacted.Redacted<string>;
|
|
412
|
+
}
|
|
413
|
+
export declare const UninstallAppRequest: S.Schema<UninstallAppRequest>;
|
|
414
|
+
export interface UninstallAppResponse {
|
|
415
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
416
|
+
ok: boolean;
|
|
417
|
+
uninstalled: boolean;
|
|
418
|
+
}
|
|
419
|
+
export declare const UninstallAppResponse: S.Schema<UninstallAppResponse>;
|
|
420
|
+
/** attribute names and values to be updated */
|
|
421
|
+
export type UpdateDatastoreRequestItemMap = {
|
|
422
|
+
[key: string]: unknown | undefined;
|
|
423
|
+
};
|
|
424
|
+
export declare const UpdateDatastoreRequestItemMap: S.Schema<UpdateDatastoreRequestItemMap>;
|
|
425
|
+
export interface UpdateDatastoreRequest {
|
|
426
|
+
/** name of the datastore */
|
|
427
|
+
datastore: string;
|
|
428
|
+
/** attribute names and values to be updated */
|
|
429
|
+
item: UpdateDatastoreRequestItemMap;
|
|
430
|
+
app_id?: string;
|
|
431
|
+
}
|
|
432
|
+
export declare const UpdateDatastoreRequest: S.Schema<UpdateDatastoreRequest>;
|
|
433
|
+
/** attribute names and values of the item, including those updated */
|
|
434
|
+
export type UpdateDatastoreResponseItemMap = {
|
|
435
|
+
[key: string]: unknown | undefined;
|
|
436
|
+
};
|
|
437
|
+
export declare const UpdateDatastoreResponseItemMap: S.Schema<UpdateDatastoreResponseItemMap>;
|
|
438
|
+
export interface UpdateDatastoreResponse {
|
|
439
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
440
|
+
ok: boolean;
|
|
441
|
+
/** name of the datastore */
|
|
442
|
+
datastore?: string;
|
|
443
|
+
/** attribute names and values of the item, including those updated */
|
|
444
|
+
item?: UpdateDatastoreResponseItemMap;
|
|
445
|
+
}
|
|
446
|
+
export declare const UpdateDatastoreResponse: S.Schema<UpdateDatastoreResponse>;
|
|
447
|
+
export interface UpdateManifestRequest {
|
|
448
|
+
/** 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. */
|
|
449
|
+
manifest: string;
|
|
450
|
+
/** The ID of the app whose configuration you want to update. */
|
|
451
|
+
app_id: string;
|
|
452
|
+
}
|
|
453
|
+
export declare const UpdateManifestRequest: S.Schema<UpdateManifestRequest>;
|
|
454
|
+
export interface UpdateManifestResponse {
|
|
455
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
456
|
+
ok: boolean;
|
|
457
|
+
app_id: string;
|
|
458
|
+
permissions_updated?: boolean;
|
|
459
|
+
}
|
|
460
|
+
export declare const UpdateManifestResponse: S.Schema<UpdateManifestResponse>;
|
|
461
|
+
/** The status that should be set for the user. */
|
|
462
|
+
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
463
|
+
export declare const UpdateUserConnectionRequestStatus: any;
|
|
464
|
+
export interface UpdateUserConnectionRequest {
|
|
465
|
+
/** The ID of the user for the status update. */
|
|
466
|
+
user_id: string;
|
|
467
|
+
/** The status that should be set for the user. */
|
|
468
|
+
status: UpdateUserConnectionRequestStatus | (string & {});
|
|
469
|
+
}
|
|
470
|
+
export declare const UpdateUserConnectionRequest: S.Schema<UpdateUserConnectionRequest>;
|
|
471
|
+
export interface UpdateUserConnectionResponse {
|
|
472
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
473
|
+
ok: boolean;
|
|
474
|
+
}
|
|
475
|
+
export declare const UpdateUserConnectionResponse: S.Schema<UpdateUserConnectionResponse>;
|
|
476
|
+
export interface ValidateManifestRequest {
|
|
477
|
+
/** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
478
|
+
manifest: string;
|
|
479
|
+
/** The ID of the app whose configuration you want to validate. */
|
|
480
|
+
app_id?: string;
|
|
481
|
+
}
|
|
482
|
+
export declare const ValidateManifestRequest: S.Schema<ValidateManifestRequest>;
|
|
483
|
+
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
484
|
+
export declare const ValidateManifestResponseErrorsList: S.Schema<ValidateManifestResponseErrorsList>;
|
|
485
|
+
export interface ValidateManifestResponseWarningsItem {
|
|
486
|
+
code: string;
|
|
487
|
+
message: string;
|
|
488
|
+
pointer?: string;
|
|
489
|
+
}
|
|
490
|
+
export declare const ValidateManifestResponseWarningsItem: S.Schema<ValidateManifestResponseWarningsItem>;
|
|
491
|
+
/** Non-blocking warnings from app manifest validation. */
|
|
492
|
+
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
493
|
+
export declare const ValidateManifestResponseWarningsList: S.Schema<ValidateManifestResponseWarningsList>;
|
|
494
|
+
export interface ValidateManifestResponse {
|
|
495
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
496
|
+
ok: boolean;
|
|
497
|
+
errors: ValidateManifestResponseErrorsList;
|
|
498
|
+
/** Non-blocking warnings from app manifest validation. */
|
|
499
|
+
warnings?: ValidateManifestResponseWarningsList;
|
|
500
|
+
}
|
|
501
|
+
export declare const ValidateManifestResponse: S.Schema<ValidateManifestResponse>;
|
|
502
|
+
export type BulkDeleteError = SlackOpError;
|
|
503
|
+
/** 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 */
|
|
504
|
+
export declare const bulkDelete: API.OperationMethod<BulkDeleteRequest, BulkDeleteResponse, BulkDeleteError, SlackOpContext>;
|
|
505
|
+
export type BulkGetError = SlackOpError;
|
|
506
|
+
/** 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 */
|
|
507
|
+
export declare const bulkGet: API.OperationMethod<BulkGetRequest, BulkGetResponse, BulkGetError, SlackOpContext>;
|
|
508
|
+
export type BulkPutError = SlackOpError;
|
|
509
|
+
/** 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 */
|
|
510
|
+
export declare const bulkPut: API.OperationMethod<BulkPutRequest, BulkPutResponse, BulkPutError, SlackOpContext>;
|
|
511
|
+
export type ConnectionsOpenError = SlackOpError;
|
|
512
|
+
/** 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 */
|
|
513
|
+
export declare const connectionsOpen: API.OperationMethod<ConnectionsOpenRequest, ConnectionsOpenResponse, ConnectionsOpenError, SlackOpContext>;
|
|
514
|
+
export type CreateManifestError = SlackOpError;
|
|
515
|
+
/** 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 */
|
|
516
|
+
export declare const createManifest: API.OperationMethod<CreateManifestRequest, CreateManifestResponse, CreateManifestError, SlackOpContext>;
|
|
517
|
+
export type DatastoreCountError = SlackOpError;
|
|
518
|
+
/** 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 */
|
|
519
|
+
export declare const datastoreCount: API.OperationMethod<DatastoreCountRequest, DatastoreCountResponse, DatastoreCountError, SlackOpContext>;
|
|
520
|
+
export type DatastoreQueryError = SlackOpError;
|
|
521
|
+
/** 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 */
|
|
522
|
+
export declare const datastoreQuery: API.PaginatedOperationMethod<DatastoreQueryRequest, DatastoreQueryResponse, DatastoreQueryError, SlackOpContext, DatastoreQueryResponseItemsItemMap>;
|
|
523
|
+
export type DeleteAuthExternalError = SlackOpError;
|
|
524
|
+
/** 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 */
|
|
525
|
+
export declare const deleteAuthExternal: API.OperationMethod<DeleteAuthExternalRequest, DeleteAuthExternalResponse, DeleteAuthExternalError, SlackOpContext>;
|
|
526
|
+
export type DeleteDatastoreError = SlackOpError;
|
|
527
|
+
/** 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 */
|
|
528
|
+
export declare const deleteDatastore: API.OperationMethod<DeleteDatastoreRequest, DeleteDatastoreResponse, DeleteDatastoreError, SlackOpContext>;
|
|
529
|
+
export type DeleteManifestError = SlackOpError;
|
|
530
|
+
/** 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 */
|
|
531
|
+
export declare const deleteManifest: API.OperationMethod<DeleteManifestRequest, DeleteManifestResponse, DeleteManifestError, SlackOpContext>;
|
|
532
|
+
export type ExportManifestError = SlackOpError;
|
|
533
|
+
/** 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 */
|
|
534
|
+
export declare const exportManifest: API.OperationMethod<ExportManifestRequest, ExportManifestResponse, ExportManifestError, SlackOpContext>;
|
|
535
|
+
export type GetAuthExternalError = SlackOpError;
|
|
536
|
+
/** 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 */
|
|
537
|
+
export declare const getAuthExternal: API.OperationMethod<GetAuthExternalRequest, GetAuthExternalResponse, GetAuthExternalError, SlackOpContext>;
|
|
538
|
+
export type GetDatastoreError = SlackOpError;
|
|
539
|
+
/** 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 */
|
|
540
|
+
export declare const getDatastore: API.OperationMethod<GetDatastoreRequest, GetDatastoreResponse, GetDatastoreError, SlackOpContext>;
|
|
541
|
+
export type ListActivitiesError = SlackOpError;
|
|
542
|
+
/** 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 */
|
|
543
|
+
export declare const listActivities: API.PaginatedOperationMethod<ListActivitiesRequest, ListActivitiesResponse, ListActivitiesError, SlackOpContext, unknown>;
|
|
544
|
+
export type ListEventAuthorizationsError = SlackOpError;
|
|
545
|
+
/** 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 */
|
|
546
|
+
export declare const listEventAuthorizations: API.PaginatedOperationMethod<ListEventAuthorizationsRequest, ListEventAuthorizationsResponse, ListEventAuthorizationsError, SlackOpContext, ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
547
|
+
export type PutDatastoreError = SlackOpError;
|
|
548
|
+
/** 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 */
|
|
549
|
+
export declare const putDatastore: API.OperationMethod<PutDatastoreRequest, PutDatastoreResponse, PutDatastoreError, SlackOpContext>;
|
|
550
|
+
export type SetIconError = SlackOpError;
|
|
551
|
+
/** Sets the app icon Required scopes — user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `error_bad_format` — Icon must be a valid image file. - `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 */
|
|
552
|
+
export declare const setIcon: API.OperationMethod<SetIconRequest, SetIconResponse, SetIconError, SlackOpContext>;
|
|
553
|
+
export type UninstallAppError = SlackOpError;
|
|
554
|
+
/** 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 */
|
|
555
|
+
export declare const uninstallApp: API.OperationMethod<UninstallAppRequest, UninstallAppResponse, UninstallAppError, SlackOpContext>;
|
|
556
|
+
export type UpdateDatastoreError = SlackOpError;
|
|
557
|
+
/** 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 */
|
|
558
|
+
export declare const updateDatastore: API.OperationMethod<UpdateDatastoreRequest, UpdateDatastoreResponse, UpdateDatastoreError, SlackOpContext>;
|
|
559
|
+
export type UpdateManifestError = SlackOpError;
|
|
560
|
+
/** 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 */
|
|
561
|
+
export declare const updateManifest: API.OperationMethod<UpdateManifestRequest, UpdateManifestResponse, UpdateManifestError, SlackOpContext>;
|
|
562
|
+
export type UpdateUserConnectionError = SlackOpError;
|
|
563
|
+
/** 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. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
564
|
+
export declare const updateUserConnection: API.OperationMethod<UpdateUserConnectionRequest, UpdateUserConnectionResponse, UpdateUserConnectionError, SlackOpContext>;
|
|
565
|
+
export type ValidateManifestError = SlackOpError;
|
|
566
|
+
/** 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 */
|
|
567
|
+
export declare const validateManifest: API.OperationMethod<ValidateManifestRequest, ValidateManifestResponse, ValidateManifestError, SlackOpContext>;
|
|
568
|
+
//# sourceMappingURL=apps.d.ts.map
|