windmill-client 1.293.0 → 1.294.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.293.0',
6
+ VERSION: '1.294.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -157,6 +157,37 @@ export declare class WorkspaceService {
157
157
  static leaveWorkspace({ workspace, }: {
158
158
  workspace: string;
159
159
  }): CancelablePromise<string>;
160
+ /**
161
+ * get workspace name
162
+ * @returns string status
163
+ * @throws ApiError
164
+ */
165
+ static getWorkspaceName({ workspace, }: {
166
+ workspace: string;
167
+ }): CancelablePromise<string>;
168
+ /**
169
+ * change workspace name
170
+ * @returns string status
171
+ * @throws ApiError
172
+ */
173
+ static changeWorkspaceName({ workspace, requestBody, }: {
174
+ workspace: string;
175
+ requestBody?: {
176
+ new_name?: string;
177
+ };
178
+ }): CancelablePromise<string>;
179
+ /**
180
+ * change workspace id
181
+ * @returns string status
182
+ * @throws ApiError
183
+ */
184
+ static changeWorkspaceId({ workspace, requestBody, }: {
185
+ workspace: string;
186
+ requestBody?: {
187
+ new_id?: string;
188
+ new_name?: string;
189
+ };
190
+ }): CancelablePromise<string>;
160
191
  /**
161
192
  * list pending invites for a workspace
162
193
  * @returns WorkspaceInvite user
@@ -195,6 +195,52 @@ class WorkspaceService {
195
195
  },
196
196
  });
197
197
  }
198
+ /**
199
+ * get workspace name
200
+ * @returns string status
201
+ * @throws ApiError
202
+ */
203
+ static getWorkspaceName({ workspace, }) {
204
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
205
+ method: 'GET',
206
+ url: '/w/{workspace}/workspaces/get_workspace_name',
207
+ path: {
208
+ 'workspace': workspace,
209
+ },
210
+ });
211
+ }
212
+ /**
213
+ * change workspace name
214
+ * @returns string status
215
+ * @throws ApiError
216
+ */
217
+ static changeWorkspaceName({ workspace, requestBody, }) {
218
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
219
+ method: 'POST',
220
+ url: '/w/{workspace}/workspaces/change_workspace_name',
221
+ path: {
222
+ 'workspace': workspace,
223
+ },
224
+ body: requestBody,
225
+ mediaType: 'application/json',
226
+ });
227
+ }
228
+ /**
229
+ * change workspace id
230
+ * @returns string status
231
+ * @throws ApiError
232
+ */
233
+ static changeWorkspaceId({ workspace, requestBody, }) {
234
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
235
+ method: 'POST',
236
+ url: '/w/{workspace}/workspaces/change_workspace_id',
237
+ path: {
238
+ 'workspace': workspace,
239
+ },
240
+ body: requestBody,
241
+ mediaType: 'application/json',
242
+ });
243
+ }
198
244
  /**
199
245
  * list pending invites for a workspace
200
246
  * @returns WorkspaceInvite user
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.293.0",
4
+ "version": "1.294.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {