@goauthentik/api 2024.2.2-1710521362 → 2024.2.2-1711367699

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ export interface ConnectionToken {
23
23
  * @type {string}
24
24
  * @memberof ConnectionToken
25
25
  */
26
- readonly pk: string;
26
+ pk?: string;
27
27
  /**
28
28
  *
29
29
  * @type {number}
@@ -41,7 +41,7 @@ export interface ConnectionToken {
41
41
  * @type {string}
42
42
  * @memberof ConnectionToken
43
43
  */
44
- readonly endpoint: string;
44
+ endpoint: string;
45
45
  /**
46
46
  *
47
47
  * @type {Endpoint}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  import { EndpointFromJSON, } from './Endpoint';
15
16
  import { GroupMemberFromJSON, } from './GroupMember';
16
17
  import { RACProviderFromJSON, } from './RACProvider';
@@ -19,7 +20,6 @@ import { RACProviderFromJSON, } from './RACProvider';
19
20
  */
20
21
  export function instanceOfConnectionToken(value) {
21
22
  let isInstance = true;
22
- isInstance = isInstance && "pk" in value;
23
23
  isInstance = isInstance && "provider" in value;
24
24
  isInstance = isInstance && "providerObj" in value;
25
25
  isInstance = isInstance && "endpoint" in value;
@@ -35,7 +35,7 @@ export function ConnectionTokenFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'pk': json['pk'],
38
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
39
39
  'provider': json['provider'],
40
40
  'providerObj': RACProviderFromJSON(json['provider_obj']),
41
41
  'endpoint': json['endpoint'],
@@ -51,6 +51,8 @@ export function ConnectionTokenToJSON(value) {
51
51
  return null;
52
52
  }
53
53
  return {
54
+ 'pk': value.pk,
54
55
  'provider': value.provider,
56
+ 'endpoint': value.endpoint,
55
57
  };
56
58
  }
@@ -15,12 +15,24 @@
15
15
  * @interface ConnectionTokenRequest
16
16
  */
17
17
  export interface ConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConnectionTokenRequest
22
+ */
23
+ pk?: string;
18
24
  /**
19
25
  *
20
26
  * @type {number}
21
27
  * @memberof ConnectionTokenRequest
22
28
  */
23
29
  provider: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConnectionTokenRequest
34
+ */
35
+ endpoint: string;
24
36
  }
25
37
  /**
26
38
  * Check if a given object implements the ConnectionTokenRequest interface.
@@ -11,12 +11,14 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  /**
15
16
  * Check if a given object implements the ConnectionTokenRequest interface.
16
17
  */
17
18
  export function instanceOfConnectionTokenRequest(value) {
18
19
  let isInstance = true;
19
20
  isInstance = isInstance && "provider" in value;
21
+ isInstance = isInstance && "endpoint" in value;
20
22
  return isInstance;
21
23
  }
22
24
  export function ConnectionTokenRequestFromJSON(json) {
@@ -27,7 +29,9 @@ export function ConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
27
29
  return json;
28
30
  }
29
31
  return {
32
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
30
33
  'provider': json['provider'],
34
+ 'endpoint': json['endpoint'],
31
35
  };
32
36
  }
33
37
  export function ConnectionTokenRequestToJSON(value) {
@@ -38,6 +42,8 @@ export function ConnectionTokenRequestToJSON(value) {
38
42
  return null;
39
43
  }
40
44
  return {
45
+ 'pk': value.pk,
41
46
  'provider': value.provider,
47
+ 'endpoint': value.endpoint,
42
48
  };
43
49
  }
@@ -12,6 +12,7 @@
12
12
  import type { ChallengeChoices } from './ChallengeChoices';
13
13
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
14
  import type { ErrorDetail } from './ErrorDetail';
15
+ import type { FlowDesignationEnum } from './FlowDesignationEnum';
15
16
  import type { LoginSource } from './LoginSource';
16
17
  /**
17
18
  * Identification challenges with all UI elements
@@ -63,6 +64,12 @@ export interface IdentificationChallenge {
63
64
  * @memberof IdentificationChallenge
64
65
  */
65
66
  applicationPre?: string;
67
+ /**
68
+ *
69
+ * @type {FlowDesignationEnum}
70
+ * @memberof IdentificationChallenge
71
+ */
72
+ flowDesignation: FlowDesignationEnum;
66
73
  /**
67
74
  *
68
75
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
16
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
+ import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
17
18
  import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
18
19
  /**
19
20
  * Check if a given object implements the IdentificationChallenge interface.
@@ -23,6 +24,7 @@ export function instanceOfIdentificationChallenge(value) {
23
24
  isInstance = isInstance && "type" in value;
24
25
  isInstance = isInstance && "userFields" in value;
25
26
  isInstance = isInstance && "passwordFields" in value;
27
+ isInstance = isInstance && "flowDesignation" in value;
26
28
  isInstance = isInstance && "primaryAction" in value;
27
29
  isInstance = isInstance && "showSourceLabels" in value;
28
30
  return isInstance;
@@ -42,6 +44,7 @@ export function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator)
42
44
  'userFields': json['user_fields'],
43
45
  'passwordFields': json['password_fields'],
44
46
  'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
47
+ 'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
45
48
  'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
46
49
  'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
47
50
  'passwordlessUrl': !exists(json, 'passwordless_url') ? undefined : json['passwordless_url'],
@@ -65,6 +68,7 @@ export function IdentificationChallengeToJSON(value) {
65
68
  'user_fields': value.userFields,
66
69
  'password_fields': value.passwordFields,
67
70
  'application_pre': value.applicationPre,
71
+ 'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
68
72
  'enroll_url': value.enrollUrl,
69
73
  'recovery_url': value.recoveryUrl,
70
74
  'passwordless_url': value.passwordlessUrl,
@@ -15,12 +15,24 @@
15
15
  * @interface PatchedConnectionTokenRequest
16
16
  */
17
17
  export interface PatchedConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchedConnectionTokenRequest
22
+ */
23
+ pk?: string;
18
24
  /**
19
25
  *
20
26
  * @type {number}
21
27
  * @memberof PatchedConnectionTokenRequest
22
28
  */
23
29
  provider?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedConnectionTokenRequest
34
+ */
35
+ endpoint?: string;
24
36
  }
25
37
  /**
26
38
  * Check if a given object implements the PatchedConnectionTokenRequest interface.
@@ -27,7 +27,9 @@ export function PatchedConnectionTokenRequestFromJSONTyped(json, ignoreDiscrimin
27
27
  return json;
28
28
  }
29
29
  return {
30
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
30
31
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
32
+ 'endpoint': !exists(json, 'endpoint') ? undefined : json['endpoint'],
31
33
  };
32
34
  }
33
35
  export function PatchedConnectionTokenRequestToJSON(value) {
@@ -38,6 +40,8 @@ export function PatchedConnectionTokenRequestToJSON(value) {
38
40
  return null;
39
41
  }
40
42
  return {
43
+ 'pk': value.pk,
41
44
  'provider': value.provider,
45
+ 'endpoint': value.endpoint,
42
46
  };
43
47
  }
@@ -28,11 +28,11 @@ export interface Version {
28
28
  */
29
29
  readonly versionLatest: string;
30
30
  /**
31
- * Latest version query is a valid non-default value
32
- * @type {boolean}
31
+ * Check if latest version is valid
32
+ * @type {string}
33
33
  * @memberof Version
34
34
  */
35
- readonly versionLatestValid: boolean;
35
+ readonly versionLatestValid: string;
36
36
  /**
37
37
  * Get build hash, if version is not latest or released
38
38
  * @type {string}
@@ -23,7 +23,7 @@ export interface ConnectionToken {
23
23
  * @type {string}
24
24
  * @memberof ConnectionToken
25
25
  */
26
- readonly pk: string;
26
+ pk?: string;
27
27
  /**
28
28
  *
29
29
  * @type {number}
@@ -41,7 +41,7 @@ export interface ConnectionToken {
41
41
  * @type {string}
42
42
  * @memberof ConnectionToken
43
43
  */
44
- readonly endpoint: string;
44
+ endpoint: string;
45
45
  /**
46
46
  *
47
47
  * @type {Endpoint}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConnectionTokenToJSON = exports.ConnectionTokenFromJSONTyped = exports.ConnectionTokenFromJSON = exports.instanceOfConnectionToken = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const Endpoint_1 = require("./Endpoint");
18
19
  const GroupMember_1 = require("./GroupMember");
19
20
  const RACProvider_1 = require("./RACProvider");
@@ -22,7 +23,6 @@ const RACProvider_1 = require("./RACProvider");
22
23
  */
23
24
  function instanceOfConnectionToken(value) {
24
25
  let isInstance = true;
25
- isInstance = isInstance && "pk" in value;
26
26
  isInstance = isInstance && "provider" in value;
27
27
  isInstance = isInstance && "providerObj" in value;
28
28
  isInstance = isInstance && "endpoint" in value;
@@ -40,7 +40,7 @@ function ConnectionTokenFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'pk': json['pk'],
43
+ 'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
44
44
  'provider': json['provider'],
45
45
  'providerObj': (0, RACProvider_1.RACProviderFromJSON)(json['provider_obj']),
46
46
  'endpoint': json['endpoint'],
@@ -57,7 +57,9 @@ function ConnectionTokenToJSON(value) {
57
57
  return null;
58
58
  }
59
59
  return {
60
+ 'pk': value.pk,
60
61
  'provider': value.provider,
62
+ 'endpoint': value.endpoint,
61
63
  };
62
64
  }
63
65
  exports.ConnectionTokenToJSON = ConnectionTokenToJSON;
@@ -15,12 +15,24 @@
15
15
  * @interface ConnectionTokenRequest
16
16
  */
17
17
  export interface ConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConnectionTokenRequest
22
+ */
23
+ pk?: string;
18
24
  /**
19
25
  *
20
26
  * @type {number}
21
27
  * @memberof ConnectionTokenRequest
22
28
  */
23
29
  provider: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConnectionTokenRequest
34
+ */
35
+ endpoint: string;
24
36
  }
25
37
  /**
26
38
  * Check if a given object implements the ConnectionTokenRequest interface.
@@ -14,12 +14,14 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConnectionTokenRequestToJSON = exports.ConnectionTokenRequestFromJSONTyped = exports.ConnectionTokenRequestFromJSON = exports.instanceOfConnectionTokenRequest = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the ConnectionTokenRequest interface.
19
20
  */
20
21
  function instanceOfConnectionTokenRequest(value) {
21
22
  let isInstance = true;
22
23
  isInstance = isInstance && "provider" in value;
24
+ isInstance = isInstance && "endpoint" in value;
23
25
  return isInstance;
24
26
  }
25
27
  exports.instanceOfConnectionTokenRequest = instanceOfConnectionTokenRequest;
@@ -32,7 +34,9 @@ function ConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
32
34
  return json;
33
35
  }
34
36
  return {
37
+ 'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
35
38
  'provider': json['provider'],
39
+ 'endpoint': json['endpoint'],
36
40
  };
37
41
  }
38
42
  exports.ConnectionTokenRequestFromJSONTyped = ConnectionTokenRequestFromJSONTyped;
@@ -44,7 +48,9 @@ function ConnectionTokenRequestToJSON(value) {
44
48
  return null;
45
49
  }
46
50
  return {
51
+ 'pk': value.pk,
47
52
  'provider': value.provider,
53
+ 'endpoint': value.endpoint,
48
54
  };
49
55
  }
50
56
  exports.ConnectionTokenRequestToJSON = ConnectionTokenRequestToJSON;
@@ -12,6 +12,7 @@
12
12
  import type { ChallengeChoices } from './ChallengeChoices';
13
13
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
14
  import type { ErrorDetail } from './ErrorDetail';
15
+ import type { FlowDesignationEnum } from './FlowDesignationEnum';
15
16
  import type { LoginSource } from './LoginSource';
16
17
  /**
17
18
  * Identification challenges with all UI elements
@@ -63,6 +64,12 @@ export interface IdentificationChallenge {
63
64
  * @memberof IdentificationChallenge
64
65
  */
65
66
  applicationPre?: string;
67
+ /**
68
+ *
69
+ * @type {FlowDesignationEnum}
70
+ * @memberof IdentificationChallenge
71
+ */
72
+ flowDesignation: FlowDesignationEnum;
66
73
  /**
67
74
  *
68
75
  * @type {string}
@@ -17,6 +17,7 @@ exports.IdentificationChallengeToJSON = exports.IdentificationChallengeFromJSONT
17
17
  const runtime_1 = require("../runtime");
18
18
  const ChallengeChoices_1 = require("./ChallengeChoices");
19
19
  const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
20
+ const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
20
21
  const LoginSource_1 = require("./LoginSource");
21
22
  /**
22
23
  * Check if a given object implements the IdentificationChallenge interface.
@@ -26,6 +27,7 @@ function instanceOfIdentificationChallenge(value) {
26
27
  isInstance = isInstance && "type" in value;
27
28
  isInstance = isInstance && "userFields" in value;
28
29
  isInstance = isInstance && "passwordFields" in value;
30
+ isInstance = isInstance && "flowDesignation" in value;
29
31
  isInstance = isInstance && "primaryAction" in value;
30
32
  isInstance = isInstance && "showSourceLabels" in value;
31
33
  return isInstance;
@@ -47,6 +49,7 @@ function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'userFields': json['user_fields'],
48
50
  'passwordFields': json['password_fields'],
49
51
  'applicationPre': !(0, runtime_1.exists)(json, 'application_pre') ? undefined : json['application_pre'],
52
+ 'flowDesignation': (0, FlowDesignationEnum_1.FlowDesignationEnumFromJSON)(json['flow_designation']),
50
53
  'enrollUrl': !(0, runtime_1.exists)(json, 'enroll_url') ? undefined : json['enroll_url'],
51
54
  'recoveryUrl': !(0, runtime_1.exists)(json, 'recovery_url') ? undefined : json['recovery_url'],
52
55
  'passwordlessUrl': !(0, runtime_1.exists)(json, 'passwordless_url') ? undefined : json['passwordless_url'],
@@ -71,6 +74,7 @@ function IdentificationChallengeToJSON(value) {
71
74
  'user_fields': value.userFields,
72
75
  'password_fields': value.passwordFields,
73
76
  'application_pre': value.applicationPre,
77
+ 'flow_designation': (0, FlowDesignationEnum_1.FlowDesignationEnumToJSON)(value.flowDesignation),
74
78
  'enroll_url': value.enrollUrl,
75
79
  'recovery_url': value.recoveryUrl,
76
80
  'passwordless_url': value.passwordlessUrl,
@@ -15,12 +15,24 @@
15
15
  * @interface PatchedConnectionTokenRequest
16
16
  */
17
17
  export interface PatchedConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchedConnectionTokenRequest
22
+ */
23
+ pk?: string;
18
24
  /**
19
25
  *
20
26
  * @type {number}
21
27
  * @memberof PatchedConnectionTokenRequest
22
28
  */
23
29
  provider?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedConnectionTokenRequest
34
+ */
35
+ endpoint?: string;
24
36
  }
25
37
  /**
26
38
  * Check if a given object implements the PatchedConnectionTokenRequest interface.
@@ -32,7 +32,9 @@ function PatchedConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'pk': !(0, runtime_1.exists)(json, 'pk') ? undefined : json['pk'],
35
36
  'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : json['provider'],
37
+ 'endpoint': !(0, runtime_1.exists)(json, 'endpoint') ? undefined : json['endpoint'],
36
38
  };
37
39
  }
38
40
  exports.PatchedConnectionTokenRequestFromJSONTyped = PatchedConnectionTokenRequestFromJSONTyped;
@@ -44,7 +46,9 @@ function PatchedConnectionTokenRequestToJSON(value) {
44
46
  return null;
45
47
  }
46
48
  return {
49
+ 'pk': value.pk,
47
50
  'provider': value.provider,
51
+ 'endpoint': value.endpoint,
48
52
  };
49
53
  }
50
54
  exports.PatchedConnectionTokenRequestToJSON = PatchedConnectionTokenRequestToJSON;
@@ -28,11 +28,11 @@ export interface Version {
28
28
  */
29
29
  readonly versionLatest: string;
30
30
  /**
31
- * Latest version query is a valid non-default value
32
- * @type {boolean}
31
+ * Check if latest version is valid
32
+ * @type {string}
33
33
  * @memberof Version
34
34
  */
35
- readonly versionLatestValid: boolean;
35
+ readonly versionLatestValid: string;
36
36
  /**
37
37
  * Get build hash, if version is not latest or released
38
38
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1710521362",
3
+ "version": "2024.2.2-1711367699",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -43,7 +43,7 @@ export interface ConnectionToken {
43
43
  * @type {string}
44
44
  * @memberof ConnectionToken
45
45
  */
46
- readonly pk: string;
46
+ pk?: string;
47
47
  /**
48
48
  *
49
49
  * @type {number}
@@ -61,7 +61,7 @@ export interface ConnectionToken {
61
61
  * @type {string}
62
62
  * @memberof ConnectionToken
63
63
  */
64
- readonly endpoint: string;
64
+ endpoint: string;
65
65
  /**
66
66
  *
67
67
  * @type {Endpoint}
@@ -81,7 +81,6 @@ export interface ConnectionToken {
81
81
  */
82
82
  export function instanceOfConnectionToken(value: object): boolean {
83
83
  let isInstance = true;
84
- isInstance = isInstance && "pk" in value;
85
84
  isInstance = isInstance && "provider" in value;
86
85
  isInstance = isInstance && "providerObj" in value;
87
86
  isInstance = isInstance && "endpoint" in value;
@@ -101,7 +100,7 @@ export function ConnectionTokenFromJSONTyped(json: any, ignoreDiscriminator: boo
101
100
  }
102
101
  return {
103
102
 
104
- 'pk': json['pk'],
103
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
105
104
  'provider': json['provider'],
106
105
  'providerObj': RACProviderFromJSON(json['provider_obj']),
107
106
  'endpoint': json['endpoint'],
@@ -119,7 +118,9 @@ export function ConnectionTokenToJSON(value?: ConnectionToken | null): any {
119
118
  }
120
119
  return {
121
120
 
121
+ 'pk': value.pk,
122
122
  'provider': value.provider,
123
+ 'endpoint': value.endpoint,
123
124
  };
124
125
  }
125
126
 
@@ -19,12 +19,24 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface ConnectionTokenRequest
20
20
  */
21
21
  export interface ConnectionTokenRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConnectionTokenRequest
26
+ */
27
+ pk?: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
25
31
  * @memberof ConnectionTokenRequest
26
32
  */
27
33
  provider: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ConnectionTokenRequest
38
+ */
39
+ endpoint: string;
28
40
  }
29
41
 
30
42
  /**
@@ -33,6 +45,7 @@ export interface ConnectionTokenRequest {
33
45
  export function instanceOfConnectionTokenRequest(value: object): boolean {
34
46
  let isInstance = true;
35
47
  isInstance = isInstance && "provider" in value;
48
+ isInstance = isInstance && "endpoint" in value;
36
49
 
37
50
  return isInstance;
38
51
  }
@@ -47,7 +60,9 @@ export function ConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminat
47
60
  }
48
61
  return {
49
62
 
63
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
50
64
  'provider': json['provider'],
65
+ 'endpoint': json['endpoint'],
51
66
  };
52
67
  }
53
68
 
@@ -60,7 +75,9 @@ export function ConnectionTokenRequestToJSON(value?: ConnectionTokenRequest | nu
60
75
  }
61
76
  return {
62
77
 
78
+ 'pk': value.pk,
63
79
  'provider': value.provider,
80
+ 'endpoint': value.endpoint,
64
81
  };
65
82
  }
66
83
 
@@ -31,6 +31,12 @@ import {
31
31
  ErrorDetailFromJSONTyped,
32
32
  ErrorDetailToJSON,
33
33
  } from './ErrorDetail';
34
+ import type { FlowDesignationEnum } from './FlowDesignationEnum';
35
+ import {
36
+ FlowDesignationEnumFromJSON,
37
+ FlowDesignationEnumFromJSONTyped,
38
+ FlowDesignationEnumToJSON,
39
+ } from './FlowDesignationEnum';
34
40
  import type { LoginSource } from './LoginSource';
35
41
  import {
36
42
  LoginSourceFromJSON,
@@ -86,6 +92,12 @@ export interface IdentificationChallenge {
86
92
  * @memberof IdentificationChallenge
87
93
  */
88
94
  applicationPre?: string;
95
+ /**
96
+ *
97
+ * @type {FlowDesignationEnum}
98
+ * @memberof IdentificationChallenge
99
+ */
100
+ flowDesignation: FlowDesignationEnum;
89
101
  /**
90
102
  *
91
103
  * @type {string}
@@ -132,6 +144,7 @@ export function instanceOfIdentificationChallenge(value: object): boolean {
132
144
  isInstance = isInstance && "type" in value;
133
145
  isInstance = isInstance && "userFields" in value;
134
146
  isInstance = isInstance && "passwordFields" in value;
147
+ isInstance = isInstance && "flowDesignation" in value;
135
148
  isInstance = isInstance && "primaryAction" in value;
136
149
  isInstance = isInstance && "showSourceLabels" in value;
137
150
 
@@ -155,6 +168,7 @@ export function IdentificationChallengeFromJSONTyped(json: any, ignoreDiscrimina
155
168
  'userFields': json['user_fields'],
156
169
  'passwordFields': json['password_fields'],
157
170
  'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
171
+ 'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
158
172
  'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
159
173
  'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
160
174
  'passwordlessUrl': !exists(json, 'passwordless_url') ? undefined : json['passwordless_url'],
@@ -180,6 +194,7 @@ export function IdentificationChallengeToJSON(value?: IdentificationChallenge |
180
194
  'user_fields': value.userFields,
181
195
  'password_fields': value.passwordFields,
182
196
  'application_pre': value.applicationPre,
197
+ 'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
183
198
  'enroll_url': value.enrollUrl,
184
199
  'recovery_url': value.recoveryUrl,
185
200
  'passwordless_url': value.passwordlessUrl,
@@ -19,12 +19,24 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PatchedConnectionTokenRequest
20
20
  */
21
21
  export interface PatchedConnectionTokenRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedConnectionTokenRequest
26
+ */
27
+ pk?: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
25
31
  * @memberof PatchedConnectionTokenRequest
26
32
  */
27
33
  provider?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedConnectionTokenRequest
38
+ */
39
+ endpoint?: string;
28
40
  }
29
41
 
30
42
  /**
@@ -46,7 +58,9 @@ export function PatchedConnectionTokenRequestFromJSONTyped(json: any, ignoreDisc
46
58
  }
47
59
  return {
48
60
 
61
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
49
62
  'provider': !exists(json, 'provider') ? undefined : json['provider'],
63
+ 'endpoint': !exists(json, 'endpoint') ? undefined : json['endpoint'],
50
64
  };
51
65
  }
52
66
 
@@ -59,7 +73,9 @@ export function PatchedConnectionTokenRequestToJSON(value?: PatchedConnectionTok
59
73
  }
60
74
  return {
61
75
 
76
+ 'pk': value.pk,
62
77
  'provider': value.provider,
78
+ 'endpoint': value.endpoint,
63
79
  };
64
80
  }
65
81
 
@@ -32,11 +32,11 @@ export interface Version {
32
32
  */
33
33
  readonly versionLatest: string;
34
34
  /**
35
- * Latest version query is a valid non-default value
36
- * @type {boolean}
35
+ * Check if latest version is valid
36
+ * @type {string}
37
37
  * @memberof Version
38
38
  */
39
- readonly versionLatestValid: boolean;
39
+ readonly versionLatestValid: string;
40
40
  /**
41
41
  * Get build hash, if version is not latest or released
42
42
  * @type {string}