@kestra-io/kestra-sdk 2.0.0-develop.3fc51071.e95cab31 → 2.0.0-kdevelop.17803043.c78ae18c.bf35b46d
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/README.md +147 -0
- package/dist/Banners.gen-BNcOQkQf.d.ts +16 -0
- package/dist/KillSwitches.gen-Di8b18wx.d.ts +16 -0
- package/dist/Login.gen-39gi8FJI.d.ts +9 -0
- package/dist/ScimGroups.gen-CFKZy66F.d.ts +27 -0
- package/dist/ScimUsers.gen-CJbAcDUw.d.ts +27 -0
- package/dist/TenantAccessAdmin.gen-D5lp2ihk.d.ts +11 -0
- package/dist/TenantsAdmin.gen-DlqpcXDz.d.ts +16 -0
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +29 -19
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +71 -35
- package/dist/assets.d.ts +1 -1
- package/dist/assets.js +35 -13
- package/dist/audit-logs.d.ts +1 -1
- package/dist/audit-logs.js +29 -13
- package/dist/auths.d.ts +1 -1
- package/dist/auths.js +41 -17
- package/dist/banners.d.ts +1 -1
- package/dist/banners.js +17 -9
- package/dist/bindings.d.ts +1 -1
- package/dist/bindings.js +20 -10
- package/dist/blueprint-tags.d.ts +1 -1
- package/dist/blueprint-tags.js +8 -4
- package/dist/blueprints.d.ts +1 -1
- package/dist/blueprints.js +68 -36
- package/dist/client.d.ts +1 -1
- package/dist/{client.gen-Cck1nGA2.js → client.gen-CyKijdN-.js} +8 -11
- package/dist/client.js +1 -1
- package/dist/cluster.d.ts +2 -2
- package/dist/cluster.js +12 -5
- package/dist/dashboards-admin.d.ts +2 -0
- package/dist/dashboards-admin.js +11 -0
- package/dist/dashboards.d.ts +2 -2
- package/dist/dashboards.js +50 -32
- package/dist/executions.d.ts +2 -2
- package/dist/executions.js +188 -84
- package/dist/files.d.ts +1 -1
- package/dist/files.js +35 -15
- package/dist/flows.d.ts +1 -1
- package/dist/flows.js +108 -42
- package/dist/groups.d.ts +1 -1
- package/dist/groups.js +49 -27
- package/dist/index-DdTcQbO7.d.ts +2200 -0
- package/dist/index.d.ts +27 -15
- package/dist/index.js +72 -50
- package/dist/invitations.d.ts +1 -1
- package/dist/invitations.js +23 -11
- package/dist/kill-switches.d.ts +1 -1
- package/dist/kill-switches.js +17 -9
- package/dist/kv.d.ts +1 -1
- package/dist/kv.js +24 -12
- package/dist/login.d.ts +1 -1
- package/dist/login.js +5 -3
- package/dist/logs.d.ts +1 -1
- package/dist/logs.js +17 -7
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +57 -0
- package/dist/metrics.d.ts +1 -1
- package/dist/metrics.js +20 -8
- package/dist/misc.d.ts +2 -2
- package/dist/misc.js +43 -19
- package/dist/namespaces.d.ts +2 -2
- package/dist/namespaces.js +66 -38
- package/dist/outputs.d.ts +1 -1
- package/dist/outputs.js +8 -4
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.js +81 -29
- package/dist/roles.d.ts +1 -1
- package/dist/roles.js +36 -22
- package/dist/scim-configuration.d.ts +1 -1
- package/dist/scim-configuration.js +17 -7
- package/dist/scim-groups.d.ts +1 -1
- package/dist/scim-groups.js +39 -25
- package/dist/scim-users.d.ts +1 -1
- package/dist/scim-users.js +39 -25
- package/dist/{sdk.gen-N-hcF-we.js → sdk.gen-C3IaGDxD.js} +931 -433
- package/dist/{sdk.gen-DAfzFXJR.d.ts → sdk.gen-CbxtRKOa.d.ts} +302 -159
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.js +5 -3
- package/dist/security-integrations.d.ts +1 -1
- package/dist/security-integrations.js +26 -12
- package/dist/service-account.d.ts +1 -1
- package/dist/service-account.js +70 -38
- package/dist/services.d.ts +1 -1
- package/dist/services.js +14 -6
- package/dist/shared.d.ts +1 -1
- package/dist/shared.gen-DW5iZdMq.d.ts +15 -0
- package/dist/shared.js +14 -10
- package/dist/tenant-access-admin.d.ts +2 -0
- package/dist/tenant-access-admin.js +11 -0
- package/dist/tenant-access.d.ts +2 -2
- package/dist/tenant-access.js +18 -14
- package/dist/tenants-admin.d.ts +2 -0
- package/dist/tenants-admin.js +26 -0
- package/dist/tenants.d.ts +2 -2
- package/dist/tenants.js +42 -37
- package/dist/test-suites.d.ts +1 -1
- package/dist/test-suites.js +63 -35
- package/dist/triggers.d.ts +1 -1
- package/dist/triggers.js +89 -43
- package/dist/{types.gen-CA2Jf8BL.d.ts → types.gen-w-nuLfNb.d.ts} +1423 -701
- package/dist/users.d.ts +1 -1
- package/dist/users.js +81 -45
- package/dist/worker-auth-admin.d.ts +2 -0
- package/dist/worker-auth-admin.js +11 -0
- package/dist/worker-auth.d.ts +2 -2
- package/dist/worker-auth.js +6 -15
- package/dist/worker-groups.d.ts +2 -2
- package/dist/worker-groups.js +63 -11
- package/dist/worker-queues-admin.d.ts +2 -0
- package/dist/worker-queues-admin.js +29 -0
- package/package.json +15 -8
- package/dist/index-CpGCUULo.d.ts +0 -2123
- package/dist/ks-Banners.gen-B5tOiByw.d.ts +0 -16
- package/dist/ks-Cluster.gen-dtsebDgv.d.ts +0 -11
- package/dist/ks-KillSwitches.gen-CQH7za-0.d.ts +0 -16
- package/dist/ks-Login.gen-BDVuPPFb.d.ts +0 -9
- package/dist/ks-ScimGroups.gen-B2Xowz9Y.d.ts +0 -27
- package/dist/ks-ScimUsers.gen-LYEijgsh.d.ts +0 -27
- package/dist/ks-shared.gen-DOLnlDDx.d.ts +0 -15
package/README.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# JavaScript SDK
|
|
2
|
+
|
|
3
|
+
## Steps to generate the SDK
|
|
4
|
+
|
|
5
|
+
1. Update the `kestra-ee.yml` if necessary with latest openspec api changes.
|
|
6
|
+
2. Generate the SDK using the script `generate-sdks.sh` that uses the openapi-generator-cli docker image.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @kestra-io/kestra-sdk
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
The SDK is organized into domain-specific modules (e.g. `flows`, `executions`, `apps`, `plugins`). Import only the modules you need to keep your bundle lean and benefit from tree-shaking.
|
|
17
|
+
|
|
18
|
+
### Configure the client
|
|
19
|
+
|
|
20
|
+
Import and configure the shared HTTP client once, at the entry point of your application:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { client } from "@kestra-io/kestra-sdk/client";
|
|
24
|
+
|
|
25
|
+
client.setConfig({
|
|
26
|
+
baseURL: "https://<your-kestra-host>",
|
|
27
|
+
auth: () => "<username>:<password>",
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
For token-based authentication, pass the token directly:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
client.setConfig({
|
|
35
|
+
baseURL: "https://<your-kestra-host>",
|
|
36
|
+
auth: () => "<your-api-token>",
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Import domain modules
|
|
41
|
+
|
|
42
|
+
Each domain is a separate entry point. Import them with a namespace alias to keep call sites readable:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import * as FlowsAPI from "@kestra-io/kestra-sdk/flows";
|
|
46
|
+
import * as ExecutionsAPI from "@kestra-io/kestra-sdk/executions";
|
|
47
|
+
import * as AppsAPI from "@kestra-io/kestra-sdk/apps";
|
|
48
|
+
import * as PluginsAPI from "@kestra-io/kestra-sdk/plugins";
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Other available domains:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import * as AiAPI from "@kestra-io/kestra-sdk/ai";
|
|
55
|
+
import * as AssetsAPI from "@kestra-io/kestra-sdk/assets";
|
|
56
|
+
import * as AuditLogsAPI from "@kestra-io/kestra-sdk/audit-logs";
|
|
57
|
+
import * as AuthsAPI from "@kestra-io/kestra-sdk/auths";
|
|
58
|
+
import * as BannersAPI from "@kestra-io/kestra-sdk/banners";
|
|
59
|
+
import * as BindingsAPI from "@kestra-io/kestra-sdk/bindings";
|
|
60
|
+
import * as BlueprintTagsAPI from "@kestra-io/kestra-sdk/blueprint-tags";
|
|
61
|
+
import * as BlueprintsAPI from "@kestra-io/kestra-sdk/blueprints";
|
|
62
|
+
import * as ClusterAPI from "@kestra-io/kestra-sdk/cluster";
|
|
63
|
+
import * as DashboardsAPI from "@kestra-io/kestra-sdk/dashboards";
|
|
64
|
+
import * as FilesAPI from "@kestra-io/kestra-sdk/files";
|
|
65
|
+
import * as GroupsAPI from "@kestra-io/kestra-sdk/groups";
|
|
66
|
+
import * as InvitationsAPI from "@kestra-io/kestra-sdk/invitations";
|
|
67
|
+
import * as KillSwitchesAPI from "@kestra-io/kestra-sdk/kill-switches";
|
|
68
|
+
import * as KvAPI from "@kestra-io/kestra-sdk/kv";
|
|
69
|
+
import * as LoginAPI from "@kestra-io/kestra-sdk/login";
|
|
70
|
+
import * as LogsAPI from "@kestra-io/kestra-sdk/logs";
|
|
71
|
+
import * as MetricsAPI from "@kestra-io/kestra-sdk/metrics";
|
|
72
|
+
import * as MiscAPI from "@kestra-io/kestra-sdk/misc";
|
|
73
|
+
import * as NamespacesAPI from "@kestra-io/kestra-sdk/namespaces";
|
|
74
|
+
import * as OutputsAPI from "@kestra-io/kestra-sdk/outputs";
|
|
75
|
+
import * as RolesAPI from "@kestra-io/kestra-sdk/roles";
|
|
76
|
+
import * as ScimConfigurationAPI from "@kestra-io/kestra-sdk/scim-configuration";
|
|
77
|
+
import * as ScimGroupsAPI from "@kestra-io/kestra-sdk/scim-groups";
|
|
78
|
+
import * as ScimUsersAPI from "@kestra-io/kestra-sdk/scim-users";
|
|
79
|
+
import * as SecretsAPI from "@kestra-io/kestra-sdk/secrets";
|
|
80
|
+
import * as SecurityIntegrationsAPI from "@kestra-io/kestra-sdk/security-integrations";
|
|
81
|
+
import * as ServiceAccountAPI from "@kestra-io/kestra-sdk/service-account";
|
|
82
|
+
import * as ServicesAPI from "@kestra-io/kestra-sdk/services";
|
|
83
|
+
import * as SharedAPI from "@kestra-io/kestra-sdk/shared";
|
|
84
|
+
import * as TenantAccessAPI from "@kestra-io/kestra-sdk/tenant-access";
|
|
85
|
+
import * as TenantsAPI from "@kestra-io/kestra-sdk/tenants";
|
|
86
|
+
import * as TestSuitesAPI from "@kestra-io/kestra-sdk/test-suites";
|
|
87
|
+
import * as TriggersAPI from "@kestra-io/kestra-sdk/triggers";
|
|
88
|
+
import * as UsersAPI from "@kestra-io/kestra-sdk/users";
|
|
89
|
+
import * as WorkerAuthAPI from "@kestra-io/kestra-sdk/worker-auth";
|
|
90
|
+
import * as WorkerGroupsAPI from "@kestra-io/kestra-sdk/worker-groups";
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Example: search and create a flow
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import { client } from "@kestra-io/kestra-sdk/client";
|
|
97
|
+
import * as FlowsAPI from "@kestra-io/kestra-sdk/flows";
|
|
98
|
+
|
|
99
|
+
client.setConfig({
|
|
100
|
+
baseURL: "https://<your-kestra-host>",
|
|
101
|
+
auth: () => "root@root.com:Root!1234",
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const tenantId = "main";
|
|
105
|
+
|
|
106
|
+
// Search flows
|
|
107
|
+
const searchRes = await FlowsAPI.searchFlows({
|
|
108
|
+
page: 1,
|
|
109
|
+
size: 10,
|
|
110
|
+
tenant: tenantId,
|
|
111
|
+
});
|
|
112
|
+
console.log(searchRes.data);
|
|
113
|
+
|
|
114
|
+
// Create a flow
|
|
115
|
+
const createRes = await FlowsAPI.createFlow({
|
|
116
|
+
tenant: tenantId,
|
|
117
|
+
body: `
|
|
118
|
+
id: hello-world
|
|
119
|
+
namespace: my.namespace
|
|
120
|
+
|
|
121
|
+
tasks:
|
|
122
|
+
- id: hello
|
|
123
|
+
type: io.kestra.plugin.core.log.Log
|
|
124
|
+
message: Hello World! 🚀
|
|
125
|
+
`,
|
|
126
|
+
});
|
|
127
|
+
console.log(createRes.data);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Example: trigger an execution
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
import { client } from "@kestra-io/kestra-sdk/client";
|
|
134
|
+
import * as ExecutionsAPI from "@kestra-io/kestra-sdk/executions";
|
|
135
|
+
|
|
136
|
+
client.setConfig({
|
|
137
|
+
baseURL: "https://<your-kestra-host>",
|
|
138
|
+
auth: () => "root@root.com:Root!1234",
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
const execution = await ExecutionsAPI.createExecution({
|
|
142
|
+
tenant: "main",
|
|
143
|
+
namespace: "my.namespace",
|
|
144
|
+
id: "hello-world",
|
|
145
|
+
});
|
|
146
|
+
console.log(execution.data);
|
|
147
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { xn as Banner } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { Ca as _3D7A5F48, Fn as _0561Ad6Ab, _n as _04B5D3B49, ya as _3A626Bff } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/Banners.gen.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create an announcement banner
|
|
7
|
+
*/
|
|
8
|
+
declare function createBanner(parameters: Banner, options?: Omit<Parameters<typeof _3D7A5F48>[1], 'throwOnError'>): Promise<Banner>;
|
|
9
|
+
declare function searchBanners(options?: Omit<Parameters<typeof _3A626Bff>[0], 'throwOnError'>): Promise<Banner[]>;
|
|
10
|
+
declare function deleteBanner(parameters: Parameters<typeof _04B5D3B49>[0], options?: Omit<Parameters<typeof _04B5D3B49>[1], 'throwOnError'>): Promise<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Update an announcement banner
|
|
13
|
+
*/
|
|
14
|
+
declare function updateBanner(parameters: Omit<Parameters<typeof _0561Ad6Ab>[0], 'banner'> & Banner, options?: Omit<Parameters<typeof _0561Ad6Ab>[1], 'throwOnError'>): Promise<Banner>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { updateBanner as i, deleteBanner as n, searchBanners as r, createBanner as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Gg as KillSwitch } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { Va as _489De83d, kt as _0380059D8, oi as _1013D24e, xo as _56C0Cddb } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/KillSwitches.gen.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a kill switch
|
|
7
|
+
*/
|
|
8
|
+
declare function createKillSwitch(parameters: KillSwitch, options?: Omit<Parameters<typeof _1013D24e>[1], 'throwOnError'>): Promise<KillSwitch>;
|
|
9
|
+
declare function searchKillSwitches(options?: Omit<Parameters<typeof _0380059D8>[0], 'throwOnError'>): Promise<KillSwitch[]>;
|
|
10
|
+
declare function deleteKillSwitch(parameters: Parameters<typeof _489De83d>[0], options?: Omit<Parameters<typeof _489De83d>[1], 'throwOnError'>): Promise<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Update a kill switch
|
|
13
|
+
*/
|
|
14
|
+
declare function updateKillSwitch(parameters: Omit<Parameters<typeof _56C0Cddb>[0], 'killSwitch'> & KillSwitch, options?: Omit<Parameters<typeof _56C0Cddb>[1], 'throwOnError'>): Promise<KillSwitch>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { updateKillSwitch as i, deleteKillSwitch as n, searchKillSwitches as r, createKillSwitch as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DN as UsernamePasswordCredentials } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { Zo as _625Ef69 } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/Login.gen.d.ts
|
|
5
|
+
declare function login(parameters: UsernamePasswordCredentials, options?: Omit<Parameters<typeof _625Ef69>[1], 'throwOnError'>): Promise<{
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { login as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Ox as PatchRequest, QT as ScimUser, XT as ScimResource, xD as SearchRequest } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { Jn as _05Fc1D744, Yt as _041E4E0A1, ei as _0E583313, ot as _029Da9A7c, tc as c23903c, un as _04763C298, xn as _04Ca27C03 } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/ScimGroups.gen.d.ts
|
|
5
|
+
declare function queryGroups(parameters: Omit<Parameters<typeof _05Fc1D744>[0], 'tenant'> & {
|
|
6
|
+
tenant?: string;
|
|
7
|
+
}, options?: Omit<Parameters<typeof _05Fc1D744>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
8
|
+
declare function createSCIMResourceByIdGroups(parameters: Omit<Parameters<typeof _029Da9A7c>[0], 'scimUser' | 'tenant'> & ScimUser & {
|
|
9
|
+
tenant?: string;
|
|
10
|
+
}, options?: Omit<Parameters<typeof _029Da9A7c>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
11
|
+
declare function findGroups(parameters: Omit<Parameters<typeof _0E583313>[0], 'searchRequest' | 'tenant'> & SearchRequest & {
|
|
12
|
+
tenant?: string;
|
|
13
|
+
}, options?: Omit<Parameters<typeof _0E583313>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
14
|
+
declare function deleteGroups(parameters: Omit<Parameters<typeof _041E4E0A1>[0], 'tenant'> & {
|
|
15
|
+
tenant?: string;
|
|
16
|
+
}, options?: Omit<Parameters<typeof _041E4E0A1>[1], 'throwOnError'>): Promise<void>;
|
|
17
|
+
declare function sCIMResourceByIdGroups(parameters: Omit<Parameters<typeof _04763C298>[0], 'tenant'> & {
|
|
18
|
+
tenant?: string;
|
|
19
|
+
}, options?: Omit<Parameters<typeof _04763C298>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
20
|
+
declare function patchGroups(parameters: Omit<Parameters<typeof c23903c>[0], 'patchRequest' | 'tenant'> & PatchRequest & {
|
|
21
|
+
tenant?: string;
|
|
22
|
+
}, options?: Omit<Parameters<typeof c23903c>[1], 'throwOnError'>): Promise<void>;
|
|
23
|
+
declare function updateGroups(parameters: Omit<Parameters<typeof _04Ca27C03>[0], 'scimResource' | 'tenant'> & ScimResource & {
|
|
24
|
+
tenant?: string;
|
|
25
|
+
}, options?: Omit<Parameters<typeof _04Ca27C03>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { queryGroups as a, patchGroups as i, deleteGroups as n, sCIMResourceByIdGroups as o, findGroups as r, updateGroups as s, createSCIMResourceByIdGroups as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Ox as PatchRequest, QT as ScimUser, XT as ScimResource, xD as SearchRequest } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { $t as _0436B14E3, Ja as _4B7C6Aa0, Pn as _0541C980c, W as _022Bb8541, gi as _191553Cf, qr as _0A933De0, xs as _6Ac6Cc58 } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/ScimUsers.gen.d.ts
|
|
5
|
+
declare function queryUsers(parameters: Omit<Parameters<typeof _0A933De0>[0], 'tenant'> & {
|
|
6
|
+
tenant?: string;
|
|
7
|
+
}, options?: Omit<Parameters<typeof _0A933De0>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
8
|
+
declare function createSCIMResourceByIdUsers(parameters: Omit<Parameters<typeof _6Ac6Cc58>[0], 'scimUser' | 'tenant'> & ScimUser & {
|
|
9
|
+
tenant?: string;
|
|
10
|
+
}, options?: Omit<Parameters<typeof _6Ac6Cc58>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
11
|
+
declare function findUsers(parameters: Omit<Parameters<typeof _191553Cf>[0], 'searchRequest' | 'tenant'> & SearchRequest & {
|
|
12
|
+
tenant?: string;
|
|
13
|
+
}, options?: Omit<Parameters<typeof _191553Cf>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
14
|
+
declare function deleteUsers(parameters: Omit<Parameters<typeof _0436B14E3>[0], 'tenant'> & {
|
|
15
|
+
tenant?: string;
|
|
16
|
+
}, options?: Omit<Parameters<typeof _0436B14E3>[1], 'throwOnError'>): Promise<void>;
|
|
17
|
+
declare function sCIMResourceByIdUsers(parameters: Omit<Parameters<typeof _0541C980c>[0], 'tenant'> & {
|
|
18
|
+
tenant?: string;
|
|
19
|
+
}, options?: Omit<Parameters<typeof _0541C980c>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
20
|
+
declare function patchUsers(parameters: Omit<Parameters<typeof _4B7C6Aa0>[0], 'patchRequest' | 'tenant'> & PatchRequest & {
|
|
21
|
+
tenant?: string;
|
|
22
|
+
}, options?: Omit<Parameters<typeof _4B7C6Aa0>[1], 'throwOnError'>): Promise<void>;
|
|
23
|
+
declare function updateUsers(parameters: Omit<Parameters<typeof _022Bb8541>[0], 'scimResource' | 'tenant'> & ScimResource & {
|
|
24
|
+
tenant?: string;
|
|
25
|
+
}, options?: Omit<Parameters<typeof _022Bb8541>[1], 'throwOnError'>): Promise<ScimResource>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { queryUsers as a, patchUsers as i, deleteUsers as n, sCIMResourceByIdUsers as o, findUsers as r, updateUsers as s, createSCIMResourceByIdUsers as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ar as _075060104 } from "./sdk.gen-CbxtRKOa.js";
|
|
2
|
+
|
|
3
|
+
//#region src/openapi/sdk/TenantAccessAdmin.gen.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create tenant access for a user
|
|
6
|
+
*/
|
|
7
|
+
declare function createTenantAccess_1(parameters: Omit<Parameters<typeof _075060104>[0], 'tenant'> & {
|
|
8
|
+
tenant?: string;
|
|
9
|
+
}, options?: Omit<Parameters<typeof _075060104>[1], 'throwOnError'>): Promise<unknown>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createTenantAccess_1 as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Lk as Tenant } from "./types.gen-w-nuLfNb.js";
|
|
2
|
+
import { Es as _6C815Daf, Ro as _5Db1D8a, eo as _4Ed5363c, na as _30Dbd29e } from "./sdk.gen-CbxtRKOa.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/TenantsAdmin.gen.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a tenant
|
|
7
|
+
*/
|
|
8
|
+
declare function create_2(parameters: Tenant, options?: Omit<Parameters<typeof _6C815Daf>[1], 'throwOnError'>): Promise<Tenant>;
|
|
9
|
+
declare function delete_2(parameters: Parameters<typeof _30Dbd29e>[0], options?: Omit<Parameters<typeof _30Dbd29e>[1], 'throwOnError'>): Promise<void>;
|
|
10
|
+
declare function get_3(parameters: Parameters<typeof _5Db1D8a>[0], options?: Omit<Parameters<typeof _5Db1D8a>[1], 'throwOnError'>): Promise<Tenant>;
|
|
11
|
+
/**
|
|
12
|
+
* Update a tenant
|
|
13
|
+
*/
|
|
14
|
+
declare function update_2(parameters: Omit<Parameters<typeof _4Ed5363c>[0], 'tenant'> & Tenant, options?: Omit<Parameters<typeof _4Ed5363c>[1], 'throwOnError'>): Promise<Tenant>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { update_2 as i, delete_2 as n, get_3 as r, create_2 as t };
|
package/dist/ai.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { As as generateTestSuite, Ds as generateApp, Os as generateDashboard, js as providers, ks as generateFlow } from "./index-DdTcQbO7.js";
|
|
2
2
|
export { generateApp, generateDashboard, generateFlow, generateTestSuite, providers };
|
package/dist/ai.js
CHANGED
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as _020A3475e, Ro as _5Ded489f, go as _55628B91, is as _6667C843, la as _34D9Fc6c } from "./sdk.gen-C3IaGDxD.js";
|
|
2
2
|
import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
|
|
3
|
-
//#region src/openapi/sdk/
|
|
3
|
+
//#region src/openapi/sdk/Ai.gen.ts
|
|
4
4
|
/**
|
|
5
5
|
* Generate or regenerate an app based on a prompt (EE only)
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
function generateApp(parameters, options) {
|
|
8
|
+
return getDataOrThrow(_34D9Fc6c({
|
|
9
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
10
|
+
appGenerationPrompt: parameters
|
|
11
|
+
}, options));
|
|
12
|
+
}
|
|
11
13
|
/**
|
|
12
14
|
* Generate or regenerate a dashboard based on a prompt
|
|
13
15
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
function generateDashboard(parameters, options) {
|
|
17
|
+
return getDataOrThrow(_5Ded489f({
|
|
18
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
19
|
+
aiControllerDashboardGenerationPrompt: parameters
|
|
20
|
+
}, options));
|
|
21
|
+
}
|
|
18
22
|
/**
|
|
19
23
|
* Generate or regenerate a flow based on a prompt
|
|
20
24
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
function generateFlow(parameters, options) {
|
|
26
|
+
return getDataOrThrow(_6667C843({
|
|
27
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
28
|
+
aiControllerFlowGenerationPrompt: parameters
|
|
29
|
+
}, options));
|
|
30
|
+
}
|
|
25
31
|
/**
|
|
26
32
|
* Generate or regenerate a test suite based on a prompt (EE only)
|
|
27
33
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
function generateTestSuite(parameters, options) {
|
|
35
|
+
return getDataOrThrow(_55628B91({
|
|
36
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
37
|
+
testSuiteGenerationPrompt: parameters
|
|
38
|
+
}, options));
|
|
39
|
+
}
|
|
32
40
|
/**
|
|
33
41
|
* List available AI providers
|
|
34
42
|
*/
|
|
35
|
-
|
|
43
|
+
function providers(parameters, options) {
|
|
44
|
+
return getDataOrThrow(_020A3475e(addTenantToParameters(parameters), options));
|
|
45
|
+
}
|
|
36
46
|
//#endregion
|
|
37
47
|
export { generateApp, generateDashboard, generateFlow, generateTestSuite, providers };
|
package/dist/apps.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cs as searchApps, Es as updateApp, Ss as logsFromAppExecution, Ts as streamEventsFromApp, _s as disableApp, bs as filePreviewFromAppExecution, ds as bulkDisableApps, fs as bulkEnableApps, gs as deleteApp, hs as createApp, ls as app, ms as bulkImportApps, ps as bulkExportApps, us as bulkDeleteApps, vs as enableApp, ws as searchAppsFromCatalog, xs as listTags, ys as fileMetaFromAppExecution } from "./index-DdTcQbO7.js";
|
|
2
2
|
export { app, bulkDeleteApps, bulkDisableApps, bulkEnableApps, bulkExportApps, bulkImportApps, createApp, deleteApp, disableApp, enableApp, fileMetaFromAppExecution, filePreviewFromAppExecution, listTags, logsFromAppExecution, searchApps, searchAppsFromCatalog, streamEventsFromApp, updateApp };
|
package/dist/apps.js
CHANGED
|
@@ -1,95 +1,131 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as _0742Ed768, Jo as _6214D18d, Mi as _23A9Ef85, Ri as _2Aee0508, Rs as _7692D6F8, Wo as _5F5A0682, X as _0250C96B9, Yn as _0607Ee9E7, Z as _025A6B662, ba as _3B58Db1e, di as _17A21, lt as _02Cb78A91, ro as _5034D9D7, st as _02A616Fc6, to as _4F085C75, ur as _06A967170, v as _01561E78a, x as _017382997 } from "./sdk.gen-C3IaGDxD.js";
|
|
2
2
|
import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
|
|
3
|
-
//#region src/openapi/sdk/
|
|
3
|
+
//#region src/openapi/sdk/Apps.gen.ts
|
|
4
4
|
/**
|
|
5
5
|
* Delete existing apps
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
function bulkDeleteApps(parameters, options) {
|
|
8
|
+
return getDataOrThrow(_02Cb78A91({
|
|
9
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
10
|
+
appsControllerApiBulkOperationRequest: parameters
|
|
11
|
+
}, options));
|
|
12
|
+
}
|
|
11
13
|
/**
|
|
12
14
|
* Create a new app
|
|
13
15
|
*/
|
|
14
|
-
|
|
16
|
+
function createApp(parameters, options) {
|
|
17
|
+
return getDataOrThrow(_23A9Ef85(addTenantToParameters(parameters), options));
|
|
18
|
+
}
|
|
15
19
|
/**
|
|
16
20
|
* Search for apps from catalog
|
|
17
21
|
*/
|
|
18
|
-
|
|
22
|
+
function searchAppsFromCatalog(parameters, options) {
|
|
23
|
+
return getDataOrThrow(_4F085C75(addTenantToParameters(parameters), options));
|
|
24
|
+
}
|
|
19
25
|
/**
|
|
20
26
|
* Disable existing apps
|
|
21
27
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
function bulkDisableApps(parameters, options) {
|
|
29
|
+
return getDataOrThrow(_2Aee0508({
|
|
30
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
31
|
+
appsControllerApiBulkOperationRequest: parameters
|
|
32
|
+
}, options));
|
|
33
|
+
}
|
|
26
34
|
/**
|
|
27
35
|
* Enable existing apps
|
|
28
36
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
function bulkEnableApps(parameters, options) {
|
|
38
|
+
return getDataOrThrow(_0250C96B9({
|
|
39
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
40
|
+
appsControllerApiBulkOperationRequest: parameters
|
|
41
|
+
}, options));
|
|
42
|
+
}
|
|
33
43
|
/**
|
|
34
44
|
* Export apps as a ZIP archive of YAML sources.
|
|
35
45
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
function bulkExportApps(parameters, options) {
|
|
47
|
+
return getDataOrThrow(_7692D6F8({
|
|
48
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
49
|
+
appsControllerApiBulkOperationRequest: parameters
|
|
50
|
+
}, options));
|
|
51
|
+
}
|
|
40
52
|
/**
|
|
41
53
|
* Import apps as a ZIP archive of yaml sources or a multi-objects YAML file.
|
|
42
54
|
* When sending a Yaml that contains one or more apps, a list of index is returned.
|
|
43
55
|
* When sending a ZIP archive, a list of files that couldn't be imported is returned.
|
|
44
56
|
*
|
|
45
57
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
58
|
+
function bulkImportApps(parameters, options) {
|
|
59
|
+
return getDataOrThrow(_017382997(addTenantToParameters({
|
|
60
|
+
body: [],
|
|
61
|
+
...parameters
|
|
62
|
+
}), options));
|
|
63
|
+
}
|
|
50
64
|
/**
|
|
51
65
|
* Search for apps
|
|
52
66
|
*/
|
|
53
|
-
|
|
67
|
+
function searchApps(parameters, options) {
|
|
68
|
+
return getDataOrThrow(_02A616Fc6(addTenantToParameters(parameters), options));
|
|
69
|
+
}
|
|
54
70
|
/**
|
|
55
71
|
* Get all the app tags
|
|
56
72
|
*/
|
|
57
|
-
|
|
73
|
+
function listTags(parameters, options) {
|
|
74
|
+
return getDataOrThrow(_5034D9D7(addTenantToParameters(parameters), options));
|
|
75
|
+
}
|
|
58
76
|
/**
|
|
59
77
|
* Get file meta information from an app execution
|
|
60
78
|
*/
|
|
61
|
-
|
|
79
|
+
function fileMetaFromAppExecution(parameters, options) {
|
|
80
|
+
return getDataOrThrow(_5F5A0682(addTenantToParameters(parameters), options));
|
|
81
|
+
}
|
|
62
82
|
/**
|
|
63
83
|
* Get file preview from an app execution
|
|
64
84
|
*/
|
|
65
|
-
|
|
85
|
+
function filePreviewFromAppExecution(parameters, options) {
|
|
86
|
+
return getDataOrThrow(_6214D18d(addTenantToParameters(parameters), options));
|
|
87
|
+
}
|
|
66
88
|
/**
|
|
67
89
|
* Get an event stream from a given app.
|
|
68
90
|
*/
|
|
69
|
-
|
|
91
|
+
function streamEventsFromApp(parameters, options) {
|
|
92
|
+
return _3B58Db1e(addTenantToParameters(parameters), options);
|
|
93
|
+
}
|
|
70
94
|
/**
|
|
71
95
|
* Download logs for an app execution
|
|
72
96
|
*/
|
|
73
|
-
|
|
97
|
+
function logsFromAppExecution(parameters, options) {
|
|
98
|
+
return getDataOrThrow(_06A967170(addTenantToParameters(parameters), options));
|
|
99
|
+
}
|
|
74
100
|
/**
|
|
75
101
|
* Delete an existing app
|
|
76
102
|
*/
|
|
77
|
-
|
|
103
|
+
function deleteApp(parameters, options) {
|
|
104
|
+
return getDataOrThrow(_01561E78a(addTenantToParameters(parameters), options));
|
|
105
|
+
}
|
|
78
106
|
/**
|
|
79
107
|
* Retrieve an app
|
|
80
108
|
*/
|
|
81
|
-
|
|
109
|
+
function app(parameters, options) {
|
|
110
|
+
return getDataOrThrow(_17A21(addTenantToParameters(parameters), options));
|
|
111
|
+
}
|
|
82
112
|
/**
|
|
83
113
|
* Update an existing app
|
|
84
114
|
*/
|
|
85
|
-
|
|
115
|
+
function updateApp(parameters, options) {
|
|
116
|
+
return getDataOrThrow(_0742Ed768(addTenantToParameters(parameters), options));
|
|
117
|
+
}
|
|
86
118
|
/**
|
|
87
119
|
* Disable the app.
|
|
88
120
|
*/
|
|
89
|
-
|
|
121
|
+
function disableApp(parameters, options) {
|
|
122
|
+
return getDataOrThrow(_0607Ee9E7(addTenantToParameters(parameters), options));
|
|
123
|
+
}
|
|
90
124
|
/**
|
|
91
125
|
* Enable the app.
|
|
92
126
|
*/
|
|
93
|
-
|
|
127
|
+
function enableApp(parameters, options) {
|
|
128
|
+
return getDataOrThrow(_025A6B662(addTenantToParameters(parameters), options));
|
|
129
|
+
}
|
|
94
130
|
//#endregion
|
|
95
131
|
export { app, bulkDeleteApps, bulkDisableApps, bulkEnableApps, bulkExportApps, bulkImportApps, createApp, deleteApp, disableApp, enableApp, fileMetaFromAppExecution, filePreviewFromAppExecution, listTags, logsFromAppExecution, searchApps, searchAppsFromCatalog, streamEventsFromApp, updateApp };
|
package/dist/assets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as assetDependencies, Qo as asset, as as deleteAssetsByQuery, cs as searchAssets, es as createAsset, is as deleteAssetsByIds, ns as deleteAssetLineageEventsByQuery, os as searchAssetLineageEvents, rs as deleteAssetUsagesByQuery, ss as searchAssetUsages, ts as deleteAsset } from "./index-DdTcQbO7.js";
|
|
2
2
|
export { asset, assetDependencies, createAsset, deleteAsset, deleteAssetLineageEventsByQuery, deleteAssetUsagesByQuery, deleteAssetsByIds, deleteAssetsByQuery, searchAssetLineageEvents, searchAssetUsages, searchAssets };
|
package/dist/assets.js
CHANGED
|
@@ -1,49 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as _0179918B5, Et as _03765E0A6, P as _01F1268Ac, Si as _1C95E03c, _o as _55B26Dc3, er as _065D9Abc7, js as _735A5032, rn as _04484B7Fb, wo as _58Ceaf0, y as _015E23Cc6, zr as _07B84118d } from "./sdk.gen-C3IaGDxD.js";
|
|
2
2
|
import { addTenantToParameters, getDataOrThrow } from "./shared.js";
|
|
3
|
-
//#region src/openapi/sdk/
|
|
3
|
+
//#region src/openapi/sdk/Assets.gen.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a new asset
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
function createAsset(parameters, options) {
|
|
8
|
+
return getDataOrThrow(_01F1268Ac(addTenantToParameters(parameters), options));
|
|
9
|
+
}
|
|
8
10
|
/**
|
|
9
11
|
* Delete assets by asset ids
|
|
10
12
|
*/
|
|
11
|
-
|
|
13
|
+
function deleteAssetsByIds(parameters, options) {
|
|
14
|
+
return getDataOrThrow(_07B84118d(addTenantToParameters(parameters), options));
|
|
15
|
+
}
|
|
12
16
|
/**
|
|
13
17
|
* Delete assets by query
|
|
14
18
|
*/
|
|
15
|
-
|
|
19
|
+
function deleteAssetsByQuery(parameters, options) {
|
|
20
|
+
return getDataOrThrow(_55B26Dc3(addTenantToParameters(parameters), options));
|
|
21
|
+
}
|
|
16
22
|
/**
|
|
17
23
|
* Delete asset lineage events by query, hard-delete (purge) only
|
|
18
24
|
*/
|
|
19
|
-
|
|
25
|
+
function deleteAssetLineageEventsByQuery(parameters, options) {
|
|
26
|
+
return getDataOrThrow(_735A5032(addTenantToParameters(parameters), options));
|
|
27
|
+
}
|
|
20
28
|
/**
|
|
21
29
|
* Search for asset lineage events
|
|
22
30
|
*/
|
|
23
|
-
|
|
31
|
+
function searchAssetLineageEvents(parameters, options) {
|
|
32
|
+
return getDataOrThrow(_1C95E03c(addTenantToParameters(parameters), options));
|
|
33
|
+
}
|
|
24
34
|
/**
|
|
25
35
|
* Search for assets
|
|
26
36
|
*/
|
|
27
|
-
|
|
37
|
+
function searchAssets(parameters, options) {
|
|
38
|
+
return getDataOrThrow(_0179918B5(addTenantToParameters(parameters), options));
|
|
39
|
+
}
|
|
28
40
|
/**
|
|
29
41
|
* Delete asset usages by query, hard-delete (purge) only
|
|
30
42
|
*/
|
|
31
|
-
|
|
43
|
+
function deleteAssetUsagesByQuery(parameters, options) {
|
|
44
|
+
return getDataOrThrow(_03765E0A6(addTenantToParameters(parameters), options));
|
|
45
|
+
}
|
|
32
46
|
/**
|
|
33
47
|
* Search for asset usages
|
|
34
48
|
*/
|
|
35
|
-
|
|
49
|
+
function searchAssetUsages(parameters, options) {
|
|
50
|
+
return getDataOrThrow(_015E23Cc6(addTenantToParameters(parameters), options));
|
|
51
|
+
}
|
|
36
52
|
/**
|
|
37
53
|
* Delete an asset
|
|
38
54
|
*/
|
|
39
|
-
|
|
55
|
+
function deleteAsset(parameters, options) {
|
|
56
|
+
return getDataOrThrow(_04484B7Fb(addTenantToParameters(parameters), options));
|
|
57
|
+
}
|
|
40
58
|
/**
|
|
41
59
|
* Retrieve an asset
|
|
42
60
|
*/
|
|
43
|
-
|
|
61
|
+
function asset(parameters, options) {
|
|
62
|
+
return getDataOrThrow(_58Ceaf0(addTenantToParameters(parameters), options));
|
|
63
|
+
}
|
|
44
64
|
/**
|
|
45
65
|
* Get an asset dependencies
|
|
46
66
|
*/
|
|
47
|
-
|
|
67
|
+
function assetDependencies(parameters, options) {
|
|
68
|
+
return getDataOrThrow(_065D9Abc7(addTenantToParameters(parameters), options));
|
|
69
|
+
}
|
|
48
70
|
//#endregion
|
|
49
71
|
export { asset, assetDependencies, createAsset, deleteAsset, deleteAssetLineageEventsByQuery, deleteAssetUsagesByQuery, deleteAssetsByIds, deleteAssetsByQuery, searchAssetLineageEvents, searchAssetUsages, searchAssets };
|
package/dist/audit-logs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Go as exportAuditLogsForAllTenants, Jo as listAuditLogFromResourceId, Ko as findAuditLog, Wo as exportAuditLogs, Xo as searchAuditLogs, Yo as resourceDiffFromAuditLog, Zo as searchAuditLogsForAllTenants, qo as globalResourceDiffFromAuditLog } from "./index-DdTcQbO7.js";
|
|
2
2
|
export { exportAuditLogs, exportAuditLogsForAllTenants, findAuditLog, globalResourceDiffFromAuditLog, listAuditLogFromResourceId, resourceDiffFromAuditLog, searchAuditLogs, searchAuditLogsForAllTenants };
|