@goauthentik/api 2024.2.2-1712687985 → 2024.2.2-1712833826
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/models/AuthenticatedSession.d.ts +1 -1
- package/dist/esm/models/AuthenticatedSession.js +2 -2
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/ExpiringBaseGrantModel.d.ts +1 -1
- package/dist/esm/models/ExpiringBaseGrantModel.js +2 -2
- package/dist/esm/models/Invitation.d.ts +1 -1
- package/dist/esm/models/Invitation.js +2 -2
- package/dist/esm/models/InvitationRequest.d.ts +1 -1
- package/dist/esm/models/InvitationRequest.js +2 -2
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedInvitationRequest.d.ts +1 -1
- package/dist/esm/models/PatchedInvitationRequest.js +2 -2
- package/dist/esm/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/esm/models/PatchedSettingsRequest.js +4 -0
- package/dist/esm/models/PatchedTokenRequest.d.ts +1 -1
- package/dist/esm/models/PatchedTokenRequest.js +2 -2
- package/dist/esm/models/Settings.d.ts +12 -0
- package/dist/esm/models/Settings.js +4 -0
- package/dist/esm/models/SettingsRequest.d.ts +12 -0
- package/dist/esm/models/SettingsRequest.js +4 -0
- package/dist/esm/models/Token.d.ts +1 -1
- package/dist/esm/models/Token.js +2 -2
- package/dist/esm/models/TokenModel.d.ts +1 -1
- package/dist/esm/models/TokenModel.js +2 -2
- package/dist/esm/models/TokenRequest.d.ts +1 -1
- package/dist/esm/models/TokenRequest.js +2 -2
- package/dist/esm/models/UserConsent.d.ts +1 -1
- package/dist/esm/models/UserConsent.js +2 -2
- package/dist/models/AuthenticatedSession.d.ts +1 -1
- package/dist/models/AuthenticatedSession.js +2 -2
- package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/models/AuthenticatorValidateStage.js +5 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/ExpiringBaseGrantModel.d.ts +1 -1
- package/dist/models/ExpiringBaseGrantModel.js +2 -2
- package/dist/models/Invitation.d.ts +1 -1
- package/dist/models/Invitation.js +2 -2
- package/dist/models/InvitationRequest.d.ts +1 -1
- package/dist/models/InvitationRequest.js +2 -2
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedInvitationRequest.d.ts +1 -1
- package/dist/models/PatchedInvitationRequest.js +2 -2
- package/dist/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/models/PatchedSettingsRequest.js +4 -0
- package/dist/models/PatchedTokenRequest.d.ts +1 -1
- package/dist/models/PatchedTokenRequest.js +2 -2
- package/dist/models/Settings.d.ts +12 -0
- package/dist/models/Settings.js +4 -0
- package/dist/models/SettingsRequest.d.ts +12 -0
- package/dist/models/SettingsRequest.js +4 -0
- package/dist/models/Token.d.ts +1 -1
- package/dist/models/Token.js +2 -2
- package/dist/models/TokenModel.d.ts +1 -1
- package/dist/models/TokenModel.js +2 -2
- package/dist/models/TokenRequest.d.ts +1 -1
- package/dist/models/TokenRequest.js +2 -2
- package/dist/models/UserConsent.d.ts +1 -1
- package/dist/models/UserConsent.js +2 -2
- package/package.json +1 -1
- package/src/models/AuthenticatedSession.ts +3 -3
- package/src/models/AuthenticatorValidateStage.ts +22 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/ExpiringBaseGrantModel.ts +3 -3
- package/src/models/Invitation.ts +3 -3
- package/src/models/InvitationRequest.ts +3 -3
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedInvitationRequest.ts +3 -3
- package/src/models/PatchedSettingsRequest.ts +16 -0
- package/src/models/PatchedTokenRequest.ts +3 -3
- package/src/models/Settings.ts +16 -0
- package/src/models/SettingsRequest.ts +16 -0
- package/src/models/Token.ts +3 -3
- package/src/models/TokenModel.ts +3 -3
- package/src/models/TokenRequest.ts +3 -3
- package/src/models/UserConsent.ts +3 -3
@@ -46,7 +46,7 @@ export function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
46
|
'lastIp': json['last_ip'],
|
47
47
|
'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],
|
48
48
|
'lastUsed': (new Date(json['last_used'])),
|
49
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
49
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
50
50
|
};
|
51
51
|
}
|
52
52
|
export function AuthenticatedSessionToJSON(value) {
|
@@ -64,6 +64,6 @@ export function AuthenticatedSessionToJSON(value) {
|
|
64
64
|
'user': value.user,
|
65
65
|
'last_ip': value.lastIp,
|
66
66
|
'last_user_agent': value.lastUserAgent,
|
67
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
67
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
68
68
|
};
|
69
69
|
}
|
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
|
|
13
13
|
import type { FlowSet } from './FlowSet';
|
14
14
|
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
|
15
15
|
import type { UserVerificationEnum } from './UserVerificationEnum';
|
16
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
16
17
|
/**
|
17
18
|
* AuthenticatorValidateStage Serializer
|
18
19
|
* @export
|
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
|
|
91
92
|
* @memberof AuthenticatorValidateStage
|
92
93
|
*/
|
93
94
|
webauthnUserVerification?: UserVerificationEnum;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {Array<string>}
|
98
|
+
* @memberof AuthenticatorValidateStage
|
99
|
+
*/
|
100
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {Array<WebAuthnDeviceType>}
|
104
|
+
* @memberof AuthenticatorValidateStage
|
105
|
+
*/
|
106
|
+
readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
|
94
107
|
}
|
95
108
|
/**
|
96
109
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
@@ -16,6 +16,7 @@ import { DeviceClassesEnumFromJSON, DeviceClassesEnumToJSON, } from './DeviceCla
|
|
16
16
|
import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
|
17
17
|
import { NotConfiguredActionEnumFromJSON, NotConfiguredActionEnumToJSON, } from './NotConfiguredActionEnum';
|
18
18
|
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
19
|
+
import { WebAuthnDeviceTypeFromJSON, } from './WebAuthnDeviceType';
|
19
20
|
/**
|
20
21
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
21
22
|
*/
|
@@ -27,6 +28,7 @@ export function instanceOfAuthenticatorValidateStage(value) {
|
|
27
28
|
isInstance = isInstance && "verboseName" in value;
|
28
29
|
isInstance = isInstance && "verboseNamePlural" in value;
|
29
30
|
isInstance = isInstance && "metaModelName" in value;
|
31
|
+
isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
|
30
32
|
return isInstance;
|
31
33
|
}
|
32
34
|
export function AuthenticatorValidateStageFromJSON(json) {
|
@@ -49,6 +51,8 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
|
|
49
51
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
50
52
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
51
53
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
54
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
55
|
+
'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceTypeFromJSON)),
|
52
56
|
};
|
53
57
|
}
|
54
58
|
export function AuthenticatorValidateStageToJSON(value) {
|
@@ -66,5 +70,6 @@ export function AuthenticatorValidateStageToJSON(value) {
|
|
66
70
|
'configuration_stages': value.configurationStages,
|
67
71
|
'last_auth_threshold': value.lastAuthThreshold,
|
68
72
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
73
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
69
74
|
};
|
70
75
|
}
|
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof AuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof AuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the AuthenticatorValidateStageRequest interface.
|
@@ -39,6 +39,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
39
39
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
40
40
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
41
41
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
42
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
42
43
|
};
|
43
44
|
}
|
44
45
|
export function AuthenticatorValidateStageRequestToJSON(value) {
|
@@ -56,5 +57,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
56
57
|
'configuration_stages': value.configurationStages,
|
57
58
|
'last_auth_threshold': value.lastAuthThreshold,
|
58
59
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
60
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
59
61
|
};
|
60
62
|
}
|
@@ -38,7 +38,7 @@ export function ExpiringBaseGrantModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
38
|
'provider': OAuth2ProviderFromJSON(json['provider']),
|
39
39
|
'user': UserFromJSON(json['user']),
|
40
40
|
'isExpired': json['is_expired'],
|
41
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
41
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
42
42
|
'scope': json['scope'],
|
43
43
|
};
|
44
44
|
}
|
@@ -52,7 +52,7 @@ export function ExpiringBaseGrantModelToJSON(value) {
|
|
52
52
|
return {
|
53
53
|
'provider': OAuth2ProviderToJSON(value.provider),
|
54
54
|
'user': UserToJSON(value.user),
|
55
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
55
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
56
56
|
'scope': value.scope,
|
57
57
|
};
|
58
58
|
}
|
@@ -35,7 +35,7 @@ export function InvitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
return {
|
36
36
|
'pk': json['pk'],
|
37
37
|
'name': json['name'],
|
38
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
38
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
39
39
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
40
40
|
'createdBy': GroupMemberFromJSON(json['created_by']),
|
41
41
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
@@ -52,7 +52,7 @@ export function InvitationToJSON(value) {
|
|
52
52
|
}
|
53
53
|
return {
|
54
54
|
'name': value.name,
|
55
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
55
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
56
56
|
'fixed_data': value.fixedData,
|
57
57
|
'single_use': value.singleUse,
|
58
58
|
'flow': value.flow,
|
@@ -29,7 +29,7 @@ export function InvitationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
29
|
}
|
30
30
|
return {
|
31
31
|
'name': json['name'],
|
32
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
32
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
33
33
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
34
34
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
35
35
|
'flow': !exists(json, 'flow') ? undefined : json['flow'],
|
@@ -44,7 +44,7 @@ export function InvitationRequestToJSON(value) {
|
|
44
44
|
}
|
45
45
|
return {
|
46
46
|
'name': value.name,
|
47
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
47
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
48
48
|
'fixed_data': value.fixedData,
|
49
49
|
'single_use': value.singleUse,
|
50
50
|
'flow': value.flow,
|
@@ -61,6 +61,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
|
@@ -38,6 +38,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
|
|
38
38
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
39
39
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
40
40
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
41
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
41
42
|
};
|
42
43
|
}
|
43
44
|
export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
@@ -55,5 +56,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
55
56
|
'configuration_stages': value.configurationStages,
|
56
57
|
'last_auth_threshold': value.lastAuthThreshold,
|
57
58
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
59
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
58
60
|
};
|
59
61
|
}
|
@@ -28,7 +28,7 @@ export function PatchedInvitationRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
28
28
|
}
|
29
29
|
return {
|
30
30
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
31
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
31
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
32
32
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
33
33
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
34
34
|
'flow': !exists(json, 'flow') ? undefined : json['flow'],
|
@@ -43,7 +43,7 @@ export function PatchedInvitationRequestToJSON(value) {
|
|
43
43
|
}
|
44
44
|
return {
|
45
45
|
'name': value.name,
|
46
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
46
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
47
47
|
'fixed_data': value.fixedData,
|
48
48
|
'single_use': value.singleUse,
|
49
49
|
'flow': value.flow,
|
@@ -63,6 +63,18 @@ export interface PatchedSettingsRequest {
|
|
63
63
|
* @memberof PatchedSettingsRequest
|
64
64
|
*/
|
65
65
|
impersonation?: boolean;
|
66
|
+
/**
|
67
|
+
* Default token duration
|
68
|
+
* @type {string}
|
69
|
+
* @memberof PatchedSettingsRequest
|
70
|
+
*/
|
71
|
+
defaultTokenDuration?: string;
|
72
|
+
/**
|
73
|
+
* Default token length
|
74
|
+
* @type {number}
|
75
|
+
* @memberof PatchedSettingsRequest
|
76
|
+
*/
|
77
|
+
defaultTokenLength?: number;
|
66
78
|
}
|
67
79
|
/**
|
68
80
|
* Check if a given object implements the PatchedSettingsRequest interface.
|
@@ -35,6 +35,8 @@ export function PatchedSettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
|
36
36
|
'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
|
37
37
|
'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
|
38
|
+
'defaultTokenDuration': !exists(json, 'default_token_duration') ? undefined : json['default_token_duration'],
|
39
|
+
'defaultTokenLength': !exists(json, 'default_token_length') ? undefined : json['default_token_length'],
|
38
40
|
};
|
39
41
|
}
|
40
42
|
export function PatchedSettingsRequestToJSON(value) {
|
@@ -53,5 +55,7 @@ export function PatchedSettingsRequestToJSON(value) {
|
|
53
55
|
'footer_links': value.footerLinks,
|
54
56
|
'gdpr_compliance': value.gdprCompliance,
|
55
57
|
'impersonation': value.impersonation,
|
58
|
+
'default_token_duration': value.defaultTokenDuration,
|
59
|
+
'default_token_length': value.defaultTokenLength,
|
56
60
|
};
|
57
61
|
}
|
@@ -33,7 +33,7 @@ export function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
34
34
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
35
35
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
36
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
36
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
37
37
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
38
38
|
};
|
39
39
|
}
|
@@ -50,7 +50,7 @@ export function PatchedTokenRequestToJSON(value) {
|
|
50
50
|
'intent': IntentEnumToJSON(value.intent),
|
51
51
|
'user': value.user,
|
52
52
|
'description': value.description,
|
53
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
53
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
54
54
|
'expiring': value.expiring,
|
55
55
|
};
|
56
56
|
}
|
@@ -63,6 +63,18 @@ export interface Settings {
|
|
63
63
|
* @memberof Settings
|
64
64
|
*/
|
65
65
|
impersonation?: boolean;
|
66
|
+
/**
|
67
|
+
* Default token duration
|
68
|
+
* @type {string}
|
69
|
+
* @memberof Settings
|
70
|
+
*/
|
71
|
+
defaultTokenDuration?: string;
|
72
|
+
/**
|
73
|
+
* Default token length
|
74
|
+
* @type {number}
|
75
|
+
* @memberof Settings
|
76
|
+
*/
|
77
|
+
defaultTokenLength?: number;
|
66
78
|
}
|
67
79
|
/**
|
68
80
|
* Check if a given object implements the Settings interface.
|
@@ -35,6 +35,8 @@ export function SettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
|
36
36
|
'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
|
37
37
|
'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
|
38
|
+
'defaultTokenDuration': !exists(json, 'default_token_duration') ? undefined : json['default_token_duration'],
|
39
|
+
'defaultTokenLength': !exists(json, 'default_token_length') ? undefined : json['default_token_length'],
|
38
40
|
};
|
39
41
|
}
|
40
42
|
export function SettingsToJSON(value) {
|
@@ -53,5 +55,7 @@ export function SettingsToJSON(value) {
|
|
53
55
|
'footer_links': value.footerLinks,
|
54
56
|
'gdpr_compliance': value.gdprCompliance,
|
55
57
|
'impersonation': value.impersonation,
|
58
|
+
'default_token_duration': value.defaultTokenDuration,
|
59
|
+
'default_token_length': value.defaultTokenLength,
|
56
60
|
};
|
57
61
|
}
|
@@ -63,6 +63,18 @@ export interface SettingsRequest {
|
|
63
63
|
* @memberof SettingsRequest
|
64
64
|
*/
|
65
65
|
impersonation?: boolean;
|
66
|
+
/**
|
67
|
+
* Default token duration
|
68
|
+
* @type {string}
|
69
|
+
* @memberof SettingsRequest
|
70
|
+
*/
|
71
|
+
defaultTokenDuration?: string;
|
72
|
+
/**
|
73
|
+
* Default token length
|
74
|
+
* @type {number}
|
75
|
+
* @memberof SettingsRequest
|
76
|
+
*/
|
77
|
+
defaultTokenLength?: number;
|
66
78
|
}
|
67
79
|
/**
|
68
80
|
* Check if a given object implements the SettingsRequest interface.
|
@@ -35,6 +35,8 @@ export function SettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
|
36
36
|
'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
|
37
37
|
'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
|
38
|
+
'defaultTokenDuration': !exists(json, 'default_token_duration') ? undefined : json['default_token_duration'],
|
39
|
+
'defaultTokenLength': !exists(json, 'default_token_length') ? undefined : json['default_token_length'],
|
38
40
|
};
|
39
41
|
}
|
40
42
|
export function SettingsRequestToJSON(value) {
|
@@ -53,5 +55,7 @@ export function SettingsRequestToJSON(value) {
|
|
53
55
|
'footer_links': value.footerLinks,
|
54
56
|
'gdpr_compliance': value.gdprCompliance,
|
55
57
|
'impersonation': value.impersonation,
|
58
|
+
'default_token_duration': value.defaultTokenDuration,
|
59
|
+
'default_token_length': value.defaultTokenLength,
|
56
60
|
};
|
57
61
|
}
|
package/dist/esm/models/Token.js
CHANGED
@@ -39,7 +39,7 @@ export function TokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
40
40
|
'userObj': UserFromJSON(json['user_obj']),
|
41
41
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
42
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
42
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
43
43
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
44
44
|
};
|
45
45
|
}
|
@@ -56,7 +56,7 @@ export function TokenToJSON(value) {
|
|
56
56
|
'intent': IntentEnumToJSON(value.intent),
|
57
57
|
'user': value.user,
|
58
58
|
'description': value.description,
|
59
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
59
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
60
60
|
'expiring': value.expiring,
|
61
61
|
};
|
62
62
|
}
|
@@ -39,7 +39,7 @@ export function TokenModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
'provider': OAuth2ProviderFromJSON(json['provider']),
|
40
40
|
'user': UserFromJSON(json['user']),
|
41
41
|
'isExpired': json['is_expired'],
|
42
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
42
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
43
43
|
'scope': json['scope'],
|
44
44
|
'idToken': json['id_token'],
|
45
45
|
'revoked': !exists(json, 'revoked') ? undefined : json['revoked'],
|
@@ -55,7 +55,7 @@ export function TokenModelToJSON(value) {
|
|
55
55
|
return {
|
56
56
|
'provider': OAuth2ProviderToJSON(value.provider),
|
57
57
|
'user': UserToJSON(value.user),
|
58
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
58
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
59
59
|
'scope': value.scope,
|
60
60
|
'revoked': value.revoked,
|
61
61
|
};
|
@@ -34,7 +34,7 @@ export function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
34
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
35
35
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
36
36
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
37
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
37
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
38
38
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
39
39
|
};
|
40
40
|
}
|
@@ -51,7 +51,7 @@ export function TokenRequestToJSON(value) {
|
|
51
51
|
'intent': IntentEnumToJSON(value.intent),
|
52
52
|
'user': value.user,
|
53
53
|
'description': value.description,
|
54
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
54
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
55
55
|
'expiring': value.expiring,
|
56
56
|
};
|
57
57
|
}
|
@@ -33,7 +33,7 @@ export function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
}
|
34
34
|
return {
|
35
35
|
'pk': json['pk'],
|
36
|
-
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
36
|
+
'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
37
37
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
38
38
|
'user': UserFromJSON(json['user']),
|
39
39
|
'application': ApplicationFromJSON(json['application']),
|
@@ -48,7 +48,7 @@ export function UserConsentToJSON(value) {
|
|
48
48
|
return null;
|
49
49
|
}
|
50
50
|
return {
|
51
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
51
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
52
52
|
'expiring': value.expiring,
|
53
53
|
'user': UserToJSON(value.user),
|
54
54
|
'application': ApplicationToJSON(value.application),
|
@@ -51,7 +51,7 @@ function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
51
|
'lastIp': json['last_ip'],
|
52
52
|
'lastUserAgent': !(0, runtime_1.exists)(json, 'last_user_agent') ? undefined : json['last_user_agent'],
|
53
53
|
'lastUsed': (new Date(json['last_used'])),
|
54
|
-
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
|
54
|
+
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
|
55
55
|
};
|
56
56
|
}
|
57
57
|
exports.AuthenticatedSessionFromJSONTyped = AuthenticatedSessionFromJSONTyped;
|
@@ -70,7 +70,7 @@ function AuthenticatedSessionToJSON(value) {
|
|
70
70
|
'user': value.user,
|
71
71
|
'last_ip': value.lastIp,
|
72
72
|
'last_user_agent': value.lastUserAgent,
|
73
|
-
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
73
|
+
'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
|
74
74
|
};
|
75
75
|
}
|
76
76
|
exports.AuthenticatedSessionToJSON = AuthenticatedSessionToJSON;
|
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
|
|
13
13
|
import type { FlowSet } from './FlowSet';
|
14
14
|
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
|
15
15
|
import type { UserVerificationEnum } from './UserVerificationEnum';
|
16
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
16
17
|
/**
|
17
18
|
* AuthenticatorValidateStage Serializer
|
18
19
|
* @export
|
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
|
|
91
92
|
* @memberof AuthenticatorValidateStage
|
92
93
|
*/
|
93
94
|
webauthnUserVerification?: UserVerificationEnum;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {Array<string>}
|
98
|
+
* @memberof AuthenticatorValidateStage
|
99
|
+
*/
|
100
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {Array<WebAuthnDeviceType>}
|
104
|
+
* @memberof AuthenticatorValidateStage
|
105
|
+
*/
|
106
|
+
readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
|
94
107
|
}
|
95
108
|
/**
|
96
109
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
@@ -19,6 +19,7 @@ const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
|
|
19
19
|
const FlowSet_1 = require("./FlowSet");
|
20
20
|
const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
|
21
21
|
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
22
|
+
const WebAuthnDeviceType_1 = require("./WebAuthnDeviceType");
|
22
23
|
/**
|
23
24
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
24
25
|
*/
|
@@ -30,6 +31,7 @@ function instanceOfAuthenticatorValidateStage(value) {
|
|
30
31
|
isInstance = isInstance && "verboseName" in value;
|
31
32
|
isInstance = isInstance && "verboseNamePlural" in value;
|
32
33
|
isInstance = isInstance && "metaModelName" in value;
|
34
|
+
isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
|
33
35
|
return isInstance;
|
34
36
|
}
|
35
37
|
exports.instanceOfAuthenticatorValidateStage = instanceOfAuthenticatorValidateStage;
|
@@ -54,6 +56,8 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
56
|
'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
55
57
|
'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
56
58
|
'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
|
59
|
+
'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
60
|
+
'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)),
|
57
61
|
};
|
58
62
|
}
|
59
63
|
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
|
@@ -72,6 +76,7 @@ function AuthenticatorValidateStageToJSON(value) {
|
|
72
76
|
'configuration_stages': value.configurationStages,
|
73
77
|
'last_auth_threshold': value.lastAuthThreshold,
|
74
78
|
'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
|
79
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
75
80
|
};
|
76
81
|
}
|
77
82
|
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
|
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof AuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof AuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the AuthenticatorValidateStageRequest interface.
|