@trinsic/api 2.1.1-alpha1 → 2.2.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +19 -3
- package/dist/apis/MdlApi.d.ts +80 -0
- package/dist/apis/MdlApi.js +105 -0
- package/dist/apis/NetworkApi.d.ts +14 -15
- package/dist/apis/NetworkApi.js +13 -11
- package/dist/apis/SessionsApi.d.ts +53 -22
- package/dist/apis/SessionsApi.js +57 -15
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/MdlApi.d.ts +80 -0
- package/dist/esm/apis/MdlApi.js +101 -0
- package/dist/esm/apis/NetworkApi.d.ts +14 -15
- package/dist/esm/apis/NetworkApi.js +13 -11
- package/dist/esm/apis/SessionsApi.d.ts +53 -22
- package/dist/esm/apis/SessionsApi.js +58 -16
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppleWalletInput.d.ts +35 -0
- package/dist/esm/models/AppleWalletInput.js +42 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/esm/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +12 -8
- package/dist/esm/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/esm/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +8 -8
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/esm/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/esm/models/CreateMdlExchangeRequest.js +66 -0
- package/dist/esm/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/esm/models/CreateMdlExchangeResponse.js +51 -0
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/esm/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/esm/models/ExternalMdlFieldData.js +48 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/esm/models/FinalizeMdlExchangeRequest.js +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/esm/models/FinalizeMdlExchangeResponse.js +54 -0
- package/dist/esm/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/esm/models/GetAttachmentRequest.js +4 -0
- package/dist/esm/models/GoogleWalletInput.d.ts +35 -0
- package/dist/esm/models/GoogleWalletInput.js +42 -0
- package/dist/esm/models/IdentityData.d.ts +7 -0
- package/dist/esm/models/IdentityData.js +3 -0
- package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
- package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +8 -8
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/esm/models/IntegrationLaunchMethod.js +2 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/Match.d.ts +38 -0
- package/dist/esm/models/Match.js +43 -0
- package/dist/esm/models/MatchData.d.ts +87 -0
- package/dist/esm/models/MatchData.js +60 -0
- package/dist/esm/models/MdlCertificateData.d.ts +58 -0
- package/dist/esm/models/MdlCertificateData.js +59 -0
- package/dist/esm/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/esm/models/MdlExchangeMechanism.js +43 -0
- package/dist/esm/models/MdlFieldDataType.d.ts +28 -0
- package/dist/esm/models/MdlFieldDataType.js +46 -0
- package/dist/esm/models/MdlIdentityData.d.ts +50 -0
- package/dist/esm/models/MdlIdentityData.js +52 -0
- package/dist/esm/models/ProviderContract.d.ts +18 -8
- package/dist/esm/models/ProviderContract.js +4 -0
- package/dist/esm/models/ProviderInput.d.ts +18 -4
- package/dist/esm/models/ProviderInput.js +9 -3
- package/dist/esm/models/RecommendRequest.d.ts +6 -0
- package/dist/esm/models/RecommendRequest.js +4 -0
- package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/esm/models/ResultCollectionMethod.js +2 -1
- package/dist/esm/models/SessionErrorCode.d.ts +2 -0
- package/dist/esm/models/SessionErrorCode.js +3 -1
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/esm/models/SubmitNativeChallengeResponseRequest.js +47 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/esm/models/SubmitNativeChallengeResponseResponse.js +44 -0
- package/dist/esm/models/index.d.ts +18 -3
- package/dist/esm/models/index.js +18 -3
- package/dist/models/AppleWalletInput.d.ts +35 -0
- package/dist/models/AppleWalletInput.js +49 -0
- package/dist/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
- package/dist/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +17 -13
- package/dist/models/CreateDirectProviderSessionResponse.d.ts +46 -0
- package/dist/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +13 -13
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +7 -1
- package/dist/models/CreateHostedProviderSessionRequest.js +4 -0
- package/dist/models/CreateMdlExchangeRequest.d.ts +102 -0
- package/dist/models/CreateMdlExchangeRequest.js +73 -0
- package/dist/models/CreateMdlExchangeResponse.d.ts +48 -0
- package/dist/models/CreateMdlExchangeResponse.js +58 -0
- package/dist/models/CreateWidgetSessionRequest.d.ts +7 -1
- package/dist/models/CreateWidgetSessionRequest.js +4 -0
- package/dist/models/ExternalMdlFieldData.d.ts +39 -0
- package/dist/models/ExternalMdlFieldData.js +55 -0
- package/dist/models/FinalizeMdlExchangeRequest.d.ts +50 -0
- package/dist/models/FinalizeMdlExchangeRequest.js +62 -0
- package/dist/models/FinalizeMdlExchangeResponse.d.ts +55 -0
- package/dist/models/FinalizeMdlExchangeResponse.js +61 -0
- package/dist/models/GetAttachmentRequest.d.ts +6 -0
- package/dist/models/GetAttachmentRequest.js +4 -0
- package/dist/models/GoogleWalletInput.d.ts +35 -0
- package/dist/models/GoogleWalletInput.js +49 -0
- package/dist/models/IdentityData.d.ts +7 -0
- package/dist/models/IdentityData.js +3 -0
- package/dist/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
- package/dist/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +13 -13
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
- package/dist/models/IntegrationLaunchMethod.js +2 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/Match.d.ts +38 -0
- package/dist/models/Match.js +50 -0
- package/dist/models/MatchData.d.ts +87 -0
- package/dist/models/MatchData.js +67 -0
- package/dist/models/MdlCertificateData.d.ts +58 -0
- package/dist/models/MdlCertificateData.js +66 -0
- package/dist/models/MdlExchangeMechanism.d.ts +25 -0
- package/dist/models/MdlExchangeMechanism.js +51 -0
- package/dist/models/MdlFieldDataType.d.ts +28 -0
- package/dist/models/MdlFieldDataType.js +54 -0
- package/dist/models/MdlIdentityData.d.ts +50 -0
- package/dist/models/MdlIdentityData.js +59 -0
- package/dist/models/ProviderContract.d.ts +18 -8
- package/dist/models/ProviderContract.js +4 -0
- package/dist/models/ProviderInput.d.ts +18 -4
- package/dist/models/ProviderInput.js +9 -3
- package/dist/models/RecommendRequest.d.ts +6 -0
- package/dist/models/RecommendRequest.js +4 -0
- package/dist/models/ResultCollectionMethod.d.ts +1 -0
- package/dist/models/ResultCollectionMethod.js +2 -1
- package/dist/models/SessionErrorCode.d.ts +2 -0
- package/dist/models/SessionErrorCode.js +3 -1
- package/dist/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
- package/dist/models/SubmitNativeChallengeResponseRequest.js +54 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
- package/dist/models/SubmitNativeChallengeResponseResponse.js +51 -0
- package/dist/models/index.d.ts +18 -3
- package/dist/models/index.js +18 -3
- package/package.json +1 -1
- package/src/apis/MdlApi.ts +169 -0
- package/src/apis/NetworkApi.ts +33 -19
- package/src/apis/SessionsApi.ts +116 -33
- package/src/apis/index.ts +1 -0
- package/src/models/AppleWalletInput.ts +77 -0
- package/src/models/{CreateAdvancedProviderSessionRequest.ts → CreateDirectProviderSessionRequest.ts} +25 -16
- package/src/models/{CreateAdvancedProviderSessionResponse.ts → CreateDirectProviderSessionResponse.ts} +13 -13
- package/src/models/CreateHostedProviderSessionRequest.ts +10 -1
- package/src/models/CreateMdlExchangeRequest.ts +159 -0
- package/src/models/CreateMdlExchangeResponse.ts +88 -0
- package/src/models/CreateWidgetSessionRequest.ts +10 -1
- package/src/models/ExternalMdlFieldData.ts +85 -0
- package/src/models/FinalizeMdlExchangeRequest.ts +93 -0
- package/src/models/FinalizeMdlExchangeResponse.ts +115 -0
- package/src/models/GetAttachmentRequest.ts +9 -0
- package/src/models/GoogleWalletInput.ts +77 -0
- package/src/models/IdentityData.ts +15 -0
- package/src/models/{IndonesiaDukcapilBiometricMatchInput.ts → IndonesiaDukcapilMatchInput.ts} +19 -19
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/IntegrationLaunchMethod.ts +2 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/Match.ts +73 -0
- package/src/models/MatchData.ts +145 -0
- package/src/models/MdlCertificateData.ts +104 -0
- package/src/models/MdlExchangeMechanism.ts +53 -0
- package/src/models/MdlFieldDataType.ts +56 -0
- package/src/models/MdlIdentityData.ts +99 -0
- package/src/models/ProviderContract.ts +21 -8
- package/src/models/ProviderInput.ts +42 -12
- package/src/models/RecommendRequest.ts +9 -0
- package/src/models/ResultCollectionMethod.ts +2 -1
- package/src/models/SessionErrorCode.ts +3 -1
- package/src/models/SubmitNativeChallengeResponseRequest.ts +75 -0
- package/src/models/SubmitNativeChallengeResponseResponse.ts +74 -0
- package/src/models/index.ts +18 -3
- package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
- package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMdlCertificateData = instanceOfMdlCertificateData;
|
|
17
|
+
exports.MdlCertificateDataFromJSON = MdlCertificateDataFromJSON;
|
|
18
|
+
exports.MdlCertificateDataFromJSONTyped = MdlCertificateDataFromJSONTyped;
|
|
19
|
+
exports.MdlCertificateDataToJSON = MdlCertificateDataToJSON;
|
|
20
|
+
exports.MdlCertificateDataToJSONTyped = MdlCertificateDataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MdlCertificateData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMdlCertificateData(value) {
|
|
25
|
+
if (!('serialNumber' in value) || value['serialNumber'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('commonName' in value) || value['commonName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('stateOrProvinceName' in value) || value['stateOrProvinceName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('notBefore' in value) || value['notBefore'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('notAfter' in value) || value['notAfter'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function MdlCertificateDataFromJSON(json) {
|
|
38
|
+
return MdlCertificateDataFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function MdlCertificateDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'serialNumber': json['serialNumber'],
|
|
46
|
+
'commonName': json['commonName'],
|
|
47
|
+
'stateOrProvinceName': json['stateOrProvinceName'],
|
|
48
|
+
'notBefore': (new Date(json['notBefore'])),
|
|
49
|
+
'notAfter': (new Date(json['notAfter'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function MdlCertificateDataToJSON(json) {
|
|
53
|
+
return MdlCertificateDataToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function MdlCertificateDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'serialNumber': value['serialNumber'],
|
|
61
|
+
'commonName': value['commonName'],
|
|
62
|
+
'stateOrProvinceName': value['stateOrProvinceName'],
|
|
63
|
+
'notBefore': ((value['notBefore']).toISOString()),
|
|
64
|
+
'notAfter': ((value['notAfter']).toISOString()),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
*/
|
|
16
|
+
export declare const MdlExchangeMechanism: {
|
|
17
|
+
readonly NativeApp: "NativeApp";
|
|
18
|
+
readonly DigitalCredentialsApi: "DigitalCredentialsApi";
|
|
19
|
+
};
|
|
20
|
+
export type MdlExchangeMechanism = typeof MdlExchangeMechanism[keyof typeof MdlExchangeMechanism];
|
|
21
|
+
export declare function instanceOfMdlExchangeMechanism(value: any): boolean;
|
|
22
|
+
export declare function MdlExchangeMechanismFromJSON(json: any): MdlExchangeMechanism;
|
|
23
|
+
export declare function MdlExchangeMechanismFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlExchangeMechanism;
|
|
24
|
+
export declare function MdlExchangeMechanismToJSON(value?: MdlExchangeMechanism | null): any;
|
|
25
|
+
export declare function MdlExchangeMechanismToJSONTyped(value: any, ignoreDiscriminator: boolean): MdlExchangeMechanism;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MdlExchangeMechanism = void 0;
|
|
17
|
+
exports.instanceOfMdlExchangeMechanism = instanceOfMdlExchangeMechanism;
|
|
18
|
+
exports.MdlExchangeMechanismFromJSON = MdlExchangeMechanismFromJSON;
|
|
19
|
+
exports.MdlExchangeMechanismFromJSONTyped = MdlExchangeMechanismFromJSONTyped;
|
|
20
|
+
exports.MdlExchangeMechanismToJSON = MdlExchangeMechanismToJSON;
|
|
21
|
+
exports.MdlExchangeMechanismToJSONTyped = MdlExchangeMechanismToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MdlExchangeMechanism = {
|
|
27
|
+
NativeApp: 'NativeApp',
|
|
28
|
+
DigitalCredentialsApi: 'DigitalCredentialsApi'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfMdlExchangeMechanism(value) {
|
|
31
|
+
for (const key in exports.MdlExchangeMechanism) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.MdlExchangeMechanism, key)) {
|
|
33
|
+
if (exports.MdlExchangeMechanism[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function MdlExchangeMechanismFromJSON(json) {
|
|
41
|
+
return MdlExchangeMechanismFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function MdlExchangeMechanismFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function MdlExchangeMechanismToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function MdlExchangeMechanismToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
*/
|
|
16
|
+
export declare const MdlFieldDataType: {
|
|
17
|
+
readonly String: "String";
|
|
18
|
+
readonly Boolean: "Boolean";
|
|
19
|
+
readonly Number: "Number";
|
|
20
|
+
readonly Base64Url: "Base64Url";
|
|
21
|
+
readonly EncodedCbor: "EncodedCbor";
|
|
22
|
+
};
|
|
23
|
+
export type MdlFieldDataType = typeof MdlFieldDataType[keyof typeof MdlFieldDataType];
|
|
24
|
+
export declare function instanceOfMdlFieldDataType(value: any): boolean;
|
|
25
|
+
export declare function MdlFieldDataTypeFromJSON(json: any): MdlFieldDataType;
|
|
26
|
+
export declare function MdlFieldDataTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlFieldDataType;
|
|
27
|
+
export declare function MdlFieldDataTypeToJSON(value?: MdlFieldDataType | null): any;
|
|
28
|
+
export declare function MdlFieldDataTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): MdlFieldDataType;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MdlFieldDataType = void 0;
|
|
17
|
+
exports.instanceOfMdlFieldDataType = instanceOfMdlFieldDataType;
|
|
18
|
+
exports.MdlFieldDataTypeFromJSON = MdlFieldDataTypeFromJSON;
|
|
19
|
+
exports.MdlFieldDataTypeFromJSONTyped = MdlFieldDataTypeFromJSONTyped;
|
|
20
|
+
exports.MdlFieldDataTypeToJSON = MdlFieldDataTypeToJSON;
|
|
21
|
+
exports.MdlFieldDataTypeToJSONTyped = MdlFieldDataTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MdlFieldDataType = {
|
|
27
|
+
String: 'String',
|
|
28
|
+
Boolean: 'Boolean',
|
|
29
|
+
Number: 'Number',
|
|
30
|
+
Base64Url: 'Base64Url',
|
|
31
|
+
EncodedCbor: 'EncodedCbor'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfMdlFieldDataType(value) {
|
|
34
|
+
for (const key in exports.MdlFieldDataType) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.MdlFieldDataType, key)) {
|
|
36
|
+
if (exports.MdlFieldDataType[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function MdlFieldDataTypeFromJSON(json) {
|
|
44
|
+
return MdlFieldDataTypeFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MdlFieldDataTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function MdlFieldDataTypeToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function MdlFieldDataTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trinsic API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 type { MdlCertificateData } from './MdlCertificateData';
|
|
13
|
+
import type { ExternalMdlFieldData } from './ExternalMdlFieldData';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MdlIdentityData
|
|
18
|
+
*/
|
|
19
|
+
export interface MdlIdentityData {
|
|
20
|
+
/**
|
|
21
|
+
* Information about the IACA Root Certificate which signed the Issuer Certificate for this mDL.
|
|
22
|
+
* @type {MdlCertificateData}
|
|
23
|
+
* @memberof MdlIdentityData
|
|
24
|
+
*/
|
|
25
|
+
iacaRootCertificate: MdlCertificateData;
|
|
26
|
+
/**
|
|
27
|
+
* Information about the Document Signer Certificate which signed the mDL presented by the user.
|
|
28
|
+
* @type {MdlCertificateData}
|
|
29
|
+
* @memberof MdlIdentityData
|
|
30
|
+
*/
|
|
31
|
+
documentSignerCertificate: MdlCertificateData;
|
|
32
|
+
/**
|
|
33
|
+
* The namespaces, and fields within those namespaces, which were present in the processed mDL.
|
|
34
|
+
* @type {{ [key: string]: { [key: string]: ExternalMdlFieldData; }; }}
|
|
35
|
+
* @memberof MdlIdentityData
|
|
36
|
+
*/
|
|
37
|
+
nameSpaces: {
|
|
38
|
+
[key: string]: {
|
|
39
|
+
[key: string]: ExternalMdlFieldData;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the MdlIdentityData interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfMdlIdentityData(value: object): value is MdlIdentityData;
|
|
47
|
+
export declare function MdlIdentityDataFromJSON(json: any): MdlIdentityData;
|
|
48
|
+
export declare function MdlIdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlIdentityData;
|
|
49
|
+
export declare function MdlIdentityDataToJSON(json: any): MdlIdentityData;
|
|
50
|
+
export declare function MdlIdentityDataToJSONTyped(value?: MdlIdentityData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Trinsic API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMdlIdentityData = instanceOfMdlIdentityData;
|
|
17
|
+
exports.MdlIdentityDataFromJSON = MdlIdentityDataFromJSON;
|
|
18
|
+
exports.MdlIdentityDataFromJSONTyped = MdlIdentityDataFromJSONTyped;
|
|
19
|
+
exports.MdlIdentityDataToJSON = MdlIdentityDataToJSON;
|
|
20
|
+
exports.MdlIdentityDataToJSONTyped = MdlIdentityDataToJSONTyped;
|
|
21
|
+
const MdlCertificateData_1 = require("./MdlCertificateData");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MdlIdentityData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMdlIdentityData(value) {
|
|
26
|
+
if (!('iacaRootCertificate' in value) || value['iacaRootCertificate'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('documentSignerCertificate' in value) || value['documentSignerCertificate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('nameSpaces' in value) || value['nameSpaces'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function MdlIdentityDataFromJSON(json) {
|
|
35
|
+
return MdlIdentityDataFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function MdlIdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'iacaRootCertificate': (0, MdlCertificateData_1.MdlCertificateDataFromJSON)(json['iacaRootCertificate']),
|
|
43
|
+
'documentSignerCertificate': (0, MdlCertificateData_1.MdlCertificateDataFromJSON)(json['documentSignerCertificate']),
|
|
44
|
+
'nameSpaces': json['nameSpaces'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function MdlIdentityDataToJSON(json) {
|
|
48
|
+
return MdlIdentityDataToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function MdlIdentityDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'iacaRootCertificate': (0, MdlCertificateData_1.MdlCertificateDataToJSON)(value['iacaRootCertificate']),
|
|
56
|
+
'documentSignerCertificate': (0, MdlCertificateData_1.MdlCertificateDataToJSON)(value['documentSignerCertificate']),
|
|
57
|
+
'nameSpaces': value['nameSpaces'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -78,17 +78,17 @@ export interface ProviderContract {
|
|
|
78
78
|
*/
|
|
79
79
|
regions: Array<string>;
|
|
80
80
|
/**
|
|
81
|
-
* Relevant only to
|
|
81
|
+
* Relevant only to Direct Provider Sessions.
|
|
82
82
|
*
|
|
83
|
-
* The `LaunchMethod` which must be supported to launch the Provider Session in
|
|
83
|
+
* The `LaunchMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
|
|
84
84
|
* @type {IntegrationLaunchMethod}
|
|
85
85
|
* @memberof ProviderContract
|
|
86
86
|
*/
|
|
87
87
|
launchMethod: IntegrationLaunchMethod;
|
|
88
88
|
/**
|
|
89
|
-
* Relevant only to
|
|
89
|
+
* Relevant only to Direct Provider Sessions.
|
|
90
90
|
*
|
|
91
|
-
* The `CollectionMethod` which must be supported to launch the Provider Session in
|
|
91
|
+
* The `CollectionMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
|
|
92
92
|
* @type {ResultCollectionMethod}
|
|
93
93
|
* @memberof ProviderContract
|
|
94
94
|
*/
|
|
@@ -104,7 +104,7 @@ export interface ProviderContract {
|
|
|
104
104
|
*/
|
|
105
105
|
resultsMayBeDelayedAfterRedirect: boolean;
|
|
106
106
|
/**
|
|
107
|
-
* Relevant only to
|
|
107
|
+
* Relevant only to Direct Provider Sessions.
|
|
108
108
|
*
|
|
109
109
|
* Whether the Provider requires the `RefreshStepContent` capability.
|
|
110
110
|
*
|
|
@@ -115,7 +115,7 @@ export interface ProviderContract {
|
|
|
115
115
|
*/
|
|
116
116
|
hasRefreshableContent: boolean;
|
|
117
117
|
/**
|
|
118
|
-
* Relevant to Hosted Provider Sessions and
|
|
118
|
+
* Relevant to Hosted Provider Sessions and Direct Provider Sessions.
|
|
119
119
|
*
|
|
120
120
|
* If `true`, this Provider requires provider-specific input on Session creation.
|
|
121
121
|
* If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
|
|
@@ -132,14 +132,24 @@ export interface ProviderContract {
|
|
|
132
132
|
*/
|
|
133
133
|
hasTrinsicInterface: boolean;
|
|
134
134
|
/**
|
|
135
|
-
* Whether this Provider can be fully whitelabeled/OEMed through the
|
|
135
|
+
* Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
|
|
136
136
|
*
|
|
137
|
-
* If `false`, the Provider may still be launched through
|
|
137
|
+
* If `false`, the Provider may still be launched through Direct Provider Sessions;
|
|
138
138
|
* however, it will necessarily require a Trinsic-hosted UI to function.
|
|
139
139
|
* @type {boolean}
|
|
140
140
|
* @memberof ProviderContract
|
|
141
|
+
* @deprecated
|
|
141
142
|
*/
|
|
142
143
|
supportsAdvancedProviderSessions: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
|
|
146
|
+
*
|
|
147
|
+
* If `false`, the Provider may still be launched through Direct Provider Sessions;
|
|
148
|
+
* however, it will necessarily require a Trinsic-hosted UI to function.
|
|
149
|
+
* @type {boolean}
|
|
150
|
+
* @memberof ProviderContract
|
|
151
|
+
*/
|
|
152
|
+
supportsDirectProviderSessions: boolean;
|
|
143
153
|
/**
|
|
144
154
|
* Information about the fields that this Provider will return in verification results.
|
|
145
155
|
* @type {Array<ContractField>}
|
|
@@ -57,6 +57,8 @@ function instanceOfProviderContract(value) {
|
|
|
57
57
|
return false;
|
|
58
58
|
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
|
|
59
59
|
return false;
|
|
60
|
+
if (!('supportsDirectProviderSessions' in value) || value['supportsDirectProviderSessions'] === undefined)
|
|
61
|
+
return false;
|
|
60
62
|
if (!('health' in value) || value['health'] === undefined)
|
|
61
63
|
return false;
|
|
62
64
|
return true;
|
|
@@ -84,6 +86,7 @@ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
86
|
'requiresInput': json['requiresInput'],
|
|
85
87
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
86
88
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
89
|
+
'supportsDirectProviderSessions': json['supportsDirectProviderSessions'],
|
|
87
90
|
'availableFields': json['availableFields'] == null ? undefined : (json['availableFields'].map(ContractField_1.ContractFieldFromJSON)),
|
|
88
91
|
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
|
|
89
92
|
'health': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['health']),
|
|
@@ -112,6 +115,7 @@ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
112
115
|
'requiresInput': value['requiresInput'],
|
|
113
116
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
114
117
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
118
|
+
'supportsDirectProviderSessions': value['supportsDirectProviderSessions'],
|
|
115
119
|
'availableFields': value['availableFields'] == null ? undefined : (value['availableFields'].map(ContractField_1.ContractFieldToJSON)),
|
|
116
120
|
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
|
|
117
121
|
'health': (0, ProviderHealth_1.ProviderHealthToJSON)(value['health']),
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AppleWalletInput } from './AppleWalletInput';
|
|
12
13
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
13
14
|
import type { MexicoCurpInput } from './MexicoCurpInput';
|
|
14
15
|
import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
|
|
15
16
|
import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
|
|
16
17
|
import type { SpidInput } from './SpidInput';
|
|
17
18
|
import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
|
|
18
|
-
import type { IndonesiaDukcapilBiometricMatchInput } from './IndonesiaDukcapilBiometricMatchInput';
|
|
19
19
|
import type { PhilippineMatchInput } from './PhilippineMatchInput';
|
|
20
20
|
import type { PhilippineQRInput } from './PhilippineQRInput';
|
|
21
21
|
import type { BangladeshNidInput } from './BangladeshNidInput';
|
|
@@ -23,7 +23,9 @@ import type { AadhaarInput } from './AadhaarInput';
|
|
|
23
23
|
import type { KenyaNidInput } from './KenyaNidInput';
|
|
24
24
|
import type { NigeriaNinInput } from './NigeriaNinInput';
|
|
25
25
|
import type { SmartIdInput } from './SmartIdInput';
|
|
26
|
+
import type { IndonesiaDukcapilMatchInput } from './IndonesiaDukcapilMatchInput';
|
|
26
27
|
import type { MobileIdInput } from './MobileIdInput';
|
|
28
|
+
import type { GoogleWalletInput } from './GoogleWalletInput';
|
|
27
29
|
import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
|
|
28
30
|
import type { IndonesiaNikInput } from './IndonesiaNikInput';
|
|
29
31
|
import type { IdinInput } from './IdinInput';
|
|
@@ -40,11 +42,11 @@ export interface ProviderInput {
|
|
|
40
42
|
*/
|
|
41
43
|
indonesiaNik?: IndonesiaNikInput | null;
|
|
42
44
|
/**
|
|
43
|
-
* Input for the `indonesia-dukcapil-
|
|
44
|
-
* @type {
|
|
45
|
+
* Input for the `indonesia-dukcapil-match` provider
|
|
46
|
+
* @type {IndonesiaDukcapilMatchInput}
|
|
45
47
|
* @memberof ProviderInput
|
|
46
48
|
*/
|
|
47
|
-
|
|
49
|
+
indonesiaDukcapilMatch?: IndonesiaDukcapilMatchInput | null;
|
|
48
50
|
/**
|
|
49
51
|
* Input for the `mexico-curp-lookup` provider
|
|
50
52
|
* @type {MexicoCurpInput}
|
|
@@ -129,6 +131,18 @@ export interface ProviderInput {
|
|
|
129
131
|
* @memberof ProviderInput
|
|
130
132
|
*/
|
|
131
133
|
spid?: SpidInput | null;
|
|
134
|
+
/**
|
|
135
|
+
* Input for the `google-wallet` provider
|
|
136
|
+
* @type {GoogleWalletInput}
|
|
137
|
+
* @memberof ProviderInput
|
|
138
|
+
*/
|
|
139
|
+
googleWallet?: GoogleWalletInput | null;
|
|
140
|
+
/**
|
|
141
|
+
* Input for the `apple-wallet` provider
|
|
142
|
+
* @type {AppleWalletInput}
|
|
143
|
+
* @memberof ProviderInput
|
|
144
|
+
*/
|
|
145
|
+
appleWallet?: AppleWalletInput | null;
|
|
132
146
|
/**
|
|
133
147
|
* *TEST MODE ONLY.*
|
|
134
148
|
*
|
|
@@ -18,13 +18,13 @@ exports.ProviderInputFromJSON = ProviderInputFromJSON;
|
|
|
18
18
|
exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
|
|
19
19
|
exports.ProviderInputToJSON = ProviderInputToJSON;
|
|
20
20
|
exports.ProviderInputToJSONTyped = ProviderInputToJSONTyped;
|
|
21
|
+
const AppleWalletInput_1 = require("./AppleWalletInput");
|
|
21
22
|
const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
|
|
22
23
|
const MexicoCurpInput_1 = require("./MexicoCurpInput");
|
|
23
24
|
const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
|
|
24
25
|
const TrinsicTestSubProvidersInput_1 = require("./TrinsicTestSubProvidersInput");
|
|
25
26
|
const SpidInput_1 = require("./SpidInput");
|
|
26
27
|
const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
|
|
27
|
-
const IndonesiaDukcapilBiometricMatchInput_1 = require("./IndonesiaDukcapilBiometricMatchInput");
|
|
28
28
|
const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
|
|
29
29
|
const PhilippineQRInput_1 = require("./PhilippineQRInput");
|
|
30
30
|
const BangladeshNidInput_1 = require("./BangladeshNidInput");
|
|
@@ -32,7 +32,9 @@ const AadhaarInput_1 = require("./AadhaarInput");
|
|
|
32
32
|
const KenyaNidInput_1 = require("./KenyaNidInput");
|
|
33
33
|
const NigeriaNinInput_1 = require("./NigeriaNinInput");
|
|
34
34
|
const SmartIdInput_1 = require("./SmartIdInput");
|
|
35
|
+
const IndonesiaDukcapilMatchInput_1 = require("./IndonesiaDukcapilMatchInput");
|
|
35
36
|
const MobileIdInput_1 = require("./MobileIdInput");
|
|
37
|
+
const GoogleWalletInput_1 = require("./GoogleWalletInput");
|
|
36
38
|
const TrinsicTestDatabaseLookupInput_1 = require("./TrinsicTestDatabaseLookupInput");
|
|
37
39
|
const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
|
|
38
40
|
const IdinInput_1 = require("./IdinInput");
|
|
@@ -51,7 +53,7 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
}
|
|
52
54
|
return {
|
|
53
55
|
'indonesiaNik': json['indonesiaNik'] == null ? undefined : (0, IndonesiaNikInput_1.IndonesiaNikInputFromJSON)(json['indonesiaNik']),
|
|
54
|
-
'
|
|
56
|
+
'indonesiaDukcapilMatch': json['indonesiaDukcapilMatch'] == null ? undefined : (0, IndonesiaDukcapilMatchInput_1.IndonesiaDukcapilMatchInputFromJSON)(json['indonesiaDukcapilMatch']),
|
|
55
57
|
'mexicoCurp': json['mexicoCurp'] == null ? undefined : (0, MexicoCurpInput_1.MexicoCurpInputFromJSON)(json['mexicoCurp']),
|
|
56
58
|
'southAfricaNid': json['southAfricaNid'] == null ? undefined : (0, SouthAfricaNidInput_1.SouthAfricaNidInputFromJSON)(json['southAfricaNid']),
|
|
57
59
|
'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
|
|
@@ -66,6 +68,8 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'mobileId': json['mobileId'] == null ? undefined : (0, MobileIdInput_1.MobileIdInputFromJSON)(json['mobileId']),
|
|
67
69
|
'idin': json['idin'] == null ? undefined : (0, IdinInput_1.IdinInputFromJSON)(json['idin']),
|
|
68
70
|
'spid': json['spid'] == null ? undefined : (0, SpidInput_1.SpidInputFromJSON)(json['spid']),
|
|
71
|
+
'googleWallet': json['googleWallet'] == null ? undefined : (0, GoogleWalletInput_1.GoogleWalletInputFromJSON)(json['googleWallet']),
|
|
72
|
+
'appleWallet': json['appleWallet'] == null ? undefined : (0, AppleWalletInput_1.AppleWalletInputFromJSON)(json['appleWallet']),
|
|
69
73
|
'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputFromJSON)(json['trinsicTestDatabaseLookup']),
|
|
70
74
|
'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputFromJSON)(json['trinsicTestSubProviders']),
|
|
71
75
|
};
|
|
@@ -79,7 +83,7 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
83
|
}
|
|
80
84
|
return {
|
|
81
85
|
'indonesiaNik': (0, IndonesiaNikInput_1.IndonesiaNikInputToJSON)(value['indonesiaNik']),
|
|
82
|
-
'
|
|
86
|
+
'indonesiaDukcapilMatch': (0, IndonesiaDukcapilMatchInput_1.IndonesiaDukcapilMatchInputToJSON)(value['indonesiaDukcapilMatch']),
|
|
83
87
|
'mexicoCurp': (0, MexicoCurpInput_1.MexicoCurpInputToJSON)(value['mexicoCurp']),
|
|
84
88
|
'southAfricaNid': (0, SouthAfricaNidInput_1.SouthAfricaNidInputToJSON)(value['southAfricaNid']),
|
|
85
89
|
'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
|
|
@@ -94,6 +98,8 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
98
|
'mobileId': (0, MobileIdInput_1.MobileIdInputToJSON)(value['mobileId']),
|
|
95
99
|
'idin': (0, IdinInput_1.IdinInputToJSON)(value['idin']),
|
|
96
100
|
'spid': (0, SpidInput_1.SpidInputToJSON)(value['spid']),
|
|
101
|
+
'googleWallet': (0, GoogleWalletInput_1.GoogleWalletInputToJSON)(value['googleWallet']),
|
|
102
|
+
'appleWallet': (0, AppleWalletInput_1.AppleWalletInputToJSON)(value['appleWallet']),
|
|
97
103
|
'trinsicTestDatabaseLookup': (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputToJSON)(value['trinsicTestDatabaseLookup']),
|
|
98
104
|
'trinsicTestSubProviders': (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputToJSON)(value['trinsicTestSubProviders']),
|
|
99
105
|
};
|
|
@@ -16,6 +16,12 @@ import type { RecommendationInfo } from './RecommendationInfo';
|
|
|
16
16
|
* @interface RecommendRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface RecommendRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the VerificationProfile to use for this recommendation.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RecommendRequest
|
|
23
|
+
*/
|
|
24
|
+
verificationProfileId: string;
|
|
19
25
|
/**
|
|
20
26
|
* Information about the user you wish to generate a recommendation for.
|
|
21
27
|
* @type {RecommendationInfo}
|
|
@@ -23,6 +23,8 @@ const RecommendationInfo_1 = require("./RecommendationInfo");
|
|
|
23
23
|
* Check if a given object implements the RecommendRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfRecommendRequest(value) {
|
|
26
|
+
if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
function RecommendRequestFromJSON(json) {
|
|
@@ -33,6 +35,7 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
38
|
+
'verificationProfileId': json['verificationProfileId'],
|
|
36
39
|
'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
|
|
37
40
|
'health': json['health'] == null ? undefined : json['health'],
|
|
38
41
|
};
|
|
@@ -45,6 +48,7 @@ function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
48
|
return value;
|
|
46
49
|
}
|
|
47
50
|
return {
|
|
51
|
+
'verificationProfileId': value['verificationProfileId'],
|
|
48
52
|
'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
|
|
49
53
|
'health': value['health'],
|
|
50
54
|
};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const ResultCollectionMethod: {
|
|
17
17
|
readonly PollResult: "PollResult";
|
|
18
18
|
readonly CaptureRedirect: "CaptureRedirect";
|
|
19
|
+
readonly SubmitNativeChallengeResponse: "SubmitNativeChallengeResponse";
|
|
19
20
|
};
|
|
20
21
|
export type ResultCollectionMethod = typeof ResultCollectionMethod[keyof typeof ResultCollectionMethod];
|
|
21
22
|
export declare function instanceOfResultCollectionMethod(value: any): boolean;
|
|
@@ -25,7 +25,8 @@ exports.ResultCollectionMethodToJSONTyped = ResultCollectionMethodToJSONTyped;
|
|
|
25
25
|
*/
|
|
26
26
|
exports.ResultCollectionMethod = {
|
|
27
27
|
PollResult: 'PollResult',
|
|
28
|
-
CaptureRedirect: 'CaptureRedirect'
|
|
28
|
+
CaptureRedirect: 'CaptureRedirect',
|
|
29
|
+
SubmitNativeChallengeResponse: 'SubmitNativeChallengeResponse'
|
|
29
30
|
};
|
|
30
31
|
function instanceOfResultCollectionMethod(value) {
|
|
31
32
|
for (const key in exports.ResultCollectionMethod) {
|
|
@@ -24,6 +24,8 @@ export declare const SessionErrorCode: {
|
|
|
24
24
|
readonly Inauthentic: "Inauthentic";
|
|
25
25
|
readonly UnsupportedDocument: "UnsupportedDocument";
|
|
26
26
|
readonly AssuranceLevelNotMet: "AssuranceLevelNotMet";
|
|
27
|
+
readonly SecurityValidationFailed: "SecurityValidationFailed";
|
|
28
|
+
readonly InvalidResponse: "InvalidResponse";
|
|
27
29
|
};
|
|
28
30
|
export type SessionErrorCode = typeof SessionErrorCode[keyof typeof SessionErrorCode];
|
|
29
31
|
export declare function instanceOfSessionErrorCode(value: any): boolean;
|
|
@@ -33,7 +33,9 @@ exports.SessionErrorCode = {
|
|
|
33
33
|
InvalidImage: 'InvalidImage',
|
|
34
34
|
Inauthentic: 'Inauthentic',
|
|
35
35
|
UnsupportedDocument: 'UnsupportedDocument',
|
|
36
|
-
AssuranceLevelNotMet: 'AssuranceLevelNotMet'
|
|
36
|
+
AssuranceLevelNotMet: 'AssuranceLevelNotMet',
|
|
37
|
+
SecurityValidationFailed: 'SecurityValidationFailed',
|
|
38
|
+
InvalidResponse: 'InvalidResponse'
|
|
37
39
|
};
|
|
38
40
|
function instanceOfSessionErrorCode(value) {
|
|
39
41
|
for (const key in exports.SessionErrorCode) {
|