@goauthentik/api 2022.4.1-1652171189 → 2022.4.1-1652556994
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/dist/esm/models/AuthenticatorValidateStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +2 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/AutosubmitChallenge.d.ts +6 -0
- package/dist/esm/models/AutosubmitChallenge.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedPlexSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedPlexSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PlexSourceConnection.d.ts +3 -2
- package/dist/esm/models/PlexSourceConnection.js +2 -2
- package/dist/esm/models/PlexSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PlexSourceConnectionRequest.js +0 -2
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +3 -2
- package/dist/esm/models/UserOAuthSourceConnection.js +2 -2
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -2
- package/dist/models/AuthenticatorValidateStage.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStage.js +2 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/AutosubmitChallenge.d.ts +6 -0
- package/dist/models/AutosubmitChallenge.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedPlexSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedPlexSourceConnectionRequest.js +0 -2
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/models/PlexSourceConnection.d.ts +3 -2
- package/dist/models/PlexSourceConnection.js +2 -2
- package/dist/models/PlexSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PlexSourceConnectionRequest.js +0 -2
- package/dist/models/UserOAuthSourceConnection.d.ts +3 -2
- package/dist/models/UserOAuthSourceConnection.js +2 -2
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/UserOAuthSourceConnectionRequest.js +0 -2
- package/package.json +1 -1
- package/src/models/AuthenticatorValidateStage.ts +8 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/AutosubmitChallenge.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedPlexSourceConnectionRequest.ts +0 -8
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
- package/src/models/PlexSourceConnection.ts +10 -4
- package/src/models/PlexSourceConnectionRequest.ts +0 -8
- package/src/models/UserOAuthSourceConnection.ts +10 -4
- package/src/models/UserOAuthSourceConnectionRequest.ts +0 -8
|
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
|
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
80
|
configurationStages?: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AuthenticatorValidateStage
|
|
85
|
+
*/
|
|
86
|
+
lastAuthThreshold?: string;
|
|
81
87
|
}
|
|
82
88
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
89
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -33,6 +33,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
|
|
|
33
33
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
34
34
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
35
35
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
36
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export function AuthenticatorValidateStageToJSON(value) {
|
|
@@ -48,5 +49,6 @@ export function AuthenticatorValidateStageToJSON(value) {
|
|
|
48
49
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
50
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
50
51
|
'configuration_stages': value.configurationStages,
|
|
52
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -28,6 +28,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
30
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -43,5 +44,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
43
44
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
45
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
46
|
'configuration_stages': value.configurationStages,
|
|
47
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -58,6 +58,12 @@ export interface AutosubmitChallenge {
|
|
|
58
58
|
attrs: {
|
|
59
59
|
[key: string]: string;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AutosubmitChallenge
|
|
65
|
+
*/
|
|
66
|
+
title?: string;
|
|
61
67
|
}
|
|
62
68
|
export declare function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge;
|
|
63
69
|
export declare function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutosubmitChallenge;
|
|
@@ -28,6 +28,7 @@ export function AutosubmitChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'url': json['url'],
|
|
30
30
|
'attrs': json['attrs'],
|
|
31
|
+
'title': !exists(json, 'title') ? undefined : json['title'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function AutosubmitChallengeToJSON(value) {
|
|
@@ -44,5 +45,6 @@ export function AutosubmitChallengeToJSON(value) {
|
|
|
44
45
|
'response_errors': value.responseErrors,
|
|
45
46
|
'url': value.url,
|
|
46
47
|
'attrs': value.attrs,
|
|
48
|
+
'title': value.title,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -48,6 +48,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
|
|
@@ -28,6 +28,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
|
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
30
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -43,5 +44,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
|
43
44
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
45
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
46
|
'configuration_stages': value.configurationStages,
|
|
47
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* @interface PatchedPlexSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface PatchedPlexSourceConnectionRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PatchedPlexSourceConnectionRequest
|
|
22
|
-
*/
|
|
23
|
-
source?: string;
|
|
24
18
|
/**
|
|
25
19
|
*
|
|
26
20
|
* @type {string}
|
|
@@ -20,7 +20,6 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDisc
|
|
|
20
20
|
return json;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
-
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
24
23
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
25
24
|
'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
|
|
26
25
|
};
|
|
@@ -33,7 +32,6 @@ export function PatchedPlexSourceConnectionRequestToJSON(value) {
|
|
|
33
32
|
return null;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
'source': value.source,
|
|
37
35
|
'identifier': value.identifier,
|
|
38
36
|
'plex_token': value.plexToken,
|
|
39
37
|
};
|
|
@@ -21,12 +21,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
|
|
|
21
21
|
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user?: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
28
|
-
*/
|
|
29
|
-
source?: string;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -21,7 +21,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignor
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
24
|
-
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
25
24
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
26
25
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
27
26
|
};
|
|
@@ -35,7 +34,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
36
|
'user': value.user,
|
|
38
|
-
'source': value.source,
|
|
39
37
|
'identifier': value.identifier,
|
|
40
38
|
'access_token': value.accessToken,
|
|
41
39
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Source } from './Source';
|
|
12
13
|
/**
|
|
13
14
|
* Plex Source connection Serializer
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface PlexSourceConnection {
|
|
|
29
30
|
readonly user: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {Source}
|
|
33
34
|
* @memberof PlexSourceConnection
|
|
34
35
|
*/
|
|
35
|
-
source:
|
|
36
|
+
readonly source: Source | null;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SourceFromJSON, } from './Source';
|
|
14
15
|
export function PlexSourceConnectionFromJSON(json) {
|
|
15
16
|
return PlexSourceConnectionFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -21,7 +22,7 @@ export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
22
|
return {
|
|
22
23
|
'pk': json['pk'],
|
|
23
24
|
'user': json['user'],
|
|
24
|
-
'source': json['source'],
|
|
25
|
+
'source': SourceFromJSON(json['source']),
|
|
25
26
|
'identifier': json['identifier'],
|
|
26
27
|
'plexToken': json['plex_token'],
|
|
27
28
|
};
|
|
@@ -34,7 +35,6 @@ export function PlexSourceConnectionToJSON(value) {
|
|
|
34
35
|
return null;
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
|
-
'source': value.source,
|
|
38
38
|
'identifier': value.identifier,
|
|
39
39
|
'plex_token': value.plexToken,
|
|
40
40
|
};
|
|
@@ -19,7 +19,6 @@ export function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
19
19
|
return json;
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
|
-
'source': json['source'],
|
|
23
22
|
'identifier': json['identifier'],
|
|
24
23
|
'plexToken': json['plex_token'],
|
|
25
24
|
};
|
|
@@ -32,7 +31,6 @@ export function PlexSourceConnectionRequestToJSON(value) {
|
|
|
32
31
|
return null;
|
|
33
32
|
}
|
|
34
33
|
return {
|
|
35
|
-
'source': value.source,
|
|
36
34
|
'identifier': value.identifier,
|
|
37
35
|
'plex_token': value.plexToken,
|
|
38
36
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Source } from './Source';
|
|
12
13
|
/**
|
|
13
14
|
* OAuth Source Serializer
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface UserOAuthSourceConnection {
|
|
|
29
30
|
user: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {Source}
|
|
33
34
|
* @memberof UserOAuthSourceConnection
|
|
34
35
|
*/
|
|
35
|
-
source:
|
|
36
|
+
readonly source: Source | null;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SourceFromJSON, } from './Source';
|
|
14
15
|
export function UserOAuthSourceConnectionFromJSON(json) {
|
|
15
16
|
return UserOAuthSourceConnectionFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -21,7 +22,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator
|
|
|
21
22
|
return {
|
|
22
23
|
'pk': json['pk'],
|
|
23
24
|
'user': json['user'],
|
|
24
|
-
'source': json['source'],
|
|
25
|
+
'source': SourceFromJSON(json['source']),
|
|
25
26
|
'identifier': json['identifier'],
|
|
26
27
|
};
|
|
27
28
|
}
|
|
@@ -34,7 +35,6 @@ export function UserOAuthSourceConnectionToJSON(value) {
|
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
37
|
'user': value.user,
|
|
37
|
-
'source': value.source,
|
|
38
38
|
'identifier': value.identifier,
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -21,12 +21,6 @@ export interface UserOAuthSourceConnectionRequest {
|
|
|
21
21
|
* @memberof UserOAuthSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserOAuthSourceConnectionRequest
|
|
28
|
-
*/
|
|
29
|
-
source: string;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -21,7 +21,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
'user': json['user'],
|
|
24
|
-
'source': json['source'],
|
|
25
24
|
'identifier': json['identifier'],
|
|
26
25
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
27
26
|
};
|
|
@@ -35,7 +34,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
36
|
'user': value.user,
|
|
38
|
-
'source': value.source,
|
|
39
37
|
'identifier': value.identifier,
|
|
40
38
|
'access_token': value.accessToken,
|
|
41
39
|
};
|
|
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
|
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
80
|
configurationStages?: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AuthenticatorValidateStage
|
|
85
|
+
*/
|
|
86
|
+
lastAuthThreshold?: string;
|
|
81
87
|
}
|
|
82
88
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
89
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -37,6 +37,7 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
38
38
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
39
39
|
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
40
|
+
'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
|
|
@@ -53,6 +54,7 @@ function AuthenticatorValidateStageToJSON(value) {
|
|
|
53
54
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
54
55
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
55
56
|
'configuration_stages': value.configurationStages,
|
|
57
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
|
|
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -32,6 +32,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
32
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
33
33
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
34
34
|
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
35
|
+
'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
|
|
@@ -48,6 +49,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
48
49
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
50
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
50
51
|
'configuration_stages': value.configurationStages,
|
|
52
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
|
|
@@ -58,6 +58,12 @@ export interface AutosubmitChallenge {
|
|
|
58
58
|
attrs: {
|
|
59
59
|
[key: string]: string;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AutosubmitChallenge
|
|
65
|
+
*/
|
|
66
|
+
title?: string;
|
|
61
67
|
}
|
|
62
68
|
export declare function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge;
|
|
63
69
|
export declare function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutosubmitChallenge;
|
|
@@ -32,6 +32,7 @@ function AutosubmitChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'responseErrors': !runtime_1.exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
33
|
'url': json['url'],
|
|
34
34
|
'attrs': json['attrs'],
|
|
35
|
+
'title': !runtime_1.exists(json, 'title') ? undefined : json['title'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.AutosubmitChallengeFromJSONTyped = AutosubmitChallengeFromJSONTyped;
|
|
@@ -49,6 +50,7 @@ function AutosubmitChallengeToJSON(value) {
|
|
|
49
50
|
'response_errors': value.responseErrors,
|
|
50
51
|
'url': value.url,
|
|
51
52
|
'attrs': value.attrs,
|
|
53
|
+
'title': value.title,
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
exports.AutosubmitChallengeToJSON = AutosubmitChallengeToJSON;
|
|
@@ -48,6 +48,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
|
|
@@ -32,6 +32,7 @@ function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
|
32
32
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
33
33
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
34
34
|
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
35
|
+
'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
|
|
@@ -48,6 +49,7 @@ function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
|
48
49
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
50
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
50
51
|
'configuration_stages': value.configurationStages,
|
|
52
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* @interface PatchedPlexSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface PatchedPlexSourceConnectionRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PatchedPlexSourceConnectionRequest
|
|
22
|
-
*/
|
|
23
|
-
source?: string;
|
|
24
18
|
/**
|
|
25
19
|
*
|
|
26
20
|
* @type {string}
|
|
@@ -24,7 +24,6 @@ function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminat
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'source': !runtime_1.exists(json, 'source') ? undefined : json['source'],
|
|
28
27
|
'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
29
28
|
'plexToken': !runtime_1.exists(json, 'plex_token') ? undefined : json['plex_token'],
|
|
30
29
|
};
|
|
@@ -38,7 +37,6 @@ function PatchedPlexSourceConnectionRequestToJSON(value) {
|
|
|
38
37
|
return null;
|
|
39
38
|
}
|
|
40
39
|
return {
|
|
41
|
-
'source': value.source,
|
|
42
40
|
'identifier': value.identifier,
|
|
43
41
|
'plex_token': value.plexToken,
|
|
44
42
|
};
|
|
@@ -21,12 +21,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
|
|
|
21
21
|
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user?: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
28
|
-
*/
|
|
29
|
-
source?: string;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -25,7 +25,6 @@ function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
|
|
28
|
-
'source': !runtime_1.exists(json, 'source') ? undefined : json['source'],
|
|
29
28
|
'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
30
29
|
'accessToken': !runtime_1.exists(json, 'access_token') ? undefined : json['access_token'],
|
|
31
30
|
};
|
|
@@ -40,7 +39,6 @@ function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
40
39
|
}
|
|
41
40
|
return {
|
|
42
41
|
'user': value.user,
|
|
43
|
-
'source': value.source,
|
|
44
42
|
'identifier': value.identifier,
|
|
45
43
|
'access_token': value.accessToken,
|
|
46
44
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Source } from './Source';
|
|
12
13
|
/**
|
|
13
14
|
* Plex Source connection Serializer
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface PlexSourceConnection {
|
|
|
29
30
|
readonly user: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {Source}
|
|
33
34
|
* @memberof PlexSourceConnection
|
|
34
35
|
*/
|
|
35
|
-
source:
|
|
36
|
+
readonly source: Source | null;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PlexSourceConnectionToJSON = exports.PlexSourceConnectionFromJSONTyped = exports.PlexSourceConnectionFromJSON = void 0;
|
|
17
|
+
const Source_1 = require("./Source");
|
|
17
18
|
function PlexSourceConnectionFromJSON(json) {
|
|
18
19
|
return PlexSourceConnectionFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -25,7 +26,7 @@ function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'pk': json['pk'],
|
|
27
28
|
'user': json['user'],
|
|
28
|
-
'source': json['source'],
|
|
29
|
+
'source': Source_1.SourceFromJSON(json['source']),
|
|
29
30
|
'identifier': json['identifier'],
|
|
30
31
|
'plexToken': json['plex_token'],
|
|
31
32
|
};
|
|
@@ -39,7 +40,6 @@ function PlexSourceConnectionToJSON(value) {
|
|
|
39
40
|
return null;
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
|
-
'source': value.source,
|
|
43
43
|
'identifier': value.identifier,
|
|
44
44
|
'plex_token': value.plexToken,
|
|
45
45
|
};
|
|
@@ -23,7 +23,6 @@ function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
|
-
'source': json['source'],
|
|
27
26
|
'identifier': json['identifier'],
|
|
28
27
|
'plexToken': json['plex_token'],
|
|
29
28
|
};
|
|
@@ -37,7 +36,6 @@ function PlexSourceConnectionRequestToJSON(value) {
|
|
|
37
36
|
return null;
|
|
38
37
|
}
|
|
39
38
|
return {
|
|
40
|
-
'source': value.source,
|
|
41
39
|
'identifier': value.identifier,
|
|
42
40
|
'plex_token': value.plexToken,
|
|
43
41
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Source } from './Source';
|
|
12
13
|
/**
|
|
13
14
|
* OAuth Source Serializer
|
|
14
15
|
* @export
|
|
@@ -29,10 +30,10 @@ export interface UserOAuthSourceConnection {
|
|
|
29
30
|
user: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {Source}
|
|
33
34
|
* @memberof UserOAuthSourceConnection
|
|
34
35
|
*/
|
|
35
|
-
source:
|
|
36
|
+
readonly source: Source | null;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UserOAuthSourceConnectionToJSON = exports.UserOAuthSourceConnectionFromJSONTyped = exports.UserOAuthSourceConnectionFromJSON = void 0;
|
|
17
|
+
const Source_1 = require("./Source");
|
|
17
18
|
function UserOAuthSourceConnectionFromJSON(json) {
|
|
18
19
|
return UserOAuthSourceConnectionFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -25,7 +26,7 @@ function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
return {
|
|
26
27
|
'pk': json['pk'],
|
|
27
28
|
'user': json['user'],
|
|
28
|
-
'source': json['source'],
|
|
29
|
+
'source': Source_1.SourceFromJSON(json['source']),
|
|
29
30
|
'identifier': json['identifier'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
@@ -39,7 +40,6 @@ function UserOAuthSourceConnectionToJSON(value) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'user': value.user,
|
|
42
|
-
'source': value.source,
|
|
43
43
|
'identifier': value.identifier,
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -21,12 +21,6 @@ export interface UserOAuthSourceConnectionRequest {
|
|
|
21
21
|
* @memberof UserOAuthSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserOAuthSourceConnectionRequest
|
|
28
|
-
*/
|
|
29
|
-
source: string;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {string}
|
|
@@ -25,7 +25,6 @@ function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'user': json['user'],
|
|
28
|
-
'source': json['source'],
|
|
29
28
|
'identifier': json['identifier'],
|
|
30
29
|
'accessToken': !runtime_1.exists(json, 'access_token') ? undefined : json['access_token'],
|
|
31
30
|
};
|
|
@@ -40,7 +39,6 @@ function UserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
40
39
|
}
|
|
41
40
|
return {
|
|
42
41
|
'user': value.user,
|
|
43
|
-
'source': value.source,
|
|
44
42
|
'identifier': value.identifier,
|
|
45
43
|
'access_token': value.accessToken,
|
|
46
44
|
};
|
package/package.json
CHANGED
|
@@ -98,6 +98,12 @@ export interface AuthenticatorValidateStage {
|
|
|
98
98
|
* @memberof AuthenticatorValidateStage
|
|
99
99
|
*/
|
|
100
100
|
configurationStages?: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof AuthenticatorValidateStage
|
|
105
|
+
*/
|
|
106
|
+
lastAuthThreshold?: string;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
export function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage {
|
|
@@ -120,6 +126,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscrim
|
|
|
120
126
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
121
127
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
122
128
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
129
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
123
130
|
};
|
|
124
131
|
}
|
|
125
132
|
|
|
@@ -137,6 +144,7 @@ export function AuthenticatorValidateStageToJSON(value?: AuthenticatorValidateSt
|
|
|
137
144
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
138
145
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
139
146
|
'configuration_stages': value.configurationStages,
|
|
147
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
140
148
|
};
|
|
141
149
|
}
|
|
142
150
|
|
|
@@ -68,6 +68,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
68
68
|
* @memberof AuthenticatorValidateStageRequest
|
|
69
69
|
*/
|
|
70
70
|
configurationStages?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AuthenticatorValidateStageRequest
|
|
75
|
+
*/
|
|
76
|
+
lastAuthThreshold?: string;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest {
|
|
@@ -85,6 +91,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignore
|
|
|
85
91
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
86
92
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
87
93
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
94
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
88
95
|
};
|
|
89
96
|
}
|
|
90
97
|
|
|
@@ -102,6 +109,7 @@ export function AuthenticatorValidateStageRequestToJSON(value?: AuthenticatorVal
|
|
|
102
109
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
103
110
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
104
111
|
'configuration_stages': value.configurationStages,
|
|
112
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
|
|
@@ -74,6 +74,12 @@ export interface AutosubmitChallenge {
|
|
|
74
74
|
* @memberof AutosubmitChallenge
|
|
75
75
|
*/
|
|
76
76
|
attrs: { [key: string]: string; };
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AutosubmitChallenge
|
|
81
|
+
*/
|
|
82
|
+
title?: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
export function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge {
|
|
@@ -92,6 +98,7 @@ export function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
92
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
93
99
|
'url': json['url'],
|
|
94
100
|
'attrs': json['attrs'],
|
|
101
|
+
'title': !exists(json, 'title') ? undefined : json['title'],
|
|
95
102
|
};
|
|
96
103
|
}
|
|
97
104
|
|
|
@@ -110,6 +117,7 @@ export function AutosubmitChallengeToJSON(value?: AutosubmitChallenge | null): a
|
|
|
110
117
|
'response_errors': value.responseErrors,
|
|
111
118
|
'url': value.url,
|
|
112
119
|
'attrs': value.attrs,
|
|
120
|
+
'title': value.title,
|
|
113
121
|
};
|
|
114
122
|
}
|
|
115
123
|
|
|
@@ -68,6 +68,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
68
68
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
69
69
|
*/
|
|
70
70
|
configurationStages?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
75
|
+
*/
|
|
76
|
+
lastAuthThreshold?: string;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest {
|
|
@@ -85,6 +91,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any,
|
|
|
85
91
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
86
92
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
87
93
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
94
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
88
95
|
};
|
|
89
96
|
}
|
|
90
97
|
|
|
@@ -102,6 +109,7 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value?: PatchedAu
|
|
|
102
109
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
103
110
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
104
111
|
'configuration_stages': value.configurationStages,
|
|
112
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
|
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PatchedPlexSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PatchedPlexSourceConnectionRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof PatchedPlexSourceConnectionRequest
|
|
26
|
-
*/
|
|
27
|
-
source?: string;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -49,7 +43,6 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json: any, ignor
|
|
|
49
43
|
}
|
|
50
44
|
return {
|
|
51
45
|
|
|
52
|
-
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
53
46
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
54
47
|
'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
|
|
55
48
|
};
|
|
@@ -64,7 +57,6 @@ export function PatchedPlexSourceConnectionRequestToJSON(value?: PatchedPlexSour
|
|
|
64
57
|
}
|
|
65
58
|
return {
|
|
66
59
|
|
|
67
|
-
'source': value.source,
|
|
68
60
|
'identifier': value.identifier,
|
|
69
61
|
'plex_token': value.plexToken,
|
|
70
62
|
};
|
|
@@ -25,12 +25,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
|
|
|
25
25
|
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
26
26
|
*/
|
|
27
27
|
user?: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
32
|
-
*/
|
|
33
|
-
source?: string;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -56,7 +50,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json: any,
|
|
|
56
50
|
return {
|
|
57
51
|
|
|
58
52
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
59
|
-
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
60
53
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
61
54
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
62
55
|
};
|
|
@@ -72,7 +65,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value?: PatchedUse
|
|
|
72
65
|
return {
|
|
73
66
|
|
|
74
67
|
'user': value.user,
|
|
75
|
-
'source': value.source,
|
|
76
68
|
'identifier': value.identifier,
|
|
77
69
|
'access_token': value.accessToken,
|
|
78
70
|
};
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Source,
|
|
18
|
+
SourceFromJSON,
|
|
19
|
+
SourceFromJSONTyped,
|
|
20
|
+
SourceToJSON,
|
|
21
|
+
} from './Source';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* Plex Source connection Serializer
|
|
18
25
|
* @export
|
|
@@ -33,10 +40,10 @@ export interface PlexSourceConnection {
|
|
|
33
40
|
readonly user: number;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
43
|
+
* @type {Source}
|
|
37
44
|
* @memberof PlexSourceConnection
|
|
38
45
|
*/
|
|
39
|
-
source:
|
|
46
|
+
readonly source: Source | null;
|
|
40
47
|
/**
|
|
41
48
|
*
|
|
42
49
|
* @type {string}
|
|
@@ -63,7 +70,7 @@ export function PlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
63
70
|
|
|
64
71
|
'pk': json['pk'],
|
|
65
72
|
'user': json['user'],
|
|
66
|
-
'source': json['source'],
|
|
73
|
+
'source': SourceFromJSON(json['source']),
|
|
67
74
|
'identifier': json['identifier'],
|
|
68
75
|
'plexToken': json['plex_token'],
|
|
69
76
|
};
|
|
@@ -78,7 +85,6 @@ export function PlexSourceConnectionToJSON(value?: PlexSourceConnection | null):
|
|
|
78
85
|
}
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
|
-
'source': value.source,
|
|
82
88
|
'identifier': value.identifier,
|
|
83
89
|
'plex_token': value.plexToken,
|
|
84
90
|
};
|
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PlexSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PlexSourceConnectionRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof PlexSourceConnectionRequest
|
|
26
|
-
*/
|
|
27
|
-
source: string;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -49,7 +43,6 @@ export function PlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
49
43
|
}
|
|
50
44
|
return {
|
|
51
45
|
|
|
52
|
-
'source': json['source'],
|
|
53
46
|
'identifier': json['identifier'],
|
|
54
47
|
'plexToken': json['plex_token'],
|
|
55
48
|
};
|
|
@@ -64,7 +57,6 @@ export function PlexSourceConnectionRequestToJSON(value?: PlexSourceConnectionRe
|
|
|
64
57
|
}
|
|
65
58
|
return {
|
|
66
59
|
|
|
67
|
-
'source': value.source,
|
|
68
60
|
'identifier': value.identifier,
|
|
69
61
|
'plex_token': value.plexToken,
|
|
70
62
|
};
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Source,
|
|
18
|
+
SourceFromJSON,
|
|
19
|
+
SourceFromJSONTyped,
|
|
20
|
+
SourceToJSON,
|
|
21
|
+
} from './Source';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* OAuth Source Serializer
|
|
18
25
|
* @export
|
|
@@ -33,10 +40,10 @@ export interface UserOAuthSourceConnection {
|
|
|
33
40
|
user: number;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
43
|
+
* @type {Source}
|
|
37
44
|
* @memberof UserOAuthSourceConnection
|
|
38
45
|
*/
|
|
39
|
-
source:
|
|
46
|
+
readonly source: Source | null;
|
|
40
47
|
/**
|
|
41
48
|
*
|
|
42
49
|
* @type {string}
|
|
@@ -57,7 +64,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
57
64
|
|
|
58
65
|
'pk': json['pk'],
|
|
59
66
|
'user': json['user'],
|
|
60
|
-
'source': json['source'],
|
|
67
|
+
'source': SourceFromJSON(json['source']),
|
|
61
68
|
'identifier': json['identifier'],
|
|
62
69
|
};
|
|
63
70
|
}
|
|
@@ -72,7 +79,6 @@ export function UserOAuthSourceConnectionToJSON(value?: UserOAuthSourceConnectio
|
|
|
72
79
|
return {
|
|
73
80
|
|
|
74
81
|
'user': value.user,
|
|
75
|
-
'source': value.source,
|
|
76
82
|
'identifier': value.identifier,
|
|
77
83
|
};
|
|
78
84
|
}
|
|
@@ -25,12 +25,6 @@ export interface UserOAuthSourceConnectionRequest {
|
|
|
25
25
|
* @memberof UserOAuthSourceConnectionRequest
|
|
26
26
|
*/
|
|
27
27
|
user: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UserOAuthSourceConnectionRequest
|
|
32
|
-
*/
|
|
33
|
-
source: string;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -56,7 +50,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreD
|
|
|
56
50
|
return {
|
|
57
51
|
|
|
58
52
|
'user': json['user'],
|
|
59
|
-
'source': json['source'],
|
|
60
53
|
'identifier': json['identifier'],
|
|
61
54
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
62
55
|
};
|
|
@@ -72,7 +65,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value?: UserOAuthSourceCo
|
|
|
72
65
|
return {
|
|
73
66
|
|
|
74
67
|
'user': value.user,
|
|
75
|
-
'source': value.source,
|
|
76
68
|
'identifier': value.identifier,
|
|
77
69
|
'access_token': value.accessToken,
|
|
78
70
|
};
|