@goauthentik/api 2021.9.5-1633429910 → 2021.9.5-1633432270

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.
@@ -410,6 +410,7 @@ src/models/UserOAuthSourceConnectionRequest.ts
410
410
  src/models/UserReputation.ts
411
411
  src/models/UserRequest.ts
412
412
  src/models/UserSelf.ts
413
+ src/models/UserSelfGroups.ts
413
414
  src/models/UserSelfRequest.ts
414
415
  src/models/UserServiceAccountRequest.ts
415
416
  src/models/UserServiceAccountResponse.ts
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { UserSelfGroups } from './';
12
13
  /**
13
14
  * User Serializer for information a user can retrieve about themselves and
14
15
  * update about themselves
@@ -48,10 +49,10 @@ export interface UserSelf {
48
49
  readonly isSuperuser: boolean;
49
50
  /**
50
51
  *
51
- * @type {Array<string>}
52
+ * @type {Array<UserSelfGroups>}
52
53
  * @memberof UserSelf
53
54
  */
54
- readonly groups: Array<string>;
55
+ readonly groups: Array<UserSelfGroups>;
55
56
  /**
56
57
  *
57
58
  * @type {string}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { UserSelfGroupsFromJSON, } from './';
15
16
  export function UserSelfFromJSON(json) {
16
17
  return UserSelfFromJSONTyped(json, false);
17
18
  }
@@ -25,7 +26,7 @@ export function UserSelfFromJSONTyped(json, ignoreDiscriminator) {
25
26
  'name': json['name'],
26
27
  'isActive': json['is_active'],
27
28
  'isSuperuser': json['is_superuser'],
28
- 'groups': json['groups'],
29
+ 'groups': (json['groups'].map(UserSelfGroupsFromJSON)),
29
30
  'email': !exists(json, 'email') ? undefined : json['email'],
30
31
  'avatar': json['avatar'],
31
32
  'uid': json['uid'],
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2021.9.5
6
+ * Contact: hello@beryju.org
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
+ *
14
+ * @export
15
+ * @interface UserSelfGroups
16
+ */
17
+ export interface UserSelfGroups {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserSelfGroups
22
+ */
23
+ readonly name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserSelfGroups
28
+ */
29
+ readonly pk: string;
30
+ }
31
+ export declare function UserSelfGroupsFromJSON(json: any): UserSelfGroups;
32
+ export declare function UserSelfGroupsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSelfGroups;
33
+ export declare function UserSelfGroupsToJSON(value?: UserSelfGroups | null): any;
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2021.9.5
8
+ * Contact: hello@beryju.org
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
+ export function UserSelfGroupsFromJSON(json) {
15
+ return UserSelfGroupsFromJSONTyped(json, false);
16
+ }
17
+ export function UserSelfGroupsFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'name': json['name'],
23
+ 'pk': json['pk'],
24
+ };
25
+ }
26
+ export function UserSelfGroupsToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {};
34
+ }
@@ -387,6 +387,7 @@ export * from './UserOAuthSourceConnectionRequest';
387
387
  export * from './UserReputation';
388
388
  export * from './UserRequest';
389
389
  export * from './UserSelf';
390
+ export * from './UserSelfGroups';
390
391
  export * from './UserSelfRequest';
391
392
  export * from './UserServiceAccountRequest';
392
393
  export * from './UserServiceAccountResponse';
@@ -389,6 +389,7 @@ export * from './UserOAuthSourceConnectionRequest';
389
389
  export * from './UserReputation';
390
390
  export * from './UserRequest';
391
391
  export * from './UserSelf';
392
+ export * from './UserSelfGroups';
392
393
  export * from './UserSelfRequest';
393
394
  export * from './UserServiceAccountRequest';
394
395
  export * from './UserServiceAccountResponse';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { UserSelfGroups } from './';
12
13
  /**
13
14
  * User Serializer for information a user can retrieve about themselves and
14
15
  * update about themselves
@@ -48,10 +49,10 @@ export interface UserSelf {
48
49
  readonly isSuperuser: boolean;
49
50
  /**
50
51
  *
51
- * @type {Array<string>}
52
+ * @type {Array<UserSelfGroups>}
52
53
  * @memberof UserSelf
53
54
  */
54
- readonly groups: Array<string>;
55
+ readonly groups: Array<UserSelfGroups>;
55
56
  /**
56
57
  *
57
58
  * @type {string}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserSelfToJSON = exports.UserSelfFromJSONTyped = exports.UserSelfFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const _1 = require("./");
18
19
  function UserSelfFromJSON(json) {
19
20
  return UserSelfFromJSONTyped(json, false);
20
21
  }
@@ -29,7 +30,7 @@ function UserSelfFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'name': json['name'],
30
31
  'isActive': json['is_active'],
31
32
  'isSuperuser': json['is_superuser'],
32
- 'groups': json['groups'],
33
+ 'groups': (json['groups'].map(_1.UserSelfGroupsFromJSON)),
33
34
  'email': !runtime_1.exists(json, 'email') ? undefined : json['email'],
34
35
  'avatar': json['avatar'],
35
36
  'uid': json['uid'],
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2021.9.5
6
+ * Contact: hello@beryju.org
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
+ *
14
+ * @export
15
+ * @interface UserSelfGroups
16
+ */
17
+ export interface UserSelfGroups {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserSelfGroups
22
+ */
23
+ readonly name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserSelfGroups
28
+ */
29
+ readonly pk: string;
30
+ }
31
+ export declare function UserSelfGroupsFromJSON(json: any): UserSelfGroups;
32
+ export declare function UserSelfGroupsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSelfGroups;
33
+ export declare function UserSelfGroupsToJSON(value?: UserSelfGroups | null): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2021.9.5
9
+ * Contact: hello@beryju.org
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.UserSelfGroupsToJSON = exports.UserSelfGroupsFromJSONTyped = exports.UserSelfGroupsFromJSON = void 0;
17
+ function UserSelfGroupsFromJSON(json) {
18
+ return UserSelfGroupsFromJSONTyped(json, false);
19
+ }
20
+ exports.UserSelfGroupsFromJSON = UserSelfGroupsFromJSON;
21
+ function UserSelfGroupsFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'name': json['name'],
27
+ 'pk': json['pk'],
28
+ };
29
+ }
30
+ exports.UserSelfGroupsFromJSONTyped = UserSelfGroupsFromJSONTyped;
31
+ function UserSelfGroupsToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {};
39
+ }
40
+ exports.UserSelfGroupsToJSON = UserSelfGroupsToJSON;
@@ -387,6 +387,7 @@ export * from './UserOAuthSourceConnectionRequest';
387
387
  export * from './UserReputation';
388
388
  export * from './UserRequest';
389
389
  export * from './UserSelf';
390
+ export * from './UserSelfGroups';
390
391
  export * from './UserSelfRequest';
391
392
  export * from './UserServiceAccountRequest';
392
393
  export * from './UserServiceAccountResponse';
@@ -401,6 +401,7 @@ __exportStar(require("./UserOAuthSourceConnectionRequest"), exports);
401
401
  __exportStar(require("./UserReputation"), exports);
402
402
  __exportStar(require("./UserRequest"), exports);
403
403
  __exportStar(require("./UserSelf"), exports);
404
+ __exportStar(require("./UserSelfGroups"), exports);
404
405
  __exportStar(require("./UserSelfRequest"), exports);
405
406
  __exportStar(require("./UserServiceAccountRequest"), exports);
406
407
  __exportStar(require("./UserServiceAccountResponse"), exports);
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@goauthentik/api", "version": "2021.9.5-1633429910", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
1
+ {"name": "@goauthentik/api", "version": "2021.9.5-1633432270", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ UserSelfGroups,
18
+ UserSelfGroupsFromJSON,
19
+ UserSelfGroupsFromJSONTyped,
20
+ UserSelfGroupsToJSON,
21
+ } from './';
22
+
16
23
  /**
17
24
  * User Serializer for information a user can retrieve about themselves and
18
25
  * update about themselves
@@ -52,10 +59,10 @@ export interface UserSelf {
52
59
  readonly isSuperuser: boolean;
53
60
  /**
54
61
  *
55
- * @type {Array<string>}
62
+ * @type {Array<UserSelfGroups>}
56
63
  * @memberof UserSelf
57
64
  */
58
- readonly groups: Array<string>;
65
+ readonly groups: Array<UserSelfGroups>;
59
66
  /**
60
67
  *
61
68
  * @type {string}
@@ -91,7 +98,7 @@ export function UserSelfFromJSONTyped(json: any, ignoreDiscriminator: boolean):
91
98
  'name': json['name'],
92
99
  'isActive': json['is_active'],
93
100
  'isSuperuser': json['is_superuser'],
94
- 'groups': json['groups'],
101
+ 'groups': ((json['groups'] as Array<any>).map(UserSelfGroupsFromJSON)),
95
102
  'email': !exists(json, 'email') ? undefined : json['email'],
96
103
  'avatar': json['avatar'],
97
104
  'uid': json['uid'],
@@ -0,0 +1,62 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2021.9.5
8
+ * Contact: hello@beryju.org
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
+ *
18
+ * @export
19
+ * @interface UserSelfGroups
20
+ */
21
+ export interface UserSelfGroups {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UserSelfGroups
26
+ */
27
+ readonly name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserSelfGroups
32
+ */
33
+ readonly pk: string;
34
+ }
35
+
36
+ export function UserSelfGroupsFromJSON(json: any): UserSelfGroups {
37
+ return UserSelfGroupsFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function UserSelfGroupsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSelfGroups {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'name': json['name'],
47
+ 'pk': json['pk'],
48
+ };
49
+ }
50
+
51
+ export function UserSelfGroupsToJSON(value?: UserSelfGroups | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ };
61
+ }
62
+
@@ -389,6 +389,7 @@ export * from './UserOAuthSourceConnectionRequest';
389
389
  export * from './UserReputation';
390
390
  export * from './UserRequest';
391
391
  export * from './UserSelf';
392
+ export * from './UserSelfGroups';
392
393
  export * from './UserSelfRequest';
393
394
  export * from './UserServiceAccountRequest';
394
395
  export * from './UserServiceAccountResponse';