windmill-client 1.289.0 → 1.290.1

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.289.0',
6
+ VERSION: '1.290.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -143,6 +143,7 @@ export type { WorkflowStatus } from './models/WorkflowStatus';
143
143
  export type { WorkflowStatusRecord } from './models/WorkflowStatusRecord';
144
144
  export type { WorkflowTask } from './models/WorkflowTask';
145
145
  export type { Workspace } from './models/Workspace';
146
+ export type { WorkspaceDefaultScripts } from './models/WorkspaceDefaultScripts';
146
147
  export type { WorkspaceGitSyncSettings } from './models/WorkspaceGitSyncSettings';
147
148
  export type { WorkspaceId } from './models/WorkspaceId';
148
149
  export type { WorkspaceInvite } from './models/WorkspaceInvite';
@@ -1,5 +1,5 @@
1
1
  export type CreateWorkspace = {
2
2
  id: string;
3
3
  name: string;
4
- username: string;
4
+ username?: string;
5
5
  };
@@ -2,5 +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
+ exclude_types_override?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group'>;
6
6
  };
@@ -5,6 +5,7 @@ export type GlobalUserInfo = {
5
5
  verified: boolean;
6
6
  name?: string;
7
7
  company?: string;
8
+ username?: string;
8
9
  };
9
10
  export declare namespace GlobalUserInfo {
10
11
  enum login_type {
@@ -0,0 +1,5 @@
1
+ export type WorkspaceDefaultScripts = {
2
+ order?: Array<string>;
3
+ hidden?: Array<string>;
4
+ default_script_content?: any;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule'>;
4
+ include_type?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group'>;
5
5
  repositories?: Array<GitRepositorySettings>;
6
6
  };
@@ -102,6 +102,34 @@ export declare class UserService {
102
102
  is_super_admin?: boolean;
103
103
  };
104
104
  }): CancelablePromise<string>;
105
+ /**
106
+ * global username info (require super admin)
107
+ * @returns any user renamed
108
+ * @throws ApiError
109
+ */
110
+ static globalUsernameInfo({ email, }: {
111
+ email: string;
112
+ }): CancelablePromise<{
113
+ username: string;
114
+ workspace_usernames: Array<{
115
+ workspace_id: string;
116
+ username: string;
117
+ }>;
118
+ }>;
119
+ /**
120
+ * global rename user (require super admin)
121
+ * @returns string user renamed
122
+ * @throws ApiError
123
+ */
124
+ static globalUserRename({ email, requestBody, }: {
125
+ email: string;
126
+ /**
127
+ * new username
128
+ */
129
+ requestBody: {
130
+ new_username: string;
131
+ };
132
+ }): CancelablePromise<string>;
105
133
  /**
106
134
  * global delete user (require super admin)
107
135
  * @returns string user deleted
@@ -209,7 +237,7 @@ export declare class UserService {
209
237
  */
210
238
  requestBody: {
211
239
  workspace_id: string;
212
- username: string;
240
+ username?: string;
213
241
  };
214
242
  }): CancelablePromise<string>;
215
243
  /**
@@ -118,6 +118,36 @@ class UserService {
118
118
  mediaType: 'application/json',
119
119
  });
120
120
  }
121
+ /**
122
+ * global username info (require super admin)
123
+ * @returns any user renamed
124
+ * @throws ApiError
125
+ */
126
+ static globalUsernameInfo({ email, }) {
127
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
128
+ method: 'GET',
129
+ url: '/users/username_info/{email}',
130
+ path: {
131
+ 'email': email,
132
+ },
133
+ });
134
+ }
135
+ /**
136
+ * global rename user (require super admin)
137
+ * @returns string user renamed
138
+ * @throws ApiError
139
+ */
140
+ static globalUserRename({ email, requestBody, }) {
141
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
142
+ method: 'POST',
143
+ url: '/users/rename/{email}',
144
+ path: {
145
+ 'email': email,
146
+ },
147
+ body: requestBody,
148
+ mediaType: 'application/json',
149
+ });
150
+ }
121
151
  /**
122
152
  * global delete user (require super admin)
123
153
  * @returns string user deleted
@@ -3,6 +3,7 @@ import type { LargeFileStorage } from '../models/LargeFileStorage';
3
3
  import type { ScriptArgs } from '../models/ScriptArgs';
4
4
  import type { UserWorkspaceList } from '../models/UserWorkspaceList';
5
5
  import type { Workspace } from '../models/Workspace';
6
+ import type { WorkspaceDefaultScripts } from '../models/WorkspaceDefaultScripts';
6
7
  import type { WorkspaceGitSyncSettings } from '../models/WorkspaceGitSyncSettings';
7
8
  import type { WorkspaceInvite } from '../models/WorkspaceInvite';
8
9
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -104,7 +105,7 @@ export declare class WorkspaceService {
104
105
  requestBody: {
105
106
  email: string;
106
107
  is_admin: boolean;
107
- username: string;
108
+ username?: string;
108
109
  operator: boolean;
109
110
  };
110
111
  }): CancelablePromise<string>;
@@ -396,6 +397,26 @@ export declare class WorkspaceService {
396
397
  default_app_path?: string;
397
398
  };
398
399
  }): CancelablePromise<string>;
400
+ /**
401
+ * edit default scripts for workspace
402
+ * @returns string status
403
+ * @throws ApiError
404
+ */
405
+ static editDefaultScripts({ workspace, requestBody, }: {
406
+ workspace: string;
407
+ /**
408
+ * Workspace default app
409
+ */
410
+ requestBody?: WorkspaceDefaultScripts;
411
+ }): CancelablePromise<string>;
412
+ /**
413
+ * get default scripts for workspace
414
+ * @returns WorkspaceDefaultScripts status
415
+ * @throws ApiError
416
+ */
417
+ static getDefaultScripts({ workspace, }: {
418
+ workspace: string;
419
+ }): CancelablePromise<WorkspaceDefaultScripts>;
399
420
  /**
400
421
  * retrieves the encryption key for this workspace
401
422
  * @returns any status
@@ -455,6 +455,36 @@ class WorkspaceService {
455
455
  mediaType: 'application/json',
456
456
  });
457
457
  }
458
+ /**
459
+ * edit default scripts for workspace
460
+ * @returns string status
461
+ * @throws ApiError
462
+ */
463
+ static editDefaultScripts({ workspace, requestBody, }) {
464
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
465
+ method: 'POST',
466
+ url: '/w/{workspace}/workspaces/default_scripts',
467
+ path: {
468
+ 'workspace': workspace,
469
+ },
470
+ body: requestBody,
471
+ mediaType: 'application/json',
472
+ });
473
+ }
474
+ /**
475
+ * get default scripts for workspace
476
+ * @returns WorkspaceDefaultScripts status
477
+ * @throws ApiError
478
+ */
479
+ static getDefaultScripts({ workspace, }) {
480
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
481
+ method: 'GET',
482
+ url: '/w/{workspace}/workspaces/default_scripts',
483
+ path: {
484
+ 'workspace': workspace,
485
+ },
486
+ });
487
+ }
458
488
  /**
459
489
  * retrieves the encryption key for this workspace
460
490
  * @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.289.0",
4
+ "version": "1.290.1",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {