@goauthentik/api 2022.3.3-1648750781 → 2022.3.3-1649060617

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.
Files changed (36) hide show
  1. package/dist/esm/models/Application.d.ts +7 -1
  2. package/dist/esm/models/Application.js +4 -3
  3. package/dist/esm/models/ApplicationRequest.d.ts +6 -7
  4. package/dist/esm/models/ApplicationRequest.js +2 -3
  5. package/dist/esm/models/PatchedApplicationRequest.d.ts +6 -7
  6. package/dist/esm/models/PatchedApplicationRequest.js +2 -3
  7. package/dist/esm/models/PatchedTokenRequest.d.ts +0 -7
  8. package/dist/esm/models/PatchedTokenRequest.js +0 -3
  9. package/dist/esm/models/PolicyTestResult.d.ts +8 -0
  10. package/dist/esm/models/PolicyTestResult.js +1 -0
  11. package/dist/esm/models/Token.d.ts +1 -1
  12. package/dist/esm/models/Token.js +2 -3
  13. package/dist/esm/models/TokenRequest.d.ts +0 -7
  14. package/dist/esm/models/TokenRequest.js +0 -3
  15. package/dist/models/Application.d.ts +7 -1
  16. package/dist/models/Application.js +3 -2
  17. package/dist/models/ApplicationRequest.d.ts +6 -7
  18. package/dist/models/ApplicationRequest.js +2 -3
  19. package/dist/models/PatchedApplicationRequest.d.ts +6 -7
  20. package/dist/models/PatchedApplicationRequest.js +2 -3
  21. package/dist/models/PatchedTokenRequest.d.ts +0 -7
  22. package/dist/models/PatchedTokenRequest.js +0 -3
  23. package/dist/models/PolicyTestResult.d.ts +8 -0
  24. package/dist/models/PolicyTestResult.js +1 -0
  25. package/dist/models/Token.d.ts +1 -1
  26. package/dist/models/Token.js +1 -2
  27. package/dist/models/TokenRequest.d.ts +0 -7
  28. package/dist/models/TokenRequest.js +0 -3
  29. package/package.json +1 -1
  30. package/src/models/Application.ts +10 -3
  31. package/src/models/ApplicationRequest.ts +8 -14
  32. package/src/models/PatchedApplicationRequest.ts +8 -14
  33. package/src/models/PatchedTokenRequest.ts +0 -14
  34. package/src/models/PolicyTestResult.ts +7 -0
  35. package/src/models/Token.ts +2 -3
  36. package/src/models/TokenRequest.ts +0 -14
@@ -46,7 +46,7 @@ export interface Application {
46
46
  * @type {Provider}
47
47
  * @memberof Application
48
48
  */
49
- providerObj?: Provider;
49
+ readonly providerObj: Provider | null;
50
50
  /**
51
51
  *
52
52
  * @type {string}
@@ -83,6 +83,12 @@ export interface Application {
83
83
  * @memberof Application
84
84
  */
85
85
  policyEngineMode?: PolicyEngineMode;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof Application
90
+ */
91
+ group?: string;
86
92
  }
87
93
  export declare function ApplicationFromJSON(json: any): Application;
88
94
  export declare function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Application;
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
16
- import { ProviderFromJSON, ProviderToJSON, } from './Provider';
16
+ import { ProviderFromJSON, } from './Provider';
17
17
  export function ApplicationFromJSON(json) {
18
18
  return ApplicationFromJSONTyped(json, false);
19
19
  }
@@ -26,13 +26,14 @@ export function ApplicationFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'name': json['name'],
27
27
  'slug': json['slug'],
28
28
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
29
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderFromJSON(json['provider_obj']),
29
+ 'providerObj': ProviderFromJSON(json['provider_obj']),
30
30
  'launchUrl': json['launch_url'],
31
31
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
32
32
  'metaIcon': json['meta_icon'],
33
33
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
34
34
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
+ 'group': !exists(json, 'group') ? undefined : json['group'],
36
37
  };
37
38
  }
38
39
  export function ApplicationToJSON(value) {
@@ -46,10 +47,10 @@ export function ApplicationToJSON(value) {
46
47
  'name': value.name,
47
48
  'slug': value.slug,
48
49
  'provider': value.provider,
49
- 'provider_obj': ProviderToJSON(value.providerObj),
50
50
  'meta_launch_url': value.metaLaunchUrl,
51
51
  'meta_description': value.metaDescription,
52
52
  'meta_publisher': value.metaPublisher,
53
53
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
54
+ 'group': value.group,
54
55
  };
55
56
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { PolicyEngineMode } from './PolicyEngineMode';
13
- import { ProviderRequest } from './ProviderRequest';
14
13
  /**
15
14
  * Application Serializer
16
15
  * @export
@@ -35,12 +34,6 @@ export interface ApplicationRequest {
35
34
  * @memberof ApplicationRequest
36
35
  */
37
36
  provider?: number | null;
38
- /**
39
- *
40
- * @type {ProviderRequest}
41
- * @memberof ApplicationRequest
42
- */
43
- providerObj?: ProviderRequest;
44
37
  /**
45
38
  *
46
39
  * @type {string}
@@ -65,6 +58,12 @@ export interface ApplicationRequest {
65
58
  * @memberof ApplicationRequest
66
59
  */
67
60
  policyEngineMode?: PolicyEngineMode;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ApplicationRequest
65
+ */
66
+ group?: string;
68
67
  }
69
68
  export declare function ApplicationRequestFromJSON(json: any): ApplicationRequest;
70
69
  export declare function ApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationRequest;
@@ -13,7 +13,6 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
16
- import { ProviderRequestFromJSON, ProviderRequestToJSON, } from './ProviderRequest';
17
16
  export function ApplicationRequestFromJSON(json) {
18
17
  return ApplicationRequestFromJSONTyped(json, false);
19
18
  }
@@ -25,11 +24,11 @@ export function ApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
25
24
  'name': json['name'],
26
25
  'slug': json['slug'],
27
26
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
28
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
29
27
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
30
28
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
31
29
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
32
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
+ 'group': !exists(json, 'group') ? undefined : json['group'],
33
32
  };
34
33
  }
35
34
  export function ApplicationRequestToJSON(value) {
@@ -43,10 +42,10 @@ export function ApplicationRequestToJSON(value) {
43
42
  'name': value.name,
44
43
  'slug': value.slug,
45
44
  'provider': value.provider,
46
- 'provider_obj': ProviderRequestToJSON(value.providerObj),
47
45
  'meta_launch_url': value.metaLaunchUrl,
48
46
  'meta_description': value.metaDescription,
49
47
  'meta_publisher': value.metaPublisher,
50
48
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
49
+ 'group': value.group,
51
50
  };
52
51
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { PolicyEngineMode } from './PolicyEngineMode';
13
- import { ProviderRequest } from './ProviderRequest';
14
13
  /**
15
14
  * Application Serializer
16
15
  * @export
@@ -35,12 +34,6 @@ export interface PatchedApplicationRequest {
35
34
  * @memberof PatchedApplicationRequest
36
35
  */
37
36
  provider?: number | null;
38
- /**
39
- *
40
- * @type {ProviderRequest}
41
- * @memberof PatchedApplicationRequest
42
- */
43
- providerObj?: ProviderRequest;
44
37
  /**
45
38
  *
46
39
  * @type {string}
@@ -65,6 +58,12 @@ export interface PatchedApplicationRequest {
65
58
  * @memberof PatchedApplicationRequest
66
59
  */
67
60
  policyEngineMode?: PolicyEngineMode;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PatchedApplicationRequest
65
+ */
66
+ group?: string;
68
67
  }
69
68
  export declare function PatchedApplicationRequestFromJSON(json: any): PatchedApplicationRequest;
70
69
  export declare function PatchedApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedApplicationRequest;
@@ -13,7 +13,6 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
16
- import { ProviderRequestFromJSON, ProviderRequestToJSON, } from './ProviderRequest';
17
16
  export function PatchedApplicationRequestFromJSON(json) {
18
17
  return PatchedApplicationRequestFromJSONTyped(json, false);
19
18
  }
@@ -25,11 +24,11 @@ export function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator
25
24
  'name': !exists(json, 'name') ? undefined : json['name'],
26
25
  'slug': !exists(json, 'slug') ? undefined : json['slug'],
27
26
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
28
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
29
27
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
30
28
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
31
29
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
32
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
+ 'group': !exists(json, 'group') ? undefined : json['group'],
33
32
  };
34
33
  }
35
34
  export function PatchedApplicationRequestToJSON(value) {
@@ -43,10 +42,10 @@ export function PatchedApplicationRequestToJSON(value) {
43
42
  'name': value.name,
44
43
  'slug': value.slug,
45
44
  'provider': value.provider,
46
- 'provider_obj': ProviderRequestToJSON(value.providerObj),
47
45
  'meta_launch_url': value.metaLaunchUrl,
48
46
  'meta_description': value.metaDescription,
49
47
  'meta_publisher': value.metaPublisher,
50
48
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
49
+ 'group': value.group,
51
50
  };
52
51
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { IntentEnum } from './IntentEnum';
13
- import { UserRequest } from './UserRequest';
14
13
  /**
15
14
  * Token Serializer
16
15
  * @export
@@ -41,12 +40,6 @@ export interface PatchedTokenRequest {
41
40
  * @memberof PatchedTokenRequest
42
41
  */
43
42
  user?: number;
44
- /**
45
- *
46
- * @type {UserRequest}
47
- * @memberof PatchedTokenRequest
48
- */
49
- userObj?: UserRequest;
50
43
  /**
51
44
  *
52
45
  * @type {string}
@@ -13,7 +13,6 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
16
- import { UserRequestFromJSON, UserRequestToJSON, } from './UserRequest';
17
16
  export function PatchedTokenRequestFromJSON(json) {
18
17
  return PatchedTokenRequestFromJSONTyped(json, false);
19
18
  }
@@ -26,7 +25,6 @@ export function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
26
25
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
27
26
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
28
27
  'user': !exists(json, 'user') ? undefined : json['user'],
29
- 'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
30
28
  'description': !exists(json, 'description') ? undefined : json['description'],
31
29
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
32
30
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -44,7 +42,6 @@ export function PatchedTokenRequestToJSON(value) {
44
42
  'identifier': value.identifier,
45
43
  'intent': IntentEnumToJSON(value.intent),
46
44
  'user': value.user,
47
- 'user_obj': UserRequestToJSON(value.userObj),
48
45
  'description': value.description,
49
46
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
50
47
  'expiring': value.expiring,
@@ -27,6 +27,14 @@ export interface PolicyTestResult {
27
27
  * @memberof PolicyTestResult
28
28
  */
29
29
  readonly messages: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<{ [key: string]: any; }>}
33
+ * @memberof PolicyTestResult
34
+ */
35
+ readonly logMessages: Array<{
36
+ [key: string]: any;
37
+ }>;
30
38
  }
31
39
  export declare function PolicyTestResultFromJSON(json: any): PolicyTestResult;
32
40
  export declare function PolicyTestResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyTestResult;
@@ -21,6 +21,7 @@ export function PolicyTestResultFromJSONTyped(json, ignoreDiscriminator) {
21
21
  return {
22
22
  'passing': json['passing'],
23
23
  'messages': json['messages'],
24
+ 'logMessages': json['log_messages'],
24
25
  };
25
26
  }
26
27
  export function PolicyTestResultToJSON(value) {
@@ -52,7 +52,7 @@ export interface Token {
52
52
  * @type {User}
53
53
  * @memberof Token
54
54
  */
55
- userObj?: User;
55
+ readonly userObj: User | null;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
16
- import { UserFromJSON, UserToJSON, } from './User';
16
+ import { UserFromJSON, } from './User';
17
17
  export function TokenFromJSON(json) {
18
18
  return TokenFromJSONTyped(json, false);
19
19
  }
@@ -27,7 +27,7 @@ export function TokenFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'identifier': json['identifier'],
28
28
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
29
29
  'user': !exists(json, 'user') ? undefined : json['user'],
30
- 'userObj': !exists(json, 'user_obj') ? undefined : UserFromJSON(json['user_obj']),
30
+ 'userObj': UserFromJSON(json['user_obj']),
31
31
  'description': !exists(json, 'description') ? undefined : json['description'],
32
32
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
33
33
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -45,7 +45,6 @@ export function TokenToJSON(value) {
45
45
  'identifier': value.identifier,
46
46
  'intent': IntentEnumToJSON(value.intent),
47
47
  'user': value.user,
48
- 'user_obj': UserToJSON(value.userObj),
49
48
  'description': value.description,
50
49
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
51
50
  'expiring': value.expiring,
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { IntentEnum } from './IntentEnum';
13
- import { UserRequest } from './UserRequest';
14
13
  /**
15
14
  * Token Serializer
16
15
  * @export
@@ -41,12 +40,6 @@ export interface TokenRequest {
41
40
  * @memberof TokenRequest
42
41
  */
43
42
  user?: number;
44
- /**
45
- *
46
- * @type {UserRequest}
47
- * @memberof TokenRequest
48
- */
49
- userObj?: UserRequest;
50
43
  /**
51
44
  *
52
45
  * @type {string}
@@ -13,7 +13,6 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
16
- import { UserRequestFromJSON, UserRequestToJSON, } from './UserRequest';
17
16
  export function TokenRequestFromJSON(json) {
18
17
  return TokenRequestFromJSONTyped(json, false);
19
18
  }
@@ -26,7 +25,6 @@ export function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {
26
25
  'identifier': json['identifier'],
27
26
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
28
27
  'user': !exists(json, 'user') ? undefined : json['user'],
29
- 'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
30
28
  'description': !exists(json, 'description') ? undefined : json['description'],
31
29
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
32
30
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -44,7 +42,6 @@ export function TokenRequestToJSON(value) {
44
42
  'identifier': value.identifier,
45
43
  'intent': IntentEnumToJSON(value.intent),
46
44
  'user': value.user,
47
- 'user_obj': UserRequestToJSON(value.userObj),
48
45
  'description': value.description,
49
46
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
50
47
  'expiring': value.expiring,
@@ -46,7 +46,7 @@ export interface Application {
46
46
  * @type {Provider}
47
47
  * @memberof Application
48
48
  */
49
- providerObj?: Provider;
49
+ readonly providerObj: Provider | null;
50
50
  /**
51
51
  *
52
52
  * @type {string}
@@ -83,6 +83,12 @@ export interface Application {
83
83
  * @memberof Application
84
84
  */
85
85
  policyEngineMode?: PolicyEngineMode;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof Application
90
+ */
91
+ group?: string;
86
92
  }
87
93
  export declare function ApplicationFromJSON(json: any): Application;
88
94
  export declare function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Application;
@@ -30,13 +30,14 @@ function ApplicationFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'name': json['name'],
31
31
  'slug': json['slug'],
32
32
  'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
33
- 'providerObj': !runtime_1.exists(json, 'provider_obj') ? undefined : Provider_1.ProviderFromJSON(json['provider_obj']),
33
+ 'providerObj': Provider_1.ProviderFromJSON(json['provider_obj']),
34
34
  'launchUrl': json['launch_url'],
35
35
  'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
36
36
  'metaIcon': json['meta_icon'],
37
37
  'metaDescription': !runtime_1.exists(json, 'meta_description') ? undefined : json['meta_description'],
38
38
  'metaPublisher': !runtime_1.exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
39
39
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
40
+ 'group': !runtime_1.exists(json, 'group') ? undefined : json['group'],
40
41
  };
41
42
  }
42
43
  exports.ApplicationFromJSONTyped = ApplicationFromJSONTyped;
@@ -51,11 +52,11 @@ function ApplicationToJSON(value) {
51
52
  'name': value.name,
52
53
  'slug': value.slug,
53
54
  'provider': value.provider,
54
- 'provider_obj': Provider_1.ProviderToJSON(value.providerObj),
55
55
  'meta_launch_url': value.metaLaunchUrl,
56
56
  'meta_description': value.metaDescription,
57
57
  'meta_publisher': value.metaPublisher,
58
58
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
59
+ 'group': value.group,
59
60
  };
60
61
  }
61
62
  exports.ApplicationToJSON = ApplicationToJSON;
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { PolicyEngineMode } from './PolicyEngineMode';
13
- import { ProviderRequest } from './ProviderRequest';
14
13
  /**
15
14
  * Application Serializer
16
15
  * @export
@@ -35,12 +34,6 @@ export interface ApplicationRequest {
35
34
  * @memberof ApplicationRequest
36
35
  */
37
36
  provider?: number | null;
38
- /**
39
- *
40
- * @type {ProviderRequest}
41
- * @memberof ApplicationRequest
42
- */
43
- providerObj?: ProviderRequest;
44
37
  /**
45
38
  *
46
39
  * @type {string}
@@ -65,6 +58,12 @@ export interface ApplicationRequest {
65
58
  * @memberof ApplicationRequest
66
59
  */
67
60
  policyEngineMode?: PolicyEngineMode;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ApplicationRequest
65
+ */
66
+ group?: string;
68
67
  }
69
68
  export declare function ApplicationRequestFromJSON(json: any): ApplicationRequest;
70
69
  export declare function ApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationRequest;
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ApplicationRequestToJSON = exports.ApplicationRequestFromJSONTyped = exports.ApplicationRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
19
- const ProviderRequest_1 = require("./ProviderRequest");
20
19
  function ApplicationRequestFromJSON(json) {
21
20
  return ApplicationRequestFromJSONTyped(json, false);
22
21
  }
@@ -29,11 +28,11 @@ function ApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
29
28
  'name': json['name'],
30
29
  'slug': json['slug'],
31
30
  'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
32
- 'providerObj': !runtime_1.exists(json, 'provider_obj') ? undefined : ProviderRequest_1.ProviderRequestFromJSON(json['provider_obj']),
33
31
  'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
34
32
  'metaDescription': !runtime_1.exists(json, 'meta_description') ? undefined : json['meta_description'],
35
33
  'metaPublisher': !runtime_1.exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
36
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
+ 'group': !runtime_1.exists(json, 'group') ? undefined : json['group'],
37
36
  };
38
37
  }
39
38
  exports.ApplicationRequestFromJSONTyped = ApplicationRequestFromJSONTyped;
@@ -48,11 +47,11 @@ function ApplicationRequestToJSON(value) {
48
47
  'name': value.name,
49
48
  'slug': value.slug,
50
49
  'provider': value.provider,
51
- 'provider_obj': ProviderRequest_1.ProviderRequestToJSON(value.providerObj),
52
50
  'meta_launch_url': value.metaLaunchUrl,
53
51
  'meta_description': value.metaDescription,
54
52
  'meta_publisher': value.metaPublisher,
55
53
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
54
+ 'group': value.group,
56
55
  };
57
56
  }
58
57
  exports.ApplicationRequestToJSON = ApplicationRequestToJSON;
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { PolicyEngineMode } from './PolicyEngineMode';
13
- import { ProviderRequest } from './ProviderRequest';
14
13
  /**
15
14
  * Application Serializer
16
15
  * @export
@@ -35,12 +34,6 @@ export interface PatchedApplicationRequest {
35
34
  * @memberof PatchedApplicationRequest
36
35
  */
37
36
  provider?: number | null;
38
- /**
39
- *
40
- * @type {ProviderRequest}
41
- * @memberof PatchedApplicationRequest
42
- */
43
- providerObj?: ProviderRequest;
44
37
  /**
45
38
  *
46
39
  * @type {string}
@@ -65,6 +58,12 @@ export interface PatchedApplicationRequest {
65
58
  * @memberof PatchedApplicationRequest
66
59
  */
67
60
  policyEngineMode?: PolicyEngineMode;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PatchedApplicationRequest
65
+ */
66
+ group?: string;
68
67
  }
69
68
  export declare function PatchedApplicationRequestFromJSON(json: any): PatchedApplicationRequest;
70
69
  export declare function PatchedApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedApplicationRequest;
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedApplicationRequestToJSON = exports.PatchedApplicationRequestFromJSONTyped = exports.PatchedApplicationRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
19
- const ProviderRequest_1 = require("./ProviderRequest");
20
19
  function PatchedApplicationRequestFromJSON(json) {
21
20
  return PatchedApplicationRequestFromJSONTyped(json, false);
22
21
  }
@@ -29,11 +28,11 @@ function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
29
28
  'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
30
29
  'slug': !runtime_1.exists(json, 'slug') ? undefined : json['slug'],
31
30
  'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
32
- 'providerObj': !runtime_1.exists(json, 'provider_obj') ? undefined : ProviderRequest_1.ProviderRequestFromJSON(json['provider_obj']),
33
31
  'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
34
32
  'metaDescription': !runtime_1.exists(json, 'meta_description') ? undefined : json['meta_description'],
35
33
  'metaPublisher': !runtime_1.exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
36
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
+ 'group': !runtime_1.exists(json, 'group') ? undefined : json['group'],
37
36
  };
38
37
  }
39
38
  exports.PatchedApplicationRequestFromJSONTyped = PatchedApplicationRequestFromJSONTyped;
@@ -48,11 +47,11 @@ function PatchedApplicationRequestToJSON(value) {
48
47
  'name': value.name,
49
48
  'slug': value.slug,
50
49
  'provider': value.provider,
51
- 'provider_obj': ProviderRequest_1.ProviderRequestToJSON(value.providerObj),
52
50
  'meta_launch_url': value.metaLaunchUrl,
53
51
  'meta_description': value.metaDescription,
54
52
  'meta_publisher': value.metaPublisher,
55
53
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
54
+ 'group': value.group,
56
55
  };
57
56
  }
58
57
  exports.PatchedApplicationRequestToJSON = PatchedApplicationRequestToJSON;
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { IntentEnum } from './IntentEnum';
13
- import { UserRequest } from './UserRequest';
14
13
  /**
15
14
  * Token Serializer
16
15
  * @export
@@ -41,12 +40,6 @@ export interface PatchedTokenRequest {
41
40
  * @memberof PatchedTokenRequest
42
41
  */
43
42
  user?: number;
44
- /**
45
- *
46
- * @type {UserRequest}
47
- * @memberof PatchedTokenRequest
48
- */
49
- userObj?: UserRequest;
50
43
  /**
51
44
  *
52
45
  * @type {string}
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedTokenRequestToJSON = exports.PatchedTokenRequestFromJSONTyped = exports.PatchedTokenRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const IntentEnum_1 = require("./IntentEnum");
19
- const UserRequest_1 = require("./UserRequest");
20
19
  function PatchedTokenRequestFromJSON(json) {
21
20
  return PatchedTokenRequestFromJSONTyped(json, false);
22
21
  }
@@ -30,7 +29,6 @@ function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
30
29
  'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
31
30
  'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
32
31
  'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
33
- 'userObj': !runtime_1.exists(json, 'user_obj') ? undefined : UserRequest_1.UserRequestFromJSON(json['user_obj']),
34
32
  'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
35
33
  'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
36
34
  'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
@@ -49,7 +47,6 @@ function PatchedTokenRequestToJSON(value) {
49
47
  'identifier': value.identifier,
50
48
  'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
51
49
  'user': value.user,
52
- 'user_obj': UserRequest_1.UserRequestToJSON(value.userObj),
53
50
  'description': value.description,
54
51
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
55
52
  'expiring': value.expiring,
@@ -27,6 +27,14 @@ export interface PolicyTestResult {
27
27
  * @memberof PolicyTestResult
28
28
  */
29
29
  readonly messages: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<{ [key: string]: any; }>}
33
+ * @memberof PolicyTestResult
34
+ */
35
+ readonly logMessages: Array<{
36
+ [key: string]: any;
37
+ }>;
30
38
  }
31
39
  export declare function PolicyTestResultFromJSON(json: any): PolicyTestResult;
32
40
  export declare function PolicyTestResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyTestResult;
@@ -25,6 +25,7 @@ function PolicyTestResultFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return {
26
26
  'passing': json['passing'],
27
27
  'messages': json['messages'],
28
+ 'logMessages': json['log_messages'],
28
29
  };
29
30
  }
30
31
  exports.PolicyTestResultFromJSONTyped = PolicyTestResultFromJSONTyped;
@@ -52,7 +52,7 @@ export interface Token {
52
52
  * @type {User}
53
53
  * @memberof Token
54
54
  */
55
- userObj?: User;
55
+ readonly userObj: User | null;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -31,7 +31,7 @@ function TokenFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'identifier': json['identifier'],
32
32
  'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
33
33
  'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
34
- 'userObj': !runtime_1.exists(json, 'user_obj') ? undefined : User_1.UserFromJSON(json['user_obj']),
34
+ 'userObj': User_1.UserFromJSON(json['user_obj']),
35
35
  'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
36
36
  'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
37
37
  'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
@@ -50,7 +50,6 @@ function TokenToJSON(value) {
50
50
  'identifier': value.identifier,
51
51
  'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
52
52
  'user': value.user,
53
- 'user_obj': User_1.UserToJSON(value.userObj),
54
53
  'description': value.description,
55
54
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
56
55
  'expiring': value.expiring,
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { IntentEnum } from './IntentEnum';
13
- import { UserRequest } from './UserRequest';
14
13
  /**
15
14
  * Token Serializer
16
15
  * @export
@@ -41,12 +40,6 @@ export interface TokenRequest {
41
40
  * @memberof TokenRequest
42
41
  */
43
42
  user?: number;
44
- /**
45
- *
46
- * @type {UserRequest}
47
- * @memberof TokenRequest
48
- */
49
- userObj?: UserRequest;
50
43
  /**
51
44
  *
52
45
  * @type {string}
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TokenRequestToJSON = exports.TokenRequestFromJSONTyped = exports.TokenRequestFromJSON = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const IntentEnum_1 = require("./IntentEnum");
19
- const UserRequest_1 = require("./UserRequest");
20
19
  function TokenRequestFromJSON(json) {
21
20
  return TokenRequestFromJSONTyped(json, false);
22
21
  }
@@ -30,7 +29,6 @@ function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {
30
29
  'identifier': json['identifier'],
31
30
  'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
32
31
  'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
33
- 'userObj': !runtime_1.exists(json, 'user_obj') ? undefined : UserRequest_1.UserRequestFromJSON(json['user_obj']),
34
32
  'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
35
33
  'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
36
34
  'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
@@ -49,7 +47,6 @@ function TokenRequestToJSON(value) {
49
47
  'identifier': value.identifier,
50
48
  'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
51
49
  'user': value.user,
52
- 'user_obj': UserRequest_1.UserRequestToJSON(value.userObj),
53
50
  'description': value.description,
54
51
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
55
52
  'expiring': value.expiring,
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@goauthentik/api", "version": "2022.3.3-1648750781", "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": "2022.3.3-1649060617", "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}
@@ -61,7 +61,7 @@ export interface Application {
61
61
  * @type {Provider}
62
62
  * @memberof Application
63
63
  */
64
- providerObj?: Provider;
64
+ readonly providerObj: Provider | null;
65
65
  /**
66
66
  *
67
67
  * @type {string}
@@ -98,6 +98,12 @@ export interface Application {
98
98
  * @memberof Application
99
99
  */
100
100
  policyEngineMode?: PolicyEngineMode;
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof Application
105
+ */
106
+ group?: string;
101
107
  }
102
108
 
103
109
  export function ApplicationFromJSON(json: any): Application {
@@ -114,13 +120,14 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
114
120
  'name': json['name'],
115
121
  'slug': json['slug'],
116
122
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
117
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderFromJSON(json['provider_obj']),
123
+ 'providerObj': ProviderFromJSON(json['provider_obj']),
118
124
  'launchUrl': json['launch_url'],
119
125
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
120
126
  'metaIcon': json['meta_icon'],
121
127
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
122
128
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
123
129
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
130
+ 'group': !exists(json, 'group') ? undefined : json['group'],
124
131
  };
125
132
  }
126
133
 
@@ -136,11 +143,11 @@ export function ApplicationToJSON(value?: Application | null): any {
136
143
  'name': value.name,
137
144
  'slug': value.slug,
138
145
  'provider': value.provider,
139
- 'provider_obj': ProviderToJSON(value.providerObj),
140
146
  'meta_launch_url': value.metaLaunchUrl,
141
147
  'meta_description': value.metaDescription,
142
148
  'meta_publisher': value.metaPublisher,
143
149
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
150
+ 'group': value.group,
144
151
  };
145
152
  }
146
153
 
@@ -19,12 +19,6 @@ import {
19
19
  PolicyEngineModeFromJSONTyped,
20
20
  PolicyEngineModeToJSON,
21
21
  } from './PolicyEngineMode';
22
- import {
23
- ProviderRequest,
24
- ProviderRequestFromJSON,
25
- ProviderRequestFromJSONTyped,
26
- ProviderRequestToJSON,
27
- } from './ProviderRequest';
28
22
 
29
23
  /**
30
24
  * Application Serializer
@@ -50,12 +44,6 @@ export interface ApplicationRequest {
50
44
  * @memberof ApplicationRequest
51
45
  */
52
46
  provider?: number | null;
53
- /**
54
- *
55
- * @type {ProviderRequest}
56
- * @memberof ApplicationRequest
57
- */
58
- providerObj?: ProviderRequest;
59
47
  /**
60
48
  *
61
49
  * @type {string}
@@ -80,6 +68,12 @@ export interface ApplicationRequest {
80
68
  * @memberof ApplicationRequest
81
69
  */
82
70
  policyEngineMode?: PolicyEngineMode;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ApplicationRequest
75
+ */
76
+ group?: string;
83
77
  }
84
78
 
85
79
  export function ApplicationRequestFromJSON(json: any): ApplicationRequest {
@@ -95,11 +89,11 @@ export function ApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator:
95
89
  'name': json['name'],
96
90
  'slug': json['slug'],
97
91
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
98
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
99
92
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
100
93
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
101
94
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
102
95
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
96
+ 'group': !exists(json, 'group') ? undefined : json['group'],
103
97
  };
104
98
  }
105
99
 
@@ -115,11 +109,11 @@ export function ApplicationRequestToJSON(value?: ApplicationRequest | null): any
115
109
  'name': value.name,
116
110
  'slug': value.slug,
117
111
  'provider': value.provider,
118
- 'provider_obj': ProviderRequestToJSON(value.providerObj),
119
112
  'meta_launch_url': value.metaLaunchUrl,
120
113
  'meta_description': value.metaDescription,
121
114
  'meta_publisher': value.metaPublisher,
122
115
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
116
+ 'group': value.group,
123
117
  };
124
118
  }
125
119
 
@@ -19,12 +19,6 @@ import {
19
19
  PolicyEngineModeFromJSONTyped,
20
20
  PolicyEngineModeToJSON,
21
21
  } from './PolicyEngineMode';
22
- import {
23
- ProviderRequest,
24
- ProviderRequestFromJSON,
25
- ProviderRequestFromJSONTyped,
26
- ProviderRequestToJSON,
27
- } from './ProviderRequest';
28
22
 
29
23
  /**
30
24
  * Application Serializer
@@ -50,12 +44,6 @@ export interface PatchedApplicationRequest {
50
44
  * @memberof PatchedApplicationRequest
51
45
  */
52
46
  provider?: number | null;
53
- /**
54
- *
55
- * @type {ProviderRequest}
56
- * @memberof PatchedApplicationRequest
57
- */
58
- providerObj?: ProviderRequest;
59
47
  /**
60
48
  *
61
49
  * @type {string}
@@ -80,6 +68,12 @@ export interface PatchedApplicationRequest {
80
68
  * @memberof PatchedApplicationRequest
81
69
  */
82
70
  policyEngineMode?: PolicyEngineMode;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PatchedApplicationRequest
75
+ */
76
+ group?: string;
83
77
  }
84
78
 
85
79
  export function PatchedApplicationRequestFromJSON(json: any): PatchedApplicationRequest {
@@ -95,11 +89,11 @@ export function PatchedApplicationRequestFromJSONTyped(json: any, ignoreDiscrimi
95
89
  'name': !exists(json, 'name') ? undefined : json['name'],
96
90
  'slug': !exists(json, 'slug') ? undefined : json['slug'],
97
91
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
98
- 'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
99
92
  'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
100
93
  'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
101
94
  'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
102
95
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
96
+ 'group': !exists(json, 'group') ? undefined : json['group'],
103
97
  };
104
98
  }
105
99
 
@@ -115,11 +109,11 @@ export function PatchedApplicationRequestToJSON(value?: PatchedApplicationReques
115
109
  'name': value.name,
116
110
  'slug': value.slug,
117
111
  'provider': value.provider,
118
- 'provider_obj': ProviderRequestToJSON(value.providerObj),
119
112
  'meta_launch_url': value.metaLaunchUrl,
120
113
  'meta_description': value.metaDescription,
121
114
  'meta_publisher': value.metaPublisher,
122
115
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
116
+ 'group': value.group,
123
117
  };
124
118
  }
125
119
 
@@ -19,12 +19,6 @@ import {
19
19
  IntentEnumFromJSONTyped,
20
20
  IntentEnumToJSON,
21
21
  } from './IntentEnum';
22
- import {
23
- UserRequest,
24
- UserRequestFromJSON,
25
- UserRequestFromJSONTyped,
26
- UserRequestToJSON,
27
- } from './UserRequest';
28
22
 
29
23
  /**
30
24
  * Token Serializer
@@ -56,12 +50,6 @@ export interface PatchedTokenRequest {
56
50
  * @memberof PatchedTokenRequest
57
51
  */
58
52
  user?: number;
59
- /**
60
- *
61
- * @type {UserRequest}
62
- * @memberof PatchedTokenRequest
63
- */
64
- userObj?: UserRequest;
65
53
  /**
66
54
  *
67
55
  * @type {string}
@@ -96,7 +84,6 @@ export function PatchedTokenRequestFromJSONTyped(json: any, ignoreDiscriminator:
96
84
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
97
85
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
98
86
  'user': !exists(json, 'user') ? undefined : json['user'],
99
- 'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
100
87
  'description': !exists(json, 'description') ? undefined : json['description'],
101
88
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
102
89
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -116,7 +103,6 @@ export function PatchedTokenRequestToJSON(value?: PatchedTokenRequest | null): a
116
103
  'identifier': value.identifier,
117
104
  'intent': IntentEnumToJSON(value.intent),
118
105
  'user': value.user,
119
- 'user_obj': UserRequestToJSON(value.userObj),
120
106
  'description': value.description,
121
107
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
122
108
  'expiring': value.expiring,
@@ -31,6 +31,12 @@ export interface PolicyTestResult {
31
31
  * @memberof PolicyTestResult
32
32
  */
33
33
  readonly messages: Array<string>;
34
+ /**
35
+ *
36
+ * @type {Array<{ [key: string]: any; }>}
37
+ * @memberof PolicyTestResult
38
+ */
39
+ readonly logMessages: Array<{ [key: string]: any; }>;
34
40
  }
35
41
 
36
42
  export function PolicyTestResultFromJSON(json: any): PolicyTestResult {
@@ -45,6 +51,7 @@ export function PolicyTestResultFromJSONTyped(json: any, ignoreDiscriminator: bo
45
51
 
46
52
  'passing': json['passing'],
47
53
  'messages': json['messages'],
54
+ 'logMessages': json['log_messages'],
48
55
  };
49
56
  }
50
57
 
@@ -67,7 +67,7 @@ export interface Token {
67
67
  * @type {User}
68
68
  * @memberof Token
69
69
  */
70
- userObj?: User;
70
+ readonly userObj: User | null;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -103,7 +103,7 @@ export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tok
103
103
  'identifier': json['identifier'],
104
104
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
105
105
  'user': !exists(json, 'user') ? undefined : json['user'],
106
- 'userObj': !exists(json, 'user_obj') ? undefined : UserFromJSON(json['user_obj']),
106
+ 'userObj': UserFromJSON(json['user_obj']),
107
107
  'description': !exists(json, 'description') ? undefined : json['description'],
108
108
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
109
109
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -123,7 +123,6 @@ export function TokenToJSON(value?: Token | null): any {
123
123
  'identifier': value.identifier,
124
124
  'intent': IntentEnumToJSON(value.intent),
125
125
  'user': value.user,
126
- 'user_obj': UserToJSON(value.userObj),
127
126
  'description': value.description,
128
127
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
129
128
  'expiring': value.expiring,
@@ -19,12 +19,6 @@ import {
19
19
  IntentEnumFromJSONTyped,
20
20
  IntentEnumToJSON,
21
21
  } from './IntentEnum';
22
- import {
23
- UserRequest,
24
- UserRequestFromJSON,
25
- UserRequestFromJSONTyped,
26
- UserRequestToJSON,
27
- } from './UserRequest';
28
22
 
29
23
  /**
30
24
  * Token Serializer
@@ -56,12 +50,6 @@ export interface TokenRequest {
56
50
  * @memberof TokenRequest
57
51
  */
58
52
  user?: number;
59
- /**
60
- *
61
- * @type {UserRequest}
62
- * @memberof TokenRequest
63
- */
64
- userObj?: UserRequest;
65
53
  /**
66
54
  *
67
55
  * @type {string}
@@ -96,7 +84,6 @@ export function TokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
96
84
  'identifier': json['identifier'],
97
85
  'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
98
86
  'user': !exists(json, 'user') ? undefined : json['user'],
99
- 'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
100
87
  'description': !exists(json, 'description') ? undefined : json['description'],
101
88
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
102
89
  'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
@@ -116,7 +103,6 @@ export function TokenRequestToJSON(value?: TokenRequest | null): any {
116
103
  'identifier': value.identifier,
117
104
  'intent': IntentEnumToJSON(value.intent),
118
105
  'user': value.user,
119
- 'user_obj': UserRequestToJSON(value.userObj),
120
106
  'description': value.description,
121
107
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
122
108
  'expiring': value.expiring,