@kestra-io/kestra-sdk 2.0.0-kdevelop.17847250.03d97066.b669944a → 2.0.0
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 +12 -0
- package/dist/{Banners.gen-BCEmX5bI.d.ts → Banners.gen-D-l25TFP.d.ts} +2 -2
- package/dist/{KillSwitches.gen-CeMW5zty.d.ts → KillSwitches.gen-B9QjroGH.d.ts} +2 -2
- package/dist/LoginAdmin.gen-c2L9vbD0.d.ts +9 -0
- package/dist/{ScimGroups.gen-Dok9PKgV.d.ts → ScimGroups.gen-9w0Q97UV.d.ts} +2 -2
- package/dist/{ScimUsers.gen-3K9n6FhI.d.ts → ScimUsers.gen-BzaLXJsn.d.ts} +2 -2
- package/dist/{TenantAccessAdmin.gen-V3NrrKiv.d.ts → TenantAccessAdmin.gen-DjnRcO7O.d.ts} +1 -1
- package/dist/{TenantsAdmin.gen-b_2ZBdhu.d.ts → TenantsAdmin.gen-zuuhpskW.d.ts} +2 -2
- package/dist/ai-admin.d.ts +2 -0
- package/dist/ai-admin.js +32 -0
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +33 -3
- package/dist/all.d.ts +12 -0
- package/dist/all.js +1258 -0
- package/dist/apps.d.ts +2 -2
- package/dist/apps.js +8 -2
- package/dist/assets.d.ts +2 -2
- package/dist/assets.js +25 -3
- package/dist/audit-logs.d.ts +1 -1
- package/dist/audit-logs.js +1 -1
- package/dist/auths.d.ts +1 -1
- package/dist/auths.js +5 -2
- package/dist/banners.d.ts +1 -1
- package/dist/banners.js +1 -1
- package/dist/bindings.d.ts +1 -1
- package/dist/bindings.js +1 -1
- package/dist/blueprint-tags.d.ts +1 -1
- package/dist/blueprint-tags.js +1 -1
- package/dist/blueprints.d.ts +2 -2
- package/dist/blueprints.js +8 -2
- package/dist/cases-admin.d.ts +2 -0
- package/dist/cases-admin.js +42 -0
- package/dist/cases.d.ts +2 -0
- package/dist/cases.js +293 -0
- package/dist/client.d.ts +1 -1
- package/dist/{client.gen-BFtggUgd.js → client.gen-DsMlsyw3.js} +22 -12
- package/dist/client.js +1 -1
- package/dist/cluster.d.ts +1 -1
- package/dist/cluster.js +1 -1
- package/dist/dashboards-admin.d.ts +1 -1
- package/dist/dashboards-admin.js +1 -1
- package/dist/dashboards.d.ts +2 -2
- package/dist/dashboards.js +15 -8
- package/dist/executions.d.ts +2 -2
- package/dist/executions.js +8 -2
- package/dist/expressions.d.ts +1 -1
- package/dist/expressions.js +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +1 -1
- package/dist/flows.d.ts +2 -2
- package/dist/flows.js +54 -6
- package/dist/groups.d.ts +1 -1
- package/dist/groups.js +1 -1
- package/dist/index-Ds2adZAN.d.ts +3066 -0
- package/dist/index.d.ts +3 -57
- package/dist/index.js +96 -137
- package/dist/invitations.d.ts +1 -1
- package/dist/invitations.js +1 -1
- package/dist/kill-switches.d.ts +1 -1
- package/dist/kill-switches.js +1 -1
- package/dist/kv.d.ts +1 -1
- package/dist/kv.js +1 -1
- package/dist/login-admin.d.ts +2 -0
- package/dist/login-admin.js +8 -0
- package/dist/logs.d.ts +1 -1
- package/dist/logs.js +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/metrics.d.ts +1 -1
- package/dist/metrics.js +1 -1
- package/dist/misc.d.ts +2 -2
- package/dist/misc.js +15 -3
- package/dist/namespaces.d.ts +2 -2
- package/dist/namespaces.js +2 -23
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.js +1 -1
- package/dist/outputs.d.ts +2 -2
- package/dist/outputs.js +9 -3
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.js +11 -2
- package/dist/policies.d.ts +2 -0
- package/dist/policies.js +176 -0
- package/dist/promote.d.ts +2 -0
- package/dist/promote.js +114 -0
- package/dist/quotas.d.ts +2 -2
- package/dist/quotas.js +14 -5
- package/dist/reusable-inputs-admin.d.ts +1 -1
- package/dist/reusable-inputs-admin.js +4 -4
- package/dist/reusable-inputs.d.ts +1 -1
- package/dist/reusable-inputs.js +1 -1
- package/dist/roles.d.ts +1 -1
- package/dist/roles.js +1 -1
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/scim-configuration.d.ts +1 -1
- package/dist/scim-configuration.js +1 -1
- package/dist/scim-groups.d.ts +1 -1
- package/dist/scim-groups.js +1 -1
- package/dist/scim-users.d.ts +1 -1
- package/dist/scim-users.js +1 -1
- package/dist/{sdk.gen-COMTygrM.js → sdk.gen-BeCaZ3ce.js} +6731 -3126
- package/dist/{sdk.gen-DqoAawYJ.d.ts → sdk.gen-fpaWrDYl.d.ts} +1570 -655
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.js +1 -1
- package/dist/security-integrations.d.ts +1 -1
- package/dist/security-integrations.js +1 -1
- package/dist/service-account.d.ts +2 -2
- package/dist/service-account.js +15 -6
- package/dist/services.d.ts +1 -1
- package/dist/services.js +1 -1
- package/dist/tenant-access-admin.d.ts +1 -1
- package/dist/tenant-access-admin.js +1 -1
- package/dist/tenant-access.d.ts +1 -1
- package/dist/tenant-access.js +1 -1
- package/dist/tenants-admin.d.ts +1 -1
- package/dist/tenants-admin.js +1 -1
- package/dist/tenants.d.ts +1 -1
- package/dist/tenants.js +1 -1
- package/dist/test-suites.d.ts +1 -1
- package/dist/test-suites.js +1 -1
- package/dist/triggers.d.ts +1 -1
- package/dist/triggers.js +1 -1
- package/dist/types.gen-DSoptGKe.d.ts +27402 -0
- package/dist/users.d.ts +2 -2
- package/dist/users.js +20 -5
- package/dist/worker-auth-admin.d.ts +1 -1
- package/dist/worker-auth-admin.js +1 -1
- package/dist/worker-auth.d.ts +1 -1
- package/dist/worker-auth.js +1 -1
- package/dist/worker-groups.d.ts +1 -1
- package/dist/worker-groups.js +1 -1
- package/dist/worker-queues-admin.d.ts +1 -1
- package/dist/worker-queues-admin.js +1 -1
- package/dist/worker-queues.d.ts +1 -1
- package/dist/worker-queues.js +1 -1
- package/package.json +14 -4
- package/dist/Ai.gen-Daw68Boc.d.ts +0 -36
- package/dist/Apps.gen-yrYAXhzh.d.ts +0 -157
- package/dist/Assets.gen-C3EWrAgr.d.ts +0 -72
- package/dist/AuditLogs.gen-CbhsiXar.d.ts +0 -43
- package/dist/Auths.gen-Tm_Luaqx.d.ts +0 -39
- package/dist/Bindings.gen-B-U1Hpnh.d.ts +0 -36
- package/dist/BlueprintTags.gen-Dc-4QX1h.d.ts +0 -18
- package/dist/Blueprints.gen-BQifg9pA.d.ts +0 -106
- package/dist/Cluster.gen-B6ypf3vE.d.ts +0 -13
- package/dist/Dashboards.gen-C8bjHwsZ.d.ts +0 -72
- package/dist/DashboardsAdmin.gen-91K6Fx4L.d.ts +0 -12
- package/dist/Executions.gen-Cga6Tfwy.d.ts +0 -368
- package/dist/Expressions.gen-nsvwKxds.d.ts +0 -12
- package/dist/Files.gen-qGZIA-V3.d.ts +0 -66
- package/dist/Flows.gen-CeU2k4Ud.d.ts +0 -213
- package/dist/Groups.gen-BFoSX1D8.d.ts +0 -72
- package/dist/Invitations.gen-b-68dFRi.d.ts +0 -37
- package/dist/Kv.gen-evjrIdHc.d.ts +0 -42
- package/dist/Login.gen-Bt4rXPWd.d.ts +0 -9
- package/dist/Logs.gen-ClAiwNTg.d.ts +0 -42
- package/dist/Mcp.gen-ZykLnjze.d.ts +0 -49
- package/dist/Metrics.gen-CNzkxnnD.d.ts +0 -42
- package/dist/Misc.gen-DZbKrbvS.d.ts +0 -115
- package/dist/Namespaces.gen-B-yquaqR.d.ts +0 -96
- package/dist/Notifications.gen-D7OrvOmY.d.ts +0 -12
- package/dist/Outputs.gen-Dewv2gE9.d.ts +0 -20
- package/dist/Plugins.gen-DC2HfU0s.d.ts +0 -64
- package/dist/Quotas.gen-BNwOv57d.d.ts +0 -12
- package/dist/ReusableInputs.gen-RdfBjA8j.d.ts +0 -24
- package/dist/ReusableInputsAdmin.gen-Ldf3lS9X.d.ts +0 -24
- package/dist/Roles.gen-CeOTUTBj.d.ts +0 -48
- package/dist/ScimConfiguration.gen-CvbVWU8n.d.ts +0 -21
- package/dist/Secrets.gen-BKS59dr9.d.ts +0 -12
- package/dist/SecurityIntegrations.gen-DqtcyFy6.d.ts +0 -60
- package/dist/ServiceAccount.gen-CaKbl8tG.d.ts +0 -87
- package/dist/Services.gen-Qqza_QqS.d.ts +0 -10
- package/dist/TenantAccess.gen-N6AsmMz0.d.ts +0 -30
- package/dist/Tenants.gen-DjlHioms.d.ts +0 -32
- package/dist/TestSuites.gen-BYrJSFj-.d.ts +0 -92
- package/dist/Triggers.gen-B_eTXYvu.d.ts +0 -144
- package/dist/Users.gen-BWcbMN7o.d.ts +0 -59
- package/dist/WorkerAuth.gen-BqYe-AO8.d.ts +0 -7
- package/dist/WorkerAuthAdmin.gen-BXGn7B6k.d.ts +0 -8
- package/dist/WorkerGroups.gen-BQB3ibvp.d.ts +0 -36
- package/dist/WorkerQueues.gen-D04plYlx.d.ts +0 -7
- package/dist/WorkerQueuesAdmin.gen-DGvgPLh1.d.ts +0 -17
- package/dist/login.d.ts +0 -2
- package/dist/login.js +0 -8
- package/dist/types.gen-F2Ye7Spd.d.ts +0 -15301
package/README.md
CHANGED
|
@@ -15,6 +15,18 @@ npm install @kestra-io/kestra-sdk
|
|
|
15
15
|
|
|
16
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
17
|
|
|
18
|
+
### Entry points
|
|
19
|
+
|
|
20
|
+
| Import | Contents |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `@kestra-io/kestra-sdk` | `useClient` / `configureClient` / `setMockClient`, and every generated **type** |
|
|
23
|
+
| `@kestra-io/kestra-sdk/client` | the shared HTTP client |
|
|
24
|
+
| `@kestra-io/kestra-sdk/<module>` | the operations of one module, e.g. `/flows`, `/executions` |
|
|
25
|
+
| `@kestra-io/kestra-sdk/all` | every operation at once — named exports, plus the namespace as `default` |
|
|
26
|
+
|
|
27
|
+
The root entry exports no operations. Reach an operation through its module (the tree-shakeable
|
|
28
|
+
form used throughout this guide), or through `/all` if one import is preferable to several.
|
|
29
|
+
|
|
18
30
|
### Configure the client
|
|
19
31
|
|
|
20
32
|
Import and configure the shared HTTP client once, at the entry point of your application:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Bi as Banner } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { Os as _3D7A5F48, Pr as _0561Ad6Ab, ar as _04B5D3B49, bs as _3A626Bff } from "./sdk.gen-fpaWrDYl.js";
|
|
3
3
|
|
|
4
4
|
//#region src/openapi/sdk/Banners.gen.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HM as KillSwitch } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { Uc as _56C0Cddb, ic as _489De83d, ja as _1013D24e, tn as _0380059D8 } from "./sdk.gen-fpaWrDYl.js";
|
|
3
3
|
|
|
4
4
|
//#region src/openapi/sdk/KillSwitches.gen.d.ts
|
|
5
5
|
/**
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { $9 as UsernamePasswordCredentials } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { La as _1467C4Db } from "./sdk.gen-fpaWrDYl.js";
|
|
3
|
+
|
|
4
|
+
//#region src/openapi/sdk/LoginAdmin.gen.d.ts
|
|
5
|
+
declare function login(parameters: UsernamePasswordCredentials, options?: Omit<Parameters<typeof _1467C4Db>[1], 'throwOnError'>): Promise<{
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { login as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PV as PatchRequest, a$ as SearchRequest, dX as ScimUser, lX as ScimResource } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { Ct as _029Da9A7c, Gu as c23903c, On as _041E4E0A1, Yn as _04763C298, ei as _05Fc1D744, ur as _04Ca27C03, wa as _0E583313 } from "./sdk.gen-fpaWrDYl.js";
|
|
3
3
|
|
|
4
4
|
//#region src/openapi/sdk/ScimGroups.gen.d.ts
|
|
5
5
|
declare function queryGroups(parameters: Omit<Parameters<typeof _05Fc1D744>[0], 'tenant'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PV as PatchRequest, a$ as SearchRequest, dX as ScimUser, lX as ScimResource } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { Pn as _0436B14E3, dc as _4B7C6Aa0, eu as _6Ac6Cc58, ha as _0A933De0, jr as _0541C980c, qa as _191553Cf, tt as _022Bb8541 } from "./sdk.gen-fpaWrDYl.js";
|
|
3
3
|
|
|
4
4
|
//#region src/openapi/sdk/ScimUsers.gen.d.ts
|
|
5
5
|
declare function queryUsers(parameters: Omit<Parameters<typeof _0A933De0>[0], 'tenant'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e4 as Tenant } from "./types.gen-DSoptGKe.js";
|
|
2
|
+
import { Uo as _30Dbd29e, _c as _4Ed5363c, cl as _5Db1D8a, su as _6C815Daf } from "./sdk.gen-fpaWrDYl.js";
|
|
3
3
|
|
|
4
4
|
//#region src/openapi/sdk/TenantsAdmin.gen.d.ts
|
|
5
5
|
/**
|
package/dist/ai-admin.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Sn as _041B6F32e, Uo as _30Dbd29f, cl as _5Db1D8b, su as _6C815Db0 } from "./sdk.gen-BeCaZ3ce.js";
|
|
2
|
+
import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
|
|
3
|
+
//#region src/openapi/sdk/AiAdmin.gen.ts
|
|
4
|
+
/**
|
|
5
|
+
* List the caller's Copilot conversation threads (EE)
|
|
6
|
+
*/
|
|
7
|
+
function list(parameters, options) {
|
|
8
|
+
return getDataOrThrow(_041B6F32e(addTenantToParameters(parameters), options));
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Create a Copilot conversation thread
|
|
12
|
+
*/
|
|
13
|
+
function create(parameters, options) {
|
|
14
|
+
return getDataOrThrow(_6C815Db0({
|
|
15
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
16
|
+
apiCreateThreadRequest: parameters
|
|
17
|
+
}, options));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Soft-delete a Copilot conversation thread (EE)
|
|
21
|
+
*/
|
|
22
|
+
function deleteAI(parameters, options) {
|
|
23
|
+
return getDataOrThrow(_30Dbd29f(addTenantToParameters(parameters), options));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Fetch a Copilot thread with its full message history
|
|
27
|
+
*/
|
|
28
|
+
function get(parameters, options) {
|
|
29
|
+
return getDataOrThrow(_5Db1D8b(addTenantToParameters(parameters), options));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { create, deleteAI, get, list };
|
package/dist/ai.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { generateApp, generateDashboard, generateFlow, generateTestSuite, providers };
|
|
1
|
+
import { Cu as generateDashboard, Du as rename, Eu as providers, Su as generateApp, Tu as generateTestSuite, bu as chat, wu as generateFlow, xu as confirm } from "./index-Ds2adZAN.js";
|
|
2
|
+
export { chat, confirm, generateApp, generateDashboard, generateFlow, generateTestSuite, providers, rename };
|
package/dist/ai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as _037B4C8C2, Fl as _6667C843, Mo as _2E9358, Rc as _55628B91, dl as _5Ded489f, gs as _38B0E6C0, ns as _34D9Fc6c, q as _020A3475e } from "./sdk.gen-BeCaZ3ce.js";
|
|
2
2
|
import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
|
|
3
3
|
//#region src/openapi/sdk/Ai.gen.ts
|
|
4
4
|
/**
|
|
@@ -15,7 +15,7 @@ function generateApp(parameters, options) {
|
|
|
15
15
|
}));
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Generate or regenerate a dashboard based on a prompt
|
|
18
|
+
* Generate or regenerate a dashboard based on a prompt (EE only)
|
|
19
19
|
*/
|
|
20
20
|
function generateDashboard(parameters, options) {
|
|
21
21
|
return getDataOrThrow(_5Ded489f({
|
|
@@ -59,5 +59,35 @@ function generateTestSuite(parameters, options) {
|
|
|
59
59
|
function providers(parameters, options) {
|
|
60
60
|
return getDataOrThrow(_020A3475e(addTenantToParameters(parameters), options));
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Open a streaming agent chat turn (SSE)
|
|
64
|
+
*/
|
|
65
|
+
function chat(parameters, options) {
|
|
66
|
+
return _2E9358({
|
|
67
|
+
...parameters,
|
|
68
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
69
|
+
apiChatTurnRequest: parameters
|
|
70
|
+
}, options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Confirm a proposed action and stream the resumed turn (SSE)
|
|
74
|
+
*/
|
|
75
|
+
function confirm(parameters, options) {
|
|
76
|
+
return _38B0E6C0({
|
|
77
|
+
...parameters,
|
|
78
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
79
|
+
apiConfirmActionRequest: parameters
|
|
80
|
+
}, options);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Rename a Copilot conversation thread (EE)
|
|
84
|
+
*/
|
|
85
|
+
function rename(parameters, options) {
|
|
86
|
+
return getDataOrThrow(_037B4C8C2({
|
|
87
|
+
...parameters,
|
|
88
|
+
tenant: resolveTenant(parameters?.tenant),
|
|
89
|
+
apiRenameThreadRequest: parameters
|
|
90
|
+
}, options));
|
|
91
|
+
}
|
|
62
92
|
//#endregion
|
|
63
|
-
export { generateApp, generateDashboard, generateFlow, generateTestSuite, providers };
|
|
93
|
+
export { chat, confirm, generateApp, generateDashboard, generateFlow, generateTestSuite, providers, rename };
|