@distilled.cloud/slack 1.0.0-rc.13 → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +12 -18
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +288 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +236 -29
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +417 -749
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +423 -0
- package/lib/services/agents.d.ts.map +1 -0
- package/lib/services/agents.js +315 -0
- package/lib/services/agents.js.map +1 -0
- package/lib/services/api.d.ts +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +4 -6
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +21 -3
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +65 -133
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -4
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +16 -38
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +2 -2
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +11 -28
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +5 -9
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -4
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +14 -30
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +7 -15
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +13 -33
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +22 -2
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +37 -48
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +29 -25
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +47 -95
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +10 -8
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +43 -115
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +5 -9
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +10 -24
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +6 -11
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +8 -20
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +5 -5
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +39 -109
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +28 -75
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/lists.d.ts +5 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +35 -146
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +5 -8
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +38 -2
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +67 -50
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +1 -1
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +7 -15
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +7 -15
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +2 -2
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +13 -29
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +13 -33
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +9 -21
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +13 -30
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +10 -20
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +25 -62
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +5 -9
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +8 -3
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +23 -51
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +2 -2
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +28 -81
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +11 -27
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -71
- package/lib/services/workflows.js.map +1 -1
- package/package.json +15 -11
- package/src/credentials.ts +8 -10
- package/src/errors.ts +17 -31
- package/src/index.ts +3 -7
- package/src/pagination.ts +2 -5
- package/src/protocol.test.ts +372 -0
- package/src/protocol.ts +34 -66
- package/src/retry.ts +4 -9
- package/src/services/admin.ts +1241 -1557
- package/src/services/agents.ts +853 -0
- package/src/services/api.ts +4 -10
- package/src/services/apps.ts +146 -243
- package/src/services/assistant.ts +93 -144
- package/src/services/auth.ts +12 -33
- package/src/services/blocks.ts +9 -24
- package/src/services/bookmarks.ts +14 -34
- package/src/services/bots.ts +7 -19
- package/src/services/calls.ts +15 -43
- package/src/services/canvases.ts +82 -85
- package/src/services/chat.ts +134 -254
- package/src/services/conversations.ts +101 -217
- package/src/services/dialog.ts +5 -13
- package/src/services/dnd.ts +11 -31
- package/src/services/emoji.ts +9 -19
- package/src/services/entity.ts +17 -45
- package/src/services/files.ts +72 -165
- package/src/services/functions.ts +95 -168
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +65 -208
- package/src/services/migration.ts +8 -17
- package/src/services/oauth.ts +127 -60
- package/src/services/openid.ts +12 -34
- package/src/services/pins.ts +7 -19
- package/src/services/reactions.ts +19 -43
- package/src/services/reminders.ts +13 -37
- package/src/services/rtm.ts +9 -25
- package/src/services/search.ts +51 -92
- package/src/services/stars.ts +20 -31
- package/src/services/team.ts +81 -155
- package/src/services/tooling.ts +5 -13
- package/src/services/usergroups.ts +37 -68
- package/src/services/users.ts +35 -102
- package/src/services/views.ts +11 -31
- package/src/services/workflows.ts +65 -129
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -40
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -54
|
@@ -1,23 +1,18 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
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
4
|
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
5
|
+
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
11
6
|
import * as Retry from "../retry.ts";
|
|
7
|
+
import * as T from "../traits.ts";
|
|
12
8
|
|
|
13
9
|
export type { SlackOpError, SlackOpContext };
|
|
14
10
|
|
|
15
11
|
/** List of encoded user IDs */
|
|
16
12
|
export type AddDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
17
|
-
export const AddDistributionsPermissionsRequestUserIdsList =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
) as any as S.Schema<AddDistributionsPermissionsRequestUserIdsList>;
|
|
13
|
+
export const AddDistributionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
|
|
14
|
+
S.String,
|
|
15
|
+
) as any as S.Schema<AddDistributionsPermissionsRequestUserIdsList>;
|
|
21
16
|
|
|
22
17
|
export interface AddDistributionsPermissionsRequest {
|
|
23
18
|
/** The encoded ID of the function */
|
|
@@ -35,13 +30,7 @@ export const AddDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
35
30
|
function_callback_id: S.optional(S.String),
|
|
36
31
|
function_app_id: S.optional(S.String),
|
|
37
32
|
user_ids: S.optional(AddDistributionsPermissionsRequestUserIdsList),
|
|
38
|
-
}).pipe(
|
|
39
|
-
T.Http({
|
|
40
|
-
method: "POST",
|
|
41
|
-
uri: "/functions.distributions.permissions.add",
|
|
42
|
-
code: 200,
|
|
43
|
-
}),
|
|
44
|
-
),
|
|
33
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.distributions.permissions.add", code: 200 })),
|
|
45
34
|
).annotate({
|
|
46
35
|
identifier: "AddDistributionsPermissionsRequest",
|
|
47
36
|
}) as any as S.Schema<AddDistributionsPermissionsRequest>;
|
|
@@ -58,23 +47,21 @@ export interface AddDistributionsPermissionsResponseUsersItem {
|
|
|
58
47
|
username?: string;
|
|
59
48
|
email?: string;
|
|
60
49
|
}
|
|
61
|
-
export const AddDistributionsPermissionsResponseUsersItem =
|
|
62
|
-
|
|
63
|
-
S.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}) as any as S.Schema<AddDistributionsPermissionsResponseUsersItem>;
|
|
50
|
+
export const AddDistributionsPermissionsResponseUsersItem = /*@__PURE__*/ S.suspend(() =>
|
|
51
|
+
S.Struct({
|
|
52
|
+
user_id: S.optional(S.String),
|
|
53
|
+
username: S.optional(S.String),
|
|
54
|
+
email: S.optional(S.String),
|
|
55
|
+
}),
|
|
56
|
+
).annotate({
|
|
57
|
+
identifier: "AddDistributionsPermissionsResponseUsersItem",
|
|
58
|
+
}) as any as S.Schema<AddDistributionsPermissionsResponseUsersItem>;
|
|
71
59
|
|
|
72
60
|
export type AddDistributionsPermissionsResponseUsersList =
|
|
73
61
|
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
74
|
-
export const AddDistributionsPermissionsResponseUsersList =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
) as any as S.Schema<AddDistributionsPermissionsResponseUsersList>;
|
|
62
|
+
export const AddDistributionsPermissionsResponseUsersList = /*@__PURE__*/ S.Array(
|
|
63
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
64
|
+
) as any as S.Schema<AddDistributionsPermissionsResponseUsersList>;
|
|
78
65
|
|
|
79
66
|
export interface AddDistributionsPermissionsResponse {
|
|
80
67
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -102,12 +89,8 @@ export const CompleteErrorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
102
89
|
S.Struct({
|
|
103
90
|
function_execution_id: S.String,
|
|
104
91
|
error: S.String,
|
|
105
|
-
}).pipe(
|
|
106
|
-
|
|
107
|
-
),
|
|
108
|
-
).annotate({
|
|
109
|
-
identifier: "CompleteErrorRequest",
|
|
110
|
-
}) as any as S.Schema<CompleteErrorRequest>;
|
|
92
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.completeError", code: 200 })),
|
|
93
|
+
).annotate({ identifier: "CompleteErrorRequest" }) as any as S.Schema<CompleteErrorRequest>;
|
|
111
94
|
|
|
112
95
|
export interface CompleteErrorResponse {
|
|
113
96
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -117,14 +100,10 @@ export const CompleteErrorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
117
100
|
S.Struct({
|
|
118
101
|
ok: S.Boolean,
|
|
119
102
|
}),
|
|
120
|
-
).annotate({
|
|
121
|
-
identifier: "CompleteErrorResponse",
|
|
122
|
-
}) as any as S.Schema<CompleteErrorResponse>;
|
|
103
|
+
).annotate({ identifier: "CompleteErrorResponse" }) as any as S.Schema<CompleteErrorResponse>;
|
|
123
104
|
|
|
124
105
|
/** 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
|
-
};
|
|
106
|
+
export type CompleteSuccessRequestOutputsMap = { [key: string]: unknown | undefined };
|
|
128
107
|
export const CompleteSuccessRequestOutputsMap = /*@__PURE__*/ S.Record(
|
|
129
108
|
S.String,
|
|
130
109
|
S.Unknown,
|
|
@@ -140,12 +119,8 @@ export const CompleteSuccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
140
119
|
S.Struct({
|
|
141
120
|
function_execution_id: S.String,
|
|
142
121
|
outputs: CompleteSuccessRequestOutputsMap,
|
|
143
|
-
}).pipe(
|
|
144
|
-
|
|
145
|
-
),
|
|
146
|
-
).annotate({
|
|
147
|
-
identifier: "CompleteSuccessRequest",
|
|
148
|
-
}) as any as S.Schema<CompleteSuccessRequest>;
|
|
122
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.completeSuccess", code: 200 })),
|
|
123
|
+
).annotate({ identifier: "CompleteSuccessRequest" }) as any as S.Schema<CompleteSuccessRequest>;
|
|
149
124
|
|
|
150
125
|
export interface CompleteSuccessResponse {
|
|
151
126
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -155,9 +130,7 @@ export const CompleteSuccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
155
130
|
S.Struct({
|
|
156
131
|
ok: S.Boolean,
|
|
157
132
|
}),
|
|
158
|
-
).annotate({
|
|
159
|
-
identifier: "CompleteSuccessResponse",
|
|
160
|
-
}) as any as S.Schema<CompleteSuccessResponse>;
|
|
133
|
+
).annotate({ identifier: "CompleteSuccessResponse" }) as any as S.Schema<CompleteSuccessResponse>;
|
|
161
134
|
|
|
162
135
|
export interface ExportWorkflowsStepsResponseRequest {
|
|
163
136
|
/** The workflow ID, starts with Wf* */
|
|
@@ -176,11 +149,7 @@ export const ExportWorkflowsStepsResponseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
176
149
|
workflow_app_id: S.optional(S.String),
|
|
177
150
|
step_id: S.String,
|
|
178
151
|
}).pipe(
|
|
179
|
-
T.Http({
|
|
180
|
-
method: "POST",
|
|
181
|
-
uri: "/functions.workflows.steps.responses.export",
|
|
182
|
-
code: 200,
|
|
183
|
-
}),
|
|
152
|
+
T.Http({ method: "POST", uri: "/functions.workflows.steps.responses.export", code: 200 }),
|
|
184
153
|
),
|
|
185
154
|
).annotate({
|
|
186
155
|
identifier: "ExportWorkflowsStepsResponseRequest",
|
|
@@ -190,11 +159,10 @@ export interface ExportWorkflowsStepsResponseResponse {
|
|
|
190
159
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
191
160
|
ok: boolean;
|
|
192
161
|
}
|
|
193
|
-
export const ExportWorkflowsStepsResponseResponse = /*@__PURE__*/ S.suspend(
|
|
194
|
-
(
|
|
195
|
-
S.
|
|
196
|
-
|
|
197
|
-
}),
|
|
162
|
+
export const ExportWorkflowsStepsResponseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
163
|
+
S.Struct({
|
|
164
|
+
ok: S.Boolean,
|
|
165
|
+
}),
|
|
198
166
|
).annotate({
|
|
199
167
|
identifier: "ExportWorkflowsStepsResponseResponse",
|
|
200
168
|
}) as any as S.Schema<ExportWorkflowsStepsResponseResponse>;
|
|
@@ -212,13 +180,7 @@ export const ListDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
212
180
|
function_id: S.optional(S.String),
|
|
213
181
|
function_callback_id: S.optional(S.String),
|
|
214
182
|
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
|
-
),
|
|
183
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.distributions.permissions.list", code: 200 })),
|
|
222
184
|
).annotate({
|
|
223
185
|
identifier: "ListDistributionsPermissionsRequest",
|
|
224
186
|
}) as any as S.Schema<ListDistributionsPermissionsRequest>;
|
|
@@ -237,24 +199,21 @@ export const ListDistributionsPermissionsResponseUsersItem =
|
|
|
237
199
|
|
|
238
200
|
export type ListDistributionsPermissionsResponseUsersList =
|
|
239
201
|
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
240
|
-
export const ListDistributionsPermissionsResponseUsersList =
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
) as any as S.Schema<ListDistributionsPermissionsResponseUsersList>;
|
|
202
|
+
export const ListDistributionsPermissionsResponseUsersList = /*@__PURE__*/ S.Array(
|
|
203
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
204
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseUsersList>;
|
|
244
205
|
|
|
245
206
|
/** List of team IDs allowed with named_entities permission. */
|
|
246
207
|
export type ListDistributionsPermissionsResponseTeamIdsList = Array<string>;
|
|
247
|
-
export const ListDistributionsPermissionsResponseTeamIdsList =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
) as any as S.Schema<ListDistributionsPermissionsResponseTeamIdsList>;
|
|
208
|
+
export const ListDistributionsPermissionsResponseTeamIdsList = /*@__PURE__*/ S.Array(
|
|
209
|
+
S.String,
|
|
210
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseTeamIdsList>;
|
|
251
211
|
|
|
252
212
|
/** List of org IDs allowed with named_entities permission. */
|
|
253
213
|
export type ListDistributionsPermissionsResponseOrgIdsList = Array<string>;
|
|
254
|
-
export const ListDistributionsPermissionsResponseOrgIdsList =
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
) as any as S.Schema<ListDistributionsPermissionsResponseOrgIdsList>;
|
|
214
|
+
export const ListDistributionsPermissionsResponseOrgIdsList = /*@__PURE__*/ S.Array(
|
|
215
|
+
S.String,
|
|
216
|
+
) as any as S.Schema<ListDistributionsPermissionsResponseOrgIdsList>;
|
|
258
217
|
|
|
259
218
|
export interface ListDistributionsPermissionsResponse {
|
|
260
219
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -266,15 +225,14 @@ export interface ListDistributionsPermissionsResponse {
|
|
|
266
225
|
/** List of org IDs allowed with named_entities permission. */
|
|
267
226
|
org_ids?: ListDistributionsPermissionsResponseOrgIdsList;
|
|
268
227
|
}
|
|
269
|
-
export const ListDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(
|
|
270
|
-
(
|
|
271
|
-
S.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}),
|
|
228
|
+
export const ListDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
+
S.Struct({
|
|
230
|
+
ok: S.Boolean,
|
|
231
|
+
permission_type: ListDistributionsPermissionsResponsePermissionType,
|
|
232
|
+
users: S.optional(ListDistributionsPermissionsResponseUsersList),
|
|
233
|
+
team_ids: S.optional(ListDistributionsPermissionsResponseTeamIdsList),
|
|
234
|
+
org_ids: S.optional(ListDistributionsPermissionsResponseOrgIdsList),
|
|
235
|
+
}),
|
|
278
236
|
).annotate({
|
|
279
237
|
identifier: "ListDistributionsPermissionsResponse",
|
|
280
238
|
}) as any as S.Schema<ListDistributionsPermissionsResponse>;
|
|
@@ -295,22 +253,15 @@ export const ListWorkflowsStepsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
295
253
|
workflow: S.optional(S.String),
|
|
296
254
|
workflow_app_id: S.optional(S.String),
|
|
297
255
|
function_id: S.String,
|
|
298
|
-
}).pipe(
|
|
299
|
-
T.Http({
|
|
300
|
-
method: "POST",
|
|
301
|
-
uri: "/functions.workflows.steps.list",
|
|
302
|
-
code: 200,
|
|
303
|
-
}),
|
|
304
|
-
),
|
|
256
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.workflows.steps.list", code: 200 })),
|
|
305
257
|
).annotate({
|
|
306
258
|
identifier: "ListWorkflowsStepsRequest",
|
|
307
259
|
}) as any as S.Schema<ListWorkflowsStepsRequest>;
|
|
308
260
|
|
|
309
261
|
export type ListWorkflowsStepsResponseStepsVersionsList = Array<unknown>;
|
|
310
|
-
export const ListWorkflowsStepsResponseStepsVersionsList =
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
) as any as S.Schema<ListWorkflowsStepsResponseStepsVersionsList>;
|
|
262
|
+
export const ListWorkflowsStepsResponseStepsVersionsList = /*@__PURE__*/ S.Array(
|
|
263
|
+
S.Unknown,
|
|
264
|
+
) as any as S.Schema<ListWorkflowsStepsResponseStepsVersionsList>;
|
|
314
265
|
|
|
315
266
|
export interface ListWorkflowsStepsResponse {
|
|
316
267
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -328,10 +279,9 @@ export const ListWorkflowsStepsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
328
279
|
|
|
329
280
|
/** List of encoded user IDs */
|
|
330
281
|
export type RemoveDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
331
|
-
export const RemoveDistributionsPermissionsRequestUserIdsList =
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
) as any as S.Schema<RemoveDistributionsPermissionsRequestUserIdsList>;
|
|
282
|
+
export const RemoveDistributionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
|
|
283
|
+
S.String,
|
|
284
|
+
) as any as S.Schema<RemoveDistributionsPermissionsRequestUserIdsList>;
|
|
335
285
|
|
|
336
286
|
export interface RemoveDistributionsPermissionsRequest {
|
|
337
287
|
/** The encoded ID of the function */
|
|
@@ -343,20 +293,15 @@ export interface RemoveDistributionsPermissionsRequest {
|
|
|
343
293
|
/** List of encoded user IDs */
|
|
344
294
|
user_ids?: RemoveDistributionsPermissionsRequestUserIdsList;
|
|
345
295
|
}
|
|
346
|
-
export const RemoveDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(
|
|
347
|
-
(
|
|
348
|
-
S.
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
method: "POST",
|
|
356
|
-
uri: "/functions.distributions.permissions.remove",
|
|
357
|
-
code: 200,
|
|
358
|
-
}),
|
|
359
|
-
),
|
|
296
|
+
export const RemoveDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
297
|
+
S.Struct({
|
|
298
|
+
function_id: S.optional(S.String),
|
|
299
|
+
function_callback_id: S.optional(S.String),
|
|
300
|
+
function_app_id: S.optional(S.String),
|
|
301
|
+
user_ids: S.optional(RemoveDistributionsPermissionsRequestUserIdsList),
|
|
302
|
+
}).pipe(
|
|
303
|
+
T.Http({ method: "POST", uri: "/functions.distributions.permissions.remove", code: 200 }),
|
|
304
|
+
),
|
|
360
305
|
).annotate({
|
|
361
306
|
identifier: "RemoveDistributionsPermissionsRequest",
|
|
362
307
|
}) as any as S.Schema<RemoveDistributionsPermissionsRequest>;
|
|
@@ -375,10 +320,9 @@ export const RemoveDistributionsPermissionsResponseUsersItem =
|
|
|
375
320
|
|
|
376
321
|
export type RemoveDistributionsPermissionsResponseUsersList =
|
|
377
322
|
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
378
|
-
export const RemoveDistributionsPermissionsResponseUsersList =
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
) as any as S.Schema<RemoveDistributionsPermissionsResponseUsersList>;
|
|
323
|
+
export const RemoveDistributionsPermissionsResponseUsersList = /*@__PURE__*/ S.Array(
|
|
324
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
325
|
+
) as any as S.Schema<RemoveDistributionsPermissionsResponseUsersList>;
|
|
382
326
|
|
|
383
327
|
export interface RemoveDistributionsPermissionsResponse {
|
|
384
328
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -386,13 +330,12 @@ export interface RemoveDistributionsPermissionsResponse {
|
|
|
386
330
|
permission_type: RemoveDistributionsPermissionsResponsePermissionType;
|
|
387
331
|
users?: RemoveDistributionsPermissionsResponseUsersList;
|
|
388
332
|
}
|
|
389
|
-
export const RemoveDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(
|
|
390
|
-
(
|
|
391
|
-
S.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}),
|
|
333
|
+
export const RemoveDistributionsPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
334
|
+
S.Struct({
|
|
335
|
+
ok: S.Boolean,
|
|
336
|
+
permission_type: RemoveDistributionsPermissionsResponsePermissionType,
|
|
337
|
+
users: S.optional(RemoveDistributionsPermissionsResponseUsersList),
|
|
338
|
+
}),
|
|
396
339
|
).annotate({
|
|
397
340
|
identifier: "RemoveDistributionsPermissionsResponse",
|
|
398
341
|
}) as any as S.Schema<RemoveDistributionsPermissionsResponse>;
|
|
@@ -407,24 +350,21 @@ export const SetDistributionsPermissionsRequestPermissionType = S.String;
|
|
|
407
350
|
|
|
408
351
|
/** List of encoded user IDs */
|
|
409
352
|
export type SetDistributionsPermissionsRequestUserIdsList = Array<string>;
|
|
410
|
-
export const SetDistributionsPermissionsRequestUserIdsList =
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
) as any as S.Schema<SetDistributionsPermissionsRequestUserIdsList>;
|
|
353
|
+
export const SetDistributionsPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(
|
|
354
|
+
S.String,
|
|
355
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestUserIdsList>;
|
|
414
356
|
|
|
415
357
|
/** List of team IDs to allow for named_entities permission */
|
|
416
358
|
export type SetDistributionsPermissionsRequestTeamIdsList = Array<string>;
|
|
417
|
-
export const SetDistributionsPermissionsRequestTeamIdsList =
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
) as any as S.Schema<SetDistributionsPermissionsRequestTeamIdsList>;
|
|
359
|
+
export const SetDistributionsPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(
|
|
360
|
+
S.String,
|
|
361
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestTeamIdsList>;
|
|
421
362
|
|
|
422
363
|
/** List of org IDs to allow for named_entities permission */
|
|
423
364
|
export type SetDistributionsPermissionsRequestOrgIdsList = Array<string>;
|
|
424
|
-
export const SetDistributionsPermissionsRequestOrgIdsList =
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
) as any as S.Schema<SetDistributionsPermissionsRequestOrgIdsList>;
|
|
365
|
+
export const SetDistributionsPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(
|
|
366
|
+
S.String,
|
|
367
|
+
) as any as S.Schema<SetDistributionsPermissionsRequestOrgIdsList>;
|
|
428
368
|
|
|
429
369
|
export interface SetDistributionsPermissionsRequest {
|
|
430
370
|
/** The encoded ID of the function */
|
|
@@ -434,9 +374,7 @@ export interface SetDistributionsPermissionsRequest {
|
|
|
434
374
|
/** The encoded ID of the app */
|
|
435
375
|
function_app_id?: string;
|
|
436
376
|
/** The type of permission that defines how the function can be distributed */
|
|
437
|
-
permission_type?:
|
|
438
|
-
| SetDistributionsPermissionsRequestPermissionType
|
|
439
|
-
| (string & {});
|
|
377
|
+
permission_type?: SetDistributionsPermissionsRequestPermissionType | (string & {});
|
|
440
378
|
/** List of encoded user IDs */
|
|
441
379
|
user_ids?: SetDistributionsPermissionsRequestUserIdsList;
|
|
442
380
|
/** List of team IDs to allow for named_entities permission */
|
|
@@ -449,19 +387,11 @@ export const SetDistributionsPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
449
387
|
function_id: S.optional(S.String),
|
|
450
388
|
function_callback_id: S.optional(S.String),
|
|
451
389
|
function_app_id: S.optional(S.String),
|
|
452
|
-
permission_type: S.optional(
|
|
453
|
-
SetDistributionsPermissionsRequestPermissionType,
|
|
454
|
-
),
|
|
390
|
+
permission_type: S.optional(SetDistributionsPermissionsRequestPermissionType),
|
|
455
391
|
user_ids: S.optional(SetDistributionsPermissionsRequestUserIdsList),
|
|
456
392
|
team_ids: S.optional(SetDistributionsPermissionsRequestTeamIdsList),
|
|
457
393
|
org_ids: S.optional(SetDistributionsPermissionsRequestOrgIdsList),
|
|
458
|
-
}).pipe(
|
|
459
|
-
T.Http({
|
|
460
|
-
method: "POST",
|
|
461
|
-
uri: "/functions.distributions.permissions.set",
|
|
462
|
-
code: 200,
|
|
463
|
-
}),
|
|
464
|
-
),
|
|
394
|
+
}).pipe(T.Http({ method: "POST", uri: "/functions.distributions.permissions.set", code: 200 })),
|
|
465
395
|
).annotate({
|
|
466
396
|
identifier: "SetDistributionsPermissionsRequest",
|
|
467
397
|
}) as any as S.Schema<SetDistributionsPermissionsRequest>;
|
|
@@ -480,24 +410,21 @@ export const SetDistributionsPermissionsResponseUsersItem =
|
|
|
480
410
|
|
|
481
411
|
export type SetDistributionsPermissionsResponseUsersList =
|
|
482
412
|
Array<AddDistributionsPermissionsResponseUsersItem>;
|
|
483
|
-
export const SetDistributionsPermissionsResponseUsersList =
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
) as any as S.Schema<SetDistributionsPermissionsResponseUsersList>;
|
|
413
|
+
export const SetDistributionsPermissionsResponseUsersList = /*@__PURE__*/ S.Array(
|
|
414
|
+
AddDistributionsPermissionsResponseUsersItem,
|
|
415
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseUsersList>;
|
|
487
416
|
|
|
488
417
|
/** List of team IDs allowed with named_entities permission. */
|
|
489
418
|
export type SetDistributionsPermissionsResponseTeamIdsList = Array<string>;
|
|
490
|
-
export const SetDistributionsPermissionsResponseTeamIdsList =
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
) as any as S.Schema<SetDistributionsPermissionsResponseTeamIdsList>;
|
|
419
|
+
export const SetDistributionsPermissionsResponseTeamIdsList = /*@__PURE__*/ S.Array(
|
|
420
|
+
S.String,
|
|
421
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseTeamIdsList>;
|
|
494
422
|
|
|
495
423
|
/** List of org IDs allowed with named_entities permission. */
|
|
496
424
|
export type SetDistributionsPermissionsResponseOrgIdsList = Array<string>;
|
|
497
|
-
export const SetDistributionsPermissionsResponseOrgIdsList =
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
) as any as S.Schema<SetDistributionsPermissionsResponseOrgIdsList>;
|
|
425
|
+
export const SetDistributionsPermissionsResponseOrgIdsList = /*@__PURE__*/ S.Array(
|
|
426
|
+
S.String,
|
|
427
|
+
) as any as S.Schema<SetDistributionsPermissionsResponseOrgIdsList>;
|
|
501
428
|
|
|
502
429
|
export interface SetDistributionsPermissionsResponse {
|
|
503
430
|
/** Always `true` (a failed call raises a typed error instead). */
|
package/src/services/index.ts
CHANGED