windmill-client 1.268.0 → 1.270.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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.268.0',
6
+ VERSION: '1.270.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -2,4 +2,5 @@ export type GitRepositorySettings = {
2
2
  script_path: string;
3
3
  git_repo_resource_path: string;
4
4
  use_individual_branch?: boolean;
5
+ exclude_types_override?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule'>;
5
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { GitRepositorySettings } from './GitRepositorySettings';
2
2
  export type WorkspaceGitSyncSettings = {
3
3
  include_path?: Array<string>;
4
- include_type?: Array<'script' | 'flow' | 'app' | 'folder'>;
4
+ include_type?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule'>;
5
5
  repositories?: Array<GitRepositorySettings>;
6
6
  };
@@ -427,7 +427,7 @@ export declare class JobService {
427
427
  * @returns QueuedJob All queued jobs
428
428
  * @throws ApiError
429
429
  */
430
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, }: {
430
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }: {
431
431
  workspace: string;
432
432
  /**
433
433
  * order by desc order (default true)
@@ -497,14 +497,22 @@ export declare class JobService {
497
497
  * filter on jobs with a given tag/worker group
498
498
  */
499
499
  tag?: string;
500
+ /**
501
+ * get jobs from all workspaces (only valid if request come from the `admins` workspace)
502
+ */
503
+ allWorkspaces?: boolean;
500
504
  }): CancelablePromise<Array<QueuedJob>>;
501
505
  /**
502
506
  * get queue count
503
507
  * @returns any queue count
504
508
  * @throws ApiError
505
509
  */
506
- static getQueueCount({ workspace, }: {
510
+ static getQueueCount({ workspace, allWorkspaces, }: {
507
511
  workspace: string;
512
+ /**
513
+ * get jobs from all workspaces (only valid if request come from the `admins` workspace)
514
+ */
515
+ allWorkspaces?: boolean;
508
516
  }): CancelablePromise<{
509
517
  database_length: number;
510
518
  }>;
@@ -603,7 +611,7 @@ export declare class JobService {
603
611
  * @returns Job All jobs
604
612
  * @throws ApiError
605
613
  */
606
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }: {
614
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, allWorkspaces, }: {
607
615
  workspace: string;
608
616
  /**
609
617
  * mask to filter exact matching user creator
@@ -681,6 +689,10 @@ export declare class JobService {
681
689
  * filter on successful jobs
682
690
  */
683
691
  success?: boolean;
692
+ /**
693
+ * get jobs from all workspaces (only valid if request come from the `admins` workspace)
694
+ */
695
+ allWorkspaces?: boolean;
684
696
  }): CancelablePromise<Array<Job>>;
685
697
  /**
686
698
  * get db clock
@@ -302,7 +302,7 @@ class JobService {
302
302
  * @returns QueuedJob All queued jobs
303
303
  * @throws ApiError
304
304
  */
305
- static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, }) {
305
+ static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, scheduledForBeforeNow, jobKinds, suspended, running, args, result, tag, allWorkspaces, }) {
306
306
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
307
307
  method: 'GET',
308
308
  url: '/w/{workspace}/jobs/queue/list',
@@ -327,6 +327,7 @@ class JobService {
327
327
  'args': args,
328
328
  'result': result,
329
329
  'tag': tag,
330
+ 'all_workspaces': allWorkspaces,
330
331
  },
331
332
  });
332
333
  }
@@ -335,13 +336,16 @@ class JobService {
335
336
  * @returns any queue count
336
337
  * @throws ApiError
337
338
  */
338
- static getQueueCount({ workspace, }) {
339
+ static getQueueCount({ workspace, allWorkspaces, }) {
339
340
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
340
341
  method: 'GET',
341
342
  url: '/w/{workspace}/jobs/queue/count',
342
343
  path: {
343
344
  'workspace': workspace,
344
345
  },
346
+ query: {
347
+ 'all_workspaces': allWorkspaces,
348
+ },
345
349
  });
346
350
  }
347
351
  /**
@@ -409,7 +413,7 @@ class JobService {
409
413
  * @returns Job All jobs
410
414
  * @throws ApiError
411
415
  */
412
- static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, }) {
416
+ static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, createdOrStartedBefore, running, scheduledForBeforeNow, createdOrStartedAfter, jobKinds, args, tag, result, isSkipped, isFlowStep, success, allWorkspaces, }) {
413
417
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
414
418
  method: 'GET',
415
419
  url: '/w/{workspace}/jobs/list',
@@ -436,6 +440,7 @@ class JobService {
436
440
  'is_skipped': isSkipped,
437
441
  'is_flow_step': isFlowStep,
438
442
  'success': success,
443
+ 'all_workspaces': allWorkspaces,
439
444
  },
440
445
  });
441
446
  }
@@ -379,6 +379,30 @@ export declare class WorkspaceService {
379
379
  default_app_path?: string;
380
380
  };
381
381
  }): CancelablePromise<string>;
382
+ /**
383
+ * retrieves the encryption key for this workspace
384
+ * @returns any status
385
+ * @throws ApiError
386
+ */
387
+ static getWorkspaceEncryptionKey({ workspace, }: {
388
+ workspace: string;
389
+ }): CancelablePromise<{
390
+ key: string;
391
+ }>;
392
+ /**
393
+ * update the encryption key for this workspace
394
+ * @returns string status
395
+ * @throws ApiError
396
+ */
397
+ static setWorkspaceEncryptionKey({ workspace, requestBody, }: {
398
+ workspace: string;
399
+ /**
400
+ * New encryption key
401
+ */
402
+ requestBody: {
403
+ new_key: string;
404
+ };
405
+ }): CancelablePromise<string>;
382
406
  /**
383
407
  * get default app for workspace
384
408
  * @returns any status
@@ -439,6 +439,36 @@ class WorkspaceService {
439
439
  mediaType: 'application/json',
440
440
  });
441
441
  }
442
+ /**
443
+ * retrieves the encryption key for this workspace
444
+ * @returns any status
445
+ * @throws ApiError
446
+ */
447
+ static getWorkspaceEncryptionKey({ workspace, }) {
448
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
449
+ method: 'GET',
450
+ url: '/w/{workspace}/workspaces/encryption_key',
451
+ path: {
452
+ 'workspace': workspace,
453
+ },
454
+ });
455
+ }
456
+ /**
457
+ * update the encryption key for this workspace
458
+ * @returns string status
459
+ * @throws ApiError
460
+ */
461
+ static setWorkspaceEncryptionKey({ workspace, requestBody, }) {
462
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
463
+ method: 'POST',
464
+ url: '/w/{workspace}/workspaces/encryption_key',
465
+ path: {
466
+ 'workspace': workspace,
467
+ },
468
+ body: requestBody,
469
+ mediaType: 'application/json',
470
+ });
471
+ }
442
472
  /**
443
473
  * get default app for workspace
444
474
  * @returns any status
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.268.0",
4
+ "version": "1.270.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {