@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +39 -34
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +41 -41
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -9
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +28 -28
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +61 -59
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +34 -33
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +304 -2878
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +48 -309
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +16 -18
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +84 -509
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +33 -204
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +22 -90
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +16 -21
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +27 -76
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +17 -54
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -110
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +39 -135
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +59 -381
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +94 -690
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +13 -17
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +26 -91
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +18 -29
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +29 -71
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +75 -433
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +45 -203
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +53 -248
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +18 -27
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +34 -289
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +19 -79
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +27 -61
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +30 -96
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +33 -83
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +22 -56
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +28 -167
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +28 -128
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +45 -289
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +15 -28
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +40 -146
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +54 -249
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +28 -73
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +37 -188
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +14 -10
- package/src/credentials.ts +20 -21
- package/src/errors.ts +31 -27
- package/src/index.ts +1 -1
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +30 -29
- package/src/retry.ts +6 -6
- package/src/services/admin.ts +2717 -3451
- package/src/services/agents.ts +380 -370
- package/src/services/api.ts +31 -21
- package/src/services/apps.ts +569 -621
- package/src/services/assistant.ts +235 -270
- package/src/services/auth.ts +118 -100
- package/src/services/blocks.ts +33 -29
- package/src/services/bookmarks.ts +101 -83
- package/src/services/bots.ts +74 -67
- package/src/services/calls.ts +118 -124
- package/src/services/canvases.ts +171 -178
- package/src/services/chat.ts +428 -496
- package/src/services/conversations.ts +675 -761
- package/src/services/dialog.ts +30 -17
- package/src/services/dnd.ts +125 -99
- package/src/services/emoji.ts +46 -42
- package/src/services/entity.ts +94 -92
- package/src/services/files.ts +536 -531
- package/src/services/functions.ts +209 -274
- package/src/services/lists.ts +289 -304
- package/src/services/migration.ts +39 -37
- package/src/services/oauth.ts +345 -361
- package/src/services/openid.ts +137 -122
- package/src/services/pins.ts +83 -70
- package/src/services/reactions.ts +119 -103
- package/src/services/reminders.ts +112 -90
- package/src/services/rtm.ts +73 -65
- package/src/services/search.ts +193 -244
- package/src/services/stars.ts +101 -160
- package/src/services/team.ts +333 -369
- package/src/services/tooling.ts +43 -30
- package/src/services/usergroups.ts +175 -179
- package/src/services/users.ts +301 -268
- package/src/services/views.ts +85 -80
- package/src/services/workflows.ts +184 -269
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -288
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/admin.js.map +0 -1
- package/lib/services/agents.js.map +0 -1
- package/lib/services/api.js.map +0 -1
- package/lib/services/apps.js.map +0 -1
- package/lib/services/assistant.js.map +0 -1
- package/lib/services/auth.js.map +0 -1
- package/lib/services/blocks.js.map +0 -1
- package/lib/services/bookmarks.js.map +0 -1
- package/lib/services/bots.js.map +0 -1
- package/lib/services/calls.js.map +0 -1
- package/lib/services/canvases.js.map +0 -1
- package/lib/services/chat.js.map +0 -1
- package/lib/services/conversations.js.map +0 -1
- package/lib/services/dialog.js.map +0 -1
- package/lib/services/dnd.js.map +0 -1
- package/lib/services/emoji.js.map +0 -1
- package/lib/services/entity.js.map +0 -1
- package/lib/services/files.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/lists.js.map +0 -1
- package/lib/services/migration.js.map +0 -1
- package/lib/services/oauth.js.map +0 -1
- package/lib/services/openid.js.map +0 -1
- package/lib/services/pins.js.map +0 -1
- package/lib/services/reactions.js.map +0 -1
- package/lib/services/reminders.js.map +0 -1
- package/lib/services/rtm.js.map +0 -1
- package/lib/services/search.js.map +0 -1
- package/lib/services/stars.js.map +0 -1
- package/lib/services/team.js.map +0 -1
- package/lib/services/tooling.js.map +0 -1
- package/lib/services/usergroups.js.map +0 -1
- package/lib/services/users.js.map +0 -1
- package/lib/services/views.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -372
package/src/services/apps.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
5
6
|
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
6
7
|
import { slackPaginate } from "../pagination.ts";
|
|
7
8
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { SlackOpError, SlackOpContext };
|
|
12
15
|
|
|
13
16
|
/** IDs of items to be deleted */
|
|
14
17
|
export type BulkDeleteRequestIdsList = Array<string>;
|
|
15
|
-
export const BulkDeleteRequestIdsList = /*@__PURE__*/ S.Array(
|
|
16
|
-
S.String,
|
|
17
|
-
) as any as S.Schema<BulkDeleteRequestIdsList>;
|
|
18
|
-
|
|
19
18
|
export interface BulkDeleteRequest {
|
|
20
19
|
/** name of the datastore */
|
|
21
20
|
datastore: string;
|
|
@@ -23,39 +22,16 @@ export interface BulkDeleteRequest {
|
|
|
23
22
|
ids: BulkDeleteRequestIdsList;
|
|
24
23
|
app_id?: string;
|
|
25
24
|
}
|
|
26
|
-
export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
27
|
-
S.Struct({
|
|
28
|
-
datastore: S.String,
|
|
29
|
-
ids: BulkDeleteRequestIdsList,
|
|
30
|
-
app_id: S.optional(S.String),
|
|
31
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkDelete", code: 200 })),
|
|
32
|
-
).annotate({ identifier: "BulkDeleteRequest" }) as any as S.Schema<BulkDeleteRequest>;
|
|
33
|
-
|
|
34
25
|
/** attribute names and values of the items that failed to be processed */
|
|
35
26
|
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
36
|
-
export const BulkDeleteResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
37
|
-
S.String,
|
|
38
|
-
) as any as S.Schema<BulkDeleteResponseFailedItemsList>;
|
|
39
|
-
|
|
40
27
|
export interface BulkDeleteResponse {
|
|
41
28
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
42
29
|
ok: boolean;
|
|
43
30
|
/** attribute names and values of the items that failed to be processed */
|
|
44
31
|
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
45
32
|
}
|
|
46
|
-
export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
-
S.Struct({
|
|
48
|
-
ok: S.Boolean,
|
|
49
|
-
failed_items: S.optional(BulkDeleteResponseFailedItemsList),
|
|
50
|
-
}),
|
|
51
|
-
).annotate({ identifier: "BulkDeleteResponse" }) as any as S.Schema<BulkDeleteResponse>;
|
|
52
|
-
|
|
53
33
|
/** items' ids */
|
|
54
34
|
export type BulkGetRequestIdsList = Array<string>;
|
|
55
|
-
export const BulkGetRequestIdsList = /*@__PURE__*/ S.Array(
|
|
56
|
-
S.String,
|
|
57
|
-
) as any as S.Schema<BulkGetRequestIdsList>;
|
|
58
|
-
|
|
59
35
|
export interface BulkGetRequest {
|
|
60
36
|
/** name of the datastore */
|
|
61
37
|
datastore: string;
|
|
@@ -63,32 +39,11 @@ export interface BulkGetRequest {
|
|
|
63
39
|
ids: BulkGetRequestIdsList;
|
|
64
40
|
app_id?: string;
|
|
65
41
|
}
|
|
66
|
-
export const BulkGetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
67
|
-
S.Struct({
|
|
68
|
-
datastore: S.String,
|
|
69
|
-
ids: BulkGetRequestIdsList,
|
|
70
|
-
app_id: S.optional(S.String),
|
|
71
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 })),
|
|
72
|
-
).annotate({ identifier: "BulkGetRequest" }) as any as S.Schema<BulkGetRequest>;
|
|
73
|
-
|
|
74
42
|
export type BulkGetResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
75
|
-
export const BulkGetResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
76
|
-
S.String,
|
|
77
|
-
S.Unknown,
|
|
78
|
-
) as any as S.Schema<BulkGetResponseItemsItemMap>;
|
|
79
|
-
|
|
80
43
|
/** array of attribute names and values of each item */
|
|
81
44
|
export type BulkGetResponseItemsList = Array<BulkGetResponseItemsItemMap>;
|
|
82
|
-
export const BulkGetResponseItemsList = /*@__PURE__*/ S.Array(
|
|
83
|
-
BulkGetResponseItemsItemMap,
|
|
84
|
-
) as any as S.Schema<BulkGetResponseItemsList>;
|
|
85
|
-
|
|
86
45
|
/** attribute names and values of the items that failed to be processed */
|
|
87
46
|
export type BulkGetResponseFailedItemsList = Array<string>;
|
|
88
|
-
export const BulkGetResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
89
|
-
S.String,
|
|
90
|
-
) as any as S.Schema<BulkGetResponseFailedItemsList>;
|
|
91
|
-
|
|
92
47
|
export interface BulkGetResponse {
|
|
93
48
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
94
49
|
ok: boolean;
|
|
@@ -97,26 +52,9 @@ export interface BulkGetResponse {
|
|
|
97
52
|
/** attribute names and values of the items that failed to be processed */
|
|
98
53
|
failed_items?: BulkGetResponseFailedItemsList;
|
|
99
54
|
}
|
|
100
|
-
export const BulkGetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
101
|
-
S.Struct({
|
|
102
|
-
ok: S.Boolean,
|
|
103
|
-
items: S.optional(BulkGetResponseItemsList),
|
|
104
|
-
failed_items: S.optional(BulkGetResponseFailedItemsList),
|
|
105
|
-
}),
|
|
106
|
-
).annotate({ identifier: "BulkGetResponse" }) as any as S.Schema<BulkGetResponse>;
|
|
107
|
-
|
|
108
55
|
export type BulkPutRequestItemsItemMap = { [key: string]: unknown | undefined };
|
|
109
|
-
export const BulkPutRequestItemsItemMap = /*@__PURE__*/ S.Record(
|
|
110
|
-
S.String,
|
|
111
|
-
S.Unknown,
|
|
112
|
-
) as any as S.Schema<BulkPutRequestItemsItemMap>;
|
|
113
|
-
|
|
114
56
|
/** attribute names and values of the items; limit of 25 */
|
|
115
57
|
export type BulkPutRequestItemsList = Array<BulkPutRequestItemsItemMap>;
|
|
116
|
-
export const BulkPutRequestItemsList = /*@__PURE__*/ S.Array(
|
|
117
|
-
BulkPutRequestItemsItemMap,
|
|
118
|
-
) as any as S.Schema<BulkPutRequestItemsList>;
|
|
119
|
-
|
|
120
58
|
export interface BulkPutRequest {
|
|
121
59
|
/** name of the datastore */
|
|
122
60
|
datastore: string;
|
|
@@ -124,26 +62,9 @@ export interface BulkPutRequest {
|
|
|
124
62
|
items: BulkPutRequestItemsList;
|
|
125
63
|
app_id?: string;
|
|
126
64
|
}
|
|
127
|
-
export const BulkPutRequest = /*@__PURE__*/ S.suspend(() =>
|
|
128
|
-
S.Struct({
|
|
129
|
-
datastore: S.String,
|
|
130
|
-
items: BulkPutRequestItemsList,
|
|
131
|
-
app_id: S.optional(S.String),
|
|
132
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
|
|
133
|
-
).annotate({ identifier: "BulkPutRequest" }) as any as S.Schema<BulkPutRequest>;
|
|
134
|
-
|
|
135
65
|
export type BulkPutResponseFailedItemsItemMap = { [key: string]: unknown | undefined };
|
|
136
|
-
export const BulkPutResponseFailedItemsItemMap = /*@__PURE__*/ S.Record(
|
|
137
|
-
S.String,
|
|
138
|
-
S.Unknown,
|
|
139
|
-
) as any as S.Schema<BulkPutResponseFailedItemsItemMap>;
|
|
140
|
-
|
|
141
66
|
/** attribute names and values of the items that failed to be processed */
|
|
142
67
|
export type BulkPutResponseFailedItemsList = Array<BulkPutResponseFailedItemsItemMap>;
|
|
143
|
-
export const BulkPutResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
144
|
-
BulkPutResponseFailedItemsItemMap,
|
|
145
|
-
) as any as S.Schema<BulkPutResponseFailedItemsList>;
|
|
146
|
-
|
|
147
68
|
export interface BulkPutResponse {
|
|
148
69
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
149
70
|
ok: boolean;
|
|
@@ -152,62 +73,25 @@ export interface BulkPutResponse {
|
|
|
152
73
|
/** attribute names and values of the items that failed to be processed */
|
|
153
74
|
failed_items?: BulkPutResponseFailedItemsList;
|
|
154
75
|
}
|
|
155
|
-
export const BulkPutResponse = /*@__PURE__*/ S.suspend(() =>
|
|
156
|
-
S.Struct({
|
|
157
|
-
ok: S.Boolean,
|
|
158
|
-
datastore: S.optional(S.String),
|
|
159
|
-
failed_items: S.optional(BulkPutResponseFailedItemsList),
|
|
160
|
-
}),
|
|
161
|
-
).annotate({ identifier: "BulkPutResponse" }) as any as S.Schema<BulkPutResponse>;
|
|
162
|
-
|
|
163
76
|
export interface ConnectionsOpenRequest {}
|
|
164
|
-
export const ConnectionsOpenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
165
|
-
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 })),
|
|
166
|
-
).annotate({ identifier: "ConnectionsOpenRequest" }) as any as S.Schema<ConnectionsOpenRequest>;
|
|
167
|
-
|
|
168
77
|
export interface ConnectionsOpenResponse {
|
|
169
78
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
170
79
|
ok: boolean;
|
|
171
80
|
/** The URL to connect to. */
|
|
172
81
|
url: string;
|
|
173
82
|
}
|
|
174
|
-
export const ConnectionsOpenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
175
|
-
S.Struct({
|
|
176
|
-
ok: S.Boolean,
|
|
177
|
-
url: S.String,
|
|
178
|
-
}),
|
|
179
|
-
).annotate({ identifier: "ConnectionsOpenResponse" }) as any as S.Schema<ConnectionsOpenResponse>;
|
|
180
|
-
|
|
181
83
|
export interface CreateManifestRequest {
|
|
182
84
|
/** 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). */
|
|
183
85
|
manifest: string;
|
|
184
86
|
/** When called with an org token, which specific team to create app on */
|
|
185
87
|
team_id?: string;
|
|
186
88
|
}
|
|
187
|
-
export const CreateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
188
|
-
S.Struct({
|
|
189
|
-
manifest: S.String,
|
|
190
|
-
team_id: S.optional(S.String),
|
|
191
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 })),
|
|
192
|
-
).annotate({ identifier: "CreateManifestRequest" }) as any as S.Schema<CreateManifestRequest>;
|
|
193
|
-
|
|
194
89
|
export interface CreateManifestResponseCredentials {
|
|
195
90
|
client_id?: string;
|
|
196
91
|
client_secret?: string | Redacted.Redacted<string>;
|
|
197
92
|
verification_token?: string;
|
|
198
93
|
signing_secret?: string | Redacted.Redacted<string>;
|
|
199
94
|
}
|
|
200
|
-
export const CreateManifestResponseCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
201
|
-
S.Struct({
|
|
202
|
-
client_id: S.optional(S.String),
|
|
203
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
204
|
-
verification_token: S.optional(S.String),
|
|
205
|
-
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
206
|
-
}),
|
|
207
|
-
).annotate({
|
|
208
|
-
identifier: "CreateManifestResponseCredentials",
|
|
209
|
-
}) as any as S.Schema<CreateManifestResponseCredentials>;
|
|
210
|
-
|
|
211
95
|
export interface CreateManifestResponse {
|
|
212
96
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
213
97
|
ok: boolean;
|
|
@@ -220,32 +104,10 @@ export interface CreateManifestResponse {
|
|
|
220
104
|
team_domain?: string;
|
|
221
105
|
app_token?: string;
|
|
222
106
|
}
|
|
223
|
-
export const CreateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
224
|
-
S.Struct({
|
|
225
|
-
ok: S.Boolean,
|
|
226
|
-
app_id: S.String,
|
|
227
|
-
credentials: CreateManifestResponseCredentials,
|
|
228
|
-
oauth_authorize_url: S.optional(S.String),
|
|
229
|
-
team_id: S.optional(S.String),
|
|
230
|
-
team_domain: S.optional(S.String),
|
|
231
|
-
app_token: S.optional(S.String),
|
|
232
|
-
}),
|
|
233
|
-
).annotate({ identifier: "CreateManifestResponse" }) as any as S.Schema<CreateManifestResponse>;
|
|
234
|
-
|
|
235
107
|
/** A map of attributes referenced in expression */
|
|
236
108
|
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>;
|
|
241
|
-
|
|
242
109
|
/** A map of values referenced in expression */
|
|
243
110
|
export type DatastoreCountRequestExpressionValuesMap = { [key: string]: unknown | undefined };
|
|
244
|
-
export const DatastoreCountRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
245
|
-
S.String,
|
|
246
|
-
S.Unknown,
|
|
247
|
-
) as any as S.Schema<DatastoreCountRequestExpressionValuesMap>;
|
|
248
|
-
|
|
249
111
|
export interface DatastoreCountRequest {
|
|
250
112
|
/** Name of the datastore */
|
|
251
113
|
datastore: string;
|
|
@@ -258,16 +120,6 @@ export interface DatastoreCountRequest {
|
|
|
258
120
|
/** Required if calling with user token */
|
|
259
121
|
app_id?: string;
|
|
260
122
|
}
|
|
261
|
-
export const DatastoreCountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
262
|
-
S.Struct({
|
|
263
|
-
datastore: S.String,
|
|
264
|
-
expression: S.optional(S.String),
|
|
265
|
-
expression_attributes: S.optional(DatastoreCountRequestExpressionAttributesMap),
|
|
266
|
-
expression_values: S.optional(DatastoreCountRequestExpressionValuesMap),
|
|
267
|
-
app_id: S.optional(S.String),
|
|
268
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 })),
|
|
269
|
-
).annotate({ identifier: "DatastoreCountRequest" }) as any as S.Schema<DatastoreCountRequest>;
|
|
270
|
-
|
|
271
123
|
export interface DatastoreCountResponse {
|
|
272
124
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
273
125
|
ok: boolean;
|
|
@@ -276,28 +128,10 @@ export interface DatastoreCountResponse {
|
|
|
276
128
|
/** number of matching items */
|
|
277
129
|
count?: number;
|
|
278
130
|
}
|
|
279
|
-
export const DatastoreCountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
280
|
-
S.Struct({
|
|
281
|
-
ok: S.Boolean,
|
|
282
|
-
datastore: S.optional(S.String),
|
|
283
|
-
count: S.optional(S.Number),
|
|
284
|
-
}),
|
|
285
|
-
).annotate({ identifier: "DatastoreCountResponse" }) as any as S.Schema<DatastoreCountResponse>;
|
|
286
|
-
|
|
287
131
|
/** A map of attributes referenced in expression */
|
|
288
132
|
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>;
|
|
293
|
-
|
|
294
133
|
/** A map of values referenced in expression */
|
|
295
134
|
export type DatastoreQueryRequestExpressionValuesMap = { [key: string]: unknown | undefined };
|
|
296
|
-
export const DatastoreQueryRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
297
|
-
S.String,
|
|
298
|
-
S.Unknown,
|
|
299
|
-
) as any as S.Schema<DatastoreQueryRequestExpressionValuesMap>;
|
|
300
|
-
|
|
301
135
|
export interface DatastoreQueryRequest {
|
|
302
136
|
/** Name of the datastore */
|
|
303
137
|
datastore: string;
|
|
@@ -314,43 +148,14 @@ export interface DatastoreQueryRequest {
|
|
|
314
148
|
/** 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. */
|
|
315
149
|
limit?: number;
|
|
316
150
|
}
|
|
317
|
-
export const DatastoreQueryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
318
|
-
S.Struct({
|
|
319
|
-
datastore: S.String,
|
|
320
|
-
expression: S.optional(S.String),
|
|
321
|
-
expression_attributes: S.optional(DatastoreQueryRequestExpressionAttributesMap),
|
|
322
|
-
expression_values: S.optional(DatastoreQueryRequestExpressionValuesMap),
|
|
323
|
-
app_id: S.optional(S.String),
|
|
324
|
-
cursor: S.optional(S.String),
|
|
325
|
-
limit: S.optional(S.Number),
|
|
326
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 })),
|
|
327
|
-
).annotate({ identifier: "DatastoreQueryRequest" }) as any as S.Schema<DatastoreQueryRequest>;
|
|
328
|
-
|
|
329
151
|
export type DatastoreQueryResponseItemsItemMap = { [key: string]: unknown | undefined };
|
|
330
|
-
export const DatastoreQueryResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
331
|
-
S.String,
|
|
332
|
-
S.Unknown,
|
|
333
|
-
) as any as S.Schema<DatastoreQueryResponseItemsItemMap>;
|
|
334
|
-
|
|
335
152
|
/** attribute names and values of the items */
|
|
336
153
|
export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsItemMap>;
|
|
337
|
-
export const DatastoreQueryResponseItemsList = /*@__PURE__*/ S.Array(
|
|
338
|
-
DatastoreQueryResponseItemsItemMap,
|
|
339
|
-
) as any as S.Schema<DatastoreQueryResponseItemsList>;
|
|
340
|
-
|
|
341
154
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
342
155
|
export interface DatastoreQueryResponseResponseMetadata {
|
|
343
|
-
/** Cursor for the next page
|
|
156
|
+
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
344
157
|
next_cursor?: string;
|
|
345
158
|
}
|
|
346
|
-
export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
347
|
-
S.Struct({
|
|
348
|
-
next_cursor: S.optional(S.String),
|
|
349
|
-
}),
|
|
350
|
-
).annotate({
|
|
351
|
-
identifier: "DatastoreQueryResponseResponseMetadata",
|
|
352
|
-
}) as any as S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
353
|
-
|
|
354
159
|
export interface DatastoreQueryResponse {
|
|
355
160
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
356
161
|
ok: boolean;
|
|
@@ -361,15 +166,6 @@ export interface DatastoreQueryResponse {
|
|
|
361
166
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
362
167
|
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
363
168
|
}
|
|
364
|
-
export const DatastoreQueryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
365
|
-
S.Struct({
|
|
366
|
-
ok: S.Boolean,
|
|
367
|
-
datastore: S.optional(S.String),
|
|
368
|
-
items: DatastoreQueryResponseItemsList,
|
|
369
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
370
|
-
}),
|
|
371
|
-
).annotate({ identifier: "DatastoreQueryResponse" }) as any as S.Schema<DatastoreQueryResponse>;
|
|
372
|
-
|
|
373
169
|
export interface DeleteAuthExternalRequest {
|
|
374
170
|
/** The id of the app whose tokens you want to delete */
|
|
375
171
|
app_id?: string;
|
|
@@ -378,28 +174,10 @@ export interface DeleteAuthExternalRequest {
|
|
|
378
174
|
/** The id of the token that you want to delete */
|
|
379
175
|
external_token_id?: string;
|
|
380
176
|
}
|
|
381
|
-
export const DeleteAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
382
|
-
S.Struct({
|
|
383
|
-
app_id: S.optional(S.String),
|
|
384
|
-
provider_key: S.optional(S.String),
|
|
385
|
-
external_token_id: S.optional(S.String),
|
|
386
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 })),
|
|
387
|
-
).annotate({
|
|
388
|
-
identifier: "DeleteAuthExternalRequest",
|
|
389
|
-
}) as any as S.Schema<DeleteAuthExternalRequest>;
|
|
390
|
-
|
|
391
177
|
export interface DeleteAuthExternalResponse {
|
|
392
178
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
393
179
|
ok: boolean;
|
|
394
180
|
}
|
|
395
|
-
export const DeleteAuthExternalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
396
|
-
S.Struct({
|
|
397
|
-
ok: S.Boolean,
|
|
398
|
-
}),
|
|
399
|
-
).annotate({
|
|
400
|
-
identifier: "DeleteAuthExternalResponse",
|
|
401
|
-
}) as any as S.Schema<DeleteAuthExternalResponse>;
|
|
402
|
-
|
|
403
181
|
export interface DeleteDatastoreRequest {
|
|
404
182
|
/** name of the datastore */
|
|
405
183
|
datastore: string;
|
|
@@ -407,93 +185,39 @@ export interface DeleteDatastoreRequest {
|
|
|
407
185
|
id: string;
|
|
408
186
|
app_id?: string;
|
|
409
187
|
}
|
|
410
|
-
export const DeleteDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
411
|
-
S.Struct({
|
|
412
|
-
datastore: S.String,
|
|
413
|
-
id: S.String,
|
|
414
|
-
app_id: S.optional(S.String),
|
|
415
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 })),
|
|
416
|
-
).annotate({ identifier: "DeleteDatastoreRequest" }) as any as S.Schema<DeleteDatastoreRequest>;
|
|
417
|
-
|
|
418
188
|
export interface DeleteDatastoreResponse {
|
|
419
189
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
420
190
|
ok: boolean;
|
|
421
191
|
}
|
|
422
|
-
export const DeleteDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
423
|
-
S.Struct({
|
|
424
|
-
ok: S.Boolean,
|
|
425
|
-
}),
|
|
426
|
-
).annotate({ identifier: "DeleteDatastoreResponse" }) as any as S.Schema<DeleteDatastoreResponse>;
|
|
427
|
-
|
|
428
192
|
export interface DeleteManifestRequest {
|
|
429
193
|
/** The ID of the app you want to delete. */
|
|
430
194
|
app_id: string;
|
|
431
195
|
}
|
|
432
|
-
export const DeleteManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
433
|
-
S.Struct({
|
|
434
|
-
app_id: S.String,
|
|
435
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
436
|
-
).annotate({ identifier: "DeleteManifestRequest" }) as any as S.Schema<DeleteManifestRequest>;
|
|
437
|
-
|
|
438
196
|
export interface DeleteManifestResponse {
|
|
439
197
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
440
198
|
ok: boolean;
|
|
441
199
|
}
|
|
442
|
-
export const DeleteManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
443
|
-
S.Struct({
|
|
444
|
-
ok: S.Boolean,
|
|
445
|
-
}),
|
|
446
|
-
).annotate({ identifier: "DeleteManifestResponse" }) as any as S.Schema<DeleteManifestResponse>;
|
|
447
|
-
|
|
448
200
|
export interface ExportManifestRequest {
|
|
449
201
|
/** The ID of the app whose configuration you want to export as a manifest. */
|
|
450
202
|
app_id: string;
|
|
451
203
|
}
|
|
452
|
-
export const ExportManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
453
|
-
S.Struct({
|
|
454
|
-
app_id: S.String,
|
|
455
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 })),
|
|
456
|
-
).annotate({ identifier: "ExportManifestRequest" }) as any as S.Schema<ExportManifestRequest>;
|
|
457
|
-
|
|
458
204
|
export interface ExportManifestResponse {
|
|
459
205
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
460
206
|
ok: boolean;
|
|
461
207
|
manifest: unknown;
|
|
462
208
|
}
|
|
463
|
-
export const ExportManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
464
|
-
S.Struct({
|
|
465
|
-
ok: S.Boolean,
|
|
466
|
-
manifest: S.Unknown,
|
|
467
|
-
}),
|
|
468
|
-
).annotate({ identifier: "ExportManifestResponse" }) as any as S.Schema<ExportManifestResponse>;
|
|
469
|
-
|
|
470
209
|
export interface GetAuthExternalRequest {
|
|
471
210
|
/** The id of the token you want to get the token for */
|
|
472
211
|
external_token_id: string;
|
|
473
212
|
/** Always refresh existing token before returning even when the token has not expired */
|
|
474
213
|
force_refresh?: boolean;
|
|
475
214
|
}
|
|
476
|
-
export const GetAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
477
|
-
S.Struct({
|
|
478
|
-
external_token_id: S.String,
|
|
479
|
-
force_refresh: S.optional(S.Boolean),
|
|
480
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 })),
|
|
481
|
-
).annotate({ identifier: "GetAuthExternalRequest" }) as any as S.Schema<GetAuthExternalRequest>;
|
|
482
|
-
|
|
483
215
|
export interface GetAuthExternalResponse {
|
|
484
216
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
485
217
|
ok: boolean;
|
|
486
218
|
external_token: string;
|
|
487
219
|
token_response_extras: unknown;
|
|
488
220
|
}
|
|
489
|
-
export const GetAuthExternalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
490
|
-
S.Struct({
|
|
491
|
-
ok: S.Boolean,
|
|
492
|
-
external_token: S.String,
|
|
493
|
-
token_response_extras: S.Unknown,
|
|
494
|
-
}),
|
|
495
|
-
).annotate({ identifier: "GetAuthExternalResponse" }) as any as S.Schema<GetAuthExternalResponse>;
|
|
496
|
-
|
|
497
221
|
export interface GetDatastoreRequest {
|
|
498
222
|
/** name of the datastore */
|
|
499
223
|
datastore: string;
|
|
@@ -501,21 +225,8 @@ export interface GetDatastoreRequest {
|
|
|
501
225
|
id: string;
|
|
502
226
|
app_id?: string;
|
|
503
227
|
}
|
|
504
|
-
export const GetDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
505
|
-
S.Struct({
|
|
506
|
-
datastore: S.String,
|
|
507
|
-
id: S.String,
|
|
508
|
-
app_id: S.optional(S.String),
|
|
509
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 })),
|
|
510
|
-
).annotate({ identifier: "GetDatastoreRequest" }) as any as S.Schema<GetDatastoreRequest>;
|
|
511
|
-
|
|
512
228
|
/** attribute names and values of the item */
|
|
513
229
|
export type GetDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
514
|
-
export const GetDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
515
|
-
S.String,
|
|
516
|
-
S.Unknown,
|
|
517
|
-
) as any as S.Schema<GetDatastoreResponseItemMap>;
|
|
518
|
-
|
|
519
230
|
export interface GetDatastoreResponse {
|
|
520
231
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
521
232
|
ok: boolean;
|
|
@@ -524,18 +235,8 @@ export interface GetDatastoreResponse {
|
|
|
524
235
|
/** attribute names and values of the item */
|
|
525
236
|
item?: GetDatastoreResponseItemMap;
|
|
526
237
|
}
|
|
527
|
-
export const GetDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
528
|
-
S.Struct({
|
|
529
|
-
ok: S.Boolean,
|
|
530
|
-
datastore: S.optional(S.String),
|
|
531
|
-
item: S.optional(GetDatastoreResponseItemMap),
|
|
532
|
-
}),
|
|
533
|
-
).annotate({ identifier: "GetDatastoreResponse" }) as any as S.Schema<GetDatastoreResponse>;
|
|
534
|
-
|
|
535
238
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
536
239
|
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
537
|
-
export const ListActivitiesRequestSortDirection = S.String;
|
|
538
|
-
|
|
539
240
|
export interface ListActivitiesRequest {
|
|
540
241
|
/** The id of the app to get activities from. */
|
|
541
242
|
app_id: string;
|
|
@@ -564,40 +265,9 @@ export interface ListActivitiesRequest {
|
|
|
564
265
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
565
266
|
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
566
267
|
}
|
|
567
|
-
export const ListActivitiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
568
|
-
S.Struct({
|
|
569
|
-
app_id: S.String,
|
|
570
|
-
team_id: S.optional(S.String),
|
|
571
|
-
cursor: S.optional(S.String),
|
|
572
|
-
limit: S.optional(S.Number),
|
|
573
|
-
min_log_level: S.optional(S.String),
|
|
574
|
-
log_event_type: S.optional(S.String),
|
|
575
|
-
source: S.optional(S.String),
|
|
576
|
-
component_type: S.optional(S.String),
|
|
577
|
-
component_id: S.optional(S.String),
|
|
578
|
-
trace_id: S.optional(S.String),
|
|
579
|
-
min_date_created: S.optional(S.Number),
|
|
580
|
-
max_date_created: S.optional(S.Number),
|
|
581
|
-
sort_direction: S.optional(ListActivitiesRequestSortDirection),
|
|
582
|
-
}).pipe(
|
|
583
|
-
T.Http({
|
|
584
|
-
method: "POST",
|
|
585
|
-
uri: "/apps.activities.list",
|
|
586
|
-
code: 200,
|
|
587
|
-
contentType: "form-urlencoded",
|
|
588
|
-
}),
|
|
589
|
-
),
|
|
590
|
-
).annotate({ identifier: "ListActivitiesRequest" }) as any as S.Schema<ListActivitiesRequest>;
|
|
591
|
-
|
|
592
268
|
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
593
|
-
export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(
|
|
594
|
-
S.Unknown,
|
|
595
|
-
) as any as S.Schema<ListActivitiesResponseActivitiesList>;
|
|
596
|
-
|
|
597
269
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
598
270
|
export type ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
599
|
-
export const ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
600
|
-
|
|
601
271
|
export interface ListActivitiesResponse {
|
|
602
272
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
603
273
|
ok: boolean;
|
|
@@ -605,29 +275,11 @@ export interface ListActivitiesResponse {
|
|
|
605
275
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
606
276
|
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
607
277
|
}
|
|
608
|
-
export const ListActivitiesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
609
|
-
S.Struct({
|
|
610
|
-
ok: S.Boolean,
|
|
611
|
-
activities: ListActivitiesResponseActivitiesList,
|
|
612
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
613
|
-
}),
|
|
614
|
-
).annotate({ identifier: "ListActivitiesResponse" }) as any as S.Schema<ListActivitiesResponse>;
|
|
615
|
-
|
|
616
278
|
export interface ListEventAuthorizationsRequest {
|
|
617
279
|
event_context: string;
|
|
618
280
|
cursor?: string;
|
|
619
281
|
limit?: number;
|
|
620
282
|
}
|
|
621
|
-
export const ListEventAuthorizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
622
|
-
S.Struct({
|
|
623
|
-
event_context: S.String,
|
|
624
|
-
cursor: S.optional(S.String),
|
|
625
|
-
limit: S.optional(S.Number),
|
|
626
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.event.authorizations.list", code: 200 })),
|
|
627
|
-
).annotate({
|
|
628
|
-
identifier: "ListEventAuthorizationsRequest",
|
|
629
|
-
}) as any as S.Schema<ListEventAuthorizationsRequest>;
|
|
630
|
-
|
|
631
283
|
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
632
284
|
enterprise_id: string | null;
|
|
633
285
|
team_id: string | null;
|
|
@@ -635,30 +287,11 @@ export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
|
635
287
|
is_bot: boolean;
|
|
636
288
|
is_enterprise_install: boolean;
|
|
637
289
|
}
|
|
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>;
|
|
649
|
-
|
|
650
290
|
export type ListEventAuthorizationsResponseAuthorizationsList =
|
|
651
291
|
Array<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
652
|
-
export const ListEventAuthorizationsResponseAuthorizationsList = /*@__PURE__*/ S.Array(
|
|
653
|
-
ListEventAuthorizationsResponseAuthorizationsItem,
|
|
654
|
-
) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
|
|
655
|
-
|
|
656
292
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
657
293
|
export type ListEventAuthorizationsResponseResponseMetadata =
|
|
658
294
|
DatastoreQueryResponseResponseMetadata;
|
|
659
|
-
export const ListEventAuthorizationsResponseResponseMetadata =
|
|
660
|
-
DatastoreQueryResponseResponseMetadata;
|
|
661
|
-
|
|
662
295
|
export interface ListEventAuthorizationsResponse {
|
|
663
296
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
664
297
|
ok: boolean;
|
|
@@ -668,24 +301,8 @@ export interface ListEventAuthorizationsResponse {
|
|
|
668
301
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
669
302
|
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
670
303
|
}
|
|
671
|
-
export const ListEventAuthorizationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
672
|
-
S.Struct({
|
|
673
|
-
ok: S.Boolean,
|
|
674
|
-
cursor_next: S.optional(S.String),
|
|
675
|
-
authorizations: ListEventAuthorizationsResponseAuthorizationsList,
|
|
676
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
677
|
-
}),
|
|
678
|
-
).annotate({
|
|
679
|
-
identifier: "ListEventAuthorizationsResponse",
|
|
680
|
-
}) as any as S.Schema<ListEventAuthorizationsResponse>;
|
|
681
|
-
|
|
682
304
|
/** attribute names and values of the item */
|
|
683
305
|
export type PutDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
684
|
-
export const PutDatastoreRequestItemMap = /*@__PURE__*/ S.Record(
|
|
685
|
-
S.String,
|
|
686
|
-
S.Unknown,
|
|
687
|
-
) as any as S.Schema<PutDatastoreRequestItemMap>;
|
|
688
|
-
|
|
689
306
|
export interface PutDatastoreRequest {
|
|
690
307
|
/** name of the datastore */
|
|
691
308
|
datastore: string;
|
|
@@ -693,21 +310,8 @@ export interface PutDatastoreRequest {
|
|
|
693
310
|
item: PutDatastoreRequestItemMap;
|
|
694
311
|
app_id?: string;
|
|
695
312
|
}
|
|
696
|
-
export const PutDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
697
|
-
S.Struct({
|
|
698
|
-
datastore: S.String,
|
|
699
|
-
item: PutDatastoreRequestItemMap,
|
|
700
|
-
app_id: S.optional(S.String),
|
|
701
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 })),
|
|
702
|
-
).annotate({ identifier: "PutDatastoreRequest" }) as any as S.Schema<PutDatastoreRequest>;
|
|
703
|
-
|
|
704
313
|
/** attribute names and values of the item */
|
|
705
314
|
export type PutDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
706
|
-
export const PutDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
707
|
-
S.String,
|
|
708
|
-
S.Unknown,
|
|
709
|
-
) as any as S.Schema<PutDatastoreResponseItemMap>;
|
|
710
|
-
|
|
711
315
|
export interface PutDatastoreResponse {
|
|
712
316
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
713
317
|
ok: boolean;
|
|
@@ -716,14 +320,6 @@ export interface PutDatastoreResponse {
|
|
|
716
320
|
/** attribute names and values of the item */
|
|
717
321
|
item?: PutDatastoreResponseItemMap;
|
|
718
322
|
}
|
|
719
|
-
export const PutDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
720
|
-
S.Struct({
|
|
721
|
-
ok: S.Boolean,
|
|
722
|
-
datastore: S.optional(S.String),
|
|
723
|
-
item: S.optional(PutDatastoreResponseItemMap),
|
|
724
|
-
}),
|
|
725
|
-
).annotate({ identifier: "PutDatastoreResponse" }) as any as S.Schema<PutDatastoreResponse>;
|
|
726
|
-
|
|
727
323
|
export interface SetIconRequest {
|
|
728
324
|
/** The ID of the app whose icon you want to set. */
|
|
729
325
|
app_id: string;
|
|
@@ -732,89 +328,35 @@ export interface SetIconRequest {
|
|
|
732
328
|
/** URL of a publicly hosted image */
|
|
733
329
|
url?: string;
|
|
734
330
|
}
|
|
735
|
-
export const SetIconRequest = /*@__PURE__*/ S.suspend(() =>
|
|
736
|
-
S.Struct({
|
|
737
|
-
app_id: S.String,
|
|
738
|
-
file: S.optional(S.Unknown),
|
|
739
|
-
url: S.optional(S.String),
|
|
740
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.icon.set", code: 200 })),
|
|
741
|
-
).annotate({ identifier: "SetIconRequest" }) as any as S.Schema<SetIconRequest>;
|
|
742
|
-
|
|
743
331
|
export interface SetIconResponse {
|
|
744
332
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
745
333
|
ok: boolean;
|
|
746
334
|
}
|
|
747
|
-
export const SetIconResponse = /*@__PURE__*/ S.suspend(() =>
|
|
748
|
-
S.Struct({
|
|
749
|
-
ok: S.Boolean,
|
|
750
|
-
}),
|
|
751
|
-
).annotate({ identifier: "SetIconResponse" }) as any as S.Schema<SetIconResponse>;
|
|
752
|
-
|
|
753
335
|
/** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
|
|
754
336
|
export type SetManagedPermissionsRequestPermissions = "everyone" | "app_owner";
|
|
755
|
-
export const SetManagedPermissionsRequestPermissions = S.String;
|
|
756
|
-
|
|
757
337
|
export interface SetManagedPermissionsRequest {
|
|
758
338
|
/** Encoded ID of the managed app to configure */
|
|
759
339
|
app_id: string;
|
|
760
340
|
/** Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access to the app's owner. */
|
|
761
341
|
permissions: SetManagedPermissionsRequestPermissions | (string & {});
|
|
762
342
|
}
|
|
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 })),
|
|
768
|
-
).annotate({
|
|
769
|
-
identifier: "SetManagedPermissionsRequest",
|
|
770
|
-
}) as any as S.Schema<SetManagedPermissionsRequest>;
|
|
771
|
-
|
|
772
343
|
export interface SetManagedPermissionsResponse {
|
|
773
344
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
774
345
|
ok: boolean;
|
|
775
346
|
}
|
|
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>;
|
|
783
|
-
|
|
784
347
|
export interface UninstallAppRequest {
|
|
785
348
|
/** Issued when you created your application. */
|
|
786
349
|
client_id: string;
|
|
787
350
|
/** Issued when you created your application. */
|
|
788
351
|
client_secret: string | Redacted.Redacted<string>;
|
|
789
352
|
}
|
|
790
|
-
export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() =>
|
|
791
|
-
S.Struct({
|
|
792
|
-
client_id: S.String,
|
|
793
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
794
|
-
}).pipe(
|
|
795
|
-
T.Http({ method: "POST", uri: "/apps.uninstall", code: 200, contentType: "form-urlencoded" }),
|
|
796
|
-
),
|
|
797
|
-
).annotate({ identifier: "UninstallAppRequest" }) as any as S.Schema<UninstallAppRequest>;
|
|
798
|
-
|
|
799
353
|
export interface UninstallAppResponse {
|
|
800
354
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
801
355
|
ok: boolean;
|
|
802
356
|
uninstalled: boolean;
|
|
803
357
|
}
|
|
804
|
-
export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() =>
|
|
805
|
-
S.Struct({
|
|
806
|
-
ok: S.Boolean,
|
|
807
|
-
uninstalled: S.Boolean,
|
|
808
|
-
}),
|
|
809
|
-
).annotate({ identifier: "UninstallAppResponse" }) as any as S.Schema<UninstallAppResponse>;
|
|
810
|
-
|
|
811
358
|
/** attribute names and values to be updated */
|
|
812
359
|
export type UpdateDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
813
|
-
export const UpdateDatastoreRequestItemMap = /*@__PURE__*/ S.Record(
|
|
814
|
-
S.String,
|
|
815
|
-
S.Unknown,
|
|
816
|
-
) as any as S.Schema<UpdateDatastoreRequestItemMap>;
|
|
817
|
-
|
|
818
360
|
export interface UpdateDatastoreRequest {
|
|
819
361
|
/** name of the datastore */
|
|
820
362
|
datastore: string;
|
|
@@ -822,21 +364,8 @@ export interface UpdateDatastoreRequest {
|
|
|
822
364
|
item: UpdateDatastoreRequestItemMap;
|
|
823
365
|
app_id?: string;
|
|
824
366
|
}
|
|
825
|
-
export const UpdateDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
826
|
-
S.Struct({
|
|
827
|
-
datastore: S.String,
|
|
828
|
-
item: UpdateDatastoreRequestItemMap,
|
|
829
|
-
app_id: S.optional(S.String),
|
|
830
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 })),
|
|
831
|
-
).annotate({ identifier: "UpdateDatastoreRequest" }) as any as S.Schema<UpdateDatastoreRequest>;
|
|
832
|
-
|
|
833
367
|
/** attribute names and values of the item, including those updated */
|
|
834
368
|
export type UpdateDatastoreResponseItemMap = { [key: string]: unknown | undefined };
|
|
835
|
-
export const UpdateDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
836
|
-
S.String,
|
|
837
|
-
S.Unknown,
|
|
838
|
-
) as any as S.Schema<UpdateDatastoreResponseItemMap>;
|
|
839
|
-
|
|
840
369
|
export interface UpdateDatastoreResponse {
|
|
841
370
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
842
371
|
ok: boolean;
|
|
@@ -845,111 +374,44 @@ export interface UpdateDatastoreResponse {
|
|
|
845
374
|
/** attribute names and values of the item, including those updated */
|
|
846
375
|
item?: UpdateDatastoreResponseItemMap;
|
|
847
376
|
}
|
|
848
|
-
export const UpdateDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
849
|
-
S.Struct({
|
|
850
|
-
ok: S.Boolean,
|
|
851
|
-
datastore: S.optional(S.String),
|
|
852
|
-
item: S.optional(UpdateDatastoreResponseItemMap),
|
|
853
|
-
}),
|
|
854
|
-
).annotate({ identifier: "UpdateDatastoreResponse" }) as any as S.Schema<UpdateDatastoreResponse>;
|
|
855
|
-
|
|
856
377
|
export interface UpdateManifestRequest {
|
|
857
378
|
/** 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. */
|
|
858
379
|
manifest: string;
|
|
859
380
|
/** The ID of the app whose configuration you want to update. */
|
|
860
381
|
app_id: string;
|
|
861
382
|
}
|
|
862
|
-
export const UpdateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
863
|
-
S.Struct({
|
|
864
|
-
manifest: S.String,
|
|
865
|
-
app_id: S.String,
|
|
866
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 })),
|
|
867
|
-
).annotate({ identifier: "UpdateManifestRequest" }) as any as S.Schema<UpdateManifestRequest>;
|
|
868
|
-
|
|
869
383
|
export interface UpdateManifestResponse {
|
|
870
384
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
871
385
|
ok: boolean;
|
|
872
386
|
app_id: string;
|
|
873
387
|
permissions_updated?: boolean;
|
|
874
388
|
}
|
|
875
|
-
export const UpdateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
876
|
-
S.Struct({
|
|
877
|
-
ok: S.Boolean,
|
|
878
|
-
app_id: S.String,
|
|
879
|
-
permissions_updated: S.optional(S.Boolean),
|
|
880
|
-
}),
|
|
881
|
-
).annotate({ identifier: "UpdateManifestResponse" }) as any as S.Schema<UpdateManifestResponse>;
|
|
882
|
-
|
|
883
389
|
/** The status that should be set for the user. */
|
|
884
390
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
885
|
-
export const UpdateUserConnectionRequestStatus = S.String;
|
|
886
|
-
|
|
887
391
|
export interface UpdateUserConnectionRequest {
|
|
888
392
|
/** The ID of the user for the status update. */
|
|
889
393
|
user_id: string;
|
|
890
394
|
/** The status that should be set for the user. */
|
|
891
395
|
status: UpdateUserConnectionRequestStatus | (string & {});
|
|
892
396
|
}
|
|
893
|
-
export const UpdateUserConnectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
894
|
-
S.Struct({
|
|
895
|
-
user_id: S.String,
|
|
896
|
-
status: UpdateUserConnectionRequestStatus,
|
|
897
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.update", code: 200 })),
|
|
898
|
-
).annotate({
|
|
899
|
-
identifier: "UpdateUserConnectionRequest",
|
|
900
|
-
}) as any as S.Schema<UpdateUserConnectionRequest>;
|
|
901
|
-
|
|
902
397
|
export interface UpdateUserConnectionResponse {
|
|
903
398
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
904
399
|
ok: boolean;
|
|
905
400
|
}
|
|
906
|
-
export const UpdateUserConnectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
907
|
-
S.Struct({
|
|
908
|
-
ok: S.Boolean,
|
|
909
|
-
}),
|
|
910
|
-
).annotate({
|
|
911
|
-
identifier: "UpdateUserConnectionResponse",
|
|
912
|
-
}) as any as S.Schema<UpdateUserConnectionResponse>;
|
|
913
|
-
|
|
914
401
|
export interface ValidateManifestRequest {
|
|
915
402
|
/** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
916
403
|
manifest: string;
|
|
917
404
|
/** The ID of the app whose configuration you want to validate. */
|
|
918
405
|
app_id?: string;
|
|
919
406
|
}
|
|
920
|
-
export const ValidateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
921
|
-
S.Struct({
|
|
922
|
-
manifest: S.String,
|
|
923
|
-
app_id: S.optional(S.String),
|
|
924
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 })),
|
|
925
|
-
).annotate({ identifier: "ValidateManifestRequest" }) as any as S.Schema<ValidateManifestRequest>;
|
|
926
|
-
|
|
927
407
|
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
928
|
-
export const ValidateManifestResponseErrorsList = /*@__PURE__*/ S.Array(
|
|
929
|
-
S.String,
|
|
930
|
-
) as any as S.Schema<ValidateManifestResponseErrorsList>;
|
|
931
|
-
|
|
932
408
|
export interface ValidateManifestResponseWarningsItem {
|
|
933
409
|
code: string;
|
|
934
410
|
message: string;
|
|
935
411
|
pointer?: string;
|
|
936
412
|
}
|
|
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
|
-
}),
|
|
943
|
-
).annotate({
|
|
944
|
-
identifier: "ValidateManifestResponseWarningsItem",
|
|
945
|
-
}) as any as S.Schema<ValidateManifestResponseWarningsItem>;
|
|
946
|
-
|
|
947
413
|
/** Non-blocking warnings from app manifest validation. */
|
|
948
414
|
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
949
|
-
export const ValidateManifestResponseWarningsList = /*@__PURE__*/ S.Array(
|
|
950
|
-
ValidateManifestResponseWarningsItem,
|
|
951
|
-
) as any as S.Schema<ValidateManifestResponseWarningsList>;
|
|
952
|
-
|
|
953
415
|
export interface ValidateManifestResponse {
|
|
954
416
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
955
417
|
ok: boolean;
|
|
@@ -957,106 +419,98 @@ export interface ValidateManifestResponse {
|
|
|
957
419
|
/** Non-blocking warnings from app manifest validation. */
|
|
958
420
|
warnings?: ValidateManifestResponseWarningsList;
|
|
959
421
|
}
|
|
960
|
-
export const ValidateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
961
|
-
S.Struct({
|
|
962
|
-
ok: S.Boolean,
|
|
963
|
-
errors: ValidateManifestResponseErrorsList,
|
|
964
|
-
warnings: S.optional(ValidateManifestResponseWarningsList),
|
|
965
|
-
}),
|
|
966
|
-
).annotate({ identifier: "ValidateManifestResponse" }) as any as S.Schema<ValidateManifestResponse>;
|
|
967
|
-
|
|
968
422
|
export type BulkDeleteError = SlackOpError;
|
|
969
|
-
/** Delete items from a datastore in bulk Required scopes
|
|
423
|
+
/** 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 */
|
|
970
424
|
export const bulkDelete: API.OperationMethod<
|
|
971
425
|
BulkDeleteRequest,
|
|
972
426
|
BulkDeleteResponse,
|
|
973
427
|
BulkDeleteError,
|
|
974
428
|
SlackOpContext
|
|
975
429
|
> = /*@__PURE__*/ API.make(() => ({
|
|
976
|
-
input: BulkDeleteRequest
|
|
977
|
-
output: BulkDeleteResponse
|
|
430
|
+
input: __S(0, __c0, 0) as any as S.Schema<BulkDeleteRequest>,
|
|
431
|
+
output: __S(1, __c0, 1) as any as S.Schema<BulkDeleteResponse>,
|
|
978
432
|
errors: [SlackError, SlackRateLimited],
|
|
979
433
|
protocol: SlackProtocol,
|
|
980
434
|
retry: Retry.Retry,
|
|
981
435
|
}));
|
|
982
436
|
|
|
983
437
|
export type BulkGetError = SlackOpError;
|
|
984
|
-
/** Get items from a datastore in bulk Required scopes
|
|
438
|
+
/** Get items from a datastore in bulk Required scopes -- bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be retrieved - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkGet */
|
|
985
439
|
export const bulkGet: API.OperationMethod<
|
|
986
440
|
BulkGetRequest,
|
|
987
441
|
BulkGetResponse,
|
|
988
442
|
BulkGetError,
|
|
989
443
|
SlackOpContext
|
|
990
444
|
> = /*@__PURE__*/ API.make(() => ({
|
|
991
|
-
input: BulkGetRequest
|
|
992
|
-
output: BulkGetResponse
|
|
445
|
+
input: __S(8, __c2, 0) as any as S.Schema<BulkGetRequest>,
|
|
446
|
+
output: __S(9, __c2, 1) as any as S.Schema<BulkGetResponse>,
|
|
993
447
|
errors: [SlackError, SlackRateLimited],
|
|
994
448
|
protocol: SlackProtocol,
|
|
995
449
|
retry: Retry.Retry,
|
|
996
450
|
}));
|
|
997
451
|
|
|
998
452
|
export type BulkPutError = SlackOpError;
|
|
999
|
-
/** Creates or replaces existing items in bulk Required scopes
|
|
453
|
+
/** Creates or replaces existing items in bulk Required scopes -- bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be updated - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkPut */
|
|
1000
454
|
export const bulkPut: API.OperationMethod<
|
|
1001
455
|
BulkPutRequest,
|
|
1002
456
|
BulkPutResponse,
|
|
1003
457
|
BulkPutError,
|
|
1004
458
|
SlackOpContext
|
|
1005
459
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1006
|
-
input: BulkPutRequest
|
|
1007
|
-
output: BulkPutResponse
|
|
460
|
+
input: __S(64, __c16, 0) as any as S.Schema<BulkPutRequest>,
|
|
461
|
+
output: __S(65, __c16, 1) as any as S.Schema<BulkPutResponse>,
|
|
1008
462
|
errors: [SlackError, SlackRateLimited],
|
|
1009
463
|
protocol: SlackProtocol,
|
|
1010
464
|
retry: Retry.Retry,
|
|
1011
465
|
}));
|
|
1012
466
|
|
|
1013
467
|
export type ConnectionsOpenError = SlackOpError;
|
|
1014
|
-
/** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team`
|
|
468
|
+
/** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` -- The authenticated team cannot use this API - `insecure_request` -- The method was not called via a `POST` request. - `internal_error` -- An unexpected exception with the service has occurred. - `invalid_auth` -- The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` -- An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
|
|
1015
469
|
export const connectionsOpen: API.OperationMethod<
|
|
1016
470
|
ConnectionsOpenRequest,
|
|
1017
471
|
ConnectionsOpenResponse,
|
|
1018
472
|
ConnectionsOpenError,
|
|
1019
473
|
SlackOpContext
|
|
1020
474
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1021
|
-
input: ConnectionsOpenRequest
|
|
1022
|
-
output: ConnectionsOpenResponse
|
|
475
|
+
input: __S(80, __c20, 0) as any as S.Schema<ConnectionsOpenRequest>,
|
|
476
|
+
output: __S(81, __c20, 1) as any as S.Schema<ConnectionsOpenResponse>,
|
|
1023
477
|
errors: [SlackError, SlackRateLimited],
|
|
1024
478
|
protocol: SlackProtocol,
|
|
1025
479
|
retry: Retry.Retry,
|
|
1026
480
|
}));
|
|
1027
481
|
|
|
1028
482
|
export type CreateManifestError = SlackOpError;
|
|
1029
|
-
/** Create an app from an app manifest. Required scopes
|
|
483
|
+
/** Create an app from an app manifest. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_arguments` -- Invalid API arguments provided. - `invalid_manager_app` -- The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` -- The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` -- The provided team ID is not valid - `not_in_team` -- Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `failed_generating_app_token` -- App level token failed to generate. - `feature_not_enabled` -- The required feature is not enabled for this workspace. - `managed_app_limit_reached` -- The manager app has reached the maximum number of managed apps it can create. - `ratelimited` -- Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` -- Socket mode is not enabled in manifest. - `enterprise_is_restricted` -- Org-level tokens are not allowed. - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
|
|
1030
484
|
export const createManifest: API.OperationMethod<
|
|
1031
485
|
CreateManifestRequest,
|
|
1032
486
|
CreateManifestResponse,
|
|
1033
487
|
CreateManifestError,
|
|
1034
488
|
SlackOpContext
|
|
1035
489
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1036
|
-
input: CreateManifestRequest
|
|
1037
|
-
output: CreateManifestResponse
|
|
490
|
+
input: __S(84, __c21, 0) as any as S.Schema<CreateManifestRequest>,
|
|
491
|
+
output: __S(86, __c21, 2) as any as S.Schema<CreateManifestResponse>,
|
|
1038
492
|
errors: [SlackError, SlackRateLimited],
|
|
1039
493
|
protocol: SlackProtocol,
|
|
1040
494
|
retry: Retry.Retry,
|
|
1041
495
|
}));
|
|
1042
496
|
|
|
1043
497
|
export type DatastoreCountError = SlackOpError;
|
|
1044
|
-
/** Count the number of items in a datastore that match a query Required scopes
|
|
498
|
+
/** Count the number of items in a datastore that match a query Required scopes -- bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to access datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore query not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.count */
|
|
1045
499
|
export const datastoreCount: API.OperationMethod<
|
|
1046
500
|
DatastoreCountRequest,
|
|
1047
501
|
DatastoreCountResponse,
|
|
1048
502
|
DatastoreCountError,
|
|
1049
503
|
SlackOpContext
|
|
1050
504
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1051
|
-
input: DatastoreCountRequest
|
|
1052
|
-
output: DatastoreCountResponse
|
|
505
|
+
input: __S(88, __c22, 0) as any as S.Schema<DatastoreCountRequest>,
|
|
506
|
+
output: __S(89, __c22, 1) as any as S.Schema<DatastoreCountResponse>,
|
|
1053
507
|
errors: [SlackError, SlackRateLimited],
|
|
1054
508
|
protocol: SlackProtocol,
|
|
1055
509
|
retry: Retry.Retry,
|
|
1056
510
|
}));
|
|
1057
511
|
|
|
1058
512
|
export type DatastoreQueryError = SlackOpError;
|
|
1059
|
-
/** Query a datastore for items Required scopes
|
|
513
|
+
/** Query a datastore for items Required scopes -- bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to access datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore query not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.query */
|
|
1060
514
|
export const datastoreQuery: API.PaginatedOperationMethod<
|
|
1061
515
|
DatastoreQueryRequest,
|
|
1062
516
|
DatastoreQueryResponse,
|
|
@@ -1065,8 +519,8 @@ export const datastoreQuery: API.PaginatedOperationMethod<
|
|
|
1065
519
|
DatastoreQueryResponseItemsItemMap
|
|
1066
520
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1067
521
|
() => ({
|
|
1068
|
-
input: DatastoreQueryRequest
|
|
1069
|
-
output: DatastoreQueryResponse
|
|
522
|
+
input: __S(92, __c23, 0) as any as S.Schema<DatastoreQueryRequest>,
|
|
523
|
+
output: __S(93, __c23, 1) as any as S.Schema<DatastoreQueryResponse>,
|
|
1070
524
|
errors: [SlackError, SlackRateLimited],
|
|
1071
525
|
protocol: SlackProtocol,
|
|
1072
526
|
retry: Retry.Retry,
|
|
@@ -1082,97 +536,97 @@ export const datastoreQuery: API.PaginatedOperationMethod<
|
|
|
1082
536
|
) as any;
|
|
1083
537
|
|
|
1084
538
|
export type DeleteAuthExternalError = SlackOpError;
|
|
1085
|
-
/** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete`
|
|
539
|
+
/** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete` -- There was an error deleting tokens - `providers_not_found` -- The provided `provider_key` is invalid - `no_tokens_found` -- No tokens found to delete - `method_not_supported` -- This API method is not supported - `app_not_found` -- The provided `app_id` was not found - `token_not_found` -- The token pointed to by the external_token_id input is not found - `invalid_auth` -- The token used to invoke this API doesn't have permission to delete the token pointed to by the external_token_id input - `invalid_args` -- The arguments provided to this API are invalid See https://docs.slack.dev/reference/methods/apps.auth.external.delete */
|
|
1086
540
|
export const deleteAuthExternal: API.OperationMethod<
|
|
1087
541
|
DeleteAuthExternalRequest,
|
|
1088
542
|
DeleteAuthExternalResponse,
|
|
1089
543
|
DeleteAuthExternalError,
|
|
1090
544
|
SlackOpContext
|
|
1091
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1092
|
-
input: DeleteAuthExternalRequest
|
|
1093
|
-
output: DeleteAuthExternalResponse
|
|
546
|
+
input: __S(100, __c25, 0) as any as S.Schema<DeleteAuthExternalRequest>,
|
|
547
|
+
output: __S(104, __c26, 0) as any as S.Schema<DeleteAuthExternalResponse>,
|
|
1094
548
|
errors: [SlackError, SlackRateLimited],
|
|
1095
549
|
protocol: SlackProtocol,
|
|
1096
550
|
retry: Retry.Retry,
|
|
1097
551
|
}));
|
|
1098
552
|
|
|
1099
553
|
export type DeleteDatastoreError = SlackOpError;
|
|
1100
|
-
/** Delete an item from a datastore Required scopes
|
|
554
|
+
/** Delete an item from a datastore Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to delete datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore delete not allowed on a free team. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.delete */
|
|
1101
555
|
export const deleteDatastore: API.OperationMethod<
|
|
1102
556
|
DeleteDatastoreRequest,
|
|
1103
557
|
DeleteDatastoreResponse,
|
|
1104
558
|
DeleteDatastoreError,
|
|
1105
559
|
SlackOpContext
|
|
1106
560
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1107
|
-
input: DeleteDatastoreRequest
|
|
1108
|
-
output: DeleteDatastoreResponse
|
|
561
|
+
input: __S(108, __c27, 0) as any as S.Schema<DeleteDatastoreRequest>,
|
|
562
|
+
output: __S(104, __c26, 0) as any as S.Schema<DeleteDatastoreResponse>,
|
|
1109
563
|
errors: [SlackError, SlackRateLimited],
|
|
1110
564
|
protocol: SlackProtocol,
|
|
1111
565
|
retry: Retry.Retry,
|
|
1112
566
|
}));
|
|
1113
567
|
|
|
1114
568
|
export type DeleteManifestError = SlackOpError;
|
|
1115
|
-
/** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes
|
|
569
|
+
/** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found. - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed in was invalid. - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `published_app_only` -- This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
|
|
1116
570
|
export const deleteManifest: API.OperationMethod<
|
|
1117
571
|
DeleteManifestRequest,
|
|
1118
572
|
DeleteManifestResponse,
|
|
1119
573
|
DeleteManifestError,
|
|
1120
574
|
SlackOpContext
|
|
1121
575
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1122
|
-
input: DeleteManifestRequest
|
|
1123
|
-
output: DeleteManifestResponse
|
|
576
|
+
input: __S(112, __c28, 0) as any as S.Schema<DeleteManifestRequest>,
|
|
577
|
+
output: __S(104, __c26, 0) as any as S.Schema<DeleteManifestResponse>,
|
|
1124
578
|
errors: [SlackError, SlackRateLimited],
|
|
1125
579
|
protocol: SlackProtocol,
|
|
1126
580
|
retry: Retry.Retry,
|
|
1127
581
|
}));
|
|
1128
582
|
|
|
1129
583
|
export type ExportManifestError = SlackOpError;
|
|
1130
|
-
/** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes
|
|
584
|
+
/** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes -- configuration: `app_configurations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_export` -- Failed to export manifest for given app ID - `internal_error` -- Internal error. - `invalid_app_id` -- The app ID passed is invalid. - `no_permission` -- User does not have proper permissions. - `unknown_method` -- This method does not exist. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only access apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.export */
|
|
1131
585
|
export const exportManifest: API.OperationMethod<
|
|
1132
586
|
ExportManifestRequest,
|
|
1133
587
|
ExportManifestResponse,
|
|
1134
588
|
ExportManifestError,
|
|
1135
589
|
SlackOpContext
|
|
1136
590
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1137
|
-
input: ExportManifestRequest
|
|
1138
|
-
output: ExportManifestResponse
|
|
591
|
+
input: __S(20, __c5, 0) as any as S.Schema<ExportManifestRequest>,
|
|
592
|
+
output: __S(21, __c5, 1) as any as S.Schema<ExportManifestResponse>,
|
|
1139
593
|
errors: [SlackError, SlackRateLimited],
|
|
1140
594
|
protocol: SlackProtocol,
|
|
1141
595
|
retry: Retry.Retry,
|
|
1142
596
|
}));
|
|
1143
597
|
|
|
1144
598
|
export type GetAuthExternalError = SlackOpError;
|
|
1145
|
-
/** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found`
|
|
599
|
+
/** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found` -- No token found for the passed external_token_id - `method_not_supported` -- This API method is not supported - `no_refresh_token` -- No refresh token found for the passed external_token_id - `access_token_exchange_failed` -- There was an error while attempting to exchange or refresh token See https://docs.slack.dev/reference/methods/apps.auth.external.get */
|
|
1146
600
|
export const getAuthExternal: API.OperationMethod<
|
|
1147
601
|
GetAuthExternalRequest,
|
|
1148
602
|
GetAuthExternalResponse,
|
|
1149
603
|
GetAuthExternalError,
|
|
1150
604
|
SlackOpContext
|
|
1151
605
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1152
|
-
input: GetAuthExternalRequest
|
|
1153
|
-
output: GetAuthExternalResponse
|
|
606
|
+
input: __S(24, __c6, 0) as any as S.Schema<GetAuthExternalRequest>,
|
|
607
|
+
output: __S(25, __c6, 1) as any as S.Schema<GetAuthExternalResponse>,
|
|
1154
608
|
errors: [SlackError, SlackRateLimited],
|
|
1155
609
|
protocol: SlackProtocol,
|
|
1156
610
|
retry: Retry.Retry,
|
|
1157
611
|
}));
|
|
1158
612
|
|
|
1159
613
|
export type GetDatastoreError = SlackOpError;
|
|
1160
|
-
/** Get an item from a datastore Required scopes
|
|
614
|
+
/** Get an item from a datastore Required scopes -- bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to get datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error. - `access_denied` -- Not authorized to access to the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore get not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
|
|
1161
615
|
export const getDatastore: API.OperationMethod<
|
|
1162
616
|
GetDatastoreRequest,
|
|
1163
617
|
GetDatastoreResponse,
|
|
1164
618
|
GetDatastoreError,
|
|
1165
619
|
SlackOpContext
|
|
1166
620
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1167
|
-
input: GetDatastoreRequest
|
|
1168
|
-
output: GetDatastoreResponse
|
|
621
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetDatastoreRequest>,
|
|
622
|
+
output: __S(32, __c8, 0) as any as S.Schema<GetDatastoreResponse>,
|
|
1169
623
|
errors: [SlackError, SlackRateLimited],
|
|
1170
624
|
protocol: SlackProtocol,
|
|
1171
625
|
retry: Retry.Retry,
|
|
1172
626
|
}));
|
|
1173
627
|
|
|
1174
628
|
export type ListActivitiesError = SlackOpError;
|
|
1175
|
-
/** Get logs for a specified app Required scopes
|
|
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 */
|
|
1176
630
|
export const listActivities: API.PaginatedOperationMethod<
|
|
1177
631
|
ListActivitiesRequest,
|
|
1178
632
|
ListActivitiesResponse,
|
|
@@ -1181,8 +635,8 @@ export const listActivities: API.PaginatedOperationMethod<
|
|
|
1181
635
|
unknown
|
|
1182
636
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1183
637
|
() => ({
|
|
1184
|
-
input: ListActivitiesRequest
|
|
1185
|
-
output: ListActivitiesResponse
|
|
638
|
+
input: __S(36, __c9, 0) as any as S.Schema<ListActivitiesRequest>,
|
|
639
|
+
output: __S(38, __c9, 2) as any as S.Schema<ListActivitiesResponse>,
|
|
1186
640
|
errors: [SlackError, SlackRateLimited],
|
|
1187
641
|
protocol: SlackProtocol,
|
|
1188
642
|
retry: Retry.Retry,
|
|
@@ -1198,7 +652,7 @@ export const listActivities: API.PaginatedOperationMethod<
|
|
|
1198
652
|
) as any;
|
|
1199
653
|
|
|
1200
654
|
export type ListEventAuthorizationsError = SlackOpError;
|
|
1201
|
-
/** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch`
|
|
655
|
+
/** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` -- The given authorization token is not associated with the app that sent this event. - `internal_error` -- An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` -- The `cursor` argument was invalid. - `invalid_event_context` -- The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
|
|
1202
656
|
export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
1203
657
|
ListEventAuthorizationsRequest,
|
|
1204
658
|
ListEventAuthorizationsResponse,
|
|
@@ -1207,8 +661,8 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
|
1207
661
|
ListEventAuthorizationsResponseAuthorizationsItem
|
|
1208
662
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1209
663
|
() => ({
|
|
1210
|
-
input: ListEventAuthorizationsRequest
|
|
1211
|
-
output: ListEventAuthorizationsResponse
|
|
664
|
+
input: __S(40, __c10, 0) as any as S.Schema<ListEventAuthorizationsRequest>,
|
|
665
|
+
output: __S(43, __c10, 3) as any as S.Schema<ListEventAuthorizationsResponse>,
|
|
1212
666
|
errors: [SlackError, SlackRateLimited],
|
|
1213
667
|
protocol: SlackProtocol,
|
|
1214
668
|
retry: Retry.Retry,
|
|
@@ -1224,121 +678,615 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
|
1224
678
|
) as any;
|
|
1225
679
|
|
|
1226
680
|
export type PutDatastoreError = SlackOpError;
|
|
1227
|
-
/** Creates a new item, or replaces an old item with a new item. Required scopes
|
|
681
|
+
/** Creates a new item, or replaces an old item with a new item. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
|
|
1228
682
|
export const putDatastore: API.OperationMethod<
|
|
1229
683
|
PutDatastoreRequest,
|
|
1230
684
|
PutDatastoreResponse,
|
|
1231
685
|
PutDatastoreError,
|
|
1232
686
|
SlackOpContext
|
|
1233
687
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1234
|
-
input: PutDatastoreRequest
|
|
1235
|
-
output: PutDatastoreResponse
|
|
688
|
+
input: __S(44, __c11, 0) as any as S.Schema<PutDatastoreRequest>,
|
|
689
|
+
output: __S(32, __c8, 0) as any as S.Schema<PutDatastoreResponse>,
|
|
1236
690
|
errors: [SlackError, SlackRateLimited],
|
|
1237
691
|
protocol: SlackProtocol,
|
|
1238
692
|
retry: Retry.Retry,
|
|
1239
693
|
}));
|
|
1240
694
|
|
|
1241
695
|
export type SetIconError = SlackOpError;
|
|
1242
|
-
/** Sets the app icon Required scopes
|
|
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 */
|
|
1243
697
|
export const setIcon: API.OperationMethod<
|
|
1244
698
|
SetIconRequest,
|
|
1245
699
|
SetIconResponse,
|
|
1246
700
|
SetIconError,
|
|
1247
701
|
SlackOpContext
|
|
1248
702
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1249
|
-
input: SetIconRequest
|
|
1250
|
-
output: SetIconResponse
|
|
703
|
+
input: __S(48, __c12, 0) as any as S.Schema<SetIconRequest>,
|
|
704
|
+
output: __S(104, __c26, 0) as any as S.Schema<SetIconResponse>,
|
|
1251
705
|
errors: [SlackError, SlackRateLimited],
|
|
1252
706
|
protocol: SlackProtocol,
|
|
1253
707
|
retry: Retry.Retry,
|
|
1254
708
|
}));
|
|
1255
709
|
|
|
1256
710
|
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
|
|
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 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
712
|
export const setManagedPermissions: API.OperationMethod<
|
|
1259
713
|
SetManagedPermissionsRequest,
|
|
1260
714
|
SetManagedPermissionsResponse,
|
|
1261
715
|
SetManagedPermissionsError,
|
|
1262
716
|
SlackOpContext
|
|
1263
717
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1264
|
-
input: SetManagedPermissionsRequest
|
|
1265
|
-
output: SetManagedPermissionsResponse
|
|
718
|
+
input: __S(52, __c13, 0) as any as S.Schema<SetManagedPermissionsRequest>,
|
|
719
|
+
output: __S(104, __c26, 0) as any as S.Schema<SetManagedPermissionsResponse>,
|
|
1266
720
|
errors: [SlackError, SlackRateLimited],
|
|
1267
721
|
protocol: SlackProtocol,
|
|
1268
722
|
retry: Retry.Retry,
|
|
1269
723
|
}));
|
|
1270
724
|
|
|
1271
725
|
export type UninstallAppError = SlackOpError;
|
|
1272
|
-
/** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret`
|
|
726
|
+
/** 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 */
|
|
1273
727
|
export const uninstallApp: API.OperationMethod<
|
|
1274
728
|
UninstallAppRequest,
|
|
1275
729
|
UninstallAppResponse,
|
|
1276
730
|
UninstallAppError,
|
|
1277
731
|
SlackOpContext
|
|
1278
732
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1279
|
-
input: UninstallAppRequest
|
|
1280
|
-
output: UninstallAppResponse
|
|
733
|
+
input: __S(56, __c14, 0) as any as S.Schema<UninstallAppRequest>,
|
|
734
|
+
output: __S(57, __c14, 1) as any as S.Schema<UninstallAppResponse>,
|
|
1281
735
|
errors: [SlackError, SlackRateLimited],
|
|
1282
736
|
protocol: SlackProtocol,
|
|
1283
737
|
retry: Retry.Retry,
|
|
1284
738
|
}));
|
|
1285
739
|
|
|
1286
740
|
export type UpdateDatastoreError = SlackOpError;
|
|
1287
|
-
/** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes
|
|
741
|
+
/** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
|
|
1288
742
|
export const updateDatastore: API.OperationMethod<
|
|
1289
743
|
UpdateDatastoreRequest,
|
|
1290
744
|
UpdateDatastoreResponse,
|
|
1291
745
|
UpdateDatastoreError,
|
|
1292
746
|
SlackOpContext
|
|
1293
747
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1294
|
-
input: UpdateDatastoreRequest
|
|
1295
|
-
output: UpdateDatastoreResponse
|
|
748
|
+
input: __S(60, __c15, 0) as any as S.Schema<UpdateDatastoreRequest>,
|
|
749
|
+
output: __S(32, __c8, 0) as any as S.Schema<UpdateDatastoreResponse>,
|
|
1296
750
|
errors: [SlackError, SlackRateLimited],
|
|
1297
751
|
protocol: SlackProtocol,
|
|
1298
752
|
retry: Retry.Retry,
|
|
1299
753
|
}));
|
|
1300
754
|
|
|
1301
755
|
export type UpdateManifestError = SlackOpError;
|
|
1302
|
-
/** 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
|
|
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 */
|
|
1303
757
|
export const updateManifest: API.OperationMethod<
|
|
1304
758
|
UpdateManifestRequest,
|
|
1305
759
|
UpdateManifestResponse,
|
|
1306
760
|
UpdateManifestError,
|
|
1307
761
|
SlackOpContext
|
|
1308
762
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1309
|
-
input: UpdateManifestRequest
|
|
1310
|
-
output: UpdateManifestResponse
|
|
763
|
+
input: __S(68, __c17, 0) as any as S.Schema<UpdateManifestRequest>,
|
|
764
|
+
output: __S(69, __c17, 1) as any as S.Schema<UpdateManifestResponse>,
|
|
1311
765
|
errors: [SlackError, SlackRateLimited],
|
|
1312
766
|
protocol: SlackProtocol,
|
|
1313
767
|
retry: Retry.Retry,
|
|
1314
768
|
}));
|
|
1315
769
|
|
|
1316
770
|
export type UpdateUserConnectionError = SlackOpError;
|
|
1317
|
-
/** Updates the connection status between a user and an app. Required scopes
|
|
771
|
+
/** 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 */
|
|
1318
772
|
export const updateUserConnection: API.OperationMethod<
|
|
1319
773
|
UpdateUserConnectionRequest,
|
|
1320
774
|
UpdateUserConnectionResponse,
|
|
1321
775
|
UpdateUserConnectionError,
|
|
1322
776
|
SlackOpContext
|
|
1323
777
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1324
|
-
input: UpdateUserConnectionRequest
|
|
1325
|
-
output: UpdateUserConnectionResponse
|
|
778
|
+
input: __S(72, __c18, 0) as any as S.Schema<UpdateUserConnectionRequest>,
|
|
779
|
+
output: __S(104, __c26, 0) as any as S.Schema<UpdateUserConnectionResponse>,
|
|
1326
780
|
errors: [SlackError, SlackRateLimited],
|
|
1327
781
|
protocol: SlackProtocol,
|
|
1328
782
|
retry: Retry.Retry,
|
|
1329
783
|
}));
|
|
1330
784
|
|
|
1331
785
|
export type ValidateManifestError = SlackOpError;
|
|
1332
|
-
/** Validate an app manifest Required scopes
|
|
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 */
|
|
1333
787
|
export const validateManifest: API.OperationMethod<
|
|
1334
788
|
ValidateManifestRequest,
|
|
1335
789
|
ValidateManifestResponse,
|
|
1336
790
|
ValidateManifestError,
|
|
1337
791
|
SlackOpContext
|
|
1338
792
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1339
|
-
input: ValidateManifestRequest
|
|
1340
|
-
output: ValidateManifestResponse
|
|
793
|
+
input: __S(76, __c19, 0) as any as S.Schema<ValidateManifestRequest>,
|
|
794
|
+
output: __S(79, __c19, 3) as any as S.Schema<ValidateManifestResponse>,
|
|
1341
795
|
errors: [SlackError, SlackRateLimited],
|
|
1342
796
|
protocol: SlackProtocol,
|
|
1343
797
|
retry: Retry.Retry,
|
|
1344
798
|
}));
|
|
799
|
+
|
|
800
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
801
|
+
function __c0(j: number): any {
|
|
802
|
+
switch (j) {
|
|
803
|
+
case 0:
|
|
804
|
+
return S.suspend(() =>
|
|
805
|
+
S.Struct({
|
|
806
|
+
datastore: S.String,
|
|
807
|
+
ids: __S(4, __c1, 0),
|
|
808
|
+
app_id: S.optional(S.String),
|
|
809
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkDelete", code: 200 })),
|
|
810
|
+
).annotate({ identifier: "BulkDeleteRequest" });
|
|
811
|
+
case 1:
|
|
812
|
+
return S.suspend(() =>
|
|
813
|
+
S.Struct({
|
|
814
|
+
ok: S.Boolean,
|
|
815
|
+
failed_items: S.optional(__S(4, __c1, 0)),
|
|
816
|
+
}),
|
|
817
|
+
).annotate({ identifier: "BulkDeleteResponse" });
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
function __c1(j: number): any {
|
|
821
|
+
switch (j) {
|
|
822
|
+
case 0:
|
|
823
|
+
return S.Array(S.String);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
function __c2(j: number): any {
|
|
827
|
+
switch (j) {
|
|
828
|
+
case 0:
|
|
829
|
+
return S.suspend(() =>
|
|
830
|
+
S.Struct({
|
|
831
|
+
datastore: S.String,
|
|
832
|
+
ids: __S(4, __c1, 0),
|
|
833
|
+
app_id: S.optional(S.String),
|
|
834
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 })),
|
|
835
|
+
).annotate({ identifier: "BulkGetRequest" });
|
|
836
|
+
case 1:
|
|
837
|
+
return S.suspend(() =>
|
|
838
|
+
S.Struct({
|
|
839
|
+
ok: S.Boolean,
|
|
840
|
+
items: S.optional(__S(16, __c4, 0)),
|
|
841
|
+
failed_items: S.optional(__S(4, __c1, 0)),
|
|
842
|
+
}),
|
|
843
|
+
).annotate({ identifier: "BulkGetResponse" });
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
function __c3(j: number): any {
|
|
847
|
+
switch (j) {
|
|
848
|
+
case 0:
|
|
849
|
+
return S.Record(S.String, S.Unknown);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
function __c4(j: number): any {
|
|
853
|
+
switch (j) {
|
|
854
|
+
case 0:
|
|
855
|
+
return S.Array(__S(12, __c3, 0));
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function __c5(j: number): any {
|
|
859
|
+
switch (j) {
|
|
860
|
+
case 0:
|
|
861
|
+
return S.suspend(() =>
|
|
862
|
+
S.Struct({
|
|
863
|
+
app_id: S.String,
|
|
864
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 })),
|
|
865
|
+
).annotate({ identifier: "ExportManifestRequest" });
|
|
866
|
+
case 1:
|
|
867
|
+
return S.suspend(() =>
|
|
868
|
+
S.Struct({
|
|
869
|
+
ok: S.Boolean,
|
|
870
|
+
manifest: S.Unknown,
|
|
871
|
+
}),
|
|
872
|
+
).annotate({ identifier: "ExportManifestResponse" });
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function __c6(j: number): any {
|
|
876
|
+
switch (j) {
|
|
877
|
+
case 0:
|
|
878
|
+
return S.suspend(() =>
|
|
879
|
+
S.Struct({
|
|
880
|
+
external_token_id: S.String,
|
|
881
|
+
force_refresh: S.optional(S.Boolean),
|
|
882
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 })),
|
|
883
|
+
).annotate({ identifier: "GetAuthExternalRequest" });
|
|
884
|
+
case 1:
|
|
885
|
+
return S.suspend(() =>
|
|
886
|
+
S.Struct({
|
|
887
|
+
ok: S.Boolean,
|
|
888
|
+
external_token: S.String,
|
|
889
|
+
token_response_extras: S.Unknown,
|
|
890
|
+
}),
|
|
891
|
+
).annotate({ identifier: "GetAuthExternalResponse" });
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
function __c7(j: number): any {
|
|
895
|
+
switch (j) {
|
|
896
|
+
case 0:
|
|
897
|
+
return S.suspend(() =>
|
|
898
|
+
S.Struct({
|
|
899
|
+
datastore: S.String,
|
|
900
|
+
id: S.String,
|
|
901
|
+
app_id: S.optional(S.String),
|
|
902
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 })),
|
|
903
|
+
).annotate({ identifier: "GetDatastoreRequest" });
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
function __c8(j: number): any {
|
|
907
|
+
switch (j) {
|
|
908
|
+
case 0:
|
|
909
|
+
return S.suspend(() =>
|
|
910
|
+
S.Struct({
|
|
911
|
+
ok: S.Boolean,
|
|
912
|
+
datastore: S.optional(S.String),
|
|
913
|
+
item: S.optional(__S(12, __c3, 0)),
|
|
914
|
+
}),
|
|
915
|
+
).annotate({ identifier: "GetDatastoreResponse" });
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
function __c9(j: number): any {
|
|
919
|
+
switch (j) {
|
|
920
|
+
case 0:
|
|
921
|
+
return S.suspend(() =>
|
|
922
|
+
S.Struct({
|
|
923
|
+
app_id: S.String,
|
|
924
|
+
team_id: S.optional(S.String),
|
|
925
|
+
cursor: S.optional(S.String),
|
|
926
|
+
limit: S.optional(S.Number),
|
|
927
|
+
min_log_level: S.optional(S.String),
|
|
928
|
+
log_event_type: S.optional(S.String),
|
|
929
|
+
source: S.optional(S.String),
|
|
930
|
+
component_type: S.optional(S.String),
|
|
931
|
+
component_id: S.optional(S.String),
|
|
932
|
+
trace_id: S.optional(S.String),
|
|
933
|
+
min_date_created: S.optional(S.Number),
|
|
934
|
+
max_date_created: S.optional(S.Number),
|
|
935
|
+
sort_direction: S.optional(S.String),
|
|
936
|
+
}).pipe(
|
|
937
|
+
T.Http({
|
|
938
|
+
method: "POST",
|
|
939
|
+
uri: "/apps.activities.list",
|
|
940
|
+
code: 200,
|
|
941
|
+
contentType: "form-urlencoded",
|
|
942
|
+
}),
|
|
943
|
+
),
|
|
944
|
+
).annotate({ identifier: "ListActivitiesRequest" });
|
|
945
|
+
case 1:
|
|
946
|
+
return S.Array(S.Unknown);
|
|
947
|
+
case 2:
|
|
948
|
+
return S.suspend(() =>
|
|
949
|
+
S.Struct({
|
|
950
|
+
ok: S.Boolean,
|
|
951
|
+
activities: __S(37, __c9, 1),
|
|
952
|
+
response_metadata: S.optional(__S(96, __c24, 0)),
|
|
953
|
+
}),
|
|
954
|
+
).annotate({ identifier: "ListActivitiesResponse" });
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
function __c10(j: number): any {
|
|
958
|
+
switch (j) {
|
|
959
|
+
case 0:
|
|
960
|
+
return S.suspend(() =>
|
|
961
|
+
S.Struct({
|
|
962
|
+
event_context: S.String,
|
|
963
|
+
cursor: S.optional(S.String),
|
|
964
|
+
limit: S.optional(S.Number),
|
|
965
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.event.authorizations.list", code: 200 })),
|
|
966
|
+
).annotate({ identifier: "ListEventAuthorizationsRequest" });
|
|
967
|
+
case 1:
|
|
968
|
+
return S.suspend(() =>
|
|
969
|
+
S.Struct({
|
|
970
|
+
enterprise_id: S.NullOr(S.String),
|
|
971
|
+
team_id: S.NullOr(S.String),
|
|
972
|
+
user_id: S.String,
|
|
973
|
+
is_bot: S.Boolean,
|
|
974
|
+
is_enterprise_install: S.Boolean,
|
|
975
|
+
}),
|
|
976
|
+
).annotate({ identifier: "ListEventAuthorizationsResponseAuthorizationsItem" });
|
|
977
|
+
case 2:
|
|
978
|
+
return S.Array(__S(41, __c10, 1));
|
|
979
|
+
case 3:
|
|
980
|
+
return S.suspend(() =>
|
|
981
|
+
S.Struct({
|
|
982
|
+
ok: S.Boolean,
|
|
983
|
+
cursor_next: S.optional(S.String),
|
|
984
|
+
authorizations: __S(42, __c10, 2),
|
|
985
|
+
response_metadata: S.optional(__S(96, __c24, 0)),
|
|
986
|
+
}),
|
|
987
|
+
).annotate({ identifier: "ListEventAuthorizationsResponse" });
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
function __c11(j: number): any {
|
|
991
|
+
switch (j) {
|
|
992
|
+
case 0:
|
|
993
|
+
return S.suspend(() =>
|
|
994
|
+
S.Struct({
|
|
995
|
+
datastore: S.String,
|
|
996
|
+
item: __S(12, __c3, 0),
|
|
997
|
+
app_id: S.optional(S.String),
|
|
998
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 })),
|
|
999
|
+
).annotate({ identifier: "PutDatastoreRequest" });
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
function __c12(j: number): any {
|
|
1003
|
+
switch (j) {
|
|
1004
|
+
case 0:
|
|
1005
|
+
return S.suspend(() =>
|
|
1006
|
+
S.Struct({
|
|
1007
|
+
app_id: S.String,
|
|
1008
|
+
file: S.optional(S.Unknown),
|
|
1009
|
+
url: S.optional(S.String),
|
|
1010
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.icon.set", code: 200 })),
|
|
1011
|
+
).annotate({ identifier: "SetIconRequest" });
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function __c13(j: number): any {
|
|
1015
|
+
switch (j) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
return S.suspend(() =>
|
|
1018
|
+
S.Struct({
|
|
1019
|
+
app_id: S.String,
|
|
1020
|
+
permissions: S.String,
|
|
1021
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.managed.permissions.set", code: 200 })),
|
|
1022
|
+
).annotate({ identifier: "SetManagedPermissionsRequest" });
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
function __c14(j: number): any {
|
|
1026
|
+
switch (j) {
|
|
1027
|
+
case 0:
|
|
1028
|
+
return S.suspend(() =>
|
|
1029
|
+
S.Struct({
|
|
1030
|
+
client_id: S.String,
|
|
1031
|
+
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
1032
|
+
}).pipe(
|
|
1033
|
+
T.Http({
|
|
1034
|
+
method: "POST",
|
|
1035
|
+
uri: "/apps.uninstall",
|
|
1036
|
+
code: 200,
|
|
1037
|
+
contentType: "form-urlencoded",
|
|
1038
|
+
}),
|
|
1039
|
+
),
|
|
1040
|
+
).annotate({ identifier: "UninstallAppRequest" });
|
|
1041
|
+
case 1:
|
|
1042
|
+
return S.suspend(() =>
|
|
1043
|
+
S.Struct({
|
|
1044
|
+
ok: S.Boolean,
|
|
1045
|
+
uninstalled: S.Boolean,
|
|
1046
|
+
}),
|
|
1047
|
+
).annotate({ identifier: "UninstallAppResponse" });
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
function __c15(j: number): any {
|
|
1051
|
+
switch (j) {
|
|
1052
|
+
case 0:
|
|
1053
|
+
return S.suspend(() =>
|
|
1054
|
+
S.Struct({
|
|
1055
|
+
datastore: S.String,
|
|
1056
|
+
item: __S(12, __c3, 0),
|
|
1057
|
+
app_id: S.optional(S.String),
|
|
1058
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 })),
|
|
1059
|
+
).annotate({ identifier: "UpdateDatastoreRequest" });
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
function __c16(j: number): any {
|
|
1063
|
+
switch (j) {
|
|
1064
|
+
case 0:
|
|
1065
|
+
return S.suspend(() =>
|
|
1066
|
+
S.Struct({
|
|
1067
|
+
datastore: S.String,
|
|
1068
|
+
items: __S(16, __c4, 0),
|
|
1069
|
+
app_id: S.optional(S.String),
|
|
1070
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
|
|
1071
|
+
).annotate({ identifier: "BulkPutRequest" });
|
|
1072
|
+
case 1:
|
|
1073
|
+
return S.suspend(() =>
|
|
1074
|
+
S.Struct({
|
|
1075
|
+
ok: S.Boolean,
|
|
1076
|
+
datastore: S.optional(S.String),
|
|
1077
|
+
failed_items: S.optional(__S(16, __c4, 0)),
|
|
1078
|
+
}),
|
|
1079
|
+
).annotate({ identifier: "BulkPutResponse" });
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function __c17(j: number): any {
|
|
1083
|
+
switch (j) {
|
|
1084
|
+
case 0:
|
|
1085
|
+
return S.suspend(() =>
|
|
1086
|
+
S.Struct({
|
|
1087
|
+
manifest: S.String,
|
|
1088
|
+
app_id: S.String,
|
|
1089
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 })),
|
|
1090
|
+
).annotate({ identifier: "UpdateManifestRequest" });
|
|
1091
|
+
case 1:
|
|
1092
|
+
return S.suspend(() =>
|
|
1093
|
+
S.Struct({
|
|
1094
|
+
ok: S.Boolean,
|
|
1095
|
+
app_id: S.String,
|
|
1096
|
+
permissions_updated: S.optional(S.Boolean),
|
|
1097
|
+
}),
|
|
1098
|
+
).annotate({ identifier: "UpdateManifestResponse" });
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
function __c18(j: number): any {
|
|
1102
|
+
switch (j) {
|
|
1103
|
+
case 0:
|
|
1104
|
+
return S.suspend(() =>
|
|
1105
|
+
S.Struct({
|
|
1106
|
+
user_id: S.String,
|
|
1107
|
+
status: S.String,
|
|
1108
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.update", code: 200 })),
|
|
1109
|
+
).annotate({ identifier: "UpdateUserConnectionRequest" });
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function __c19(j: number): any {
|
|
1113
|
+
switch (j) {
|
|
1114
|
+
case 0:
|
|
1115
|
+
return S.suspend(() =>
|
|
1116
|
+
S.Struct({
|
|
1117
|
+
manifest: S.String,
|
|
1118
|
+
app_id: S.optional(S.String),
|
|
1119
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 })),
|
|
1120
|
+
).annotate({ identifier: "ValidateManifestRequest" });
|
|
1121
|
+
case 1:
|
|
1122
|
+
return S.suspend(() =>
|
|
1123
|
+
S.Struct({
|
|
1124
|
+
code: S.String,
|
|
1125
|
+
message: S.String,
|
|
1126
|
+
pointer: S.optional(S.String),
|
|
1127
|
+
}),
|
|
1128
|
+
).annotate({ identifier: "ValidateManifestResponseWarningsItem" });
|
|
1129
|
+
case 2:
|
|
1130
|
+
return S.Array(__S(77, __c19, 1));
|
|
1131
|
+
case 3:
|
|
1132
|
+
return S.suspend(() =>
|
|
1133
|
+
S.Struct({
|
|
1134
|
+
ok: S.Boolean,
|
|
1135
|
+
errors: __S(4, __c1, 0),
|
|
1136
|
+
warnings: S.optional(__S(78, __c19, 2)),
|
|
1137
|
+
}),
|
|
1138
|
+
).annotate({ identifier: "ValidateManifestResponse" });
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
function __c20(j: number): any {
|
|
1142
|
+
switch (j) {
|
|
1143
|
+
case 0:
|
|
1144
|
+
return S.suspend(() =>
|
|
1145
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 })),
|
|
1146
|
+
).annotate({ identifier: "ConnectionsOpenRequest" });
|
|
1147
|
+
case 1:
|
|
1148
|
+
return S.suspend(() =>
|
|
1149
|
+
S.Struct({
|
|
1150
|
+
ok: S.Boolean,
|
|
1151
|
+
url: S.String,
|
|
1152
|
+
}),
|
|
1153
|
+
).annotate({ identifier: "ConnectionsOpenResponse" });
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
function __c21(j: number): any {
|
|
1157
|
+
switch (j) {
|
|
1158
|
+
case 0:
|
|
1159
|
+
return S.suspend(() =>
|
|
1160
|
+
S.Struct({
|
|
1161
|
+
manifest: S.String,
|
|
1162
|
+
team_id: S.optional(S.String),
|
|
1163
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 })),
|
|
1164
|
+
).annotate({ identifier: "CreateManifestRequest" });
|
|
1165
|
+
case 1:
|
|
1166
|
+
return S.suspend(() =>
|
|
1167
|
+
S.Struct({
|
|
1168
|
+
client_id: S.optional(S.String),
|
|
1169
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1170
|
+
verification_token: S.optional(S.String),
|
|
1171
|
+
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1172
|
+
}),
|
|
1173
|
+
).annotate({ identifier: "CreateManifestResponseCredentials" });
|
|
1174
|
+
case 2:
|
|
1175
|
+
return S.suspend(() =>
|
|
1176
|
+
S.Struct({
|
|
1177
|
+
ok: S.Boolean,
|
|
1178
|
+
app_id: S.String,
|
|
1179
|
+
credentials: __S(85, __c21, 1),
|
|
1180
|
+
oauth_authorize_url: S.optional(S.String),
|
|
1181
|
+
team_id: S.optional(S.String),
|
|
1182
|
+
team_domain: S.optional(S.String),
|
|
1183
|
+
app_token: S.optional(S.String),
|
|
1184
|
+
}),
|
|
1185
|
+
).annotate({ identifier: "CreateManifestResponse" });
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
function __c22(j: number): any {
|
|
1189
|
+
switch (j) {
|
|
1190
|
+
case 0:
|
|
1191
|
+
return S.suspend(() =>
|
|
1192
|
+
S.Struct({
|
|
1193
|
+
datastore: S.String,
|
|
1194
|
+
expression: S.optional(S.String),
|
|
1195
|
+
expression_attributes: S.optional(__S(12, __c3, 0)),
|
|
1196
|
+
expression_values: S.optional(__S(12, __c3, 0)),
|
|
1197
|
+
app_id: S.optional(S.String),
|
|
1198
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 })),
|
|
1199
|
+
).annotate({ identifier: "DatastoreCountRequest" });
|
|
1200
|
+
case 1:
|
|
1201
|
+
return S.suspend(() =>
|
|
1202
|
+
S.Struct({
|
|
1203
|
+
ok: S.Boolean,
|
|
1204
|
+
datastore: S.optional(S.String),
|
|
1205
|
+
count: S.optional(S.Number),
|
|
1206
|
+
}),
|
|
1207
|
+
).annotate({ identifier: "DatastoreCountResponse" });
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function __c23(j: number): any {
|
|
1211
|
+
switch (j) {
|
|
1212
|
+
case 0:
|
|
1213
|
+
return S.suspend(() =>
|
|
1214
|
+
S.Struct({
|
|
1215
|
+
datastore: S.String,
|
|
1216
|
+
expression: S.optional(S.String),
|
|
1217
|
+
expression_attributes: S.optional(__S(12, __c3, 0)),
|
|
1218
|
+
expression_values: S.optional(__S(12, __c3, 0)),
|
|
1219
|
+
app_id: S.optional(S.String),
|
|
1220
|
+
cursor: S.optional(S.String),
|
|
1221
|
+
limit: S.optional(S.Number),
|
|
1222
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 })),
|
|
1223
|
+
).annotate({ identifier: "DatastoreQueryRequest" });
|
|
1224
|
+
case 1:
|
|
1225
|
+
return S.suspend(() =>
|
|
1226
|
+
S.Struct({
|
|
1227
|
+
ok: S.Boolean,
|
|
1228
|
+
datastore: S.optional(S.String),
|
|
1229
|
+
items: __S(16, __c4, 0),
|
|
1230
|
+
response_metadata: S.optional(__S(96, __c24, 0)),
|
|
1231
|
+
}),
|
|
1232
|
+
).annotate({ identifier: "DatastoreQueryResponse" });
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
function __c24(j: number): any {
|
|
1236
|
+
switch (j) {
|
|
1237
|
+
case 0:
|
|
1238
|
+
return S.suspend(() =>
|
|
1239
|
+
S.Struct({
|
|
1240
|
+
next_cursor: S.optional(S.String),
|
|
1241
|
+
}),
|
|
1242
|
+
).annotate({ identifier: "DatastoreQueryResponseResponseMetadata" });
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
function __c25(j: number): any {
|
|
1246
|
+
switch (j) {
|
|
1247
|
+
case 0:
|
|
1248
|
+
return S.suspend(() =>
|
|
1249
|
+
S.Struct({
|
|
1250
|
+
app_id: S.optional(S.String),
|
|
1251
|
+
provider_key: S.optional(S.String),
|
|
1252
|
+
external_token_id: S.optional(S.String),
|
|
1253
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 })),
|
|
1254
|
+
).annotate({ identifier: "DeleteAuthExternalRequest" });
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
function __c26(j: number): any {
|
|
1258
|
+
switch (j) {
|
|
1259
|
+
case 0:
|
|
1260
|
+
return S.suspend(() =>
|
|
1261
|
+
S.Struct({
|
|
1262
|
+
ok: S.Boolean,
|
|
1263
|
+
}),
|
|
1264
|
+
).annotate({ identifier: "DeleteAuthExternalResponse" });
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
function __c27(j: number): any {
|
|
1268
|
+
switch (j) {
|
|
1269
|
+
case 0:
|
|
1270
|
+
return S.suspend(() =>
|
|
1271
|
+
S.Struct({
|
|
1272
|
+
datastore: S.String,
|
|
1273
|
+
id: S.String,
|
|
1274
|
+
app_id: S.optional(S.String),
|
|
1275
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 })),
|
|
1276
|
+
).annotate({ identifier: "DeleteDatastoreRequest" });
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
function __c28(j: number): any {
|
|
1280
|
+
switch (j) {
|
|
1281
|
+
case 0:
|
|
1282
|
+
return S.suspend(() =>
|
|
1283
|
+
S.Struct({
|
|
1284
|
+
app_id: S.String,
|
|
1285
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
1286
|
+
).annotate({ identifier: "DeleteManifestRequest" });
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1290
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1291
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1292
|
+
}
|