windmill-client 1.240.0 → 1.242.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.240.0',
6
+ VERSION: '1.242.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -1,4 +1,5 @@
1
1
  export type InstanceGroup = {
2
2
  name: string;
3
+ summary?: string;
3
4
  emails?: Array<string>;
4
5
  };
@@ -16,6 +16,70 @@ export declare class GroupService {
16
16
  static getInstanceGroup({ name, }: {
17
17
  name: string;
18
18
  }): CancelablePromise<InstanceGroup>;
19
+ /**
20
+ * create instance group
21
+ * @returns string instance group created
22
+ * @throws ApiError
23
+ */
24
+ static createInstanceGroup({ requestBody, }: {
25
+ /**
26
+ * create instance group
27
+ */
28
+ requestBody: {
29
+ name: string;
30
+ summary?: string;
31
+ };
32
+ }): CancelablePromise<string>;
33
+ /**
34
+ * update instance group
35
+ * @returns string instance group updated
36
+ * @throws ApiError
37
+ */
38
+ static updateInstanceGroup({ name, requestBody, }: {
39
+ name: string;
40
+ /**
41
+ * update instance group
42
+ */
43
+ requestBody: {
44
+ new_summary: string;
45
+ };
46
+ }): CancelablePromise<string>;
47
+ /**
48
+ * delete instance group
49
+ * @returns string instance group deleted
50
+ * @throws ApiError
51
+ */
52
+ static deleteInstanceGroup({ name, }: {
53
+ name: string;
54
+ }): CancelablePromise<string>;
55
+ /**
56
+ * add user to instance group
57
+ * @returns string user added to instance group
58
+ * @throws ApiError
59
+ */
60
+ static addUserToInstanceGroup({ name, requestBody, }: {
61
+ name: string;
62
+ /**
63
+ * user to add to instance group
64
+ */
65
+ requestBody: {
66
+ email: string;
67
+ };
68
+ }): CancelablePromise<string>;
69
+ /**
70
+ * remove user from instance group
71
+ * @returns string user removed from instance group
72
+ * @throws ApiError
73
+ */
74
+ static removeUserFromInstanceGroup({ name, requestBody, }: {
75
+ name: string;
76
+ /**
77
+ * user to remove from instance group
78
+ */
79
+ requestBody: {
80
+ email: string;
81
+ };
82
+ }): CancelablePromise<string>;
19
83
  /**
20
84
  * list groups
21
85
  * @returns Group group list
@@ -29,6 +29,81 @@ class GroupService {
29
29
  },
30
30
  });
31
31
  }
32
+ /**
33
+ * create instance group
34
+ * @returns string instance group created
35
+ * @throws ApiError
36
+ */
37
+ static createInstanceGroup({ requestBody, }) {
38
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
39
+ method: 'POST',
40
+ url: '/groups/create',
41
+ body: requestBody,
42
+ mediaType: 'application/json',
43
+ });
44
+ }
45
+ /**
46
+ * update instance group
47
+ * @returns string instance group updated
48
+ * @throws ApiError
49
+ */
50
+ static updateInstanceGroup({ name, requestBody, }) {
51
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
52
+ method: 'POST',
53
+ url: '/groups/update/{name}',
54
+ path: {
55
+ 'name': name,
56
+ },
57
+ body: requestBody,
58
+ mediaType: 'application/json',
59
+ });
60
+ }
61
+ /**
62
+ * delete instance group
63
+ * @returns string instance group deleted
64
+ * @throws ApiError
65
+ */
66
+ static deleteInstanceGroup({ name, }) {
67
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
68
+ method: 'DELETE',
69
+ url: '/groups/delete/{name}',
70
+ path: {
71
+ 'name': name,
72
+ },
73
+ });
74
+ }
75
+ /**
76
+ * add user to instance group
77
+ * @returns string user added to instance group
78
+ * @throws ApiError
79
+ */
80
+ static addUserToInstanceGroup({ name, requestBody, }) {
81
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
82
+ method: 'POST',
83
+ url: '/groups/adduser/{name}',
84
+ path: {
85
+ 'name': name,
86
+ },
87
+ body: requestBody,
88
+ mediaType: 'application/json',
89
+ });
90
+ }
91
+ /**
92
+ * remove user from instance group
93
+ * @returns string user removed from instance group
94
+ * @throws ApiError
95
+ */
96
+ static removeUserFromInstanceGroup({ name, requestBody, }) {
97
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
98
+ method: 'POST',
99
+ url: '/groups/removeuser/{name}',
100
+ path: {
101
+ 'name': name,
102
+ },
103
+ body: requestBody,
104
+ mediaType: 'application/json',
105
+ });
106
+ }
32
107
  /**
33
108
  * list groups
34
109
  * @returns Group group list
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.240.0",
4
+ "version": "1.242.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {