@goauthentik/api 2024.2.2-1712922569 → 2024.2.2-1713180481

Sign up to get free protection for your applications and to get access to all the features.
@@ -542,7 +542,6 @@ src/models/UserDeleteStage.ts
542
542
  src/models/UserDeleteStageRequest.ts
543
543
  src/models/UserFieldsEnum.ts
544
544
  src/models/UserGroup.ts
545
- src/models/UserGroupRequest.ts
546
545
  src/models/UserLoginChallenge.ts
547
546
  src/models/UserLoginChallengeResponseRequest.ts
548
547
  src/models/UserLoginStage.ts
@@ -130,6 +130,7 @@ export interface CoreGroupsDestroyRequest {
130
130
  }
131
131
  export interface CoreGroupsListRequest {
132
132
  attributes?: string;
133
+ includeUsers?: boolean;
133
134
  isSuperuser?: boolean;
134
135
  membersByPk?: Array<number>;
135
136
  membersByUsername?: Array<string>;
@@ -231,6 +232,7 @@ export interface CoreUsersListRequest {
231
232
  email?: string;
232
233
  groupsByName?: Array<string>;
233
234
  groupsByPk?: Array<string>;
235
+ includeGroups?: boolean;
234
236
  isActive?: boolean;
235
237
  isSuperuser?: boolean;
236
238
  name?: string;
@@ -1092,6 +1092,9 @@ class CoreApi extends runtime.BaseAPI {
1092
1092
  if (requestParameters.attributes !== undefined) {
1093
1093
  queryParameters['attributes'] = requestParameters.attributes;
1094
1094
  }
1095
+ if (requestParameters.includeUsers !== undefined) {
1096
+ queryParameters['include_users'] = requestParameters.includeUsers;
1097
+ }
1095
1098
  if (requestParameters.isSuperuser !== undefined) {
1096
1099
  queryParameters['is_superuser'] = requestParameters.isSuperuser;
1097
1100
  }
@@ -2030,6 +2033,9 @@ class CoreApi extends runtime.BaseAPI {
2030
2033
  if (requestParameters.groupsByPk) {
2031
2034
  queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
2032
2035
  }
2036
+ if (requestParameters.includeGroups !== undefined) {
2037
+ queryParameters['include_groups'] = requestParameters.includeGroups;
2038
+ }
2033
2039
  if (requestParameters.isActive !== undefined) {
2034
2040
  queryParameters['is_active'] = requestParameters.isActive;
2035
2041
  }
@@ -130,6 +130,7 @@ export interface CoreGroupsDestroyRequest {
130
130
  }
131
131
  export interface CoreGroupsListRequest {
132
132
  attributes?: string;
133
+ includeUsers?: boolean;
133
134
  isSuperuser?: boolean;
134
135
  membersByPk?: Array<number>;
135
136
  membersByUsername?: Array<string>;
@@ -231,6 +232,7 @@ export interface CoreUsersListRequest {
231
232
  email?: string;
232
233
  groupsByName?: Array<string>;
233
234
  groupsByPk?: Array<string>;
235
+ includeGroups?: boolean;
234
236
  isActive?: boolean;
235
237
  isSuperuser?: boolean;
236
238
  name?: string;
@@ -1089,6 +1089,9 @@ export class CoreApi extends runtime.BaseAPI {
1089
1089
  if (requestParameters.attributes !== undefined) {
1090
1090
  queryParameters['attributes'] = requestParameters.attributes;
1091
1091
  }
1092
+ if (requestParameters.includeUsers !== undefined) {
1093
+ queryParameters['include_users'] = requestParameters.includeUsers;
1094
+ }
1092
1095
  if (requestParameters.isSuperuser !== undefined) {
1093
1096
  queryParameters['is_superuser'] = requestParameters.isSuperuser;
1094
1097
  }
@@ -2027,6 +2030,9 @@ export class CoreApi extends runtime.BaseAPI {
2027
2030
  if (requestParameters.groupsByPk) {
2028
2031
  queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
2029
2032
  }
2033
+ if (requestParameters.includeGroups !== undefined) {
2034
+ queryParameters['include_groups'] = requestParameters.includeGroups;
2035
+ }
2030
2036
  if (requestParameters.isActive !== undefined) {
2031
2037
  queryParameters['is_active'] = requestParameters.isActive;
2032
2038
  }
@@ -515,7 +515,6 @@ export * from './UserDeleteStage';
515
515
  export * from './UserDeleteStageRequest';
516
516
  export * from './UserFieldsEnum';
517
517
  export * from './UserGroup';
518
- export * from './UserGroupRequest';
519
518
  export * from './UserLoginChallenge';
520
519
  export * from './UserLoginChallengeResponseRequest';
521
520
  export * from './UserLoginStage';
@@ -517,7 +517,6 @@ export * from './UserDeleteStage';
517
517
  export * from './UserDeleteStageRequest';
518
518
  export * from './UserFieldsEnum';
519
519
  export * from './UserGroup';
520
- export * from './UserGroupRequest';
521
520
  export * from './UserLoginChallenge';
522
521
  export * from './UserLoginChallengeResponseRequest';
523
522
  export * from './UserLoginStage';
@@ -515,7 +515,6 @@ export * from './UserDeleteStage';
515
515
  export * from './UserDeleteStageRequest';
516
516
  export * from './UserFieldsEnum';
517
517
  export * from './UserGroup';
518
- export * from './UserGroupRequest';
519
518
  export * from './UserLoginChallenge';
520
519
  export * from './UserLoginChallengeResponseRequest';
521
520
  export * from './UserLoginStage';
@@ -533,7 +533,6 @@ __exportStar(require("./UserDeleteStage"), exports);
533
533
  __exportStar(require("./UserDeleteStageRequest"), exports);
534
534
  __exportStar(require("./UserFieldsEnum"), exports);
535
535
  __exportStar(require("./UserGroup"), exports);
536
- __exportStar(require("./UserGroupRequest"), exports);
537
536
  __exportStar(require("./UserLoginChallenge"), exports);
538
537
  __exportStar(require("./UserLoginChallengeResponseRequest"), exports);
539
538
  __exportStar(require("./UserLoginStage"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1712922569",
3
+ "version": "2024.2.2-1713180481",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -292,6 +292,7 @@ export interface CoreGroupsDestroyRequest {
292
292
 
293
293
  export interface CoreGroupsListRequest {
294
294
  attributes?: string;
295
+ includeUsers?: boolean;
295
296
  isSuperuser?: boolean;
296
297
  membersByPk?: Array<number>;
297
298
  membersByUsername?: Array<string>;
@@ -416,6 +417,7 @@ export interface CoreUsersListRequest {
416
417
  email?: string;
417
418
  groupsByName?: Array<string>;
418
419
  groupsByPk?: Array<string>;
420
+ includeGroups?: boolean;
419
421
  isActive?: boolean;
420
422
  isSuperuser?: boolean;
421
423
  name?: string;
@@ -1670,6 +1672,10 @@ export class CoreApi extends runtime.BaseAPI {
1670
1672
  queryParameters['attributes'] = requestParameters.attributes;
1671
1673
  }
1672
1674
 
1675
+ if (requestParameters.includeUsers !== undefined) {
1676
+ queryParameters['include_users'] = requestParameters.includeUsers;
1677
+ }
1678
+
1673
1679
  if (requestParameters.isSuperuser !== undefined) {
1674
1680
  queryParameters['is_superuser'] = requestParameters.isSuperuser;
1675
1681
  }
@@ -2718,6 +2724,10 @@ export class CoreApi extends runtime.BaseAPI {
2718
2724
  queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
2719
2725
  }
2720
2726
 
2727
+ if (requestParameters.includeGroups !== undefined) {
2728
+ queryParameters['include_groups'] = requestParameters.includeGroups;
2729
+ }
2730
+
2721
2731
  if (requestParameters.isActive !== undefined) {
2722
2732
  queryParameters['is_active'] = requestParameters.isActive;
2723
2733
  }
@@ -517,7 +517,6 @@ export * from './UserDeleteStage';
517
517
  export * from './UserDeleteStageRequest';
518
518
  export * from './UserFieldsEnum';
519
519
  export * from './UserGroup';
520
- export * from './UserGroupRequest';
521
520
  export * from './UserLoginChallenge';
522
521
  export * from './UserLoginChallengeResponseRequest';
523
522
  export * from './UserLoginStage';
@@ -1,51 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.2.2
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Simplified Group Serializer for user's groups
14
- * @export
15
- * @interface UserGroupRequest
16
- */
17
- export interface UserGroupRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof UserGroupRequest
22
- */
23
- name: string;
24
- /**
25
- * Users added to this group will be superusers.
26
- * @type {boolean}
27
- * @memberof UserGroupRequest
28
- */
29
- isSuperuser?: boolean;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UserGroupRequest
34
- */
35
- parent?: string | null;
36
- /**
37
- *
38
- * @type {{ [key: string]: any; }}
39
- * @memberof UserGroupRequest
40
- */
41
- attributes?: {
42
- [key: string]: any;
43
- };
44
- }
45
- /**
46
- * Check if a given object implements the UserGroupRequest interface.
47
- */
48
- export declare function instanceOfUserGroupRequest(value: object): boolean;
49
- export declare function UserGroupRequestFromJSON(json: any): UserGroupRequest;
50
- export declare function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest;
51
- export declare function UserGroupRequestToJSON(value?: UserGroupRequest | null): any;
@@ -1,50 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * authentik
5
- * Making authentication simple.
6
- *
7
- * The version of the OpenAPI document: 2024.2.2
8
- * Contact: hello@goauthentik.io
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { exists } from '../runtime';
15
- /**
16
- * Check if a given object implements the UserGroupRequest interface.
17
- */
18
- export function instanceOfUserGroupRequest(value) {
19
- let isInstance = true;
20
- isInstance = isInstance && "name" in value;
21
- return isInstance;
22
- }
23
- export function UserGroupRequestFromJSON(json) {
24
- return UserGroupRequestFromJSONTyped(json, false);
25
- }
26
- export function UserGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
27
- if ((json === undefined) || (json === null)) {
28
- return json;
29
- }
30
- return {
31
- 'name': json['name'],
32
- 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
33
- 'parent': !exists(json, 'parent') ? undefined : json['parent'],
34
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
35
- };
36
- }
37
- export function UserGroupRequestToJSON(value) {
38
- if (value === undefined) {
39
- return undefined;
40
- }
41
- if (value === null) {
42
- return null;
43
- }
44
- return {
45
- 'name': value.name,
46
- 'is_superuser': value.isSuperuser,
47
- 'parent': value.parent,
48
- 'attributes': value.attributes,
49
- };
50
- }
@@ -1,51 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.2.2
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * Simplified Group Serializer for user's groups
14
- * @export
15
- * @interface UserGroupRequest
16
- */
17
- export interface UserGroupRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof UserGroupRequest
22
- */
23
- name: string;
24
- /**
25
- * Users added to this group will be superusers.
26
- * @type {boolean}
27
- * @memberof UserGroupRequest
28
- */
29
- isSuperuser?: boolean;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UserGroupRequest
34
- */
35
- parent?: string | null;
36
- /**
37
- *
38
- * @type {{ [key: string]: any; }}
39
- * @memberof UserGroupRequest
40
- */
41
- attributes?: {
42
- [key: string]: any;
43
- };
44
- }
45
- /**
46
- * Check if a given object implements the UserGroupRequest interface.
47
- */
48
- export declare function instanceOfUserGroupRequest(value: object): boolean;
49
- export declare function UserGroupRequestFromJSON(json: any): UserGroupRequest;
50
- export declare function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest;
51
- export declare function UserGroupRequestToJSON(value?: UserGroupRequest | null): any;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * authentik
6
- * Making authentication simple.
7
- *
8
- * The version of the OpenAPI document: 2024.2.2
9
- * Contact: hello@goauthentik.io
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserGroupRequestToJSON = exports.UserGroupRequestFromJSONTyped = exports.UserGroupRequestFromJSON = exports.instanceOfUserGroupRequest = void 0;
17
- const runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the UserGroupRequest interface.
20
- */
21
- function instanceOfUserGroupRequest(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "name" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfUserGroupRequest = instanceOfUserGroupRequest;
27
- function UserGroupRequestFromJSON(json) {
28
- return UserGroupRequestFromJSONTyped(json, false);
29
- }
30
- exports.UserGroupRequestFromJSON = UserGroupRequestFromJSON;
31
- function UserGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'name': json['name'],
37
- 'isSuperuser': !(0, runtime_1.exists)(json, 'is_superuser') ? undefined : json['is_superuser'],
38
- 'parent': !(0, runtime_1.exists)(json, 'parent') ? undefined : json['parent'],
39
- 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
40
- };
41
- }
42
- exports.UserGroupRequestFromJSONTyped = UserGroupRequestFromJSONTyped;
43
- function UserGroupRequestToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
49
- }
50
- return {
51
- 'name': value.name,
52
- 'is_superuser': value.isSuperuser,
53
- 'parent': value.parent,
54
- 'attributes': value.attributes,
55
- };
56
- }
57
- exports.UserGroupRequestToJSON = UserGroupRequestToJSON;
@@ -1,90 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * authentik
5
- * Making authentication simple.
6
- *
7
- * The version of the OpenAPI document: 2024.2.2
8
- * Contact: hello@goauthentik.io
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- * Simplified Group Serializer for user's groups
18
- * @export
19
- * @interface UserGroupRequest
20
- */
21
- export interface UserGroupRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof UserGroupRequest
26
- */
27
- name: string;
28
- /**
29
- * Users added to this group will be superusers.
30
- * @type {boolean}
31
- * @memberof UserGroupRequest
32
- */
33
- isSuperuser?: boolean;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof UserGroupRequest
38
- */
39
- parent?: string | null;
40
- /**
41
- *
42
- * @type {{ [key: string]: any; }}
43
- * @memberof UserGroupRequest
44
- */
45
- attributes?: { [key: string]: any; };
46
- }
47
-
48
- /**
49
- * Check if a given object implements the UserGroupRequest interface.
50
- */
51
- export function instanceOfUserGroupRequest(value: object): boolean {
52
- let isInstance = true;
53
- isInstance = isInstance && "name" in value;
54
-
55
- return isInstance;
56
- }
57
-
58
- export function UserGroupRequestFromJSON(json: any): UserGroupRequest {
59
- return UserGroupRequestFromJSONTyped(json, false);
60
- }
61
-
62
- export function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest {
63
- if ((json === undefined) || (json === null)) {
64
- return json;
65
- }
66
- return {
67
-
68
- 'name': json['name'],
69
- 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
70
- 'parent': !exists(json, 'parent') ? undefined : json['parent'],
71
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
72
- };
73
- }
74
-
75
- export function UserGroupRequestToJSON(value?: UserGroupRequest | null): any {
76
- if (value === undefined) {
77
- return undefined;
78
- }
79
- if (value === null) {
80
- return null;
81
- }
82
- return {
83
-
84
- 'name': value.name,
85
- 'is_superuser': value.isSuperuser,
86
- 'parent': value.parent,
87
- 'attributes': value.attributes,
88
- };
89
- }
90
-