@goauthentik/api 2024.2.3-1713359855 → 2024.2.3-1713441634

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.
@@ -554,6 +554,7 @@ src/models/UserDeleteStage.ts
554
554
  src/models/UserDeleteStageRequest.ts
555
555
  src/models/UserFieldsEnum.ts
556
556
  src/models/UserGroup.ts
557
+ src/models/UserGroupRequest.ts
557
558
  src/models/UserLoginChallenge.ts
558
559
  src/models/UserLoginChallengeResponseRequest.ts
559
560
  src/models/UserLoginStage.ts
@@ -0,0 +1,51 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.3
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;
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.3
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
+ }
@@ -40,6 +40,12 @@ export interface WebAuthnDevice {
40
40
  * @memberof WebAuthnDevice
41
41
  */
42
42
  readonly deviceType: WebAuthnDeviceType | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WebAuthnDevice
47
+ */
48
+ readonly aaguid: string;
43
49
  }
44
50
  /**
45
51
  * Check if a given object implements the WebAuthnDevice interface.
@@ -21,6 +21,7 @@ export function instanceOfWebAuthnDevice(value) {
21
21
  isInstance = isInstance && "name" in value;
22
22
  isInstance = isInstance && "createdOn" in value;
23
23
  isInstance = isInstance && "deviceType" in value;
24
+ isInstance = isInstance && "aaguid" in value;
24
25
  return isInstance;
25
26
  }
26
27
  export function WebAuthnDeviceFromJSON(json) {
@@ -35,6 +36,7 @@ export function WebAuthnDeviceFromJSONTyped(json, ignoreDiscriminator) {
35
36
  'name': json['name'],
36
37
  'createdOn': (new Date(json['created_on'])),
37
38
  'deviceType': WebAuthnDeviceTypeFromJSON(json['device_type']),
39
+ 'aaguid': json['aaguid'],
38
40
  };
39
41
  }
40
42
  export function WebAuthnDeviceToJSON(value) {
@@ -527,6 +527,7 @@ export * from './UserDeleteStage';
527
527
  export * from './UserDeleteStageRequest';
528
528
  export * from './UserFieldsEnum';
529
529
  export * from './UserGroup';
530
+ export * from './UserGroupRequest';
530
531
  export * from './UserLoginChallenge';
531
532
  export * from './UserLoginChallengeResponseRequest';
532
533
  export * from './UserLoginStage';
@@ -529,6 +529,7 @@ export * from './UserDeleteStage';
529
529
  export * from './UserDeleteStageRequest';
530
530
  export * from './UserFieldsEnum';
531
531
  export * from './UserGroup';
532
+ export * from './UserGroupRequest';
532
533
  export * from './UserLoginChallenge';
533
534
  export * from './UserLoginChallengeResponseRequest';
534
535
  export * from './UserLoginStage';
@@ -0,0 +1,51 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.3
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;
@@ -0,0 +1,57 @@
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.3
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;
@@ -40,6 +40,12 @@ export interface WebAuthnDevice {
40
40
  * @memberof WebAuthnDevice
41
41
  */
42
42
  readonly deviceType: WebAuthnDeviceType | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WebAuthnDevice
47
+ */
48
+ readonly aaguid: string;
43
49
  }
44
50
  /**
45
51
  * Check if a given object implements the WebAuthnDevice interface.
@@ -24,6 +24,7 @@ function instanceOfWebAuthnDevice(value) {
24
24
  isInstance = isInstance && "name" in value;
25
25
  isInstance = isInstance && "createdOn" in value;
26
26
  isInstance = isInstance && "deviceType" in value;
27
+ isInstance = isInstance && "aaguid" in value;
27
28
  return isInstance;
28
29
  }
29
30
  exports.instanceOfWebAuthnDevice = instanceOfWebAuthnDevice;
@@ -40,6 +41,7 @@ function WebAuthnDeviceFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'name': json['name'],
41
42
  'createdOn': (new Date(json['created_on'])),
42
43
  'deviceType': (0, WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)(json['device_type']),
44
+ 'aaguid': json['aaguid'],
43
45
  };
44
46
  }
45
47
  exports.WebAuthnDeviceFromJSONTyped = WebAuthnDeviceFromJSONTyped;
@@ -527,6 +527,7 @@ export * from './UserDeleteStage';
527
527
  export * from './UserDeleteStageRequest';
528
528
  export * from './UserFieldsEnum';
529
529
  export * from './UserGroup';
530
+ export * from './UserGroupRequest';
530
531
  export * from './UserLoginChallenge';
531
532
  export * from './UserLoginChallengeResponseRequest';
532
533
  export * from './UserLoginStage';
@@ -545,6 +545,7 @@ __exportStar(require("./UserDeleteStage"), exports);
545
545
  __exportStar(require("./UserDeleteStageRequest"), exports);
546
546
  __exportStar(require("./UserFieldsEnum"), exports);
547
547
  __exportStar(require("./UserGroup"), exports);
548
+ __exportStar(require("./UserGroupRequest"), exports);
548
549
  __exportStar(require("./UserLoginChallenge"), exports);
549
550
  __exportStar(require("./UserLoginChallengeResponseRequest"), exports);
550
551
  __exportStar(require("./UserLoginStage"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.3-1713359855",
3
+ "version": "2024.2.3-1713441634",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.3
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
+
@@ -50,6 +50,12 @@ export interface WebAuthnDevice {
50
50
  * @memberof WebAuthnDevice
51
51
  */
52
52
  readonly deviceType: WebAuthnDeviceType | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof WebAuthnDevice
57
+ */
58
+ readonly aaguid: string;
53
59
  }
54
60
 
55
61
  /**
@@ -61,6 +67,7 @@ export function instanceOfWebAuthnDevice(value: object): boolean {
61
67
  isInstance = isInstance && "name" in value;
62
68
  isInstance = isInstance && "createdOn" in value;
63
69
  isInstance = isInstance && "deviceType" in value;
70
+ isInstance = isInstance && "aaguid" in value;
64
71
 
65
72
  return isInstance;
66
73
  }
@@ -79,6 +86,7 @@ export function WebAuthnDeviceFromJSONTyped(json: any, ignoreDiscriminator: bool
79
86
  'name': json['name'],
80
87
  'createdOn': (new Date(json['created_on'])),
81
88
  'deviceType': WebAuthnDeviceTypeFromJSON(json['device_type']),
89
+ 'aaguid': json['aaguid'],
82
90
  };
83
91
  }
84
92
 
@@ -529,6 +529,7 @@ export * from './UserDeleteStage';
529
529
  export * from './UserDeleteStageRequest';
530
530
  export * from './UserFieldsEnum';
531
531
  export * from './UserGroup';
532
+ export * from './UserGroupRequest';
532
533
  export * from './UserLoginChallenge';
533
534
  export * from './UserLoginChallengeResponseRequest';
534
535
  export * from './UserLoginStage';