@goauthentik/api 2024.6.1-1720731051 → 2024.6.1-1720888668
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.
- package/.openapi-generator/FILES +0 -1
- package/dist/esm/models/AccessDeniedChallenge.d.ts +0 -7
- package/dist/esm/models/AccessDeniedChallenge.js +0 -4
- package/dist/esm/models/AppleLoginChallenge.d.ts +0 -7
- package/dist/esm/models/AppleLoginChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorDuoChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorSMSChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorStaticChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorTOTPChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorValidationChallenge.js +0 -4
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +0 -4
- package/dist/esm/models/AutosubmitChallenge.d.ts +0 -7
- package/dist/esm/models/AutosubmitChallenge.js +0 -4
- package/dist/esm/models/CaptchaChallenge.d.ts +0 -7
- package/dist/esm/models/CaptchaChallenge.js +0 -4
- package/dist/esm/models/ConsentChallenge.d.ts +0 -7
- package/dist/esm/models/ConsentChallenge.js +0 -4
- package/dist/esm/models/DummyChallenge.d.ts +0 -7
- package/dist/esm/models/DummyChallenge.js +0 -4
- package/dist/esm/models/EmailChallenge.d.ts +0 -7
- package/dist/esm/models/EmailChallenge.js +0 -4
- package/dist/esm/models/FlowErrorChallenge.d.ts +0 -6
- package/dist/esm/models/FlowErrorChallenge.js +0 -2
- package/dist/esm/models/IdentificationChallenge.d.ts +0 -7
- package/dist/esm/models/IdentificationChallenge.js +0 -4
- package/dist/esm/models/OAuthDeviceCodeChallenge.d.ts +0 -7
- package/dist/esm/models/OAuthDeviceCodeChallenge.js +0 -4
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.js +0 -4
- package/dist/esm/models/PasswordChallenge.d.ts +0 -7
- package/dist/esm/models/PasswordChallenge.js +0 -4
- package/dist/esm/models/PlexAuthenticationChallenge.d.ts +0 -7
- package/dist/esm/models/PlexAuthenticationChallenge.js +0 -4
- package/dist/esm/models/PromptChallenge.d.ts +0 -7
- package/dist/esm/models/PromptChallenge.js +0 -4
- package/dist/esm/models/RedirectChallenge.d.ts +0 -7
- package/dist/esm/models/RedirectChallenge.js +0 -4
- package/dist/esm/models/ShellChallenge.d.ts +0 -7
- package/dist/esm/models/ShellChallenge.js +0 -4
- package/dist/esm/models/UserLoginChallenge.d.ts +0 -7
- package/dist/esm/models/UserLoginChallenge.js +0 -4
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/AccessDeniedChallenge.d.ts +0 -7
- package/dist/models/AccessDeniedChallenge.js +0 -4
- package/dist/models/AppleLoginChallenge.d.ts +0 -7
- package/dist/models/AppleLoginChallenge.js +0 -4
- package/dist/models/AuthenticatorDuoChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorDuoChallenge.js +0 -4
- package/dist/models/AuthenticatorSMSChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorSMSChallenge.js +0 -4
- package/dist/models/AuthenticatorStaticChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorStaticChallenge.js +0 -4
- package/dist/models/AuthenticatorTOTPChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorTOTPChallenge.js +0 -4
- package/dist/models/AuthenticatorValidationChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorValidationChallenge.js +0 -4
- package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +0 -7
- package/dist/models/AuthenticatorWebAuthnChallenge.js +0 -4
- package/dist/models/AutosubmitChallenge.d.ts +0 -7
- package/dist/models/AutosubmitChallenge.js +0 -4
- package/dist/models/CaptchaChallenge.d.ts +0 -7
- package/dist/models/CaptchaChallenge.js +0 -4
- package/dist/models/ConsentChallenge.d.ts +0 -7
- package/dist/models/ConsentChallenge.js +0 -4
- package/dist/models/DummyChallenge.d.ts +0 -7
- package/dist/models/DummyChallenge.js +0 -4
- package/dist/models/EmailChallenge.d.ts +0 -7
- package/dist/models/EmailChallenge.js +0 -4
- package/dist/models/FlowErrorChallenge.d.ts +0 -6
- package/dist/models/FlowErrorChallenge.js +0 -2
- package/dist/models/IdentificationChallenge.d.ts +0 -7
- package/dist/models/IdentificationChallenge.js +0 -4
- package/dist/models/OAuthDeviceCodeChallenge.d.ts +0 -7
- package/dist/models/OAuthDeviceCodeChallenge.js +0 -4
- package/dist/models/OAuthDeviceCodeFinishChallenge.d.ts +0 -7
- package/dist/models/OAuthDeviceCodeFinishChallenge.js +0 -4
- package/dist/models/PasswordChallenge.d.ts +0 -7
- package/dist/models/PasswordChallenge.js +0 -4
- package/dist/models/PlexAuthenticationChallenge.d.ts +0 -7
- package/dist/models/PlexAuthenticationChallenge.js +0 -4
- package/dist/models/PromptChallenge.d.ts +0 -7
- package/dist/models/PromptChallenge.js +0 -4
- package/dist/models/RedirectChallenge.d.ts +0 -7
- package/dist/models/RedirectChallenge.js +0 -4
- package/dist/models/ShellChallenge.d.ts +0 -7
- package/dist/models/ShellChallenge.js +0 -4
- package/dist/models/UserLoginChallenge.d.ts +0 -7
- package/dist/models/UserLoginChallenge.js +0 -4
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/models/AccessDeniedChallenge.ts +0 -15
- package/src/models/AppleLoginChallenge.ts +0 -15
- package/src/models/AuthenticatorDuoChallenge.ts +0 -15
- package/src/models/AuthenticatorSMSChallenge.ts +0 -15
- package/src/models/AuthenticatorStaticChallenge.ts +0 -15
- package/src/models/AuthenticatorTOTPChallenge.ts +0 -15
- package/src/models/AuthenticatorValidationChallenge.ts +0 -15
- package/src/models/AuthenticatorWebAuthnChallenge.ts +0 -15
- package/src/models/AutosubmitChallenge.ts +0 -15
- package/src/models/CaptchaChallenge.ts +0 -15
- package/src/models/ConsentChallenge.ts +0 -15
- package/src/models/DummyChallenge.ts +0 -15
- package/src/models/EmailChallenge.ts +0 -15
- package/src/models/FlowErrorChallenge.ts +0 -8
- package/src/models/IdentificationChallenge.ts +0 -15
- package/src/models/OAuthDeviceCodeChallenge.ts +0 -15
- package/src/models/OAuthDeviceCodeFinishChallenge.ts +0 -15
- package/src/models/PasswordChallenge.ts +0 -15
- package/src/models/PlexAuthenticationChallenge.ts +0 -15
- package/src/models/PromptChallenge.ts +0 -15
- package/src/models/RedirectChallenge.ts +0 -15
- package/src/models/ShellChallenge.ts +0 -15
- package/src/models/UserLoginChallenge.ts +0 -15
- package/src/models/index.ts +0 -1
- package/dist/esm/models/ChallengeChoices.d.ts +0 -25
- package/dist/esm/models/ChallengeChoices.js +0 -32
- package/dist/models/ChallengeChoices.d.ts +0 -25
- package/dist/models/ChallengeChoices.js +0 -38
- package/src/models/ChallengeChoices.ts +0 -40
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface EmailChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface EmailChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof EmailChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the EmailChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfEmailChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
return isInstance;
|
|
24
22
|
}
|
|
25
23
|
export function EmailChallengeFromJSON(json) {
|
|
@@ -30,7 +28,6 @@ export function EmailChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
28
|
return json;
|
|
31
29
|
}
|
|
32
30
|
return {
|
|
33
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
34
31
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
35
32
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
36
33
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -44,7 +41,6 @@ export function EmailChallengeToJSON(value) {
|
|
|
44
41
|
return null;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
48
44
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
49
45
|
'component': value.component,
|
|
50
46
|
'response_errors': value.responseErrors,
|
|
@@ -18,12 +18,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
18
|
* @interface FlowErrorChallenge
|
|
19
19
|
*/
|
|
20
20
|
export interface FlowErrorChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof FlowErrorChallenge
|
|
25
|
-
*/
|
|
26
|
-
type?: string;
|
|
27
21
|
/**
|
|
28
22
|
*
|
|
29
23
|
* @type {ContextualFlowInfo}
|
|
@@ -29,7 +29,6 @@ export function FlowErrorChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
33
32
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
34
33
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
35
34
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -46,7 +45,6 @@ export function FlowErrorChallengeToJSON(value) {
|
|
|
46
45
|
return null;
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
|
-
'type': value.type,
|
|
50
48
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
51
49
|
'component': value.component,
|
|
52
50
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
import type { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
@@ -20,12 +19,6 @@ import type { LoginSource } from './LoginSource';
|
|
|
20
19
|
* @interface IdentificationChallenge
|
|
21
20
|
*/
|
|
22
21
|
export interface IdentificationChallenge {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {ChallengeChoices}
|
|
26
|
-
* @memberof IdentificationChallenge
|
|
27
|
-
*/
|
|
28
|
-
type: ChallengeChoices;
|
|
29
22
|
/**
|
|
30
23
|
*
|
|
31
24
|
* @type {ContextualFlowInfo}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
|
|
18
17
|
import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
|
|
@@ -21,7 +20,6 @@ import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
|
|
|
21
20
|
*/
|
|
22
21
|
export function instanceOfIdentificationChallenge(value) {
|
|
23
22
|
let isInstance = true;
|
|
24
|
-
isInstance = isInstance && "type" in value;
|
|
25
23
|
isInstance = isInstance && "userFields" in value;
|
|
26
24
|
isInstance = isInstance && "passwordFields" in value;
|
|
27
25
|
isInstance = isInstance && "flowDesignation" in value;
|
|
@@ -37,7 +35,6 @@ export function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
37
35
|
return json;
|
|
38
36
|
}
|
|
39
37
|
return {
|
|
40
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
41
38
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
42
39
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
43
40
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -61,7 +58,6 @@ export function IdentificationChallengeToJSON(value) {
|
|
|
61
58
|
return null;
|
|
62
59
|
}
|
|
63
60
|
return {
|
|
64
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
65
61
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
66
62
|
'component': value.component,
|
|
67
63
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface OAuthDeviceCodeChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface OAuthDeviceCodeChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof OAuthDeviceCodeChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the OAuthDeviceCodeChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfOAuthDeviceCodeChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
return isInstance;
|
|
24
22
|
}
|
|
25
23
|
export function OAuthDeviceCodeChallengeFromJSON(json) {
|
|
@@ -30,7 +28,6 @@ export function OAuthDeviceCodeChallengeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
30
28
|
return json;
|
|
31
29
|
}
|
|
32
30
|
return {
|
|
33
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
34
31
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
35
32
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
36
33
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -44,7 +41,6 @@ export function OAuthDeviceCodeChallengeToJSON(value) {
|
|
|
44
41
|
return null;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
48
44
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
49
45
|
'component': value.component,
|
|
50
46
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface OAuthDeviceCodeFinishChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface OAuthDeviceCodeFinishChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof OAuthDeviceCodeFinishChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the OAuthDeviceCodeFinishChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfOAuthDeviceCodeFinishChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
return isInstance;
|
|
24
22
|
}
|
|
25
23
|
export function OAuthDeviceCodeFinishChallengeFromJSON(json) {
|
|
@@ -30,7 +28,6 @@ export function OAuthDeviceCodeFinishChallengeFromJSONTyped(json, ignoreDiscrimi
|
|
|
30
28
|
return json;
|
|
31
29
|
}
|
|
32
30
|
return {
|
|
33
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
34
31
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
35
32
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
36
33
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -44,7 +41,6 @@ export function OAuthDeviceCodeFinishChallengeToJSON(value) {
|
|
|
44
41
|
return null;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
48
44
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
49
45
|
'component': value.component,
|
|
50
46
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface PasswordChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface PasswordChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof PasswordChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the PasswordChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfPasswordChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
isInstance = isInstance && "pendingUser" in value;
|
|
24
22
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
|
25
23
|
return isInstance;
|
|
@@ -32,7 +30,6 @@ export function PasswordChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
36
33
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
37
34
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
38
35
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -49,7 +46,6 @@ export function PasswordChallengeToJSON(value) {
|
|
|
49
46
|
return null;
|
|
50
47
|
}
|
|
51
48
|
return {
|
|
52
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
53
49
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
54
50
|
'component': value.component,
|
|
55
51
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface PlexAuthenticationChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface PlexAuthenticationChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof PlexAuthenticationChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the PlexAuthenticationChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfPlexAuthenticationChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
isInstance = isInstance && "clientId" in value;
|
|
24
22
|
isInstance = isInstance && "slug" in value;
|
|
25
23
|
return isInstance;
|
|
@@ -32,7 +30,6 @@ export function PlexAuthenticationChallengeFromJSONTyped(json, ignoreDiscriminat
|
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
36
33
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
37
34
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
38
35
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -48,7 +45,6 @@ export function PlexAuthenticationChallengeToJSON(value) {
|
|
|
48
45
|
return null;
|
|
49
46
|
}
|
|
50
47
|
return {
|
|
51
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
52
48
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
53
49
|
'component': value.component,
|
|
54
50
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
import type { StagePrompt } from './StagePrompt';
|
|
@@ -19,12 +18,6 @@ import type { StagePrompt } from './StagePrompt';
|
|
|
19
18
|
* @interface PromptChallenge
|
|
20
19
|
*/
|
|
21
20
|
export interface PromptChallenge {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {ChallengeChoices}
|
|
25
|
-
* @memberof PromptChallenge
|
|
26
|
-
*/
|
|
27
|
-
type: ChallengeChoices;
|
|
28
21
|
/**
|
|
29
22
|
*
|
|
30
23
|
* @type {ContextualFlowInfo}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
import { StagePromptFromJSON, StagePromptToJSON, } from './StagePrompt';
|
|
18
17
|
/**
|
|
@@ -20,7 +19,6 @@ import { StagePromptFromJSON, StagePromptToJSON, } from './StagePrompt';
|
|
|
20
19
|
*/
|
|
21
20
|
export function instanceOfPromptChallenge(value) {
|
|
22
21
|
let isInstance = true;
|
|
23
|
-
isInstance = isInstance && "type" in value;
|
|
24
22
|
isInstance = isInstance && "fields" in value;
|
|
25
23
|
return isInstance;
|
|
26
24
|
}
|
|
@@ -32,7 +30,6 @@ export function PromptChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
36
33
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
37
34
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
38
35
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -47,7 +44,6 @@ export function PromptChallengeToJSON(value) {
|
|
|
47
44
|
return null;
|
|
48
45
|
}
|
|
49
46
|
return {
|
|
50
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
51
47
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
52
48
|
'component': value.component,
|
|
53
49
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface RedirectChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface RedirectChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof RedirectChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the RedirectChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfRedirectChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
isInstance = isInstance && "to" in value;
|
|
24
22
|
return isInstance;
|
|
25
23
|
}
|
|
@@ -31,7 +29,6 @@ export function RedirectChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
29
|
return json;
|
|
32
30
|
}
|
|
33
31
|
return {
|
|
34
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
35
32
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
36
33
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
37
34
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -46,7 +43,6 @@ export function RedirectChallengeToJSON(value) {
|
|
|
46
43
|
return null;
|
|
47
44
|
}
|
|
48
45
|
return {
|
|
49
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
50
46
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
51
47
|
'component': value.component,
|
|
52
48
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface ShellChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface ShellChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof ShellChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the ShellChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfShellChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
isInstance = isInstance && "body" in value;
|
|
24
22
|
return isInstance;
|
|
25
23
|
}
|
|
@@ -31,7 +29,6 @@ export function ShellChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
29
|
return json;
|
|
32
30
|
}
|
|
33
31
|
return {
|
|
34
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
35
32
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
36
33
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
37
34
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -46,7 +43,6 @@ export function ShellChallengeToJSON(value) {
|
|
|
46
43
|
return null;
|
|
47
44
|
}
|
|
48
45
|
return {
|
|
49
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
50
46
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
51
47
|
'component': value.component,
|
|
52
48
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface UserLoginChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface UserLoginChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof UserLoginChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
15
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the UserLoginChallenge interface.
|
|
19
18
|
*/
|
|
20
19
|
export function instanceOfUserLoginChallenge(value) {
|
|
21
20
|
let isInstance = true;
|
|
22
|
-
isInstance = isInstance && "type" in value;
|
|
23
21
|
isInstance = isInstance && "pendingUser" in value;
|
|
24
22
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
|
25
23
|
return isInstance;
|
|
@@ -32,7 +30,6 @@ export function UserLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
'type': ChallengeChoicesFromJSON(json['type']),
|
|
36
33
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
37
34
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
38
35
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -48,7 +45,6 @@ export function UserLoginChallengeToJSON(value) {
|
|
|
48
45
|
return null;
|
|
49
46
|
}
|
|
50
47
|
return {
|
|
51
|
-
'type': ChallengeChoicesToJSON(value.type),
|
|
52
48
|
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
53
49
|
'component': value.component,
|
|
54
50
|
'response_errors': value.responseErrors,
|
|
@@ -63,7 +63,6 @@ export * from './CertificateData';
|
|
|
63
63
|
export * from './CertificateGenerationRequest';
|
|
64
64
|
export * from './CertificateKeyPair';
|
|
65
65
|
export * from './CertificateKeyPairRequest';
|
|
66
|
-
export * from './ChallengeChoices';
|
|
67
66
|
export * from './ChallengeTypes';
|
|
68
67
|
export * from './ClientTypeEnum';
|
|
69
68
|
export * from './Config';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -65,7 +65,6 @@ export * from './CertificateData';
|
|
|
65
65
|
export * from './CertificateGenerationRequest';
|
|
66
66
|
export * from './CertificateKeyPair';
|
|
67
67
|
export * from './CertificateKeyPairRequest';
|
|
68
|
-
export * from './ChallengeChoices';
|
|
69
68
|
export * from './ChallengeTypes';
|
|
70
69
|
export * from './ClientTypeEnum';
|
|
71
70
|
export * from './Config';
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface AccessDeniedChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface AccessDeniedChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof AccessDeniedChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|
|
@@ -15,14 +15,12 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AccessDeniedChallengeToJSON = exports.AccessDeniedChallengeFromJSONTyped = exports.AccessDeniedChallengeFromJSON = exports.instanceOfAccessDeniedChallenge = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
-
const ChallengeChoices_1 = require("./ChallengeChoices");
|
|
19
18
|
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
|
20
19
|
/**
|
|
21
20
|
* Check if a given object implements the AccessDeniedChallenge interface.
|
|
22
21
|
*/
|
|
23
22
|
function instanceOfAccessDeniedChallenge(value) {
|
|
24
23
|
let isInstance = true;
|
|
25
|
-
isInstance = isInstance && "type" in value;
|
|
26
24
|
isInstance = isInstance && "pendingUser" in value;
|
|
27
25
|
isInstance = isInstance && "pendingUserAvatar" in value;
|
|
28
26
|
return isInstance;
|
|
@@ -37,7 +35,6 @@ function AccessDeniedChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
35
|
return json;
|
|
38
36
|
}
|
|
39
37
|
return {
|
|
40
|
-
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
41
38
|
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
42
39
|
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
43
40
|
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
@@ -55,7 +52,6 @@ function AccessDeniedChallengeToJSON(value) {
|
|
|
55
52
|
return null;
|
|
56
53
|
}
|
|
57
54
|
return {
|
|
58
|
-
'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
|
|
59
55
|
'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
|
|
60
56
|
'component': value.component,
|
|
61
57
|
'response_errors': value.responseErrors,
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChallengeChoices } from './ChallengeChoices';
|
|
13
12
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
13
|
import type { ErrorDetail } from './ErrorDetail';
|
|
15
14
|
/**
|
|
@@ -18,12 +17,6 @@ import type { ErrorDetail } from './ErrorDetail';
|
|
|
18
17
|
* @interface AppleLoginChallenge
|
|
19
18
|
*/
|
|
20
19
|
export interface AppleLoginChallenge {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ChallengeChoices}
|
|
24
|
-
* @memberof AppleLoginChallenge
|
|
25
|
-
*/
|
|
26
|
-
type: ChallengeChoices;
|
|
27
20
|
/**
|
|
28
21
|
*
|
|
29
22
|
* @type {ContextualFlowInfo}
|