@distilled.cloud/slack 0.0.0 → 1.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +27 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +53 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +59 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +31 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +31 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +230 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +52 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +45 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/admin.d.ts +2796 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +3217 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/api.d.ts +23 -0
- package/lib/services/api.d.ts.map +1 -0
- package/lib/services/api.js +26 -0
- package/lib/services/api.js.map +1 -0
- package/lib/services/apps.d.ts +568 -0
- package/lib/services/apps.d.ts.map +1 -0
- package/lib/services/apps.js +584 -0
- package/lib/services/apps.js.map +1 -0
- package/lib/services/assistant.d.ts +290 -0
- package/lib/services/assistant.d.ts.map +1 -0
- package/lib/services/assistant.js +232 -0
- package/lib/services/assistant.js.map +1 -0
- package/lib/services/auth.d.ts +90 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +114 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/blocks.d.ts +31 -0
- package/lib/services/blocks.d.ts.map +1 -0
- package/lib/services/blocks.js +31 -0
- package/lib/services/blocks.js.map +1 -0
- package/lib/services/bookmarks.d.ts +91 -0
- package/lib/services/bookmarks.d.ts.map +1 -0
- package/lib/services/bookmarks.js +98 -0
- package/lib/services/bookmarks.js.map +1 -0
- package/lib/services/bots.d.ts +60 -0
- package/lib/services/bots.d.ts.map +1 -0
- package/lib/services/bots.js +68 -0
- package/lib/services/bots.js.map +1 -0
- package/lib/services/calls.d.ts +124 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +136 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/canvases.d.ts +152 -0
- package/lib/services/canvases.d.ts.map +1 -0
- package/lib/services/canvases.js +152 -0
- package/lib/services/canvases.js.map +1 -0
- package/lib/services/chat.d.ts +525 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +436 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/conversations.d.ts +642 -0
- package/lib/services/conversations.d.ts.map +1 -0
- package/lib/services/conversations.js +769 -0
- package/lib/services/conversations.js.map +1 -0
- package/lib/services/dialog.d.ts +20 -0
- package/lib/services/dialog.d.ts.map +1 -0
- package/lib/services/dialog.js +27 -0
- package/lib/services/dialog.js.map +1 -0
- package/lib/services/dnd.d.ts +94 -0
- package/lib/services/dnd.d.ts.map +1 -0
- package/lib/services/dnd.js +111 -0
- package/lib/services/dnd.js.map +1 -0
- package/lib/services/emoji.d.ts +35 -0
- package/lib/services/emoji.d.ts.map +1 -0
- package/lib/services/emoji.js +40 -0
- package/lib/services/emoji.js.map +1 -0
- package/lib/services/entity.d.ts +93 -0
- package/lib/services/entity.d.ts.map +1 -0
- package/lib/services/entity.js +89 -0
- package/lib/services/entity.js.map +1 -0
- package/lib/services/files.d.ts +473 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +510 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/functions.d.ts +235 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +256 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +36 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/lists.d.ts +300 -0
- package/lib/services/lists.d.ts.map +1 -0
- package/lib/services/lists.js +366 -0
- package/lib/services/lists.js.map +1 -0
- package/lib/services/migration.d.ts +34 -0
- package/lib/services/migration.d.ts.map +1 -0
- package/lib/services/migration.js +36 -0
- package/lib/services/migration.js.map +1 -0
- package/lib/services/oauth.d.ts +307 -0
- package/lib/services/oauth.d.ts.map +1 -0
- package/lib/services/oauth.js +278 -0
- package/lib/services/oauth.js.map +1 -0
- package/lib/services/openid.d.ts +86 -0
- package/lib/services/openid.d.ts.map +1 -0
- package/lib/services/openid.js +93 -0
- package/lib/services/openid.js.map +1 -0
- package/lib/services/pins.d.ts +64 -0
- package/lib/services/pins.d.ts.map +1 -0
- package/lib/services/pins.js +75 -0
- package/lib/services/pins.js.map +1 -0
- package/lib/services/reactions.d.ts +108 -0
- package/lib/services/reactions.d.ts.map +1 -0
- package/lib/services/reactions.js +119 -0
- package/lib/services/reactions.js.map +1 -0
- package/lib/services/reminders.d.ts +89 -0
- package/lib/services/reminders.d.ts.map +1 -0
- package/lib/services/reminders.js +109 -0
- package/lib/services/reminders.js.map +1 -0
- package/lib/services/rtm.d.ts +68 -0
- package/lib/services/rtm.d.ts.map +1 -0
- package/lib/services/rtm.js +74 -0
- package/lib/services/rtm.js.map +1 -0
- package/lib/services/search.d.ts +239 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +190 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/stars.d.ts +126 -0
- package/lib/services/stars.d.ts.map +1 -0
- package/lib/services/stars.js +145 -0
- package/lib/services/stars.js.map +1 -0
- package/lib/services/team.d.ts +309 -0
- package/lib/services/team.d.ts.map +1 -0
- package/lib/services/team.js +333 -0
- package/lib/services/team.js.map +1 -0
- package/lib/services/tooling.d.ts +31 -0
- package/lib/services/tooling.d.ts.map +1 -0
- package/lib/services/tooling.js +38 -0
- package/lib/services/tooling.js.map +1 -0
- package/lib/services/usergroups.d.ts +183 -0
- package/lib/services/usergroups.d.ts.map +1 -0
- package/lib/services/usergroups.js +180 -0
- package/lib/services/usergroups.js.map +1 -0
- package/lib/services/users.d.ts +246 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +309 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/views.d.ts +84 -0
- package/lib/services/views.d.ts.map +1 -0
- package/lib/services/views.js +95 -0
- package/lib/services/views.js.map +1 -0
- package/lib/services/workflows.d.ts +231 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +238 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +12 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -4
- package/src/credentials.ts +86 -0
- package/src/errors.ts +101 -0
- package/src/index.ts +20 -0
- package/src/pagination.ts +35 -0
- package/src/protocol.ts +326 -0
- package/src/retry.ts +76 -0
- package/src/services/admin.ts +7722 -0
- package/src/services/api.ts +58 -0
- package/src/services/apps.ts +1441 -0
- package/src/services/assistant.ts +639 -0
- package/src/services/auth.ts +241 -0
- package/src/services/blocks.ts +80 -0
- package/src/services/bookmarks.ts +223 -0
- package/src/services/bots.ts +144 -0
- package/src/services/calls.ts +318 -0
- package/src/services/canvases.ts +392 -0
- package/src/services/chat.ts +1191 -0
- package/src/services/conversations.ts +1754 -0
- package/src/services/dialog.ts +55 -0
- package/src/services/dnd.ts +246 -0
- package/src/services/emoji.ts +91 -0
- package/src/services/entity.ts +225 -0
- package/src/services/files.ts +1192 -0
- package/src/services/functions.ts +642 -0
- package/src/services/index.ts +35 -0
- package/src/services/lists.ts +832 -0
- package/src/services/migration.ts +85 -0
- package/src/services/oauth.ts +658 -0
- package/src/services/openid.ts +243 -0
- package/src/services/pins.ts +167 -0
- package/src/services/reactions.ts +272 -0
- package/src/services/reminders.ts +240 -0
- package/src/services/rtm.ts +162 -0
- package/src/services/search.ts +507 -0
- package/src/services/stars.ts +323 -0
- package/src/services/team.ts +834 -0
- package/src/services/tooling.ts +78 -0
- package/src/services/usergroups.ts +441 -0
- package/src/services/users.ts +685 -0
- package/src/services/views.ts +212 -0
- package/src/services/workflows.ts +605 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,1441 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
SlackProtocol,
|
|
8
|
+
type SlackOpError,
|
|
9
|
+
type SlackOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { slackPaginate } from "../pagination.ts";
|
|
12
|
+
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
|
|
15
|
+
export type { SlackOpError, SlackOpContext };
|
|
16
|
+
|
|
17
|
+
/** IDs of items to be deleted */
|
|
18
|
+
export type BulkDeleteRequestIdsList = Array<string>;
|
|
19
|
+
export const BulkDeleteRequestIdsList = /*@__PURE__*/ S.Array(
|
|
20
|
+
S.String,
|
|
21
|
+
) as any as S.Schema<BulkDeleteRequestIdsList>;
|
|
22
|
+
|
|
23
|
+
export interface BulkDeleteRequest {
|
|
24
|
+
/** name of the datastore */
|
|
25
|
+
datastore: string;
|
|
26
|
+
/** IDs of items to be deleted */
|
|
27
|
+
ids: BulkDeleteRequestIdsList;
|
|
28
|
+
app_id?: string;
|
|
29
|
+
}
|
|
30
|
+
export const BulkDeleteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
+
S.Struct({
|
|
32
|
+
datastore: S.String,
|
|
33
|
+
ids: BulkDeleteRequestIdsList,
|
|
34
|
+
app_id: S.optional(S.String),
|
|
35
|
+
}).pipe(
|
|
36
|
+
T.Http({ method: "POST", uri: "/apps.datastore.bulkDelete", code: 200 }),
|
|
37
|
+
),
|
|
38
|
+
).annotate({
|
|
39
|
+
identifier: "BulkDeleteRequest",
|
|
40
|
+
}) as any as S.Schema<BulkDeleteRequest>;
|
|
41
|
+
|
|
42
|
+
/** attribute names and values of the items that failed to be processed */
|
|
43
|
+
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
44
|
+
export const BulkDeleteResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
45
|
+
S.String,
|
|
46
|
+
) as any as S.Schema<BulkDeleteResponseFailedItemsList>;
|
|
47
|
+
|
|
48
|
+
export interface BulkDeleteResponse {
|
|
49
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
50
|
+
ok: boolean;
|
|
51
|
+
/** attribute names and values of the items that failed to be processed */
|
|
52
|
+
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
53
|
+
}
|
|
54
|
+
export const BulkDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
+
S.Struct({
|
|
56
|
+
ok: S.Boolean,
|
|
57
|
+
failed_items: S.optional(BulkDeleteResponseFailedItemsList),
|
|
58
|
+
}),
|
|
59
|
+
).annotate({
|
|
60
|
+
identifier: "BulkDeleteResponse",
|
|
61
|
+
}) as any as S.Schema<BulkDeleteResponse>;
|
|
62
|
+
|
|
63
|
+
/** items' ids */
|
|
64
|
+
export type BulkGetRequestIdsList = Array<string>;
|
|
65
|
+
export const BulkGetRequestIdsList = /*@__PURE__*/ S.Array(
|
|
66
|
+
S.String,
|
|
67
|
+
) as any as S.Schema<BulkGetRequestIdsList>;
|
|
68
|
+
|
|
69
|
+
export interface BulkGetRequest {
|
|
70
|
+
/** name of the datastore */
|
|
71
|
+
datastore: string;
|
|
72
|
+
/** items' ids */
|
|
73
|
+
ids: BulkGetRequestIdsList;
|
|
74
|
+
app_id?: string;
|
|
75
|
+
}
|
|
76
|
+
export const BulkGetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
77
|
+
S.Struct({
|
|
78
|
+
datastore: S.String,
|
|
79
|
+
ids: BulkGetRequestIdsList,
|
|
80
|
+
app_id: S.optional(S.String),
|
|
81
|
+
}).pipe(
|
|
82
|
+
T.Http({ method: "POST", uri: "/apps.datastore.bulkGet", code: 200 }),
|
|
83
|
+
),
|
|
84
|
+
).annotate({ identifier: "BulkGetRequest" }) as any as S.Schema<BulkGetRequest>;
|
|
85
|
+
|
|
86
|
+
export type BulkGetResponseItemsItemMap = {
|
|
87
|
+
[key: string]: unknown | undefined;
|
|
88
|
+
};
|
|
89
|
+
export const BulkGetResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
90
|
+
S.String,
|
|
91
|
+
S.Unknown,
|
|
92
|
+
) as any as S.Schema<BulkGetResponseItemsItemMap>;
|
|
93
|
+
|
|
94
|
+
/** array of attribute names and values of each item */
|
|
95
|
+
export type BulkGetResponseItemsList = Array<BulkGetResponseItemsItemMap>;
|
|
96
|
+
export const BulkGetResponseItemsList = /*@__PURE__*/ S.Array(
|
|
97
|
+
BulkGetResponseItemsItemMap,
|
|
98
|
+
) as any as S.Schema<BulkGetResponseItemsList>;
|
|
99
|
+
|
|
100
|
+
/** attribute names and values of the items that failed to be processed */
|
|
101
|
+
export type BulkGetResponseFailedItemsList = Array<string>;
|
|
102
|
+
export const BulkGetResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
103
|
+
S.String,
|
|
104
|
+
) as any as S.Schema<BulkGetResponseFailedItemsList>;
|
|
105
|
+
|
|
106
|
+
export interface BulkGetResponse {
|
|
107
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
108
|
+
ok: boolean;
|
|
109
|
+
/** array of attribute names and values of each item */
|
|
110
|
+
items?: BulkGetResponseItemsList;
|
|
111
|
+
/** attribute names and values of the items that failed to be processed */
|
|
112
|
+
failed_items?: BulkGetResponseFailedItemsList;
|
|
113
|
+
}
|
|
114
|
+
export const BulkGetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
115
|
+
S.Struct({
|
|
116
|
+
ok: S.Boolean,
|
|
117
|
+
items: S.optional(BulkGetResponseItemsList),
|
|
118
|
+
failed_items: S.optional(BulkGetResponseFailedItemsList),
|
|
119
|
+
}),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "BulkGetResponse",
|
|
122
|
+
}) as any as S.Schema<BulkGetResponse>;
|
|
123
|
+
|
|
124
|
+
export type BulkPutRequestItemsItemMap = { [key: string]: unknown | undefined };
|
|
125
|
+
export const BulkPutRequestItemsItemMap = /*@__PURE__*/ S.Record(
|
|
126
|
+
S.String,
|
|
127
|
+
S.Unknown,
|
|
128
|
+
) as any as S.Schema<BulkPutRequestItemsItemMap>;
|
|
129
|
+
|
|
130
|
+
/** attribute names and values of the items; limit of 25 */
|
|
131
|
+
export type BulkPutRequestItemsList = Array<BulkPutRequestItemsItemMap>;
|
|
132
|
+
export const BulkPutRequestItemsList = /*@__PURE__*/ S.Array(
|
|
133
|
+
BulkPutRequestItemsItemMap,
|
|
134
|
+
) as any as S.Schema<BulkPutRequestItemsList>;
|
|
135
|
+
|
|
136
|
+
export interface BulkPutRequest {
|
|
137
|
+
/** name of the datastore */
|
|
138
|
+
datastore: string;
|
|
139
|
+
/** attribute names and values of the items; limit of 25 */
|
|
140
|
+
items: BulkPutRequestItemsList;
|
|
141
|
+
app_id?: string;
|
|
142
|
+
}
|
|
143
|
+
export const BulkPutRequest = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Struct({
|
|
145
|
+
datastore: S.String,
|
|
146
|
+
items: BulkPutRequestItemsList,
|
|
147
|
+
app_id: S.optional(S.String),
|
|
148
|
+
}).pipe(
|
|
149
|
+
T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 }),
|
|
150
|
+
),
|
|
151
|
+
).annotate({ identifier: "BulkPutRequest" }) as any as S.Schema<BulkPutRequest>;
|
|
152
|
+
|
|
153
|
+
export type BulkPutResponseFailedItemsItemMap = {
|
|
154
|
+
[key: string]: unknown | undefined;
|
|
155
|
+
};
|
|
156
|
+
export const BulkPutResponseFailedItemsItemMap = /*@__PURE__*/ S.Record(
|
|
157
|
+
S.String,
|
|
158
|
+
S.Unknown,
|
|
159
|
+
) as any as S.Schema<BulkPutResponseFailedItemsItemMap>;
|
|
160
|
+
|
|
161
|
+
/** attribute names and values of the items that failed to be processed */
|
|
162
|
+
export type BulkPutResponseFailedItemsList =
|
|
163
|
+
Array<BulkPutResponseFailedItemsItemMap>;
|
|
164
|
+
export const BulkPutResponseFailedItemsList = /*@__PURE__*/ S.Array(
|
|
165
|
+
BulkPutResponseFailedItemsItemMap,
|
|
166
|
+
) as any as S.Schema<BulkPutResponseFailedItemsList>;
|
|
167
|
+
|
|
168
|
+
export interface BulkPutResponse {
|
|
169
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
170
|
+
ok: boolean;
|
|
171
|
+
/** name of the datastore */
|
|
172
|
+
datastore?: string;
|
|
173
|
+
/** attribute names and values of the items that failed to be processed */
|
|
174
|
+
failed_items?: BulkPutResponseFailedItemsList;
|
|
175
|
+
}
|
|
176
|
+
export const BulkPutResponse = /*@__PURE__*/ S.suspend(() =>
|
|
177
|
+
S.Struct({
|
|
178
|
+
ok: S.Boolean,
|
|
179
|
+
datastore: S.optional(S.String),
|
|
180
|
+
failed_items: S.optional(BulkPutResponseFailedItemsList),
|
|
181
|
+
}),
|
|
182
|
+
).annotate({
|
|
183
|
+
identifier: "BulkPutResponse",
|
|
184
|
+
}) as any as S.Schema<BulkPutResponse>;
|
|
185
|
+
|
|
186
|
+
export interface ConnectionsOpenRequest {}
|
|
187
|
+
export const ConnectionsOpenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
188
|
+
S.Struct({}).pipe(
|
|
189
|
+
T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 }),
|
|
190
|
+
),
|
|
191
|
+
).annotate({
|
|
192
|
+
identifier: "ConnectionsOpenRequest",
|
|
193
|
+
}) as any as S.Schema<ConnectionsOpenRequest>;
|
|
194
|
+
|
|
195
|
+
export interface ConnectionsOpenResponse {
|
|
196
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
197
|
+
ok: boolean;
|
|
198
|
+
/** The URL to connect to. */
|
|
199
|
+
url: string;
|
|
200
|
+
}
|
|
201
|
+
export const ConnectionsOpenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
202
|
+
S.Struct({
|
|
203
|
+
ok: S.Boolean,
|
|
204
|
+
url: S.String,
|
|
205
|
+
}),
|
|
206
|
+
).annotate({
|
|
207
|
+
identifier: "ConnectionsOpenResponse",
|
|
208
|
+
}) as any as S.Schema<ConnectionsOpenResponse>;
|
|
209
|
+
|
|
210
|
+
export interface CreateManifestRequest {
|
|
211
|
+
/** 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). */
|
|
212
|
+
manifest: string;
|
|
213
|
+
/** When called with an org token, which specific team to create app on */
|
|
214
|
+
team_id?: string;
|
|
215
|
+
}
|
|
216
|
+
export const CreateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
+
S.Struct({
|
|
218
|
+
manifest: S.String,
|
|
219
|
+
team_id: S.optional(S.String),
|
|
220
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 })),
|
|
221
|
+
).annotate({
|
|
222
|
+
identifier: "CreateManifestRequest",
|
|
223
|
+
}) as any as S.Schema<CreateManifestRequest>;
|
|
224
|
+
|
|
225
|
+
export interface CreateManifestResponseCredentials {
|
|
226
|
+
client_id?: string;
|
|
227
|
+
client_secret?: string | Redacted.Redacted<string>;
|
|
228
|
+
verification_token?: string;
|
|
229
|
+
signing_secret?: string | Redacted.Redacted<string>;
|
|
230
|
+
}
|
|
231
|
+
export const CreateManifestResponseCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
232
|
+
S.Struct({
|
|
233
|
+
client_id: S.optional(S.String),
|
|
234
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
235
|
+
verification_token: S.optional(S.String),
|
|
236
|
+
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
237
|
+
}),
|
|
238
|
+
).annotate({
|
|
239
|
+
identifier: "CreateManifestResponseCredentials",
|
|
240
|
+
}) as any as S.Schema<CreateManifestResponseCredentials>;
|
|
241
|
+
|
|
242
|
+
export interface CreateManifestResponse {
|
|
243
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
244
|
+
ok: boolean;
|
|
245
|
+
app_id: string;
|
|
246
|
+
credentials: CreateManifestResponseCredentials;
|
|
247
|
+
oauth_authorize_url?: string;
|
|
248
|
+
/** The team ID where the app was created on */
|
|
249
|
+
team_id?: string;
|
|
250
|
+
/** The team domain where the app was created on */
|
|
251
|
+
team_domain?: string;
|
|
252
|
+
app_token?: string;
|
|
253
|
+
}
|
|
254
|
+
export const CreateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
255
|
+
S.Struct({
|
|
256
|
+
ok: S.Boolean,
|
|
257
|
+
app_id: S.String,
|
|
258
|
+
credentials: CreateManifestResponseCredentials,
|
|
259
|
+
oauth_authorize_url: S.optional(S.String),
|
|
260
|
+
team_id: S.optional(S.String),
|
|
261
|
+
team_domain: S.optional(S.String),
|
|
262
|
+
app_token: S.optional(S.String),
|
|
263
|
+
}),
|
|
264
|
+
).annotate({
|
|
265
|
+
identifier: "CreateManifestResponse",
|
|
266
|
+
}) as any as S.Schema<CreateManifestResponse>;
|
|
267
|
+
|
|
268
|
+
/** A map of attributes referenced in expression */
|
|
269
|
+
export type DatastoreCountRequestExpressionAttributesMap = {
|
|
270
|
+
[key: string]: unknown | undefined;
|
|
271
|
+
};
|
|
272
|
+
export const DatastoreCountRequestExpressionAttributesMap =
|
|
273
|
+
/*@__PURE__*/ S.Record(
|
|
274
|
+
S.String,
|
|
275
|
+
S.Unknown,
|
|
276
|
+
) as any as S.Schema<DatastoreCountRequestExpressionAttributesMap>;
|
|
277
|
+
|
|
278
|
+
/** A map of values referenced in expression */
|
|
279
|
+
export type DatastoreCountRequestExpressionValuesMap = {
|
|
280
|
+
[key: string]: unknown | undefined;
|
|
281
|
+
};
|
|
282
|
+
export const DatastoreCountRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
283
|
+
S.String,
|
|
284
|
+
S.Unknown,
|
|
285
|
+
) as any as S.Schema<DatastoreCountRequestExpressionValuesMap>;
|
|
286
|
+
|
|
287
|
+
export interface DatastoreCountRequest {
|
|
288
|
+
/** Name of the datastore */
|
|
289
|
+
datastore: string;
|
|
290
|
+
/** A query filter expression */
|
|
291
|
+
expression?: string;
|
|
292
|
+
/** A map of attributes referenced in expression */
|
|
293
|
+
expression_attributes?: DatastoreCountRequestExpressionAttributesMap;
|
|
294
|
+
/** A map of values referenced in expression */
|
|
295
|
+
expression_values?: DatastoreCountRequestExpressionValuesMap;
|
|
296
|
+
/** Required if calling with user token */
|
|
297
|
+
app_id?: string;
|
|
298
|
+
}
|
|
299
|
+
export const DatastoreCountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
300
|
+
S.Struct({
|
|
301
|
+
datastore: S.String,
|
|
302
|
+
expression: S.optional(S.String),
|
|
303
|
+
expression_attributes: S.optional(
|
|
304
|
+
DatastoreCountRequestExpressionAttributesMap,
|
|
305
|
+
),
|
|
306
|
+
expression_values: S.optional(DatastoreCountRequestExpressionValuesMap),
|
|
307
|
+
app_id: S.optional(S.String),
|
|
308
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 })),
|
|
309
|
+
).annotate({
|
|
310
|
+
identifier: "DatastoreCountRequest",
|
|
311
|
+
}) as any as S.Schema<DatastoreCountRequest>;
|
|
312
|
+
|
|
313
|
+
export interface DatastoreCountResponse {
|
|
314
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
315
|
+
ok: boolean;
|
|
316
|
+
/** name of the datastore */
|
|
317
|
+
datastore?: string;
|
|
318
|
+
/** number of matching items */
|
|
319
|
+
count?: number;
|
|
320
|
+
}
|
|
321
|
+
export const DatastoreCountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
322
|
+
S.Struct({
|
|
323
|
+
ok: S.Boolean,
|
|
324
|
+
datastore: S.optional(S.String),
|
|
325
|
+
count: S.optional(S.Number),
|
|
326
|
+
}),
|
|
327
|
+
).annotate({
|
|
328
|
+
identifier: "DatastoreCountResponse",
|
|
329
|
+
}) as any as S.Schema<DatastoreCountResponse>;
|
|
330
|
+
|
|
331
|
+
/** A map of attributes referenced in expression */
|
|
332
|
+
export type DatastoreQueryRequestExpressionAttributesMap = {
|
|
333
|
+
[key: string]: unknown | undefined;
|
|
334
|
+
};
|
|
335
|
+
export const DatastoreQueryRequestExpressionAttributesMap =
|
|
336
|
+
/*@__PURE__*/ S.Record(
|
|
337
|
+
S.String,
|
|
338
|
+
S.Unknown,
|
|
339
|
+
) as any as S.Schema<DatastoreQueryRequestExpressionAttributesMap>;
|
|
340
|
+
|
|
341
|
+
/** A map of values referenced in expression */
|
|
342
|
+
export type DatastoreQueryRequestExpressionValuesMap = {
|
|
343
|
+
[key: string]: unknown | undefined;
|
|
344
|
+
};
|
|
345
|
+
export const DatastoreQueryRequestExpressionValuesMap = /*@__PURE__*/ S.Record(
|
|
346
|
+
S.String,
|
|
347
|
+
S.Unknown,
|
|
348
|
+
) as any as S.Schema<DatastoreQueryRequestExpressionValuesMap>;
|
|
349
|
+
|
|
350
|
+
export interface DatastoreQueryRequest {
|
|
351
|
+
/** Name of the datastore */
|
|
352
|
+
datastore: string;
|
|
353
|
+
/** A query filter expression */
|
|
354
|
+
expression?: string;
|
|
355
|
+
/** A map of attributes referenced in expression */
|
|
356
|
+
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap;
|
|
357
|
+
/** A map of values referenced in expression */
|
|
358
|
+
expression_values?: DatastoreQueryRequestExpressionValuesMap;
|
|
359
|
+
/** Required if calling with user token */
|
|
360
|
+
app_id?: string;
|
|
361
|
+
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
362
|
+
cursor?: string;
|
|
363
|
+
/** 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. */
|
|
364
|
+
limit?: number;
|
|
365
|
+
}
|
|
366
|
+
export const DatastoreQueryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
367
|
+
S.Struct({
|
|
368
|
+
datastore: S.String,
|
|
369
|
+
expression: S.optional(S.String),
|
|
370
|
+
expression_attributes: S.optional(
|
|
371
|
+
DatastoreQueryRequestExpressionAttributesMap,
|
|
372
|
+
),
|
|
373
|
+
expression_values: S.optional(DatastoreQueryRequestExpressionValuesMap),
|
|
374
|
+
app_id: S.optional(S.String),
|
|
375
|
+
cursor: S.optional(S.String),
|
|
376
|
+
limit: S.optional(S.Number),
|
|
377
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 })),
|
|
378
|
+
).annotate({
|
|
379
|
+
identifier: "DatastoreQueryRequest",
|
|
380
|
+
}) as any as S.Schema<DatastoreQueryRequest>;
|
|
381
|
+
|
|
382
|
+
export type DatastoreQueryResponseItemsItemMap = {
|
|
383
|
+
[key: string]: unknown | undefined;
|
|
384
|
+
};
|
|
385
|
+
export const DatastoreQueryResponseItemsItemMap = /*@__PURE__*/ S.Record(
|
|
386
|
+
S.String,
|
|
387
|
+
S.Unknown,
|
|
388
|
+
) as any as S.Schema<DatastoreQueryResponseItemsItemMap>;
|
|
389
|
+
|
|
390
|
+
/** attribute names and values of the items */
|
|
391
|
+
export type DatastoreQueryResponseItemsList =
|
|
392
|
+
Array<DatastoreQueryResponseItemsItemMap>;
|
|
393
|
+
export const DatastoreQueryResponseItemsList = /*@__PURE__*/ S.Array(
|
|
394
|
+
DatastoreQueryResponseItemsItemMap,
|
|
395
|
+
) as any as S.Schema<DatastoreQueryResponseItemsList>;
|
|
396
|
+
|
|
397
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
398
|
+
export interface DatastoreQueryResponseResponseMetadata {
|
|
399
|
+
/** Cursor for the next page — pass as `cursor` on the next call. */
|
|
400
|
+
next_cursor?: string;
|
|
401
|
+
}
|
|
402
|
+
export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(
|
|
403
|
+
() =>
|
|
404
|
+
S.Struct({
|
|
405
|
+
next_cursor: S.optional(S.String),
|
|
406
|
+
}),
|
|
407
|
+
).annotate({
|
|
408
|
+
identifier: "DatastoreQueryResponseResponseMetadata",
|
|
409
|
+
}) as any as S.Schema<DatastoreQueryResponseResponseMetadata>;
|
|
410
|
+
|
|
411
|
+
export interface DatastoreQueryResponse {
|
|
412
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
413
|
+
ok: boolean;
|
|
414
|
+
/** name of the datastore */
|
|
415
|
+
datastore?: string;
|
|
416
|
+
/** attribute names and values of the items */
|
|
417
|
+
items: DatastoreQueryResponseItemsList;
|
|
418
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
419
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
420
|
+
}
|
|
421
|
+
export const DatastoreQueryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
422
|
+
S.Struct({
|
|
423
|
+
ok: S.Boolean,
|
|
424
|
+
datastore: S.optional(S.String),
|
|
425
|
+
items: DatastoreQueryResponseItemsList,
|
|
426
|
+
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
427
|
+
}),
|
|
428
|
+
).annotate({
|
|
429
|
+
identifier: "DatastoreQueryResponse",
|
|
430
|
+
}) as any as S.Schema<DatastoreQueryResponse>;
|
|
431
|
+
|
|
432
|
+
export interface DeleteAuthExternalRequest {
|
|
433
|
+
/** The id of the app whose tokens you want to delete */
|
|
434
|
+
app_id?: string;
|
|
435
|
+
/** The provider key of the provider whose tokens you want to delete */
|
|
436
|
+
provider_key?: string;
|
|
437
|
+
/** The id of the token that you want to delete */
|
|
438
|
+
external_token_id?: string;
|
|
439
|
+
}
|
|
440
|
+
export const DeleteAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
441
|
+
S.Struct({
|
|
442
|
+
app_id: S.optional(S.String),
|
|
443
|
+
provider_key: S.optional(S.String),
|
|
444
|
+
external_token_id: S.optional(S.String),
|
|
445
|
+
}).pipe(
|
|
446
|
+
T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 }),
|
|
447
|
+
),
|
|
448
|
+
).annotate({
|
|
449
|
+
identifier: "DeleteAuthExternalRequest",
|
|
450
|
+
}) as any as S.Schema<DeleteAuthExternalRequest>;
|
|
451
|
+
|
|
452
|
+
export interface DeleteAuthExternalResponse {
|
|
453
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
454
|
+
ok: boolean;
|
|
455
|
+
}
|
|
456
|
+
export const DeleteAuthExternalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
457
|
+
S.Struct({
|
|
458
|
+
ok: S.Boolean,
|
|
459
|
+
}),
|
|
460
|
+
).annotate({
|
|
461
|
+
identifier: "DeleteAuthExternalResponse",
|
|
462
|
+
}) as any as S.Schema<DeleteAuthExternalResponse>;
|
|
463
|
+
|
|
464
|
+
export interface DeleteDatastoreRequest {
|
|
465
|
+
/** name of the datastore */
|
|
466
|
+
datastore: string;
|
|
467
|
+
/** item id */
|
|
468
|
+
id: string;
|
|
469
|
+
app_id?: string;
|
|
470
|
+
}
|
|
471
|
+
export const DeleteDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
472
|
+
S.Struct({
|
|
473
|
+
datastore: S.String,
|
|
474
|
+
id: S.String,
|
|
475
|
+
app_id: S.optional(S.String),
|
|
476
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 })),
|
|
477
|
+
).annotate({
|
|
478
|
+
identifier: "DeleteDatastoreRequest",
|
|
479
|
+
}) as any as S.Schema<DeleteDatastoreRequest>;
|
|
480
|
+
|
|
481
|
+
export interface DeleteDatastoreResponse {
|
|
482
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
483
|
+
ok: boolean;
|
|
484
|
+
}
|
|
485
|
+
export const DeleteDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
486
|
+
S.Struct({
|
|
487
|
+
ok: S.Boolean,
|
|
488
|
+
}),
|
|
489
|
+
).annotate({
|
|
490
|
+
identifier: "DeleteDatastoreResponse",
|
|
491
|
+
}) as any as S.Schema<DeleteDatastoreResponse>;
|
|
492
|
+
|
|
493
|
+
export interface DeleteManifestRequest {
|
|
494
|
+
/** The ID of the app you want to delete. */
|
|
495
|
+
app_id: string;
|
|
496
|
+
}
|
|
497
|
+
export const DeleteManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
498
|
+
S.Struct({
|
|
499
|
+
app_id: S.String,
|
|
500
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
501
|
+
).annotate({
|
|
502
|
+
identifier: "DeleteManifestRequest",
|
|
503
|
+
}) as any as S.Schema<DeleteManifestRequest>;
|
|
504
|
+
|
|
505
|
+
export interface DeleteManifestResponse {
|
|
506
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
507
|
+
ok: boolean;
|
|
508
|
+
}
|
|
509
|
+
export const DeleteManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
510
|
+
S.Struct({
|
|
511
|
+
ok: S.Boolean,
|
|
512
|
+
}),
|
|
513
|
+
).annotate({
|
|
514
|
+
identifier: "DeleteManifestResponse",
|
|
515
|
+
}) as any as S.Schema<DeleteManifestResponse>;
|
|
516
|
+
|
|
517
|
+
export interface ExportManifestRequest {
|
|
518
|
+
/** The ID of the app whose configuration you want to export as a manifest. */
|
|
519
|
+
app_id: string;
|
|
520
|
+
}
|
|
521
|
+
export const ExportManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
522
|
+
S.Struct({
|
|
523
|
+
app_id: S.String,
|
|
524
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 })),
|
|
525
|
+
).annotate({
|
|
526
|
+
identifier: "ExportManifestRequest",
|
|
527
|
+
}) as any as S.Schema<ExportManifestRequest>;
|
|
528
|
+
|
|
529
|
+
export interface ExportManifestResponse {
|
|
530
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
531
|
+
ok: boolean;
|
|
532
|
+
manifest: unknown;
|
|
533
|
+
}
|
|
534
|
+
export const ExportManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
535
|
+
S.Struct({
|
|
536
|
+
ok: S.Boolean,
|
|
537
|
+
manifest: S.Unknown,
|
|
538
|
+
}),
|
|
539
|
+
).annotate({
|
|
540
|
+
identifier: "ExportManifestResponse",
|
|
541
|
+
}) as any as S.Schema<ExportManifestResponse>;
|
|
542
|
+
|
|
543
|
+
export interface GetAuthExternalRequest {
|
|
544
|
+
/** The id of the token you want to get the token for */
|
|
545
|
+
external_token_id: string;
|
|
546
|
+
/** Always refresh existing token before returning even when the token has not expired */
|
|
547
|
+
force_refresh?: boolean;
|
|
548
|
+
}
|
|
549
|
+
export const GetAuthExternalRequest = /*@__PURE__*/ S.suspend(() =>
|
|
550
|
+
S.Struct({
|
|
551
|
+
external_token_id: S.String,
|
|
552
|
+
force_refresh: S.optional(S.Boolean),
|
|
553
|
+
}).pipe(
|
|
554
|
+
T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 }),
|
|
555
|
+
),
|
|
556
|
+
).annotate({
|
|
557
|
+
identifier: "GetAuthExternalRequest",
|
|
558
|
+
}) as any as S.Schema<GetAuthExternalRequest>;
|
|
559
|
+
|
|
560
|
+
export interface GetAuthExternalResponse {
|
|
561
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
562
|
+
ok: boolean;
|
|
563
|
+
external_token: string;
|
|
564
|
+
token_response_extras: unknown;
|
|
565
|
+
}
|
|
566
|
+
export const GetAuthExternalResponse = /*@__PURE__*/ S.suspend(() =>
|
|
567
|
+
S.Struct({
|
|
568
|
+
ok: S.Boolean,
|
|
569
|
+
external_token: S.String,
|
|
570
|
+
token_response_extras: S.Unknown,
|
|
571
|
+
}),
|
|
572
|
+
).annotate({
|
|
573
|
+
identifier: "GetAuthExternalResponse",
|
|
574
|
+
}) as any as S.Schema<GetAuthExternalResponse>;
|
|
575
|
+
|
|
576
|
+
export interface GetDatastoreRequest {
|
|
577
|
+
/** name of the datastore */
|
|
578
|
+
datastore: string;
|
|
579
|
+
/** item id */
|
|
580
|
+
id: string;
|
|
581
|
+
app_id?: string;
|
|
582
|
+
}
|
|
583
|
+
export const GetDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
584
|
+
S.Struct({
|
|
585
|
+
datastore: S.String,
|
|
586
|
+
id: S.String,
|
|
587
|
+
app_id: S.optional(S.String),
|
|
588
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 })),
|
|
589
|
+
).annotate({
|
|
590
|
+
identifier: "GetDatastoreRequest",
|
|
591
|
+
}) as any as S.Schema<GetDatastoreRequest>;
|
|
592
|
+
|
|
593
|
+
/** attribute names and values of the item */
|
|
594
|
+
export type GetDatastoreResponseItemMap = {
|
|
595
|
+
[key: string]: unknown | undefined;
|
|
596
|
+
};
|
|
597
|
+
export const GetDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
598
|
+
S.String,
|
|
599
|
+
S.Unknown,
|
|
600
|
+
) as any as S.Schema<GetDatastoreResponseItemMap>;
|
|
601
|
+
|
|
602
|
+
export interface GetDatastoreResponse {
|
|
603
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
604
|
+
ok: boolean;
|
|
605
|
+
/** name of the datastore */
|
|
606
|
+
datastore?: string;
|
|
607
|
+
/** attribute names and values of the item */
|
|
608
|
+
item?: GetDatastoreResponseItemMap;
|
|
609
|
+
}
|
|
610
|
+
export const GetDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
611
|
+
S.Struct({
|
|
612
|
+
ok: S.Boolean,
|
|
613
|
+
datastore: S.optional(S.String),
|
|
614
|
+
item: S.optional(GetDatastoreResponseItemMap),
|
|
615
|
+
}),
|
|
616
|
+
).annotate({
|
|
617
|
+
identifier: "GetDatastoreResponse",
|
|
618
|
+
}) as any as S.Schema<GetDatastoreResponse>;
|
|
619
|
+
|
|
620
|
+
/** The direction you want the data sorted by (always by timestamp) */
|
|
621
|
+
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
622
|
+
export const ListActivitiesRequestSortDirection = S.String;
|
|
623
|
+
|
|
624
|
+
export interface ListActivitiesRequest {
|
|
625
|
+
/** The id of the app to get activities from. */
|
|
626
|
+
app_id: string;
|
|
627
|
+
/** The team who owns this log. */
|
|
628
|
+
team_id?: string;
|
|
629
|
+
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
630
|
+
cursor?: string;
|
|
631
|
+
/** The maximum number of items to return. */
|
|
632
|
+
limit?: number;
|
|
633
|
+
/** The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal'). */
|
|
634
|
+
min_log_level?: string;
|
|
635
|
+
/** The event type of log events to be returned. */
|
|
636
|
+
log_event_type?: string;
|
|
637
|
+
/** The source of log events to be returned. Acceptable values are ('slack', 'developer'). */
|
|
638
|
+
source?: string;
|
|
639
|
+
/** The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). */
|
|
640
|
+
component_type?: string;
|
|
641
|
+
/** The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for workflows */
|
|
642
|
+
component_id?: string;
|
|
643
|
+
/** The trace id of log events to be returned. */
|
|
644
|
+
trace_id?: string;
|
|
645
|
+
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
646
|
+
min_date_created?: number;
|
|
647
|
+
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
648
|
+
max_date_created?: number;
|
|
649
|
+
/** The direction you want the data sorted by (always by timestamp) */
|
|
650
|
+
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
651
|
+
}
|
|
652
|
+
export const ListActivitiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
653
|
+
S.Struct({
|
|
654
|
+
app_id: S.String,
|
|
655
|
+
team_id: S.optional(S.String),
|
|
656
|
+
cursor: S.optional(S.String),
|
|
657
|
+
limit: S.optional(S.Number),
|
|
658
|
+
min_log_level: S.optional(S.String),
|
|
659
|
+
log_event_type: S.optional(S.String),
|
|
660
|
+
source: S.optional(S.String),
|
|
661
|
+
component_type: S.optional(S.String),
|
|
662
|
+
component_id: S.optional(S.String),
|
|
663
|
+
trace_id: S.optional(S.String),
|
|
664
|
+
min_date_created: S.optional(S.Number),
|
|
665
|
+
max_date_created: S.optional(S.Number),
|
|
666
|
+
sort_direction: S.optional(ListActivitiesRequestSortDirection),
|
|
667
|
+
}).pipe(
|
|
668
|
+
T.Http({
|
|
669
|
+
method: "POST",
|
|
670
|
+
uri: "/apps.activities.list",
|
|
671
|
+
code: 200,
|
|
672
|
+
contentType: "form-urlencoded",
|
|
673
|
+
}),
|
|
674
|
+
),
|
|
675
|
+
).annotate({
|
|
676
|
+
identifier: "ListActivitiesRequest",
|
|
677
|
+
}) as any as S.Schema<ListActivitiesRequest>;
|
|
678
|
+
|
|
679
|
+
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
680
|
+
export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(
|
|
681
|
+
S.Unknown,
|
|
682
|
+
) as any as S.Schema<ListActivitiesResponseActivitiesList>;
|
|
683
|
+
|
|
684
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
685
|
+
export type ListActivitiesResponseResponseMetadata =
|
|
686
|
+
DatastoreQueryResponseResponseMetadata;
|
|
687
|
+
export const ListActivitiesResponseResponseMetadata =
|
|
688
|
+
DatastoreQueryResponseResponseMetadata;
|
|
689
|
+
|
|
690
|
+
export interface ListActivitiesResponse {
|
|
691
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
692
|
+
ok: boolean;
|
|
693
|
+
activities: ListActivitiesResponseActivitiesList;
|
|
694
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
695
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
696
|
+
}
|
|
697
|
+
export const ListActivitiesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
698
|
+
S.Struct({
|
|
699
|
+
ok: S.Boolean,
|
|
700
|
+
activities: ListActivitiesResponseActivitiesList,
|
|
701
|
+
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
702
|
+
}),
|
|
703
|
+
).annotate({
|
|
704
|
+
identifier: "ListActivitiesResponse",
|
|
705
|
+
}) as any as S.Schema<ListActivitiesResponse>;
|
|
706
|
+
|
|
707
|
+
export interface ListEventAuthorizationsRequest {
|
|
708
|
+
event_context: string;
|
|
709
|
+
cursor?: string;
|
|
710
|
+
limit?: number;
|
|
711
|
+
}
|
|
712
|
+
export const ListEventAuthorizationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
713
|
+
S.Struct({
|
|
714
|
+
event_context: S.String,
|
|
715
|
+
cursor: S.optional(S.String),
|
|
716
|
+
limit: S.optional(S.Number),
|
|
717
|
+
}).pipe(
|
|
718
|
+
T.Http({
|
|
719
|
+
method: "POST",
|
|
720
|
+
uri: "/apps.event.authorizations.list",
|
|
721
|
+
code: 200,
|
|
722
|
+
}),
|
|
723
|
+
),
|
|
724
|
+
).annotate({
|
|
725
|
+
identifier: "ListEventAuthorizationsRequest",
|
|
726
|
+
}) as any as S.Schema<ListEventAuthorizationsRequest>;
|
|
727
|
+
|
|
728
|
+
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
729
|
+
enterprise_id: string | null;
|
|
730
|
+
team_id: string | null;
|
|
731
|
+
user_id: string;
|
|
732
|
+
is_bot: boolean;
|
|
733
|
+
is_enterprise_install: boolean;
|
|
734
|
+
}
|
|
735
|
+
export const ListEventAuthorizationsResponseAuthorizationsItem =
|
|
736
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
737
|
+
S.Struct({
|
|
738
|
+
enterprise_id: S.NullOr(S.String),
|
|
739
|
+
team_id: S.NullOr(S.String),
|
|
740
|
+
user_id: S.String,
|
|
741
|
+
is_bot: S.Boolean,
|
|
742
|
+
is_enterprise_install: S.Boolean,
|
|
743
|
+
}),
|
|
744
|
+
).annotate({
|
|
745
|
+
identifier: "ListEventAuthorizationsResponseAuthorizationsItem",
|
|
746
|
+
}) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
747
|
+
|
|
748
|
+
export type ListEventAuthorizationsResponseAuthorizationsList =
|
|
749
|
+
Array<ListEventAuthorizationsResponseAuthorizationsItem>;
|
|
750
|
+
export const ListEventAuthorizationsResponseAuthorizationsList =
|
|
751
|
+
/*@__PURE__*/ S.Array(
|
|
752
|
+
ListEventAuthorizationsResponseAuthorizationsItem,
|
|
753
|
+
) as any as S.Schema<ListEventAuthorizationsResponseAuthorizationsList>;
|
|
754
|
+
|
|
755
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
756
|
+
export type ListEventAuthorizationsResponseResponseMetadata =
|
|
757
|
+
DatastoreQueryResponseResponseMetadata;
|
|
758
|
+
export const ListEventAuthorizationsResponseResponseMetadata =
|
|
759
|
+
DatastoreQueryResponseResponseMetadata;
|
|
760
|
+
|
|
761
|
+
export interface ListEventAuthorizationsResponse {
|
|
762
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
763
|
+
ok: boolean;
|
|
764
|
+
/** The next cursor for use in [pagination](/apis/web-api/pagination). If present, pass this in subsequent calls to get additional results */
|
|
765
|
+
cursor_next?: string;
|
|
766
|
+
authorizations: ListEventAuthorizationsResponseAuthorizationsList;
|
|
767
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
768
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
769
|
+
}
|
|
770
|
+
export const ListEventAuthorizationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
771
|
+
S.Struct({
|
|
772
|
+
ok: S.Boolean,
|
|
773
|
+
cursor_next: S.optional(S.String),
|
|
774
|
+
authorizations: ListEventAuthorizationsResponseAuthorizationsList,
|
|
775
|
+
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
776
|
+
}),
|
|
777
|
+
).annotate({
|
|
778
|
+
identifier: "ListEventAuthorizationsResponse",
|
|
779
|
+
}) as any as S.Schema<ListEventAuthorizationsResponse>;
|
|
780
|
+
|
|
781
|
+
/** attribute names and values of the item */
|
|
782
|
+
export type PutDatastoreRequestItemMap = { [key: string]: unknown | undefined };
|
|
783
|
+
export const PutDatastoreRequestItemMap = /*@__PURE__*/ S.Record(
|
|
784
|
+
S.String,
|
|
785
|
+
S.Unknown,
|
|
786
|
+
) as any as S.Schema<PutDatastoreRequestItemMap>;
|
|
787
|
+
|
|
788
|
+
export interface PutDatastoreRequest {
|
|
789
|
+
/** name of the datastore */
|
|
790
|
+
datastore: string;
|
|
791
|
+
/** attribute names and values of the item */
|
|
792
|
+
item: PutDatastoreRequestItemMap;
|
|
793
|
+
app_id?: string;
|
|
794
|
+
}
|
|
795
|
+
export const PutDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
796
|
+
S.Struct({
|
|
797
|
+
datastore: S.String,
|
|
798
|
+
item: PutDatastoreRequestItemMap,
|
|
799
|
+
app_id: S.optional(S.String),
|
|
800
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 })),
|
|
801
|
+
).annotate({
|
|
802
|
+
identifier: "PutDatastoreRequest",
|
|
803
|
+
}) as any as S.Schema<PutDatastoreRequest>;
|
|
804
|
+
|
|
805
|
+
/** attribute names and values of the item */
|
|
806
|
+
export type PutDatastoreResponseItemMap = {
|
|
807
|
+
[key: string]: unknown | undefined;
|
|
808
|
+
};
|
|
809
|
+
export const PutDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
810
|
+
S.String,
|
|
811
|
+
S.Unknown,
|
|
812
|
+
) as any as S.Schema<PutDatastoreResponseItemMap>;
|
|
813
|
+
|
|
814
|
+
export interface PutDatastoreResponse {
|
|
815
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
816
|
+
ok: boolean;
|
|
817
|
+
/** name of the datastore */
|
|
818
|
+
datastore?: string;
|
|
819
|
+
/** attribute names and values of the item */
|
|
820
|
+
item?: PutDatastoreResponseItemMap;
|
|
821
|
+
}
|
|
822
|
+
export const PutDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
ok: S.Boolean,
|
|
825
|
+
datastore: S.optional(S.String),
|
|
826
|
+
item: S.optional(PutDatastoreResponseItemMap),
|
|
827
|
+
}),
|
|
828
|
+
).annotate({
|
|
829
|
+
identifier: "PutDatastoreResponse",
|
|
830
|
+
}) as any as S.Schema<PutDatastoreResponse>;
|
|
831
|
+
|
|
832
|
+
export interface SetIconRequest {
|
|
833
|
+
/** The ID of the app whose icon you want to set. */
|
|
834
|
+
app_id: string;
|
|
835
|
+
/** File contents via `multipart/form-data` */
|
|
836
|
+
file?: unknown;
|
|
837
|
+
/** URL of a publicly hosted image */
|
|
838
|
+
url?: string;
|
|
839
|
+
}
|
|
840
|
+
export const SetIconRequest = /*@__PURE__*/ S.suspend(() =>
|
|
841
|
+
S.Struct({
|
|
842
|
+
app_id: S.String,
|
|
843
|
+
file: S.optional(S.Unknown),
|
|
844
|
+
url: S.optional(S.String),
|
|
845
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.icon.set", code: 200 })),
|
|
846
|
+
).annotate({ identifier: "SetIconRequest" }) as any as S.Schema<SetIconRequest>;
|
|
847
|
+
|
|
848
|
+
export interface SetIconResponse {
|
|
849
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
850
|
+
ok: boolean;
|
|
851
|
+
}
|
|
852
|
+
export const SetIconResponse = /*@__PURE__*/ S.suspend(() =>
|
|
853
|
+
S.Struct({
|
|
854
|
+
ok: S.Boolean,
|
|
855
|
+
}),
|
|
856
|
+
).annotate({
|
|
857
|
+
identifier: "SetIconResponse",
|
|
858
|
+
}) as any as S.Schema<SetIconResponse>;
|
|
859
|
+
|
|
860
|
+
export interface UninstallAppRequest {
|
|
861
|
+
/** Issued when you created your application. */
|
|
862
|
+
client_id: string;
|
|
863
|
+
/** Issued when you created your application. */
|
|
864
|
+
client_secret: string | Redacted.Redacted<string>;
|
|
865
|
+
}
|
|
866
|
+
export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() =>
|
|
867
|
+
S.Struct({
|
|
868
|
+
client_id: S.String,
|
|
869
|
+
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
870
|
+
}).pipe(
|
|
871
|
+
T.Http({
|
|
872
|
+
method: "POST",
|
|
873
|
+
uri: "/apps.uninstall",
|
|
874
|
+
code: 200,
|
|
875
|
+
contentType: "form-urlencoded",
|
|
876
|
+
}),
|
|
877
|
+
),
|
|
878
|
+
).annotate({
|
|
879
|
+
identifier: "UninstallAppRequest",
|
|
880
|
+
}) as any as S.Schema<UninstallAppRequest>;
|
|
881
|
+
|
|
882
|
+
export interface UninstallAppResponse {
|
|
883
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
884
|
+
ok: boolean;
|
|
885
|
+
uninstalled: boolean;
|
|
886
|
+
}
|
|
887
|
+
export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() =>
|
|
888
|
+
S.Struct({
|
|
889
|
+
ok: S.Boolean,
|
|
890
|
+
uninstalled: S.Boolean,
|
|
891
|
+
}),
|
|
892
|
+
).annotate({
|
|
893
|
+
identifier: "UninstallAppResponse",
|
|
894
|
+
}) as any as S.Schema<UninstallAppResponse>;
|
|
895
|
+
|
|
896
|
+
/** attribute names and values to be updated */
|
|
897
|
+
export type UpdateDatastoreRequestItemMap = {
|
|
898
|
+
[key: string]: unknown | undefined;
|
|
899
|
+
};
|
|
900
|
+
export const UpdateDatastoreRequestItemMap = /*@__PURE__*/ S.Record(
|
|
901
|
+
S.String,
|
|
902
|
+
S.Unknown,
|
|
903
|
+
) as any as S.Schema<UpdateDatastoreRequestItemMap>;
|
|
904
|
+
|
|
905
|
+
export interface UpdateDatastoreRequest {
|
|
906
|
+
/** name of the datastore */
|
|
907
|
+
datastore: string;
|
|
908
|
+
/** attribute names and values to be updated */
|
|
909
|
+
item: UpdateDatastoreRequestItemMap;
|
|
910
|
+
app_id?: string;
|
|
911
|
+
}
|
|
912
|
+
export const UpdateDatastoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
913
|
+
S.Struct({
|
|
914
|
+
datastore: S.String,
|
|
915
|
+
item: UpdateDatastoreRequestItemMap,
|
|
916
|
+
app_id: S.optional(S.String),
|
|
917
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 })),
|
|
918
|
+
).annotate({
|
|
919
|
+
identifier: "UpdateDatastoreRequest",
|
|
920
|
+
}) as any as S.Schema<UpdateDatastoreRequest>;
|
|
921
|
+
|
|
922
|
+
/** attribute names and values of the item, including those updated */
|
|
923
|
+
export type UpdateDatastoreResponseItemMap = {
|
|
924
|
+
[key: string]: unknown | undefined;
|
|
925
|
+
};
|
|
926
|
+
export const UpdateDatastoreResponseItemMap = /*@__PURE__*/ S.Record(
|
|
927
|
+
S.String,
|
|
928
|
+
S.Unknown,
|
|
929
|
+
) as any as S.Schema<UpdateDatastoreResponseItemMap>;
|
|
930
|
+
|
|
931
|
+
export interface UpdateDatastoreResponse {
|
|
932
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
933
|
+
ok: boolean;
|
|
934
|
+
/** name of the datastore */
|
|
935
|
+
datastore?: string;
|
|
936
|
+
/** attribute names and values of the item, including those updated */
|
|
937
|
+
item?: UpdateDatastoreResponseItemMap;
|
|
938
|
+
}
|
|
939
|
+
export const UpdateDatastoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
940
|
+
S.Struct({
|
|
941
|
+
ok: S.Boolean,
|
|
942
|
+
datastore: S.optional(S.String),
|
|
943
|
+
item: S.optional(UpdateDatastoreResponseItemMap),
|
|
944
|
+
}),
|
|
945
|
+
).annotate({
|
|
946
|
+
identifier: "UpdateDatastoreResponse",
|
|
947
|
+
}) as any as S.Schema<UpdateDatastoreResponse>;
|
|
948
|
+
|
|
949
|
+
export interface UpdateManifestRequest {
|
|
950
|
+
/** 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. */
|
|
951
|
+
manifest: string;
|
|
952
|
+
/** The ID of the app whose configuration you want to update. */
|
|
953
|
+
app_id: string;
|
|
954
|
+
}
|
|
955
|
+
export const UpdateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
956
|
+
S.Struct({
|
|
957
|
+
manifest: S.String,
|
|
958
|
+
app_id: S.String,
|
|
959
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 })),
|
|
960
|
+
).annotate({
|
|
961
|
+
identifier: "UpdateManifestRequest",
|
|
962
|
+
}) as any as S.Schema<UpdateManifestRequest>;
|
|
963
|
+
|
|
964
|
+
export interface UpdateManifestResponse {
|
|
965
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
966
|
+
ok: boolean;
|
|
967
|
+
app_id: string;
|
|
968
|
+
permissions_updated?: boolean;
|
|
969
|
+
}
|
|
970
|
+
export const UpdateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
971
|
+
S.Struct({
|
|
972
|
+
ok: S.Boolean,
|
|
973
|
+
app_id: S.String,
|
|
974
|
+
permissions_updated: S.optional(S.Boolean),
|
|
975
|
+
}),
|
|
976
|
+
).annotate({
|
|
977
|
+
identifier: "UpdateManifestResponse",
|
|
978
|
+
}) as any as S.Schema<UpdateManifestResponse>;
|
|
979
|
+
|
|
980
|
+
/** The status that should be set for the user. */
|
|
981
|
+
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
982
|
+
export const UpdateUserConnectionRequestStatus = S.String;
|
|
983
|
+
|
|
984
|
+
export interface UpdateUserConnectionRequest {
|
|
985
|
+
/** The ID of the user for the status update. */
|
|
986
|
+
user_id: string;
|
|
987
|
+
/** The status that should be set for the user. */
|
|
988
|
+
status: UpdateUserConnectionRequestStatus | (string & {});
|
|
989
|
+
}
|
|
990
|
+
export const UpdateUserConnectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
991
|
+
S.Struct({
|
|
992
|
+
user_id: S.String,
|
|
993
|
+
status: UpdateUserConnectionRequestStatus,
|
|
994
|
+
}).pipe(
|
|
995
|
+
T.Http({
|
|
996
|
+
method: "POST",
|
|
997
|
+
uri: "/apps.user.connection.update",
|
|
998
|
+
code: 200,
|
|
999
|
+
contentType: "form-urlencoded",
|
|
1000
|
+
}),
|
|
1001
|
+
),
|
|
1002
|
+
).annotate({
|
|
1003
|
+
identifier: "UpdateUserConnectionRequest",
|
|
1004
|
+
}) as any as S.Schema<UpdateUserConnectionRequest>;
|
|
1005
|
+
|
|
1006
|
+
export interface UpdateUserConnectionResponse {
|
|
1007
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1008
|
+
ok: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
export const UpdateUserConnectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1011
|
+
S.Struct({
|
|
1012
|
+
ok: S.Boolean,
|
|
1013
|
+
}),
|
|
1014
|
+
).annotate({
|
|
1015
|
+
identifier: "UpdateUserConnectionResponse",
|
|
1016
|
+
}) as any as S.Schema<UpdateUserConnectionResponse>;
|
|
1017
|
+
|
|
1018
|
+
export interface ValidateManifestRequest {
|
|
1019
|
+
/** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
1020
|
+
manifest: string;
|
|
1021
|
+
/** The ID of the app whose configuration you want to validate. */
|
|
1022
|
+
app_id?: string;
|
|
1023
|
+
}
|
|
1024
|
+
export const ValidateManifestRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1025
|
+
S.Struct({
|
|
1026
|
+
manifest: S.String,
|
|
1027
|
+
app_id: S.optional(S.String),
|
|
1028
|
+
}).pipe(
|
|
1029
|
+
T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 }),
|
|
1030
|
+
),
|
|
1031
|
+
).annotate({
|
|
1032
|
+
identifier: "ValidateManifestRequest",
|
|
1033
|
+
}) as any as S.Schema<ValidateManifestRequest>;
|
|
1034
|
+
|
|
1035
|
+
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
1036
|
+
export const ValidateManifestResponseErrorsList = /*@__PURE__*/ S.Array(
|
|
1037
|
+
S.String,
|
|
1038
|
+
) as any as S.Schema<ValidateManifestResponseErrorsList>;
|
|
1039
|
+
|
|
1040
|
+
export interface ValidateManifestResponseWarningsItem {
|
|
1041
|
+
code: string;
|
|
1042
|
+
message: string;
|
|
1043
|
+
pointer?: string;
|
|
1044
|
+
}
|
|
1045
|
+
export const ValidateManifestResponseWarningsItem = /*@__PURE__*/ S.suspend(
|
|
1046
|
+
() =>
|
|
1047
|
+
S.Struct({
|
|
1048
|
+
code: S.String,
|
|
1049
|
+
message: S.String,
|
|
1050
|
+
pointer: S.optional(S.String),
|
|
1051
|
+
}),
|
|
1052
|
+
).annotate({
|
|
1053
|
+
identifier: "ValidateManifestResponseWarningsItem",
|
|
1054
|
+
}) as any as S.Schema<ValidateManifestResponseWarningsItem>;
|
|
1055
|
+
|
|
1056
|
+
/** Non-blocking warnings from app manifest validation. */
|
|
1057
|
+
export type ValidateManifestResponseWarningsList =
|
|
1058
|
+
Array<ValidateManifestResponseWarningsItem>;
|
|
1059
|
+
export const ValidateManifestResponseWarningsList = /*@__PURE__*/ S.Array(
|
|
1060
|
+
ValidateManifestResponseWarningsItem,
|
|
1061
|
+
) as any as S.Schema<ValidateManifestResponseWarningsList>;
|
|
1062
|
+
|
|
1063
|
+
export interface ValidateManifestResponse {
|
|
1064
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1065
|
+
ok: boolean;
|
|
1066
|
+
errors: ValidateManifestResponseErrorsList;
|
|
1067
|
+
/** Non-blocking warnings from app manifest validation. */
|
|
1068
|
+
warnings?: ValidateManifestResponseWarningsList;
|
|
1069
|
+
}
|
|
1070
|
+
export const ValidateManifestResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1071
|
+
S.Struct({
|
|
1072
|
+
ok: S.Boolean,
|
|
1073
|
+
errors: ValidateManifestResponseErrorsList,
|
|
1074
|
+
warnings: S.optional(ValidateManifestResponseWarningsList),
|
|
1075
|
+
}),
|
|
1076
|
+
).annotate({
|
|
1077
|
+
identifier: "ValidateManifestResponse",
|
|
1078
|
+
}) as any as S.Schema<ValidateManifestResponse>;
|
|
1079
|
+
|
|
1080
|
+
export type BulkDeleteError = SlackOpError;
|
|
1081
|
+
/** 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 */
|
|
1082
|
+
export const bulkDelete: API.OperationMethod<
|
|
1083
|
+
BulkDeleteRequest,
|
|
1084
|
+
BulkDeleteResponse,
|
|
1085
|
+
BulkDeleteError,
|
|
1086
|
+
SlackOpContext
|
|
1087
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1088
|
+
input: BulkDeleteRequest,
|
|
1089
|
+
output: BulkDeleteResponse,
|
|
1090
|
+
errors: [SlackError, SlackRateLimited],
|
|
1091
|
+
protocol: SlackProtocol,
|
|
1092
|
+
retry: Retry.Retry,
|
|
1093
|
+
}));
|
|
1094
|
+
|
|
1095
|
+
export type BulkGetError = SlackOpError;
|
|
1096
|
+
/** 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 */
|
|
1097
|
+
export const bulkGet: API.OperationMethod<
|
|
1098
|
+
BulkGetRequest,
|
|
1099
|
+
BulkGetResponse,
|
|
1100
|
+
BulkGetError,
|
|
1101
|
+
SlackOpContext
|
|
1102
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1103
|
+
input: BulkGetRequest,
|
|
1104
|
+
output: BulkGetResponse,
|
|
1105
|
+
errors: [SlackError, SlackRateLimited],
|
|
1106
|
+
protocol: SlackProtocol,
|
|
1107
|
+
retry: Retry.Retry,
|
|
1108
|
+
}));
|
|
1109
|
+
|
|
1110
|
+
export type BulkPutError = SlackOpError;
|
|
1111
|
+
/** 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 */
|
|
1112
|
+
export const bulkPut: API.OperationMethod<
|
|
1113
|
+
BulkPutRequest,
|
|
1114
|
+
BulkPutResponse,
|
|
1115
|
+
BulkPutError,
|
|
1116
|
+
SlackOpContext
|
|
1117
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1118
|
+
input: BulkPutRequest,
|
|
1119
|
+
output: BulkPutResponse,
|
|
1120
|
+
errors: [SlackError, SlackRateLimited],
|
|
1121
|
+
protocol: SlackProtocol,
|
|
1122
|
+
retry: Retry.Retry,
|
|
1123
|
+
}));
|
|
1124
|
+
|
|
1125
|
+
export type ConnectionsOpenError = SlackOpError;
|
|
1126
|
+
/** 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 */
|
|
1127
|
+
export const connectionsOpen: API.OperationMethod<
|
|
1128
|
+
ConnectionsOpenRequest,
|
|
1129
|
+
ConnectionsOpenResponse,
|
|
1130
|
+
ConnectionsOpenError,
|
|
1131
|
+
SlackOpContext
|
|
1132
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1133
|
+
input: ConnectionsOpenRequest,
|
|
1134
|
+
output: ConnectionsOpenResponse,
|
|
1135
|
+
errors: [SlackError, SlackRateLimited],
|
|
1136
|
+
protocol: SlackProtocol,
|
|
1137
|
+
retry: Retry.Retry,
|
|
1138
|
+
}));
|
|
1139
|
+
|
|
1140
|
+
export type CreateManifestError = SlackOpError;
|
|
1141
|
+
/** 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 */
|
|
1142
|
+
export const createManifest: API.OperationMethod<
|
|
1143
|
+
CreateManifestRequest,
|
|
1144
|
+
CreateManifestResponse,
|
|
1145
|
+
CreateManifestError,
|
|
1146
|
+
SlackOpContext
|
|
1147
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1148
|
+
input: CreateManifestRequest,
|
|
1149
|
+
output: CreateManifestResponse,
|
|
1150
|
+
errors: [SlackError, SlackRateLimited],
|
|
1151
|
+
protocol: SlackProtocol,
|
|
1152
|
+
retry: Retry.Retry,
|
|
1153
|
+
}));
|
|
1154
|
+
|
|
1155
|
+
export type DatastoreCountError = SlackOpError;
|
|
1156
|
+
/** 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 */
|
|
1157
|
+
export const datastoreCount: API.OperationMethod<
|
|
1158
|
+
DatastoreCountRequest,
|
|
1159
|
+
DatastoreCountResponse,
|
|
1160
|
+
DatastoreCountError,
|
|
1161
|
+
SlackOpContext
|
|
1162
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1163
|
+
input: DatastoreCountRequest,
|
|
1164
|
+
output: DatastoreCountResponse,
|
|
1165
|
+
errors: [SlackError, SlackRateLimited],
|
|
1166
|
+
protocol: SlackProtocol,
|
|
1167
|
+
retry: Retry.Retry,
|
|
1168
|
+
}));
|
|
1169
|
+
|
|
1170
|
+
export type DatastoreQueryError = SlackOpError;
|
|
1171
|
+
/** 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 */
|
|
1172
|
+
export const datastoreQuery: API.PaginatedOperationMethod<
|
|
1173
|
+
DatastoreQueryRequest,
|
|
1174
|
+
DatastoreQueryResponse,
|
|
1175
|
+
DatastoreQueryError,
|
|
1176
|
+
SlackOpContext,
|
|
1177
|
+
DatastoreQueryResponseItemsItemMap
|
|
1178
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1179
|
+
() => ({
|
|
1180
|
+
input: DatastoreQueryRequest,
|
|
1181
|
+
output: DatastoreQueryResponse,
|
|
1182
|
+
errors: [SlackError, SlackRateLimited],
|
|
1183
|
+
protocol: SlackProtocol,
|
|
1184
|
+
retry: Retry.Retry,
|
|
1185
|
+
pagination: {
|
|
1186
|
+
mode: "cursor",
|
|
1187
|
+
inputToken: "cursor",
|
|
1188
|
+
outputToken: "response_metadata.next_cursor",
|
|
1189
|
+
items: "items",
|
|
1190
|
+
pageSize: "limit",
|
|
1191
|
+
} as const,
|
|
1192
|
+
}),
|
|
1193
|
+
slackPaginate,
|
|
1194
|
+
) as any;
|
|
1195
|
+
|
|
1196
|
+
export type DeleteAuthExternalError = SlackOpError;
|
|
1197
|
+
/** 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 */
|
|
1198
|
+
export const deleteAuthExternal: API.OperationMethod<
|
|
1199
|
+
DeleteAuthExternalRequest,
|
|
1200
|
+
DeleteAuthExternalResponse,
|
|
1201
|
+
DeleteAuthExternalError,
|
|
1202
|
+
SlackOpContext
|
|
1203
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1204
|
+
input: DeleteAuthExternalRequest,
|
|
1205
|
+
output: DeleteAuthExternalResponse,
|
|
1206
|
+
errors: [SlackError, SlackRateLimited],
|
|
1207
|
+
protocol: SlackProtocol,
|
|
1208
|
+
retry: Retry.Retry,
|
|
1209
|
+
}));
|
|
1210
|
+
|
|
1211
|
+
export type DeleteDatastoreError = SlackOpError;
|
|
1212
|
+
/** 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 */
|
|
1213
|
+
export const deleteDatastore: API.OperationMethod<
|
|
1214
|
+
DeleteDatastoreRequest,
|
|
1215
|
+
DeleteDatastoreResponse,
|
|
1216
|
+
DeleteDatastoreError,
|
|
1217
|
+
SlackOpContext
|
|
1218
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1219
|
+
input: DeleteDatastoreRequest,
|
|
1220
|
+
output: DeleteDatastoreResponse,
|
|
1221
|
+
errors: [SlackError, SlackRateLimited],
|
|
1222
|
+
protocol: SlackProtocol,
|
|
1223
|
+
retry: Retry.Retry,
|
|
1224
|
+
}));
|
|
1225
|
+
|
|
1226
|
+
export type DeleteManifestError = SlackOpError;
|
|
1227
|
+
/** 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 */
|
|
1228
|
+
export const deleteManifest: API.OperationMethod<
|
|
1229
|
+
DeleteManifestRequest,
|
|
1230
|
+
DeleteManifestResponse,
|
|
1231
|
+
DeleteManifestError,
|
|
1232
|
+
SlackOpContext
|
|
1233
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1234
|
+
input: DeleteManifestRequest,
|
|
1235
|
+
output: DeleteManifestResponse,
|
|
1236
|
+
errors: [SlackError, SlackRateLimited],
|
|
1237
|
+
protocol: SlackProtocol,
|
|
1238
|
+
retry: Retry.Retry,
|
|
1239
|
+
}));
|
|
1240
|
+
|
|
1241
|
+
export type ExportManifestError = SlackOpError;
|
|
1242
|
+
/** 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 */
|
|
1243
|
+
export const exportManifest: API.OperationMethod<
|
|
1244
|
+
ExportManifestRequest,
|
|
1245
|
+
ExportManifestResponse,
|
|
1246
|
+
ExportManifestError,
|
|
1247
|
+
SlackOpContext
|
|
1248
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1249
|
+
input: ExportManifestRequest,
|
|
1250
|
+
output: ExportManifestResponse,
|
|
1251
|
+
errors: [SlackError, SlackRateLimited],
|
|
1252
|
+
protocol: SlackProtocol,
|
|
1253
|
+
retry: Retry.Retry,
|
|
1254
|
+
}));
|
|
1255
|
+
|
|
1256
|
+
export type GetAuthExternalError = SlackOpError;
|
|
1257
|
+
/** 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 */
|
|
1258
|
+
export const getAuthExternal: API.OperationMethod<
|
|
1259
|
+
GetAuthExternalRequest,
|
|
1260
|
+
GetAuthExternalResponse,
|
|
1261
|
+
GetAuthExternalError,
|
|
1262
|
+
SlackOpContext
|
|
1263
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1264
|
+
input: GetAuthExternalRequest,
|
|
1265
|
+
output: GetAuthExternalResponse,
|
|
1266
|
+
errors: [SlackError, SlackRateLimited],
|
|
1267
|
+
protocol: SlackProtocol,
|
|
1268
|
+
retry: Retry.Retry,
|
|
1269
|
+
}));
|
|
1270
|
+
|
|
1271
|
+
export type GetDatastoreError = SlackOpError;
|
|
1272
|
+
/** 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 */
|
|
1273
|
+
export const getDatastore: API.OperationMethod<
|
|
1274
|
+
GetDatastoreRequest,
|
|
1275
|
+
GetDatastoreResponse,
|
|
1276
|
+
GetDatastoreError,
|
|
1277
|
+
SlackOpContext
|
|
1278
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1279
|
+
input: GetDatastoreRequest,
|
|
1280
|
+
output: GetDatastoreResponse,
|
|
1281
|
+
errors: [SlackError, SlackRateLimited],
|
|
1282
|
+
protocol: SlackProtocol,
|
|
1283
|
+
retry: Retry.Retry,
|
|
1284
|
+
}));
|
|
1285
|
+
|
|
1286
|
+
export type ListActivitiesError = SlackOpError;
|
|
1287
|
+
/** 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 */
|
|
1288
|
+
export const listActivities: API.PaginatedOperationMethod<
|
|
1289
|
+
ListActivitiesRequest,
|
|
1290
|
+
ListActivitiesResponse,
|
|
1291
|
+
ListActivitiesError,
|
|
1292
|
+
SlackOpContext,
|
|
1293
|
+
unknown
|
|
1294
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1295
|
+
() => ({
|
|
1296
|
+
input: ListActivitiesRequest,
|
|
1297
|
+
output: ListActivitiesResponse,
|
|
1298
|
+
errors: [SlackError, SlackRateLimited],
|
|
1299
|
+
protocol: SlackProtocol,
|
|
1300
|
+
retry: Retry.Retry,
|
|
1301
|
+
pagination: {
|
|
1302
|
+
mode: "cursor",
|
|
1303
|
+
inputToken: "cursor",
|
|
1304
|
+
outputToken: "response_metadata.next_cursor",
|
|
1305
|
+
items: "activities",
|
|
1306
|
+
pageSize: "limit",
|
|
1307
|
+
} as const,
|
|
1308
|
+
}),
|
|
1309
|
+
slackPaginate,
|
|
1310
|
+
) as any;
|
|
1311
|
+
|
|
1312
|
+
export type ListEventAuthorizationsError = SlackOpError;
|
|
1313
|
+
/** 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 */
|
|
1314
|
+
export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
1315
|
+
ListEventAuthorizationsRequest,
|
|
1316
|
+
ListEventAuthorizationsResponse,
|
|
1317
|
+
ListEventAuthorizationsError,
|
|
1318
|
+
SlackOpContext,
|
|
1319
|
+
ListEventAuthorizationsResponseAuthorizationsItem
|
|
1320
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1321
|
+
() => ({
|
|
1322
|
+
input: ListEventAuthorizationsRequest,
|
|
1323
|
+
output: ListEventAuthorizationsResponse,
|
|
1324
|
+
errors: [SlackError, SlackRateLimited],
|
|
1325
|
+
protocol: SlackProtocol,
|
|
1326
|
+
retry: Retry.Retry,
|
|
1327
|
+
pagination: {
|
|
1328
|
+
mode: "cursor",
|
|
1329
|
+
inputToken: "cursor",
|
|
1330
|
+
outputToken: "response_metadata.next_cursor",
|
|
1331
|
+
items: "authorizations",
|
|
1332
|
+
pageSize: "limit",
|
|
1333
|
+
} as const,
|
|
1334
|
+
}),
|
|
1335
|
+
slackPaginate,
|
|
1336
|
+
) as any;
|
|
1337
|
+
|
|
1338
|
+
export type PutDatastoreError = SlackOpError;
|
|
1339
|
+
/** 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 */
|
|
1340
|
+
export const putDatastore: API.OperationMethod<
|
|
1341
|
+
PutDatastoreRequest,
|
|
1342
|
+
PutDatastoreResponse,
|
|
1343
|
+
PutDatastoreError,
|
|
1344
|
+
SlackOpContext
|
|
1345
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1346
|
+
input: PutDatastoreRequest,
|
|
1347
|
+
output: PutDatastoreResponse,
|
|
1348
|
+
errors: [SlackError, SlackRateLimited],
|
|
1349
|
+
protocol: SlackProtocol,
|
|
1350
|
+
retry: Retry.Retry,
|
|
1351
|
+
}));
|
|
1352
|
+
|
|
1353
|
+
export type SetIconError = SlackOpError;
|
|
1354
|
+
/** Sets the app icon Required scopes — user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `error_bad_format` — Icon must be a valid image file. - `icon_not_accessible` — The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` — App does not exist. - `invalid_app_id` — App ID is not valid. - `invalid_icon_size` — Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` — Only one of `URL` or `file` can be defined. - `missing_arguments` — One of `URL` or `file` must be provided. - `no_permission` — User does not have required permissions for app. - `unable_to_open_file` — Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
1355
|
+
export const setIcon: API.OperationMethod<
|
|
1356
|
+
SetIconRequest,
|
|
1357
|
+
SetIconResponse,
|
|
1358
|
+
SetIconError,
|
|
1359
|
+
SlackOpContext
|
|
1360
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1361
|
+
input: SetIconRequest,
|
|
1362
|
+
output: SetIconResponse,
|
|
1363
|
+
errors: [SlackError, SlackRateLimited],
|
|
1364
|
+
protocol: SlackProtocol,
|
|
1365
|
+
retry: Retry.Retry,
|
|
1366
|
+
}));
|
|
1367
|
+
|
|
1368
|
+
export type UninstallAppError = SlackOpError;
|
|
1369
|
+
/** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `client_id_token_mismatch` — The provided client ID and token do not belong to the same app. - `internal_error` — Internal error uninstall - `invalid_client_id` — Value passed for `client_id` was invalid. - `no_permission` — Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
|
|
1370
|
+
export const uninstallApp: API.OperationMethod<
|
|
1371
|
+
UninstallAppRequest,
|
|
1372
|
+
UninstallAppResponse,
|
|
1373
|
+
UninstallAppError,
|
|
1374
|
+
SlackOpContext
|
|
1375
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1376
|
+
input: UninstallAppRequest,
|
|
1377
|
+
output: UninstallAppResponse,
|
|
1378
|
+
errors: [SlackError, SlackRateLimited],
|
|
1379
|
+
protocol: SlackProtocol,
|
|
1380
|
+
retry: Retry.Retry,
|
|
1381
|
+
}));
|
|
1382
|
+
|
|
1383
|
+
export type UpdateDatastoreError = SlackOpError;
|
|
1384
|
+
/** 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 */
|
|
1385
|
+
export const updateDatastore: API.OperationMethod<
|
|
1386
|
+
UpdateDatastoreRequest,
|
|
1387
|
+
UpdateDatastoreResponse,
|
|
1388
|
+
UpdateDatastoreError,
|
|
1389
|
+
SlackOpContext
|
|
1390
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1391
|
+
input: UpdateDatastoreRequest,
|
|
1392
|
+
output: UpdateDatastoreResponse,
|
|
1393
|
+
errors: [SlackError, SlackRateLimited],
|
|
1394
|
+
protocol: SlackProtocol,
|
|
1395
|
+
retry: Retry.Retry,
|
|
1396
|
+
}));
|
|
1397
|
+
|
|
1398
|
+
export type UpdateManifestError = SlackOpError;
|
|
1399
|
+
/** 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 */
|
|
1400
|
+
export const updateManifest: API.OperationMethod<
|
|
1401
|
+
UpdateManifestRequest,
|
|
1402
|
+
UpdateManifestResponse,
|
|
1403
|
+
UpdateManifestError,
|
|
1404
|
+
SlackOpContext
|
|
1405
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1406
|
+
input: UpdateManifestRequest,
|
|
1407
|
+
output: UpdateManifestResponse,
|
|
1408
|
+
errors: [SlackError, SlackRateLimited],
|
|
1409
|
+
protocol: SlackProtocol,
|
|
1410
|
+
retry: Retry.Retry,
|
|
1411
|
+
}));
|
|
1412
|
+
|
|
1413
|
+
export type UpdateUserConnectionError = SlackOpError;
|
|
1414
|
+
/** Updates the connection status between a user and an app. Required scopes — user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The app was not found. - `invalid_auth` — The token doesn't have access to this endpoint. - `app_not_subscribed` — The app is not subscribed to the required events. - `user_not_found` — Value passed for `user_id` was invalid. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
1415
|
+
export const updateUserConnection: API.OperationMethod<
|
|
1416
|
+
UpdateUserConnectionRequest,
|
|
1417
|
+
UpdateUserConnectionResponse,
|
|
1418
|
+
UpdateUserConnectionError,
|
|
1419
|
+
SlackOpContext
|
|
1420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1421
|
+
input: UpdateUserConnectionRequest,
|
|
1422
|
+
output: UpdateUserConnectionResponse,
|
|
1423
|
+
errors: [SlackError, SlackRateLimited],
|
|
1424
|
+
protocol: SlackProtocol,
|
|
1425
|
+
retry: Retry.Retry,
|
|
1426
|
+
}));
|
|
1427
|
+
|
|
1428
|
+
export type ValidateManifestError = SlackOpError;
|
|
1429
|
+
/** 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 */
|
|
1430
|
+
export const validateManifest: API.OperationMethod<
|
|
1431
|
+
ValidateManifestRequest,
|
|
1432
|
+
ValidateManifestResponse,
|
|
1433
|
+
ValidateManifestError,
|
|
1434
|
+
SlackOpContext
|
|
1435
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1436
|
+
input: ValidateManifestRequest,
|
|
1437
|
+
output: ValidateManifestResponse,
|
|
1438
|
+
errors: [SlackError, SlackRateLimited],
|
|
1439
|
+
protocol: SlackProtocol,
|
|
1440
|
+
retry: Retry.Retry,
|
|
1441
|
+
}));
|