windmill-client 1.876.0 → 1.879.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 +157 -2
- package/dist/index.mjs +4 -2
- package/dist/services.gen.d.ts +47 -2
- package/dist/services.gen.mjs +83 -1
- package/dist/types.gen.d.ts +393 -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,19 @@ 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]: FlowValue;
|
|
1251
|
+
};
|
|
1235
1252
|
};
|
|
1236
1253
|
export type FlowStatusModule = {
|
|
1237
1254
|
type: 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
|
|
@@ -1247,6 +1264,10 @@ export type FlowStatusModule = {
|
|
|
1247
1264
|
};
|
|
1248
1265
|
flow_jobs?: Array<(string)>;
|
|
1249
1266
|
flow_jobs_success?: Array<(boolean)>;
|
|
1267
|
+
/**
|
|
1268
|
+
* 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
|
|
1269
|
+
*/
|
|
1270
|
+
flow_jobs_labels?: Array<(string | null)>;
|
|
1250
1271
|
flow_jobs_duration?: {
|
|
1251
1272
|
started_at?: Array<(string)>;
|
|
1252
1273
|
duration_ms?: Array<(number)>;
|
|
@@ -2536,6 +2557,74 @@ export type RunnableItem = {
|
|
|
2536
2557
|
*/
|
|
2537
2558
|
ws_specific?: boolean;
|
|
2538
2559
|
};
|
|
2560
|
+
/**
|
|
2561
|
+
* A script as returned by the list endpoint: the deployed row's summary
|
|
2562
|
+
* fields, without its content, lock or schema.
|
|
2563
|
+
*
|
|
2564
|
+
*/
|
|
2565
|
+
export type ListableScript = {
|
|
2566
|
+
hash: string;
|
|
2567
|
+
path: string;
|
|
2568
|
+
summary: string;
|
|
2569
|
+
description?: string;
|
|
2570
|
+
created_at: string;
|
|
2571
|
+
archived: boolean;
|
|
2572
|
+
extra_perms: {
|
|
2573
|
+
[key: string]: (boolean);
|
|
2574
|
+
};
|
|
2575
|
+
language: ScriptLang;
|
|
2576
|
+
kind: 'script' | 'failure' | 'trigger' | 'approval' | 'preprocessor';
|
|
2577
|
+
starred: boolean;
|
|
2578
|
+
tag: string | null;
|
|
2579
|
+
/**
|
|
2580
|
+
* True on rows built from a draft that was never deployed. Omitted
|
|
2581
|
+
* on deployed rows.
|
|
2582
|
+
*
|
|
2583
|
+
*/
|
|
2584
|
+
draft_only?: boolean;
|
|
2585
|
+
has_deploy_errors: boolean;
|
|
2586
|
+
ws_error_handler_muted: boolean | null;
|
|
2587
|
+
auto_kind?: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Omitted when false.
|
|
2590
|
+
*/
|
|
2591
|
+
use_codebase?: boolean;
|
|
2592
|
+
/**
|
|
2593
|
+
* Only returned with `with_deployment_msg=true`.
|
|
2594
|
+
*/
|
|
2595
|
+
deployment_msg?: string;
|
|
2596
|
+
labels?: Array<(string)>;
|
|
2597
|
+
inherited_labels?: Array<(string)>;
|
|
2598
|
+
/**
|
|
2599
|
+
* True when the authed user has a draft for this
|
|
2600
|
+
* script — either no deployed row exists at this
|
|
2601
|
+
* path (draft-only) or the user saved a per-user
|
|
2602
|
+
* draft on top of the deployed row. Omitted when false.
|
|
2603
|
+
*
|
|
2604
|
+
*/
|
|
2605
|
+
is_draft?: boolean;
|
|
2606
|
+
/**
|
|
2607
|
+
* User-typed path the editor has staged but not
|
|
2608
|
+
* yet deployed. Surfaced for draft-only rows so
|
|
2609
|
+
* the home list can render the meaningful name
|
|
2610
|
+
* instead of the autogenerated
|
|
2611
|
+
* `u/{user}/draft_{uuid}` URL path. Omitted
|
|
2612
|
+
* when unchanged.
|
|
2613
|
+
*
|
|
2614
|
+
*/
|
|
2615
|
+
draft_path?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* Workspace users (including the authed user, and
|
|
2618
|
+
* the legacy NULL-email row if any) who have a
|
|
2619
|
+
* per-user draft at this path. Drives the home
|
|
2620
|
+
* page's user-avatar circles inside the Draft
|
|
2621
|
+
* badge. Omitted when no drafts exist.
|
|
2622
|
+
*
|
|
2623
|
+
*/
|
|
2624
|
+
draft_users?: Array<{
|
|
2625
|
+
username?: string | null;
|
|
2626
|
+
}>;
|
|
2627
|
+
};
|
|
2539
2628
|
export type Script = {
|
|
2540
2629
|
workspace_id?: string;
|
|
2541
2630
|
hash: string;
|
|
@@ -13387,37 +13476,7 @@ export type ListScriptsData = {
|
|
|
13387
13476
|
withoutDescription?: boolean;
|
|
13388
13477
|
workspace: string;
|
|
13389
13478
|
};
|
|
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
|
-
})>;
|
|
13479
|
+
export type ListScriptsResponse = Array<ListableScript>;
|
|
13421
13480
|
export type ListScriptPathsData = {
|
|
13422
13481
|
workspace: string;
|
|
13423
13482
|
};
|
|
@@ -14715,6 +14774,86 @@ export type ResultByIdData = {
|
|
|
14715
14774
|
workspace: string;
|
|
14716
14775
|
};
|
|
14717
14776
|
export type ResultByIdResponse = unknown;
|
|
14777
|
+
export type GetApprovalStepDetailData = {
|
|
14778
|
+
/**
|
|
14779
|
+
* id of the flow run
|
|
14780
|
+
*/
|
|
14781
|
+
jobId: string;
|
|
14782
|
+
/**
|
|
14783
|
+
* id of the approval step in the flow
|
|
14784
|
+
*/
|
|
14785
|
+
stepId: string;
|
|
14786
|
+
workspace: string;
|
|
14787
|
+
};
|
|
14788
|
+
export type GetApprovalStepDetailResponse = {
|
|
14789
|
+
flow_id: string;
|
|
14790
|
+
step_id: string;
|
|
14791
|
+
/**
|
|
14792
|
+
* 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).
|
|
14793
|
+
*
|
|
14794
|
+
*/
|
|
14795
|
+
status: 'not_reached' | 'skipped' | 'failed' | 'waiting' | 'resumed' | 'not_resumed';
|
|
14796
|
+
/**
|
|
14797
|
+
* the job of the approval step, once it ran
|
|
14798
|
+
*/
|
|
14799
|
+
step_job?: string;
|
|
14800
|
+
step_summary?: string;
|
|
14801
|
+
/**
|
|
14802
|
+
* number of approvals required to resume
|
|
14803
|
+
*/
|
|
14804
|
+
required_events: number;
|
|
14805
|
+
/**
|
|
14806
|
+
* seconds the run waits for approvals
|
|
14807
|
+
*/
|
|
14808
|
+
timeout?: number;
|
|
14809
|
+
/**
|
|
14810
|
+
* when the wait times out, while waiting
|
|
14811
|
+
*/
|
|
14812
|
+
suspended_until?: string;
|
|
14813
|
+
/**
|
|
14814
|
+
* form schema for the approval step
|
|
14815
|
+
*/
|
|
14816
|
+
form_schema?: unknown;
|
|
14817
|
+
hide_cancel: boolean;
|
|
14818
|
+
continue_on_disapprove_timeout: boolean;
|
|
14819
|
+
skin: 'detailed' | 'minimal';
|
|
14820
|
+
approval_conditions?: {
|
|
14821
|
+
user_auth_required: boolean;
|
|
14822
|
+
user_groups_required: Array<(string)>;
|
|
14823
|
+
self_approval_disabled: boolean;
|
|
14824
|
+
};
|
|
14825
|
+
/**
|
|
14826
|
+
* whether the caller can approve, set only while waiting
|
|
14827
|
+
*/
|
|
14828
|
+
can_approve?: boolean;
|
|
14829
|
+
/**
|
|
14830
|
+
* description returned by the approval step's script
|
|
14831
|
+
*/
|
|
14832
|
+
description?: unknown;
|
|
14833
|
+
/**
|
|
14834
|
+
* default form values returned by the approval step's script
|
|
14835
|
+
*/
|
|
14836
|
+
default_args?: unknown;
|
|
14837
|
+
/**
|
|
14838
|
+
* form enums returned by the approval step's script
|
|
14839
|
+
*/
|
|
14840
|
+
enums?: unknown;
|
|
14841
|
+
/**
|
|
14842
|
+
* approvals received. approved, value and created_at are known only while the run is live; a finished run keeps approver names alone.
|
|
14843
|
+
*
|
|
14844
|
+
*/
|
|
14845
|
+
approvals: Array<{
|
|
14846
|
+
resume_id: number;
|
|
14847
|
+
approver: string;
|
|
14848
|
+
approved?: boolean;
|
|
14849
|
+
value?: unknown;
|
|
14850
|
+
created_at?: string;
|
|
14851
|
+
}>;
|
|
14852
|
+
/**
|
|
14853
|
+
* the run's error, when status is not_resumed
|
|
14854
|
+
*/
|
|
14855
|
+
error?: unknown;
|
|
14856
|
+
};
|
|
14718
14857
|
export type GetJobViewTokenData = {
|
|
14719
14858
|
id: string;
|
|
14720
14859
|
workspace: string;
|
|
@@ -15079,6 +15218,37 @@ export type RunFlowDependenciesAsyncData = {
|
|
|
15079
15218
|
workspace: string;
|
|
15080
15219
|
};
|
|
15081
15220
|
export type RunFlowDependenciesAsyncResponse = string;
|
|
15221
|
+
export type RunFlowTestData = {
|
|
15222
|
+
/**
|
|
15223
|
+
* 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)
|
|
15224
|
+
*/
|
|
15225
|
+
jobId?: string;
|
|
15226
|
+
path: string;
|
|
15227
|
+
requestBody: {
|
|
15228
|
+
args?: ScriptArgs;
|
|
15229
|
+
/**
|
|
15230
|
+
* step id -> override
|
|
15231
|
+
*/
|
|
15232
|
+
steps?: {
|
|
15233
|
+
[key: string]: {
|
|
15234
|
+
/**
|
|
15235
|
+
* the step is skipped and returns this value
|
|
15236
|
+
*/
|
|
15237
|
+
return_value?: unknown;
|
|
15238
|
+
/**
|
|
15239
|
+
* name of a function of the code of `caller_job_id` that runs instead of the step (exported, in TypeScript)
|
|
15240
|
+
*/
|
|
15241
|
+
function?: string;
|
|
15242
|
+
};
|
|
15243
|
+
};
|
|
15244
|
+
/**
|
|
15245
|
+
* the job whose code defines the replacing functions, usually the calling test; a script run or a script preview. Required with a `function` override.
|
|
15246
|
+
*/
|
|
15247
|
+
caller_job_id?: string;
|
|
15248
|
+
};
|
|
15249
|
+
workspace: string;
|
|
15250
|
+
};
|
|
15251
|
+
export type RunFlowTestResponse = string;
|
|
15082
15252
|
export type RunFlowPreviewData = {
|
|
15083
15253
|
/**
|
|
15084
15254
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
@@ -16850,7 +17020,8 @@ export type CompleteAiData = {
|
|
|
16850
17020
|
system: string;
|
|
16851
17021
|
user: string;
|
|
16852
17022
|
/**
|
|
16853
|
-
* defaults to the AI config's default model
|
|
17023
|
+
* defaults to the AI config's default model. Must be enabled in the AI settings, or be the default, metadata or code-completion model.
|
|
17024
|
+
*
|
|
16854
17025
|
*/
|
|
16855
17026
|
model?: AIProviderModel;
|
|
16856
17027
|
max_tokens?: number;
|
|
@@ -17078,6 +17249,17 @@ export type GetAiSessionShareStatusData = {
|
|
|
17078
17249
|
export type GetAiSessionShareStatusResponse = {
|
|
17079
17250
|
share?: SharedAiSessionInfo;
|
|
17080
17251
|
};
|
|
17252
|
+
export type ListSharedAiSessionsData = {
|
|
17253
|
+
workspace: string;
|
|
17254
|
+
};
|
|
17255
|
+
export type ListSharedAiSessionsResponse = Array<(SharedAiSessionInfo & {
|
|
17256
|
+
mine: boolean;
|
|
17257
|
+
session_id?: string;
|
|
17258
|
+
/**
|
|
17259
|
+
* when the caller last opened this share by link
|
|
17260
|
+
*/
|
|
17261
|
+
opened_at?: string;
|
|
17262
|
+
})>;
|
|
17081
17263
|
export type SetAiSessionSharePublicData = {
|
|
17082
17264
|
id: string;
|
|
17083
17265
|
requestBody: {
|
|
@@ -17098,7 +17280,16 @@ export type GetSharedAiSessionResponse = SharedAiSessionInfo & {
|
|
|
17098
17280
|
* whether the caller authored the share or is a workspace admin
|
|
17099
17281
|
*/
|
|
17100
17282
|
can_unshare: boolean;
|
|
17283
|
+
/**
|
|
17284
|
+
* whether the caller authored the share
|
|
17285
|
+
*/
|
|
17286
|
+
mine: boolean;
|
|
17101
17287
|
};
|
|
17288
|
+
export type ForgetOpenedAiSessionData = {
|
|
17289
|
+
id: string;
|
|
17290
|
+
workspace: string;
|
|
17291
|
+
};
|
|
17292
|
+
export type ForgetOpenedAiSessionResponse = string;
|
|
17102
17293
|
export type UnshareAiSessionData = {
|
|
17103
17294
|
id: string;
|
|
17104
17295
|
workspace: string;
|
|
@@ -29584,37 +29775,7 @@ export type $OpenApiTs = {
|
|
|
29584
29775
|
/**
|
|
29585
29776
|
* All scripts
|
|
29586
29777
|
*/
|
|
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
|
-
})>;
|
|
29778
|
+
200: Array<ListableScript>;
|
|
29618
29779
|
};
|
|
29619
29780
|
};
|
|
29620
29781
|
};
|
|
@@ -31609,6 +31770,95 @@ export type $OpenApiTs = {
|
|
|
31609
31770
|
};
|
|
31610
31771
|
};
|
|
31611
31772
|
};
|
|
31773
|
+
'/w/{workspace}/jobs/flow/approval_step_detail/{job_id}/{step_id}': {
|
|
31774
|
+
get: {
|
|
31775
|
+
req: {
|
|
31776
|
+
/**
|
|
31777
|
+
* id of the flow run
|
|
31778
|
+
*/
|
|
31779
|
+
jobId: string;
|
|
31780
|
+
/**
|
|
31781
|
+
* id of the approval step in the flow
|
|
31782
|
+
*/
|
|
31783
|
+
stepId: string;
|
|
31784
|
+
workspace: string;
|
|
31785
|
+
};
|
|
31786
|
+
res: {
|
|
31787
|
+
/**
|
|
31788
|
+
* approval step detail
|
|
31789
|
+
*/
|
|
31790
|
+
200: {
|
|
31791
|
+
flow_id: string;
|
|
31792
|
+
step_id: string;
|
|
31793
|
+
/**
|
|
31794
|
+
* 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).
|
|
31795
|
+
*
|
|
31796
|
+
*/
|
|
31797
|
+
status: 'not_reached' | 'skipped' | 'failed' | 'waiting' | 'resumed' | 'not_resumed';
|
|
31798
|
+
/**
|
|
31799
|
+
* the job of the approval step, once it ran
|
|
31800
|
+
*/
|
|
31801
|
+
step_job?: string;
|
|
31802
|
+
step_summary?: string;
|
|
31803
|
+
/**
|
|
31804
|
+
* number of approvals required to resume
|
|
31805
|
+
*/
|
|
31806
|
+
required_events: number;
|
|
31807
|
+
/**
|
|
31808
|
+
* seconds the run waits for approvals
|
|
31809
|
+
*/
|
|
31810
|
+
timeout?: number;
|
|
31811
|
+
/**
|
|
31812
|
+
* when the wait times out, while waiting
|
|
31813
|
+
*/
|
|
31814
|
+
suspended_until?: string;
|
|
31815
|
+
/**
|
|
31816
|
+
* form schema for the approval step
|
|
31817
|
+
*/
|
|
31818
|
+
form_schema?: unknown;
|
|
31819
|
+
hide_cancel: boolean;
|
|
31820
|
+
continue_on_disapprove_timeout: boolean;
|
|
31821
|
+
skin: 'detailed' | 'minimal';
|
|
31822
|
+
approval_conditions?: {
|
|
31823
|
+
user_auth_required: boolean;
|
|
31824
|
+
user_groups_required: Array<(string)>;
|
|
31825
|
+
self_approval_disabled: boolean;
|
|
31826
|
+
};
|
|
31827
|
+
/**
|
|
31828
|
+
* whether the caller can approve, set only while waiting
|
|
31829
|
+
*/
|
|
31830
|
+
can_approve?: boolean;
|
|
31831
|
+
/**
|
|
31832
|
+
* description returned by the approval step's script
|
|
31833
|
+
*/
|
|
31834
|
+
description?: unknown;
|
|
31835
|
+
/**
|
|
31836
|
+
* default form values returned by the approval step's script
|
|
31837
|
+
*/
|
|
31838
|
+
default_args?: unknown;
|
|
31839
|
+
/**
|
|
31840
|
+
* form enums returned by the approval step's script
|
|
31841
|
+
*/
|
|
31842
|
+
enums?: unknown;
|
|
31843
|
+
/**
|
|
31844
|
+
* approvals received. approved, value and created_at are known only while the run is live; a finished run keeps approver names alone.
|
|
31845
|
+
*
|
|
31846
|
+
*/
|
|
31847
|
+
approvals: Array<{
|
|
31848
|
+
resume_id: number;
|
|
31849
|
+
approver: string;
|
|
31850
|
+
approved?: boolean;
|
|
31851
|
+
value?: unknown;
|
|
31852
|
+
created_at?: string;
|
|
31853
|
+
}>;
|
|
31854
|
+
/**
|
|
31855
|
+
* the run's error, when status is not_resumed
|
|
31856
|
+
*/
|
|
31857
|
+
error?: unknown;
|
|
31858
|
+
};
|
|
31859
|
+
};
|
|
31860
|
+
};
|
|
31861
|
+
};
|
|
31612
31862
|
'/w/{workspace}/jobs/job_view_token/{id}': {
|
|
31613
31863
|
get: {
|
|
31614
31864
|
req: {
|
|
@@ -32125,6 +32375,46 @@ export type $OpenApiTs = {
|
|
|
32125
32375
|
};
|
|
32126
32376
|
};
|
|
32127
32377
|
};
|
|
32378
|
+
'/w/{workspace}/jobs/run/flow_test/{path}': {
|
|
32379
|
+
post: {
|
|
32380
|
+
req: {
|
|
32381
|
+
/**
|
|
32382
|
+
* 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)
|
|
32383
|
+
*/
|
|
32384
|
+
jobId?: string;
|
|
32385
|
+
path: string;
|
|
32386
|
+
requestBody: {
|
|
32387
|
+
args?: ScriptArgs;
|
|
32388
|
+
/**
|
|
32389
|
+
* step id -> override
|
|
32390
|
+
*/
|
|
32391
|
+
steps?: {
|
|
32392
|
+
[key: string]: {
|
|
32393
|
+
/**
|
|
32394
|
+
* the step is skipped and returns this value
|
|
32395
|
+
*/
|
|
32396
|
+
return_value?: unknown;
|
|
32397
|
+
/**
|
|
32398
|
+
* name of a function of the code of `caller_job_id` that runs instead of the step (exported, in TypeScript)
|
|
32399
|
+
*/
|
|
32400
|
+
function?: string;
|
|
32401
|
+
};
|
|
32402
|
+
};
|
|
32403
|
+
/**
|
|
32404
|
+
* the job whose code defines the replacing functions, usually the calling test; a script run or a script preview. Required with a `function` override.
|
|
32405
|
+
*/
|
|
32406
|
+
caller_job_id?: string;
|
|
32407
|
+
};
|
|
32408
|
+
workspace: string;
|
|
32409
|
+
};
|
|
32410
|
+
res: {
|
|
32411
|
+
/**
|
|
32412
|
+
* job created
|
|
32413
|
+
*/
|
|
32414
|
+
201: string;
|
|
32415
|
+
};
|
|
32416
|
+
};
|
|
32417
|
+
};
|
|
32128
32418
|
'/w/{workspace}/jobs/run/preview_flow': {
|
|
32129
32419
|
post: {
|
|
32130
32420
|
req: {
|
|
@@ -34652,7 +34942,8 @@ export type $OpenApiTs = {
|
|
|
34652
34942
|
system: string;
|
|
34653
34943
|
user: string;
|
|
34654
34944
|
/**
|
|
34655
|
-
* defaults to the AI config's default model
|
|
34945
|
+
* defaults to the AI config's default model. Must be enabled in the AI settings, or be the default, metadata or code-completion model.
|
|
34946
|
+
*
|
|
34656
34947
|
*/
|
|
34657
34948
|
model?: AIProviderModel;
|
|
34658
34949
|
max_tokens?: number;
|
|
@@ -35020,6 +35311,26 @@ export type $OpenApiTs = {
|
|
|
35020
35311
|
};
|
|
35021
35312
|
};
|
|
35022
35313
|
};
|
|
35314
|
+
'/w/{workspace}/ai/shared_sessions/list': {
|
|
35315
|
+
get: {
|
|
35316
|
+
req: {
|
|
35317
|
+
workspace: string;
|
|
35318
|
+
};
|
|
35319
|
+
res: {
|
|
35320
|
+
/**
|
|
35321
|
+
* the shares
|
|
35322
|
+
*/
|
|
35323
|
+
200: Array<(SharedAiSessionInfo & {
|
|
35324
|
+
mine: boolean;
|
|
35325
|
+
session_id?: string;
|
|
35326
|
+
/**
|
|
35327
|
+
* when the caller last opened this share by link
|
|
35328
|
+
*/
|
|
35329
|
+
opened_at?: string;
|
|
35330
|
+
})>;
|
|
35331
|
+
};
|
|
35332
|
+
};
|
|
35333
|
+
};
|
|
35023
35334
|
'/w/{workspace}/ai/shared_sessions/set_public/{id}': {
|
|
35024
35335
|
post: {
|
|
35025
35336
|
req: {
|
|
@@ -35055,10 +35366,28 @@ export type $OpenApiTs = {
|
|
|
35055
35366
|
* whether the caller authored the share or is a workspace admin
|
|
35056
35367
|
*/
|
|
35057
35368
|
can_unshare: boolean;
|
|
35369
|
+
/**
|
|
35370
|
+
* whether the caller authored the share
|
|
35371
|
+
*/
|
|
35372
|
+
mine: boolean;
|
|
35058
35373
|
};
|
|
35059
35374
|
};
|
|
35060
35375
|
};
|
|
35061
35376
|
};
|
|
35377
|
+
'/w/{workspace}/ai/shared_sessions/opened/{id}': {
|
|
35378
|
+
delete: {
|
|
35379
|
+
req: {
|
|
35380
|
+
id: string;
|
|
35381
|
+
workspace: string;
|
|
35382
|
+
};
|
|
35383
|
+
res: {
|
|
35384
|
+
/**
|
|
35385
|
+
* removed from the list
|
|
35386
|
+
*/
|
|
35387
|
+
200: string;
|
|
35388
|
+
};
|
|
35389
|
+
};
|
|
35390
|
+
};
|
|
35062
35391
|
'/w/{workspace}/ai/shared_sessions/delete/{id}': {
|
|
35063
35392
|
delete: {
|
|
35064
35393
|
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.879.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",
|