@dynamic-labs/sdk-api-core 0.0.516 → 0.0.518
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +213 -0
- package/src/apis/SDKApi.d.ts +69 -1
- package/src/apis/SDKApi.js +213 -0
- package/src/index.cjs +108 -0
- package/src/index.js +22 -0
- package/src/models/AttestationConveyancePreference.cjs +42 -0
- package/src/models/AttestationConveyancePreference.d.ts +25 -0
- package/src/models/AttestationConveyancePreference.js +36 -0
- package/src/models/AuthenticationExtensionsClientInputs.cjs +37 -0
- package/src/models/AuthenticationExtensionsClientInputs.d.ts +39 -0
- package/src/models/AuthenticationExtensionsClientInputs.js +31 -0
- package/src/models/AuthenticationExtensionsClientOutputs.cjs +37 -0
- package/src/models/AuthenticationExtensionsClientOutputs.d.ts +39 -0
- package/src/models/AuthenticationExtensionsClientOutputs.js +31 -0
- package/src/models/AuthenticatorAssertionResponse.cjs +39 -0
- package/src/models/AuthenticatorAssertionResponse.d.ts +45 -0
- package/src/models/AuthenticatorAssertionResponse.js +33 -0
- package/src/models/AuthenticatorAttachment.cjs +40 -0
- package/src/models/AuthenticatorAttachment.d.ts +23 -0
- package/src/models/AuthenticatorAttachment.js +34 -0
- package/src/models/AuthenticatorAttestationResponse.cjs +41 -0
- package/src/models/AuthenticatorAttestationResponse.d.ts +51 -0
- package/src/models/AuthenticatorAttestationResponse.js +35 -0
- package/src/models/AuthenticatorSelectionCriteria.cjs +42 -0
- package/src/models/AuthenticatorSelectionCriteria.d.ts +48 -0
- package/src/models/AuthenticatorSelectionCriteria.js +36 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponse.cjs +38 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponse.d.ts +41 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponse.js +32 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponseAttestation.cjs +46 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponseAttestation.d.ts +60 -0
- package/src/models/MFAAuthPasskeyDeviceGetResponseAttestation.js +40 -0
- package/src/models/MFAAuthPasskeyDevicePostRequest.cjs +35 -0
- package/src/models/MFAAuthPasskeyDevicePostRequest.d.ts +34 -0
- package/src/models/MFAAuthPasskeyDevicePostRequest.js +29 -0
- package/src/models/MFADeviceType.cjs +1 -0
- package/src/models/MFADeviceType.d.ts +2 -1
- package/src/models/MFADeviceType.js +1 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponse.cjs +38 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponse.d.ts +41 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponse.js +32 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponseRegistration.cjs +56 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponseRegistration.d.ts +82 -0
- package/src/models/MFARegisterPasskeyDeviceGetResponseRegistration.js +50 -0
- package/src/models/MFARegisterPasskeyDevicePostRequest.cjs +35 -0
- package/src/models/MFARegisterPasskeyDevicePostRequest.d.ts +34 -0
- package/src/models/MFARegisterPasskeyDevicePostRequest.js +29 -0
- package/src/models/PasskeyRegisterVerifyRequest.cjs +47 -0
- package/src/models/PasskeyRegisterVerifyRequest.d.ts +61 -0
- package/src/models/PasskeyRegisterVerifyRequest.js +41 -0
- package/src/models/PasskeyVerifyRequest.cjs +47 -0
- package/src/models/PasskeyVerifyRequest.d.ts +61 -0
- package/src/models/PasskeyVerifyRequest.js +41 -0
- package/src/models/PublicKeyCredentialDescriptor.cjs +35 -0
- package/src/models/PublicKeyCredentialDescriptor.d.ts +34 -0
- package/src/models/PublicKeyCredentialDescriptor.js +29 -0
- package/src/models/PublicKeyCredentialParameters.cjs +35 -0
- package/src/models/PublicKeyCredentialParameters.d.ts +34 -0
- package/src/models/PublicKeyCredentialParameters.js +29 -0
- package/src/models/PublicKeyCredentialRpEntity.cjs +35 -0
- package/src/models/PublicKeyCredentialRpEntity.d.ts +33 -0
- package/src/models/PublicKeyCredentialRpEntity.js +29 -0
- package/src/models/PublicKeyCredentialType.cjs +39 -0
- package/src/models/PublicKeyCredentialType.d.ts +22 -0
- package/src/models/PublicKeyCredentialType.js +33 -0
- package/src/models/PublicKeyCredentialUserEntity.cjs +47 -0
- package/src/models/PublicKeyCredentialUserEntity.d.ts +39 -0
- package/src/models/PublicKeyCredentialUserEntity.js +41 -0
- package/src/models/ResidentKeyRequirement.cjs +41 -0
- package/src/models/ResidentKeyRequirement.d.ts +24 -0
- package/src/models/ResidentKeyRequirement.js +35 -0
- package/src/models/UserVerificationRequirement.cjs +41 -0
- package/src/models/UserVerificationRequirement.d.ts +24 -0
- package/src/models/UserVerificationRequirement.js +35 -0
- package/src/models/index.d.ts +22 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AuthenticatorAssertionResponseFromJSON(json) {
|
|
9
|
+
return AuthenticatorAssertionResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AuthenticatorAssertionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'clientDataJSON': json['clientDataJSON'],
|
|
17
|
+
'authenticatorData': json['authenticatorData'],
|
|
18
|
+
'signature': json['signature'],
|
|
19
|
+
'userHandle': !runtime.exists(json, 'userHandle') ? undefined : json['userHandle'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function AuthenticatorAssertionResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'clientDataJSON': value.clientDataJSON,
|
|
31
|
+
'authenticatorData': value.authenticatorData,
|
|
32
|
+
'signature': value.signature,
|
|
33
|
+
'userHandle': value.userHandle,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.AuthenticatorAssertionResponseFromJSON = AuthenticatorAssertionResponseFromJSON;
|
|
38
|
+
exports.AuthenticatorAssertionResponseFromJSONTyped = AuthenticatorAssertionResponseFromJSONTyped;
|
|
39
|
+
exports.AuthenticatorAssertionResponseToJSON = AuthenticatorAssertionResponseToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorAssertionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorAssertionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticatorAssertionResponse
|
|
22
|
+
*/
|
|
23
|
+
clientDataJSON: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorAssertionResponse
|
|
28
|
+
*/
|
|
29
|
+
authenticatorData: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticatorAssertionResponse
|
|
34
|
+
*/
|
|
35
|
+
signature: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AuthenticatorAssertionResponse
|
|
40
|
+
*/
|
|
41
|
+
userHandle?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function AuthenticatorAssertionResponseFromJSON(json: any): AuthenticatorAssertionResponse;
|
|
44
|
+
export declare function AuthenticatorAssertionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorAssertionResponse;
|
|
45
|
+
export declare function AuthenticatorAssertionResponseToJSON(value?: AuthenticatorAssertionResponse | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AuthenticatorAssertionResponseFromJSON(json) {
|
|
5
|
+
return AuthenticatorAssertionResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AuthenticatorAssertionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'clientDataJSON': json['clientDataJSON'],
|
|
13
|
+
'authenticatorData': json['authenticatorData'],
|
|
14
|
+
'signature': json['signature'],
|
|
15
|
+
'userHandle': !exists(json, 'userHandle') ? undefined : json['userHandle'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function AuthenticatorAssertionResponseToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'clientDataJSON': value.clientDataJSON,
|
|
27
|
+
'authenticatorData': value.authenticatorData,
|
|
28
|
+
'signature': value.signature,
|
|
29
|
+
'userHandle': value.userHandle,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { AuthenticatorAssertionResponseFromJSON, AuthenticatorAssertionResponseFromJSONTyped, AuthenticatorAssertionResponseToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.AuthenticatorAttachment = void 0;
|
|
24
|
+
(function (AuthenticatorAttachment) {
|
|
25
|
+
AuthenticatorAttachment["CrossPlatform"] = "cross-platform";
|
|
26
|
+
AuthenticatorAttachment["Platform"] = "platform";
|
|
27
|
+
})(exports.AuthenticatorAttachment || (exports.AuthenticatorAttachment = {}));
|
|
28
|
+
function AuthenticatorAttachmentFromJSON(json) {
|
|
29
|
+
return AuthenticatorAttachmentFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function AuthenticatorAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function AuthenticatorAttachmentToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.AuthenticatorAttachmentFromJSON = AuthenticatorAttachmentFromJSON;
|
|
39
|
+
exports.AuthenticatorAttachmentFromJSONTyped = AuthenticatorAttachmentFromJSONTyped;
|
|
40
|
+
exports.AuthenticatorAttachmentToJSON = AuthenticatorAttachmentToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum AuthenticatorAttachment {
|
|
18
|
+
CrossPlatform = "cross-platform",
|
|
19
|
+
Platform = "platform"
|
|
20
|
+
}
|
|
21
|
+
export declare function AuthenticatorAttachmentFromJSON(json: any): AuthenticatorAttachment;
|
|
22
|
+
export declare function AuthenticatorAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorAttachment;
|
|
23
|
+
export declare function AuthenticatorAttachmentToJSON(value?: AuthenticatorAttachment | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var AuthenticatorAttachment;
|
|
20
|
+
(function (AuthenticatorAttachment) {
|
|
21
|
+
AuthenticatorAttachment["CrossPlatform"] = "cross-platform";
|
|
22
|
+
AuthenticatorAttachment["Platform"] = "platform";
|
|
23
|
+
})(AuthenticatorAttachment || (AuthenticatorAttachment = {}));
|
|
24
|
+
function AuthenticatorAttachmentFromJSON(json) {
|
|
25
|
+
return AuthenticatorAttachmentFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function AuthenticatorAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function AuthenticatorAttachmentToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { AuthenticatorAttachment, AuthenticatorAttachmentFromJSON, AuthenticatorAttachmentFromJSONTyped, AuthenticatorAttachmentToJSON };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AuthenticatorAttestationResponseFromJSON(json) {
|
|
9
|
+
return AuthenticatorAttestationResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AuthenticatorAttestationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'clientDataJSON': json['clientDataJSON'],
|
|
17
|
+
'attestationObject': json['attestationObject'],
|
|
18
|
+
'authenticatorData': !runtime.exists(json, 'authenticatorData') ? undefined : json['authenticatorData'],
|
|
19
|
+
'publicKeyAlgorithm': !runtime.exists(json, 'publicKeyAlgorithm') ? undefined : json['publicKeyAlgorithm'],
|
|
20
|
+
'publicKey': !runtime.exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function AuthenticatorAttestationResponseToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'clientDataJSON': value.clientDataJSON,
|
|
32
|
+
'attestationObject': value.attestationObject,
|
|
33
|
+
'authenticatorData': value.authenticatorData,
|
|
34
|
+
'publicKeyAlgorithm': value.publicKeyAlgorithm,
|
|
35
|
+
'publicKey': value.publicKey,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.AuthenticatorAttestationResponseFromJSON = AuthenticatorAttestationResponseFromJSON;
|
|
40
|
+
exports.AuthenticatorAttestationResponseFromJSONTyped = AuthenticatorAttestationResponseFromJSONTyped;
|
|
41
|
+
exports.AuthenticatorAttestationResponseToJSON = AuthenticatorAttestationResponseToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorAttestationResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorAttestationResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticatorAttestationResponse
|
|
22
|
+
*/
|
|
23
|
+
clientDataJSON: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorAttestationResponse
|
|
28
|
+
*/
|
|
29
|
+
attestationObject: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticatorAttestationResponse
|
|
34
|
+
*/
|
|
35
|
+
authenticatorData?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AuthenticatorAttestationResponse
|
|
40
|
+
*/
|
|
41
|
+
publicKeyAlgorithm?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AuthenticatorAttestationResponse
|
|
46
|
+
*/
|
|
47
|
+
publicKey?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function AuthenticatorAttestationResponseFromJSON(json: any): AuthenticatorAttestationResponse;
|
|
50
|
+
export declare function AuthenticatorAttestationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorAttestationResponse;
|
|
51
|
+
export declare function AuthenticatorAttestationResponseToJSON(value?: AuthenticatorAttestationResponse | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AuthenticatorAttestationResponseFromJSON(json) {
|
|
5
|
+
return AuthenticatorAttestationResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AuthenticatorAttestationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'clientDataJSON': json['clientDataJSON'],
|
|
13
|
+
'attestationObject': json['attestationObject'],
|
|
14
|
+
'authenticatorData': !exists(json, 'authenticatorData') ? undefined : json['authenticatorData'],
|
|
15
|
+
'publicKeyAlgorithm': !exists(json, 'publicKeyAlgorithm') ? undefined : json['publicKeyAlgorithm'],
|
|
16
|
+
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function AuthenticatorAttestationResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'clientDataJSON': value.clientDataJSON,
|
|
28
|
+
'attestationObject': value.attestationObject,
|
|
29
|
+
'authenticatorData': value.authenticatorData,
|
|
30
|
+
'publicKeyAlgorithm': value.publicKeyAlgorithm,
|
|
31
|
+
'publicKey': value.publicKey,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { AuthenticatorAttestationResponseFromJSON, AuthenticatorAttestationResponseFromJSONTyped, AuthenticatorAttestationResponseToJSON };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AuthenticatorAttachment = require('./AuthenticatorAttachment.cjs');
|
|
7
|
+
var ResidentKeyRequirement = require('./ResidentKeyRequirement.cjs');
|
|
8
|
+
var UserVerificationRequirement = require('./UserVerificationRequirement.cjs');
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
function AuthenticatorSelectionCriteriaFromJSON(json) {
|
|
12
|
+
return AuthenticatorSelectionCriteriaFromJSONTyped(json);
|
|
13
|
+
}
|
|
14
|
+
function AuthenticatorSelectionCriteriaFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if ((json === undefined) || (json === null)) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
'authenticatorAttachment': !runtime.exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachment.AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
|
|
20
|
+
'requireResidentKey': !runtime.exists(json, 'requireResidentKey') ? undefined : json['requireResidentKey'],
|
|
21
|
+
'residentKey': !runtime.exists(json, 'residentKey') ? undefined : ResidentKeyRequirement.ResidentKeyRequirementFromJSON(json['residentKey']),
|
|
22
|
+
'userVerification': !runtime.exists(json, 'userVerification') ? undefined : UserVerificationRequirement.UserVerificationRequirementFromJSON(json['userVerification']),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function AuthenticatorSelectionCriteriaToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'authenticatorAttachment': AuthenticatorAttachment.AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
|
|
34
|
+
'requireResidentKey': value.requireResidentKey,
|
|
35
|
+
'residentKey': ResidentKeyRequirement.ResidentKeyRequirementToJSON(value.residentKey),
|
|
36
|
+
'userVerification': UserVerificationRequirement.UserVerificationRequirementToJSON(value.userVerification),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.AuthenticatorSelectionCriteriaFromJSON = AuthenticatorSelectionCriteriaFromJSON;
|
|
41
|
+
exports.AuthenticatorSelectionCriteriaFromJSONTyped = AuthenticatorSelectionCriteriaFromJSONTyped;
|
|
42
|
+
exports.AuthenticatorSelectionCriteriaToJSON = AuthenticatorSelectionCriteriaToJSON;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AuthenticatorAttachment } from './AuthenticatorAttachment';
|
|
13
|
+
import { ResidentKeyRequirement } from './ResidentKeyRequirement';
|
|
14
|
+
import { UserVerificationRequirement } from './UserVerificationRequirement';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuthenticatorSelectionCriteria
|
|
19
|
+
*/
|
|
20
|
+
export interface AuthenticatorSelectionCriteria {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {AuthenticatorAttachment}
|
|
24
|
+
* @memberof AuthenticatorSelectionCriteria
|
|
25
|
+
*/
|
|
26
|
+
authenticatorAttachment?: AuthenticatorAttachment;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof AuthenticatorSelectionCriteria
|
|
31
|
+
*/
|
|
32
|
+
requireResidentKey?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {ResidentKeyRequirement}
|
|
36
|
+
* @memberof AuthenticatorSelectionCriteria
|
|
37
|
+
*/
|
|
38
|
+
residentKey?: ResidentKeyRequirement;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {UserVerificationRequirement}
|
|
42
|
+
* @memberof AuthenticatorSelectionCriteria
|
|
43
|
+
*/
|
|
44
|
+
userVerification?: UserVerificationRequirement;
|
|
45
|
+
}
|
|
46
|
+
export declare function AuthenticatorSelectionCriteriaFromJSON(json: any): AuthenticatorSelectionCriteria;
|
|
47
|
+
export declare function AuthenticatorSelectionCriteriaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSelectionCriteria;
|
|
48
|
+
export declare function AuthenticatorSelectionCriteriaToJSON(value?: AuthenticatorSelectionCriteria | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { AuthenticatorAttachmentFromJSON, AuthenticatorAttachmentToJSON } from './AuthenticatorAttachment.js';
|
|
3
|
+
import { ResidentKeyRequirementFromJSON, ResidentKeyRequirementToJSON } from './ResidentKeyRequirement.js';
|
|
4
|
+
import { UserVerificationRequirementFromJSON, UserVerificationRequirementToJSON } from './UserVerificationRequirement.js';
|
|
5
|
+
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
function AuthenticatorSelectionCriteriaFromJSON(json) {
|
|
8
|
+
return AuthenticatorSelectionCriteriaFromJSONTyped(json);
|
|
9
|
+
}
|
|
10
|
+
function AuthenticatorSelectionCriteriaFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if ((json === undefined) || (json === null)) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
'authenticatorAttachment': !exists(json, 'authenticatorAttachment') ? undefined : AuthenticatorAttachmentFromJSON(json['authenticatorAttachment']),
|
|
16
|
+
'requireResidentKey': !exists(json, 'requireResidentKey') ? undefined : json['requireResidentKey'],
|
|
17
|
+
'residentKey': !exists(json, 'residentKey') ? undefined : ResidentKeyRequirementFromJSON(json['residentKey']),
|
|
18
|
+
'userVerification': !exists(json, 'userVerification') ? undefined : UserVerificationRequirementFromJSON(json['userVerification']),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function AuthenticatorSelectionCriteriaToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'authenticatorAttachment': AuthenticatorAttachmentToJSON(value.authenticatorAttachment),
|
|
30
|
+
'requireResidentKey': value.requireResidentKey,
|
|
31
|
+
'residentKey': ResidentKeyRequirementToJSON(value.residentKey),
|
|
32
|
+
'userVerification': UserVerificationRequirementToJSON(value.userVerification),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { AuthenticatorSelectionCriteriaFromJSON, AuthenticatorSelectionCriteriaFromJSONTyped, AuthenticatorSelectionCriteriaToJSON };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var MFAAuthPasskeyDeviceGetResponseAttestation = require('./MFAAuthPasskeyDeviceGetResponseAttestation.cjs');
|
|
6
|
+
var MFADeviceType = require('./MFADeviceType.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function MFAAuthPasskeyDeviceGetResponseFromJSON(json) {
|
|
10
|
+
return MFAAuthPasskeyDeviceGetResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function MFAAuthPasskeyDeviceGetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'type': MFADeviceType.MFADeviceTypeFromJSON(json['type']),
|
|
19
|
+
'attestation': MFAAuthPasskeyDeviceGetResponseAttestation.MFAAuthPasskeyDeviceGetResponseAttestationFromJSON(json['attestation']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function MFAAuthPasskeyDeviceGetResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': value.id,
|
|
31
|
+
'type': MFADeviceType.MFADeviceTypeToJSON(value.type),
|
|
32
|
+
'attestation': MFAAuthPasskeyDeviceGetResponseAttestation.MFAAuthPasskeyDeviceGetResponseAttestationToJSON(value.attestation),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.MFAAuthPasskeyDeviceGetResponseFromJSON = MFAAuthPasskeyDeviceGetResponseFromJSON;
|
|
37
|
+
exports.MFAAuthPasskeyDeviceGetResponseFromJSONTyped = MFAAuthPasskeyDeviceGetResponseFromJSONTyped;
|
|
38
|
+
exports.MFAAuthPasskeyDeviceGetResponseToJSON = MFAAuthPasskeyDeviceGetResponseToJSON;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { MFAAuthPasskeyDeviceGetResponseAttestation } from './MFAAuthPasskeyDeviceGetResponseAttestation';
|
|
13
|
+
import { MFADeviceType } from './MFADeviceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MFAAuthPasskeyDeviceGetResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface MFAAuthPasskeyDeviceGetResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof MFAAuthPasskeyDeviceGetResponse
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {MFADeviceType}
|
|
29
|
+
* @memberof MFAAuthPasskeyDeviceGetResponse
|
|
30
|
+
*/
|
|
31
|
+
type: MFADeviceType;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {MFAAuthPasskeyDeviceGetResponseAttestation}
|
|
35
|
+
* @memberof MFAAuthPasskeyDeviceGetResponse
|
|
36
|
+
*/
|
|
37
|
+
attestation: MFAAuthPasskeyDeviceGetResponseAttestation;
|
|
38
|
+
}
|
|
39
|
+
export declare function MFAAuthPasskeyDeviceGetResponseFromJSON(json: any): MFAAuthPasskeyDeviceGetResponse;
|
|
40
|
+
export declare function MFAAuthPasskeyDeviceGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAAuthPasskeyDeviceGetResponse;
|
|
41
|
+
export declare function MFAAuthPasskeyDeviceGetResponseToJSON(value?: MFAAuthPasskeyDeviceGetResponse | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MFAAuthPasskeyDeviceGetResponseAttestationFromJSON, MFAAuthPasskeyDeviceGetResponseAttestationToJSON } from './MFAAuthPasskeyDeviceGetResponseAttestation.js';
|
|
2
|
+
import { MFADeviceTypeFromJSON, MFADeviceTypeToJSON } from './MFADeviceType.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function MFAAuthPasskeyDeviceGetResponseFromJSON(json) {
|
|
6
|
+
return MFAAuthPasskeyDeviceGetResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function MFAAuthPasskeyDeviceGetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'type': MFADeviceTypeFromJSON(json['type']),
|
|
15
|
+
'attestation': MFAAuthPasskeyDeviceGetResponseAttestationFromJSON(json['attestation']),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function MFAAuthPasskeyDeviceGetResponseToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'id': value.id,
|
|
27
|
+
'type': MFADeviceTypeToJSON(value.type),
|
|
28
|
+
'attestation': MFAAuthPasskeyDeviceGetResponseAttestationToJSON(value.attestation),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { MFAAuthPasskeyDeviceGetResponseFromJSON, MFAAuthPasskeyDeviceGetResponseFromJSONTyped, MFAAuthPasskeyDeviceGetResponseToJSON };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AuthenticationExtensionsClientInputs = require('./AuthenticationExtensionsClientInputs.cjs');
|
|
7
|
+
var PublicKeyCredentialDescriptor = require('./PublicKeyCredentialDescriptor.cjs');
|
|
8
|
+
var UserVerificationRequirement = require('./UserVerificationRequirement.cjs');
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
function MFAAuthPasskeyDeviceGetResponseAttestationFromJSON(json) {
|
|
12
|
+
return MFAAuthPasskeyDeviceGetResponseAttestationFromJSONTyped(json);
|
|
13
|
+
}
|
|
14
|
+
function MFAAuthPasskeyDeviceGetResponseAttestationFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if ((json === undefined) || (json === null)) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
'rpId': !runtime.exists(json, 'rpId') ? undefined : json['rpId'],
|
|
20
|
+
'challenge': json['challenge'],
|
|
21
|
+
'timeout': !runtime.exists(json, 'timeout') ? undefined : json['timeout'],
|
|
22
|
+
'userVerification': !runtime.exists(json, 'userVerification') ? undefined : UserVerificationRequirement.UserVerificationRequirementFromJSON(json['userVerification']),
|
|
23
|
+
'allowCredentials': !runtime.exists(json, 'allowCredentials') ? undefined : (json['allowCredentials'].map(PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorFromJSON)),
|
|
24
|
+
'extensions': !runtime.exists(json, 'extensions') ? undefined : AuthenticationExtensionsClientInputs.AuthenticationExtensionsClientInputsFromJSON(json['extensions']),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function MFAAuthPasskeyDeviceGetResponseAttestationToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'rpId': value.rpId,
|
|
36
|
+
'challenge': value.challenge,
|
|
37
|
+
'timeout': value.timeout,
|
|
38
|
+
'userVerification': UserVerificationRequirement.UserVerificationRequirementToJSON(value.userVerification),
|
|
39
|
+
'allowCredentials': value.allowCredentials === undefined ? undefined : (value.allowCredentials.map(PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorToJSON)),
|
|
40
|
+
'extensions': AuthenticationExtensionsClientInputs.AuthenticationExtensionsClientInputsToJSON(value.extensions),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.MFAAuthPasskeyDeviceGetResponseAttestationFromJSON = MFAAuthPasskeyDeviceGetResponseAttestationFromJSON;
|
|
45
|
+
exports.MFAAuthPasskeyDeviceGetResponseAttestationFromJSONTyped = MFAAuthPasskeyDeviceGetResponseAttestationFromJSONTyped;
|
|
46
|
+
exports.MFAAuthPasskeyDeviceGetResponseAttestationToJSON = MFAAuthPasskeyDeviceGetResponseAttestationToJSON;
|