windmill-client 1.857.0 → 1.858.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.
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.857.0",
32
+ VERSION: "1.858.0",
33
33
  WITH_CREDENTIALS: !getEnv("WM_RAW_APP"),
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.857.0",
129
+ VERSION: "1.858.0",
130
130
  WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -10906,6 +10906,8 @@ var JobService = class {
10906
10906
  * @param data The data for the request.
10907
10907
  * @param data.workspace
10908
10908
  * @param data.folder only runs of items in this folder
10909
+ * @param data.failedIdsKind with failed_ids_path, the item whose unresolved failed run ids to list in failed_run_ids
10910
+ * @param data.failedIdsPath with failed_ids_kind, the path of that item
10909
10911
  * @returns unknown runs that completed in the window or are running, grouped by item, newest run first
10910
10912
  * @throws ApiError
10911
10913
  */
@@ -10914,7 +10916,11 @@ var JobService = class {
10914
10916
  method: "GET",
10915
10917
  url: "/w/{workspace}/jobs/recent_runs",
10916
10918
  path: { workspace: data.workspace },
10917
- query: { folder: data.folder }
10919
+ query: {
10920
+ folder: data.folder,
10921
+ failed_ids_kind: data.failedIdsKind,
10922
+ failed_ids_path: data.failedIdsPath
10923
+ }
10918
10924
  });
10919
10925
  }
10920
10926
  /**
@@ -5570,6 +5570,8 @@ export declare class JobService {
5570
5570
  * @param data The data for the request.
5571
5571
  * @param data.workspace
5572
5572
  * @param data.folder only runs of items in this folder
5573
+ * @param data.failedIdsKind with failed_ids_path, the item whose unresolved failed run ids to list in failed_run_ids
5574
+ * @param data.failedIdsPath with failed_ids_kind, the path of that item
5573
5575
  * @returns unknown runs that completed in the window or are running, grouped by item, newest run first
5574
5576
  * @throws ApiError
5575
5577
  */
@@ -10538,6 +10538,8 @@ var JobService = class {
10538
10538
  * @param data The data for the request.
10539
10539
  * @param data.workspace
10540
10540
  * @param data.folder only runs of items in this folder
10541
+ * @param data.failedIdsKind with failed_ids_path, the item whose unresolved failed run ids to list in failed_run_ids
10542
+ * @param data.failedIdsPath with failed_ids_kind, the path of that item
10541
10543
  * @returns unknown runs that completed in the window or are running, grouped by item, newest run first
10542
10544
  * @throws ApiError
10543
10545
  */
@@ -10546,7 +10548,11 @@ var JobService = class {
10546
10548
  method: "GET",
10547
10549
  url: "/w/{workspace}/jobs/recent_runs",
10548
10550
  path: { workspace: data.workspace },
10549
- query: { folder: data.folder }
10551
+ query: {
10552
+ folder: data.folder,
10553
+ failed_ids_kind: data.failedIdsKind,
10554
+ failed_ids_path: data.failedIdsPath
10555
+ }
10550
10556
  });
10551
10557
  }
10552
10558
  /**
@@ -3341,7 +3341,10 @@ export type MainArgSignature = {
3341
3341
  auto_kind: string | null;
3342
3342
  has_preprocessor: boolean | null;
3343
3343
  };
3344
- export type RecentRunStatus = 'success' | 'failure' | 'canceled' | 'running';
3344
+ /**
3345
+ * a failure someone or something marked as handled is `resolved`, not `failure`
3346
+ */
3347
+ export type RecentRunStatus = 'success' | 'failure' | 'resolved' | 'canceled' | 'running';
3345
3348
  export type ScriptLang = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp' | 'nu' | 'java' | 'ruby' | 'rlang' | 'duckdb' | 'bunnative' | 'dbt';
3346
3349
  /**
3347
3350
  * An additional module file associated with a script
@@ -15346,6 +15349,14 @@ export type DeleteJobsData = {
15346
15349
  };
15347
15350
  export type DeleteJobsResponse = string;
15348
15351
  export type ListRecentRunsData = {
15352
+ /**
15353
+ * with failed_ids_path, the item whose unresolved failed run ids to list in failed_run_ids
15354
+ */
15355
+ failedIdsKind?: 'script' | 'flow' | 'agent';
15356
+ /**
15357
+ * with failed_ids_kind, the path of that item
15358
+ */
15359
+ failedIdsPath?: string;
15349
15360
  /**
15350
15361
  * only runs of items in this folder
15351
15362
  */
@@ -15368,9 +15379,13 @@ export type ListRecentRunsResponse = {
15368
15379
  summary?: string;
15369
15380
  status: RecentRunStatus;
15370
15381
  /**
15371
- * failed runs of the item over the whole window, not only those in runs
15382
+ * unresolved failed runs of the item over the whole window, not only those in runs
15372
15383
  */
15373
15384
  failed_runs: number;
15385
+ /**
15386
+ * the ids of those failed runs, only for the item named by failed_ids_kind and failed_ids_path
15387
+ */
15388
+ failed_run_ids?: Array<(string)>;
15374
15389
  runs: Array<{
15375
15390
  id: string;
15376
15391
  status: RecentRunStatus;
@@ -32329,6 +32344,14 @@ export type $OpenApiTs = {
32329
32344
  '/w/{workspace}/jobs/recent_runs': {
32330
32345
  get: {
32331
32346
  req: {
32347
+ /**
32348
+ * with failed_ids_path, the item whose unresolved failed run ids to list in failed_run_ids
32349
+ */
32350
+ failedIdsKind?: 'script' | 'flow' | 'agent';
32351
+ /**
32352
+ * with failed_ids_kind, the path of that item
32353
+ */
32354
+ failedIdsPath?: string;
32332
32355
  /**
32333
32356
  * only runs of items in this folder
32334
32357
  */
@@ -32355,9 +32378,13 @@ export type $OpenApiTs = {
32355
32378
  summary?: string;
32356
32379
  status: RecentRunStatus;
32357
32380
  /**
32358
- * failed runs of the item over the whole window, not only those in runs
32381
+ * unresolved failed runs of the item over the whole window, not only those in runs
32359
32382
  */
32360
32383
  failed_runs: number;
32384
+ /**
32385
+ * the ids of those failed runs, only for the item named by failed_ids_kind and failed_ids_path
32386
+ */
32387
+ failed_run_ids?: Array<(string)>;
32361
32388
  runs: Array<{
32362
32389
  id: string;
32363
32390
  status: RecentRunStatus;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.857.0",
4
+ "version": "1.858.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme",