@goauthentik/api 2022.10.1-1667062336 → 2022.10.1-1667989514

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.
@@ -458,6 +458,8 @@ src/models/UserConsent.ts
458
458
  src/models/UserDeleteStage.ts
459
459
  src/models/UserDeleteStageRequest.ts
460
460
  src/models/UserFieldsEnum.ts
461
+ src/models/UserGroup.ts
462
+ src/models/UserGroupRequest.ts
461
463
  src/models/UserLoginStage.ts
462
464
  src/models/UserLoginStageRequest.ts
463
465
  src/models/UserLogoutStage.ts
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Group } from './Group';
12
+ import { UserGroup } from './UserGroup';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -60,10 +60,10 @@ export interface PolicyBindingUserObj {
60
60
  groups: Array<string>;
61
61
  /**
62
62
  *
63
- * @type {Array<Group>}
63
+ * @type {Array<UserGroup>}
64
64
  * @memberof PolicyBindingUserObj
65
65
  */
66
- readonly groupsObj: Array<Group>;
66
+ readonly groupsObj: Array<UserGroup>;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { GroupFromJSON, } from './Group';
15
+ import { UserGroupFromJSON, } from './UserGroup';
16
16
  export function PolicyBindingUserObjFromJSON(json) {
17
17
  return PolicyBindingUserObjFromJSONTyped(json, false);
18
18
  }
@@ -28,7 +28,7 @@ export function PolicyBindingUserObjFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
29
29
  'isSuperuser': json['is_superuser'],
30
30
  'groups': json['groups'],
31
- 'groupsObj': (json['groups_obj'].map(GroupFromJSON)),
31
+ 'groupsObj': (json['groups_obj'].map(UserGroupFromJSON)),
32
32
  'email': !exists(json, 'email') ? undefined : json['email'],
33
33
  'avatar': json['avatar'],
34
34
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Group } from './Group';
12
+ import { UserGroup } from './UserGroup';
13
13
  /**
14
14
  * User Serializer
15
15
  * @export
@@ -60,10 +60,10 @@ export interface User {
60
60
  groups: Array<string>;
61
61
  /**
62
62
  *
63
- * @type {Array<Group>}
63
+ * @type {Array<UserGroup>}
64
64
  * @memberof User
65
65
  */
66
- readonly groupsObj: Array<Group>;
66
+ readonly groupsObj: Array<UserGroup>;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { GroupFromJSON, } from './Group';
15
+ import { UserGroupFromJSON, } from './UserGroup';
16
16
  export function UserFromJSON(json) {
17
17
  return UserFromJSONTyped(json, false);
18
18
  }
@@ -28,7 +28,7 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
29
29
  'isSuperuser': json['is_superuser'],
30
30
  'groups': json['groups'],
31
- 'groupsObj': (json['groups_obj'].map(GroupFromJSON)),
31
+ 'groupsObj': (json['groups_obj'].map(UserGroupFromJSON)),
32
32
  'email': !exists(json, 'email') ? undefined : json['email'],
33
33
  'avatar': json['avatar'],
34
34
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
@@ -0,0 +1,65 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.10.1
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 UserGroup
16
+ */
17
+ export interface UserGroup {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserGroup
22
+ */
23
+ readonly pk: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UserGroup
28
+ */
29
+ readonly numPk: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UserGroup
34
+ */
35
+ name: string;
36
+ /**
37
+ * Users added to this group will be superusers.
38
+ * @type {boolean}
39
+ * @memberof UserGroup
40
+ */
41
+ isSuperuser?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UserGroup
46
+ */
47
+ parent?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UserGroup
52
+ */
53
+ readonly parentName: string;
54
+ /**
55
+ *
56
+ * @type {{ [key: string]: any; }}
57
+ * @memberof UserGroup
58
+ */
59
+ attributes?: {
60
+ [key: string]: any;
61
+ };
62
+ }
63
+ export declare function UserGroupFromJSON(json: any): UserGroup;
64
+ export declare function UserGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroup;
65
+ export declare function UserGroupToJSON(value?: UserGroup | null): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.10.1
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
+ export function UserGroupFromJSON(json) {
16
+ return UserGroupFromJSONTyped(json, false);
17
+ }
18
+ export function UserGroupFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'pk': json['pk'],
24
+ 'numPk': json['num_pk'],
25
+ 'name': json['name'],
26
+ 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
27
+ 'parent': !exists(json, 'parent') ? undefined : json['parent'],
28
+ 'parentName': json['parent_name'],
29
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
30
+ };
31
+ }
32
+ export function UserGroupToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'name': value.name,
41
+ 'is_superuser': value.isSuperuser,
42
+ 'parent': value.parent,
43
+ 'attributes': value.attributes,
44
+ };
45
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.10.1
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
+ export declare function UserGroupRequestFromJSON(json: any): UserGroupRequest;
46
+ export declare function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest;
47
+ export declare function UserGroupRequestToJSON(value?: UserGroupRequest | null): any;
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.10.1
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
+ export function UserGroupRequestFromJSON(json) {
16
+ return UserGroupRequestFromJSONTyped(json, false);
17
+ }
18
+ export function UserGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'name': json['name'],
24
+ 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
25
+ 'parent': !exists(json, 'parent') ? undefined : json['parent'],
26
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
27
+ };
28
+ }
29
+ export function UserGroupRequestToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'name': value.name,
38
+ 'is_superuser': value.isSuperuser,
39
+ 'parent': value.parent,
40
+ 'attributes': value.attributes,
41
+ };
42
+ }
@@ -435,6 +435,8 @@ export * from './UserConsent';
435
435
  export * from './UserDeleteStage';
436
436
  export * from './UserDeleteStageRequest';
437
437
  export * from './UserFieldsEnum';
438
+ export * from './UserGroup';
439
+ export * from './UserGroupRequest';
438
440
  export * from './UserLoginStage';
439
441
  export * from './UserLoginStageRequest';
440
442
  export * from './UserLogoutStage';
@@ -437,6 +437,8 @@ export * from './UserConsent';
437
437
  export * from './UserDeleteStage';
438
438
  export * from './UserDeleteStageRequest';
439
439
  export * from './UserFieldsEnum';
440
+ export * from './UserGroup';
441
+ export * from './UserGroupRequest';
440
442
  export * from './UserLoginStage';
441
443
  export * from './UserLoginStageRequest';
442
444
  export * from './UserLogoutStage';
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Group } from './Group';
12
+ import { UserGroup } from './UserGroup';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -60,10 +60,10 @@ export interface PolicyBindingUserObj {
60
60
  groups: Array<string>;
61
61
  /**
62
62
  *
63
- * @type {Array<Group>}
63
+ * @type {Array<UserGroup>}
64
64
  * @memberof PolicyBindingUserObj
65
65
  */
66
- readonly groupsObj: Array<Group>;
66
+ readonly groupsObj: Array<UserGroup>;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PolicyBindingUserObjToJSON = exports.PolicyBindingUserObjFromJSONTyped = exports.PolicyBindingUserObjFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const Group_1 = require("./Group");
18
+ const UserGroup_1 = require("./UserGroup");
19
19
  function PolicyBindingUserObjFromJSON(json) {
20
20
  return PolicyBindingUserObjFromJSONTyped(json, false);
21
21
  }
@@ -32,7 +32,7 @@ function PolicyBindingUserObjFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'lastLogin': !(0, runtime_1.exists)(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
33
33
  'isSuperuser': json['is_superuser'],
34
34
  'groups': json['groups'],
35
- 'groupsObj': (json['groups_obj'].map(Group_1.GroupFromJSON)),
35
+ 'groupsObj': (json['groups_obj'].map(UserGroup_1.UserGroupFromJSON)),
36
36
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
37
37
  'avatar': json['avatar'],
38
38
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Group } from './Group';
12
+ import { UserGroup } from './UserGroup';
13
13
  /**
14
14
  * User Serializer
15
15
  * @export
@@ -60,10 +60,10 @@ export interface User {
60
60
  groups: Array<string>;
61
61
  /**
62
62
  *
63
- * @type {Array<Group>}
63
+ * @type {Array<UserGroup>}
64
64
  * @memberof User
65
65
  */
66
- readonly groupsObj: Array<Group>;
66
+ readonly groupsObj: Array<UserGroup>;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserToJSON = exports.UserFromJSONTyped = exports.UserFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const Group_1 = require("./Group");
18
+ const UserGroup_1 = require("./UserGroup");
19
19
  function UserFromJSON(json) {
20
20
  return UserFromJSONTyped(json, false);
21
21
  }
@@ -32,7 +32,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'lastLogin': !(0, runtime_1.exists)(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
33
33
  'isSuperuser': json['is_superuser'],
34
34
  'groups': json['groups'],
35
- 'groupsObj': (json['groups_obj'].map(Group_1.GroupFromJSON)),
35
+ 'groupsObj': (json['groups_obj'].map(UserGroup_1.UserGroupFromJSON)),
36
36
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
37
37
  'avatar': json['avatar'],
38
38
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
@@ -0,0 +1,65 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.10.1
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 UserGroup
16
+ */
17
+ export interface UserGroup {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserGroup
22
+ */
23
+ readonly pk: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UserGroup
28
+ */
29
+ readonly numPk: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UserGroup
34
+ */
35
+ name: string;
36
+ /**
37
+ * Users added to this group will be superusers.
38
+ * @type {boolean}
39
+ * @memberof UserGroup
40
+ */
41
+ isSuperuser?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UserGroup
46
+ */
47
+ parent?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UserGroup
52
+ */
53
+ readonly parentName: string;
54
+ /**
55
+ *
56
+ * @type {{ [key: string]: any; }}
57
+ * @memberof UserGroup
58
+ */
59
+ attributes?: {
60
+ [key: string]: any;
61
+ };
62
+ }
63
+ export declare function UserGroupFromJSON(json: any): UserGroup;
64
+ export declare function UserGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroup;
65
+ export declare function UserGroupToJSON(value?: UserGroup | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.10.1
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.UserGroupToJSON = exports.UserGroupFromJSONTyped = exports.UserGroupFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ function UserGroupFromJSON(json) {
19
+ return UserGroupFromJSONTyped(json, false);
20
+ }
21
+ exports.UserGroupFromJSON = UserGroupFromJSON;
22
+ function UserGroupFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'pk': json['pk'],
28
+ 'numPk': json['num_pk'],
29
+ 'name': json['name'],
30
+ 'isSuperuser': !(0, runtime_1.exists)(json, 'is_superuser') ? undefined : json['is_superuser'],
31
+ 'parent': !(0, runtime_1.exists)(json, 'parent') ? undefined : json['parent'],
32
+ 'parentName': json['parent_name'],
33
+ 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
34
+ };
35
+ }
36
+ exports.UserGroupFromJSONTyped = UserGroupFromJSONTyped;
37
+ function UserGroupToJSON(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
+ }
51
+ exports.UserGroupToJSON = UserGroupToJSON;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.10.1
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
+ export declare function UserGroupRequestFromJSON(json: any): UserGroupRequest;
46
+ export declare function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest;
47
+ export declare function UserGroupRequestToJSON(value?: UserGroupRequest | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.10.1
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 = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ function UserGroupRequestFromJSON(json) {
19
+ return UserGroupRequestFromJSONTyped(json, false);
20
+ }
21
+ exports.UserGroupRequestFromJSON = UserGroupRequestFromJSON;
22
+ function UserGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'name': json['name'],
28
+ 'isSuperuser': !(0, runtime_1.exists)(json, 'is_superuser') ? undefined : json['is_superuser'],
29
+ 'parent': !(0, runtime_1.exists)(json, 'parent') ? undefined : json['parent'],
30
+ 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
31
+ };
32
+ }
33
+ exports.UserGroupRequestFromJSONTyped = UserGroupRequestFromJSONTyped;
34
+ function UserGroupRequestToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'name': value.name,
43
+ 'is_superuser': value.isSuperuser,
44
+ 'parent': value.parent,
45
+ 'attributes': value.attributes,
46
+ };
47
+ }
48
+ exports.UserGroupRequestToJSON = UserGroupRequestToJSON;
@@ -435,6 +435,8 @@ export * from './UserConsent';
435
435
  export * from './UserDeleteStage';
436
436
  export * from './UserDeleteStageRequest';
437
437
  export * from './UserFieldsEnum';
438
+ export * from './UserGroup';
439
+ export * from './UserGroupRequest';
438
440
  export * from './UserLoginStage';
439
441
  export * from './UserLoginStageRequest';
440
442
  export * from './UserLogoutStage';
@@ -453,6 +453,8 @@ __exportStar(require("./UserConsent"), exports);
453
453
  __exportStar(require("./UserDeleteStage"), exports);
454
454
  __exportStar(require("./UserDeleteStageRequest"), exports);
455
455
  __exportStar(require("./UserFieldsEnum"), exports);
456
+ __exportStar(require("./UserGroup"), exports);
457
+ __exportStar(require("./UserGroupRequest"), exports);
456
458
  __exportStar(require("./UserLoginStage"), exports);
457
459
  __exportStar(require("./UserLoginStageRequest"), exports);
458
460
  __exportStar(require("./UserLogoutStage"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.10.1-1667062336",
3
+ "version": "2022.10.1-1667989514",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,18 +13,18 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import {
17
- Group,
18
- GroupFromJSON,
19
- GroupFromJSONTyped,
20
- GroupToJSON,
21
- } from './Group';
22
16
  import {
23
17
  User,
24
18
  UserFromJSON,
25
19
  UserFromJSONTyped,
26
20
  UserToJSON,
27
21
  } from './User';
22
+ import {
23
+ UserGroup,
24
+ UserGroupFromJSON,
25
+ UserGroupFromJSONTyped,
26
+ UserGroupToJSON,
27
+ } from './UserGroup';
28
28
 
29
29
  /**
30
30
  *
@@ -76,10 +76,10 @@ export interface PolicyBindingUserObj {
76
76
  groups: Array<string>;
77
77
  /**
78
78
  *
79
- * @type {Array<Group>}
79
+ * @type {Array<UserGroup>}
80
80
  * @memberof PolicyBindingUserObj
81
81
  */
82
- readonly groupsObj: Array<Group>;
82
+ readonly groupsObj: Array<UserGroup>;
83
83
  /**
84
84
  *
85
85
  * @type {string}
@@ -129,7 +129,7 @@ export function PolicyBindingUserObjFromJSONTyped(json: any, ignoreDiscriminator
129
129
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
130
130
  'isSuperuser': json['is_superuser'],
131
131
  'groups': json['groups'],
132
- 'groupsObj': ((json['groups_obj'] as Array<any>).map(GroupFromJSON)),
132
+ 'groupsObj': ((json['groups_obj'] as Array<any>).map(UserGroupFromJSON)),
133
133
  'email': !exists(json, 'email') ? undefined : json['email'],
134
134
  'avatar': json['avatar'],
135
135
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
@@ -14,11 +14,11 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  import {
17
- Group,
18
- GroupFromJSON,
19
- GroupFromJSONTyped,
20
- GroupToJSON,
21
- } from './Group';
17
+ UserGroup,
18
+ UserGroupFromJSON,
19
+ UserGroupFromJSONTyped,
20
+ UserGroupToJSON,
21
+ } from './UserGroup';
22
22
 
23
23
  /**
24
24
  * User Serializer
@@ -70,10 +70,10 @@ export interface User {
70
70
  groups: Array<string>;
71
71
  /**
72
72
  *
73
- * @type {Array<Group>}
73
+ * @type {Array<UserGroup>}
74
74
  * @memberof User
75
75
  */
76
- readonly groupsObj: Array<Group>;
76
+ readonly groupsObj: Array<UserGroup>;
77
77
  /**
78
78
  *
79
79
  * @type {string}
@@ -123,7 +123,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
123
123
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
124
124
  'isSuperuser': json['is_superuser'],
125
125
  'groups': json['groups'],
126
- 'groupsObj': ((json['groups_obj'] as Array<any>).map(GroupFromJSON)),
126
+ 'groupsObj': ((json['groups_obj'] as Array<any>).map(UserGroupFromJSON)),
127
127
  'email': !exists(json, 'email') ? undefined : json['email'],
128
128
  'avatar': json['avatar'],
129
129
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.10.1
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 UserGroup
20
+ */
21
+ export interface UserGroup {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UserGroup
26
+ */
27
+ readonly pk: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof UserGroup
32
+ */
33
+ readonly numPk: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UserGroup
38
+ */
39
+ name: string;
40
+ /**
41
+ * Users added to this group will be superusers.
42
+ * @type {boolean}
43
+ * @memberof UserGroup
44
+ */
45
+ isSuperuser?: boolean;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof UserGroup
50
+ */
51
+ parent?: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof UserGroup
56
+ */
57
+ readonly parentName: string;
58
+ /**
59
+ *
60
+ * @type {{ [key: string]: any; }}
61
+ * @memberof UserGroup
62
+ */
63
+ attributes?: { [key: string]: any; };
64
+ }
65
+
66
+ export function UserGroupFromJSON(json: any): UserGroup {
67
+ return UserGroupFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function UserGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroup {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'pk': json['pk'],
77
+ 'numPk': json['num_pk'],
78
+ 'name': json['name'],
79
+ 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
80
+ 'parent': !exists(json, 'parent') ? undefined : json['parent'],
81
+ 'parentName': json['parent_name'],
82
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
83
+ };
84
+ }
85
+
86
+ export function UserGroupToJSON(value?: UserGroup | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'name': value.name,
96
+ 'is_superuser': value.isSuperuser,
97
+ 'parent': value.parent,
98
+ 'attributes': value.attributes,
99
+ };
100
+ }
101
+
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.10.1
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
+ export function UserGroupRequestFromJSON(json: any): UserGroupRequest {
49
+ return UserGroupRequestFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function UserGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGroupRequest {
53
+ if ((json === undefined) || (json === null)) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'name': json['name'],
59
+ 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],
60
+ 'parent': !exists(json, 'parent') ? undefined : json['parent'],
61
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
62
+ };
63
+ }
64
+
65
+ export function UserGroupRequestToJSON(value?: UserGroupRequest | null): any {
66
+ if (value === undefined) {
67
+ return undefined;
68
+ }
69
+ if (value === null) {
70
+ return null;
71
+ }
72
+ return {
73
+
74
+ 'name': value.name,
75
+ 'is_superuser': value.isSuperuser,
76
+ 'parent': value.parent,
77
+ 'attributes': value.attributes,
78
+ };
79
+ }
80
+
@@ -437,6 +437,8 @@ export * from './UserConsent';
437
437
  export * from './UserDeleteStage';
438
438
  export * from './UserDeleteStageRequest';
439
439
  export * from './UserFieldsEnum';
440
+ export * from './UserGroup';
441
+ export * from './UserGroupRequest';
440
442
  export * from './UserLoginStage';
441
443
  export * from './UserLoginStageRequest';
442
444
  export * from './UserLogoutStage';