@trinsic/api 2.0.0-alpha2 → 2.0.0
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 +16 -3
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +32 -9
- package/dist/apis/NetworkApi.js +38 -4
- package/dist/apis/SessionsApi.d.ts +8 -8
- package/dist/apis/SessionsApi.js +4 -4
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +32 -9
- package/dist/esm/apis/NetworkApi.js +39 -5
- package/dist/esm/apis/SessionsApi.d.ts +8 -8
- package/dist/esm/apis/SessionsApi.js +4 -4
- package/dist/esm/models/AadhaarInput.d.ts +2 -2
- package/dist/esm/models/AadhaarInput.js +1 -1
- package/dist/esm/models/Address.d.ts +8 -8
- package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/esm/models/DocumentData.d.ts +6 -6
- package/dist/esm/models/DocumentData.js +2 -2
- package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/IdentityData.d.ts +10 -4
- package/dist/esm/models/IdentityData.js +2 -0
- package/dist/esm/models/IdinInput.d.ts +33 -0
- package/dist/esm/models/IdinInput.js +38 -0
- package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/esm/models/IndonesiaNikInput.js +48 -0
- package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
- package/dist/esm/models/IntegrationStep.d.ts +1 -1
- package/dist/esm/models/KenyaNidInput.d.ts +61 -0
- package/dist/esm/models/KenyaNidInput.js +58 -0
- package/dist/esm/models/Language.d.ts +26 -0
- package/dist/esm/models/Language.js +42 -0
- package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/esm/models/ListProviderContractsResponse.js +41 -0
- package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
- package/dist/esm/models/MexicoCurpInput.js +40 -0
- package/dist/esm/models/MobileIdInput.d.ts +44 -0
- package/dist/esm/models/MobileIdInput.js +43 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
- package/dist/esm/models/NigeriaNinInput.js +58 -0
- package/dist/esm/models/PersonData.d.ts +10 -10
- package/dist/esm/models/PersonData.js +1 -1
- package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/esm/models/PhilippineMatchInput.js +1 -1
- package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderAttachments.d.ts +1 -1
- package/dist/esm/models/ProviderContract.d.ts +146 -0
- package/dist/esm/models/ProviderContract.js +97 -0
- package/dist/esm/models/ProviderInfo.d.ts +0 -6
- package/dist/esm/models/ProviderInfo.js +0 -2
- package/dist/esm/models/ProviderInformation.d.ts +4 -4
- package/dist/esm/models/ProviderInformation.js +1 -5
- package/dist/esm/models/ProviderInput.d.ts +95 -14
- package/dist/esm/models/ProviderInput.js +35 -2
- package/dist/esm/models/RecommendRequest.d.ts +4 -21
- package/dist/esm/models/RecommendRequest.js +3 -8
- package/dist/esm/models/RecommendationInfo.d.ts +55 -0
- package/dist/esm/models/RecommendationInfo.js +44 -0
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/ResultCollection.d.ts +8 -2
- package/dist/esm/models/ResultCollection.js +3 -1
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SmartIdInput.d.ts +31 -0
- package/dist/esm/models/SmartIdInput.js +38 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/esm/models/SouthAfricaNidInput.js +52 -0
- package/dist/esm/models/SpidInput.d.ts +33 -0
- package/dist/esm/models/SpidInput.js +38 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
- package/dist/esm/models/SubProviderMetadata.js +52 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
- package/dist/esm/models/index.d.ts +16 -3
- package/dist/esm/models/index.js +16 -3
- package/dist/models/AadhaarInput.d.ts +2 -2
- package/dist/models/AadhaarInput.js +1 -1
- package/dist/models/Address.d.ts +8 -8
- package/dist/models/AttachmentAccessKeys.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
- package/dist/models/BangladeshNationalIdInput.js +1 -1
- package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
- package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
- package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
- package/dist/models/CreateWidgetSessionRequest.d.ts +8 -7
- package/dist/models/CreateWidgetSessionRequest.js +3 -3
- package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
- package/dist/models/CreateWidgetSessionResponse.js +7 -1
- package/dist/models/DocumentData.d.ts +6 -6
- package/dist/models/DocumentData.js +2 -2
- package/dist/models/DocumentScanAttachments.d.ts +1 -1
- package/dist/models/GetSessionResultResponse.d.ts +1 -1
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/IdentityData.d.ts +10 -4
- package/dist/models/IdentityData.js +2 -0
- package/dist/models/IdinInput.d.ts +33 -0
- package/dist/models/IdinInput.js +44 -0
- package/dist/models/IndonesiaNikInput.d.ts +43 -0
- package/dist/models/IndonesiaNikInput.js +54 -0
- package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
- package/dist/models/IntegrationLaunchMethod.js +1 -1
- package/dist/models/IntegrationStep.d.ts +1 -1
- package/dist/models/KenyaNidInput.d.ts +61 -0
- package/dist/models/KenyaNidInput.js +64 -0
- package/dist/models/Language.d.ts +26 -0
- package/dist/models/Language.js +49 -0
- package/dist/models/ListProviderContractsResponse.d.ts +32 -0
- package/dist/models/ListProviderContractsResponse.js +47 -0
- package/dist/models/MexicoCurpInput.d.ts +31 -0
- package/dist/models/MexicoCurpInput.js +46 -0
- package/dist/models/MobileIdInput.d.ts +44 -0
- package/dist/models/MobileIdInput.js +49 -0
- package/dist/models/NigeriaNinInput.d.ts +67 -0
- package/dist/models/NigeriaNinInput.js +64 -0
- package/dist/models/PersonData.d.ts +10 -10
- package/dist/models/PersonData.js +1 -1
- package/dist/models/PhilippineMatchInput.d.ts +5 -5
- package/dist/models/PhilippineMatchInput.js +1 -1
- package/dist/models/PhilippineQRInput.d.ts +2 -2
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderAttachments.d.ts +1 -1
- package/dist/models/ProviderContract.d.ts +146 -0
- package/dist/models/ProviderContract.js +103 -0
- package/dist/models/ProviderInfo.d.ts +0 -6
- package/dist/models/ProviderInfo.js +0 -2
- package/dist/models/ProviderInformation.d.ts +4 -4
- package/dist/models/ProviderInformation.js +1 -5
- package/dist/models/ProviderInput.d.ts +95 -14
- package/dist/models/ProviderInput.js +35 -2
- package/dist/models/RecommendRequest.d.ts +4 -21
- package/dist/models/RecommendRequest.js +3 -8
- package/dist/models/RecommendationInfo.d.ts +55 -0
- package/dist/models/RecommendationInfo.js +50 -0
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/ResultCollection.d.ts +8 -2
- package/dist/models/ResultCollection.js +3 -1
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SmartIdInput.d.ts +31 -0
- package/dist/models/SmartIdInput.js +44 -0
- package/dist/models/SouthAfricaNidInput.d.ts +49 -0
- package/dist/models/SouthAfricaNidInput.js +58 -0
- package/dist/models/SpidInput.d.ts +33 -0
- package/dist/models/SpidInput.js +44 -0
- package/dist/models/SubProviderMetadata.d.ts +54 -0
- package/dist/models/SubProviderMetadata.js +58 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
- package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
- package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
- package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
- package/dist/models/index.d.ts +16 -3
- package/dist/models/index.js +16 -3
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +62 -8
- package/src/apis/SessionsApi.ts +8 -8
- package/src/models/AadhaarInput.ts +3 -3
- package/src/models/Address.ts +8 -8
- package/src/models/AttachmentAccessKeys.ts +4 -4
- package/src/models/BangladeshNationalIdInput.ts +5 -5
- package/src/models/BrazilDigitalCnhInput.ts +11 -11
- package/src/models/CreateAdvancedProviderSessionRequest.ts +29 -29
- package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
- package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
- package/src/models/CreateWidgetSessionRequest.ts +18 -17
- package/src/models/CreateWidgetSessionResponse.ts +22 -6
- package/src/models/DocumentData.ts +8 -8
- package/src/models/DocumentScanAttachments.ts +1 -1
- package/src/models/GetSessionResultResponse.ts +1 -1
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/IdentityData.ts +12 -4
- package/src/models/IdinInput.ts +62 -0
- package/src/models/IndonesiaNikInput.ts +79 -0
- package/src/models/IntegrationLaunchMethod.ts +1 -1
- package/src/models/IntegrationStep.ts +1 -1
- package/src/models/KenyaNidInput.ts +105 -0
- package/src/models/Language.ts +51 -0
- package/src/models/ListProviderContractsResponse.ts +68 -0
- package/src/models/MexicoCurpInput.ts +61 -0
- package/src/models/MobileIdInput.ts +85 -0
- package/src/models/NigeriaNinInput.ts +112 -0
- package/src/models/PersonData.ts +11 -11
- package/src/models/PhilippineMatchInput.ts +6 -6
- package/src/models/PhilippineQRInput.ts +2 -2
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderAttachments.ts +1 -1
- package/src/models/ProviderContract.ts +235 -0
- package/src/models/ProviderInfo.ts +0 -8
- package/src/models/ProviderInformation.ts +4 -7
- package/src/models/ProviderInput.ts +182 -24
- package/src/models/RecommendRequest.ts +12 -29
- package/src/models/RecommendationInfo.ts +90 -0
- package/src/models/RefreshStepContentRequest.ts +1 -1
- package/src/models/ResultCollection.ts +10 -3
- package/src/models/Session.ts +8 -8
- package/src/models/SmartIdInput.ts +60 -0
- package/src/models/SouthAfricaNidInput.ts +88 -0
- package/src/models/SpidInput.ts +62 -0
- package/src/models/StepRefreshInfo.ts +2 -2
- package/src/models/SubProviderMetadata.ts +93 -0
- package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
- package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
- package/src/models/index.ts +16 -3
- package/dist/esm/models/KnownAddress.d.ts +0 -74
- package/dist/esm/models/KnownAddress.js +0 -52
- package/dist/esm/models/KnownIdentityData.d.ts +0 -34
- package/dist/esm/models/KnownIdentityData.js +0 -39
- package/dist/esm/models/KnownPersonData.d.ts +0 -74
- package/dist/esm/models/KnownPersonData.js +0 -53
- package/dist/models/KnownAddress.d.ts +0 -74
- package/dist/models/KnownAddress.js +0 -58
- package/dist/models/KnownIdentityData.d.ts +0 -34
- package/dist/models/KnownIdentityData.js +0 -45
- package/dist/models/KnownPersonData.d.ts +0 -74
- package/dist/models/KnownPersonData.js +0 -59
- package/src/models/KnownAddress.ts +0 -117
- package/src/models/KnownIdentityData.ts +0 -69
- package/src/models/KnownPersonData.ts +0 -123
|
@@ -43,51 +43,51 @@ export interface CreateAdvancedProviderSessionRequest {
|
|
|
43
43
|
* @type {ProviderInput}
|
|
44
44
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
45
45
|
*/
|
|
46
|
-
providerInput?: ProviderInput;
|
|
46
|
+
providerInput?: ProviderInput | null;
|
|
47
47
|
/**
|
|
48
|
-
* The Redirect URL to which the user should be sent after the session is complete.
|
|
49
|
-
*
|
|
48
|
+
* The Redirect URL to which the user should be sent after the session is complete.
|
|
49
|
+
*
|
|
50
50
|
* This field is required for providers which employ a redirect-based flow.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
53
53
|
*/
|
|
54
|
-
redirectUrl?: string;
|
|
54
|
+
redirectUrl?: string | null;
|
|
55
55
|
/**
|
|
56
|
-
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
57
|
-
*
|
|
58
|
-
* Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`.
|
|
59
|
-
* The exception being refresh content to support updating the content of the launch method.
|
|
60
|
-
*
|
|
61
|
-
* For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities.
|
|
62
|
-
* To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities.
|
|
63
|
-
*
|
|
64
|
-
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
65
|
-
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
66
|
-
*
|
|
56
|
+
* The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
|
|
57
|
+
*
|
|
58
|
+
* Most capabilities align with either an `IntegrationLaunchMethod` or an `IntegrationCollectionMethod`.
|
|
59
|
+
* The exception being refresh content to support updating the content of the launch method.
|
|
60
|
+
*
|
|
61
|
+
* For example, to support a basic redirect-based flow, you must include the `LaunchRedirect` and `CaptureRedirect` capabilities.
|
|
62
|
+
* To support a mobile deeplink / polling flow, you must include the `DeeplinkToMobile` and `PollForResults` capabilities.
|
|
63
|
+
*
|
|
64
|
+
* If `FallbackToHostedUi` is `true`, Trinsic will automatically fall back to a Trinsic-hosted UI to cover any gaps in your integration's capabilities.
|
|
65
|
+
* If `FallbackToHostedUi` is `false`, gaps in your integration's capabilities will result in an error during Session creation.
|
|
66
|
+
*
|
|
67
67
|
* Read more on how to integrate at <a href="https://docs.trinsic.id/docs/advanced-provider-sessions">the guide on Advanced Provider Sessions</a>
|
|
68
68
|
* @type {Array<IntegrationCapability>}
|
|
69
69
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
70
70
|
*/
|
|
71
71
|
capabilities: Array<IntegrationCapability>;
|
|
72
72
|
/**
|
|
73
|
-
* Whether the session should fall back to a Trinsic-hosted UI in certain instances.
|
|
74
|
-
*
|
|
75
|
-
* Specifically, fallback will occur if any of the following are true:
|
|
76
|
-
* - You attempted to launch a provider which requires a capability you did not express support for
|
|
77
|
-
* - In this case, Trinsic's hosted UI will perform the necessary capability
|
|
78
|
-
* - You attempted to launch a provider which requires input, and the input was either not provided or incomplete
|
|
79
|
-
* - In this case, Trinsic's hosted UI will collect the necessary input from the user
|
|
80
|
-
*
|
|
81
|
-
* If fallback occurs, the session's NextStep will always be LaunchBrowser,
|
|
82
|
-
* and the CollectionMethod will always be CaptureRedirect.
|
|
83
|
-
*
|
|
84
|
-
* If this field is set to `true`, you must also:
|
|
85
|
-
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
73
|
+
* Whether the session should fall back to a Trinsic-hosted UI in certain instances.
|
|
74
|
+
*
|
|
75
|
+
* Specifically, fallback will occur if any of the following are true:
|
|
76
|
+
* - You attempted to launch a provider which requires a capability you did not express support for
|
|
77
|
+
* - In this case, Trinsic's hosted UI will perform the necessary capability
|
|
78
|
+
* - You attempted to launch a provider which requires input, and the input was either not provided or incomplete
|
|
79
|
+
* - In this case, Trinsic's hosted UI will collect the necessary input from the user
|
|
80
|
+
*
|
|
81
|
+
* If fallback occurs, the session's NextStep will always be LaunchBrowser,
|
|
82
|
+
* and the CollectionMethod will always be CaptureRedirect.
|
|
83
|
+
*
|
|
84
|
+
* If this field is set to `true`, you must also:
|
|
85
|
+
* 1. Set the `RedirectUrl` field to a non-empty value
|
|
86
86
|
* 2. Include the `LaunchBrowser` and `CaptureRedirect` capabilities in the `Capabilities` field
|
|
87
87
|
* @type {boolean}
|
|
88
88
|
* @memberof CreateAdvancedProviderSessionRequest
|
|
89
89
|
*/
|
|
90
|
-
fallbackToHostedUI?: boolean;
|
|
90
|
+
fallbackToHostedUI?: boolean | null;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -26,17 +26,29 @@ export interface CreateHostedProviderSessionResponse {
|
|
|
26
26
|
*/
|
|
27
27
|
sessionId: string;
|
|
28
28
|
/**
|
|
29
|
-
* The URL that should be used to launch the Hosted Provider Session on your user's device.
|
|
30
|
-
*
|
|
31
|
-
* There are two recommended ways to do so:
|
|
32
|
-
* - Redirect their browser to the `LaunchUrl` as a top-level navigation
|
|
33
|
-
* - Open a popup window and navigate it to the `LaunchUrl`
|
|
34
|
-
*
|
|
29
|
+
* The URL that should be used to launch the Hosted Provider Session on your user's device.
|
|
30
|
+
*
|
|
31
|
+
* There are two recommended ways to do so:
|
|
32
|
+
* - Redirect their browser to the `LaunchUrl` as a top-level navigation
|
|
33
|
+
* - Open a popup window and navigate it to the `LaunchUrl`
|
|
34
|
+
*
|
|
35
35
|
* This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateHostedProviderSessionResponse
|
|
38
38
|
*/
|
|
39
|
-
launchUrl
|
|
39
|
+
launchUrl: string;
|
|
40
|
+
/**
|
|
41
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
42
|
+
*
|
|
43
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
44
|
+
*
|
|
45
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
46
|
+
*
|
|
47
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateHostedProviderSessionResponse
|
|
50
|
+
*/
|
|
51
|
+
resultsAccessKey: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -44,6 +56,8 @@ export interface CreateHostedProviderSessionResponse {
|
|
|
44
56
|
*/
|
|
45
57
|
export function instanceOfCreateHostedProviderSessionResponse(value: object): value is CreateHostedProviderSessionResponse {
|
|
46
58
|
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
59
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
60
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
47
61
|
return true;
|
|
48
62
|
}
|
|
49
63
|
|
|
@@ -58,7 +72,8 @@ export function CreateHostedProviderSessionResponseFromJSONTyped(json: any, igno
|
|
|
58
72
|
return {
|
|
59
73
|
|
|
60
74
|
'sessionId': json['sessionId'],
|
|
61
|
-
'launchUrl': json['launchUrl']
|
|
75
|
+
'launchUrl': json['launchUrl'],
|
|
76
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
62
77
|
};
|
|
63
78
|
}
|
|
64
79
|
|
|
@@ -70,6 +85,7 @@ export function CreateHostedProviderSessionResponseToJSON(value?: CreateHostedPr
|
|
|
70
85
|
|
|
71
86
|
'sessionId': value['sessionId'],
|
|
72
87
|
'launchUrl': value['launchUrl'],
|
|
88
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
73
89
|
};
|
|
74
90
|
}
|
|
75
91
|
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { RecommendationInfo } from './RecommendationInfo';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
RecommendationInfoFromJSON,
|
|
19
|
+
RecommendationInfoFromJSONTyped,
|
|
20
|
+
RecommendationInfoToJSON,
|
|
21
|
+
} from './RecommendationInfo';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -27,28 +27,29 @@ import {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateWidgetSessionRequest {
|
|
29
29
|
/**
|
|
30
|
-
* The URL to redirect the user to after the widget session is complete.
|
|
31
|
-
*
|
|
32
|
-
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
30
|
+
* The URL to redirect the user to after the widget session is complete.
|
|
31
|
+
*
|
|
32
|
+
* *Note*: this should NOT be set if you intend to use Trinsic's Web UI SDK to launch the Widget
|
|
33
33
|
* as an embedded iFrame or popup; in that case, session resolution is handled by our SDK, not via redirect.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CreateWidgetSessionRequest
|
|
36
36
|
*/
|
|
37
|
-
redirectUrl?: string;
|
|
37
|
+
redirectUrl?: string | null;
|
|
38
38
|
/**
|
|
39
39
|
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
40
40
|
* @type {Array<string>}
|
|
41
41
|
* @memberof CreateWidgetSessionRequest
|
|
42
42
|
*/
|
|
43
|
-
providers?: Array<string
|
|
43
|
+
providers?: Array<string> | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
45
|
+
* Data that you already know about the user being verified.
|
|
46
|
+
*
|
|
47
|
+
*
|
|
48
|
+
* This data is used to improve the user experience during provider selection, by surfacing the most relevant providers first.
|
|
49
|
+
* @type {RecommendationInfo}
|
|
49
50
|
* @memberof CreateWidgetSessionRequest
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
recommendationInfo?: RecommendationInfo | null;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
/**
|
|
@@ -70,7 +71,7 @@ export function CreateWidgetSessionRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
70
71
|
|
|
71
72
|
'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
|
|
72
73
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
73
|
-
'
|
|
74
|
+
'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -82,7 +83,7 @@ export function CreateWidgetSessionRequestToJSON(value?: CreateWidgetSessionRequ
|
|
|
82
83
|
|
|
83
84
|
'redirectUrl': value['redirectUrl'],
|
|
84
85
|
'providers': value['providers'],
|
|
85
|
-
'
|
|
86
|
+
'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -26,15 +26,27 @@ export interface CreateWidgetSessionResponse {
|
|
|
26
26
|
*/
|
|
27
27
|
sessionId: string;
|
|
28
28
|
/**
|
|
29
|
-
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
30
|
-
*
|
|
31
|
-
* You can use our frontend SDKs to launch the user into the Acceptance Session, or you can redirect the user's browser to this URL.
|
|
32
|
-
*
|
|
29
|
+
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
30
|
+
*
|
|
31
|
+
* You can use our frontend SDKs to launch the user into the Acceptance Session, or you can redirect the user's browser to this URL.
|
|
32
|
+
*
|
|
33
33
|
* This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CreateWidgetSessionResponse
|
|
36
36
|
*/
|
|
37
|
-
launchUrl
|
|
37
|
+
launchUrl: string;
|
|
38
|
+
/**
|
|
39
|
+
* The `resultsAccessKey` for the Acceptance Session.
|
|
40
|
+
*
|
|
41
|
+
* This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
|
|
42
|
+
*
|
|
43
|
+
* Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
|
|
44
|
+
*
|
|
45
|
+
* Trinsic cannot access a Session's Data Vault without this key.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateWidgetSessionResponse
|
|
48
|
+
*/
|
|
49
|
+
resultsAccessKey: string;
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
/**
|
|
@@ -42,6 +54,8 @@ export interface CreateWidgetSessionResponse {
|
|
|
42
54
|
*/
|
|
43
55
|
export function instanceOfCreateWidgetSessionResponse(value: object): value is CreateWidgetSessionResponse {
|
|
44
56
|
if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
|
|
57
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
58
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
45
59
|
return true;
|
|
46
60
|
}
|
|
47
61
|
|
|
@@ -56,7 +70,8 @@ export function CreateWidgetSessionResponseFromJSONTyped(json: any, ignoreDiscri
|
|
|
56
70
|
return {
|
|
57
71
|
|
|
58
72
|
'sessionId': json['sessionId'],
|
|
59
|
-
'launchUrl': json['launchUrl']
|
|
73
|
+
'launchUrl': json['launchUrl'],
|
|
74
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
60
75
|
};
|
|
61
76
|
}
|
|
62
77
|
|
|
@@ -68,6 +83,7 @@ export function CreateWidgetSessionResponseToJSON(value?: CreateWidgetSessionRes
|
|
|
68
83
|
|
|
69
84
|
'sessionId': value['sessionId'],
|
|
70
85
|
'launchUrl': value['launchUrl'],
|
|
86
|
+
'resultsAccessKey': value['resultsAccessKey'],
|
|
71
87
|
};
|
|
72
88
|
}
|
|
73
89
|
|
|
@@ -31,37 +31,37 @@ export interface DocumentData {
|
|
|
31
31
|
* @type {DocumentType}
|
|
32
32
|
* @memberof DocumentData
|
|
33
33
|
*/
|
|
34
|
-
type?: DocumentType;
|
|
34
|
+
type?: DocumentType | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof DocumentData
|
|
39
39
|
*/
|
|
40
|
-
number?: string;
|
|
40
|
+
number?: string | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Date}
|
|
44
44
|
* @memberof DocumentData
|
|
45
45
|
*/
|
|
46
|
-
issueDate?: Date;
|
|
46
|
+
issueDate?: Date | null;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {Date}
|
|
50
50
|
* @memberof DocumentData
|
|
51
51
|
*/
|
|
52
|
-
expirationDate?: Date;
|
|
52
|
+
expirationDate?: Date | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof DocumentData
|
|
57
57
|
*/
|
|
58
|
-
issuingCountry?: string;
|
|
58
|
+
issuingCountry?: string | null;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof DocumentData
|
|
63
63
|
*/
|
|
64
|
-
issuingAuthority?: string;
|
|
64
|
+
issuingAuthority?: string | null;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
|
|
@@ -100,8 +100,8 @@ export function DocumentDataToJSON(value?: DocumentData | null): any {
|
|
|
100
100
|
|
|
101
101
|
'type': DocumentTypeToJSON(value['type']),
|
|
102
102
|
'number': value['number'],
|
|
103
|
-
'issueDate': value['issueDate'] == null ? undefined : ((value['issueDate']).toISOString().substring(0,10)),
|
|
104
|
-
'expirationDate': value['expirationDate'] == null ? undefined : ((value['expirationDate']).toISOString().substring(0,10)),
|
|
103
|
+
'issueDate': value['issueDate'] == null ? undefined : ((value['issueDate'] as any).toISOString().substring(0,10)),
|
|
104
|
+
'expirationDate': value['expirationDate'] == null ? undefined : ((value['expirationDate'] as any).toISOString().substring(0,10)),
|
|
105
105
|
'issuingCountry': value['issuingCountry'],
|
|
106
106
|
'issuingAuthority': value['issuingAuthority'],
|
|
107
107
|
};
|
|
@@ -24,31 +24,31 @@ export interface HttpValidationProblemDetails {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof HttpValidationProblemDetails
|
|
26
26
|
*/
|
|
27
|
-
type?: string;
|
|
27
|
+
type?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof HttpValidationProblemDetails
|
|
32
32
|
*/
|
|
33
|
-
title?: string;
|
|
33
|
+
title?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof HttpValidationProblemDetails
|
|
38
38
|
*/
|
|
39
|
-
status?: number;
|
|
39
|
+
status?: number | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof HttpValidationProblemDetails
|
|
44
44
|
*/
|
|
45
|
-
detail?: string;
|
|
45
|
+
detail?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof HttpValidationProblemDetails
|
|
50
50
|
*/
|
|
51
|
-
instance?: string;
|
|
51
|
+
instance?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {{ [key: string]: Array<string>; }}
|
|
@@ -43,25 +43,31 @@ export interface IdentityData {
|
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof IdentityData
|
|
45
45
|
*/
|
|
46
|
-
originatingProviderId?: string;
|
|
46
|
+
originatingProviderId?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof IdentityData
|
|
51
|
+
*/
|
|
52
|
+
originatingSubProviderId?: string | null;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {PersonData}
|
|
50
56
|
* @memberof IdentityData
|
|
51
57
|
*/
|
|
52
|
-
person?: PersonData;
|
|
58
|
+
person?: PersonData | null;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {DocumentData}
|
|
56
62
|
* @memberof IdentityData
|
|
57
63
|
*/
|
|
58
|
-
document?: DocumentData;
|
|
64
|
+
document?: DocumentData | null;
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
61
67
|
* @type {AttachmentAccessKeys}
|
|
62
68
|
* @memberof IdentityData
|
|
63
69
|
*/
|
|
64
|
-
attachmentAccessKeys?: AttachmentAccessKeys;
|
|
70
|
+
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
/**
|
|
@@ -82,6 +88,7 @@ export function IdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
82
88
|
return {
|
|
83
89
|
|
|
84
90
|
'originatingProviderId': json['originatingProviderId'] == null ? undefined : json['originatingProviderId'],
|
|
91
|
+
'originatingSubProviderId': json['originatingSubProviderId'] == null ? undefined : json['originatingSubProviderId'],
|
|
85
92
|
'person': json['person'] == null ? undefined : PersonDataFromJSON(json['person']),
|
|
86
93
|
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']),
|
|
87
94
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']),
|
|
@@ -95,6 +102,7 @@ export function IdentityDataToJSON(value?: IdentityData | null): any {
|
|
|
95
102
|
return {
|
|
96
103
|
|
|
97
104
|
'originatingProviderId': value['originatingProviderId'],
|
|
105
|
+
'originatingSubProviderId': value['originatingSubProviderId'],
|
|
98
106
|
'person': PersonDataToJSON(value['person']),
|
|
99
107
|
'document': DocumentDataToJSON(value['document']),
|
|
100
108
|
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']),
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IdinInput
|
|
20
|
+
*/
|
|
21
|
+
export interface IdinInput {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the specific bank to invoke with IDIN.
|
|
24
|
+
*
|
|
25
|
+
* If not specified, the user will be prompted to select a bank.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IdinInput
|
|
28
|
+
*/
|
|
29
|
+
subProviderId?: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the IdinInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfIdinInput(value: object): value is IdinInput {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function IdinInputFromJSON(json: any): IdinInput {
|
|
40
|
+
return IdinInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function IdinInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdinInput {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function IdinInputToJSON(value?: IdinInput | null): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'subProviderId': value['subProviderId'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Trinsic API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IndonesiaNikInput
|
|
20
|
+
*/
|
|
21
|
+
export interface IndonesiaNikInput {
|
|
22
|
+
/**
|
|
23
|
+
* The user's full name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndonesiaNikInput
|
|
26
|
+
*/
|
|
27
|
+
fullName: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof IndonesiaNikInput
|
|
32
|
+
*/
|
|
33
|
+
dateOfBirth: Date;
|
|
34
|
+
/**
|
|
35
|
+
* The user's Indonesia NIK ID number
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndonesiaNikInput
|
|
38
|
+
*/
|
|
39
|
+
nikIdNumber: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IndonesiaNikInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIndonesiaNikInput(value: object): value is IndonesiaNikInput {
|
|
46
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
47
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
48
|
+
if (!('nikIdNumber' in value) || value['nikIdNumber'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IndonesiaNikInputFromJSON(json: any): IndonesiaNikInput {
|
|
53
|
+
return IndonesiaNikInputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IndonesiaNikInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndonesiaNikInput {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'fullName': json['fullName'],
|
|
63
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
64
|
+
'nikIdNumber': json['nikIdNumber'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IndonesiaNikInputToJSON(value?: IndonesiaNikInput | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'fullName': value['fullName'],
|
|
75
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
|
|
76
|
+
'nikIdNumber': value['nikIdNumber'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|