windmill-client 1.276.1 → 1.277.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.276.1',
6
+ VERSION: '1.277.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -130,9 +130,9 @@ export type { TokenResponse } from './models/TokenResponse';
130
130
  export type { TruncatedToken } from './models/TruncatedToken';
131
131
  export type { UpdateInput } from './models/UpdateInput';
132
132
  export type { UploadFilePart } from './models/UploadFilePart';
133
- export type { Usage } from './models/Usage';
134
133
  export type { User } from './models/User';
135
134
  export type { Username } from './models/Username';
135
+ export type { UserUsage } from './models/UserUsage';
136
136
  export type { UserWorkspaceList } from './models/UserWorkspaceList';
137
137
  export type { VersionId } from './models/VersionId';
138
138
  export type { WindmillFileMetadata } from './models/WindmillFileMetadata';
@@ -1,4 +1,3 @@
1
- import type { Usage } from './Usage';
2
1
  export type User = {
3
2
  email: string;
4
3
  username: string;
@@ -10,5 +9,4 @@ export type User = {
10
9
  groups?: Array<string>;
11
10
  folders: Array<string>;
12
11
  folders_owners: Array<string>;
13
- usage?: Usage;
14
12
  };
@@ -0,0 +1,4 @@
1
+ export type UserUsage = {
2
+ email?: string;
3
+ executions?: number;
4
+ };
@@ -6,6 +6,7 @@ import type { NewTokenImpersonate } from '../models/NewTokenImpersonate';
6
6
  import type { NewUser } from '../models/NewUser';
7
7
  import type { TruncatedToken } from '../models/TruncatedToken';
8
8
  import type { User } from '../models/User';
9
+ import type { UserUsage } from '../models/UserUsage';
9
10
  import type { WorkspaceInvite } from '../models/WorkspaceInvite';
10
11
  import type { CancelablePromise } from '../core/CancelablePromise';
11
12
  export declare class UserService {
@@ -268,6 +269,14 @@ export declare class UserService {
268
269
  static listUsers({ workspace, }: {
269
270
  workspace: string;
270
271
  }): CancelablePromise<Array<User>>;
272
+ /**
273
+ * list users usage
274
+ * @returns UserUsage user
275
+ * @throws ApiError
276
+ */
277
+ static listUsersUsage({ workspace, }: {
278
+ workspace: string;
279
+ }): CancelablePromise<Array<UserUsage>>;
271
280
  /**
272
281
  * list usernames
273
282
  * @returns string user
@@ -347,6 +347,20 @@ class UserService {
347
347
  },
348
348
  });
349
349
  }
350
+ /**
351
+ * list users usage
352
+ * @returns UserUsage user
353
+ * @throws ApiError
354
+ */
355
+ static listUsersUsage({ workspace, }) {
356
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
357
+ method: 'GET',
358
+ url: '/w/{workspace}/users/list_usage',
359
+ path: {
360
+ 'workspace': workspace,
361
+ },
362
+ });
363
+ }
350
364
  /**
351
365
  * list usernames
352
366
  * @returns string 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.276.1",
4
+ "version": "1.277.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {
@@ -1,3 +0,0 @@
1
- export type Usage = {
2
- executions?: number;
3
- };
File without changes