windmill-cli 1.827.0 → 1.829.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/esm/main.js +202 -68
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16766,7 +16766,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16766
16766
|
PASSWORD: undefined,
|
|
16767
16767
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16768
16768
|
USERNAME: undefined,
|
|
16769
|
-
VERSION: "1.
|
|
16769
|
+
VERSION: "1.829.0",
|
|
16770
16770
|
WITH_CREDENTIALS: true,
|
|
16771
16771
|
interceptors: {
|
|
16772
16772
|
request: new Interceptors,
|
|
@@ -18146,6 +18146,7 @@ var getAuditLog = (data) => {
|
|
|
18146
18146
|
tag: data.tag,
|
|
18147
18147
|
cache_ttl: data.cacheTtl,
|
|
18148
18148
|
job_id: data.jobId,
|
|
18149
|
+
retry: data.retry,
|
|
18149
18150
|
invisible_to_owner: data.invisibleToOwner
|
|
18150
18151
|
},
|
|
18151
18152
|
body: data.requestBody,
|
|
@@ -20050,7 +20051,7 @@ var init_auth = __esm(async () => {
|
|
|
20050
20051
|
});
|
|
20051
20052
|
|
|
20052
20053
|
// src/core/constants.ts
|
|
20053
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
20054
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.829.0";
|
|
20054
20055
|
|
|
20055
20056
|
// src/utils/resource_folders.ts
|
|
20056
20057
|
import { existsSync } from "node:fs";
|
|
@@ -57060,7 +57061,7 @@ var init_openflow = __esm(() => {
|
|
|
57060
57061
|
openflow_default = {
|
|
57061
57062
|
openapi: "3.0.3",
|
|
57062
57063
|
info: {
|
|
57063
|
-
version: "1.
|
|
57064
|
+
version: "1.829.0",
|
|
57064
57065
|
title: "OpenFlow Spec",
|
|
57065
57066
|
contact: {
|
|
57066
57067
|
name: "Ruben Fiszel",
|
|
@@ -57245,7 +57246,7 @@ var init_openflow = __esm(() => {
|
|
|
57245
57246
|
},
|
|
57246
57247
|
exponential: {
|
|
57247
57248
|
type: "object",
|
|
57248
|
-
description: "Retry with exponential backoff
|
|
57249
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
57249
57250
|
properties: {
|
|
57250
57251
|
attempts: {
|
|
57251
57252
|
type: "integer",
|
|
@@ -57258,7 +57259,7 @@ var init_openflow = __esm(() => {
|
|
|
57258
57259
|
seconds: {
|
|
57259
57260
|
type: "integer",
|
|
57260
57261
|
minimum: 1,
|
|
57261
|
-
description: "
|
|
57262
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
57262
57263
|
},
|
|
57263
57264
|
random_factor: {
|
|
57264
57265
|
type: "integer",
|
|
@@ -59177,7 +59178,7 @@ var init_schedule = __esm(() => {
|
|
|
59177
59178
|
},
|
|
59178
59179
|
exponential: {
|
|
59179
59180
|
type: "object",
|
|
59180
|
-
description: "Retry with exponential backoff
|
|
59181
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
59181
59182
|
properties: {
|
|
59182
59183
|
attempts: {
|
|
59183
59184
|
type: "integer",
|
|
@@ -59190,7 +59191,7 @@ var init_schedule = __esm(() => {
|
|
|
59190
59191
|
seconds: {
|
|
59191
59192
|
type: "integer",
|
|
59192
59193
|
minimum: 1,
|
|
59193
|
-
description: "
|
|
59194
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
59194
59195
|
},
|
|
59195
59196
|
random_factor: {
|
|
59196
59197
|
type: "integer",
|
|
@@ -59406,7 +59407,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59406
59407
|
},
|
|
59407
59408
|
exponential: {
|
|
59408
59409
|
type: "object",
|
|
59409
|
-
description: "Retry with exponential backoff
|
|
59410
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
59410
59411
|
properties: {
|
|
59411
59412
|
attempts: {
|
|
59412
59413
|
type: "integer",
|
|
@@ -59419,7 +59420,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59419
59420
|
seconds: {
|
|
59420
59421
|
type: "integer",
|
|
59421
59422
|
minimum: 1,
|
|
59422
|
-
description: "
|
|
59423
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
59423
59424
|
},
|
|
59424
59425
|
random_factor: {
|
|
59425
59426
|
type: "integer",
|
|
@@ -59620,7 +59621,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59620
59621
|
},
|
|
59621
59622
|
exponential: {
|
|
59622
59623
|
type: "object",
|
|
59623
|
-
description: "Retry with exponential backoff
|
|
59624
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
59624
59625
|
properties: {
|
|
59625
59626
|
attempts: {
|
|
59626
59627
|
type: "integer",
|
|
@@ -59633,7 +59634,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59633
59634
|
seconds: {
|
|
59634
59635
|
type: "integer",
|
|
59635
59636
|
minimum: 1,
|
|
59636
|
-
description: "
|
|
59637
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
59637
59638
|
},
|
|
59638
59639
|
random_factor: {
|
|
59639
59640
|
type: "integer",
|
|
@@ -59849,7 +59850,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59849
59850
|
},
|
|
59850
59851
|
exponential: {
|
|
59851
59852
|
type: "object",
|
|
59852
|
-
description: "Retry with exponential backoff
|
|
59853
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
59853
59854
|
properties: {
|
|
59854
59855
|
attempts: {
|
|
59855
59856
|
type: "integer",
|
|
@@ -59862,7 +59863,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
59862
59863
|
seconds: {
|
|
59863
59864
|
type: "integer",
|
|
59864
59865
|
minimum: 1,
|
|
59865
|
-
description: "
|
|
59866
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
59866
59867
|
},
|
|
59867
59868
|
random_factor: {
|
|
59868
59869
|
type: "integer",
|
|
@@ -60033,7 +60034,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60033
60034
|
},
|
|
60034
60035
|
exponential: {
|
|
60035
60036
|
type: "object",
|
|
60036
|
-
description: "Retry with exponential backoff
|
|
60037
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60037
60038
|
properties: {
|
|
60038
60039
|
attempts: {
|
|
60039
60040
|
type: "integer",
|
|
@@ -60046,7 +60047,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60046
60047
|
seconds: {
|
|
60047
60048
|
type: "integer",
|
|
60048
60049
|
minimum: 1,
|
|
60049
|
-
description: "
|
|
60050
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60050
60051
|
},
|
|
60051
60052
|
random_factor: {
|
|
60052
60053
|
type: "integer",
|
|
@@ -60171,7 +60172,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60171
60172
|
},
|
|
60172
60173
|
exponential: {
|
|
60173
60174
|
type: "object",
|
|
60174
|
-
description: "Retry with exponential backoff
|
|
60175
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60175
60176
|
properties: {
|
|
60176
60177
|
attempts: {
|
|
60177
60178
|
type: "integer",
|
|
@@ -60184,7 +60185,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60184
60185
|
seconds: {
|
|
60185
60186
|
type: "integer",
|
|
60186
60187
|
minimum: 1,
|
|
60187
|
-
description: "
|
|
60188
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60188
60189
|
},
|
|
60189
60190
|
random_factor: {
|
|
60190
60191
|
type: "integer",
|
|
@@ -60297,7 +60298,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60297
60298
|
},
|
|
60298
60299
|
exponential: {
|
|
60299
60300
|
type: "object",
|
|
60300
|
-
description: "Retry with exponential backoff
|
|
60301
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60301
60302
|
properties: {
|
|
60302
60303
|
attempts: {
|
|
60303
60304
|
type: "integer",
|
|
@@ -60310,7 +60311,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60310
60311
|
seconds: {
|
|
60311
60312
|
type: "integer",
|
|
60312
60313
|
minimum: 1,
|
|
60313
|
-
description: "
|
|
60314
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60314
60315
|
},
|
|
60315
60316
|
random_factor: {
|
|
60316
60317
|
type: "integer",
|
|
@@ -60435,7 +60436,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60435
60436
|
},
|
|
60436
60437
|
exponential: {
|
|
60437
60438
|
type: "object",
|
|
60438
|
-
description: "Retry with exponential backoff
|
|
60439
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60439
60440
|
properties: {
|
|
60440
60441
|
attempts: {
|
|
60441
60442
|
type: "integer",
|
|
@@ -60448,7 +60449,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60448
60449
|
seconds: {
|
|
60449
60450
|
type: "integer",
|
|
60450
60451
|
minimum: 1,
|
|
60451
|
-
description: "
|
|
60452
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60452
60453
|
},
|
|
60453
60454
|
random_factor: {
|
|
60454
60455
|
type: "integer",
|
|
@@ -60721,7 +60722,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60721
60722
|
},
|
|
60722
60723
|
exponential: {
|
|
60723
60724
|
type: "object",
|
|
60724
|
-
description: "Retry with exponential backoff
|
|
60725
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60725
60726
|
properties: {
|
|
60726
60727
|
attempts: {
|
|
60727
60728
|
type: "integer",
|
|
@@ -60734,7 +60735,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60734
60735
|
seconds: {
|
|
60735
60736
|
type: "integer",
|
|
60736
60737
|
minimum: 1,
|
|
60737
|
-
description: "
|
|
60738
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60738
60739
|
},
|
|
60739
60740
|
random_factor: {
|
|
60740
60741
|
type: "integer",
|
|
@@ -60841,7 +60842,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60841
60842
|
},
|
|
60842
60843
|
exponential: {
|
|
60843
60844
|
type: "object",
|
|
60844
|
-
description: "Retry with exponential backoff
|
|
60845
|
+
description: "Retry with exponential backoff: the n-th retry waits multiplier × seconds^n",
|
|
60845
60846
|
properties: {
|
|
60846
60847
|
attempts: {
|
|
60847
60848
|
type: "integer",
|
|
@@ -60854,7 +60855,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
60854
60855
|
seconds: {
|
|
60855
60856
|
type: "integer",
|
|
60856
60857
|
minimum: 1,
|
|
60857
|
-
description: "
|
|
60858
|
+
description: "Base of the exponential (seconds); the n-th retry waits multiplier × seconds^n, where n counts constant retries too"
|
|
60858
60859
|
},
|
|
60859
60860
|
random_factor: {
|
|
60860
60861
|
type: "integer",
|
|
@@ -76387,6 +76388,23 @@ async function list10(opts) {
|
|
|
76387
76388
|
x.super_admin ? "true" : "false"
|
|
76388
76389
|
])).render();
|
|
76389
76390
|
}
|
|
76391
|
+
async function listWorkspaceUsers(opts) {
|
|
76392
|
+
if (opts.json)
|
|
76393
|
+
setSilent(true);
|
|
76394
|
+
opts = await mergeConfigWithConfigFile(opts);
|
|
76395
|
+
const workspace = await resolveWorkspace(opts);
|
|
76396
|
+
await requireLogin(opts);
|
|
76397
|
+
const users = await listUsers({ workspace: workspace.workspaceId });
|
|
76398
|
+
if (opts.json) {
|
|
76399
|
+
console.log(JSON.stringify(users));
|
|
76400
|
+
} else {
|
|
76401
|
+
new Table2().header(["username", "email", "role"]).padding(2).border(true).body(users.map((u) => [
|
|
76402
|
+
u.username,
|
|
76403
|
+
u.email,
|
|
76404
|
+
u.is_admin ? "admin" : u.operator ? "operator" : "developer"
|
|
76405
|
+
])).render();
|
|
76406
|
+
}
|
|
76407
|
+
}
|
|
76390
76408
|
function rdString() {
|
|
76391
76409
|
return Math.random().toString(36).slice(2, 7);
|
|
76392
76410
|
}
|
|
@@ -76715,6 +76733,8 @@ var init_user = __esm(async () => {
|
|
|
76715
76733
|
init_services_gen();
|
|
76716
76734
|
await __promiseAll([
|
|
76717
76735
|
init_auth(),
|
|
76736
|
+
init_context(),
|
|
76737
|
+
init_conf(),
|
|
76718
76738
|
init_types(),
|
|
76719
76739
|
init_instance(),
|
|
76720
76740
|
init_yaml()
|
|
@@ -76722,7 +76742,7 @@ var init_user = __esm(async () => {
|
|
|
76722
76742
|
import_yaml34 = __toESM(require_dist(), 1);
|
|
76723
76743
|
instanceUsersPath = INSTANCE_USERS_PATH;
|
|
76724
76744
|
instanceGroupsPath = INSTANCE_GROUPS_PATH;
|
|
76725
|
-
command19 = new Command().description("user related commands").action(list10).command("add", "Create a user").arguments("<email:string> [password:string]").option("--superadmin", "Specify to make the new user superadmin.").option("--company <company:string>", "Specify to set the company of the new user.").option("--name <name:string>", "Specify to set the name of the new user.").action(add3).command("remove", "Delete a user").arguments("<email:string>").action(remove2).command("create-token", "Create a new API token for the authenticated user").option("--email <email:string>", "Specify credentials to use for authentication. This will not be stored. It will only be used to exchange for a token with the API server, which will not be stored either.", {
|
|
76745
|
+
command19 = new Command().description("user related commands").action(list10).command("list", "List the users of the workspace").option("--json", "Output as JSON (for piping to jq)").action(listWorkspaceUsers).command("add", "Create a user").arguments("<email:string> [password:string]").option("--superadmin", "Specify to make the new user superadmin.").option("--company <company:string>", "Specify to set the company of the new user.").option("--name <name:string>", "Specify to set the name of the new user.").action(add3).command("remove", "Delete a user").arguments("<email:string>").action(remove2).command("create-token", "Create a new API token for the authenticated user").option("--email <email:string>", "Specify credentials to use for authentication. This will not be stored. It will only be used to exchange for a token with the API server, which will not be stored either.", {
|
|
76726
76746
|
depends: ["password"]
|
|
76727
76747
|
}).option("--password <password:string>", "Specify credentials to use for authentication. This will not be stored. It will only be used to exchange for a token with the API server, which will not be stored either.", {
|
|
76728
76748
|
depends: ["email"]
|
|
@@ -80480,21 +80500,23 @@ async cancelJob(jobId: string, reason: string | undefined = undefined): Promise<
|
|
|
80480
80500
|
* Run a script asynchronously by its path
|
|
80481
80501
|
* @param path - Script path in Windmill
|
|
80482
80502
|
* @param args - Arguments to pass to the script
|
|
80483
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
80503
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
80504
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
80484
80505
|
* @param tag - Override the worker tag the job runs on
|
|
80485
80506
|
* @returns Job ID of the created job
|
|
80486
80507
|
*/
|
|
80487
|
-
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
80508
|
+
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
80488
80509
|
|
|
80489
80510
|
/**
|
|
80490
80511
|
* Run a script asynchronously by its hash
|
|
80491
80512
|
* @param hash_ - Script hash in Windmill
|
|
80492
80513
|
* @param args - Arguments to pass to the script
|
|
80493
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
80514
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
80515
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
80494
80516
|
* @param tag - Override the worker tag the job runs on
|
|
80495
80517
|
* @returns Job ID of the created job
|
|
80496
80518
|
*/
|
|
80497
|
-
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
80519
|
+
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
80498
80520
|
|
|
80499
80521
|
/**
|
|
80500
80522
|
* Run a flow asynchronously by its path
|
|
@@ -80550,6 +80572,14 @@ async setProgress(percent: number, jobId?: any): Promise<void>
|
|
|
80550
80572
|
*/
|
|
80551
80573
|
async getProgress(jobId?: any): Promise<number | null>
|
|
80552
80574
|
|
|
80575
|
+
/**
|
|
80576
|
+
* Whether the worker running this job has received its shutdown signal.
|
|
80577
|
+
* A draining worker waits for its current job to finish before exiting, so a
|
|
80578
|
+
* long-running script can poll this and return early to let the worker be replaced.
|
|
80579
|
+
* @param jobId? Job to check, defaults to the current job
|
|
80580
|
+
*/
|
|
80581
|
+
async workerIsDraining(jobId?: string): Promise<boolean>
|
|
80582
|
+
|
|
80553
80583
|
/**
|
|
80554
80584
|
* Set a flow user state
|
|
80555
80585
|
* @param key key of the state
|
|
@@ -81313,21 +81343,23 @@ async cancelJob(jobId: string, reason: string | undefined = undefined): Promise<
|
|
|
81313
81343
|
* Run a script asynchronously by its path
|
|
81314
81344
|
* @param path - Script path in Windmill
|
|
81315
81345
|
* @param args - Arguments to pass to the script
|
|
81316
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
81346
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
81347
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
81317
81348
|
* @param tag - Override the worker tag the job runs on
|
|
81318
81349
|
* @returns Job ID of the created job
|
|
81319
81350
|
*/
|
|
81320
|
-
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
81351
|
+
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
81321
81352
|
|
|
81322
81353
|
/**
|
|
81323
81354
|
* Run a script asynchronously by its hash
|
|
81324
81355
|
* @param hash_ - Script hash in Windmill
|
|
81325
81356
|
* @param args - Arguments to pass to the script
|
|
81326
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
81357
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
81358
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
81327
81359
|
* @param tag - Override the worker tag the job runs on
|
|
81328
81360
|
* @returns Job ID of the created job
|
|
81329
81361
|
*/
|
|
81330
|
-
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
81362
|
+
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
81331
81363
|
|
|
81332
81364
|
/**
|
|
81333
81365
|
* Run a flow asynchronously by its path
|
|
@@ -81383,6 +81415,14 @@ async setProgress(percent: number, jobId?: any): Promise<void>
|
|
|
81383
81415
|
*/
|
|
81384
81416
|
async getProgress(jobId?: any): Promise<number | null>
|
|
81385
81417
|
|
|
81418
|
+
/**
|
|
81419
|
+
* Whether the worker running this job has received its shutdown signal.
|
|
81420
|
+
* A draining worker waits for its current job to finish before exiting, so a
|
|
81421
|
+
* long-running script can poll this and return early to let the worker be replaced.
|
|
81422
|
+
* @param jobId? Job to check, defaults to the current job
|
|
81423
|
+
*/
|
|
81424
|
+
async workerIsDraining(jobId?: string): Promise<boolean>
|
|
81425
|
+
|
|
81386
81426
|
/**
|
|
81387
81427
|
* Set a flow user state
|
|
81388
81428
|
* @param key key of the state
|
|
@@ -82252,21 +82292,23 @@ async cancelJob(jobId: string, reason: string | undefined = undefined): Promise<
|
|
|
82252
82292
|
* Run a script asynchronously by its path
|
|
82253
82293
|
* @param path - Script path in Windmill
|
|
82254
82294
|
* @param args - Arguments to pass to the script
|
|
82255
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
82295
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
82296
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
82256
82297
|
* @param tag - Override the worker tag the job runs on
|
|
82257
82298
|
* @returns Job ID of the created job
|
|
82258
82299
|
*/
|
|
82259
|
-
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
82300
|
+
async runScriptByPathAsync(path: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
82260
82301
|
|
|
82261
82302
|
/**
|
|
82262
82303
|
* Run a script asynchronously by its hash
|
|
82263
82304
|
* @param hash_ - Script hash in Windmill
|
|
82264
82305
|
* @param args - Arguments to pass to the script
|
|
82265
|
-
* @param scheduledInSeconds - Schedule execution for a future time (in seconds)
|
|
82306
|
+
* @param scheduledInSeconds - Schedule execution for a future time (in seconds), or {@link RunScriptAsyncOptions}
|
|
82307
|
+
* \`{ scheduledInSeconds?, tag?, retry? }\`, e.g. \`{ retry: { constant: { attempts: 3, seconds: 10 } } }\`
|
|
82266
82308
|
* @param tag - Override the worker tag the job runs on
|
|
82267
82309
|
* @returns Job ID of the created job
|
|
82268
82310
|
*/
|
|
82269
|
-
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null = null, tag: string | null = null): Promise<string>
|
|
82311
|
+
async runScriptByHashAsync(hash_: string, args: Record<string, any> | null = null, scheduledInSeconds: number | null | RunScriptAsyncOptions = null, tag: string | null = null): Promise<string>
|
|
82270
82312
|
|
|
82271
82313
|
/**
|
|
82272
82314
|
* Run a flow asynchronously by its path
|
|
@@ -82322,6 +82364,14 @@ async setProgress(percent: number, jobId?: any): Promise<void>
|
|
|
82322
82364
|
*/
|
|
82323
82365
|
async getProgress(jobId?: any): Promise<number | null>
|
|
82324
82366
|
|
|
82367
|
+
/**
|
|
82368
|
+
* Whether the worker running this job has received its shutdown signal.
|
|
82369
|
+
* A draining worker waits for its current job to finish before exiting, so a
|
|
82370
|
+
* long-running script can poll this and return early to let the worker be replaced.
|
|
82371
|
+
* @param jobId? Job to check, defaults to the current job
|
|
82372
|
+
*/
|
|
82373
|
+
async workerIsDraining(jobId?: string): Promise<boolean>
|
|
82374
|
+
|
|
82325
82375
|
/**
|
|
82326
82376
|
* Set a flow user state
|
|
82327
82377
|
* @param key key of the state
|
|
@@ -84147,10 +84197,14 @@ def post(endpoint, raise_for_status = True, **kwargs) -> httpx.Response
|
|
|
84147
84197
|
def create_token(duration = dt.timedelta(days=1)) -> str
|
|
84148
84198
|
|
|
84149
84199
|
# Create a script job by path and return its job id.
|
|
84150
|
-
|
|
84200
|
+
#
|
|
84201
|
+
# \`\`retry\`\` re-runs the job when it fails, with the policy a schedule takes,
|
|
84202
|
+
# e.g. \`\`{"constant": {"attempts": 3, "seconds": 10}}\`\`. The returned id is
|
|
84203
|
+
# the first attempt's; each retry is a job of its own, recorded as a child of it.
|
|
84204
|
+
def run_script_by_path_async(path: str, args: dict = None, scheduled_in_secs: int = None, tag: str = None, retry: dict = None) -> str
|
|
84151
84205
|
|
|
84152
|
-
# Create a script job by hash and return its job id.
|
|
84153
|
-
def run_script_by_hash_async(hash_: str, args: dict = None, scheduled_in_secs: int = None, tag: str = None) -> str
|
|
84206
|
+
# Create a script job by hash and return its job id. See \`\`run_script_by_path_async\`\` for \`\`retry\`\`.
|
|
84207
|
+
def run_script_by_hash_async(hash_: str, args: dict = None, scheduled_in_secs: int = None, tag: str = None, retry: dict = None) -> str
|
|
84154
84208
|
|
|
84155
84209
|
# Create a flow job and return its job id.
|
|
84156
84210
|
def run_flow_async(path: str, args: dict = None, scheduled_in_secs: int = None, do_not_track_in_parent: bool = True, tag: str = None) -> str
|
|
@@ -84323,6 +84377,18 @@ def set_progress(value: int, job_id: Optional[str] = None)
|
|
|
84323
84377
|
# Progress value (0-100) or None if not set
|
|
84324
84378
|
def get_progress(job_id: Optional[str] = None) -> Any
|
|
84325
84379
|
|
|
84380
|
+
# Whether the worker running the job has received its shutdown signal.
|
|
84381
|
+
#
|
|
84382
|
+
# A draining worker waits for its current job to finish before exiting. A long-running
|
|
84383
|
+
# script can poll this and return early so the worker can be replaced.
|
|
84384
|
+
#
|
|
84385
|
+
# Args:
|
|
84386
|
+
# job_id: Job ID (defaults to current WM_JOB_ID)
|
|
84387
|
+
#
|
|
84388
|
+
# Returns:
|
|
84389
|
+
# True if the worker running the job is draining
|
|
84390
|
+
def worker_is_draining(job_id: Optional[str] = None) -> bool
|
|
84391
|
+
|
|
84326
84392
|
# Set the user state of a flow at a given key
|
|
84327
84393
|
def set_flow_user_state(key: str, value: Any) -> None
|
|
84328
84394
|
|
|
@@ -85682,6 +85748,10 @@ can call one, not an agent used as a tool.
|
|
|
85682
85748
|
- \`results.step_id.property\` - Access specific property from a previous step output only when that step result is in scope
|
|
85683
85749
|
- \`flow_input.iter.value\` - Current iteration value inside a \`forloopflow\`; in a \`whileloopflow\` it is just the iteration index (a plain number, same as \`flow_input.iter.index\`)
|
|
85684
85750
|
- \`flow_input.iter.index\` - Current loop index when inside a loop (\`forloopflow\` or \`whileloopflow\`)
|
|
85751
|
+
- After a suspend step (approval), the next step's javascript expressions also get:
|
|
85752
|
+
- \`resume\` - the last resume payload (the resume form values); with \`continue_on_disapprove_timeout\`, a disapproval or timeout yields \`{ error: { name: "SuspendedDisapproved" | "SuspendedTimedOut", message } }\` instead
|
|
85753
|
+
- \`resumes\` - every resume payload, in arrival order
|
|
85754
|
+
- \`approvers\` - a plain array of strings, one per resume: for a resume through the \`resume\`/\`cancel\` URL from \`getResumeUrls(approver)\`, the \`approver\` passed there if any; otherwise (including the \`approvalPage\` link) the resuming user's username, else \`"anonymous"\`, e.g. \`approvers[0]\`. It is NOT the \`{ resume_id, approver }\` objects stored in the flow status, so \`approvers[0].approver\` is always undefined
|
|
85685
85755
|
|
|
85686
85756
|
## Loop Structure Rules
|
|
85687
85757
|
|
|
@@ -85993,7 +86063,7 @@ Reference a specific resource using \`$res:\` prefix:
|
|
|
85993
86063
|
|
|
85994
86064
|
## OpenFlow Schema
|
|
85995
86065
|
|
|
85996
|
-
{"OpenFlow":{"type":"object","description":"Top-level flow definition containing metadata, configuration, and the flow structure","properties":{"summary":{"type":"string","description":"Short description of what this flow does"},"description":{"type":"string","description":"Detailed documentation for this flow"},"value":{"$ref":"#/components/schemas/FlowValue"},"schema":{"type":"object","description":"JSON Schema for flow inputs. Use this to define input parameters, their types, defaults, and validation. For resource inputs, set type to 'object' and format to 'resource-<type>' (e.g., 'resource-stripe')"},"on_behalf_of_email":{"type":"string","description":"Address of the account the flow runs on behalf of. Derived from on_behalf_of on read; accepted on write, where it is resolved to the account it names."},"on_behalf_of":{"type":"string","description":"The flow runs with the permissions of this identity: u/{username}, g/{group}, or a bare email when the username is itself email-shaped. The only stored half of the identity; on_behalf_of_email is derived from it. Omit it when writing and it is resolved from that address instead."}},"required":["summary","value"]},"FlowValue":{"type":"object","description":"The flow structure containing modules and optional preprocessor/failure handlers","properties":{"modules":{"type":"array","description":"Array of steps that execute in sequence. Each step can be a script, subflow, loop, or branch","items":{"$ref":"#/components/schemas/FlowModule"}},"failure_module":{"description":"Special module that executes when the flow fails. Receives error object with message, name, stack, and step_id. Must have id 'failure'. Only supports script/rawscript types","$ref":"#/components/schemas/FlowModule"},"preprocessor_module":{"description":"Special module that runs before the first step on external triggers. Must have id 'preprocessor'. Only supports script/rawscript types. Cannot reference other step results","$ref":"#/components/schemas/FlowModule"},"same_worker":{"type":"boolean","description":"If true, all steps run on the same worker for better performance"},"preserve_step_tags":{"type":"boolean","description":"If true and the flow runs on a custom worker tag, steps that declare their own non-empty tag run on it instead of inheriting the flow tag. Steps without their own tag still inherit the flow tag."},"concurrent_limit":{"type":"number","description":"Maximum number of concurrent executions of this flow"},"concurrency_key":{"type":"string","description":"Expression to group concurrent executions (e.g., by user ID)"},"concurrency_time_window_s":{"type":"number","description":"Time window in seconds for concurrent_limit"},"debounce_delay_s":{"type":"integer","description":"Delay in seconds to debounce flow executions"},"debounce_key":{"type":"string","description":"Expression to group debounced executions"},"debounce_args_to_accumulate":{"type":"array","description":"Arguments to accumulate across debounced executions","items":{"type":"string"}},"max_total_debouncing_time":{"type":"integer","description":"Maximum total time in seconds that a job can be debounced"},"max_total_debounces_amount":{"type":"integer","description":"Maximum number of times a job can be debounced"},"skip_expr":{"type":"string","description":"JavaScript expression to conditionally skip the entire flow"},"cache_ttl":{"type":"number","description":"Cache duration in seconds for flow results"},"cache_ignore_s3_path":{"type":"boolean"},"delete_after_secs":{"type":"integer","description":"If set, delete the flow job's args, result and logs after this many seconds following job completion"},"flow_env":{"type":"object","description":"Environment variables available to all steps. Values can be strings, JSON values, or special references: '$var:path' (workspace variable) or '$res:path' (resource).","additionalProperties":{}},"priority":{"type":"number","description":"Execution priority (higher numbers run first)"},"early_return":{"type":"string","description":"JavaScript expression to return early from the flow"},"chat_input_enabled":{"type":"boolean","description":"Whether this flow accepts chat-style input"},"notes":{"type":"array","description":"Sticky notes attached to the flow","items":{"$ref":"#/components/schemas/FlowNote"}},"groups":{"type":"array","description":"Semantic groups of modules for organizational purposes","items":{"$ref":"#/components/schemas/FlowGroup"}}},"required":["modules"]},"Retry":{"type":"object","description":"Retry configuration for failed module executions","properties":{"constant":{"type":"object","description":"Retry with constant delay between attempts","properties":{"attempts":{"type":"integer","description":"Number of retry attempts"},"seconds":{"type":"integer","description":"Seconds to wait between retries"}}},"exponential":{"type":"object","description":"Retry with exponential backoff (delay doubles each time)","properties":{"attempts":{"type":"integer","description":"Number of retry attempts"},"multiplier":{"type":"integer","description":"Multiplier for exponential backoff"},"seconds":{"type":"integer","minimum":1,"description":"Initial delay in seconds"},"random_factor":{"type":"integer","minimum":0,"maximum":100,"description":"Random jitter percentage (0-100) to avoid thundering herd"}}},"retry_if":{"$ref":"#/components/schemas/RetryIf"}}},"FlowNote":{"type":"object","description":"A sticky note attached to a flow for documentation and annotation","properties":{"id":{"type":"string","description":"Unique identifier for the note"},"text":{"type":"string","description":"Content of the note"},"position":{"type":"object","description":"Position of the note in the flow editor","properties":{"x":{"type":"number","description":"X coordinate"},"y":{"type":"number","description":"Y coordinate"}},"required":["x","y"]},"size":{"type":"object","description":"Size of the note in the flow editor","properties":{"width":{"type":"number","description":"Width in pixels"},"height":{"type":"number","description":"Height in pixels"}},"required":["width","height"]},"color":{"type":"string","description":"Color of the note, one of: yellow, blue, green, purple, pink, orange, red, cyan, lime, gray. Any other value renders unstyled."},"type":{"type":"string","enum":["free","group"],"description":"Type of note - 'free' for standalone notes. 'group' notes are deprecated; segment a flow with FlowValue.groups instead."},"locked":{"type":"boolean","default":false,"description":"Whether the note is locked and cannot be edited or moved"},"contained_node_ids":{"type":"array","items":{"type":"string"},"description":"For group notes, the IDs of nodes contained within this group"}},"required":["id","text","color","type"]},"FlowGroup":{"type":"object","description":"A semantic group of flow modules for organizational purposes. Does not affect execution \\u2014 modules remain in their original position in the flow. Groups provide naming and collapsibility in the editor. Members are computed dynamically from all nodes on paths between start_id and end_id.","properties":{"summary":{"type":"string","description":"Display name for this group"},"note":{"type":"string","description":"Markdown note shown below the group header"},"autocollapse":{"type":"boolean","default":false,"description":"If true, this group is collapsed by default in the flow editor. UI hint only."},"start_id":{"type":"string","description":"ID of the first flow module in this group (topological entry point)"},"end_id":{"type":"string","description":"ID of the last flow module in this group (topological exit point)"},"color":{"type":"string","description":"Color for the group in the flow editor, one of: yellow, blue, green, purple, pink, orange, red, cyan, lime, gray. Omit it to let the editor pick one."}},"required":["start_id","end_id"]},"RetryIf":{"type":"object","description":"Conditional retry based on error or result","properties":{"expr":{"type":"string","description":"JavaScript expression that returns true to retry. Has access to 'result' and 'error' variables"}},"required":["expr"]},"StopAfterIf":{"type":"object","description":"Early termination condition for a module","properties":{"skip_if_stopped":{"type":"boolean","description":"If true, following steps are skipped when this condition triggers"},"expr":{"type":"string","description":"JavaScript expression evaluated after the module runs. Can use 'result' (step's result) or 'flow_input'. Return true to stop"},"error_message":{"type":"string","nullable":true,"description":"Custom error message when stopping with an error. Mutually exclusive with skip_if_stopped. If set to a non-empty string, the flow stops with this error. If empty string, a default error message is used. If null or omitted, no error is raised."},"error_include_result":{"type":"boolean","description":"When stopping with an error (error_message set), embed the stopping step's own result inside the raised error object (as error.result) instead of discarding it. The top-level result stays { error }. Defaults to false."}},"required":["expr"]},"FlowModule":{"type":"object","description":"A single step in a flow. Can be a script, subflow, loop, or branch","properties":{"id":{"type":"string","description":"Unique identifier for this step. Used to reference results via 'results.step_id'. Must be a valid identifier (alphanumeric, underscore, hyphen)"},"value":{"$ref":"#/components/schemas/FlowModuleValue"},"stop_after_if":{"description":"Early termination condition evaluated after this step completes","$ref":"#/components/schemas/StopAfterIf"},"stop_after_all_iters_if":{"description":"For loops only - early termination condition evaluated after all iterations complete","$ref":"#/components/schemas/StopAfterIf"},"skip_if":{"type":"object","description":"Conditionally skip this step based on previous results or flow inputs","properties":{"expr":{"type":"string","description":"JavaScript expression that returns true to skip. Can use 'flow_input' or 'results.<step_id>'"}},"required":["expr"]},"sleep":{"description":"Delay before executing this step (in seconds or as expression)","$ref":"#/components/schemas/InputTransform"},"cache_ttl":{"type":"number","description":"Cache duration in seconds for this step's results"},"cache_ignore_s3_path":{"type":"boolean"},"timeout":{"description":"Maximum execution time in seconds (static value or expression)","$ref":"#/components/schemas/InputTransform"},"delete_after_secs":{"type":"integer","description":"If set, delete the step's args, result and logs after this many seconds following job completion"},"summary":{"type":"string","description":"Short description of what this step does"},"mock":{"type":"object","description":"Mock configuration for testing without executing the actual step","properties":{"enabled":{"type":"boolean","description":"If true, return mock value instead of executing"},"return_value":{"description":"Value to return when mocked"}}},"suspend":{"type":"object","description":"Configuration for approval/resume steps that wait for user input","properties":{"required_events":{"type":"integer","description":"Number of approvals required before continuing"},"timeout":{"type":"integer","description":"Timeout in seconds before auto-continuing or canceling"},"resume_form":{"type":"object","description":"Form schema for collecting input when resuming","properties":{"schema":{"type":"object","description":"JSON Schema for the resume form"}}},"user_auth_required":{"type":"boolean","description":"If true, only authenticated users can approve"},"user_groups_required":{"description":"Expression or list of groups that can approve","$ref":"#/components/schemas/InputTransform"},"self_approval_disabled":{"type":"boolean","description":"If true, the user who started the flow cannot approve"},"hide_cancel":{"type":"boolean","description":"If true, hide the cancel button on the approval form"},"continue_on_disapprove_timeout":{"type":"boolean","description":"If true, continue flow on timeout instead of canceling"},"skin":{"type":"string","enum":["detailed","minimal"],"description":"How the approval request is presented, on the approval page and in Slack/Teams approval messages. 'detailed' (used when unset) shows the flow details (arguments, graph, approvers); 'minimal' shows only the request: the step description, form and approve/reject actions"}}},"priority":{"type":"number","description":"Execution priority for this step (higher numbers run first)"},"continue_on_error":{"type":"boolean","description":"If true, flow continues even if this step fails"},"job_token_scopes":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Scopes the token of this step's jobs is restricted to (domain:action[:resource], e.g. oidc:write), on top of the flow's own restriction: a step can only narrow it. Applies to everything the step runs (loop and branch bodies, AI agent tools)."},"retry":{"description":"Retry configuration if this step fails","$ref":"#/components/schemas/Retry"},"debouncing":{"description":"Debounce configuration for this step (EE only)","type":"object","properties":{"debounce_delay_s":{"type":"integer","description":"Delay in seconds to debounce this step's executions across flow runs"},"debounce_key":{"type":"string","description":"Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>"},"debounce_args_to_accumulate":{"type":"array","description":"Array-type arguments to accumulate across debounced executions","items":{"type":"string"}},"max_total_debouncing_time":{"type":"integer","description":"Maximum total time in seconds before forced execution"},"max_total_debounces_amount":{"type":"integer","description":"Maximum number of debounces before forced execution"}}}},"required":["value","id"]},"InputTransform":{"description":"Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs","oneOf":[{"$ref":"#/components/schemas/StaticTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"StaticTransform":{"type":"object","description":"Static value passed directly to the step. Use for hardcoded values or resource references like '$res:path/to/resource'","properties":{"value":{"description":"The static value. For resources, use format '$res:path/to/resource'"},"type":{"type":"string","enum":["static"]}},"required":["type"]},"JavascriptTransform":{"type":"object","description":"JavaScript expression evaluated at runtime. Can reference previous step results via 'results.step_id' or flow inputs via 'flow_input.property'. Inside for loops, use 'flow_input.iter.value' for the current iteration value (in while loops it equals 'flow_input.iter.index')","properties":{"expr":{"type":"string","description":"JavaScript expression returning the value. Available variables - results (object with all previous step results), flow_input (flow inputs), flow_input.iter (in loops)"},"type":{"type":"string","enum":["javascript"]}},"required":["expr","type"]},"AiTransform":{"type":"object","description":"Value resolved by the AI runtime for this input. The AI engine decides how to satisfy the parameter.","properties":{"type":{"type":"string","enum":["ai"]}},"required":["type"]},"AIProviderKind":{"type":"string","description":"Supported AI provider types","enum":["openai","azure_openai","azure_foundry","anthropic","mistral","deepseek","googleai","groq","openrouter","togetherai","customai","aws_bedrock","typesafe","cloudflare"]},"ProviderConfig":{"type":"object","description":"Complete AI provider configuration with resource reference and model selection","properties":{"kind":{"$ref":"#/components/schemas/AIProviderKind"},"resource":{"type":"string","description":"Resource reference in format '$res:{resource_path}' pointing to provider credentials"},"model":{"type":"string","description":"Model identifier (e.g., 'gpt-4', 'claude-3-opus-20240229', 'gemini-pro')"},"reasoning_effort":{"type":"string","description":"Provider-native reasoning effort token (e.g. 'low', 'high', 'none') for models that support extended thinking. Optional; unset leaves the provider default."}},"required":["kind","resource","model"]},"StaticProviderTransform":{"type":"object","description":"Static provider configuration passed directly to the AI agent","properties":{"value":{"$ref":"#/components/schemas/ProviderConfig"},"type":{"type":"string","enum":["static"]}},"required":["type","value"]},"ProviderTransform":{"description":"Provider configuration - can be static (ProviderConfig), JavaScript expression, or AI-determined","oneOf":[{"$ref":"#/components/schemas/StaticProviderTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticProviderTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"MemoryOff":{"type":"object","description":"No conversation memory/context","properties":{"kind":{"type":"string","enum":["off"]}},"required":["kind"]},"MemoryWindow":{"type":"object","description":"Keeps the most recent messages of the memory named by the run's memory id (or the step's\\n\`memory_id\`). Without a memory id the agent runs without memory.\\n","properties":{"kind":{"type":"string","enum":["window"]},"context_length":{"type":"integer","description":"Number of most recent messages to load and store. 0 turns memory off."}},"required":["kind","context_length"]},"MemoryAuto":{"type":"object","deprecated":true,"description":"Deprecated, still read as it was written: the run's memory id, else the \`memory_id\` here.\\nThe step's own \`memory_id\` is not read while this kind is set; switch the kind to \`window\`\\nto use it. Without a \`context_length\`, or with 0, it is \`off\` and reads \`previous_messages\`.\\n","properties":{"kind":{"type":"string","enum":["auto"]},"context_length":{"type":"integer","description":"Maximum number of messages to retain in context"},"memory_id":{"type":"string","description":"Identifier for persistent memory across agent invocations"}},"required":["kind"]},"MemoryCompaction":{"type":"object","description":"Keeps the whole memory named by the run's memory id (or the step's \`memory_id\`), replacing\\nits older part with a summary as the conversation approaches the model's context window.\\nWithout a memory id the agent runs without memory, and compaction bounds the run's own loop.\\n","properties":{"kind":{"type":"string","enum":["compaction"]},"context_window":{"type":"integer","description":"Overrides the context window looked up from the model, in tokens. Only a model\\nWindmill does not know needs one; those fall back to 128000.\\n"}},"required":["kind"]},"MemoryMessage":{"type":"object","description":"A single message in conversation history","properties":{"role":{"type":"string","enum":["user","assistant","system"]},"content":{"type":"string"}},"required":["role","content"]},"MemoryManual":{"type":"object","deprecated":true,"description":"Deprecated, still read as it was written. Move the step to \`off\` with \`previous_messages\` instead.","properties":{"kind":{"type":"string","enum":["manual"]},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MemoryMessage"}}},"required":["kind","messages"]},"MemoryConfig":{"description":"Managed memory, stored by Windmill and replayed with each request. The memory is named by a memory id, see \`memory_id\`. While it is off, a step can supply its history in \`previous_messages\`.","oneOf":[{"$ref":"#/components/schemas/MemoryOff"},{"$ref":"#/components/schemas/MemoryWindow"},{"$ref":"#/components/schemas/MemoryCompaction"},{"$ref":"#/components/schemas/MemoryAuto"},{"$ref":"#/components/schemas/MemoryManual"}],"discriminator":{"propertyName":"kind","mapping":{"off":"#/components/schemas/MemoryOff","window":"#/components/schemas/MemoryWindow","compaction":"#/components/schemas/MemoryCompaction","auto":"#/components/schemas/MemoryAuto","manual":"#/components/schemas/MemoryManual"}}},"StaticMemoryTransform":{"type":"object","description":"Static memory configuration passed directly to the AI agent","properties":{"value":{"$ref":"#/components/schemas/MemoryConfig"},"type":{"type":"string","enum":["static"]}},"required":["type","value"]},"MemoryTransform":{"description":"Memory configuration - can be static (MemoryConfig), JavaScript expression, or AI-determined","oneOf":[{"$ref":"#/components/schemas/StaticMemoryTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticMemoryTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"FlowModuleValue":{"description":"The actual implementation of a flow step. Can be a script (inline or referenced), subflow, loop, branch, or special module type","oneOf":[{"$ref":"#/components/schemas/RawScript"},{"$ref":"#/components/schemas/PathScript"},{"$ref":"#/components/schemas/PathFlow"},{"$ref":"#/components/schemas/ForloopFlow"},{"$ref":"#/components/schemas/WhileloopFlow"},{"$ref":"#/components/schemas/BranchOne"},{"$ref":"#/components/schemas/BranchAll"},{"$ref":"#/components/schemas/Identity"},{"$ref":"#/components/schemas/AiAgent"},{"$ref":"#/components/schemas/AiDecision"}],"discriminator":{"propertyName":"type","mapping":{"rawscript":"#/components/schemas/RawScript","script":"#/components/schemas/PathScript","flow":"#/components/schemas/PathFlow","forloopflow":"#/components/schemas/ForloopFlow","whileloopflow":"#/components/schemas/WhileloopFlow","branchone":"#/components/schemas/BranchOne","branchall":"#/components/schemas/BranchAll","identity":"#/components/schemas/Identity","aiagent":"#/components/schemas/AiAgent","aidecision":"#/components/schemas/AiDecision"}}},"RawScript":{"type":"object","description":"Inline script with code defined directly in the flow. Use 'bun' as default language if unspecified. The script receives arguments from input_transforms","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"content":{"type":"string","description":"The script source code. Should export a 'main' function"},"language":{"type":"string","description":"Programming language for this script","enum":["deno","bun","bunnative","python3","go","bash","powershell","postgresql","mysql","bigquery","snowflake","mssql","oracledb","graphql","nativets","php","rust","ansible","csharp","nu","java","ruby","rlang","duckdb"]},"path":{"type":"string","description":"Optional path for saving this script"},"lock":{"type":"string","description":"Lock file content for dependencies"},"type":{"type":"string","enum":["rawscript"]},"tag":{"type":"string","description":"Worker group tag for execution routing"},"concurrent_limit":{"type":"number","description":"Maximum concurrent executions of this script"},"concurrency_time_window_s":{"type":"number","description":"Time window for concurrent_limit"},"custom_concurrency_key":{"type":"string","description":"Custom key for grouping concurrent executions"},"is_trigger":{"type":"boolean","description":"If true, this script is a trigger that can start the flow"},"assets":{"type":"array","description":"External resources this script accesses (S3 objects, resources, etc.)","items":{"type":"object","required":["path","kind"],"properties":{"path":{"type":"string","description":"Path to the asset"},"kind":{"type":"string","description":"Type of asset","enum":["s3object","resource","ducklake","datatable","volume","dbt"]},"access_type":{"type":"string","nullable":true,"description":"Access level for this asset","enum":["r","w","rw"]},"alt_access_type":{"type":"string","nullable":true,"description":"Alternative access level","enum":["r","w","rw"]}}}}},"required":["type","content","language","input_transforms"]},"PathScript":{"type":"object","description":"Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"path":{"type":"string","description":"Path to the script in the workspace (e.g., 'f/scripts/send_email')"},"hash":{"type":"string","description":"Optional specific version hash of the script to use"},"type":{"type":"string","enum":["script"]},"tag_override":{"type":"string","description":"Override the script's default worker group tag"},"is_trigger":{"type":"boolean","description":"If true, this script is a trigger that can start the flow"}},"required":["type","path","input_transforms"]},"PathFlow":{"type":"object","description":"Reference to an existing flow by path. Use this to call another flow as a subflow","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the subflow's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"path":{"type":"string","description":"Path to the flow in the workspace (e.g., 'f/flows/process_user')"},"type":{"type":"string","enum":["flow"]}},"required":["type","path","input_transforms"]},"ForloopFlow":{"type":"object","description":"Executes nested modules in a loop over an iterator. Inside the loop, use 'flow_input.iter.value' to access the current iteration value, and 'flow_input.iter.index' for the index. Supports parallel execution for better performance on I/O-bound operations","properties":{"modules":{"type":"array","description":"Steps to execute for each iteration. These can reference the iteration value via 'flow_input.iter.value'","items":{"$ref":"#/components/schemas/FlowModule"}},"iterator":{"description":"JavaScript expression that returns an array to iterate over. Can reference 'results.step_id' or 'flow_input'","$ref":"#/components/schemas/InputTransform"},"skip_failures":{"type":"boolean","description":"If true, iteration failures don't stop the loop. Failed iterations return null"},"type":{"type":"string","enum":["forloopflow"]},"parallel":{"type":"boolean","description":"If true, iterations run concurrently (faster for I/O-bound operations). Use with parallelism to control concurrency"},"parallelism":{"description":"Maximum number of concurrent iterations when parallel=true. Limits resource usage. Can be static number or expression","$ref":"#/components/schemas/InputTransform"},"squash":{"type":"boolean"}},"required":["modules","iterator","skip_failures","type"]},"WhileloopFlow":{"type":"object","description":"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","properties":{"modules":{"type":"array","description":"Steps to execute in each iteration","items":{"$ref":"#/components/schemas/FlowModule"}},"skip_failures":{"type":"boolean","description":"If true, iteration failures don't stop the loop. Failed iterations return null"},"type":{"type":"string","enum":["whileloopflow"]},"parallel":{"type":"boolean","description":"If true, iterations run concurrently (use with caution in while loops)"},"parallelism":{"description":"Maximum number of concurrent iterations when parallel=true","$ref":"#/components/schemas/InputTransform"},"squash":{"type":"boolean"}},"required":["modules","skip_failures","type"]},"BranchOne":{"type":"object","description":"Conditional branching where only the first matching branch executes. Branches are evaluated in order, and the first one with a true expression runs. If no branches match, the default branch executes","properties":{"branches":{"type":"array","description":"Array of branches to evaluate in order. The first branch with expr evaluating to true executes","items":{"type":"object","properties":{"summary":{"type":"string","description":"Short description of this branch condition"},"expr":{"type":"string","description":"JavaScript expression that returns boolean. Can use 'results.step_id' or 'flow_input'. First true expr wins"},"modules":{"type":"array","description":"Steps to execute if this branch's expr is true","items":{"$ref":"#/components/schemas/FlowModule"}}},"required":["modules","expr"]}},"default":{"type":"array","description":"Steps to execute if no branch expressions match","items":{"$ref":"#/components/schemas/FlowModule"}},"type":{"type":"string","enum":["branchone"]}},"required":["branches","default","type"]},"BranchAll":{"type":"object","description":"Parallel branching where all branches execute simultaneously. Unlike BranchOne, all branches run regardless of conditions. Useful for executing independent tasks concurrently","properties":{"branches":{"type":"array","description":"Array of branches that all execute (either in parallel or sequentially)","items":{"type":"object","properties":{"summary":{"type":"string","description":"Short description of this branch's purpose"},"skip_failure":{"type":"boolean","description":"If true, failure in this branch doesn't fail the entire flow"},"modules":{"type":"array","description":"Steps to execute in this branch","items":{"$ref":"#/components/schemas/FlowModule"}}},"required":["modules"]}},"type":{"type":"string","enum":["branchall"]},"parallel":{"type":"boolean","description":"If true, all branches execute concurrently. If false, they execute sequentially"}},"required":["branches","type"]},"AgentTool":{"type":"object","description":"A tool available to an AI agent. Can be a flow module or an external MCP (Model Context Protocol) tool","properties":{"id":{"type":"string","description":"Unique identifier for this tool. Cannot contain spaces - use underscores instead (e.g., 'get_user_data' not 'get user data')"},"summary":{"type":"string","description":"The name the AI agent calls this tool by, not a human label. On a flowmodule tool it must match ^[a-zA-Z0-9_]+$ - letters, numbers and underscores only (e.g. 'search_documentation', not 'Search documentation') - and always be set; on an mcp or websearch tool it is a plain label. Put the human-readable explanation in 'description'."},"description":{"type":"string","description":"Free-text description of the tool given to the AI to decide when and how to call it. Overrides the description auto-derived from the underlying script."},"job_token_scopes":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Scopes the token of this tool's jobs is restricted to, on top of the agent step's own restriction: a tool can only narrow it."},"value":{"$ref":"#/components/schemas/ToolValue"}},"required":["id","value"]},"ToolValue":{"description":"The implementation of a tool. Can be a flow module (script/flow) or an MCP tool reference","oneOf":[{"$ref":"#/components/schemas/FlowModuleTool"},{"$ref":"#/components/schemas/McpToolValue"},{"$ref":"#/components/schemas/WebsearchToolValue"}],"discriminator":{"propertyName":"tool_type","mapping":{"flowmodule":"#/components/schemas/FlowModuleTool","mcp":"#/components/schemas/McpToolValue","websearch":"#/components/schemas/WebsearchToolValue"}}},"FlowModuleTool":{"description":"A tool implemented as a flow module (script, flow, etc.). The AI can call this like any other flow module","allOf":[{"type":"object","properties":{"tool_type":{"type":"string","enum":["flowmodule"]}},"required":["tool_type"]},{"$ref":"#/components/schemas/FlowModuleValue"}]},"WebsearchToolValue":{"type":"object","description":"A tool implemented as a websearch tool. The AI can call this like any other websearch tool","properties":{"tool_type":{"type":"string","enum":["websearch"]}},"required":["tool_type"]},"McpToolValue":{"type":"object","description":"Reference to an external MCP (Model Context Protocol) tool. The AI can call tools from MCP servers","properties":{"tool_type":{"type":"string","enum":["mcp"]},"resource_path":{"type":"string","description":"Path to the MCP resource/server configuration"},"include_tools":{"type":"array","description":"Whitelist of specific tools to include from this MCP server","items":{"type":"string"}},"exclude_tools":{"type":"array","description":"Blacklist of tools to exclude from this MCP server","items":{"type":"string"}}},"required":["tool_type","resource_path"]},"AiAgent":{"type":"object","description":"AI agent step that can use tools to accomplish tasks. The agent receives inputs and can call any of its configured tools to complete the task","properties":{"input_transforms":{"type":"object","description":"Input parameters for the AI agent mapped to their values","properties":{"provider":{"$ref":"#/components/schemas/ProviderTransform"},"output_type":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Output format type.\\nValid values: 'text' (default) - plain text response, 'image' - image generation\\n"},"user_message":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"The user's prompt/message to the AI agent. Supports variable interpolation with\\nflow.input syntax. Required unless memory is off and \`previous_messages\` supplies\\nthe prompt; image output always needs it.\\n"},"system_prompt":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"System instructions that guide the AI's behavior, persona, and response style. Optional."},"streaming":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Boolean. If true, stream the AI response incrementally.\\nStreaming events include: token_delta, reasoning_token_delta, tool_call, tool_call_arguments, tool_execution, tool_result\\n"},"memory":{"$ref":"#/components/schemas/MemoryTransform"},"memory_id":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"String. Names the memory this step reads and writes, overriding the memory id the run\\nwas started with (the chat conversation, an app chat session or the \`memory_id\` run\\nparameter). Leave unset to use the run's memory id. A fixed value shares one memory\\nacross every run; an expression such as \`flow_input.customer_id\` keeps one memory per\\nkey. When it evaluates to an empty value the agent runs without memory. Read only\\nwhile \`memory\` is \`window\` or \`compaction\`: it is ignored when memory is off, and an\\nolder \`auto\` or \`manual\` memory reads neither history input.\\n"},"previous_messages":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of MemoryMessage. History supplied by the flow, sent between the system prompt\\nand the user message. Read only while \`memory\` is off or absent: managed memory\\nignores it, and an older \`auto\` or \`manual\` memory reads neither history input.\\n"},"output_schema":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"JSON Schema object defining structured output format. Used when you need the AI to return data in a specific shape.\\nSupports standard JSON Schema properties: type, properties, required, items, enum, pattern, minLength, maxLength, minimum, maximum, etc.\\nExample: { type: 'object', properties: { name: { type: 'string' }, age: { type: 'integer' } }, required: ['name'] }\\n"},"user_attachments":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of file references (images or PDFs) for the AI agent.\\nFormat: Array<{ bucket: string, key: string }> - S3 object references\\nExample: [{ bucket: 'my-bucket', key: 'documents/report.pdf' }]\\n"},"enabled_tools":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of strings naming which of the tools configured in \`tools\` the agent may call\\nthis run. Leaving it unset carries every one of them; an empty array carries none.\\nA tool is named as the model is shown it. An entry the model is shown nothing of is\\nnamed by what identifies it instead: an MCP server by its resource path, carrying\\nevery tool it exposes (which of them stays that entry's include_tools/exclude_tools),\\nand a websearch entry by the reserved name '__wm_web_search', whatever summary it carries\\n(no tool may take that name).\\nExample: ['get_user', 'u/admin/github_mcp', '__wm_web_search']\\n"},"max_completion_tokens":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Integer. Maximum number of tokens the AI will generate in its response.\\nRange: 1 to 4,294,967,295. Typical values: 256-4096 for most use cases.\\n"},"temperature":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Float. Controls randomness/creativity of responses.\\nRange: 0.0 to 2.0 (provider-dependent)\\n- 0.0 = deterministic, focused responses\\n- 0.7 = balanced (common default)\\n- 1.0+ = more creative/random\\n"},"max_iterations":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Number. Limits how many times the agent can loop through reasoning and tool use.\\nRange: 1-1000.\\n"}}},"tools":{"type":"array","description":"Array of tools the agent can use. The agent decides which tools to call based on the task","items":{"$ref":"#/components/schemas/AgentTool"}},"type":{"type":"string","enum":["aiagent"]},"tag":{"type":"string","description":"Worker group tag for execution routing. If not set, the AI agent step runs on the flow's tag (default \`flow\`)"},"omit_output_from_conversation":{"type":"boolean","default":false,"description":"If true, this AI agent step does not persist its assistant or tool messages to the flow conversation when chat mode is enabled."},"agent":{"type":"string","description":"Path of a reusable \`ai_agent\` resource (hybrid linking). When set, the agent brain\\nconfig (provider/model/system prompt/etc.) and tool set are resolved at runtime from\\nthat resource; the module's input_transforms then only carry the flow-local inputs\\n(user_message, user_attachments, enabled_tools and the history inputs memory_id and previous_messages).\\n"},"tool_inputs":{"type":"object","description":"Host-local wiring for an agent's tool inputs, keyed by tool id then input key. Binds the\\nreferenced agent's tools to this flow's context (flow_input/results) without mutating the\\nshared resource; overlaid onto the tools' input_transforms at runtime \\u2014 including when\\n\`agent\` is unset, since a step forked for editing keeps these overrides until it is saved\\nback or unlinked.\\n","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}}},"parallel":{"type":"boolean","description":"If true, the agent can execute multiple tool calls in parallel"}},"required":["type","input_transforms"]},"AiDecision":{"type":"object","description":"AI decision step: one call to a decision model (TypeSafe's Jev, Cloudflare's\\nJev-compatible Clef, or OpenAI's Decisions API) that answers typed questions about a\\nstate with calibrated probabilities, instead of generating text.\\nPrefer it over an AI agent to classify, route, score or check something: it is fast,\\ncheap and its answers are structured. Its result is { output: { <question name>: answer },\\nmodel, usage }, so a later step reads e.g. results.<id>.output.intent.choice. To route on\\nthe answers, follow it with a branchone whose branch exprs read\\nresults.<id>.output.<question>.choice. Usable as an AI agent tool, where the calling agent\\nsupplies the state.\\n","properties":{"input_transforms":{"type":"object","description":"Input parameters for the decision mapped to their values","properties":{"provider":{"$ref":"#/components/schemas/ProviderTransform"},"state":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"What the questions are asked about: a string, an object or an array of strings.\\nAn object with descriptive keys holding only what the questions need works best.\\nExample: { message: flow_input.message, plan: results.a.plan }\\n"},"questions":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Object mapping each question name to { type, instructions, criteria }, where type is:\\n- 'choice': criteria maps each option to its description (up to 255); the answer\\n has choice, probabilities and confidence\\n- 'score': criteria is an ordered array of 2 to 10 level descriptions; the answer\\n has score, legend, probabilities and confidence\\n- 'noul': yes/no, criteria optionally { true, false } descriptions; the answer has\\n noul, the probability of yes (0 to 1)\\nExample: { intent: { type: 'choice', instructions: 'What does the customer want?',\\ncriteria: { refund: 'Money back', bug: 'Something is broken' } } }\\n"}},"required":["provider","state","questions"]},"type":{"type":"string","enum":["aidecision"]},"tag":{"type":"string","description":"Worker group tag for execution routing. If not set, the step runs on the flow's tag (default \`flow\`)"}},"required":["type","input_transforms"]},"Identity":{"type":"object","description":"Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder","properties":{"type":{"type":"string","enum":["identity"]},"flow":{"type":"boolean","description":"If true, marks this as a flow identity (special handling)"}},"required":["type"]},"FlowStatus":{"type":"object","properties":{"step":{"type":"integer"},"modules":{"type":"array","items":{"$ref":"#/components/schemas/FlowStatusModule"}},"user_states":{"additionalProperties":true},"preprocessor_module":{"allOf":[{"$ref":"#/components/schemas/FlowStatusModule"}]},"failure_module":{"allOf":[{"$ref":"#/components/schemas/FlowStatusModule"},{"type":"object","properties":{"parent_module":{"type":"string"}}}]},"retry":{"type":"object","properties":{"fail_count":{"type":"integer"},"failed_jobs":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"required":["step","modules","failure_module"]},"FlowStatusModule":{"type":"object","properties":{"type":{"type":"string","enum":["WaitingForPriorSteps","WaitingForEvents","WaitingForExecutor","InProgress","Success","Failure"]},"id":{"type":"string"},"job":{"type":"string","format":"uuid"},"count":{"type":"integer"},"progress":{"type":"integer"},"iterator":{"type":"object","properties":{"index":{"type":"integer"},"itered":{"type":"array","items":{}},"itered_len":{"type":"integer"},"args":{}}},"flow_jobs":{"type":"array","items":{"type":"string"}},"flow_jobs_success":{"type":"array","items":{"type":"boolean"}},"flow_jobs_duration":{"type":"object","properties":{"started_at":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"array","items":{"type":"integer"}}}},"branch_chosen":{"type":"object","properties":{"type":{"type":"string","enum":["branch","default"]},"branch":{"type":"integer"}},"required":["type"]},"branchall":{"type":"object","properties":{"branch":{"type":"integer"},"len":{"type":"integer"}},"required":["branch","len"]},"approvers":{"type":"array","items":{"type":"object","properties":{"resume_id":{"type":"integer"},"approver":{"type":"string"}},"required":["resume_id","approver"]}},"failed_retries":{"type":"array","items":{"type":"string","format":"uuid"}},"skipped":{"type":"boolean"},"agent_actions":{"type":"array","items":{"type":"object","oneOf":[{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"function_name":{"type":"string"},"type":{"type":"string","enum":["tool_call"]},"module_id":{"type":"string"}},"required":["job_id","function_name","type","module_id"]},{"type":"object","properties":{"call_id":{"type":"string","format":"uuid"},"function_name":{"type":"string"},"resource_path":{"type":"string"},"type":{"type":"string","enum":["mcp_tool_call"]},"arguments":{"type":"object"}},"required":["call_id","function_name","resource_path","type"]},{"type":"object","properties":{"type":{"type":"string","enum":["web_search"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["message"]}},"required":["content","type"]}]}},"agent_actions_success":{"type":"array","items":{"type":"boolean"}}},"required":["type"]}}
|
|
86066
|
+
{"OpenFlow":{"type":"object","description":"Top-level flow definition containing metadata, configuration, and the flow structure","properties":{"summary":{"type":"string","description":"Short description of what this flow does"},"description":{"type":"string","description":"Detailed documentation for this flow"},"value":{"$ref":"#/components/schemas/FlowValue"},"schema":{"type":"object","description":"JSON Schema for flow inputs. Use this to define input parameters, their types, defaults, and validation. For resource inputs, set type to 'object' and format to 'resource-<type>' (e.g., 'resource-stripe')"},"on_behalf_of_email":{"type":"string","description":"Address of the account the flow runs on behalf of. Derived from on_behalf_of on read; accepted on write, where it is resolved to the account it names."},"on_behalf_of":{"type":"string","description":"The flow runs with the permissions of this identity: u/{username}, g/{group}, or a bare email when the username is itself email-shaped. The only stored half of the identity; on_behalf_of_email is derived from it. Omit it when writing and it is resolved from that address instead."}},"required":["summary","value"]},"FlowValue":{"type":"object","description":"The flow structure containing modules and optional preprocessor/failure handlers","properties":{"modules":{"type":"array","description":"Array of steps that execute in sequence. Each step can be a script, subflow, loop, or branch","items":{"$ref":"#/components/schemas/FlowModule"}},"failure_module":{"description":"Special module that executes when the flow fails. Receives error object with message, name, stack, and step_id. Must have id 'failure'. Only supports script/rawscript types","$ref":"#/components/schemas/FlowModule"},"preprocessor_module":{"description":"Special module that runs before the first step on external triggers. Must have id 'preprocessor'. Only supports script/rawscript types. Cannot reference other step results","$ref":"#/components/schemas/FlowModule"},"same_worker":{"type":"boolean","description":"If true, all steps run on the same worker for better performance"},"preserve_step_tags":{"type":"boolean","description":"If true and the flow runs on a custom worker tag, steps that declare their own non-empty tag run on it instead of inheriting the flow tag. Steps without their own tag still inherit the flow tag."},"concurrent_limit":{"type":"number","description":"Maximum number of concurrent executions of this flow"},"concurrency_key":{"type":"string","description":"Expression to group concurrent executions (e.g., by user ID)"},"concurrency_time_window_s":{"type":"number","description":"Time window in seconds for concurrent_limit"},"debounce_delay_s":{"type":"integer","description":"Delay in seconds to debounce flow executions"},"debounce_key":{"type":"string","description":"Expression to group debounced executions"},"debounce_args_to_accumulate":{"type":"array","description":"Arguments to accumulate across debounced executions","items":{"type":"string"}},"max_total_debouncing_time":{"type":"integer","description":"Maximum total time in seconds that a job can be debounced"},"max_total_debounces_amount":{"type":"integer","description":"Maximum number of times a job can be debounced"},"skip_expr":{"type":"string","description":"JavaScript expression to conditionally skip the entire flow"},"cache_ttl":{"type":"number","description":"Cache duration in seconds for flow results"},"cache_ignore_s3_path":{"type":"boolean"},"delete_after_secs":{"type":"integer","description":"If set, delete the flow job's args, result and logs after this many seconds following job completion"},"flow_env":{"type":"object","description":"Environment variables available to all steps. Values can be strings, JSON values, or special references: '$var:path' (workspace variable) or '$res:path' (resource).","additionalProperties":{}},"priority":{"type":"number","description":"Execution priority (higher numbers run first)"},"early_return":{"type":"string","description":"JavaScript expression to return early from the flow"},"chat_input_enabled":{"type":"boolean","description":"Whether this flow accepts chat-style input"},"notes":{"type":"array","description":"Sticky notes attached to the flow","items":{"$ref":"#/components/schemas/FlowNote"}},"groups":{"type":"array","description":"Semantic groups of modules for organizational purposes","items":{"$ref":"#/components/schemas/FlowGroup"}}},"required":["modules"]},"Retry":{"type":"object","description":"Retry configuration for failed module executions","properties":{"constant":{"type":"object","description":"Retry with constant delay between attempts","properties":{"attempts":{"type":"integer","description":"Number of retry attempts"},"seconds":{"type":"integer","description":"Seconds to wait between retries"}}},"exponential":{"type":"object","description":"Retry with exponential backoff: the n-th retry waits multiplier \\u00d7 seconds^n","properties":{"attempts":{"type":"integer","description":"Number of retry attempts"},"multiplier":{"type":"integer","description":"Multiplier for exponential backoff"},"seconds":{"type":"integer","minimum":1,"description":"Base of the exponential (seconds); the n-th retry waits multiplier \\u00d7 seconds^n, where n counts constant retries too"},"random_factor":{"type":"integer","minimum":0,"maximum":100,"description":"Random jitter percentage (0-100) to avoid thundering herd"}}},"retry_if":{"$ref":"#/components/schemas/RetryIf"}}},"FlowNote":{"type":"object","description":"A sticky note attached to a flow for documentation and annotation","properties":{"id":{"type":"string","description":"Unique identifier for the note"},"text":{"type":"string","description":"Content of the note"},"position":{"type":"object","description":"Position of the note in the flow editor","properties":{"x":{"type":"number","description":"X coordinate"},"y":{"type":"number","description":"Y coordinate"}},"required":["x","y"]},"size":{"type":"object","description":"Size of the note in the flow editor","properties":{"width":{"type":"number","description":"Width in pixels"},"height":{"type":"number","description":"Height in pixels"}},"required":["width","height"]},"color":{"type":"string","description":"Color of the note, one of: yellow, blue, green, purple, pink, orange, red, cyan, lime, gray. Any other value renders unstyled."},"type":{"type":"string","enum":["free","group"],"description":"Type of note - 'free' for standalone notes. 'group' notes are deprecated; segment a flow with FlowValue.groups instead."},"locked":{"type":"boolean","default":false,"description":"Whether the note is locked and cannot be edited or moved"},"contained_node_ids":{"type":"array","items":{"type":"string"},"description":"For group notes, the IDs of nodes contained within this group"}},"required":["id","text","color","type"]},"FlowGroup":{"type":"object","description":"A semantic group of flow modules for organizational purposes. Does not affect execution \\u2014 modules remain in their original position in the flow. Groups provide naming and collapsibility in the editor. Members are computed dynamically from all nodes on paths between start_id and end_id.","properties":{"summary":{"type":"string","description":"Display name for this group"},"note":{"type":"string","description":"Markdown note shown below the group header"},"autocollapse":{"type":"boolean","default":false,"description":"If true, this group is collapsed by default in the flow editor. UI hint only."},"start_id":{"type":"string","description":"ID of the first flow module in this group (topological entry point)"},"end_id":{"type":"string","description":"ID of the last flow module in this group (topological exit point)"},"color":{"type":"string","description":"Color for the group in the flow editor, one of: yellow, blue, green, purple, pink, orange, red, cyan, lime, gray. Omit it to let the editor pick one."}},"required":["start_id","end_id"]},"RetryIf":{"type":"object","description":"Conditional retry based on error or result","properties":{"expr":{"type":"string","description":"JavaScript expression that returns true to retry. Has access to 'result' and 'error' variables"}},"required":["expr"]},"StopAfterIf":{"type":"object","description":"Early termination condition for a module","properties":{"skip_if_stopped":{"type":"boolean","description":"If true, following steps are skipped when this condition triggers"},"expr":{"type":"string","description":"JavaScript expression evaluated after the module runs. Can use 'result' (step's result) or 'flow_input'. Return true to stop"},"error_message":{"type":"string","nullable":true,"description":"Custom error message when stopping with an error. Mutually exclusive with skip_if_stopped. If set to a non-empty string, the flow stops with this error. If empty string, a default error message is used. If null or omitted, no error is raised."},"error_include_result":{"type":"boolean","description":"When stopping with an error (error_message set), embed the stopping step's own result inside the raised error object (as error.result) instead of discarding it. The top-level result stays { error }. Defaults to false."}},"required":["expr"]},"FlowModule":{"type":"object","description":"A single step in a flow. Can be a script, subflow, loop, or branch","properties":{"id":{"type":"string","description":"Unique identifier for this step. Used to reference results via 'results.step_id'. Must be a valid identifier (alphanumeric, underscore, hyphen)"},"value":{"$ref":"#/components/schemas/FlowModuleValue"},"stop_after_if":{"description":"Early termination condition evaluated after this step completes","$ref":"#/components/schemas/StopAfterIf"},"stop_after_all_iters_if":{"description":"For loops only - early termination condition evaluated after all iterations complete","$ref":"#/components/schemas/StopAfterIf"},"skip_if":{"type":"object","description":"Conditionally skip this step based on previous results or flow inputs","properties":{"expr":{"type":"string","description":"JavaScript expression that returns true to skip. Can use 'flow_input' or 'results.<step_id>'"}},"required":["expr"]},"sleep":{"description":"Delay before executing this step (in seconds or as expression)","$ref":"#/components/schemas/InputTransform"},"cache_ttl":{"type":"number","description":"Cache duration in seconds for this step's results"},"cache_ignore_s3_path":{"type":"boolean"},"timeout":{"description":"Maximum execution time in seconds (static value or expression)","$ref":"#/components/schemas/InputTransform"},"delete_after_secs":{"type":"integer","description":"If set, delete the step's args, result and logs after this many seconds following job completion"},"summary":{"type":"string","description":"Short description of what this step does"},"mock":{"type":"object","description":"Mock configuration for testing without executing the actual step","properties":{"enabled":{"type":"boolean","description":"If true, return mock value instead of executing"},"return_value":{"description":"Value to return when mocked"}}},"suspend":{"type":"object","description":"Configuration for approval/resume steps that wait for user input","properties":{"required_events":{"type":"integer","description":"Number of approvals required before continuing"},"timeout":{"type":"integer","description":"Timeout in seconds before auto-continuing or canceling"},"resume_form":{"type":"object","description":"Form schema for collecting input when resuming","properties":{"schema":{"type":"object","description":"JSON Schema for the resume form"}}},"user_auth_required":{"type":"boolean","description":"If true, only authenticated users can approve"},"user_groups_required":{"description":"Expression or list of groups that can approve","$ref":"#/components/schemas/InputTransform"},"self_approval_disabled":{"type":"boolean","description":"If true, the user who started the flow cannot approve"},"hide_cancel":{"type":"boolean","description":"If true, hide the cancel button on the approval form"},"continue_on_disapprove_timeout":{"type":"boolean","description":"If true, continue flow on timeout instead of canceling"},"skin":{"type":"string","enum":["detailed","minimal"],"description":"How the approval request is presented, on the approval page and in Slack/Teams approval messages. 'detailed' (used when unset) shows the flow details (arguments, graph, approvers); 'minimal' shows only the request: the step description, form and approve/reject actions"}}},"priority":{"type":"number","description":"Execution priority for this step (higher numbers run first)"},"continue_on_error":{"type":"boolean","description":"If true, flow continues even if this step fails"},"job_token_scopes":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Scopes the token of this step's jobs is restricted to (domain:action[:resource], e.g. oidc:write), on top of the flow's own restriction: a step can only narrow it. Applies to everything the step runs (loop and branch bodies, AI agent tools)."},"retry":{"description":"Retry configuration if this step fails","$ref":"#/components/schemas/Retry"},"debouncing":{"description":"Debounce configuration for this step (EE only)","type":"object","properties":{"debounce_delay_s":{"type":"integer","description":"Delay in seconds to debounce this step's executions across flow runs"},"debounce_key":{"type":"string","description":"Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>"},"debounce_args_to_accumulate":{"type":"array","description":"Array-type arguments to accumulate across debounced executions","items":{"type":"string"}},"max_total_debouncing_time":{"type":"integer","description":"Maximum total time in seconds before forced execution"},"max_total_debounces_amount":{"type":"integer","description":"Maximum number of debounces before forced execution"}}}},"required":["value","id"]},"InputTransform":{"description":"Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs","oneOf":[{"$ref":"#/components/schemas/StaticTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"StaticTransform":{"type":"object","description":"Static value passed directly to the step. Use for hardcoded values or resource references like '$res:path/to/resource'","properties":{"value":{"description":"The static value. For resources, use format '$res:path/to/resource'"},"type":{"type":"string","enum":["static"]}},"required":["type"]},"JavascriptTransform":{"type":"object","description":"JavaScript expression evaluated at runtime. Can reference previous step results via 'results.step_id' or flow inputs via 'flow_input.property'. Inside for loops, use 'flow_input.iter.value' for the current iteration value (in while loops it equals 'flow_input.iter.index')","properties":{"expr":{"type":"string","description":"JavaScript expression returning the value. Available variables - results (object with all previous step results), flow_input (flow inputs), flow_input.iter (in loops)"},"type":{"type":"string","enum":["javascript"]}},"required":["expr","type"]},"AiTransform":{"type":"object","description":"Value resolved by the AI runtime for this input. The AI engine decides how to satisfy the parameter.","properties":{"type":{"type":"string","enum":["ai"]}},"required":["type"]},"AIProviderKind":{"type":"string","description":"Supported AI provider types","enum":["openai","azure_openai","azure_foundry","anthropic","mistral","deepseek","googleai","groq","openrouter","togetherai","customai","aws_bedrock","typesafe","cloudflare"]},"ProviderConfig":{"type":"object","description":"Complete AI provider configuration with resource reference and model selection","properties":{"kind":{"$ref":"#/components/schemas/AIProviderKind"},"resource":{"type":"string","description":"Resource reference in format '$res:{resource_path}' pointing to provider credentials"},"model":{"type":"string","description":"Model identifier (e.g., 'gpt-4', 'claude-3-opus-20240229', 'gemini-pro')"},"reasoning_effort":{"type":"string","description":"Provider-native reasoning effort token (e.g. 'low', 'high', 'none') for models that support extended thinking. Optional; unset leaves the provider default."}},"required":["kind","resource","model"]},"StaticProviderTransform":{"type":"object","description":"Static provider configuration passed directly to the AI agent","properties":{"value":{"$ref":"#/components/schemas/ProviderConfig"},"type":{"type":"string","enum":["static"]}},"required":["type","value"]},"ProviderTransform":{"description":"Provider configuration - can be static (ProviderConfig), JavaScript expression, or AI-determined","oneOf":[{"$ref":"#/components/schemas/StaticProviderTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticProviderTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"MemoryOff":{"type":"object","description":"No conversation memory/context","properties":{"kind":{"type":"string","enum":["off"]}},"required":["kind"]},"MemoryWindow":{"type":"object","description":"Keeps the most recent messages of the memory named by the run's memory id (or the step's\\n\`memory_id\`). Without a memory id the agent runs without memory.\\n","properties":{"kind":{"type":"string","enum":["window"]},"context_length":{"type":"integer","description":"Number of most recent messages to load and store. 0 turns memory off."}},"required":["kind","context_length"]},"MemoryAuto":{"type":"object","deprecated":true,"description":"Deprecated, still read as it was written: the run's memory id, else the \`memory_id\` here.\\nThe step's own \`memory_id\` is not read while this kind is set; switch the kind to \`window\`\\nto use it. Without a \`context_length\`, or with 0, it is \`off\` and reads \`previous_messages\`.\\n","properties":{"kind":{"type":"string","enum":["auto"]},"context_length":{"type":"integer","description":"Maximum number of messages to retain in context"},"memory_id":{"type":"string","description":"Identifier for persistent memory across agent invocations"}},"required":["kind"]},"MemoryCompaction":{"type":"object","description":"Keeps the whole memory named by the run's memory id (or the step's \`memory_id\`), replacing\\nits older part with a summary as the conversation approaches the model's context window.\\nWithout a memory id the agent runs without memory, and compaction bounds the run's own loop.\\n","properties":{"kind":{"type":"string","enum":["compaction"]},"context_window":{"type":"integer","description":"Overrides the context window looked up from the model, in tokens. Only a model\\nWindmill does not know needs one; those fall back to 128000.\\n"}},"required":["kind"]},"MemoryMessage":{"type":"object","description":"A single message in conversation history","properties":{"role":{"type":"string","enum":["user","assistant","system"]},"content":{"type":"string"}},"required":["role","content"]},"MemoryManual":{"type":"object","deprecated":true,"description":"Deprecated, still read as it was written. Move the step to \`off\` with \`previous_messages\` instead.","properties":{"kind":{"type":"string","enum":["manual"]},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MemoryMessage"}}},"required":["kind","messages"]},"MemoryConfig":{"description":"Managed memory, stored by Windmill and replayed with each request. The memory is named by a memory id, see \`memory_id\`. While it is off, a step can supply its history in \`previous_messages\`.","oneOf":[{"$ref":"#/components/schemas/MemoryOff"},{"$ref":"#/components/schemas/MemoryWindow"},{"$ref":"#/components/schemas/MemoryCompaction"},{"$ref":"#/components/schemas/MemoryAuto"},{"$ref":"#/components/schemas/MemoryManual"}],"discriminator":{"propertyName":"kind","mapping":{"off":"#/components/schemas/MemoryOff","window":"#/components/schemas/MemoryWindow","compaction":"#/components/schemas/MemoryCompaction","auto":"#/components/schemas/MemoryAuto","manual":"#/components/schemas/MemoryManual"}}},"StaticMemoryTransform":{"type":"object","description":"Static memory configuration passed directly to the AI agent","properties":{"value":{"$ref":"#/components/schemas/MemoryConfig"},"type":{"type":"string","enum":["static"]}},"required":["type","value"]},"MemoryTransform":{"description":"Memory configuration - can be static (MemoryConfig), JavaScript expression, or AI-determined","oneOf":[{"$ref":"#/components/schemas/StaticMemoryTransform"},{"$ref":"#/components/schemas/JavascriptTransform"},{"$ref":"#/components/schemas/AiTransform"}],"discriminator":{"propertyName":"type","mapping":{"static":"#/components/schemas/StaticMemoryTransform","javascript":"#/components/schemas/JavascriptTransform","ai":"#/components/schemas/AiTransform"}}},"FlowModuleValue":{"description":"The actual implementation of a flow step. Can be a script (inline or referenced), subflow, loop, branch, or special module type","oneOf":[{"$ref":"#/components/schemas/RawScript"},{"$ref":"#/components/schemas/PathScript"},{"$ref":"#/components/schemas/PathFlow"},{"$ref":"#/components/schemas/ForloopFlow"},{"$ref":"#/components/schemas/WhileloopFlow"},{"$ref":"#/components/schemas/BranchOne"},{"$ref":"#/components/schemas/BranchAll"},{"$ref":"#/components/schemas/Identity"},{"$ref":"#/components/schemas/AiAgent"},{"$ref":"#/components/schemas/AiDecision"}],"discriminator":{"propertyName":"type","mapping":{"rawscript":"#/components/schemas/RawScript","script":"#/components/schemas/PathScript","flow":"#/components/schemas/PathFlow","forloopflow":"#/components/schemas/ForloopFlow","whileloopflow":"#/components/schemas/WhileloopFlow","branchone":"#/components/schemas/BranchOne","branchall":"#/components/schemas/BranchAll","identity":"#/components/schemas/Identity","aiagent":"#/components/schemas/AiAgent","aidecision":"#/components/schemas/AiDecision"}}},"RawScript":{"type":"object","description":"Inline script with code defined directly in the flow. Use 'bun' as default language if unspecified. The script receives arguments from input_transforms","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"content":{"type":"string","description":"The script source code. Should export a 'main' function"},"language":{"type":"string","description":"Programming language for this script","enum":["deno","bun","bunnative","python3","go","bash","powershell","postgresql","mysql","bigquery","snowflake","mssql","oracledb","graphql","nativets","php","rust","ansible","csharp","nu","java","ruby","rlang","duckdb"]},"path":{"type":"string","description":"Optional path for saving this script"},"lock":{"type":"string","description":"Lock file content for dependencies"},"type":{"type":"string","enum":["rawscript"]},"tag":{"type":"string","description":"Worker group tag for execution routing"},"concurrent_limit":{"type":"number","description":"Maximum concurrent executions of this script"},"concurrency_time_window_s":{"type":"number","description":"Time window for concurrent_limit"},"custom_concurrency_key":{"type":"string","description":"Custom key for grouping concurrent executions"},"is_trigger":{"type":"boolean","description":"If true, this script is a trigger that can start the flow"},"assets":{"type":"array","description":"External resources this script accesses (S3 objects, resources, etc.)","items":{"type":"object","required":["path","kind"],"properties":{"path":{"type":"string","description":"Path to the asset"},"kind":{"type":"string","description":"Type of asset","enum":["s3object","resource","ducklake","datatable","volume","dbt"]},"access_type":{"type":"string","nullable":true,"description":"Access level for this asset","enum":["r","w","rw"]},"alt_access_type":{"type":"string","nullable":true,"description":"Alternative access level","enum":["r","w","rw"]}}}}},"required":["type","content","language","input_transforms"]},"PathScript":{"type":"object","description":"Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"path":{"type":"string","description":"Path to the script in the workspace (e.g., 'f/scripts/send_email')"},"hash":{"type":"string","description":"Optional specific version hash of the script to use"},"type":{"type":"string","enum":["script"]},"tag_override":{"type":"string","description":"Override the script's default worker group tag"},"is_trigger":{"type":"boolean","description":"If true, this script is a trigger that can start the flow"}},"required":["type","path","input_transforms"]},"PathFlow":{"type":"object","description":"Reference to an existing flow by path. Use this to call another flow as a subflow","properties":{"input_transforms":{"type":"object","description":"Map of parameter names to their values (static or JavaScript expressions). These become the subflow's input arguments","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}},"path":{"type":"string","description":"Path to the flow in the workspace (e.g., 'f/flows/process_user')"},"type":{"type":"string","enum":["flow"]}},"required":["type","path","input_transforms"]},"ForloopFlow":{"type":"object","description":"Executes nested modules in a loop over an iterator. Inside the loop, use 'flow_input.iter.value' to access the current iteration value, and 'flow_input.iter.index' for the index. Supports parallel execution for better performance on I/O-bound operations","properties":{"modules":{"type":"array","description":"Steps to execute for each iteration. These can reference the iteration value via 'flow_input.iter.value'","items":{"$ref":"#/components/schemas/FlowModule"}},"iterator":{"description":"JavaScript expression that returns an array to iterate over. Can reference 'results.step_id' or 'flow_input'","$ref":"#/components/schemas/InputTransform"},"skip_failures":{"type":"boolean","description":"If true, iteration failures don't stop the loop. Failed iterations return null"},"type":{"type":"string","enum":["forloopflow"]},"parallel":{"type":"boolean","description":"If true, iterations run concurrently (faster for I/O-bound operations). Use with parallelism to control concurrency"},"parallelism":{"description":"Maximum number of concurrent iterations when parallel=true. Limits resource usage. Can be static number or expression","$ref":"#/components/schemas/InputTransform"},"squash":{"type":"boolean"}},"required":["modules","iterator","skip_failures","type"]},"WhileloopFlow":{"type":"object","description":"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","properties":{"modules":{"type":"array","description":"Steps to execute in each iteration","items":{"$ref":"#/components/schemas/FlowModule"}},"skip_failures":{"type":"boolean","description":"If true, iteration failures don't stop the loop. Failed iterations return null"},"type":{"type":"string","enum":["whileloopflow"]},"parallel":{"type":"boolean","description":"If true, iterations run concurrently (use with caution in while loops)"},"parallelism":{"description":"Maximum number of concurrent iterations when parallel=true","$ref":"#/components/schemas/InputTransform"},"squash":{"type":"boolean"}},"required":["modules","skip_failures","type"]},"BranchOne":{"type":"object","description":"Conditional branching where only the first matching branch executes. Branches are evaluated in order, and the first one with a true expression runs. If no branches match, the default branch executes","properties":{"branches":{"type":"array","description":"Array of branches to evaluate in order. The first branch with expr evaluating to true executes","items":{"type":"object","properties":{"summary":{"type":"string","description":"Short description of this branch condition"},"expr":{"type":"string","description":"JavaScript expression that returns boolean. Can use 'results.step_id' or 'flow_input'. First true expr wins"},"modules":{"type":"array","description":"Steps to execute if this branch's expr is true","items":{"$ref":"#/components/schemas/FlowModule"}}},"required":["modules","expr"]}},"default":{"type":"array","description":"Steps to execute if no branch expressions match","items":{"$ref":"#/components/schemas/FlowModule"}},"type":{"type":"string","enum":["branchone"]}},"required":["branches","default","type"]},"BranchAll":{"type":"object","description":"Parallel branching where all branches execute simultaneously. Unlike BranchOne, all branches run regardless of conditions. Useful for executing independent tasks concurrently","properties":{"branches":{"type":"array","description":"Array of branches that all execute (either in parallel or sequentially)","items":{"type":"object","properties":{"summary":{"type":"string","description":"Short description of this branch's purpose"},"skip_failure":{"type":"boolean","description":"If true, failure in this branch doesn't fail the entire flow"},"modules":{"type":"array","description":"Steps to execute in this branch","items":{"$ref":"#/components/schemas/FlowModule"}}},"required":["modules"]}},"type":{"type":"string","enum":["branchall"]},"parallel":{"type":"boolean","description":"If true, all branches execute concurrently. If false, they execute sequentially"}},"required":["branches","type"]},"AgentTool":{"type":"object","description":"A tool available to an AI agent. Can be a flow module or an external MCP (Model Context Protocol) tool","properties":{"id":{"type":"string","description":"Unique identifier for this tool. Cannot contain spaces - use underscores instead (e.g., 'get_user_data' not 'get user data')"},"summary":{"type":"string","description":"The name the AI agent calls this tool by, not a human label. On a flowmodule tool it must match ^[a-zA-Z0-9_]+$ - letters, numbers and underscores only (e.g. 'search_documentation', not 'Search documentation') - and always be set; on an mcp or websearch tool it is a plain label. Put the human-readable explanation in 'description'."},"description":{"type":"string","description":"Free-text description of the tool given to the AI to decide when and how to call it. Overrides the description auto-derived from the underlying script."},"job_token_scopes":{"type":"array","nullable":true,"items":{"type":"string"},"description":"Scopes the token of this tool's jobs is restricted to, on top of the agent step's own restriction: a tool can only narrow it."},"value":{"$ref":"#/components/schemas/ToolValue"}},"required":["id","value"]},"ToolValue":{"description":"The implementation of a tool. Can be a flow module (script/flow) or an MCP tool reference","oneOf":[{"$ref":"#/components/schemas/FlowModuleTool"},{"$ref":"#/components/schemas/McpToolValue"},{"$ref":"#/components/schemas/WebsearchToolValue"}],"discriminator":{"propertyName":"tool_type","mapping":{"flowmodule":"#/components/schemas/FlowModuleTool","mcp":"#/components/schemas/McpToolValue","websearch":"#/components/schemas/WebsearchToolValue"}}},"FlowModuleTool":{"description":"A tool implemented as a flow module (script, flow, etc.). The AI can call this like any other flow module","allOf":[{"type":"object","properties":{"tool_type":{"type":"string","enum":["flowmodule"]}},"required":["tool_type"]},{"$ref":"#/components/schemas/FlowModuleValue"}]},"WebsearchToolValue":{"type":"object","description":"A tool implemented as a websearch tool. The AI can call this like any other websearch tool","properties":{"tool_type":{"type":"string","enum":["websearch"]}},"required":["tool_type"]},"McpToolValue":{"type":"object","description":"Reference to an external MCP (Model Context Protocol) tool. The AI can call tools from MCP servers","properties":{"tool_type":{"type":"string","enum":["mcp"]},"resource_path":{"type":"string","description":"Path to the MCP resource/server configuration"},"include_tools":{"type":"array","description":"Whitelist of specific tools to include from this MCP server","items":{"type":"string"}},"exclude_tools":{"type":"array","description":"Blacklist of tools to exclude from this MCP server","items":{"type":"string"}}},"required":["tool_type","resource_path"]},"AiAgent":{"type":"object","description":"AI agent step that can use tools to accomplish tasks. The agent receives inputs and can call any of its configured tools to complete the task","properties":{"input_transforms":{"type":"object","description":"Input parameters for the AI agent mapped to their values","properties":{"provider":{"$ref":"#/components/schemas/ProviderTransform"},"output_type":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Output format type.\\nValid values: 'text' (default) - plain text response, 'image' - image generation\\n"},"user_message":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"The user's prompt/message to the AI agent. Supports variable interpolation with\\nflow.input syntax. Required unless memory is off and \`previous_messages\` supplies\\nthe prompt; image output always needs it.\\n"},"system_prompt":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"System instructions that guide the AI's behavior, persona, and response style. Optional."},"streaming":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Boolean. If true, stream the AI response incrementally.\\nStreaming events include: token_delta, reasoning_token_delta, tool_call, tool_call_arguments, tool_execution, tool_result\\n"},"memory":{"$ref":"#/components/schemas/MemoryTransform"},"memory_id":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"String. Names the memory this step reads and writes, overriding the memory id the run\\nwas started with (the chat conversation, an app chat session or the \`memory_id\` run\\nparameter). Leave unset to use the run's memory id. A fixed value shares one memory\\nacross every run; an expression such as \`flow_input.customer_id\` keeps one memory per\\nkey. When it evaluates to an empty value the agent runs without memory. Read only\\nwhile \`memory\` is \`window\` or \`compaction\`: it is ignored when memory is off, and an\\nolder \`auto\` or \`manual\` memory reads neither history input.\\n"},"previous_messages":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of MemoryMessage. History supplied by the flow, sent between the system prompt\\nand the user message. Read only while \`memory\` is off or absent: managed memory\\nignores it, and an older \`auto\` or \`manual\` memory reads neither history input.\\n"},"output_schema":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"JSON Schema object defining structured output format. Used when you need the AI to return data in a specific shape.\\nSupports standard JSON Schema properties: type, properties, required, items, enum, pattern, minLength, maxLength, minimum, maximum, etc.\\nExample: { type: 'object', properties: { name: { type: 'string' }, age: { type: 'integer' } }, required: ['name'] }\\n"},"user_attachments":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of file references (images or PDFs) for the AI agent.\\nFormat: Array<{ bucket: string, key: string }> - S3 object references\\nExample: [{ bucket: 'my-bucket', key: 'documents/report.pdf' }]\\n"},"enabled_tools":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Array of strings naming which of the tools configured in \`tools\` the agent may call\\nthis run. Leaving it unset carries every one of them; an empty array carries none.\\nA tool is named as the model is shown it. An entry the model is shown nothing of is\\nnamed by what identifies it instead: an MCP server by its resource path, carrying\\nevery tool it exposes (which of them stays that entry's include_tools/exclude_tools),\\nand a websearch entry by the reserved name '__wm_web_search', whatever summary it carries\\n(no tool may take that name).\\nExample: ['get_user', 'u/admin/github_mcp', '__wm_web_search']\\n"},"max_completion_tokens":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Integer. Maximum number of tokens the AI will generate in its response.\\nRange: 1 to 4,294,967,295. Typical values: 256-4096 for most use cases.\\n"},"temperature":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Float. Controls randomness/creativity of responses.\\nRange: 0.0 to 2.0 (provider-dependent)\\n- 0.0 = deterministic, focused responses\\n- 0.7 = balanced (common default)\\n- 1.0+ = more creative/random\\n"},"max_iterations":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Number. Limits how many times the agent can loop through reasoning and tool use.\\nRange: 1-1000.\\n"}}},"tools":{"type":"array","description":"Array of tools the agent can use. The agent decides which tools to call based on the task","items":{"$ref":"#/components/schemas/AgentTool"}},"type":{"type":"string","enum":["aiagent"]},"tag":{"type":"string","description":"Worker group tag for execution routing. If not set, the AI agent step runs on the flow's tag (default \`flow\`)"},"omit_output_from_conversation":{"type":"boolean","default":false,"description":"If true, this AI agent step does not persist its assistant or tool messages to the flow conversation when chat mode is enabled."},"agent":{"type":"string","description":"Path of a reusable \`ai_agent\` resource (hybrid linking). When set, the agent brain\\nconfig (provider/model/system prompt/etc.) and tool set are resolved at runtime from\\nthat resource; the module's input_transforms then only carry the flow-local inputs\\n(user_message, user_attachments, enabled_tools and the history inputs memory_id and previous_messages).\\n"},"tool_inputs":{"type":"object","description":"Host-local wiring for an agent's tool inputs, keyed by tool id then input key. Binds the\\nreferenced agent's tools to this flow's context (flow_input/results) without mutating the\\nshared resource; overlaid onto the tools' input_transforms at runtime \\u2014 including when\\n\`agent\` is unset, since a step forked for editing keeps these overrides until it is saved\\nback or unlinked.\\n","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/InputTransform"}}},"parallel":{"type":"boolean","description":"If true, the agent can execute multiple tool calls in parallel"}},"required":["type","input_transforms"]},"AiDecision":{"type":"object","description":"AI decision step: one call to a decision model (TypeSafe's Jev, Cloudflare's\\nJev-compatible Clef, or OpenAI's Decisions API) that answers typed questions about a\\nstate with calibrated probabilities, instead of generating text.\\nPrefer it over an AI agent to classify, route, score or check something: it is fast,\\ncheap and its answers are structured. Its result is { output: { <question name>: answer },\\nmodel, usage }, so a later step reads e.g. results.<id>.output.intent.choice. To route on\\nthe answers, follow it with a branchone whose branch exprs read\\nresults.<id>.output.<question>.choice. Usable as an AI agent tool, where the calling agent\\nsupplies the state.\\n","properties":{"input_transforms":{"type":"object","description":"Input parameters for the decision mapped to their values","properties":{"provider":{"$ref":"#/components/schemas/ProviderTransform"},"state":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"What the questions are asked about: a string, an object or an array of strings.\\nAn object with descriptive keys holding only what the questions need works best.\\nExample: { message: flow_input.message, plan: results.a.plan }\\n"},"questions":{"allOf":[{"$ref":"#/components/schemas/InputTransform"}],"description":"Object mapping each question name to { type, instructions, criteria }, where type is:\\n- 'choice': criteria maps each option to its description (up to 255); the answer\\n has choice, probabilities and confidence\\n- 'score': criteria is an ordered array of 2 to 10 level descriptions; the answer\\n has score, legend, probabilities and confidence\\n- 'noul': yes/no, criteria optionally { true, false } descriptions; the answer has\\n noul, the probability of yes (0 to 1)\\nExample: { intent: { type: 'choice', instructions: 'What does the customer want?',\\ncriteria: { refund: 'Money back', bug: 'Something is broken' } } }\\n"}},"required":["provider","state","questions"]},"type":{"type":"string","enum":["aidecision"]},"tag":{"type":"string","description":"Worker group tag for execution routing. If not set, the step runs on the flow's tag (default \`flow\`)"}},"required":["type","input_transforms"]},"Identity":{"type":"object","description":"Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder","properties":{"type":{"type":"string","enum":["identity"]},"flow":{"type":"boolean","description":"If true, marks this as a flow identity (special handling)"}},"required":["type"]},"FlowStatus":{"type":"object","properties":{"step":{"type":"integer"},"modules":{"type":"array","items":{"$ref":"#/components/schemas/FlowStatusModule"}},"user_states":{"additionalProperties":true},"preprocessor_module":{"allOf":[{"$ref":"#/components/schemas/FlowStatusModule"}]},"failure_module":{"allOf":[{"$ref":"#/components/schemas/FlowStatusModule"},{"type":"object","properties":{"parent_module":{"type":"string"}}}]},"retry":{"type":"object","properties":{"fail_count":{"type":"integer"},"failed_jobs":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"required":["step","modules","failure_module"]},"FlowStatusModule":{"type":"object","properties":{"type":{"type":"string","enum":["WaitingForPriorSteps","WaitingForEvents","WaitingForExecutor","InProgress","Success","Failure"]},"id":{"type":"string"},"job":{"type":"string","format":"uuid"},"count":{"type":"integer"},"progress":{"type":"integer"},"iterator":{"type":"object","properties":{"index":{"type":"integer"},"itered":{"type":"array","items":{}},"itered_len":{"type":"integer"},"args":{}}},"flow_jobs":{"type":"array","items":{"type":"string"}},"flow_jobs_success":{"type":"array","items":{"type":"boolean"}},"flow_jobs_duration":{"type":"object","properties":{"started_at":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"array","items":{"type":"integer"}}}},"branch_chosen":{"type":"object","properties":{"type":{"type":"string","enum":["branch","default"]},"branch":{"type":"integer"}},"required":["type"]},"branchall":{"type":"object","properties":{"branch":{"type":"integer"},"len":{"type":"integer"}},"required":["branch","len"]},"approvers":{"type":"array","items":{"type":"object","properties":{"resume_id":{"type":"integer"},"approver":{"type":"string"}},"required":["resume_id","approver"]}},"failed_retries":{"type":"array","items":{"type":"string","format":"uuid"}},"skipped":{"type":"boolean"},"agent_actions":{"type":"array","items":{"type":"object","oneOf":[{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"function_name":{"type":"string"},"type":{"type":"string","enum":["tool_call"]},"module_id":{"type":"string"}},"required":["job_id","function_name","type","module_id"]},{"type":"object","properties":{"call_id":{"type":"string","format":"uuid"},"function_name":{"type":"string"},"resource_path":{"type":"string"},"type":{"type":"string","enum":["mcp_tool_call"]},"arguments":{"type":"object"}},"required":["call_id","function_name","resource_path","type"]},{"type":"object","properties":{"type":{"type":"string","enum":["web_search"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["message"]}},"required":["content","type"]}]}},"agent_actions_success":{"type":"array","items":{"type":"boolean"}}},"required":["type"]}}
|
|
85997
86067
|
`,
|
|
85998
86068
|
"raw-app": `---
|
|
85999
86069
|
name: raw-app
|
|
@@ -87578,10 +87648,48 @@ A **data pipeline** is NOT a flow. A flow is one runnable that orchestrates step
|
|
|
87578
87648
|
A pipeline node that produces a table should almost always be a **\`duckdb\`** node that materializes its output into a **DuckLake** table with \`-- materialize ducklake://<name>/<table>\` (in a DuckDB node the annotation uses SQL \`--\` comment syntax; write the body as a bare \`SELECT\` and let the runtime do the write). DuckLake is the default lakehouse store for pipelines and is the shape the pipeline editor is built around, so prefer it unless the work specifically calls for something else:
|
|
87579
87649
|
|
|
87580
87650
|
- \`postgresql\` / data tables — only for row-level, OLTP-style mutations against an existing Postgres data table (frequent single-row upserts/updates, transactional reads that an app queries live).
|
|
87581
|
-
- \`bun\` / \`python3\` — only for
|
|
87651
|
+
- \`bun\` / \`python3\` — only for work that doesn't map to SQL: calling an external API, wrangling files, arbitrary glue. When such a node produces tabular data for downstream steps, write it **straight into DuckLake** (or a data table) from the same script — see "Ingesting from Python / TypeScript" below — rather than inventing a parallel store.
|
|
87582
87652
|
|
|
87583
87653
|
Do not spread a pipeline across postgres, S3, and DuckLake when one DuckLake lake would do; a consistent DuckLake lakehouse is the goal.
|
|
87584
87654
|
|
|
87655
|
+
## Ingesting from Python / TypeScript
|
|
87656
|
+
|
|
87657
|
+
A node that fetches data in code (an API, a SaaS export, a scraper) writes the rows **directly** into their DuckLake table with \`wmill.ducklake()\`, or into a data table with \`wmill.datatable()\`. DuckLake already stores every table as parquet files in the workspace object storage, so **never stage the raw payload first** — no intermediate JSON / CSV / parquet file in S3 and no second "load the raw file" node. One ingestion node, one table.
|
|
87658
|
+
|
|
87659
|
+
Pass the rows as a query argument (a list of dicts / array of objects is sent as JSON) and let SQL unnest them; declare the column types so the table gets a real schema:
|
|
87660
|
+
|
|
87661
|
+
\`\`\`python
|
|
87662
|
+
# pipeline
|
|
87663
|
+
# on schedule
|
|
87664
|
+
import wmill
|
|
87665
|
+
|
|
87666
|
+
def main():
|
|
87667
|
+
rows = fetch_charges() # list[dict]
|
|
87668
|
+
lake = wmill.ducklake()
|
|
87669
|
+
lake.query("""
|
|
87670
|
+
CREATE OR REPLACE TABLE stripe_charges AS
|
|
87671
|
+
SELECT unnest(from_json($rows, '[{"id":"VARCHAR","amount":"BIGINT","created":"BIGINT"}]'), recursive := true)
|
|
87672
|
+
""", rows=rows).fetch()
|
|
87673
|
+
\`\`\`
|
|
87674
|
+
|
|
87675
|
+
\`\`\`ts
|
|
87676
|
+
// pipeline
|
|
87677
|
+
// on schedule
|
|
87678
|
+
import * as wmill from "windmill-client"
|
|
87679
|
+
|
|
87680
|
+
export async function main() {
|
|
87681
|
+
const rows = await fetchCharges()
|
|
87682
|
+
const lake = wmill.ducklake()
|
|
87683
|
+
await lake\`CREATE OR REPLACE TABLE stripe_charges AS
|
|
87684
|
+
SELECT unnest(from_json(\${rows}, '[{"id":"VARCHAR","amount":"BIGINT","created":"BIGINT"}]'), recursive := true)\`.fetch()
|
|
87685
|
+
}
|
|
87686
|
+
\`\`\`
|
|
87687
|
+
|
|
87688
|
+
- Use \`INSERT INTO <table> SELECT ...\` instead of \`CREATE OR REPLACE\` to append (an incremental pull), with a one-time \`CREATE TABLE IF NOT EXISTS\` first.
|
|
87689
|
+
- Assign the client to a variable (\`lake = wmill.ducklake()\`) and keep the SQL a **string literal** (Python) or a template without \`sql.raw\` (TS): that is what lets the graph record the node's write to \`ducklake://main/<table>\`. A chained \`wmill.ducklake().query(...)\` or SQL built in a variable records no output, so the downstream edge never forms.
|
|
87690
|
+
- \`wmill.ducklake("<name>")\` targets a non-default catalog; \`wmill.datatable("<name>")\` writes a Postgres data table the same way (Python \`db.query(sql, *args)\` with \`$1\` placeholders, TS the same template form) — use it only when the data belongs in Postgres (see above).
|
|
87691
|
+
- The downstream node triggers on the table itself: \`-- on ducklake://main/stripe_charges\`.
|
|
87692
|
+
|
|
87585
87693
|
## Storage prerequisites
|
|
87586
87694
|
|
|
87587
87695
|
A DuckLake pipeline only runs once the workspace has **object storage** (S3 / Azure Blob / GCS) **and a DuckLake catalog** configured — DuckLake tables and \`s3://\` assets can't be materialized or read without it. Check which DuckLake catalogs the workspace has before you build.
|
|
@@ -87625,7 +87733,7 @@ The key must be a **string literal** — the graph parser is static and cannot f
|
|
|
87625
87733
|
|
|
87626
87734
|
## Materialize (the managed output)
|
|
87627
87735
|
|
|
87628
|
-
> **A MANAGED \`// materialize\` is DuckDB-only**, and its target must be a DuckLake table (\`ducklake://<name>/<table>\`). Deploy **rejects** a \`ducklake://\` \`// materialize\` on any other language (\`python3\`, \`bun\`, \`postgresql\`). For a non-DuckDB node writing the lake, do **not** use \`// materialize\` — write the
|
|
87736
|
+
> **A MANAGED \`// materialize\` is DuckDB-only**, and its target must be a DuckLake table (\`ducklake://<name>/<table>\`). Deploy **rejects** a \`ducklake://\` \`// materialize\` on any other language (\`python3\`, \`bun\`, \`postgresql\`). For a non-DuckDB node writing the lake, do **not** use \`// materialize\` — write the table itself with \`wmill.ducklake()\` (see "Ingesting from Python / TypeScript") and let the output be inferred. Use \`duckdb\` when a node should materialize a DuckLake table.
|
|
87629
87737
|
>
|
|
87630
87738
|
> The one target ANY language may declare (except a dbt script, whose writes come from its manifest) is a **warehouse relation**: \`// materialize manual dbt://<warehouse>/<schema>/<name>\`, where \`<warehouse>\` is a warehouse the workspace configures under Settings → dbt. \`manual\` is the only mode it has — nothing generates warehouse DDL, so the node issues its own write (a postgresql \`CREATE TABLE\` / \`INSERT\`, an SDK load, …) and the annotation records the outcome. Use it on an ingestion node whose output a dbt project reads as a \`source\`: the declared relation and the dbt model land on ONE graph node, and a downstream \`// on dbt://<warehouse>/<schema>/<name>\` fires when the ingestion node completes.
|
|
87631
87739
|
|
|
@@ -88424,6 +88532,8 @@ user related commands
|
|
|
88424
88532
|
|
|
88425
88533
|
**Subcommands:**
|
|
88426
88534
|
|
|
88535
|
+
- \`user list\` - List the users of the workspace
|
|
88536
|
+
- \`--json\` - Output as JSON (for piping to jq)
|
|
88427
88537
|
- \`user add <email:string> [password:string]\` - Create a user
|
|
88428
88538
|
- \`--superadmin\` - Specify to make the new user superadmin.
|
|
88429
88539
|
- \`--company <company:string>\` - Specify to set the company of the new user.
|
|
@@ -88772,7 +88882,8 @@ properties:
|
|
|
88772
88882
|
description: Seconds to wait between retries
|
|
88773
88883
|
exponential:
|
|
88774
88884
|
type: object
|
|
88775
|
-
description: Retry with exponential backoff
|
|
88885
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
88886
|
+
× seconds^n'
|
|
88776
88887
|
properties:
|
|
88777
88888
|
attempts:
|
|
88778
88889
|
type: integer
|
|
@@ -88783,7 +88894,8 @@ properties:
|
|
|
88783
88894
|
seconds:
|
|
88784
88895
|
type: integer
|
|
88785
88896
|
minimum: 1
|
|
88786
|
-
description:
|
|
88897
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
88898
|
+
× seconds^n, where n counts constant retries too
|
|
88787
88899
|
random_factor:
|
|
88788
88900
|
type: integer
|
|
88789
88901
|
minimum: 0
|
|
@@ -88871,7 +88983,8 @@ properties:
|
|
|
88871
88983
|
description: Seconds to wait between retries
|
|
88872
88984
|
exponential:
|
|
88873
88985
|
type: object
|
|
88874
|
-
description: Retry with exponential backoff
|
|
88986
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
88987
|
+
× seconds^n'
|
|
88875
88988
|
properties:
|
|
88876
88989
|
attempts:
|
|
88877
88990
|
type: integer
|
|
@@ -88882,7 +88995,8 @@ properties:
|
|
|
88882
88995
|
seconds:
|
|
88883
88996
|
type: integer
|
|
88884
88997
|
minimum: 1
|
|
88885
|
-
description:
|
|
88998
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
88999
|
+
× seconds^n, where n counts constant retries too
|
|
88886
89000
|
random_factor:
|
|
88887
89001
|
type: integer
|
|
88888
89002
|
minimum: 0
|
|
@@ -88955,7 +89069,8 @@ properties:
|
|
|
88955
89069
|
description: Seconds to wait between retries
|
|
88956
89070
|
exponential:
|
|
88957
89071
|
type: object
|
|
88958
|
-
description: Retry with exponential backoff
|
|
89072
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89073
|
+
× seconds^n'
|
|
88959
89074
|
properties:
|
|
88960
89075
|
attempts:
|
|
88961
89076
|
type: integer
|
|
@@ -88966,7 +89081,8 @@ properties:
|
|
|
88966
89081
|
seconds:
|
|
88967
89082
|
type: integer
|
|
88968
89083
|
minimum: 1
|
|
88969
|
-
description:
|
|
89084
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89085
|
+
× seconds^n, where n counts constant retries too
|
|
88970
89086
|
random_factor:
|
|
88971
89087
|
type: integer
|
|
88972
89088
|
minimum: 0
|
|
@@ -89076,7 +89192,8 @@ properties:
|
|
|
89076
89192
|
description: Seconds to wait between retries
|
|
89077
89193
|
exponential:
|
|
89078
89194
|
type: object
|
|
89079
|
-
description: Retry with exponential backoff
|
|
89195
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89196
|
+
× seconds^n'
|
|
89080
89197
|
properties:
|
|
89081
89198
|
attempts:
|
|
89082
89199
|
type: integer
|
|
@@ -89087,7 +89204,8 @@ properties:
|
|
|
89087
89204
|
seconds:
|
|
89088
89205
|
type: integer
|
|
89089
89206
|
minimum: 1
|
|
89090
|
-
description:
|
|
89207
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89208
|
+
× seconds^n, where n counts constant retries too
|
|
89091
89209
|
random_factor:
|
|
89092
89210
|
type: integer
|
|
89093
89211
|
minimum: 0
|
|
@@ -89239,7 +89357,8 @@ properties:
|
|
|
89239
89357
|
description: Seconds to wait between retries
|
|
89240
89358
|
exponential:
|
|
89241
89359
|
type: object
|
|
89242
|
-
description: Retry with exponential backoff
|
|
89360
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89361
|
+
× seconds^n'
|
|
89243
89362
|
properties:
|
|
89244
89363
|
attempts:
|
|
89245
89364
|
type: integer
|
|
@@ -89250,7 +89369,8 @@ properties:
|
|
|
89250
89369
|
seconds:
|
|
89251
89370
|
type: integer
|
|
89252
89371
|
minimum: 1
|
|
89253
|
-
description:
|
|
89372
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89373
|
+
× seconds^n, where n counts constant retries too
|
|
89254
89374
|
random_factor:
|
|
89255
89375
|
type: integer
|
|
89256
89376
|
minimum: 0
|
|
@@ -89408,7 +89528,8 @@ properties:
|
|
|
89408
89528
|
description: Seconds to wait between retries
|
|
89409
89529
|
exponential:
|
|
89410
89530
|
type: object
|
|
89411
|
-
description: Retry with exponential backoff
|
|
89531
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89532
|
+
× seconds^n'
|
|
89412
89533
|
properties:
|
|
89413
89534
|
attempts:
|
|
89414
89535
|
type: integer
|
|
@@ -89419,7 +89540,8 @@ properties:
|
|
|
89419
89540
|
seconds:
|
|
89420
89541
|
type: integer
|
|
89421
89542
|
minimum: 1
|
|
89422
|
-
description:
|
|
89543
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89544
|
+
× seconds^n, where n counts constant retries too
|
|
89423
89545
|
random_factor:
|
|
89424
89546
|
type: integer
|
|
89425
89547
|
minimum: 0
|
|
@@ -89534,7 +89656,8 @@ properties:
|
|
|
89534
89656
|
description: Seconds to wait between retries
|
|
89535
89657
|
exponential:
|
|
89536
89658
|
type: object
|
|
89537
|
-
description: Retry with exponential backoff
|
|
89659
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89660
|
+
× seconds^n'
|
|
89538
89661
|
properties:
|
|
89539
89662
|
attempts:
|
|
89540
89663
|
type: integer
|
|
@@ -89545,7 +89668,8 @@ properties:
|
|
|
89545
89668
|
seconds:
|
|
89546
89669
|
type: integer
|
|
89547
89670
|
minimum: 1
|
|
89548
|
-
description:
|
|
89671
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89672
|
+
× seconds^n, where n counts constant retries too
|
|
89549
89673
|
random_factor:
|
|
89550
89674
|
type: integer
|
|
89551
89675
|
minimum: 0
|
|
@@ -89632,7 +89756,8 @@ properties:
|
|
|
89632
89756
|
description: Seconds to wait between retries
|
|
89633
89757
|
exponential:
|
|
89634
89758
|
type: object
|
|
89635
|
-
description: Retry with exponential backoff
|
|
89759
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89760
|
+
× seconds^n'
|
|
89636
89761
|
properties:
|
|
89637
89762
|
attempts:
|
|
89638
89763
|
type: integer
|
|
@@ -89643,7 +89768,8 @@ properties:
|
|
|
89643
89768
|
seconds:
|
|
89644
89769
|
type: integer
|
|
89645
89770
|
minimum: 1
|
|
89646
|
-
description:
|
|
89771
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89772
|
+
× seconds^n, where n counts constant retries too
|
|
89647
89773
|
random_factor:
|
|
89648
89774
|
type: integer
|
|
89649
89775
|
minimum: 0
|
|
@@ -89724,7 +89850,8 @@ properties:
|
|
|
89724
89850
|
description: Seconds to wait between retries
|
|
89725
89851
|
exponential:
|
|
89726
89852
|
type: object
|
|
89727
|
-
description: Retry with exponential backoff
|
|
89853
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89854
|
+
× seconds^n'
|
|
89728
89855
|
properties:
|
|
89729
89856
|
attempts:
|
|
89730
89857
|
type: integer
|
|
@@ -89735,7 +89862,8 @@ properties:
|
|
|
89735
89862
|
seconds:
|
|
89736
89863
|
type: integer
|
|
89737
89864
|
minimum: 1
|
|
89738
|
-
description:
|
|
89865
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89866
|
+
× seconds^n, where n counts constant retries too
|
|
89739
89867
|
random_factor:
|
|
89740
89868
|
type: integer
|
|
89741
89869
|
minimum: 0
|
|
@@ -89822,7 +89950,8 @@ properties:
|
|
|
89822
89950
|
description: Seconds to wait between retries
|
|
89823
89951
|
exponential:
|
|
89824
89952
|
type: object
|
|
89825
|
-
description: Retry with exponential backoff
|
|
89953
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
89954
|
+
× seconds^n'
|
|
89826
89955
|
properties:
|
|
89827
89956
|
attempts:
|
|
89828
89957
|
type: integer
|
|
@@ -89833,7 +89962,8 @@ properties:
|
|
|
89833
89962
|
seconds:
|
|
89834
89963
|
type: integer
|
|
89835
89964
|
minimum: 1
|
|
89836
|
-
description:
|
|
89965
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
89966
|
+
× seconds^n, where n counts constant retries too
|
|
89837
89967
|
random_factor:
|
|
89838
89968
|
type: integer
|
|
89839
89969
|
minimum: 0
|
|
@@ -89973,7 +90103,8 @@ properties:
|
|
|
89973
90103
|
description: Seconds to wait between retries
|
|
89974
90104
|
exponential:
|
|
89975
90105
|
type: object
|
|
89976
|
-
description: Retry with exponential backoff
|
|
90106
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
90107
|
+
× seconds^n'
|
|
89977
90108
|
properties:
|
|
89978
90109
|
attempts:
|
|
89979
90110
|
type: integer
|
|
@@ -89984,7 +90115,8 @@ properties:
|
|
|
89984
90115
|
seconds:
|
|
89985
90116
|
type: integer
|
|
89986
90117
|
minimum: 1
|
|
89987
|
-
description:
|
|
90118
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
90119
|
+
× seconds^n, where n counts constant retries too
|
|
89988
90120
|
random_factor:
|
|
89989
90121
|
type: integer
|
|
89990
90122
|
minimum: 0
|
|
@@ -90174,7 +90306,8 @@ properties:
|
|
|
90174
90306
|
description: Seconds to wait between retries
|
|
90175
90307
|
exponential:
|
|
90176
90308
|
type: object
|
|
90177
|
-
description: Retry with exponential backoff
|
|
90309
|
+
description: 'Retry with exponential backoff: the n-th retry waits multiplier
|
|
90310
|
+
× seconds^n'
|
|
90178
90311
|
properties:
|
|
90179
90312
|
attempts:
|
|
90180
90313
|
type: integer
|
|
@@ -90185,7 +90318,8 @@ properties:
|
|
|
90185
90318
|
seconds:
|
|
90186
90319
|
type: integer
|
|
90187
90320
|
minimum: 1
|
|
90188
|
-
description:
|
|
90321
|
+
description: Base of the exponential (seconds); the n-th retry waits multiplier
|
|
90322
|
+
× seconds^n, where n counts constant retries too
|
|
90189
90323
|
random_factor:
|
|
90190
90324
|
type: integer
|
|
90191
90325
|
minimum: 0
|