@distilled.cloud/slack 1.0.0-rc.13 → 1.0.0-rc.15
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/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +12 -18
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +288 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +236 -29
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +417 -749
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +423 -0
- package/lib/services/agents.d.ts.map +1 -0
- package/lib/services/agents.js +315 -0
- package/lib/services/agents.js.map +1 -0
- package/lib/services/api.d.ts +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +4 -6
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +21 -3
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +65 -133
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -4
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +16 -38
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +2 -2
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +11 -28
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +5 -9
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -4
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +14 -30
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +7 -15
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +13 -33
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +22 -2
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +37 -48
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +29 -25
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +47 -95
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +10 -8
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +43 -115
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +5 -9
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +10 -24
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +6 -11
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +8 -20
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +5 -5
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +39 -109
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +28 -75
- 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/index.js.map +1 -1
- package/lib/services/lists.d.ts +5 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +35 -146
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +5 -8
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +38 -2
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +67 -50
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +1 -1
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +7 -15
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +7 -15
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +2 -2
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +13 -29
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +13 -33
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +9 -21
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +13 -30
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +10 -20
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +25 -62
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +5 -9
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +8 -3
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +23 -51
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +2 -2
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +28 -81
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +11 -27
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -71
- package/lib/services/workflows.js.map +1 -1
- package/package.json +15 -11
- package/src/credentials.ts +8 -10
- package/src/errors.ts +17 -31
- package/src/index.ts +3 -7
- package/src/pagination.ts +2 -5
- package/src/protocol.test.ts +372 -0
- package/src/protocol.ts +34 -66
- package/src/retry.ts +4 -9
- package/src/services/admin.ts +1241 -1557
- package/src/services/agents.ts +853 -0
- package/src/services/api.ts +4 -10
- package/src/services/apps.ts +146 -243
- package/src/services/assistant.ts +93 -144
- package/src/services/auth.ts +12 -33
- package/src/services/blocks.ts +9 -24
- package/src/services/bookmarks.ts +14 -34
- package/src/services/bots.ts +7 -19
- package/src/services/calls.ts +15 -43
- package/src/services/canvases.ts +82 -85
- package/src/services/chat.ts +134 -254
- package/src/services/conversations.ts +101 -217
- package/src/services/dialog.ts +5 -13
- package/src/services/dnd.ts +11 -31
- package/src/services/emoji.ts +9 -19
- package/src/services/entity.ts +17 -45
- package/src/services/files.ts +72 -165
- package/src/services/functions.ts +95 -168
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +65 -208
- package/src/services/migration.ts +8 -17
- package/src/services/oauth.ts +127 -60
- package/src/services/openid.ts +12 -34
- package/src/services/pins.ts +7 -19
- package/src/services/reactions.ts +19 -43
- package/src/services/reminders.ts +13 -37
- package/src/services/rtm.ts +9 -25
- package/src/services/search.ts +51 -92
- package/src/services/stars.ts +20 -31
- package/src/services/team.ts +81 -155
- package/src/services/tooling.ts +5 -13
- package/src/services/usergroups.ts +37 -68
- package/src/services/users.ts +35 -102
- package/src/services/views.ts +11 -31
- package/src/services/workflows.ts +65 -129
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -40
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -54
package/src/services/apps.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
4
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as T from "../traits.ts";
|
|
6
|
-
import {
|
|
7
|
-
SlackProtocol,
|
|
8
|
-
type SlackOpError,
|
|
9
|
-
type SlackOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
|
-
import { slackPaginate } from "../pagination.ts";
|
|
12
5
|
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
6
|
+
import { slackPaginate } from "../pagination.ts";
|
|
7
|
+
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { SlackOpError, SlackOpContext };
|
|
16
12
|
|
|
@@ -32,12 +28,8 @@ export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
32
28
|
datastore: S.String,
|
|
33
29
|
ids: BulkDeleteRequestIdsList,
|
|
34
30
|
app_id: S.optional(S.String),
|
|
35
|
-
}).pipe(
|
|
36
|
-
|
|
37
|
-
),
|
|
38
|
-
).annotate({
|
|
39
|
-
identifier: "BulkDeleteRequest",
|
|
40
|
-
}) as any as S.Schema<BulkDeleteRequest>;
|
|
31
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkDelete", code: 200 })),
|
|
32
|
+
).annotate({ identifier: "BulkDeleteRequest" }) as any as S.Schema<BulkDeleteRequest>;
|
|
41
33
|
|
|
42
34
|
/** attribute names and values of the items that failed to be processed */
|
|
43
35
|
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
@@ -56,9 +48,7 @@ export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
56
48
|
ok: S.Boolean,
|
|
57
49
|
failed_items: S.optional(BulkDeleteResponseFailedItemsList),
|
|
58
50
|
}),
|
|
59
|
-
).annotate({
|
|
60
|
-
identifier: "BulkDeleteResponse",
|
|
61
|
-
}) as any as S.Schema<BulkDeleteResponse>;
|
|
51
|
+
).annotate({ identifier: "BulkDeleteResponse" }) as any as S.Schema<BulkDeleteResponse>;
|
|
62
52
|
|
|
63
53
|
/** items' ids */
|
|
64
54
|
export type BulkGetRequestIdsList = Array<string>;
|
|
@@ -78,14 +68,10 @@ export const BulkGetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
78
68
|
datastore: S.String,
|
|
79
69
|
ids: BulkGetRequestIdsList,
|
|
80
70
|
app_id: S.optional(S.String),
|
|
81
|
-
}).pipe(
|
|
82
|
-
T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 }),
|
|
83
|
-
),
|
|
71
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 })),
|
|
84
72
|
).annotate({ identifier: "BulkGetRequest" }) as any as S.Schema<BulkGetRequest>;
|
|
85
73
|
|
|
86
|
-
export type BulkGetResponseItemsItemMap = {
|
|
87
|
-
[key: string]: unknown | undefined;
|
|
88
|
-
};
|
|
74
|
+
export type BulkGetResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
89
75
|
export const BulkGetResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
90
76
|
S.String,
|
|
91
77
|
S.Unknown,
|
|
@@ -117,9 +103,7 @@ export const BulkGetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
117
103
|
items: S.optional(BulkGetResponseItemsList),
|
|
118
104
|
failed_items: S.optional(BulkGetResponseFailedItemsList),
|
|
119
105
|
}),
|
|
120
|
-
).annotate({
|
|
121
|
-
identifier: "BulkGetResponse",
|
|
122
|
-
}) as any as S.Schema<BulkGetResponse>;
|
|
106
|
+
).annotate({ identifier: "BulkGetResponse" }) as any as S.Schema<BulkGetResponse>;
|
|
123
107
|
|
|
124
108
|
export type BulkPutRequestItemsItemMap = { [key: string]: unknown | undefined };
|
|
125
109
|
export const BulkPutRequestItemsItemMap = /*@__PURE__*/ S.Record(
|
|
@@ -145,22 +129,17 @@ export const BulkPutRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
145
129
|
datastore: S.String,
|
|
146
130
|
items: BulkPutRequestItemsList,
|
|
147
131
|
app_id: S.optional(S.String),
|
|
148
|
-
}).pipe(
|
|
149
|
-
T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 }),
|
|
150
|
-
),
|
|
132
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
|
|
151
133
|
).annotate({ identifier: "BulkPutRequest" }) as any as S.Schema<BulkPutRequest>;
|
|
152
134
|
|
|
153
|
-
export type BulkPutResponseFailedItemsItemMap = {
|
|
154
|
-
[key: string]: unknown | undefined;
|
|
155
|
-
};
|
|
135
|
+
export type BulkPutResponseFailedItemsItemMap = { [key: string]: unknown | undefined };
|
|
156
136
|
export const BulkPutResponseFailedItemsItemMap = /*@__PURE__*/ S.Record(
|
|
157
137
|
S.String,
|
|
158
138
|
S.Unknown,
|
|
159
139
|
) as any as S.Schema<BulkPutResponseFailedItemsItemMap>;
|
|
160
140
|
|
|
161
141
|
/** attribute names and values of the items that failed to be processed */
|
|
162
|
-
export type BulkPutResponseFailedItemsList =
|
|
163
|
-
Array<BulkPutResponseFailedItemsItemMap>;
|
|
142
|
+
export type BulkPutResponseFailedItemsList = Array<BulkPutResponseFailedItemsItemMap>;
|
|
164
143
|
export const BulkPutResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
165
144
|
BulkPutResponseFailedItemsItemMap,
|
|
166
145
|
) as any as S.Schema<BulkPutResponseFailedItemsList>;
|
|
@@ -179,18 +158,12 @@ export const BulkPutResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
179
158
|
datastore: S.optional(S.String),
|
|
180
159
|
failed_items: S.optional(BulkPutResponseFailedItemsList),
|
|
181
160
|
}),
|
|
182
|
-
).annotate({
|
|
183
|
-
identifier: "BulkPutResponse",
|
|
184
|
-
}) as any as S.Schema<BulkPutResponse>;
|
|
161
|
+
).annotate({ identifier: "BulkPutResponse" }) as any as S.Schema<BulkPutResponse>;
|
|
185
162
|
|
|
186
163
|
export interface ConnectionsOpenRequest {}
|
|
187
164
|
export const ConnectionsOpenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
188
|
-
S.Struct({}).pipe(
|
|
189
|
-
|
|
190
|
-
),
|
|
191
|
-
).annotate({
|
|
192
|
-
identifier: "ConnectionsOpenRequest",
|
|
193
|
-
}) as any as S.Schema<ConnectionsOpenRequest>;
|
|
165
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 })),
|
|
166
|
+
).annotate({ identifier: "ConnectionsOpenRequest" }) as any as S.Schema<ConnectionsOpenRequest>;
|
|
194
167
|
|
|
195
168
|
export interface ConnectionsOpenResponse {
|
|
196
169
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -203,9 +176,7 @@ export const ConnectionsOpenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
203
176
|
ok: S.Boolean,
|
|
204
177
|
url: S.String,
|
|
205
178
|
}),
|
|
206
|
-
).annotate({
|
|
207
|
-
identifier: "ConnectionsOpenResponse",
|
|
208
|
-
}) as any as S.Schema<ConnectionsOpenResponse>;
|
|
179
|
+
).annotate({ identifier: "ConnectionsOpenResponse" }) as any as S.Schema<ConnectionsOpenResponse>;
|
|
209
180
|
|
|
210
181
|
export interface CreateManifestRequest {
|
|
211
182
|
/** 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). */
|
|
@@ -218,9 +189,7 @@ export const CreateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
218
189
|
manifest: S.String,
|
|
219
190
|
team_id: S.optional(S.String),
|
|
220
191
|
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 })),
|
|
221
|
-
).annotate({
|
|
222
|
-
identifier: "CreateManifestRequest",
|
|
223
|
-
}) as any as S.Schema<CreateManifestRequest>;
|
|
192
|
+
).annotate({ identifier: "CreateManifestRequest" }) as any as S.Schema<CreateManifestRequest>;
|
|
224
193
|
|
|
225
194
|
export interface CreateManifestResponseCredentials {
|
|
226
195
|
client_id?: string;
|
|
@@ -261,24 +230,17 @@ export const CreateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
261
230
|
team_domain: S.optional(S.String),
|
|
262
231
|
app_token: S.optional(S.String),
|
|
263
232
|
}),
|
|
264
|
-
).annotate({
|
|
265
|
-
identifier: "CreateManifestResponse",
|
|
266
|
-
}) as any as S.Schema<CreateManifestResponse>;
|
|
233
|
+
).annotate({ identifier: "CreateManifestResponse" }) as any as S.Schema<CreateManifestResponse>;
|
|
267
234
|
|
|
268
235
|
/** A map of attributes referenced in expression */
|
|
269
|
-
export type DatastoreCountRequestExpressionAttributesMap = {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
S.String,
|
|
275
|
-
S.Unknown,
|
|
276
|
-
) as any as S.Schema<DatastoreCountRequestExpressionAttributesMap>;
|
|
236
|
+
export type DatastoreCountRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
237
|
+
export const DatastoreCountRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(
|
|
238
|
+
S.String,
|
|
239
|
+
S.Unknown,
|
|
240
|
+
) as any as S.Schema<DatastoreCountRequestExpressionAttributesMap>;
|
|
277
241
|
|
|
278
242
|
/** A map of values referenced in expression */
|
|
279
|
-
export type DatastoreCountRequestExpressionValuesMap = {
|
|
280
|
-
[key: string]: unknown | undefined;
|
|
281
|
-
};
|
|
243
|
+
export type DatastoreCountRequestExpressionValuesMap = { [key: string]: unknown | undefined };
|
|
282
244
|
export const DatastoreCountRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
283
245
|
S.String,
|
|
284
246
|
S.Unknown,
|
|
@@ -300,15 +262,11 @@ export const DatastoreCountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
300
262
|
S.Struct({
|
|
301
263
|
datastore: S.String,
|
|
302
264
|
expression: S.optional(S.String),
|
|
303
|
-
expression_attributes: S.optional(
|
|
304
|
-
DatastoreCountRequestExpressionAttributesMap,
|
|
305
|
-
),
|
|
265
|
+
expression_attributes: S.optional(DatastoreCountRequestExpressionAttributesMap),
|
|
306
266
|
expression_values: S.optional(DatastoreCountRequestExpressionValuesMap),
|
|
307
267
|
app_id: S.optional(S.String),
|
|
308
268
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 })),
|
|
309
|
-
).annotate({
|
|
310
|
-
identifier: "DatastoreCountRequest",
|
|
311
|
-
}) as any as S.Schema<DatastoreCountRequest>;
|
|
269
|
+
).annotate({ identifier: "DatastoreCountRequest" }) as any as S.Schema<DatastoreCountRequest>;
|
|
312
270
|
|
|
313
271
|
export interface DatastoreCountResponse {
|
|
314
272
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -324,24 +282,17 @@ export const DatastoreCountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
324
282
|
datastore: S.optional(S.String),
|
|
325
283
|
count: S.optional(S.Number),
|
|
326
284
|
}),
|
|
327
|
-
).annotate({
|
|
328
|
-
identifier: "DatastoreCountResponse",
|
|
329
|
-
}) as any as S.Schema<DatastoreCountResponse>;
|
|
285
|
+
).annotate({ identifier: "DatastoreCountResponse" }) as any as S.Schema<DatastoreCountResponse>;
|
|
330
286
|
|
|
331
287
|
/** A map of attributes referenced in expression */
|
|
332
|
-
export type DatastoreQueryRequestExpressionAttributesMap = {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
S.String,
|
|
338
|
-
S.Unknown,
|
|
339
|
-
) as any as S.Schema<DatastoreQueryRequestExpressionAttributesMap>;
|
|
288
|
+
export type DatastoreQueryRequestExpressionAttributesMap = { [key: string]: unknown | undefined };
|
|
289
|
+
export const DatastoreQueryRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(
|
|
290
|
+
S.String,
|
|
291
|
+
S.Unknown,
|
|
292
|
+
) as any as S.Schema<DatastoreQueryRequestExpressionAttributesMap>;
|
|
340
293
|
|
|
341
294
|
/** A map of values referenced in expression */
|
|
342
|
-
export type DatastoreQueryRequestExpressionValuesMap = {
|
|
343
|
-
[key: string]: unknown | undefined;
|
|
344
|
-
};
|
|
295
|
+
export type DatastoreQueryRequestExpressionValuesMap = { [key: string]: unknown | undefined };
|
|
345
296
|
export const DatastoreQueryRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
346
297
|
S.String,
|
|
347
298
|
S.Unknown,
|
|
@@ -367,29 +318,22 @@ export const DatastoreQueryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
367
318
|
S.Struct({
|
|
368
319
|
datastore: S.String,
|
|
369
320
|
expression: S.optional(S.String),
|
|
370
|
-
expression_attributes: S.optional(
|
|
371
|
-
DatastoreQueryRequestExpressionAttributesMap,
|
|
372
|
-
),
|
|
321
|
+
expression_attributes: S.optional(DatastoreQueryRequestExpressionAttributesMap),
|
|
373
322
|
expression_values: S.optional(DatastoreQueryRequestExpressionValuesMap),
|
|
374
323
|
app_id: S.optional(S.String),
|
|
375
324
|
cursor: S.optional(S.String),
|
|
376
325
|
limit: S.optional(S.Number),
|
|
377
326
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 })),
|
|
378
|
-
).annotate({
|
|
379
|
-
identifier: "DatastoreQueryRequest",
|
|
380
|
-
}) as any as S.Schema<DatastoreQueryRequest>;
|
|
327
|
+
).annotate({ identifier: "DatastoreQueryRequest" }) as any as S.Schema<DatastoreQueryRequest>;
|
|
381
328
|
|
|
382
|
-
export type DatastoreQueryResponseItemsItemMap = {
|
|
383
|
-
[key: string]: unknown | undefined;
|
|
384
|
-
};
|
|
329
|
+
export type DatastoreQueryResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
385
330
|
export const DatastoreQueryResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
386
331
|
S.String,
|
|
387
332
|
S.Unknown,
|
|
388
333
|
) as any as S.Schema<DatastoreQueryResponseItemsItemMap>;
|
|
389
334
|
|
|
390
335
|
/** attribute names and values of the items */
|
|
391
|
-
export type DatastoreQueryResponseItemsList =
|
|
392
|
-
Array<DatastoreQueryResponseItemsItemMap>;
|
|
336
|
+
export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsItemMap>;
|
|
393
337
|
export const DatastoreQueryResponseItemsList = /*@__PURE__*/ S.Array(
|
|
394
338
|
DatastoreQueryResponseItemsItemMap,
|
|
395
339
|
) as any as S.Schema<DatastoreQueryResponseItemsList>;
|
|
@@ -399,11 +343,10 @@ export interface DatastoreQueryResponseResponseMetadata {
|
|
|
399
343
|
/** Cursor for the next page — pass as `cursor` on the next call. */
|
|
400
344
|
next_cursor?: string;
|
|
401
345
|
}
|
|
402
|
-
export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(
|
|
403
|
-
(
|
|
404
|
-
S.
|
|
405
|
-
|
|
406
|
-
}),
|
|
346
|
+
export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
347
|
+
S.Struct({
|
|
348
|
+
next_cursor: S.optional(S.String),
|
|
349
|
+
}),
|
|
407
350
|
).annotate({
|
|
408
351
|
identifier: "DatastoreQueryResponseResponseMetadata",
|
|
409
352
|
}) as any as S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
@@ -425,9 +368,7 @@ export const DatastoreQueryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
425
368
|
items: DatastoreQueryResponseItemsList,
|
|
426
369
|
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
427
370
|
}),
|
|
428
|
-
).annotate({
|
|
429
|
-
identifier: "DatastoreQueryResponse",
|
|
430
|
-
}) as any as S.Schema<DatastoreQueryResponse>;
|
|
371
|
+
).annotate({ identifier: "DatastoreQueryResponse" }) as any as S.Schema<DatastoreQueryResponse>;
|
|
431
372
|
|
|
432
373
|
export interface DeleteAuthExternalRequest {
|
|
433
374
|
/** The id of the app whose tokens you want to delete */
|
|
@@ -442,9 +383,7 @@ export const DeleteAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
442
383
|
app_id: S.optional(S.String),
|
|
443
384
|
provider_key: S.optional(S.String),
|
|
444
385
|
external_token_id: S.optional(S.String),
|
|
445
|
-
}).pipe(
|
|
446
|
-
T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 }),
|
|
447
|
-
),
|
|
386
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 })),
|
|
448
387
|
).annotate({
|
|
449
388
|
identifier: "DeleteAuthExternalRequest",
|
|
450
389
|
}) as any as S.Schema<DeleteAuthExternalRequest>;
|
|
@@ -474,9 +413,7 @@ export const DeleteDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
474
413
|
id: S.String,
|
|
475
414
|
app_id: S.optional(S.String),
|
|
476
415
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 })),
|
|
477
|
-
).annotate({
|
|
478
|
-
identifier: "DeleteDatastoreRequest",
|
|
479
|
-
}) as any as S.Schema<DeleteDatastoreRequest>;
|
|
416
|
+
).annotate({ identifier: "DeleteDatastoreRequest" }) as any as S.Schema<DeleteDatastoreRequest>;
|
|
480
417
|
|
|
481
418
|
export interface DeleteDatastoreResponse {
|
|
482
419
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -486,9 +423,7 @@ export const DeleteDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
486
423
|
S.Struct({
|
|
487
424
|
ok: S.Boolean,
|
|
488
425
|
}),
|
|
489
|
-
).annotate({
|
|
490
|
-
identifier: "DeleteDatastoreResponse",
|
|
491
|
-
}) as any as S.Schema<DeleteDatastoreResponse>;
|
|
426
|
+
).annotate({ identifier: "DeleteDatastoreResponse" }) as any as S.Schema<DeleteDatastoreResponse>;
|
|
492
427
|
|
|
493
428
|
export interface DeleteManifestRequest {
|
|
494
429
|
/** The ID of the app you want to delete. */
|
|
@@ -498,9 +433,7 @@ export const DeleteManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
498
433
|
S.Struct({
|
|
499
434
|
app_id: S.String,
|
|
500
435
|
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
501
|
-
).annotate({
|
|
502
|
-
identifier: "DeleteManifestRequest",
|
|
503
|
-
}) as any as S.Schema<DeleteManifestRequest>;
|
|
436
|
+
).annotate({ identifier: "DeleteManifestRequest" }) as any as S.Schema<DeleteManifestRequest>;
|
|
504
437
|
|
|
505
438
|
export interface DeleteManifestResponse {
|
|
506
439
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -510,9 +443,7 @@ export const DeleteManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
510
443
|
S.Struct({
|
|
511
444
|
ok: S.Boolean,
|
|
512
445
|
}),
|
|
513
|
-
).annotate({
|
|
514
|
-
identifier: "DeleteManifestResponse",
|
|
515
|
-
}) as any as S.Schema<DeleteManifestResponse>;
|
|
446
|
+
).annotate({ identifier: "DeleteManifestResponse" }) as any as S.Schema<DeleteManifestResponse>;
|
|
516
447
|
|
|
517
448
|
export interface ExportManifestRequest {
|
|
518
449
|
/** The ID of the app whose configuration you want to export as a manifest. */
|
|
@@ -522,9 +453,7 @@ export const ExportManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
522
453
|
S.Struct({
|
|
523
454
|
app_id: S.String,
|
|
524
455
|
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 })),
|
|
525
|
-
).annotate({
|
|
526
|
-
identifier: "ExportManifestRequest",
|
|
527
|
-
}) as any as S.Schema<ExportManifestRequest>;
|
|
456
|
+
).annotate({ identifier: "ExportManifestRequest" }) as any as S.Schema<ExportManifestRequest>;
|
|
528
457
|
|
|
529
458
|
export interface ExportManifestResponse {
|
|
530
459
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -536,9 +465,7 @@ export const ExportManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
536
465
|
ok: S.Boolean,
|
|
537
466
|
manifest: S.Unknown,
|
|
538
467
|
}),
|
|
539
|
-
).annotate({
|
|
540
|
-
identifier: "ExportManifestResponse",
|
|
541
|
-
}) as any as S.Schema<ExportManifestResponse>;
|
|
468
|
+
).annotate({ identifier: "ExportManifestResponse" }) as any as S.Schema<ExportManifestResponse>;
|
|
542
469
|
|
|
543
470
|
export interface GetAuthExternalRequest {
|
|
544
471
|
/** The id of the token you want to get the token for */
|
|
@@ -550,12 +477,8 @@ export const GetAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
550
477
|
S.Struct({
|
|
551
478
|
external_token_id: S.String,
|
|
552
479
|
force_refresh: S.optional(S.Boolean),
|
|
553
|
-
}).pipe(
|
|
554
|
-
|
|
555
|
-
),
|
|
556
|
-
).annotate({
|
|
557
|
-
identifier: "GetAuthExternalRequest",
|
|
558
|
-
}) as any as S.Schema<GetAuthExternalRequest>;
|
|
480
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 })),
|
|
481
|
+
).annotate({ identifier: "GetAuthExternalRequest" }) as any as S.Schema<GetAuthExternalRequest>;
|
|
559
482
|
|
|
560
483
|
export interface GetAuthExternalResponse {
|
|
561
484
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -569,9 +492,7 @@ export const GetAuthExternalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
569
492
|
external_token: S.String,
|
|
570
493
|
token_response_extras: S.Unknown,
|
|
571
494
|
}),
|
|
572
|
-
).annotate({
|
|
573
|
-
identifier: "GetAuthExternalResponse",
|
|
574
|
-
}) as any as S.Schema<GetAuthExternalResponse>;
|
|
495
|
+
).annotate({ identifier: "GetAuthExternalResponse" }) as any as S.Schema<GetAuthExternalResponse>;
|
|
575
496
|
|
|
576
497
|
export interface GetDatastoreRequest {
|
|
577
498
|
/** name of the datastore */
|
|
@@ -586,14 +507,10 @@ export const GetDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
586
507
|
id: S.String,
|
|
587
508
|
app_id: S.optional(S.String),
|
|
588
509
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 })),
|
|
589
|
-
).annotate({
|
|
590
|
-
identifier: "GetDatastoreRequest",
|
|
591
|
-
}) as any as S.Schema<GetDatastoreRequest>;
|
|
510
|
+
).annotate({ identifier: "GetDatastoreRequest" }) as any as S.Schema<GetDatastoreRequest>;
|
|
592
511
|
|
|
593
512
|
/** attribute names and values of the item */
|
|
594
|
-
export type GetDatastoreResponseItemMap = {
|
|
595
|
-
[key: string]: unknown | undefined;
|
|
596
|
-
};
|
|
513
|
+
export type GetDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
597
514
|
export const GetDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
598
515
|
S.String,
|
|
599
516
|
S.Unknown,
|
|
@@ -613,9 +530,7 @@ export const GetDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
613
530
|
datastore: S.optional(S.String),
|
|
614
531
|
item: S.optional(GetDatastoreResponseItemMap),
|
|
615
532
|
}),
|
|
616
|
-
).annotate({
|
|
617
|
-
identifier: "GetDatastoreResponse",
|
|
618
|
-
}) as any as S.Schema<GetDatastoreResponse>;
|
|
533
|
+
).annotate({ identifier: "GetDatastoreResponse" }) as any as S.Schema<GetDatastoreResponse>;
|
|
619
534
|
|
|
620
535
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
621
536
|
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
@@ -672,9 +587,7 @@ export const ListActivitiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
672
587
|
contentType: "form-urlencoded",
|
|
673
588
|
}),
|
|
674
589
|
),
|
|
675
|
-
).annotate({
|
|
676
|
-
identifier: "ListActivitiesRequest",
|
|
677
|
-
}) as any as S.Schema<ListActivitiesRequest>;
|
|
590
|
+
).annotate({ identifier: "ListActivitiesRequest" }) as any as S.Schema<ListActivitiesRequest>;
|
|
678
591
|
|
|
679
592
|
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
680
593
|
export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(
|
|
@@ -682,10 +595,8 @@ export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(
|
|
|
682
595
|
) as any as S.Schema<ListActivitiesResponseActivitiesList>;
|
|
683
596
|
|
|
684
597
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
685
|
-
export type ListActivitiesResponseResponseMetadata =
|
|
686
|
-
|
|
687
|
-
export const ListActivitiesResponseResponseMetadata =
|
|
688
|
-
DatastoreQueryResponseResponseMetadata;
|
|
598
|
+
export type ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
599
|
+
export const ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
689
600
|
|
|
690
601
|
export interface ListActivitiesResponse {
|
|
691
602
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -700,9 +611,7 @@ export const ListActivitiesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
700
611
|
activities: ListActivitiesResponseActivitiesList,
|
|
701
612
|
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
702
613
|
}),
|
|
703
|
-
).annotate({
|
|
704
|
-
identifier: "ListActivitiesResponse",
|
|
705
|
-
}) as any as S.Schema<ListActivitiesResponse>;
|
|
614
|
+
).annotate({ identifier: "ListActivitiesResponse" }) as any as S.Schema<ListActivitiesResponse>;
|
|
706
615
|
|
|
707
616
|
export interface ListEventAuthorizationsRequest {
|
|
708
617
|
event_context: string;
|
|
@@ -714,13 +623,7 @@ export const ListEventAuthorizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
714
623
|
event_context: S.String,
|
|
715
624
|
cursor: S.optional(S.String),
|
|
716
625
|
limit: S.optional(S.Number),
|
|
717
|
-
}).pipe(
|
|
718
|
-
T.Http({
|
|
719
|
-
method: "POST",
|
|
720
|
-
uri: "/apps.event.authorizations.list",
|
|
721
|
-
code: 200,
|
|
722
|
-
}),
|
|
723
|
-
),
|
|
626
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.event.authorizations.list", code: 200 })),
|
|
724
627
|
).annotate({
|
|
725
628
|
identifier: "ListEventAuthorizationsRequest",
|
|
726
629
|
}) as any as S.Schema<ListEventAuthorizationsRequest>;
|
|
@@ -732,25 +635,23 @@ export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
|
732
635
|
is_bot: boolean;
|
|
733
636
|
is_enterprise_install: boolean;
|
|
734
637
|
}
|
|
735
|
-
export const ListEventAuthorizationsResponseAuthorizationsItem =
|
|
736
|
-
|
|
737
|
-
S.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
}) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
638
|
+
export const ListEventAuthorizationsResponseAuthorizationsItem = /*@__PURE__*/ S.suspend(() =>
|
|
639
|
+
S.Struct({
|
|
640
|
+
enterprise_id: S.NullOr(S.String),
|
|
641
|
+
team_id: S.NullOr(S.String),
|
|
642
|
+
user_id: S.String,
|
|
643
|
+
is_bot: S.Boolean,
|
|
644
|
+
is_enterprise_install: S.Boolean,
|
|
645
|
+
}),
|
|
646
|
+
).annotate({
|
|
647
|
+
identifier: "ListEventAuthorizationsResponseAuthorizationsItem",
|
|
648
|
+
}) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
747
649
|
|
|
748
650
|
export type ListEventAuthorizationsResponseAuthorizationsList =
|
|
749
651
|
Array<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
750
|
-
export const ListEventAuthorizationsResponseAuthorizationsList =
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
|
|
652
|
+
export const ListEventAuthorizationsResponseAuthorizationsList = /*@__PURE__*/ S.Array(
|
|
653
|
+
ListEventAuthorizationsResponseAuthorizationsItem,
|
|
654
|
+
) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
|
|
754
655
|
|
|
755
656
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
756
657
|
export type ListEventAuthorizationsResponseResponseMetadata =
|
|
@@ -798,14 +699,10 @@ export const PutDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
798
699
|
item: PutDatastoreRequestItemMap,
|
|
799
700
|
app_id: S.optional(S.String),
|
|
800
701
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 })),
|
|
801
|
-
).annotate({
|
|
802
|
-
identifier: "PutDatastoreRequest",
|
|
803
|
-
}) as any as S.Schema<PutDatastoreRequest>;
|
|
702
|
+
).annotate({ identifier: "PutDatastoreRequest" }) as any as S.Schema<PutDatastoreRequest>;
|
|
804
703
|
|
|
805
704
|
/** attribute names and values of the item */
|
|
806
|
-
export type PutDatastoreResponseItemMap = {
|
|
807
|
-
[key: string]: unknown | undefined;
|
|
808
|
-
};
|
|
705
|
+
export type PutDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
809
706
|
export const PutDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
810
707
|
S.String,
|
|
811
708
|
S.Unknown,
|
|
@@ -825,9 +722,7 @@ export const PutDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
825
722
|
datastore: S.optional(S.String),
|
|
826
723
|
item: S.optional(PutDatastoreResponseItemMap),
|
|
827
724
|
}),
|
|
828
|
-
).annotate({
|
|
829
|
-
identifier: "PutDatastoreResponse",
|
|
830
|
-
}) as any as S.Schema<PutDatastoreResponse>;
|
|
725
|
+
).annotate({ identifier: "PutDatastoreResponse" }) as any as S.Schema<PutDatastoreResponse>;
|
|
831
726
|
|
|
832
727
|
export interface SetIconRequest {
|
|
833
728
|
/** The ID of the app whose icon you want to set. */
|
|
@@ -853,9 +748,38 @@ export const SetIconResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
853
748
|
S.Struct({
|
|
854
749
|
ok: S.Boolean,
|
|
855
750
|
}),
|
|
751
|
+
).annotate({ identifier: "SetIconResponse" }) as any as S.Schema<SetIconResponse>;
|
|
752
|
+
|
|
753
|
+
/** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
|
|
754
|
+
export type SetManagedPermissionsRequestPermissions = "everyone" | "app_owner";
|
|
755
|
+
export const SetManagedPermissionsRequestPermissions = S.String;
|
|
756
|
+
|
|
757
|
+
export interface SetManagedPermissionsRequest {
|
|
758
|
+
/** Encoded ID of the managed app to configure */
|
|
759
|
+
app_id: string;
|
|
760
|
+
/** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
|
|
761
|
+
permissions: SetManagedPermissionsRequestPermissions | (string & {});
|
|
762
|
+
}
|
|
763
|
+
export const SetManagedPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
764
|
+
S.Struct({
|
|
765
|
+
app_id: S.String,
|
|
766
|
+
permissions: SetManagedPermissionsRequestPermissions,
|
|
767
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.managed.permissions.set", code: 200 })),
|
|
856
768
|
).annotate({
|
|
857
|
-
identifier: "
|
|
858
|
-
}) as any as S.Schema<
|
|
769
|
+
identifier: "SetManagedPermissionsRequest",
|
|
770
|
+
}) as any as S.Schema<SetManagedPermissionsRequest>;
|
|
771
|
+
|
|
772
|
+
export interface SetManagedPermissionsResponse {
|
|
773
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
774
|
+
ok: boolean;
|
|
775
|
+
}
|
|
776
|
+
export const SetManagedPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
777
|
+
S.Struct({
|
|
778
|
+
ok: S.Boolean,
|
|
779
|
+
}),
|
|
780
|
+
).annotate({
|
|
781
|
+
identifier: "SetManagedPermissionsResponse",
|
|
782
|
+
}) as any as S.Schema<SetManagedPermissionsResponse>;
|
|
859
783
|
|
|
860
784
|
export interface UninstallAppRequest {
|
|
861
785
|
/** Issued when you created your application. */
|
|
@@ -868,16 +792,9 @@ export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
868
792
|
client_id: S.String,
|
|
869
793
|
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
870
794
|
}).pipe(
|
|
871
|
-
T.Http({
|
|
872
|
-
method: "POST",
|
|
873
|
-
uri: "/apps.uninstall",
|
|
874
|
-
code: 200,
|
|
875
|
-
contentType: "form-urlencoded",
|
|
876
|
-
}),
|
|
795
|
+
T.Http({ method: "POST", uri: "/apps.uninstall", code: 200, contentType: "form-urlencoded" }),
|
|
877
796
|
),
|
|
878
|
-
).annotate({
|
|
879
|
-
identifier: "UninstallAppRequest",
|
|
880
|
-
}) as any as S.Schema<UninstallAppRequest>;
|
|
797
|
+
).annotate({ identifier: "UninstallAppRequest" }) as any as S.Schema<UninstallAppRequest>;
|
|
881
798
|
|
|
882
799
|
export interface UninstallAppResponse {
|
|
883
800
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -889,14 +806,10 @@ export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
889
806
|
ok: S.Boolean,
|
|
890
807
|
uninstalled: S.Boolean,
|
|
891
808
|
}),
|
|
892
|
-
).annotate({
|
|
893
|
-
identifier: "UninstallAppResponse",
|
|
894
|
-
}) as any as S.Schema<UninstallAppResponse>;
|
|
809
|
+
).annotate({ identifier: "UninstallAppResponse" }) as any as S.Schema<UninstallAppResponse>;
|
|
895
810
|
|
|
896
811
|
/** attribute names and values to be updated */
|
|
897
|
-
export type UpdateDatastoreRequestItemMap = {
|
|
898
|
-
[key: string]: unknown | undefined;
|
|
899
|
-
};
|
|
812
|
+
export type UpdateDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
900
813
|
export const UpdateDatastoreRequestItemMap = /*@__PURE__*/ S.Record(
|
|
901
814
|
S.String,
|
|
902
815
|
S.Unknown,
|
|
@@ -915,14 +828,10 @@ export const UpdateDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
915
828
|
item: UpdateDatastoreRequestItemMap,
|
|
916
829
|
app_id: S.optional(S.String),
|
|
917
830
|
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 })),
|
|
918
|
-
).annotate({
|
|
919
|
-
identifier: "UpdateDatastoreRequest",
|
|
920
|
-
}) as any as S.Schema<UpdateDatastoreRequest>;
|
|
831
|
+
).annotate({ identifier: "UpdateDatastoreRequest" }) as any as S.Schema<UpdateDatastoreRequest>;
|
|
921
832
|
|
|
922
833
|
/** attribute names and values of the item, including those updated */
|
|
923
|
-
export type UpdateDatastoreResponseItemMap = {
|
|
924
|
-
[key: string]: unknown | undefined;
|
|
925
|
-
};
|
|
834
|
+
export type UpdateDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
926
835
|
export const UpdateDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
927
836
|
S.String,
|
|
928
837
|
S.Unknown,
|
|
@@ -942,9 +851,7 @@ export const UpdateDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
942
851
|
datastore: S.optional(S.String),
|
|
943
852
|
item: S.optional(UpdateDatastoreResponseItemMap),
|
|
944
853
|
}),
|
|
945
|
-
).annotate({
|
|
946
|
-
identifier: "UpdateDatastoreResponse",
|
|
947
|
-
}) as any as S.Schema<UpdateDatastoreResponse>;
|
|
854
|
+
).annotate({ identifier: "UpdateDatastoreResponse" }) as any as S.Schema<UpdateDatastoreResponse>;
|
|
948
855
|
|
|
949
856
|
export interface UpdateManifestRequest {
|
|
950
857
|
/** 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. */
|
|
@@ -957,9 +864,7 @@ export const UpdateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
957
864
|
manifest: S.String,
|
|
958
865
|
app_id: S.String,
|
|
959
866
|
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 })),
|
|
960
|
-
).annotate({
|
|
961
|
-
identifier: "UpdateManifestRequest",
|
|
962
|
-
}) as any as S.Schema<UpdateManifestRequest>;
|
|
867
|
+
).annotate({ identifier: "UpdateManifestRequest" }) as any as S.Schema<UpdateManifestRequest>;
|
|
963
868
|
|
|
964
869
|
export interface UpdateManifestResponse {
|
|
965
870
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -973,9 +878,7 @@ export const UpdateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
973
878
|
app_id: S.String,
|
|
974
879
|
permissions_updated: S.optional(S.Boolean),
|
|
975
880
|
}),
|
|
976
|
-
).annotate({
|
|
977
|
-
identifier: "UpdateManifestResponse",
|
|
978
|
-
}) as any as S.Schema<UpdateManifestResponse>;
|
|
881
|
+
).annotate({ identifier: "UpdateManifestResponse" }) as any as S.Schema<UpdateManifestResponse>;
|
|
979
882
|
|
|
980
883
|
/** The status that should be set for the user. */
|
|
981
884
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
@@ -991,14 +894,7 @@ export const UpdateUserConnectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
991
894
|
S.Struct({
|
|
992
895
|
user_id: S.String,
|
|
993
896
|
status: UpdateUserConnectionRequestStatus,
|
|
994
|
-
}).pipe(
|
|
995
|
-
T.Http({
|
|
996
|
-
method: "POST",
|
|
997
|
-
uri: "/apps.user.connection.update",
|
|
998
|
-
code: 200,
|
|
999
|
-
contentType: "form-urlencoded",
|
|
1000
|
-
}),
|
|
1001
|
-
),
|
|
897
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.update", code: 200 })),
|
|
1002
898
|
).annotate({
|
|
1003
899
|
identifier: "UpdateUserConnectionRequest",
|
|
1004
900
|
}) as any as S.Schema<UpdateUserConnectionRequest>;
|
|
@@ -1025,12 +921,8 @@ export const ValidateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1025
921
|
S.Struct({
|
|
1026
922
|
manifest: S.String,
|
|
1027
923
|
app_id: S.optional(S.String),
|
|
1028
|
-
}).pipe(
|
|
1029
|
-
|
|
1030
|
-
),
|
|
1031
|
-
).annotate({
|
|
1032
|
-
identifier: "ValidateManifestRequest",
|
|
1033
|
-
}) as any as S.Schema<ValidateManifestRequest>;
|
|
924
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 })),
|
|
925
|
+
).annotate({ identifier: "ValidateManifestRequest" }) as any as S.Schema<ValidateManifestRequest>;
|
|
1034
926
|
|
|
1035
927
|
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
1036
928
|
export const ValidateManifestResponseErrorsList = /*@__PURE__*/ S.Array(
|
|
@@ -1042,20 +934,18 @@ export interface ValidateManifestResponseWarningsItem {
|
|
|
1042
934
|
message: string;
|
|
1043
935
|
pointer?: string;
|
|
1044
936
|
}
|
|
1045
|
-
export const ValidateManifestResponseWarningsItem = /*@__PURE__*/ S.suspend(
|
|
1046
|
-
(
|
|
1047
|
-
S.
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
}),
|
|
937
|
+
export const ValidateManifestResponseWarningsItem = /*@__PURE__*/ S.suspend(() =>
|
|
938
|
+
S.Struct({
|
|
939
|
+
code: S.String,
|
|
940
|
+
message: S.String,
|
|
941
|
+
pointer: S.optional(S.String),
|
|
942
|
+
}),
|
|
1052
943
|
).annotate({
|
|
1053
944
|
identifier: "ValidateManifestResponseWarningsItem",
|
|
1054
945
|
}) as any as S.Schema<ValidateManifestResponseWarningsItem>;
|
|
1055
946
|
|
|
1056
947
|
/** Non-blocking warnings from app manifest validation. */
|
|
1057
|
-
export type ValidateManifestResponseWarningsList =
|
|
1058
|
-
Array<ValidateManifestResponseWarningsItem>;
|
|
948
|
+
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
1059
949
|
export const ValidateManifestResponseWarningsList = /*@__PURE__*/ S.Array(
|
|
1060
950
|
ValidateManifestResponseWarningsItem,
|
|
1061
951
|
) as any as S.Schema<ValidateManifestResponseWarningsList>;
|
|
@@ -1073,9 +963,7 @@ export const ValidateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1073
963
|
errors: ValidateManifestResponseErrorsList,
|
|
1074
964
|
warnings: S.optional(ValidateManifestResponseWarningsList),
|
|
1075
965
|
}),
|
|
1076
|
-
).annotate({
|
|
1077
|
-
identifier: "ValidateManifestResponse",
|
|
1078
|
-
}) as any as S.Schema<ValidateManifestResponse>;
|
|
966
|
+
).annotate({ identifier: "ValidateManifestResponse" }) as any as S.Schema<ValidateManifestResponse>;
|
|
1079
967
|
|
|
1080
968
|
export type BulkDeleteError = SlackOpError;
|
|
1081
969
|
/** 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 */
|
|
@@ -1351,7 +1239,7 @@ export const putDatastore: API.OperationMethod<
|
|
|
1351
1239
|
}));
|
|
1352
1240
|
|
|
1353
1241
|
export type SetIconError = SlackOpError;
|
|
1354
|
-
/** Sets the app icon Required scopes — user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `error_bad_format` — Icon must be a valid image file. - `icon_not_accessible` — The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` — App does not exist. - `invalid_app_id` — App ID is not valid. - `invalid_icon_size` — Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` — Only one of `URL` or `file` can be defined. - `missing_arguments` — One of `URL` or `file` must be provided. - `no_permission` — User does not have required permissions for app. - `unable_to_open_file` — Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
1242
|
+
/** 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 */
|
|
1355
1243
|
export const setIcon: API.OperationMethod<
|
|
1356
1244
|
SetIconRequest,
|
|
1357
1245
|
SetIconResponse,
|
|
@@ -1365,6 +1253,21 @@ export const setIcon: API.OperationMethod<
|
|
|
1365
1253
|
retry: Retry.Retry,
|
|
1366
1254
|
}));
|
|
1367
1255
|
|
|
1256
|
+
export type SetManagedPermissionsError = SlackOpError;
|
|
1257
|
+
/** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions as themselves, using a user token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes — configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token. - `access_denied` — The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` — The manager app the token was issued to is not eligible to configure app permissions. - `feature_not_enabled` — This method is not enabled for the manager app's organization. - `app_not_found` — This app does not exist. - `app_not_managed` — The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` — The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` — App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` — The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
|
|
1258
|
+
export const setManagedPermissions: API.OperationMethod<
|
|
1259
|
+
SetManagedPermissionsRequest,
|
|
1260
|
+
SetManagedPermissionsResponse,
|
|
1261
|
+
SetManagedPermissionsError,
|
|
1262
|
+
SlackOpContext
|
|
1263
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1264
|
+
input: SetManagedPermissionsRequest,
|
|
1265
|
+
output: SetManagedPermissionsResponse,
|
|
1266
|
+
errors: [SlackError, SlackRateLimited],
|
|
1267
|
+
protocol: SlackProtocol,
|
|
1268
|
+
retry: Retry.Retry,
|
|
1269
|
+
}));
|
|
1270
|
+
|
|
1368
1271
|
export type UninstallAppError = SlackOpError;
|
|
1369
1272
|
/** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `client_id_token_mismatch` — The provided client ID and token do not belong to the same app. - `internal_error` — Internal error uninstall - `invalid_client_id` — Value passed for `client_id` was invalid. - `no_permission` — Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
|
|
1370
1273
|
export const uninstallApp: API.OperationMethod<
|
|
@@ -1411,7 +1314,7 @@ export const updateManifest: API.OperationMethod<
|
|
|
1411
1314
|
}));
|
|
1412
1315
|
|
|
1413
1316
|
export type UpdateUserConnectionError = SlackOpError;
|
|
1414
|
-
/** Updates the connection status between a user and an app. Required scopes — user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The app was not found. - `invalid_auth` — The token doesn't have access to this endpoint. - `app_not_subscribed` — The app is not subscribed to the required events. - `user_not_found` — Value passed for `user_id` was invalid. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
1317
|
+
/** Updates the connection status between a user and an app. Required scopes — user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The app was not found. - `invalid_auth` — The token doesn't have access to this endpoint. - `app_not_subscribed` — The app is not subscribed to the required events. - `user_not_found` — Value passed for `user_id` was invalid. - `missing_scope` — The token provided doesn't have the required scopes. - `internal_error` — The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
1415
1318
|
export const updateUserConnection: API.OperationMethod<
|
|
1416
1319
|
UpdateUserConnectionRequest,
|
|
1417
1320
|
UpdateUserConnectionResponse,
|