@distilled.cloud/slack 1.0.0-rc.17 → 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/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +3 -2
- 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 -139
- 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 +34 -33
- 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 +39 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.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 +30 -1
- 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.d.ts.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 +3 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +8 -7
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +23 -21
- package/src/services/admin.ts +1882 -1034
- package/src/services/agents.ts +128 -103
- package/src/services/api.ts +17 -2
- package/src/services/apps.ts +133 -74
- package/src/services/assistant.ts +109 -54
- package/src/services/auth.ts +46 -27
- package/src/services/blocks.ts +18 -3
- package/src/services/bookmarks.ts +40 -19
- package/src/services/bots.ts +38 -23
- package/src/services/calls.ts +35 -10
- package/src/services/canvases.ts +77 -46
- package/src/services/chat.ts +142 -103
- package/src/services/conversations.ts +195 -115
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +37 -14
- package/src/services/emoji.ts +21 -6
- package/src/services/entity.ts +33 -14
- package/src/services/files.ts +149 -106
- package/src/services/functions.ts +66 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +86 -46
- package/src/services/migration.ts +18 -3
- package/src/services/oauth.ts +127 -102
- package/src/services/openid.ts +57 -40
- package/src/services/pins.ts +28 -9
- package/src/services/reactions.ts +44 -23
- package/src/services/reminders.ts +31 -8
- package/src/services/rtm.ts +28 -11
- package/src/services/search.ts +142 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +35 -16
- package/src/services/team.ts +73 -37
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +57 -30
- package/src/services/users.ts +76 -37
- package/src/services/views.ts +30 -9
- package/src/services/workflows.ts +45 -16
package/src/services/apps.ts
CHANGED
|
@@ -13,6 +13,19 @@ const __s: any[] = [];
|
|
|
13
13
|
|
|
14
14
|
export type { SlackOpError, SlackOpContext };
|
|
15
15
|
|
|
16
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
17
|
+
const TELEMETRY = {
|
|
18
|
+
system: "slack-api",
|
|
19
|
+
responseHeaders: [
|
|
20
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
21
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
22
|
+
{ header: "x-slack-req-id", name: "http.response.header.x-slack-req-id", transform: "list" },
|
|
23
|
+
],
|
|
24
|
+
prefix: "Slack",
|
|
25
|
+
service: "Apps",
|
|
26
|
+
propagate: "w3c",
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
16
29
|
/** IDs of items to be deleted */
|
|
17
30
|
export type BulkDeleteRequestIdsList = Array<string>;
|
|
18
31
|
export interface BulkDeleteRequest {
|
|
@@ -20,7 +33,7 @@ export interface BulkDeleteRequest {
|
|
|
20
33
|
datastore: string;
|
|
21
34
|
/** IDs of items to be deleted */
|
|
22
35
|
ids: BulkDeleteRequestIdsList;
|
|
23
|
-
app_id?: string;
|
|
36
|
+
app_id?: string | undefined;
|
|
24
37
|
}
|
|
25
38
|
/** attribute names and values of the items that failed to be processed */
|
|
26
39
|
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
@@ -28,7 +41,7 @@ export interface BulkDeleteResponse {
|
|
|
28
41
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
29
42
|
ok: boolean;
|
|
30
43
|
/** attribute names and values of the items that failed to be processed */
|
|
31
|
-
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
44
|
+
failed_items?: BulkDeleteResponseFailedItemsList | undefined;
|
|
32
45
|
}
|
|
33
46
|
/** items' ids */
|
|
34
47
|
export type BulkGetRequestIdsList = Array<string>;
|
|
@@ -37,7 +50,7 @@ export interface BulkGetRequest {
|
|
|
37
50
|
datastore: string;
|
|
38
51
|
/** items' ids */
|
|
39
52
|
ids: BulkGetRequestIdsList;
|
|
40
|
-
app_id?: string;
|
|
53
|
+
app_id?: string | undefined;
|
|
41
54
|
}
|
|
42
55
|
export type BulkGetResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
43
56
|
/** array of attribute names and values of each item */
|
|
@@ -48,9 +61,9 @@ export interface BulkGetResponse {
|
|
|
48
61
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
49
62
|
ok: boolean;
|
|
50
63
|
/** array of attribute names and values of each item */
|
|
51
|
-
items?: BulkGetResponseItemsList;
|
|
64
|
+
items?: BulkGetResponseItemsList | undefined;
|
|
52
65
|
/** attribute names and values of the items that failed to be processed */
|
|
53
|
-
failed_items?: BulkGetResponseFailedItemsList;
|
|
66
|
+
failed_items?: BulkGetResponseFailedItemsList | undefined;
|
|
54
67
|
}
|
|
55
68
|
export type BulkPutRequestItemsItemMap = { [key: string]: unknown | undefined };
|
|
56
69
|
/** attribute names and values of the items; limit of 25 */
|
|
@@ -60,7 +73,7 @@ export interface BulkPutRequest {
|
|
|
60
73
|
datastore: string;
|
|
61
74
|
/** attribute names and values of the items; limit of 25 */
|
|
62
75
|
items: BulkPutRequestItemsList;
|
|
63
|
-
app_id?: string;
|
|
76
|
+
app_id?: string | undefined;
|
|
64
77
|
}
|
|
65
78
|
export type BulkPutResponseFailedItemsItemMap = { [key: string]: unknown | undefined };
|
|
66
79
|
/** attribute names and values of the items that failed to be processed */
|
|
@@ -69,9 +82,9 @@ export interface BulkPutResponse {
|
|
|
69
82
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
70
83
|
ok: boolean;
|
|
71
84
|
/** name of the datastore */
|
|
72
|
-
datastore?: string;
|
|
85
|
+
datastore?: string | undefined;
|
|
73
86
|
/** attribute names and values of the items that failed to be processed */
|
|
74
|
-
failed_items?: BulkPutResponseFailedItemsList;
|
|
87
|
+
failed_items?: BulkPutResponseFailedItemsList | undefined;
|
|
75
88
|
}
|
|
76
89
|
export interface ConnectionsOpenRequest {}
|
|
77
90
|
export interface ConnectionsOpenResponse {
|
|
@@ -84,25 +97,25 @@ export interface CreateManifestRequest {
|
|
|
84
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). */
|
|
85
98
|
manifest: string;
|
|
86
99
|
/** When called with an org token, which specific team to create app on */
|
|
87
|
-
team_id?: string;
|
|
100
|
+
team_id?: string | undefined;
|
|
88
101
|
}
|
|
89
102
|
export interface CreateManifestResponseCredentials {
|
|
90
|
-
client_id?: string;
|
|
91
|
-
client_secret?: string | Redacted.Redacted<string
|
|
92
|
-
verification_token?: string;
|
|
93
|
-
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;
|
|
94
107
|
}
|
|
95
108
|
export interface CreateManifestResponse {
|
|
96
109
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
97
110
|
ok: boolean;
|
|
98
111
|
app_id: string;
|
|
99
112
|
credentials: CreateManifestResponseCredentials;
|
|
100
|
-
oauth_authorize_url?: string;
|
|
113
|
+
oauth_authorize_url?: string | undefined;
|
|
101
114
|
/** The team ID where the app was created on */
|
|
102
|
-
team_id?: string;
|
|
115
|
+
team_id?: string | undefined;
|
|
103
116
|
/** The team domain where the app was created on */
|
|
104
|
-
team_domain?: string;
|
|
105
|
-
app_token?: string;
|
|
117
|
+
team_domain?: string | undefined;
|
|
118
|
+
app_token?: string | undefined;
|
|
106
119
|
}
|
|
107
120
|
/** A map of attributes referenced in expression */
|
|
108
121
|
export type DatastoreCountRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
@@ -112,21 +125,21 @@ export interface DatastoreCountRequest {
|
|
|
112
125
|
/** Name of the datastore */
|
|
113
126
|
datastore: string;
|
|
114
127
|
/** A query filter expression */
|
|
115
|
-
expression?: string;
|
|
128
|
+
expression?: string | undefined;
|
|
116
129
|
/** A map of attributes referenced in expression */
|
|
117
|
-
expression_attributes?: DatastoreCountRequestExpressionAttributesMap;
|
|
130
|
+
expression_attributes?: DatastoreCountRequestExpressionAttributesMap | undefined;
|
|
118
131
|
/** A map of values referenced in expression */
|
|
119
|
-
expression_values?: DatastoreCountRequestExpressionValuesMap;
|
|
132
|
+
expression_values?: DatastoreCountRequestExpressionValuesMap | undefined;
|
|
120
133
|
/** Required if calling with user token */
|
|
121
|
-
app_id?: string;
|
|
134
|
+
app_id?: string | undefined;
|
|
122
135
|
}
|
|
123
136
|
export interface DatastoreCountResponse {
|
|
124
137
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
125
138
|
ok: boolean;
|
|
126
139
|
/** name of the datastore */
|
|
127
|
-
datastore?: string;
|
|
140
|
+
datastore?: string | undefined;
|
|
128
141
|
/** number of matching items */
|
|
129
|
-
count?: number;
|
|
142
|
+
count?: number | undefined;
|
|
130
143
|
}
|
|
131
144
|
/** A map of attributes referenced in expression */
|
|
132
145
|
export type DatastoreQueryRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
@@ -136,17 +149,17 @@ export interface DatastoreQueryRequest {
|
|
|
136
149
|
/** Name of the datastore */
|
|
137
150
|
datastore: string;
|
|
138
151
|
/** A query filter expression */
|
|
139
|
-
expression?: string;
|
|
152
|
+
expression?: string | undefined;
|
|
140
153
|
/** A map of attributes referenced in expression */
|
|
141
|
-
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap;
|
|
154
|
+
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap | undefined;
|
|
142
155
|
/** A map of values referenced in expression */
|
|
143
|
-
expression_values?: DatastoreQueryRequestExpressionValuesMap;
|
|
156
|
+
expression_values?: DatastoreQueryRequestExpressionValuesMap | undefined;
|
|
144
157
|
/** Required if calling with user token */
|
|
145
|
-
app_id?: string;
|
|
158
|
+
app_id?: string | undefined;
|
|
146
159
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
147
|
-
cursor?: string;
|
|
160
|
+
cursor?: string | undefined;
|
|
148
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. */
|
|
149
|
-
limit?: number;
|
|
162
|
+
limit?: number | undefined;
|
|
150
163
|
}
|
|
151
164
|
export type DatastoreQueryResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
152
165
|
/** attribute names and values of the items */
|
|
@@ -154,25 +167,25 @@ export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsI
|
|
|
154
167
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
155
168
|
export interface DatastoreQueryResponseResponseMetadata {
|
|
156
169
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
157
|
-
next_cursor?: string;
|
|
170
|
+
next_cursor?: string | undefined;
|
|
158
171
|
}
|
|
159
172
|
export interface DatastoreQueryResponse {
|
|
160
173
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
161
174
|
ok: boolean;
|
|
162
175
|
/** name of the datastore */
|
|
163
|
-
datastore?: string;
|
|
176
|
+
datastore?: string | undefined;
|
|
164
177
|
/** attribute names and values of the items */
|
|
165
178
|
items: DatastoreQueryResponseItemsList;
|
|
166
179
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
167
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
180
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
168
181
|
}
|
|
169
182
|
export interface DeleteAuthExternalRequest {
|
|
170
183
|
/** The id of the app whose tokens you want to delete */
|
|
171
|
-
app_id?: string;
|
|
184
|
+
app_id?: string | undefined;
|
|
172
185
|
/** The provider key of the provider whose tokens you want to delete */
|
|
173
|
-
provider_key?: string;
|
|
186
|
+
provider_key?: string | undefined;
|
|
174
187
|
/** The id of the token that you want to delete */
|
|
175
|
-
external_token_id?: string;
|
|
188
|
+
external_token_id?: string | undefined;
|
|
176
189
|
}
|
|
177
190
|
export interface DeleteAuthExternalResponse {
|
|
178
191
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -183,7 +196,7 @@ export interface DeleteDatastoreRequest {
|
|
|
183
196
|
datastore: string;
|
|
184
197
|
/** item id */
|
|
185
198
|
id: string;
|
|
186
|
-
app_id?: string;
|
|
199
|
+
app_id?: string | undefined;
|
|
187
200
|
}
|
|
188
201
|
export interface DeleteDatastoreResponse {
|
|
189
202
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -210,7 +223,7 @@ export interface GetAuthExternalRequest {
|
|
|
210
223
|
/** The id of the token you want to get the token for */
|
|
211
224
|
external_token_id: string;
|
|
212
225
|
/** Always refresh existing token before returning even when the token has not expired */
|
|
213
|
-
force_refresh?: boolean;
|
|
226
|
+
force_refresh?: boolean | undefined;
|
|
214
227
|
}
|
|
215
228
|
export interface GetAuthExternalResponse {
|
|
216
229
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -223,7 +236,7 @@ export interface GetDatastoreRequest {
|
|
|
223
236
|
datastore: string;
|
|
224
237
|
/** item id */
|
|
225
238
|
id: string;
|
|
226
|
-
app_id?: string;
|
|
239
|
+
app_id?: string | undefined;
|
|
227
240
|
}
|
|
228
241
|
/** attribute names and values of the item */
|
|
229
242
|
export type GetDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -231,9 +244,9 @@ export interface GetDatastoreResponse {
|
|
|
231
244
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
232
245
|
ok: boolean;
|
|
233
246
|
/** name of the datastore */
|
|
234
|
-
datastore?: string;
|
|
247
|
+
datastore?: string | undefined;
|
|
235
248
|
/** attribute names and values of the item */
|
|
236
|
-
item?: GetDatastoreResponseItemMap;
|
|
249
|
+
item?: GetDatastoreResponseItemMap | undefined;
|
|
237
250
|
}
|
|
238
251
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
239
252
|
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
@@ -241,29 +254,29 @@ export interface ListActivitiesRequest {
|
|
|
241
254
|
/** The id of the app to get activities from. */
|
|
242
255
|
app_id: string;
|
|
243
256
|
/** The team who owns this log. */
|
|
244
|
-
team_id?: string;
|
|
257
|
+
team_id?: string | undefined;
|
|
245
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. */
|
|
246
|
-
cursor?: string;
|
|
259
|
+
cursor?: string | undefined;
|
|
247
260
|
/** The maximum number of items to return. */
|
|
248
|
-
limit?: number;
|
|
261
|
+
limit?: number | undefined;
|
|
249
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'). */
|
|
250
|
-
min_log_level?: string;
|
|
263
|
+
min_log_level?: string | undefined;
|
|
251
264
|
/** The event type of log events to be returned. */
|
|
252
|
-
log_event_type?: string;
|
|
265
|
+
log_event_type?: string | undefined;
|
|
253
266
|
/** The source of log events to be returned. Acceptable values are ('slack', 'developer'). */
|
|
254
|
-
source?: string;
|
|
267
|
+
source?: string | undefined;
|
|
255
268
|
/** The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). */
|
|
256
|
-
component_type?: string;
|
|
269
|
+
component_type?: string | undefined;
|
|
257
270
|
/** The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for workflows */
|
|
258
|
-
component_id?: string;
|
|
271
|
+
component_id?: string | undefined;
|
|
259
272
|
/** The trace id of log events to be returned. */
|
|
260
|
-
trace_id?: string;
|
|
273
|
+
trace_id?: string | undefined;
|
|
261
274
|
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
262
|
-
min_date_created?: number;
|
|
275
|
+
min_date_created?: number | undefined;
|
|
263
276
|
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
264
|
-
max_date_created?: number;
|
|
277
|
+
max_date_created?: number | undefined;
|
|
265
278
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
266
|
-
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
279
|
+
sort_direction?: ListActivitiesRequestSortDirection | (string & {}) | undefined;
|
|
267
280
|
}
|
|
268
281
|
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
269
282
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -273,12 +286,12 @@ export interface ListActivitiesResponse {
|
|
|
273
286
|
ok: boolean;
|
|
274
287
|
activities: ListActivitiesResponseActivitiesList;
|
|
275
288
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
276
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
289
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
277
290
|
}
|
|
278
291
|
export interface ListEventAuthorizationsRequest {
|
|
279
292
|
event_context: string;
|
|
280
|
-
cursor?: string;
|
|
281
|
-
limit?: number;
|
|
293
|
+
cursor?: string | undefined;
|
|
294
|
+
limit?: number | undefined;
|
|
282
295
|
}
|
|
283
296
|
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
284
297
|
enterprise_id: string | null;
|
|
@@ -296,10 +309,10 @@ export interface ListEventAuthorizationsResponse {
|
|
|
296
309
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
297
310
|
ok: boolean;
|
|
298
311
|
/** The next cursor for use in [pagination](/apis/web-api/pagination). If present, pass this in subsequent calls to get additional results */
|
|
299
|
-
cursor_next?: string;
|
|
312
|
+
cursor_next?: string | undefined;
|
|
300
313
|
authorizations: ListEventAuthorizationsResponseAuthorizationsList;
|
|
301
314
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
302
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
315
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
303
316
|
}
|
|
304
317
|
/** attribute names and values of the item */
|
|
305
318
|
export type PutDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
@@ -308,7 +321,7 @@ export interface PutDatastoreRequest {
|
|
|
308
321
|
datastore: string;
|
|
309
322
|
/** attribute names and values of the item */
|
|
310
323
|
item: PutDatastoreRequestItemMap;
|
|
311
|
-
app_id?: string;
|
|
324
|
+
app_id?: string | undefined;
|
|
312
325
|
}
|
|
313
326
|
/** attribute names and values of the item */
|
|
314
327
|
export type PutDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -316,17 +329,17 @@ export interface PutDatastoreResponse {
|
|
|
316
329
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
317
330
|
ok: boolean;
|
|
318
331
|
/** name of the datastore */
|
|
319
|
-
datastore?: string;
|
|
332
|
+
datastore?: string | undefined;
|
|
320
333
|
/** attribute names and values of the item */
|
|
321
|
-
item?: PutDatastoreResponseItemMap;
|
|
334
|
+
item?: PutDatastoreResponseItemMap | undefined;
|
|
322
335
|
}
|
|
323
336
|
export interface SetIconRequest {
|
|
324
337
|
/** The ID of the app whose icon you want to set. */
|
|
325
338
|
app_id: string;
|
|
326
339
|
/** File contents via `multipart/form-data` */
|
|
327
|
-
file?: unknown;
|
|
340
|
+
file?: unknown | undefined;
|
|
328
341
|
/** URL of a publicly hosted image */
|
|
329
|
-
url?: string;
|
|
342
|
+
url?: string | undefined;
|
|
330
343
|
}
|
|
331
344
|
export interface SetIconResponse {
|
|
332
345
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -362,7 +375,7 @@ export interface UpdateDatastoreRequest {
|
|
|
362
375
|
datastore: string;
|
|
363
376
|
/** attribute names and values to be updated */
|
|
364
377
|
item: UpdateDatastoreRequestItemMap;
|
|
365
|
-
app_id?: string;
|
|
378
|
+
app_id?: string | undefined;
|
|
366
379
|
}
|
|
367
380
|
/** attribute names and values of the item, including those updated */
|
|
368
381
|
export type UpdateDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
@@ -370,9 +383,9 @@ export interface UpdateDatastoreResponse {
|
|
|
370
383
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
371
384
|
ok: boolean;
|
|
372
385
|
/** name of the datastore */
|
|
373
|
-
datastore?: string;
|
|
386
|
+
datastore?: string | undefined;
|
|
374
387
|
/** attribute names and values of the item, including those updated */
|
|
375
|
-
item?: UpdateDatastoreResponseItemMap;
|
|
388
|
+
item?: UpdateDatastoreResponseItemMap | undefined;
|
|
376
389
|
}
|
|
377
390
|
export interface UpdateManifestRequest {
|
|
378
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. */
|
|
@@ -384,7 +397,7 @@ export interface UpdateManifestResponse {
|
|
|
384
397
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
385
398
|
ok: boolean;
|
|
386
399
|
app_id: string;
|
|
387
|
-
permissions_updated?: boolean;
|
|
400
|
+
permissions_updated?: boolean | undefined;
|
|
388
401
|
}
|
|
389
402
|
/** The status that should be set for the user. */
|
|
390
403
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
@@ -402,13 +415,13 @@ export interface ValidateManifestRequest {
|
|
|
402
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). */
|
|
403
416
|
manifest: string;
|
|
404
417
|
/** The ID of the app whose configuration you want to validate. */
|
|
405
|
-
app_id?: string;
|
|
418
|
+
app_id?: string | undefined;
|
|
406
419
|
}
|
|
407
420
|
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
408
421
|
export interface ValidateManifestResponseWarningsItem {
|
|
409
422
|
code: string;
|
|
410
423
|
message: string;
|
|
411
|
-
pointer?: string;
|
|
424
|
+
pointer?: string | undefined;
|
|
412
425
|
}
|
|
413
426
|
/** Non-blocking warnings from app manifest validation. */
|
|
414
427
|
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
@@ -417,7 +430,7 @@ export interface ValidateManifestResponse {
|
|
|
417
430
|
ok: boolean;
|
|
418
431
|
errors: ValidateManifestResponseErrorsList;
|
|
419
432
|
/** Non-blocking warnings from app manifest validation. */
|
|
420
|
-
warnings?: ValidateManifestResponseWarningsList;
|
|
433
|
+
warnings?: ValidateManifestResponseWarningsList | undefined;
|
|
421
434
|
}
|
|
422
435
|
export type BulkDeleteError = SlackOpError;
|
|
423
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 */
|
|
@@ -432,6 +445,8 @@ export const bulkDelete: API.OperationMethod<
|
|
|
432
445
|
errors: [SlackError, SlackRateLimited],
|
|
433
446
|
protocol: SlackProtocol,
|
|
434
447
|
retry: Retry.Retry,
|
|
448
|
+
telemetry: TELEMETRY,
|
|
449
|
+
span: "BulkDelete",
|
|
435
450
|
}));
|
|
436
451
|
|
|
437
452
|
export type BulkGetError = SlackOpError;
|
|
@@ -447,6 +462,8 @@ export const bulkGet: API.OperationMethod<
|
|
|
447
462
|
errors: [SlackError, SlackRateLimited],
|
|
448
463
|
protocol: SlackProtocol,
|
|
449
464
|
retry: Retry.Retry,
|
|
465
|
+
telemetry: TELEMETRY,
|
|
466
|
+
span: "BulkGet",
|
|
450
467
|
}));
|
|
451
468
|
|
|
452
469
|
export type BulkPutError = SlackOpError;
|
|
@@ -462,6 +479,8 @@ export const bulkPut: API.OperationMethod<
|
|
|
462
479
|
errors: [SlackError, SlackRateLimited],
|
|
463
480
|
protocol: SlackProtocol,
|
|
464
481
|
retry: Retry.Retry,
|
|
482
|
+
telemetry: TELEMETRY,
|
|
483
|
+
span: "BulkPut",
|
|
465
484
|
}));
|
|
466
485
|
|
|
467
486
|
export type ConnectionsOpenError = SlackOpError;
|
|
@@ -477,6 +496,8 @@ export const connectionsOpen: API.OperationMethod<
|
|
|
477
496
|
errors: [SlackError, SlackRateLimited],
|
|
478
497
|
protocol: SlackProtocol,
|
|
479
498
|
retry: Retry.Retry,
|
|
499
|
+
telemetry: TELEMETRY,
|
|
500
|
+
span: "ConnectionsOpen",
|
|
480
501
|
}));
|
|
481
502
|
|
|
482
503
|
export type CreateManifestError = SlackOpError;
|
|
@@ -492,6 +513,8 @@ export const createManifest: API.OperationMethod<
|
|
|
492
513
|
errors: [SlackError, SlackRateLimited],
|
|
493
514
|
protocol: SlackProtocol,
|
|
494
515
|
retry: Retry.Retry,
|
|
516
|
+
telemetry: TELEMETRY,
|
|
517
|
+
span: "CreateManifest",
|
|
495
518
|
}));
|
|
496
519
|
|
|
497
520
|
export type DatastoreCountError = SlackOpError;
|
|
@@ -507,6 +530,8 @@ export const datastoreCount: API.OperationMethod<
|
|
|
507
530
|
errors: [SlackError, SlackRateLimited],
|
|
508
531
|
protocol: SlackProtocol,
|
|
509
532
|
retry: Retry.Retry,
|
|
533
|
+
telemetry: TELEMETRY,
|
|
534
|
+
span: "DatastoreCount",
|
|
510
535
|
}));
|
|
511
536
|
|
|
512
537
|
export type DatastoreQueryError = SlackOpError;
|
|
@@ -524,6 +549,8 @@ export const datastoreQuery: API.PaginatedOperationMethod<
|
|
|
524
549
|
errors: [SlackError, SlackRateLimited],
|
|
525
550
|
protocol: SlackProtocol,
|
|
526
551
|
retry: Retry.Retry,
|
|
552
|
+
telemetry: TELEMETRY,
|
|
553
|
+
span: "DatastoreQuery",
|
|
527
554
|
pagination: {
|
|
528
555
|
mode: "cursor",
|
|
529
556
|
inputToken: "cursor",
|
|
@@ -548,6 +575,8 @@ export const deleteAuthExternal: API.OperationMethod<
|
|
|
548
575
|
errors: [SlackError, SlackRateLimited],
|
|
549
576
|
protocol: SlackProtocol,
|
|
550
577
|
retry: Retry.Retry,
|
|
578
|
+
telemetry: TELEMETRY,
|
|
579
|
+
span: "DeleteAuthExternal",
|
|
551
580
|
}));
|
|
552
581
|
|
|
553
582
|
export type DeleteDatastoreError = SlackOpError;
|
|
@@ -563,6 +592,8 @@ export const deleteDatastore: API.OperationMethod<
|
|
|
563
592
|
errors: [SlackError, SlackRateLimited],
|
|
564
593
|
protocol: SlackProtocol,
|
|
565
594
|
retry: Retry.Retry,
|
|
595
|
+
telemetry: TELEMETRY,
|
|
596
|
+
span: "DeleteDatastore",
|
|
566
597
|
}));
|
|
567
598
|
|
|
568
599
|
export type DeleteManifestError = SlackOpError;
|
|
@@ -578,6 +609,8 @@ export const deleteManifest: API.OperationMethod<
|
|
|
578
609
|
errors: [SlackError, SlackRateLimited],
|
|
579
610
|
protocol: SlackProtocol,
|
|
580
611
|
retry: Retry.Retry,
|
|
612
|
+
telemetry: TELEMETRY,
|
|
613
|
+
span: "DeleteManifest",
|
|
581
614
|
}));
|
|
582
615
|
|
|
583
616
|
export type ExportManifestError = SlackOpError;
|
|
@@ -593,6 +626,8 @@ export const exportManifest: API.OperationMethod<
|
|
|
593
626
|
errors: [SlackError, SlackRateLimited],
|
|
594
627
|
protocol: SlackProtocol,
|
|
595
628
|
retry: Retry.Retry,
|
|
629
|
+
telemetry: TELEMETRY,
|
|
630
|
+
span: "ExportManifest",
|
|
596
631
|
}));
|
|
597
632
|
|
|
598
633
|
export type GetAuthExternalError = SlackOpError;
|
|
@@ -608,6 +643,8 @@ export const getAuthExternal: API.OperationMethod<
|
|
|
608
643
|
errors: [SlackError, SlackRateLimited],
|
|
609
644
|
protocol: SlackProtocol,
|
|
610
645
|
retry: Retry.Retry,
|
|
646
|
+
telemetry: TELEMETRY,
|
|
647
|
+
span: "GetAuthExternal",
|
|
611
648
|
}));
|
|
612
649
|
|
|
613
650
|
export type GetDatastoreError = SlackOpError;
|
|
@@ -623,10 +660,12 @@ export const getDatastore: API.OperationMethod<
|
|
|
623
660
|
errors: [SlackError, SlackRateLimited],
|
|
624
661
|
protocol: SlackProtocol,
|
|
625
662
|
retry: Retry.Retry,
|
|
663
|
+
telemetry: TELEMETRY,
|
|
664
|
+
span: "GetDatastore",
|
|
626
665
|
}));
|
|
627
666
|
|
|
628
667
|
export type ListActivitiesError = SlackOpError;
|
|
629
|
-
/** 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 */
|
|
630
669
|
export const listActivities: API.PaginatedOperationMethod<
|
|
631
670
|
ListActivitiesRequest,
|
|
632
671
|
ListActivitiesResponse,
|
|
@@ -640,6 +679,8 @@ export const listActivities: API.PaginatedOperationMethod<
|
|
|
640
679
|
errors: [SlackError, SlackRateLimited],
|
|
641
680
|
protocol: SlackProtocol,
|
|
642
681
|
retry: Retry.Retry,
|
|
682
|
+
telemetry: TELEMETRY,
|
|
683
|
+
span: "ListActivities",
|
|
643
684
|
pagination: {
|
|
644
685
|
mode: "cursor",
|
|
645
686
|
inputToken: "cursor",
|
|
@@ -666,6 +707,8 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
|
666
707
|
errors: [SlackError, SlackRateLimited],
|
|
667
708
|
protocol: SlackProtocol,
|
|
668
709
|
retry: Retry.Retry,
|
|
710
|
+
telemetry: TELEMETRY,
|
|
711
|
+
span: "ListEventAuthorizations",
|
|
669
712
|
pagination: {
|
|
670
713
|
mode: "cursor",
|
|
671
714
|
inputToken: "cursor",
|
|
@@ -690,10 +733,12 @@ export const putDatastore: API.OperationMethod<
|
|
|
690
733
|
errors: [SlackError, SlackRateLimited],
|
|
691
734
|
protocol: SlackProtocol,
|
|
692
735
|
retry: Retry.Retry,
|
|
736
|
+
telemetry: TELEMETRY,
|
|
737
|
+
span: "PutDatastore",
|
|
693
738
|
}));
|
|
694
739
|
|
|
695
740
|
export type SetIconError = SlackOpError;
|
|
696
|
-
/** 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 */
|
|
697
742
|
export const setIcon: API.OperationMethod<
|
|
698
743
|
SetIconRequest,
|
|
699
744
|
SetIconResponse,
|
|
@@ -705,10 +750,12 @@ export const setIcon: API.OperationMethod<
|
|
|
705
750
|
errors: [SlackError, SlackRateLimited],
|
|
706
751
|
protocol: SlackProtocol,
|
|
707
752
|
retry: Retry.Retry,
|
|
753
|
+
telemetry: TELEMETRY,
|
|
754
|
+
span: "SetIcon",
|
|
708
755
|
}));
|
|
709
756
|
|
|
710
757
|
export type SetManagedPermissionsError = SlackOpError;
|
|
711
|
-
/** 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 */
|
|
712
759
|
export const setManagedPermissions: API.OperationMethod<
|
|
713
760
|
SetManagedPermissionsRequest,
|
|
714
761
|
SetManagedPermissionsResponse,
|
|
@@ -720,6 +767,8 @@ export const setManagedPermissions: API.OperationMethod<
|
|
|
720
767
|
errors: [SlackError, SlackRateLimited],
|
|
721
768
|
protocol: SlackProtocol,
|
|
722
769
|
retry: Retry.Retry,
|
|
770
|
+
telemetry: TELEMETRY,
|
|
771
|
+
span: "SetManagedPermissions",
|
|
723
772
|
}));
|
|
724
773
|
|
|
725
774
|
export type UninstallAppError = SlackOpError;
|
|
@@ -735,6 +784,8 @@ export const uninstallApp: API.OperationMethod<
|
|
|
735
784
|
errors: [SlackError, SlackRateLimited],
|
|
736
785
|
protocol: SlackProtocol,
|
|
737
786
|
retry: Retry.Retry,
|
|
787
|
+
telemetry: TELEMETRY,
|
|
788
|
+
span: "UninstallApp",
|
|
738
789
|
}));
|
|
739
790
|
|
|
740
791
|
export type UpdateDatastoreError = SlackOpError;
|
|
@@ -750,10 +801,12 @@ export const updateDatastore: API.OperationMethod<
|
|
|
750
801
|
errors: [SlackError, SlackRateLimited],
|
|
751
802
|
protocol: SlackProtocol,
|
|
752
803
|
retry: Retry.Retry,
|
|
804
|
+
telemetry: TELEMETRY,
|
|
805
|
+
span: "UpdateDatastore",
|
|
753
806
|
}));
|
|
754
807
|
|
|
755
808
|
export type UpdateManifestError = SlackOpError;
|
|
756
|
-
/** 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 */
|
|
757
810
|
export const updateManifest: API.OperationMethod<
|
|
758
811
|
UpdateManifestRequest,
|
|
759
812
|
UpdateManifestResponse,
|
|
@@ -765,6 +818,8 @@ export const updateManifest: API.OperationMethod<
|
|
|
765
818
|
errors: [SlackError, SlackRateLimited],
|
|
766
819
|
protocol: SlackProtocol,
|
|
767
820
|
retry: Retry.Retry,
|
|
821
|
+
telemetry: TELEMETRY,
|
|
822
|
+
span: "UpdateManifest",
|
|
768
823
|
}));
|
|
769
824
|
|
|
770
825
|
export type UpdateUserConnectionError = SlackOpError;
|
|
@@ -780,10 +835,12 @@ export const updateUserConnection: API.OperationMethod<
|
|
|
780
835
|
errors: [SlackError, SlackRateLimited],
|
|
781
836
|
protocol: SlackProtocol,
|
|
782
837
|
retry: Retry.Retry,
|
|
838
|
+
telemetry: TELEMETRY,
|
|
839
|
+
span: "UpdateUserConnection",
|
|
783
840
|
}));
|
|
784
841
|
|
|
785
842
|
export type ValidateManifestError = SlackOpError;
|
|
786
|
-
/** 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 */
|
|
787
844
|
export const validateManifest: API.OperationMethod<
|
|
788
845
|
ValidateManifestRequest,
|
|
789
846
|
ValidateManifestResponse,
|
|
@@ -795,6 +852,8 @@ export const validateManifest: API.OperationMethod<
|
|
|
795
852
|
errors: [SlackError, SlackRateLimited],
|
|
796
853
|
protocol: SlackProtocol,
|
|
797
854
|
retry: Retry.Retry,
|
|
855
|
+
telemetry: TELEMETRY,
|
|
856
|
+
span: "ValidateManifest",
|
|
798
857
|
}));
|
|
799
858
|
|
|
800
859
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|