@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,642 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
SlackProtocol,
|
|
7
|
+
type SlackOpError,
|
|
8
|
+
type SlackOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { SlackOpError, SlackOpContext };
|
|
14
|
+
|
|
15
|
+
/** List of encoded user IDs */
|
|
16
|
+
export type AddDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
17
|
+
export const AddDistributionsPermissionsRequestUserIdsList =
|
|
18
|
+
/*@__PURE__*/ S.Array(
|
|
19
|
+
S.String,
|
|
20
|
+
) as any as S.Schema<AddDistributionsPermissionsRequestUserIdsList>;
|
|
21
|
+
|
|
22
|
+
export interface AddDistributionsPermissionsRequest {
|
|
23
|
+
/** The encoded ID of the function */
|
|
24
|
+
function_id?: string;
|
|
25
|
+
/** The callback ID defined in the function's definition file */
|
|
26
|
+
function_callback_id?: string;
|
|
27
|
+
/** The encoded ID of the app */
|
|
28
|
+
function_app_id?: string;
|
|
29
|
+
/** List of encoded user IDs */
|
|
30
|
+
user_ids?: AddDistributionsPermissionsRequestUserIdsList;
|
|
31
|
+
}
|
|
32
|
+
export const AddDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
33
|
+
S.Struct({
|
|
34
|
+
function_id: S.optional(S.String),
|
|
35
|
+
function_callback_id: S.optional(S.String),
|
|
36
|
+
function_app_id: S.optional(S.String),
|
|
37
|
+
user_ids: S.optional(AddDistributionsPermissionsRequestUserIdsList),
|
|
38
|
+
}).pipe(
|
|
39
|
+
T.Http({
|
|
40
|
+
method: "POST",
|
|
41
|
+
uri: "/functions.distributions.permissions.add",
|
|
42
|
+
code: 200,
|
|
43
|
+
}),
|
|
44
|
+
),
|
|
45
|
+
).annotate({
|
|
46
|
+
identifier: "AddDistributionsPermissionsRequest",
|
|
47
|
+
}) as any as S.Schema<AddDistributionsPermissionsRequest>;
|
|
48
|
+
|
|
49
|
+
export type AddDistributionsPermissionsResponsePermissionType =
|
|
50
|
+
| "everyone"
|
|
51
|
+
| "app_collaborators"
|
|
52
|
+
| "named_entities"
|
|
53
|
+
| "system";
|
|
54
|
+
export const AddDistributionsPermissionsResponsePermissionType = S.String;
|
|
55
|
+
|
|
56
|
+
export interface AddDistributionsPermissionsResponseUsersItem {
|
|
57
|
+
user_id?: string;
|
|
58
|
+
username?: string;
|
|
59
|
+
email?: string;
|
|
60
|
+
}
|
|
61
|
+
export const AddDistributionsPermissionsResponseUsersItem =
|
|
62
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.Struct({
|
|
64
|
+
user_id: S.optional(S.String),
|
|
65
|
+
username: S.optional(S.String),
|
|
66
|
+
email: S.optional(S.String),
|
|
67
|
+
}),
|
|
68
|
+
).annotate({
|
|
69
|
+
identifier: "AddDistributionsPermissionsResponseUsersItem",
|
|
70
|
+
}) as any as S.Schema<AddDistributionsPermissionsResponseUsersItem>;
|
|
71
|
+
|
|
72
|
+
export type AddDistributionsPermissionsResponseUsersList =
|
|
73
|
+
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
74
|
+
export const AddDistributionsPermissionsResponseUsersList =
|
|
75
|
+
/*@__PURE__*/ S.Array(
|
|
76
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
77
|
+
) as any as S.Schema<AddDistributionsPermissionsResponseUsersList>;
|
|
78
|
+
|
|
79
|
+
export interface AddDistributionsPermissionsResponse {
|
|
80
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
81
|
+
ok: boolean;
|
|
82
|
+
permission_type: AddDistributionsPermissionsResponsePermissionType;
|
|
83
|
+
users?: AddDistributionsPermissionsResponseUsersList;
|
|
84
|
+
}
|
|
85
|
+
export const AddDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
86
|
+
S.Struct({
|
|
87
|
+
ok: S.Boolean,
|
|
88
|
+
permission_type: AddDistributionsPermissionsResponsePermissionType,
|
|
89
|
+
users: S.optional(AddDistributionsPermissionsResponseUsersList),
|
|
90
|
+
}),
|
|
91
|
+
).annotate({
|
|
92
|
+
identifier: "AddDistributionsPermissionsResponse",
|
|
93
|
+
}) as any as S.Schema<AddDistributionsPermissionsResponse>;
|
|
94
|
+
|
|
95
|
+
export interface CompleteErrorRequest {
|
|
96
|
+
/** Context identifier that maps to the executed function */
|
|
97
|
+
function_execution_id: string;
|
|
98
|
+
/** A human-readable error message that contains information about why the function failed to complete */
|
|
99
|
+
error: string;
|
|
100
|
+
}
|
|
101
|
+
export const CompleteErrorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
S.Struct({
|
|
103
|
+
function_execution_id: S.String,
|
|
104
|
+
error: S.String,
|
|
105
|
+
}).pipe(
|
|
106
|
+
T.Http({ method: "POST", uri: "/functions.completeError", code: 200 }),
|
|
107
|
+
),
|
|
108
|
+
).annotate({
|
|
109
|
+
identifier: "CompleteErrorRequest",
|
|
110
|
+
}) as any as S.Schema<CompleteErrorRequest>;
|
|
111
|
+
|
|
112
|
+
export interface CompleteErrorResponse {
|
|
113
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
114
|
+
ok: boolean;
|
|
115
|
+
}
|
|
116
|
+
export const CompleteErrorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
117
|
+
S.Struct({
|
|
118
|
+
ok: S.Boolean,
|
|
119
|
+
}),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "CompleteErrorResponse",
|
|
122
|
+
}) as any as S.Schema<CompleteErrorResponse>;
|
|
123
|
+
|
|
124
|
+
/** A JSON-based object that conforms to the [output parameters](https://docs.slack.dev/deno-slack-sdk/guides/creating-custom-functions#input-output) schema for the custom function defined in the manifest */
|
|
125
|
+
export type CompleteSuccessRequestOutputsMap = {
|
|
126
|
+
[key: string]: unknown | undefined;
|
|
127
|
+
};
|
|
128
|
+
export const CompleteSuccessRequestOutputsMap = /*@__PURE__*/ S.Record(
|
|
129
|
+
S.String,
|
|
130
|
+
S.Unknown,
|
|
131
|
+
) as any as S.Schema<CompleteSuccessRequestOutputsMap>;
|
|
132
|
+
|
|
133
|
+
export interface CompleteSuccessRequest {
|
|
134
|
+
/** Context identifier that maps to the executed function */
|
|
135
|
+
function_execution_id: string;
|
|
136
|
+
/** A JSON-based object that conforms to the [output parameters](https://docs.slack.dev/deno-slack-sdk/guides/creating-custom-functions#input-output) schema for the custom function defined in the manifest */
|
|
137
|
+
outputs: CompleteSuccessRequestOutputsMap;
|
|
138
|
+
}
|
|
139
|
+
export const CompleteSuccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
140
|
+
S.Struct({
|
|
141
|
+
function_execution_id: S.String,
|
|
142
|
+
outputs: CompleteSuccessRequestOutputsMap,
|
|
143
|
+
}).pipe(
|
|
144
|
+
T.Http({ method: "POST", uri: "/functions.completeSuccess", code: 200 }),
|
|
145
|
+
),
|
|
146
|
+
).annotate({
|
|
147
|
+
identifier: "CompleteSuccessRequest",
|
|
148
|
+
}) as any as S.Schema<CompleteSuccessRequest>;
|
|
149
|
+
|
|
150
|
+
export interface CompleteSuccessResponse {
|
|
151
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
152
|
+
ok: boolean;
|
|
153
|
+
}
|
|
154
|
+
export const CompleteSuccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
155
|
+
S.Struct({
|
|
156
|
+
ok: S.Boolean,
|
|
157
|
+
}),
|
|
158
|
+
).annotate({
|
|
159
|
+
identifier: "CompleteSuccessResponse",
|
|
160
|
+
}) as any as S.Schema<CompleteSuccessResponse>;
|
|
161
|
+
|
|
162
|
+
export interface ExportWorkflowsStepsResponseRequest {
|
|
163
|
+
/** The workflow ID, starts with Wf* */
|
|
164
|
+
workflow_id?: string;
|
|
165
|
+
/** The workflow encoded ID or workflow reference */
|
|
166
|
+
workflow?: string;
|
|
167
|
+
/** The app tied to the workflow reference. */
|
|
168
|
+
workflow_app_id?: string;
|
|
169
|
+
/** The ID of the OpenForm step to export. */
|
|
170
|
+
step_id: string;
|
|
171
|
+
}
|
|
172
|
+
export const ExportWorkflowsStepsResponseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
173
|
+
S.Struct({
|
|
174
|
+
workflow_id: S.optional(S.String),
|
|
175
|
+
workflow: S.optional(S.String),
|
|
176
|
+
workflow_app_id: S.optional(S.String),
|
|
177
|
+
step_id: S.String,
|
|
178
|
+
}).pipe(
|
|
179
|
+
T.Http({
|
|
180
|
+
method: "POST",
|
|
181
|
+
uri: "/functions.workflows.steps.responses.export",
|
|
182
|
+
code: 200,
|
|
183
|
+
}),
|
|
184
|
+
),
|
|
185
|
+
).annotate({
|
|
186
|
+
identifier: "ExportWorkflowsStepsResponseRequest",
|
|
187
|
+
}) as any as S.Schema<ExportWorkflowsStepsResponseRequest>;
|
|
188
|
+
|
|
189
|
+
export interface ExportWorkflowsStepsResponseResponse {
|
|
190
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
191
|
+
ok: boolean;
|
|
192
|
+
}
|
|
193
|
+
export const ExportWorkflowsStepsResponseResponse = /*@__PURE__*/ S.suspend(
|
|
194
|
+
() =>
|
|
195
|
+
S.Struct({
|
|
196
|
+
ok: S.Boolean,
|
|
197
|
+
}),
|
|
198
|
+
).annotate({
|
|
199
|
+
identifier: "ExportWorkflowsStepsResponseResponse",
|
|
200
|
+
}) as any as S.Schema<ExportWorkflowsStepsResponseResponse>;
|
|
201
|
+
|
|
202
|
+
export interface ListDistributionsPermissionsRequest {
|
|
203
|
+
/** The encoded ID of the function */
|
|
204
|
+
function_id?: string;
|
|
205
|
+
/** The callback ID defined in the function's definition file */
|
|
206
|
+
function_callback_id?: string;
|
|
207
|
+
/** The encoded ID of the app */
|
|
208
|
+
function_app_id?: string;
|
|
209
|
+
}
|
|
210
|
+
export const ListDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
211
|
+
S.Struct({
|
|
212
|
+
function_id: S.optional(S.String),
|
|
213
|
+
function_callback_id: S.optional(S.String),
|
|
214
|
+
function_app_id: S.optional(S.String),
|
|
215
|
+
}).pipe(
|
|
216
|
+
T.Http({
|
|
217
|
+
method: "POST",
|
|
218
|
+
uri: "/functions.distributions.permissions.list",
|
|
219
|
+
code: 200,
|
|
220
|
+
}),
|
|
221
|
+
),
|
|
222
|
+
).annotate({
|
|
223
|
+
identifier: "ListDistributionsPermissionsRequest",
|
|
224
|
+
}) as any as S.Schema<ListDistributionsPermissionsRequest>;
|
|
225
|
+
|
|
226
|
+
export type ListDistributionsPermissionsResponsePermissionType =
|
|
227
|
+
| "everyone"
|
|
228
|
+
| "app_collaborators"
|
|
229
|
+
| "named_entities"
|
|
230
|
+
| "system";
|
|
231
|
+
export const ListDistributionsPermissionsResponsePermissionType = S.String;
|
|
232
|
+
|
|
233
|
+
export type ListDistributionsPermissionsResponseUsersItem =
|
|
234
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
235
|
+
export const ListDistributionsPermissionsResponseUsersItem =
|
|
236
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
237
|
+
|
|
238
|
+
export type ListDistributionsPermissionsResponseUsersList =
|
|
239
|
+
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
240
|
+
export const ListDistributionsPermissionsResponseUsersList =
|
|
241
|
+
/*@__PURE__*/ S.Array(
|
|
242
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
243
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseUsersList>;
|
|
244
|
+
|
|
245
|
+
/** List of team IDs allowed with named_entities permission. */
|
|
246
|
+
export type ListDistributionsPermissionsResponseTeamIdsList = Array<string>;
|
|
247
|
+
export const ListDistributionsPermissionsResponseTeamIdsList =
|
|
248
|
+
/*@__PURE__*/ S.Array(
|
|
249
|
+
S.String,
|
|
250
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseTeamIdsList>;
|
|
251
|
+
|
|
252
|
+
/** List of org IDs allowed with named_entities permission. */
|
|
253
|
+
export type ListDistributionsPermissionsResponseOrgIdsList = Array<string>;
|
|
254
|
+
export const ListDistributionsPermissionsResponseOrgIdsList =
|
|
255
|
+
/*@__PURE__*/ S.Array(
|
|
256
|
+
S.String,
|
|
257
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseOrgIdsList>;
|
|
258
|
+
|
|
259
|
+
export interface ListDistributionsPermissionsResponse {
|
|
260
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
261
|
+
ok: boolean;
|
|
262
|
+
permission_type: ListDistributionsPermissionsResponsePermissionType;
|
|
263
|
+
users?: ListDistributionsPermissionsResponseUsersList;
|
|
264
|
+
/** List of team IDs allowed with named_entities permission. */
|
|
265
|
+
team_ids?: ListDistributionsPermissionsResponseTeamIdsList;
|
|
266
|
+
/** List of org IDs allowed with named_entities permission. */
|
|
267
|
+
org_ids?: ListDistributionsPermissionsResponseOrgIdsList;
|
|
268
|
+
}
|
|
269
|
+
export const ListDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(
|
|
270
|
+
() =>
|
|
271
|
+
S.Struct({
|
|
272
|
+
ok: S.Boolean,
|
|
273
|
+
permission_type: ListDistributionsPermissionsResponsePermissionType,
|
|
274
|
+
users: S.optional(ListDistributionsPermissionsResponseUsersList),
|
|
275
|
+
team_ids: S.optional(ListDistributionsPermissionsResponseTeamIdsList),
|
|
276
|
+
org_ids: S.optional(ListDistributionsPermissionsResponseOrgIdsList),
|
|
277
|
+
}),
|
|
278
|
+
).annotate({
|
|
279
|
+
identifier: "ListDistributionsPermissionsResponse",
|
|
280
|
+
}) as any as S.Schema<ListDistributionsPermissionsResponse>;
|
|
281
|
+
|
|
282
|
+
export interface ListWorkflowsStepsRequest {
|
|
283
|
+
/** The workflow ID, starts with Wf* */
|
|
284
|
+
workflow_id?: string;
|
|
285
|
+
/** The workflow encoded ID or workflow reference */
|
|
286
|
+
workflow?: string;
|
|
287
|
+
/** The app tied to the workflow reference. */
|
|
288
|
+
workflow_app_id?: string;
|
|
289
|
+
/** The ID of the function to query */
|
|
290
|
+
function_id: string;
|
|
291
|
+
}
|
|
292
|
+
export const ListWorkflowsStepsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
293
|
+
S.Struct({
|
|
294
|
+
workflow_id: S.optional(S.String),
|
|
295
|
+
workflow: S.optional(S.String),
|
|
296
|
+
workflow_app_id: S.optional(S.String),
|
|
297
|
+
function_id: S.String,
|
|
298
|
+
}).pipe(
|
|
299
|
+
T.Http({
|
|
300
|
+
method: "POST",
|
|
301
|
+
uri: "/functions.workflows.steps.list",
|
|
302
|
+
code: 200,
|
|
303
|
+
}),
|
|
304
|
+
),
|
|
305
|
+
).annotate({
|
|
306
|
+
identifier: "ListWorkflowsStepsRequest",
|
|
307
|
+
}) as any as S.Schema<ListWorkflowsStepsRequest>;
|
|
308
|
+
|
|
309
|
+
export type ListWorkflowsStepsResponseStepsVersionsList = Array<unknown>;
|
|
310
|
+
export const ListWorkflowsStepsResponseStepsVersionsList =
|
|
311
|
+
/*@__PURE__*/ S.Array(
|
|
312
|
+
S.Unknown,
|
|
313
|
+
) as any as S.Schema<ListWorkflowsStepsResponseStepsVersionsList>;
|
|
314
|
+
|
|
315
|
+
export interface ListWorkflowsStepsResponse {
|
|
316
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
317
|
+
ok: boolean;
|
|
318
|
+
steps_versions: ListWorkflowsStepsResponseStepsVersionsList;
|
|
319
|
+
}
|
|
320
|
+
export const ListWorkflowsStepsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
321
|
+
S.Struct({
|
|
322
|
+
ok: S.Boolean,
|
|
323
|
+
steps_versions: ListWorkflowsStepsResponseStepsVersionsList,
|
|
324
|
+
}),
|
|
325
|
+
).annotate({
|
|
326
|
+
identifier: "ListWorkflowsStepsResponse",
|
|
327
|
+
}) as any as S.Schema<ListWorkflowsStepsResponse>;
|
|
328
|
+
|
|
329
|
+
/** List of encoded user IDs */
|
|
330
|
+
export type RemoveDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
331
|
+
export const RemoveDistributionsPermissionsRequestUserIdsList =
|
|
332
|
+
/*@__PURE__*/ S.Array(
|
|
333
|
+
S.String,
|
|
334
|
+
) as any as S.Schema<RemoveDistributionsPermissionsRequestUserIdsList>;
|
|
335
|
+
|
|
336
|
+
export interface RemoveDistributionsPermissionsRequest {
|
|
337
|
+
/** The encoded ID of the function */
|
|
338
|
+
function_id?: string;
|
|
339
|
+
/** The callback ID defined in the function's definition file */
|
|
340
|
+
function_callback_id?: string;
|
|
341
|
+
/** The encoded ID of the app. */
|
|
342
|
+
function_app_id?: string;
|
|
343
|
+
/** List of encoded user IDs */
|
|
344
|
+
user_ids?: RemoveDistributionsPermissionsRequestUserIdsList;
|
|
345
|
+
}
|
|
346
|
+
export const RemoveDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(
|
|
347
|
+
() =>
|
|
348
|
+
S.Struct({
|
|
349
|
+
function_id: S.optional(S.String),
|
|
350
|
+
function_callback_id: S.optional(S.String),
|
|
351
|
+
function_app_id: S.optional(S.String),
|
|
352
|
+
user_ids: S.optional(RemoveDistributionsPermissionsRequestUserIdsList),
|
|
353
|
+
}).pipe(
|
|
354
|
+
T.Http({
|
|
355
|
+
method: "POST",
|
|
356
|
+
uri: "/functions.distributions.permissions.remove",
|
|
357
|
+
code: 200,
|
|
358
|
+
}),
|
|
359
|
+
),
|
|
360
|
+
).annotate({
|
|
361
|
+
identifier: "RemoveDistributionsPermissionsRequest",
|
|
362
|
+
}) as any as S.Schema<RemoveDistributionsPermissionsRequest>;
|
|
363
|
+
|
|
364
|
+
export type RemoveDistributionsPermissionsResponsePermissionType =
|
|
365
|
+
| "everyone"
|
|
366
|
+
| "app_collaborators"
|
|
367
|
+
| "named_entities"
|
|
368
|
+
| "system";
|
|
369
|
+
export const RemoveDistributionsPermissionsResponsePermissionType = S.String;
|
|
370
|
+
|
|
371
|
+
export type RemoveDistributionsPermissionsResponseUsersItem =
|
|
372
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
373
|
+
export const RemoveDistributionsPermissionsResponseUsersItem =
|
|
374
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
375
|
+
|
|
376
|
+
export type RemoveDistributionsPermissionsResponseUsersList =
|
|
377
|
+
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
378
|
+
export const RemoveDistributionsPermissionsResponseUsersList =
|
|
379
|
+
/*@__PURE__*/ S.Array(
|
|
380
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
381
|
+
) as any as S.Schema<RemoveDistributionsPermissionsResponseUsersList>;
|
|
382
|
+
|
|
383
|
+
export interface RemoveDistributionsPermissionsResponse {
|
|
384
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
385
|
+
ok: boolean;
|
|
386
|
+
permission_type: RemoveDistributionsPermissionsResponsePermissionType;
|
|
387
|
+
users?: RemoveDistributionsPermissionsResponseUsersList;
|
|
388
|
+
}
|
|
389
|
+
export const RemoveDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(
|
|
390
|
+
() =>
|
|
391
|
+
S.Struct({
|
|
392
|
+
ok: S.Boolean,
|
|
393
|
+
permission_type: RemoveDistributionsPermissionsResponsePermissionType,
|
|
394
|
+
users: S.optional(RemoveDistributionsPermissionsResponseUsersList),
|
|
395
|
+
}),
|
|
396
|
+
).annotate({
|
|
397
|
+
identifier: "RemoveDistributionsPermissionsResponse",
|
|
398
|
+
}) as any as S.Schema<RemoveDistributionsPermissionsResponse>;
|
|
399
|
+
|
|
400
|
+
/** The type of permission that defines how the function can be distributed */
|
|
401
|
+
export type SetDistributionsPermissionsRequestPermissionType =
|
|
402
|
+
| "everyone"
|
|
403
|
+
| "app_collaborators"
|
|
404
|
+
| "named_entities"
|
|
405
|
+
| "system";
|
|
406
|
+
export const SetDistributionsPermissionsRequestPermissionType = S.String;
|
|
407
|
+
|
|
408
|
+
/** List of encoded user IDs */
|
|
409
|
+
export type SetDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
410
|
+
export const SetDistributionsPermissionsRequestUserIdsList =
|
|
411
|
+
/*@__PURE__*/ S.Array(
|
|
412
|
+
S.String,
|
|
413
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestUserIdsList>;
|
|
414
|
+
|
|
415
|
+
/** List of team IDs to allow for named_entities permission */
|
|
416
|
+
export type SetDistributionsPermissionsRequestTeamIdsList = Array<string>;
|
|
417
|
+
export const SetDistributionsPermissionsRequestTeamIdsList =
|
|
418
|
+
/*@__PURE__*/ S.Array(
|
|
419
|
+
S.String,
|
|
420
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestTeamIdsList>;
|
|
421
|
+
|
|
422
|
+
/** List of org IDs to allow for named_entities permission */
|
|
423
|
+
export type SetDistributionsPermissionsRequestOrgIdsList = Array<string>;
|
|
424
|
+
export const SetDistributionsPermissionsRequestOrgIdsList =
|
|
425
|
+
/*@__PURE__*/ S.Array(
|
|
426
|
+
S.String,
|
|
427
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestOrgIdsList>;
|
|
428
|
+
|
|
429
|
+
export interface SetDistributionsPermissionsRequest {
|
|
430
|
+
/** The encoded ID of the function */
|
|
431
|
+
function_id?: string;
|
|
432
|
+
/** The callback ID defined in the function's definition file */
|
|
433
|
+
function_callback_id?: string;
|
|
434
|
+
/** The encoded ID of the app */
|
|
435
|
+
function_app_id?: string;
|
|
436
|
+
/** The type of permission that defines how the function can be distributed */
|
|
437
|
+
permission_type?:
|
|
438
|
+
| SetDistributionsPermissionsRequestPermissionType
|
|
439
|
+
| (string & {});
|
|
440
|
+
/** List of encoded user IDs */
|
|
441
|
+
user_ids?: SetDistributionsPermissionsRequestUserIdsList;
|
|
442
|
+
/** List of team IDs to allow for named_entities permission */
|
|
443
|
+
team_ids?: SetDistributionsPermissionsRequestTeamIdsList;
|
|
444
|
+
/** List of org IDs to allow for named_entities permission */
|
|
445
|
+
org_ids?: SetDistributionsPermissionsRequestOrgIdsList;
|
|
446
|
+
}
|
|
447
|
+
export const SetDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
448
|
+
S.Struct({
|
|
449
|
+
function_id: S.optional(S.String),
|
|
450
|
+
function_callback_id: S.optional(S.String),
|
|
451
|
+
function_app_id: S.optional(S.String),
|
|
452
|
+
permission_type: S.optional(
|
|
453
|
+
SetDistributionsPermissionsRequestPermissionType,
|
|
454
|
+
),
|
|
455
|
+
user_ids: S.optional(SetDistributionsPermissionsRequestUserIdsList),
|
|
456
|
+
team_ids: S.optional(SetDistributionsPermissionsRequestTeamIdsList),
|
|
457
|
+
org_ids: S.optional(SetDistributionsPermissionsRequestOrgIdsList),
|
|
458
|
+
}).pipe(
|
|
459
|
+
T.Http({
|
|
460
|
+
method: "POST",
|
|
461
|
+
uri: "/functions.distributions.permissions.set",
|
|
462
|
+
code: 200,
|
|
463
|
+
}),
|
|
464
|
+
),
|
|
465
|
+
).annotate({
|
|
466
|
+
identifier: "SetDistributionsPermissionsRequest",
|
|
467
|
+
}) as any as S.Schema<SetDistributionsPermissionsRequest>;
|
|
468
|
+
|
|
469
|
+
export type SetDistributionsPermissionsResponsePermissionType =
|
|
470
|
+
| "everyone"
|
|
471
|
+
| "app_collaborators"
|
|
472
|
+
| "named_entities"
|
|
473
|
+
| "system";
|
|
474
|
+
export const SetDistributionsPermissionsResponsePermissionType = S.String;
|
|
475
|
+
|
|
476
|
+
export type SetDistributionsPermissionsResponseUsersItem =
|
|
477
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
478
|
+
export const SetDistributionsPermissionsResponseUsersItem =
|
|
479
|
+
AddDistributionsPermissionsResponseUsersItem;
|
|
480
|
+
|
|
481
|
+
export type SetDistributionsPermissionsResponseUsersList =
|
|
482
|
+
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
483
|
+
export const SetDistributionsPermissionsResponseUsersList =
|
|
484
|
+
/*@__PURE__*/ S.Array(
|
|
485
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
486
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseUsersList>;
|
|
487
|
+
|
|
488
|
+
/** List of team IDs allowed with named_entities permission. */
|
|
489
|
+
export type SetDistributionsPermissionsResponseTeamIdsList = Array<string>;
|
|
490
|
+
export const SetDistributionsPermissionsResponseTeamIdsList =
|
|
491
|
+
/*@__PURE__*/ S.Array(
|
|
492
|
+
S.String,
|
|
493
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseTeamIdsList>;
|
|
494
|
+
|
|
495
|
+
/** List of org IDs allowed with named_entities permission. */
|
|
496
|
+
export type SetDistributionsPermissionsResponseOrgIdsList = Array<string>;
|
|
497
|
+
export const SetDistributionsPermissionsResponseOrgIdsList =
|
|
498
|
+
/*@__PURE__*/ S.Array(
|
|
499
|
+
S.String,
|
|
500
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseOrgIdsList>;
|
|
501
|
+
|
|
502
|
+
export interface SetDistributionsPermissionsResponse {
|
|
503
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
504
|
+
ok: boolean;
|
|
505
|
+
permission_type: SetDistributionsPermissionsResponsePermissionType;
|
|
506
|
+
users?: SetDistributionsPermissionsResponseUsersList;
|
|
507
|
+
/** List of team IDs allowed with named_entities permission. */
|
|
508
|
+
team_ids?: SetDistributionsPermissionsResponseTeamIdsList;
|
|
509
|
+
/** List of org IDs allowed with named_entities permission. */
|
|
510
|
+
org_ids?: SetDistributionsPermissionsResponseOrgIdsList;
|
|
511
|
+
}
|
|
512
|
+
export const SetDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
513
|
+
S.Struct({
|
|
514
|
+
ok: S.Boolean,
|
|
515
|
+
permission_type: SetDistributionsPermissionsResponsePermissionType,
|
|
516
|
+
users: S.optional(SetDistributionsPermissionsResponseUsersList),
|
|
517
|
+
team_ids: S.optional(SetDistributionsPermissionsResponseTeamIdsList),
|
|
518
|
+
org_ids: S.optional(SetDistributionsPermissionsResponseOrgIdsList),
|
|
519
|
+
}),
|
|
520
|
+
).annotate({
|
|
521
|
+
identifier: "SetDistributionsPermissionsResponse",
|
|
522
|
+
}) as any as S.Schema<SetDistributionsPermissionsResponse>;
|
|
523
|
+
|
|
524
|
+
export type AddDistributionsPermissionsError = SlackOpError;
|
|
525
|
+
/** Grant users access to a custom slack function if its permission_type is set to named_entities Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `function_not_found` — This function does not exist. - `invalid_permission_type` — This function requires permission_type to be set as named_entities before adding users. - `user_not_found` — One or more of the named entities was not found. - `app_not_found` — This app does not exist. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.add */
|
|
526
|
+
export const addDistributionsPermissions: API.OperationMethod<
|
|
527
|
+
AddDistributionsPermissionsRequest,
|
|
528
|
+
AddDistributionsPermissionsResponse,
|
|
529
|
+
AddDistributionsPermissionsError,
|
|
530
|
+
SlackOpContext
|
|
531
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
532
|
+
input: AddDistributionsPermissionsRequest,
|
|
533
|
+
output: AddDistributionsPermissionsResponse,
|
|
534
|
+
errors: [SlackError, SlackRateLimited],
|
|
535
|
+
protocol: SlackProtocol,
|
|
536
|
+
retry: Retry.Retry,
|
|
537
|
+
}));
|
|
538
|
+
|
|
539
|
+
export type CompleteErrorError = SlackOpError;
|
|
540
|
+
/** Signal that a function failed to complete Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `function_execution_not_found` — The specified function execution cannot be found. - `access_denied` — This actor does not have access to this function execution. - `execution_not_in_running_state` — The function execution is no longer in a state to be completed. See https://docs.slack.dev/reference/methods/functions.completeError */
|
|
541
|
+
export const completeError: API.OperationMethod<
|
|
542
|
+
CompleteErrorRequest,
|
|
543
|
+
CompleteErrorResponse,
|
|
544
|
+
CompleteErrorError,
|
|
545
|
+
SlackOpContext
|
|
546
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
547
|
+
input: CompleteErrorRequest,
|
|
548
|
+
output: CompleteErrorResponse,
|
|
549
|
+
errors: [SlackError, SlackRateLimited],
|
|
550
|
+
protocol: SlackProtocol,
|
|
551
|
+
retry: Retry.Retry,
|
|
552
|
+
}));
|
|
553
|
+
|
|
554
|
+
export type CompleteSuccessError = SlackOpError;
|
|
555
|
+
/** Signal the successful completion of a function Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `function_execution_not_found` — The specified function execution cannot be found. - `access_denied` — This actor does not have access to this function execution. - `execution_not_in_running_state` — The function execution is no longer in a state to be completed. - `parameter_validation_failed` — There were problems when validating the outputs against the Function parameters. See API response for more details. See https://docs.slack.dev/reference/methods/functions.completeSuccess */
|
|
556
|
+
export const completeSuccess: API.OperationMethod<
|
|
557
|
+
CompleteSuccessRequest,
|
|
558
|
+
CompleteSuccessResponse,
|
|
559
|
+
CompleteSuccessError,
|
|
560
|
+
SlackOpContext
|
|
561
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
562
|
+
input: CompleteSuccessRequest,
|
|
563
|
+
output: CompleteSuccessResponse,
|
|
564
|
+
errors: [SlackError, SlackRateLimited],
|
|
565
|
+
protocol: SlackProtocol,
|
|
566
|
+
retry: Retry.Retry,
|
|
567
|
+
}));
|
|
568
|
+
|
|
569
|
+
export type ExportWorkflowsStepsResponseError = SlackOpError;
|
|
570
|
+
/** Download form responses of a workflow Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the functions on this team. - `workflows_export_csv_not_enabled` — Downloading form responses is not allowed. Admin pref needs to be enabled. - `unknown_workflow_id` — The passed in workflow_id is invalid. - `unknown_step_id` — The passed in step_id is invalid. - `invalid_arguments` — The arguments passed in are invalid. - `unknown_app_id` — The passed in workflow_app_id is invalid. See https://docs.slack.dev/reference/methods/functions.workflows.steps.responses.export */
|
|
571
|
+
export const exportWorkflowsStepsResponse: API.OperationMethod<
|
|
572
|
+
ExportWorkflowsStepsResponseRequest,
|
|
573
|
+
ExportWorkflowsStepsResponseResponse,
|
|
574
|
+
ExportWorkflowsStepsResponseError,
|
|
575
|
+
SlackOpContext
|
|
576
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
577
|
+
input: ExportWorkflowsStepsResponseRequest,
|
|
578
|
+
output: ExportWorkflowsStepsResponseResponse,
|
|
579
|
+
errors: [SlackError, SlackRateLimited],
|
|
580
|
+
protocol: SlackProtocol,
|
|
581
|
+
retry: Retry.Retry,
|
|
582
|
+
}));
|
|
583
|
+
|
|
584
|
+
export type ListDistributionsPermissionsError = SlackOpError;
|
|
585
|
+
/** List the access type of a custom slack function and include the users, team or org ids with access if its permission_type is set to named_entities Required scopes — configuration: `app_configurations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `function_not_found` — This function does not exist. - `user_not_found` — One or more of the named entities was not found. - `app_not_found` — This app does not exist. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.list */
|
|
586
|
+
export const listDistributionsPermissions: API.OperationMethod<
|
|
587
|
+
ListDistributionsPermissionsRequest,
|
|
588
|
+
ListDistributionsPermissionsResponse,
|
|
589
|
+
ListDistributionsPermissionsError,
|
|
590
|
+
SlackOpContext
|
|
591
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
592
|
+
input: ListDistributionsPermissionsRequest,
|
|
593
|
+
output: ListDistributionsPermissionsResponse,
|
|
594
|
+
errors: [SlackError, SlackRateLimited],
|
|
595
|
+
protocol: SlackProtocol,
|
|
596
|
+
retry: Retry.Retry,
|
|
597
|
+
}));
|
|
598
|
+
|
|
599
|
+
export type ListWorkflowsStepsError = SlackOpError;
|
|
600
|
+
/** List the steps of a specific function of a workflow's versions Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the functions on this team. - `unknown_workflow_id` — The passed in workflow_id is invalid. - `unknown_function_id` — The passed in function_id is invalid. - `invalid_arguments` — The arguments passed in are invalid. - `unknown_app_id` — The passed in workflow_app_id is invalid. - `missing_step_ids` — The passed in workflow is missing step IDs - `cannot_fetch_versions` — Encountered unexpected error while trying to fetch versions See https://docs.slack.dev/reference/methods/functions.workflows.steps.list */
|
|
601
|
+
export const listWorkflowsSteps: API.OperationMethod<
|
|
602
|
+
ListWorkflowsStepsRequest,
|
|
603
|
+
ListWorkflowsStepsResponse,
|
|
604
|
+
ListWorkflowsStepsError,
|
|
605
|
+
SlackOpContext
|
|
606
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
607
|
+
input: ListWorkflowsStepsRequest,
|
|
608
|
+
output: ListWorkflowsStepsResponse,
|
|
609
|
+
errors: [SlackError, SlackRateLimited],
|
|
610
|
+
protocol: SlackProtocol,
|
|
611
|
+
retry: Retry.Retry,
|
|
612
|
+
}));
|
|
613
|
+
|
|
614
|
+
export type RemoveDistributionsPermissionsError = SlackOpError;
|
|
615
|
+
/** Revoke user access to a custom slack function if permission_type set to named_entities Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `function_not_found` — This function does not exist. - `user_not_found` — One or more of the named entities was not found. - `invalid_permission_type` — This function requires permission_type to be set as named_entities before adding users. - `app_not_found` — This app does not exist. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.remove */
|
|
616
|
+
export const removeDistributionsPermissions: API.OperationMethod<
|
|
617
|
+
RemoveDistributionsPermissionsRequest,
|
|
618
|
+
RemoveDistributionsPermissionsResponse,
|
|
619
|
+
RemoveDistributionsPermissionsError,
|
|
620
|
+
SlackOpContext
|
|
621
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
622
|
+
input: RemoveDistributionsPermissionsRequest,
|
|
623
|
+
output: RemoveDistributionsPermissionsResponse,
|
|
624
|
+
errors: [SlackError, SlackRateLimited],
|
|
625
|
+
protocol: SlackProtocol,
|
|
626
|
+
retry: Retry.Retry,
|
|
627
|
+
}));
|
|
628
|
+
|
|
629
|
+
export type SetDistributionsPermissionsError = SlackOpError;
|
|
630
|
+
/** Set the access type of a custom slack function and define the users, team or org ids to be granted access if permission_type is set to named_entities Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `function_not_found` — This function does not exist. - `invalid_named_entities` — One or more of the named entities was not found - `invalid_permission_type` — This function requires permission_type to be set as named_entities before adding users. - `user_not_found` — One or more of the named entities was not found. - `app_not_found` — This app does not exist. - `permission_type_required` — `permission_type` is a required input. See https://docs.slack.dev/reference/methods/functions.distributions.permissions.set */
|
|
631
|
+
export const setDistributionsPermissions: API.OperationMethod<
|
|
632
|
+
SetDistributionsPermissionsRequest,
|
|
633
|
+
SetDistributionsPermissionsResponse,
|
|
634
|
+
SetDistributionsPermissionsError,
|
|
635
|
+
SlackOpContext
|
|
636
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
637
|
+
input: SetDistributionsPermissionsRequest,
|
|
638
|
+
output: SetDistributionsPermissionsResponse,
|
|
639
|
+
errors: [SlackError, SlackRateLimited],
|
|
640
|
+
protocol: SlackProtocol,
|
|
641
|
+
retry: Retry.Retry,
|
|
642
|
+
}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts. Do not edit.
|
|
2
|
+
export * as admin from "./admin.ts";
|
|
3
|
+
export * as api from "./api.ts";
|
|
4
|
+
export * as apps from "./apps.ts";
|
|
5
|
+
export * as assistant from "./assistant.ts";
|
|
6
|
+
export * as auth from "./auth.ts";
|
|
7
|
+
export * as blocks from "./blocks.ts";
|
|
8
|
+
export * as bookmarks from "./bookmarks.ts";
|
|
9
|
+
export * as bots from "./bots.ts";
|
|
10
|
+
export * as calls from "./calls.ts";
|
|
11
|
+
export * as canvases from "./canvases.ts";
|
|
12
|
+
export * as chat from "./chat.ts";
|
|
13
|
+
export * as conversations from "./conversations.ts";
|
|
14
|
+
export * as dialog from "./dialog.ts";
|
|
15
|
+
export * as dnd from "./dnd.ts";
|
|
16
|
+
export * as emoji from "./emoji.ts";
|
|
17
|
+
export * as entity from "./entity.ts";
|
|
18
|
+
export * as files from "./files.ts";
|
|
19
|
+
export * as functions from "./functions.ts";
|
|
20
|
+
export * as lists from "./lists.ts";
|
|
21
|
+
export * as migration from "./migration.ts";
|
|
22
|
+
export * as oauth from "./oauth.ts";
|
|
23
|
+
export * as openid from "./openid.ts";
|
|
24
|
+
export * as pins from "./pins.ts";
|
|
25
|
+
export * as reactions from "./reactions.ts";
|
|
26
|
+
export * as reminders from "./reminders.ts";
|
|
27
|
+
export * as rtm from "./rtm.ts";
|
|
28
|
+
export * as search from "./search.ts";
|
|
29
|
+
export * as stars from "./stars.ts";
|
|
30
|
+
export * as team from "./team.ts";
|
|
31
|
+
export * as tooling from "./tooling.ts";
|
|
32
|
+
export * as usergroups from "./usergroups.ts";
|
|
33
|
+
export * as users from "./users.ts";
|
|
34
|
+
export * as views from "./views.ts";
|
|
35
|
+
export * as workflows from "./workflows.ts";
|