@distilled.cloud/slack 1.0.0-rc.18 → 1.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/protocol.d.ts +2 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -140
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +2 -2
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +32 -32
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +27 -27
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +3 -3
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +19 -19
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +23 -23
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +10 -10
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +18 -18
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +103 -103
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +38 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +14 -14
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +6 -6
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +14 -14
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +26 -26
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +3 -3
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +102 -102
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +40 -40
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +9 -9
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +23 -23
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +8 -8
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +11 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +84 -80
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +39 -37
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +37 -37
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +9 -9
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +6 -6
- package/src/protocol.ts +3 -5
- package/src/services/admin.ts +1609 -1016
- package/src/services/agents.ts +93 -103
- package/src/services/api.ts +2 -2
- package/src/services/apps.ts +74 -74
- package/src/services/assistant.ts +88 -56
- package/src/services/auth.ts +27 -27
- package/src/services/blocks.ts +3 -3
- package/src/services/bookmarks.ts +19 -19
- package/src/services/bots.ts +23 -23
- package/src/services/calls.ts +10 -10
- package/src/services/canvases.ts +50 -46
- package/src/services/chat.ts +103 -103
- package/src/services/conversations.ts +126 -115
- package/src/services/dnd.ts +14 -14
- package/src/services/emoji.ts +6 -6
- package/src/services/entity.ts +14 -14
- package/src/services/files.ts +106 -106
- package/src/services/functions.ts +37 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +49 -46
- package/src/services/migration.ts +3 -3
- package/src/services/oauth.ts +102 -102
- package/src/services/openid.ts +40 -40
- package/src/services/pins.ts +9 -9
- package/src/services/reactions.ts +23 -23
- package/src/services/reminders.ts +8 -8
- package/src/services/rtm.ts +11 -11
- package/src/services/search.ts +123 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +16 -16
- package/src/services/team.ts +42 -37
- package/src/services/usergroups.ts +30 -30
- package/src/services/users.ts +37 -37
- package/src/services/views.ts +9 -9
- package/src/services/workflows.ts +16 -16
package/src/services/apps.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface BulkDeleteRequest {
|
|
|
33
33
|
datastore: string;
|
|
34
34
|
/** IDs of items to be deleted */
|
|
35
35
|
ids: BulkDeleteRequestIdsList;
|
|
36
|
-
app_id?: string;
|
|
36
|
+
app_id?: string | undefined;
|
|
37
37
|
}
|
|
38
38
|
/** attribute names and values of the items that failed to be processed */
|
|
39
39
|
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
@@ -41,7 +41,7 @@ export interface BulkDeleteResponse {
|
|
|
41
41
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
42
42
|
ok: boolean;
|
|
43
43
|
/** attribute names and values of the items that failed to be processed */
|
|
44
|
-
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
44
|
+
failed_items?: BulkDeleteResponseFailedItemsList | undefined;
|
|
45
45
|
}
|
|
46
46
|
/** items' ids */
|
|
47
47
|
export type BulkGetRequestIdsList = Array<string>;
|
|
@@ -50,7 +50,7 @@ export interface BulkGetRequest {
|
|
|
50
50
|
datastore: string;
|
|
51
51
|
/** items' ids */
|
|
52
52
|
ids: BulkGetRequestIdsList;
|
|
53
|
-
app_id?: string;
|
|
53
|
+
app_id?: string | undefined;
|
|
54
54
|
}
|
|
55
55
|
export type BulkGetResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
56
56
|
/** array of attribute names and values of each item */
|
|
@@ -61,9 +61,9 @@ export interface BulkGetResponse {
|
|
|
61
61
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
62
62
|
ok: boolean;
|
|
63
63
|
/** array of attribute names and values of each item */
|
|
64
|
-
items?: BulkGetResponseItemsList;
|
|
64
|
+
items?: BulkGetResponseItemsList | undefined;
|
|
65
65
|
/** attribute names and values of the items that failed to be processed */
|
|
66
|
-
failed_items?: BulkGetResponseFailedItemsList;
|
|
66
|
+
failed_items?: BulkGetResponseFailedItemsList | undefined;
|
|
67
67
|
}
|
|
68
68
|
export type BulkPutRequestItemsItemMap = { [key: string]: unknown | undefined };
|
|
69
69
|
/** attribute names and values of the items; limit of 25 */
|
|
@@ -73,7 +73,7 @@ export interface BulkPutRequest {
|
|
|
73
73
|
datastore: string;
|
|
74
74
|
/** attribute names and values of the items; limit of 25 */
|
|
75
75
|
items: BulkPutRequestItemsList;
|
|
76
|
-
app_id?: string;
|
|
76
|
+
app_id?: string | undefined;
|
|
77
77
|
}
|
|
78
78
|
export type BulkPutResponseFailedItemsItemMap = { [key: string]: unknown | undefined };
|
|
79
79
|
/** attribute names and values of the items that failed to be processed */
|
|
@@ -82,9 +82,9 @@ export interface BulkPutResponse {
|
|
|
82
82
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
83
83
|
ok: boolean;
|
|
84
84
|
/** name of the datastore */
|
|
85
|
-
datastore?: string;
|
|
85
|
+
datastore?: string | undefined;
|
|
86
86
|
/** attribute names and values of the items that failed to be processed */
|
|
87
|
-
failed_items?: BulkPutResponseFailedItemsList;
|
|
87
|
+
failed_items?: BulkPutResponseFailedItemsList | undefined;
|
|
88
88
|
}
|
|
89
89
|
export interface ConnectionsOpenRequest {}
|
|
90
90
|
export interface ConnectionsOpenResponse {
|
|
@@ -97,25 +97,25 @@ export interface CreateManifestRequest {
|
|
|
97
97
|
/** 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). */
|
|
98
98
|
manifest: string;
|
|
99
99
|
/** When called with an org token, which specific team to create app on */
|
|
100
|
-
team_id?: string;
|
|
100
|
+
team_id?: string | undefined;
|
|
101
101
|
}
|
|
102
102
|
export interface CreateManifestResponseCredentials {
|
|
103
|
-
client_id?: string;
|
|
104
|
-
client_secret?: string | Redacted.Redacted<string
|
|
105
|
-
verification_token?: string;
|
|
106
|
-
signing_secret?: string | Redacted.Redacted<string
|
|
103
|
+
client_id?: string | undefined;
|
|
104
|
+
client_secret?: string | Redacted.Redacted<string> | undefined;
|
|
105
|
+
verification_token?: string | undefined;
|
|
106
|
+
signing_secret?: string | Redacted.Redacted<string> | undefined;
|
|
107
107
|
}
|
|
108
108
|
export interface CreateManifestResponse {
|
|
109
109
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
110
110
|
ok: boolean;
|
|
111
111
|
app_id: string;
|
|
112
112
|
credentials: CreateManifestResponseCredentials;
|
|
113
|
-
oauth_authorize_url?: string;
|
|
113
|
+
oauth_authorize_url?: string | undefined;
|
|
114
114
|
/** The team ID where the app was created on */
|
|
115
|
-
team_id?: string;
|
|
115
|
+
team_id?: string | undefined;
|
|
116
116
|
/** The team domain where the app was created on */
|
|
117
|
-
team_domain?: string;
|
|
118
|
-
app_token?: string;
|
|
117
|
+
team_domain?: string | undefined;
|
|
118
|
+
app_token?: string | undefined;
|
|
119
119
|
}
|
|
120
120
|
/** A map of attributes referenced in expression */
|
|
121
121
|
export type DatastoreCountRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
@@ -125,21 +125,21 @@ export interface DatastoreCountRequest {
|
|
|
125
125
|
/** Name of the datastore */
|
|
126
126
|
datastore: string;
|
|
127
127
|
/** A query filter expression */
|
|
128
|
-
expression?: string;
|
|
128
|
+
expression?: string | undefined;
|
|
129
129
|
/** A map of attributes referenced in expression */
|
|
130
|
-
expression_attributes?: DatastoreCountRequestExpressionAttributesMap;
|
|
130
|
+
expression_attributes?: DatastoreCountRequestExpressionAttributesMap | undefined;
|
|
131
131
|
/** A map of values referenced in expression */
|
|
132
|
-
expression_values?: DatastoreCountRequestExpressionValuesMap;
|
|
132
|
+
expression_values?: DatastoreCountRequestExpressionValuesMap | undefined;
|
|
133
133
|
/** Required if calling with user token */
|
|
134
|
-
app_id?: string;
|
|
134
|
+
app_id?: string | undefined;
|
|
135
135
|
}
|
|
136
136
|
export interface DatastoreCountResponse {
|
|
137
137
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
138
138
|
ok: boolean;
|
|
139
139
|
/** name of the datastore */
|
|
140
|
-
datastore?: string;
|
|
140
|
+
datastore?: string | undefined;
|
|
141
141
|
/** number of matching items */
|
|
142
|
-
count?: number;
|
|
142
|
+
count?: number | undefined;
|
|
143
143
|
}
|
|
144
144
|
/** A map of attributes referenced in expression */
|
|
145
145
|
export type DatastoreQueryRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
@@ -149,17 +149,17 @@ export interface DatastoreQueryRequest {
|
|
|
149
149
|
/** Name of the datastore */
|
|
150
150
|
datastore: string;
|
|
151
151
|
/** A query filter expression */
|
|
152
|
-
expression?: string;
|
|
152
|
+
expression?: string | undefined;
|
|
153
153
|
/** A map of attributes referenced in expression */
|
|
154
|
-
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap;
|
|
154
|
+
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap | undefined;
|
|
155
155
|
/** A map of values referenced in expression */
|
|
156
|
-
expression_values?: DatastoreQueryRequestExpressionValuesMap;
|
|
156
|
+
expression_values?: DatastoreQueryRequestExpressionValuesMap | undefined;
|
|
157
157
|
/** Required if calling with user token */
|
|
158
|
-
app_id?: string;
|
|
158
|
+
app_id?: string | undefined;
|
|
159
159
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
160
|
-
cursor?: string;
|
|
160
|
+
cursor?: string | undefined;
|
|
161
161
|
/** 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. */
|
|
162
|
-
limit?: number;
|
|
162
|
+
limit?: number | undefined;
|
|
163
163
|
}
|
|
164
164
|
export type DatastoreQueryResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
165
165
|
/** attribute names and values of the items */
|
|
@@ -167,25 +167,25 @@ export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsI
|
|
|
167
167
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
168
168
|
export interface DatastoreQueryResponseResponseMetadata {
|
|
169
169
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
170
|
-
next_cursor?: string;
|
|
170
|
+
next_cursor?: string | undefined;
|
|
171
171
|
}
|
|
172
172
|
export interface DatastoreQueryResponse {
|
|
173
173
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
174
174
|
ok: boolean;
|
|
175
175
|
/** name of the datastore */
|
|
176
|
-
datastore?: string;
|
|
176
|
+
datastore?: string | undefined;
|
|
177
177
|
/** attribute names and values of the items */
|
|
178
178
|
items: DatastoreQueryResponseItemsList;
|
|
179
179
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
180
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
180
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
181
181
|
}
|
|
182
182
|
export interface DeleteAuthExternalRequest {
|
|
183
183
|
/** The id of the app whose tokens you want to delete */
|
|
184
|
-
app_id?: string;
|
|
184
|
+
app_id?: string | undefined;
|
|
185
185
|
/** The provider key of the provider whose tokens you want to delete */
|
|
186
|
-
provider_key?: string;
|
|
186
|
+
provider_key?: string | undefined;
|
|
187
187
|
/** The id of the token that you want to delete */
|
|
188
|
-
external_token_id?: string;
|
|
188
|
+
external_token_id?: string | undefined;
|
|
189
189
|
}
|
|
190
190
|
export interface DeleteAuthExternalResponse {
|
|
191
191
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -196,7 +196,7 @@ export interface DeleteDatastoreRequest {
|
|
|
196
196
|
datastore: string;
|
|
197
197
|
/** item id */
|
|
198
198
|
id: string;
|
|
199
|
-
app_id?: string;
|
|
199
|
+
app_id?: string | undefined;
|
|
200
200
|
}
|
|
201
201
|
export interface DeleteDatastoreResponse {
|
|
202
202
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -223,7 +223,7 @@ export interface GetAuthExternalRequest {
|
|
|
223
223
|
/** The id of the token you want to get the token for */
|
|
224
224
|
external_token_id: string;
|
|
225
225
|
/** Always refresh existing token before returning even when the token has not expired */
|
|
226
|
-
force_refresh?: boolean;
|
|
226
|
+
force_refresh?: boolean | undefined;
|
|
227
227
|
}
|
|
228
228
|
export interface GetAuthExternalResponse {
|
|
229
229
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -236,7 +236,7 @@ export interface GetDatastoreRequest {
|
|
|
236
236
|
datastore: string;
|
|
237
237
|
/** item id */
|
|
238
238
|
id: string;
|
|
239
|
-
app_id?: string;
|
|
239
|
+
app_id?: string | undefined;
|
|
240
240
|
}
|
|
241
241
|
/** attribute names and values of the item */
|
|
242
242
|
export type GetDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -244,9 +244,9 @@ export interface GetDatastoreResponse {
|
|
|
244
244
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
245
245
|
ok: boolean;
|
|
246
246
|
/** name of the datastore */
|
|
247
|
-
datastore?: string;
|
|
247
|
+
datastore?: string | undefined;
|
|
248
248
|
/** attribute names and values of the item */
|
|
249
|
-
item?: GetDatastoreResponseItemMap;
|
|
249
|
+
item?: GetDatastoreResponseItemMap | undefined;
|
|
250
250
|
}
|
|
251
251
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
252
252
|
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
@@ -254,29 +254,29 @@ export interface ListActivitiesRequest {
|
|
|
254
254
|
/** The id of the app to get activities from. */
|
|
255
255
|
app_id: string;
|
|
256
256
|
/** The team who owns this log. */
|
|
257
|
-
team_id?: string;
|
|
257
|
+
team_id?: string | undefined;
|
|
258
258
|
/** 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. */
|
|
259
|
-
cursor?: string;
|
|
259
|
+
cursor?: string | undefined;
|
|
260
260
|
/** The maximum number of items to return. */
|
|
261
|
-
limit?: number;
|
|
261
|
+
limit?: number | undefined;
|
|
262
262
|
/** 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'). */
|
|
263
|
-
min_log_level?: string;
|
|
263
|
+
min_log_level?: string | undefined;
|
|
264
264
|
/** The event type of log events to be returned. */
|
|
265
|
-
log_event_type?: string;
|
|
265
|
+
log_event_type?: string | undefined;
|
|
266
266
|
/** The source of log events to be returned. Acceptable values are ('slack', 'developer'). */
|
|
267
|
-
source?: string;
|
|
267
|
+
source?: string | undefined;
|
|
268
268
|
/** The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). */
|
|
269
|
-
component_type?: string;
|
|
269
|
+
component_type?: string | undefined;
|
|
270
270
|
/** The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for workflows */
|
|
271
|
-
component_id?: string;
|
|
271
|
+
component_id?: string | undefined;
|
|
272
272
|
/** The trace id of log events to be returned. */
|
|
273
|
-
trace_id?: string;
|
|
273
|
+
trace_id?: string | undefined;
|
|
274
274
|
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
275
|
-
min_date_created?: number;
|
|
275
|
+
min_date_created?: number | undefined;
|
|
276
276
|
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
277
|
-
max_date_created?: number;
|
|
277
|
+
max_date_created?: number | undefined;
|
|
278
278
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
279
|
-
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
279
|
+
sort_direction?: ListActivitiesRequestSortDirection | (string & {}) | undefined;
|
|
280
280
|
}
|
|
281
281
|
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
282
282
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -286,12 +286,12 @@ export interface ListActivitiesResponse {
|
|
|
286
286
|
ok: boolean;
|
|
287
287
|
activities: ListActivitiesResponseActivitiesList;
|
|
288
288
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
289
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
289
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
290
290
|
}
|
|
291
291
|
export interface ListEventAuthorizationsRequest {
|
|
292
292
|
event_context: string;
|
|
293
|
-
cursor?: string;
|
|
294
|
-
limit?: number;
|
|
293
|
+
cursor?: string | undefined;
|
|
294
|
+
limit?: number | undefined;
|
|
295
295
|
}
|
|
296
296
|
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
297
297
|
enterprise_id: string | null;
|
|
@@ -309,10 +309,10 @@ export interface ListEventAuthorizationsResponse {
|
|
|
309
309
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
310
310
|
ok: boolean;
|
|
311
311
|
/** The next cursor for use in [pagination](/apis/web-api/pagination). If present, pass this in subsequent calls to get additional results */
|
|
312
|
-
cursor_next?: string;
|
|
312
|
+
cursor_next?: string | undefined;
|
|
313
313
|
authorizations: ListEventAuthorizationsResponseAuthorizationsList;
|
|
314
314
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
315
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
315
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
316
316
|
}
|
|
317
317
|
/** attribute names and values of the item */
|
|
318
318
|
export type PutDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
@@ -321,7 +321,7 @@ export interface PutDatastoreRequest {
|
|
|
321
321
|
datastore: string;
|
|
322
322
|
/** attribute names and values of the item */
|
|
323
323
|
item: PutDatastoreRequestItemMap;
|
|
324
|
-
app_id?: string;
|
|
324
|
+
app_id?: string | undefined;
|
|
325
325
|
}
|
|
326
326
|
/** attribute names and values of the item */
|
|
327
327
|
export type PutDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -329,17 +329,17 @@ export interface PutDatastoreResponse {
|
|
|
329
329
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
330
330
|
ok: boolean;
|
|
331
331
|
/** name of the datastore */
|
|
332
|
-
datastore?: string;
|
|
332
|
+
datastore?: string | undefined;
|
|
333
333
|
/** attribute names and values of the item */
|
|
334
|
-
item?: PutDatastoreResponseItemMap;
|
|
334
|
+
item?: PutDatastoreResponseItemMap | undefined;
|
|
335
335
|
}
|
|
336
336
|
export interface SetIconRequest {
|
|
337
337
|
/** The ID of the app whose icon you want to set. */
|
|
338
338
|
app_id: string;
|
|
339
339
|
/** File contents via `multipart/form-data` */
|
|
340
|
-
file?: unknown;
|
|
340
|
+
file?: unknown | undefined;
|
|
341
341
|
/** URL of a publicly hosted image */
|
|
342
|
-
url?: string;
|
|
342
|
+
url?: string | undefined;
|
|
343
343
|
}
|
|
344
344
|
export interface SetIconResponse {
|
|
345
345
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -375,7 +375,7 @@ export interface UpdateDatastoreRequest {
|
|
|
375
375
|
datastore: string;
|
|
376
376
|
/** attribute names and values to be updated */
|
|
377
377
|
item: UpdateDatastoreRequestItemMap;
|
|
378
|
-
app_id?: string;
|
|
378
|
+
app_id?: string | undefined;
|
|
379
379
|
}
|
|
380
380
|
/** attribute names and values of the item, including those updated */
|
|
381
381
|
export type UpdateDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -383,9 +383,9 @@ export interface UpdateDatastoreResponse {
|
|
|
383
383
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
384
384
|
ok: boolean;
|
|
385
385
|
/** name of the datastore */
|
|
386
|
-
datastore?: string;
|
|
386
|
+
datastore?: string | undefined;
|
|
387
387
|
/** attribute names and values of the item, including those updated */
|
|
388
|
-
item?: UpdateDatastoreResponseItemMap;
|
|
388
|
+
item?: UpdateDatastoreResponseItemMap | undefined;
|
|
389
389
|
}
|
|
390
390
|
export interface UpdateManifestRequest {
|
|
391
391
|
/** 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. */
|
|
@@ -397,7 +397,7 @@ export interface UpdateManifestResponse {
|
|
|
397
397
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
398
398
|
ok: boolean;
|
|
399
399
|
app_id: string;
|
|
400
|
-
permissions_updated?: boolean;
|
|
400
|
+
permissions_updated?: boolean | undefined;
|
|
401
401
|
}
|
|
402
402
|
/** The status that should be set for the user. */
|
|
403
403
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
@@ -415,13 +415,13 @@ export interface ValidateManifestRequest {
|
|
|
415
415
|
/** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
416
416
|
manifest: string;
|
|
417
417
|
/** The ID of the app whose configuration you want to validate. */
|
|
418
|
-
app_id?: string;
|
|
418
|
+
app_id?: string | undefined;
|
|
419
419
|
}
|
|
420
420
|
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
421
421
|
export interface ValidateManifestResponseWarningsItem {
|
|
422
422
|
code: string;
|
|
423
423
|
message: string;
|
|
424
|
-
pointer?: string;
|
|
424
|
+
pointer?: string | undefined;
|
|
425
425
|
}
|
|
426
426
|
/** Non-blocking warnings from app manifest validation. */
|
|
427
427
|
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
@@ -430,7 +430,7 @@ export interface ValidateManifestResponse {
|
|
|
430
430
|
ok: boolean;
|
|
431
431
|
errors: ValidateManifestResponseErrorsList;
|
|
432
432
|
/** Non-blocking warnings from app manifest validation. */
|
|
433
|
-
warnings?: ValidateManifestResponseWarningsList;
|
|
433
|
+
warnings?: ValidateManifestResponseWarningsList | undefined;
|
|
434
434
|
}
|
|
435
435
|
export type BulkDeleteError = SlackOpError;
|
|
436
436
|
/** 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 */
|
|
@@ -665,7 +665,7 @@ export const getDatastore: API.OperationMethod<
|
|
|
665
665
|
}));
|
|
666
666
|
|
|
667
667
|
export type ListActivitiesError = SlackOpError;
|
|
668
|
-
/** 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 */
|
|
668
|
+
/** 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 - `feature_disabled_for_lite_sandbox` -- Lite sandboxes cannot use Slack-hosted infrastructure See https://docs.slack.dev/reference/methods/apps.activities.list */
|
|
669
669
|
export const listActivities: API.PaginatedOperationMethod<
|
|
670
670
|
ListActivitiesRequest,
|
|
671
671
|
ListActivitiesResponse,
|
|
@@ -738,7 +738,7 @@ export const putDatastore: API.OperationMethod<
|
|
|
738
738
|
}));
|
|
739
739
|
|
|
740
740
|
export type SetIconError = SlackOpError;
|
|
741
|
-
/** 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 */
|
|
741
|
+
/** 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. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
742
742
|
export const setIcon: API.OperationMethod<
|
|
743
743
|
SetIconRequest,
|
|
744
744
|
SetIconResponse,
|
|
@@ -755,7 +755,7 @@ export const setIcon: API.OperationMethod<
|
|
|
755
755
|
}));
|
|
756
756
|
|
|
757
757
|
export type SetManagedPermissionsError = SlackOpError;
|
|
758
|
-
/** 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
|
|
758
|
+
/** 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, using a user token or bot 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, for example because it no longer has `app_configurations:write` in its configuration. - `feature_not_enabled` -- This method is not enabled for the manager app's organization, or bot tokens are not enabled for it. - `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 */
|
|
759
759
|
export const setManagedPermissions: API.OperationMethod<
|
|
760
760
|
SetManagedPermissionsRequest,
|
|
761
761
|
SetManagedPermissionsResponse,
|
|
@@ -806,7 +806,7 @@ export const updateDatastore: API.OperationMethod<
|
|
|
806
806
|
}));
|
|
807
807
|
|
|
808
808
|
export type UpdateManifestError = SlackOpError;
|
|
809
|
-
/** 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 */
|
|
809
|
+
/** 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. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.update */
|
|
810
810
|
export const updateManifest: API.OperationMethod<
|
|
811
811
|
UpdateManifestRequest,
|
|
812
812
|
UpdateManifestResponse,
|
|
@@ -840,7 +840,7 @@ export const updateUserConnection: API.OperationMethod<
|
|
|
840
840
|
}));
|
|
841
841
|
|
|
842
842
|
export type ValidateManifestError = SlackOpError;
|
|
843
|
-
/** 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 */
|
|
843
|
+
/** 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. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
|
|
844
844
|
export const validateManifest: API.OperationMethod<
|
|
845
845
|
ValidateManifestRequest,
|
|
846
846
|
ValidateManifestResponse,
|