windmill-client 1.876.0 → 1.880.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/dist/client.d.ts +38 -0
- package/dist/client.mjs +70 -1
- package/dist/core/OpenAPI.mjs +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +190 -2
- package/dist/index.mjs +4 -2
- package/dist/services.gen.d.ts +65 -2
- package/dist/services.gen.mjs +116 -1
- package/dist/types.gen.d.ts +460 -64
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -856,6 +856,10 @@ export type ForloopFlow = {
|
|
|
856
856
|
*/
|
|
857
857
|
parallelism?: InputTransform;
|
|
858
858
|
squash?: boolean;
|
|
859
|
+
/**
|
|
860
|
+
* Optional expression evaluated once per iteration into the label the run viewers show for it, e.g. 'flow_input.iter.value.name'. It can reference 'flow_input.iter' and 'results'. Purely informational, a failing expression leaves the iteration unlabelled and never fails it. Labels are capped at 100 characters
|
|
861
|
+
*/
|
|
862
|
+
iteration_label?: InputTransform;
|
|
859
863
|
};
|
|
860
864
|
/**
|
|
861
865
|
* Executes nested modules repeatedly until stopped. The implicit iterator is the iteration counter, so 'flow_input.iter.value' equals 'flow_input.iter.index' (0, 1, 2, ...) and never carries state. To carry state across iterations, a step reads its own previous-iteration result via 'results.<its_own_id>' with a first-iteration fallback - the loop's stop_after_if must then be on that inner step (a plain single-step body with stop_after_if on the loop module does not resolve 'results' across iterations and never terminates); plain counters can instead be derived from 'flow_input.iter.index', which works in every configuration. stop_after_if is evaluated after each iteration - on the loop module 'result' is the last iteration's result
|
|
@@ -1232,6 +1236,21 @@ export type FlowStatus = {
|
|
|
1232
1236
|
fail_count?: number;
|
|
1233
1237
|
failed_jobs?: Array<(string)>;
|
|
1234
1238
|
};
|
|
1239
|
+
/**
|
|
1240
|
+
* On a root flow, the steps at any depth that failed and that the flow went past because of continue_on_error (at most 100).
|
|
1241
|
+
*/
|
|
1242
|
+
continued_on_error?: Array<{
|
|
1243
|
+
id: string;
|
|
1244
|
+
job: string;
|
|
1245
|
+
}>;
|
|
1246
|
+
/**
|
|
1247
|
+
* In a flow test run, deployed subflow path -> the flow value with the test's step overrides applied, run in place of the deployed subflow.
|
|
1248
|
+
*/
|
|
1249
|
+
test_subflows?: {
|
|
1250
|
+
[key: string]: {
|
|
1251
|
+
[key: string]: unknown;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1235
1254
|
};
|
|
1236
1255
|
export type FlowStatusModule = {
|
|
1237
1256
|
type: 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
|
|
@@ -1247,6 +1266,10 @@ export type FlowStatusModule = {
|
|
|
1247
1266
|
};
|
|
1248
1267
|
flow_jobs?: Array<(string)>;
|
|
1249
1268
|
flow_jobs_success?: Array<(boolean)>;
|
|
1269
|
+
/**
|
|
1270
|
+
* For a for-loop step whose iteration_label is set, each iteration's label, aligned with flow_jobs. An entry is null when its label evaluated to nothing
|
|
1271
|
+
*/
|
|
1272
|
+
flow_jobs_labels?: Array<(string | null)>;
|
|
1250
1273
|
flow_jobs_duration?: {
|
|
1251
1274
|
started_at?: Array<(string)>;
|
|
1252
1275
|
duration_ms?: Array<(number)>;
|
|
@@ -2536,6 +2559,74 @@ export type RunnableItem = {
|
|
|
2536
2559
|
*/
|
|
2537
2560
|
ws_specific?: boolean;
|
|
2538
2561
|
};
|
|
2562
|
+
/**
|
|
2563
|
+
* A script as returned by the list endpoint: the deployed row's summary
|
|
2564
|
+
* fields, without its content, lock or schema.
|
|
2565
|
+
*
|
|
2566
|
+
*/
|
|
2567
|
+
export type ListableScript = {
|
|
2568
|
+
hash: string;
|
|
2569
|
+
path: string;
|
|
2570
|
+
summary: string;
|
|
2571
|
+
description?: string;
|
|
2572
|
+
created_at: string;
|
|
2573
|
+
archived: boolean;
|
|
2574
|
+
extra_perms: {
|
|
2575
|
+
[key: string]: (boolean);
|
|
2576
|
+
};
|
|
2577
|
+
language: ScriptLang;
|
|
2578
|
+
kind: 'script' | 'failure' | 'trigger' | 'approval' | 'preprocessor';
|
|
2579
|
+
starred: boolean;
|
|
2580
|
+
tag: string | null;
|
|
2581
|
+
/**
|
|
2582
|
+
* True on rows built from a draft that was never deployed. Omitted
|
|
2583
|
+
* on deployed rows.
|
|
2584
|
+
*
|
|
2585
|
+
*/
|
|
2586
|
+
draft_only?: boolean;
|
|
2587
|
+
has_deploy_errors: boolean;
|
|
2588
|
+
ws_error_handler_muted: boolean | null;
|
|
2589
|
+
auto_kind?: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* Omitted when false.
|
|
2592
|
+
*/
|
|
2593
|
+
use_codebase?: boolean;
|
|
2594
|
+
/**
|
|
2595
|
+
* Only returned with `with_deployment_msg=true`.
|
|
2596
|
+
*/
|
|
2597
|
+
deployment_msg?: string;
|
|
2598
|
+
labels?: Array<(string)>;
|
|
2599
|
+
inherited_labels?: Array<(string)>;
|
|
2600
|
+
/**
|
|
2601
|
+
* True when the authed user has a draft for this
|
|
2602
|
+
* script — either no deployed row exists at this
|
|
2603
|
+
* path (draft-only) or the user saved a per-user
|
|
2604
|
+
* draft on top of the deployed row. Omitted when false.
|
|
2605
|
+
*
|
|
2606
|
+
*/
|
|
2607
|
+
is_draft?: boolean;
|
|
2608
|
+
/**
|
|
2609
|
+
* User-typed path the editor has staged but not
|
|
2610
|
+
* yet deployed. Surfaced for draft-only rows so
|
|
2611
|
+
* the home list can render the meaningful name
|
|
2612
|
+
* instead of the autogenerated
|
|
2613
|
+
* `u/{user}/draft_{uuid}` URL path. Omitted
|
|
2614
|
+
* when unchanged.
|
|
2615
|
+
*
|
|
2616
|
+
*/
|
|
2617
|
+
draft_path?: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* Workspace users (including the authed user, and
|
|
2620
|
+
* the legacy NULL-email row if any) who have a
|
|
2621
|
+
* per-user draft at this path. Drives the home
|
|
2622
|
+
* page's user-avatar circles inside the Draft
|
|
2623
|
+
* badge. Omitted when no drafts exist.
|
|
2624
|
+
*
|
|
2625
|
+
*/
|
|
2626
|
+
draft_users?: Array<{
|
|
2627
|
+
username?: string | null;
|
|
2628
|
+
}>;
|
|
2629
|
+
};
|
|
2539
2630
|
export type Script = {
|
|
2540
2631
|
workspace_id?: string;
|
|
2541
2632
|
hash: string;
|
|
@@ -7358,6 +7449,23 @@ export type AutoscalingEvent = {
|
|
|
7358
7449
|
reason?: string;
|
|
7359
7450
|
applied_at?: string;
|
|
7360
7451
|
};
|
|
7452
|
+
export type AutoscalingDiagnostics = {
|
|
7453
|
+
recording_until?: string | null;
|
|
7454
|
+
recording_started_by?: string | null;
|
|
7455
|
+
decision_count: number;
|
|
7456
|
+
decisions: Array<AutoscalingDecision>;
|
|
7457
|
+
};
|
|
7458
|
+
export type AutoscalingDecision = {
|
|
7459
|
+
recorded_at: string;
|
|
7460
|
+
worker_count: number;
|
|
7461
|
+
occupancy_rate_15s?: number | null;
|
|
7462
|
+
occupancy_rate_5m?: number | null;
|
|
7463
|
+
occupancy_rate_30m?: number | null;
|
|
7464
|
+
jobs_waiting: {
|
|
7465
|
+
[key: string]: (number);
|
|
7466
|
+
};
|
|
7467
|
+
decision: string;
|
|
7468
|
+
};
|
|
7361
7469
|
export type CriticalAlert = {
|
|
7362
7470
|
/**
|
|
7363
7471
|
* Unique identifier for the alert
|
|
@@ -13387,37 +13495,7 @@ export type ListScriptsData = {
|
|
|
13387
13495
|
withoutDescription?: boolean;
|
|
13388
13496
|
workspace: string;
|
|
13389
13497
|
};
|
|
13390
|
-
export type ListScriptsResponse = Array<
|
|
13391
|
-
/**
|
|
13392
|
-
* True when the authed user has a draft for this
|
|
13393
|
-
* script — either no deployed row exists at this
|
|
13394
|
-
* path (draft-only) or the user saved a per-user
|
|
13395
|
-
* draft on top of the deployed row.
|
|
13396
|
-
*
|
|
13397
|
-
*/
|
|
13398
|
-
is_draft?: boolean;
|
|
13399
|
-
/**
|
|
13400
|
-
* User-typed path the editor has staged but not
|
|
13401
|
-
* yet deployed. Surfaced for draft-only rows so
|
|
13402
|
-
* the home list can render the meaningful name
|
|
13403
|
-
* instead of the autogenerated
|
|
13404
|
-
* `u/{user}/draft_{uuid}` URL path. Omitted
|
|
13405
|
-
* when unchanged.
|
|
13406
|
-
*
|
|
13407
|
-
*/
|
|
13408
|
-
draft_path?: string;
|
|
13409
|
-
/**
|
|
13410
|
-
* Workspace users (including the authed user, and
|
|
13411
|
-
* the legacy NULL-email row if any) who have a
|
|
13412
|
-
* per-user draft at this path. Drives the home
|
|
13413
|
-
* page's user-avatar circles inside the Draft
|
|
13414
|
-
* badge. Omitted when no drafts exist.
|
|
13415
|
-
*
|
|
13416
|
-
*/
|
|
13417
|
-
draft_users?: Array<{
|
|
13418
|
-
username?: string | null;
|
|
13419
|
-
}>;
|
|
13420
|
-
})>;
|
|
13498
|
+
export type ListScriptsResponse = Array<ListableScript>;
|
|
13421
13499
|
export type ListScriptPathsData = {
|
|
13422
13500
|
workspace: string;
|
|
13423
13501
|
};
|
|
@@ -14715,6 +14793,86 @@ export type ResultByIdData = {
|
|
|
14715
14793
|
workspace: string;
|
|
14716
14794
|
};
|
|
14717
14795
|
export type ResultByIdResponse = unknown;
|
|
14796
|
+
export type GetApprovalStepDetailData = {
|
|
14797
|
+
/**
|
|
14798
|
+
* id of the flow run
|
|
14799
|
+
*/
|
|
14800
|
+
jobId: string;
|
|
14801
|
+
/**
|
|
14802
|
+
* id of the approval step in the flow
|
|
14803
|
+
*/
|
|
14804
|
+
stepId: string;
|
|
14805
|
+
workspace: string;
|
|
14806
|
+
};
|
|
14807
|
+
export type GetApprovalStepDetailResponse = {
|
|
14808
|
+
flow_id: string;
|
|
14809
|
+
step_id: string;
|
|
14810
|
+
/**
|
|
14811
|
+
* not_reached: the step's own script has not finished yet. failed: the step failed before asking for approval. waiting: the run is suspended on this step. resumed: the run moved past this step. not_resumed: the run ended while waiting (denied, timed out or cancelled).
|
|
14812
|
+
*
|
|
14813
|
+
*/
|
|
14814
|
+
status: 'not_reached' | 'skipped' | 'failed' | 'waiting' | 'resumed' | 'not_resumed';
|
|
14815
|
+
/**
|
|
14816
|
+
* the job of the approval step, once it ran
|
|
14817
|
+
*/
|
|
14818
|
+
step_job?: string;
|
|
14819
|
+
step_summary?: string;
|
|
14820
|
+
/**
|
|
14821
|
+
* number of approvals required to resume
|
|
14822
|
+
*/
|
|
14823
|
+
required_events: number;
|
|
14824
|
+
/**
|
|
14825
|
+
* seconds the run waits for approvals
|
|
14826
|
+
*/
|
|
14827
|
+
timeout?: number;
|
|
14828
|
+
/**
|
|
14829
|
+
* when the wait times out, while waiting
|
|
14830
|
+
*/
|
|
14831
|
+
suspended_until?: string;
|
|
14832
|
+
/**
|
|
14833
|
+
* form schema for the approval step
|
|
14834
|
+
*/
|
|
14835
|
+
form_schema?: unknown;
|
|
14836
|
+
hide_cancel: boolean;
|
|
14837
|
+
continue_on_disapprove_timeout: boolean;
|
|
14838
|
+
skin: 'detailed' | 'minimal';
|
|
14839
|
+
approval_conditions?: {
|
|
14840
|
+
user_auth_required: boolean;
|
|
14841
|
+
user_groups_required: Array<(string)>;
|
|
14842
|
+
self_approval_disabled: boolean;
|
|
14843
|
+
};
|
|
14844
|
+
/**
|
|
14845
|
+
* whether the caller can approve, set only while waiting
|
|
14846
|
+
*/
|
|
14847
|
+
can_approve?: boolean;
|
|
14848
|
+
/**
|
|
14849
|
+
* description returned by the approval step's script
|
|
14850
|
+
*/
|
|
14851
|
+
description?: unknown;
|
|
14852
|
+
/**
|
|
14853
|
+
* default form values returned by the approval step's script
|
|
14854
|
+
*/
|
|
14855
|
+
default_args?: unknown;
|
|
14856
|
+
/**
|
|
14857
|
+
* form enums returned by the approval step's script
|
|
14858
|
+
*/
|
|
14859
|
+
enums?: unknown;
|
|
14860
|
+
/**
|
|
14861
|
+
* approvals received. approved, value and created_at are known only while the run is live; a finished run keeps approver names alone.
|
|
14862
|
+
*
|
|
14863
|
+
*/
|
|
14864
|
+
approvals: Array<{
|
|
14865
|
+
resume_id: number;
|
|
14866
|
+
approver: string;
|
|
14867
|
+
approved?: boolean;
|
|
14868
|
+
value?: unknown;
|
|
14869
|
+
created_at?: string;
|
|
14870
|
+
}>;
|
|
14871
|
+
/**
|
|
14872
|
+
* the run's error, when status is not_resumed
|
|
14873
|
+
*/
|
|
14874
|
+
error?: unknown;
|
|
14875
|
+
};
|
|
14718
14876
|
export type GetJobViewTokenData = {
|
|
14719
14877
|
id: string;
|
|
14720
14878
|
workspace: string;
|
|
@@ -15079,6 +15237,37 @@ export type RunFlowDependenciesAsyncData = {
|
|
|
15079
15237
|
workspace: string;
|
|
15080
15238
|
};
|
|
15081
15239
|
export type RunFlowDependenciesAsyncResponse = string;
|
|
15240
|
+
export type RunFlowTestData = {
|
|
15241
|
+
/**
|
|
15242
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
15243
|
+
*/
|
|
15244
|
+
jobId?: string;
|
|
15245
|
+
path: string;
|
|
15246
|
+
requestBody: {
|
|
15247
|
+
args?: ScriptArgs;
|
|
15248
|
+
/**
|
|
15249
|
+
* step id -> override. A step inside a subflow is named by the path of step ids to it, `sub:inner` for step `inner` of the subflow that step `sub` calls.
|
|
15250
|
+
*/
|
|
15251
|
+
steps?: {
|
|
15252
|
+
[key: string]: {
|
|
15253
|
+
/**
|
|
15254
|
+
* the step is skipped and returns this value
|
|
15255
|
+
*/
|
|
15256
|
+
return_value?: unknown;
|
|
15257
|
+
/**
|
|
15258
|
+
* name of a function of the code of `caller_job_id` that runs instead of the step (exported, in TypeScript)
|
|
15259
|
+
*/
|
|
15260
|
+
function?: string;
|
|
15261
|
+
};
|
|
15262
|
+
};
|
|
15263
|
+
/**
|
|
15264
|
+
* the job whose code defines the replacing functions, usually the calling test; a script run or a script preview. Required with a `function` override.
|
|
15265
|
+
*/
|
|
15266
|
+
caller_job_id?: string;
|
|
15267
|
+
};
|
|
15268
|
+
workspace: string;
|
|
15269
|
+
};
|
|
15270
|
+
export type RunFlowTestResponse = string;
|
|
15082
15271
|
export type RunFlowPreviewData = {
|
|
15083
15272
|
/**
|
|
15084
15273
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
@@ -16850,7 +17039,8 @@ export type CompleteAiData = {
|
|
|
16850
17039
|
system: string;
|
|
16851
17040
|
user: string;
|
|
16852
17041
|
/**
|
|
16853
|
-
* defaults to the AI config's default model
|
|
17042
|
+
* defaults to the AI config's default model. Must be enabled in the AI settings, or be the default, metadata or code-completion model.
|
|
17043
|
+
*
|
|
16854
17044
|
*/
|
|
16855
17045
|
model?: AIProviderModel;
|
|
16856
17046
|
max_tokens?: number;
|
|
@@ -17078,6 +17268,17 @@ export type GetAiSessionShareStatusData = {
|
|
|
17078
17268
|
export type GetAiSessionShareStatusResponse = {
|
|
17079
17269
|
share?: SharedAiSessionInfo;
|
|
17080
17270
|
};
|
|
17271
|
+
export type ListSharedAiSessionsData = {
|
|
17272
|
+
workspace: string;
|
|
17273
|
+
};
|
|
17274
|
+
export type ListSharedAiSessionsResponse = Array<(SharedAiSessionInfo & {
|
|
17275
|
+
mine: boolean;
|
|
17276
|
+
session_id?: string;
|
|
17277
|
+
/**
|
|
17278
|
+
* when the caller last opened this share by link
|
|
17279
|
+
*/
|
|
17280
|
+
opened_at?: string;
|
|
17281
|
+
})>;
|
|
17081
17282
|
export type SetAiSessionSharePublicData = {
|
|
17082
17283
|
id: string;
|
|
17083
17284
|
requestBody: {
|
|
@@ -17098,7 +17299,16 @@ export type GetSharedAiSessionResponse = SharedAiSessionInfo & {
|
|
|
17098
17299
|
* whether the caller authored the share or is a workspace admin
|
|
17099
17300
|
*/
|
|
17100
17301
|
can_unshare: boolean;
|
|
17302
|
+
/**
|
|
17303
|
+
* whether the caller authored the share
|
|
17304
|
+
*/
|
|
17305
|
+
mine: boolean;
|
|
17306
|
+
};
|
|
17307
|
+
export type ForgetOpenedAiSessionData = {
|
|
17308
|
+
id: string;
|
|
17309
|
+
workspace: string;
|
|
17101
17310
|
};
|
|
17311
|
+
export type ForgetOpenedAiSessionResponse = string;
|
|
17102
17312
|
export type UnshareAiSessionData = {
|
|
17103
17313
|
id: string;
|
|
17104
17314
|
workspace: string;
|
|
@@ -19372,6 +19582,21 @@ export type ListAutoscalingEventsData = {
|
|
|
19372
19582
|
workerGroup: string;
|
|
19373
19583
|
};
|
|
19374
19584
|
export type ListAutoscalingEventsResponse = Array<AutoscalingEvent>;
|
|
19585
|
+
export type GetAutoscalingDiagnosticsData = {
|
|
19586
|
+
/**
|
|
19587
|
+
* false returns the recording state and the decision count only
|
|
19588
|
+
*/
|
|
19589
|
+
includeDecisions?: boolean;
|
|
19590
|
+
workerGroup: string;
|
|
19591
|
+
};
|
|
19592
|
+
export type GetAutoscalingDiagnosticsResponse = AutoscalingDiagnostics;
|
|
19593
|
+
export type SetAutoscalingRecordingData = {
|
|
19594
|
+
requestBody: {
|
|
19595
|
+
record: boolean;
|
|
19596
|
+
};
|
|
19597
|
+
workerGroup: string;
|
|
19598
|
+
};
|
|
19599
|
+
export type SetAutoscalingRecordingResponse = string;
|
|
19375
19600
|
export type TestAutoscalingData = {
|
|
19376
19601
|
requestBody: {
|
|
19377
19602
|
desired_workers: number;
|
|
@@ -29584,37 +29809,7 @@ export type $OpenApiTs = {
|
|
|
29584
29809
|
/**
|
|
29585
29810
|
* All scripts
|
|
29586
29811
|
*/
|
|
29587
|
-
200: Array<
|
|
29588
|
-
/**
|
|
29589
|
-
* True when the authed user has a draft for this
|
|
29590
|
-
* script — either no deployed row exists at this
|
|
29591
|
-
* path (draft-only) or the user saved a per-user
|
|
29592
|
-
* draft on top of the deployed row.
|
|
29593
|
-
*
|
|
29594
|
-
*/
|
|
29595
|
-
is_draft?: boolean;
|
|
29596
|
-
/**
|
|
29597
|
-
* User-typed path the editor has staged but not
|
|
29598
|
-
* yet deployed. Surfaced for draft-only rows so
|
|
29599
|
-
* the home list can render the meaningful name
|
|
29600
|
-
* instead of the autogenerated
|
|
29601
|
-
* `u/{user}/draft_{uuid}` URL path. Omitted
|
|
29602
|
-
* when unchanged.
|
|
29603
|
-
*
|
|
29604
|
-
*/
|
|
29605
|
-
draft_path?: string;
|
|
29606
|
-
/**
|
|
29607
|
-
* Workspace users (including the authed user, and
|
|
29608
|
-
* the legacy NULL-email row if any) who have a
|
|
29609
|
-
* per-user draft at this path. Drives the home
|
|
29610
|
-
* page's user-avatar circles inside the Draft
|
|
29611
|
-
* badge. Omitted when no drafts exist.
|
|
29612
|
-
*
|
|
29613
|
-
*/
|
|
29614
|
-
draft_users?: Array<{
|
|
29615
|
-
username?: string | null;
|
|
29616
|
-
}>;
|
|
29617
|
-
})>;
|
|
29812
|
+
200: Array<ListableScript>;
|
|
29618
29813
|
};
|
|
29619
29814
|
};
|
|
29620
29815
|
};
|
|
@@ -31609,6 +31804,95 @@ export type $OpenApiTs = {
|
|
|
31609
31804
|
};
|
|
31610
31805
|
};
|
|
31611
31806
|
};
|
|
31807
|
+
'/w/{workspace}/jobs/flow/approval_step_detail/{job_id}/{step_id}': {
|
|
31808
|
+
get: {
|
|
31809
|
+
req: {
|
|
31810
|
+
/**
|
|
31811
|
+
* id of the flow run
|
|
31812
|
+
*/
|
|
31813
|
+
jobId: string;
|
|
31814
|
+
/**
|
|
31815
|
+
* id of the approval step in the flow
|
|
31816
|
+
*/
|
|
31817
|
+
stepId: string;
|
|
31818
|
+
workspace: string;
|
|
31819
|
+
};
|
|
31820
|
+
res: {
|
|
31821
|
+
/**
|
|
31822
|
+
* approval step detail
|
|
31823
|
+
*/
|
|
31824
|
+
200: {
|
|
31825
|
+
flow_id: string;
|
|
31826
|
+
step_id: string;
|
|
31827
|
+
/**
|
|
31828
|
+
* not_reached: the step's own script has not finished yet. failed: the step failed before asking for approval. waiting: the run is suspended on this step. resumed: the run moved past this step. not_resumed: the run ended while waiting (denied, timed out or cancelled).
|
|
31829
|
+
*
|
|
31830
|
+
*/
|
|
31831
|
+
status: 'not_reached' | 'skipped' | 'failed' | 'waiting' | 'resumed' | 'not_resumed';
|
|
31832
|
+
/**
|
|
31833
|
+
* the job of the approval step, once it ran
|
|
31834
|
+
*/
|
|
31835
|
+
step_job?: string;
|
|
31836
|
+
step_summary?: string;
|
|
31837
|
+
/**
|
|
31838
|
+
* number of approvals required to resume
|
|
31839
|
+
*/
|
|
31840
|
+
required_events: number;
|
|
31841
|
+
/**
|
|
31842
|
+
* seconds the run waits for approvals
|
|
31843
|
+
*/
|
|
31844
|
+
timeout?: number;
|
|
31845
|
+
/**
|
|
31846
|
+
* when the wait times out, while waiting
|
|
31847
|
+
*/
|
|
31848
|
+
suspended_until?: string;
|
|
31849
|
+
/**
|
|
31850
|
+
* form schema for the approval step
|
|
31851
|
+
*/
|
|
31852
|
+
form_schema?: unknown;
|
|
31853
|
+
hide_cancel: boolean;
|
|
31854
|
+
continue_on_disapprove_timeout: boolean;
|
|
31855
|
+
skin: 'detailed' | 'minimal';
|
|
31856
|
+
approval_conditions?: {
|
|
31857
|
+
user_auth_required: boolean;
|
|
31858
|
+
user_groups_required: Array<(string)>;
|
|
31859
|
+
self_approval_disabled: boolean;
|
|
31860
|
+
};
|
|
31861
|
+
/**
|
|
31862
|
+
* whether the caller can approve, set only while waiting
|
|
31863
|
+
*/
|
|
31864
|
+
can_approve?: boolean;
|
|
31865
|
+
/**
|
|
31866
|
+
* description returned by the approval step's script
|
|
31867
|
+
*/
|
|
31868
|
+
description?: unknown;
|
|
31869
|
+
/**
|
|
31870
|
+
* default form values returned by the approval step's script
|
|
31871
|
+
*/
|
|
31872
|
+
default_args?: unknown;
|
|
31873
|
+
/**
|
|
31874
|
+
* form enums returned by the approval step's script
|
|
31875
|
+
*/
|
|
31876
|
+
enums?: unknown;
|
|
31877
|
+
/**
|
|
31878
|
+
* approvals received. approved, value and created_at are known only while the run is live; a finished run keeps approver names alone.
|
|
31879
|
+
*
|
|
31880
|
+
*/
|
|
31881
|
+
approvals: Array<{
|
|
31882
|
+
resume_id: number;
|
|
31883
|
+
approver: string;
|
|
31884
|
+
approved?: boolean;
|
|
31885
|
+
value?: unknown;
|
|
31886
|
+
created_at?: string;
|
|
31887
|
+
}>;
|
|
31888
|
+
/**
|
|
31889
|
+
* the run's error, when status is not_resumed
|
|
31890
|
+
*/
|
|
31891
|
+
error?: unknown;
|
|
31892
|
+
};
|
|
31893
|
+
};
|
|
31894
|
+
};
|
|
31895
|
+
};
|
|
31612
31896
|
'/w/{workspace}/jobs/job_view_token/{id}': {
|
|
31613
31897
|
get: {
|
|
31614
31898
|
req: {
|
|
@@ -32125,6 +32409,46 @@ export type $OpenApiTs = {
|
|
|
32125
32409
|
};
|
|
32126
32410
|
};
|
|
32127
32411
|
};
|
|
32412
|
+
'/w/{workspace}/jobs/run/flow_test/{path}': {
|
|
32413
|
+
post: {
|
|
32414
|
+
req: {
|
|
32415
|
+
/**
|
|
32416
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
32417
|
+
*/
|
|
32418
|
+
jobId?: string;
|
|
32419
|
+
path: string;
|
|
32420
|
+
requestBody: {
|
|
32421
|
+
args?: ScriptArgs;
|
|
32422
|
+
/**
|
|
32423
|
+
* step id -> override. A step inside a subflow is named by the path of step ids to it, `sub:inner` for step `inner` of the subflow that step `sub` calls.
|
|
32424
|
+
*/
|
|
32425
|
+
steps?: {
|
|
32426
|
+
[key: string]: {
|
|
32427
|
+
/**
|
|
32428
|
+
* the step is skipped and returns this value
|
|
32429
|
+
*/
|
|
32430
|
+
return_value?: unknown;
|
|
32431
|
+
/**
|
|
32432
|
+
* name of a function of the code of `caller_job_id` that runs instead of the step (exported, in TypeScript)
|
|
32433
|
+
*/
|
|
32434
|
+
function?: string;
|
|
32435
|
+
};
|
|
32436
|
+
};
|
|
32437
|
+
/**
|
|
32438
|
+
* the job whose code defines the replacing functions, usually the calling test; a script run or a script preview. Required with a `function` override.
|
|
32439
|
+
*/
|
|
32440
|
+
caller_job_id?: string;
|
|
32441
|
+
};
|
|
32442
|
+
workspace: string;
|
|
32443
|
+
};
|
|
32444
|
+
res: {
|
|
32445
|
+
/**
|
|
32446
|
+
* job created
|
|
32447
|
+
*/
|
|
32448
|
+
201: string;
|
|
32449
|
+
};
|
|
32450
|
+
};
|
|
32451
|
+
};
|
|
32128
32452
|
'/w/{workspace}/jobs/run/preview_flow': {
|
|
32129
32453
|
post: {
|
|
32130
32454
|
req: {
|
|
@@ -34652,7 +34976,8 @@ export type $OpenApiTs = {
|
|
|
34652
34976
|
system: string;
|
|
34653
34977
|
user: string;
|
|
34654
34978
|
/**
|
|
34655
|
-
* defaults to the AI config's default model
|
|
34979
|
+
* defaults to the AI config's default model. Must be enabled in the AI settings, or be the default, metadata or code-completion model.
|
|
34980
|
+
*
|
|
34656
34981
|
*/
|
|
34657
34982
|
model?: AIProviderModel;
|
|
34658
34983
|
max_tokens?: number;
|
|
@@ -35020,6 +35345,26 @@ export type $OpenApiTs = {
|
|
|
35020
35345
|
};
|
|
35021
35346
|
};
|
|
35022
35347
|
};
|
|
35348
|
+
'/w/{workspace}/ai/shared_sessions/list': {
|
|
35349
|
+
get: {
|
|
35350
|
+
req: {
|
|
35351
|
+
workspace: string;
|
|
35352
|
+
};
|
|
35353
|
+
res: {
|
|
35354
|
+
/**
|
|
35355
|
+
* the shares
|
|
35356
|
+
*/
|
|
35357
|
+
200: Array<(SharedAiSessionInfo & {
|
|
35358
|
+
mine: boolean;
|
|
35359
|
+
session_id?: string;
|
|
35360
|
+
/**
|
|
35361
|
+
* when the caller last opened this share by link
|
|
35362
|
+
*/
|
|
35363
|
+
opened_at?: string;
|
|
35364
|
+
})>;
|
|
35365
|
+
};
|
|
35366
|
+
};
|
|
35367
|
+
};
|
|
35023
35368
|
'/w/{workspace}/ai/shared_sessions/set_public/{id}': {
|
|
35024
35369
|
post: {
|
|
35025
35370
|
req: {
|
|
@@ -35055,10 +35400,28 @@ export type $OpenApiTs = {
|
|
|
35055
35400
|
* whether the caller authored the share or is a workspace admin
|
|
35056
35401
|
*/
|
|
35057
35402
|
can_unshare: boolean;
|
|
35403
|
+
/**
|
|
35404
|
+
* whether the caller authored the share
|
|
35405
|
+
*/
|
|
35406
|
+
mine: boolean;
|
|
35058
35407
|
};
|
|
35059
35408
|
};
|
|
35060
35409
|
};
|
|
35061
35410
|
};
|
|
35411
|
+
'/w/{workspace}/ai/shared_sessions/opened/{id}': {
|
|
35412
|
+
delete: {
|
|
35413
|
+
req: {
|
|
35414
|
+
id: string;
|
|
35415
|
+
workspace: string;
|
|
35416
|
+
};
|
|
35417
|
+
res: {
|
|
35418
|
+
/**
|
|
35419
|
+
* removed from the list
|
|
35420
|
+
*/
|
|
35421
|
+
200: string;
|
|
35422
|
+
};
|
|
35423
|
+
};
|
|
35424
|
+
};
|
|
35062
35425
|
'/w/{workspace}/ai/shared_sessions/delete/{id}': {
|
|
35063
35426
|
delete: {
|
|
35064
35427
|
req: {
|
|
@@ -39185,6 +39548,39 @@ export type $OpenApiTs = {
|
|
|
39185
39548
|
};
|
|
39186
39549
|
};
|
|
39187
39550
|
};
|
|
39551
|
+
'/configs/autoscaling_diagnostics/{worker_group}': {
|
|
39552
|
+
get: {
|
|
39553
|
+
req: {
|
|
39554
|
+
/**
|
|
39555
|
+
* false returns the recording state and the decision count only
|
|
39556
|
+
*/
|
|
39557
|
+
includeDecisions?: boolean;
|
|
39558
|
+
workerGroup: string;
|
|
39559
|
+
};
|
|
39560
|
+
res: {
|
|
39561
|
+
/**
|
|
39562
|
+
* The recording state and the recorded decisions, oldest first
|
|
39563
|
+
*/
|
|
39564
|
+
200: AutoscalingDiagnostics;
|
|
39565
|
+
};
|
|
39566
|
+
};
|
|
39567
|
+
};
|
|
39568
|
+
'/configs/autoscaling_recording/{worker_group}': {
|
|
39569
|
+
post: {
|
|
39570
|
+
req: {
|
|
39571
|
+
requestBody: {
|
|
39572
|
+
record: boolean;
|
|
39573
|
+
};
|
|
39574
|
+
workerGroup: string;
|
|
39575
|
+
};
|
|
39576
|
+
res: {
|
|
39577
|
+
/**
|
|
39578
|
+
* Recording started or stopped
|
|
39579
|
+
*/
|
|
39580
|
+
200: string;
|
|
39581
|
+
};
|
|
39582
|
+
};
|
|
39583
|
+
};
|
|
39188
39584
|
'/configs/test_autoscaling/{worker_group}': {
|
|
39189
39585
|
post: {
|
|
39190
39586
|
req: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-client",
|
|
3
3
|
"description": "Windmill SDK client for browsers and Node.js",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.880.0",
|
|
5
5
|
"author": "Ruben Fiszel",
|
|
6
6
|
"license": "Apache 2.0",
|
|
7
7
|
"homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",
|