@trinsic/api 2.2.0 → 2.3.0-alpha2
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 +23 -0
- package/dist/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/apis/EnvironmentRedirectUrisApi.js +145 -0
- package/dist/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/apis/VerificationProfilesApi.js +183 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.d.ts +109 -0
- package/dist/esm/apis/EnvironmentRedirectUrisApi.js +141 -0
- package/dist/esm/apis/VerificationProfilesApi.d.ts +117 -0
- package/dist/esm/apis/VerificationProfilesApi.js +179 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/esm/models/AddRedirectUriResponse.js +43 -0
- package/dist/esm/models/AttachmentAccessKeys.d.ts +6 -0
- package/dist/esm/models/AttachmentAccessKeys.js +2 -0
- package/dist/esm/models/ContractField.d.ts +7 -0
- package/dist/esm/models/ContractField.js +4 -0
- package/dist/esm/models/ContractIdentifierField.d.ts +45 -0
- package/dist/esm/models/ContractIdentifierField.js +52 -0
- package/dist/esm/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/esm/models/CreateVerificationProfileResponse.js +43 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/esm/models/EnvironmentRedirectUrisAddRequest.js +43 -0
- package/dist/esm/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/esm/models/FaydaProviderOutput.js +41 -0
- package/dist/esm/models/Identifier.d.ts +44 -0
- package/dist/esm/models/Identifier.js +51 -0
- package/dist/esm/models/IdentityData.d.ts +14 -0
- package/dist/esm/models/IdentityData.js +8 -0
- package/dist/esm/models/KenyaNidBiometric2Input.d.ts +47 -0
- package/dist/esm/models/KenyaNidBiometric2Input.js +45 -0
- package/dist/esm/models/KenyaNidInput.d.ts +1 -1
- package/dist/esm/models/KenyaNidLookup2Input.d.ts +32 -0
- package/dist/esm/models/KenyaNidLookup2Input.js +41 -0
- package/dist/esm/models/KenyaNidMatch2Input.d.ts +63 -0
- package/dist/esm/models/KenyaNidMatch2Input.js +52 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/esm/models/ListEnvironmentRedirectUrisResponse.js +48 -0
- package/dist/esm/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/esm/models/ListVerificationProfilesResponse.js +48 -0
- package/dist/esm/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/esm/models/MexicoCurpProviderOutput.js +41 -0
- package/dist/esm/models/NigeriaNinInput.d.ts +1 -1
- package/dist/esm/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
- package/dist/esm/models/PhilippinesDigitalNidProviderOutput.js +43 -0
- package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
- package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.js +43 -0
- package/dist/esm/models/ProviderContract.d.ts +7 -0
- package/dist/esm/models/ProviderContract.js +3 -0
- package/dist/esm/models/ProviderInput.d.ts +28 -0
- package/dist/esm/models/ProviderInput.js +12 -0
- package/dist/esm/models/ProviderOutput.d.ts +61 -0
- package/dist/esm/models/ProviderOutput.js +54 -0
- package/dist/esm/models/RedirectUriResponse.d.ts +38 -0
- package/dist/esm/models/RedirectUriResponse.js +47 -0
- package/dist/esm/models/SexV1.d.ts +27 -0
- package/dist/esm/models/SexV1.js +45 -0
- package/dist/esm/models/SouthAfricaNidInput.d.ts +1 -1
- package/dist/esm/models/SouthAfricaNidLookup2Input.d.ts +32 -0
- package/dist/esm/models/SouthAfricaNidLookup2Input.js +41 -0
- package/dist/esm/models/SpidBillingInformation.d.ts +48 -0
- package/dist/esm/models/SpidBillingInformation.js +51 -0
- package/dist/esm/models/SpidInput.d.ts +11 -0
- package/dist/esm/models/SpidInput.js +2 -0
- package/dist/esm/models/SpidProviderOutput.d.ts +124 -0
- package/dist/esm/models/SpidProviderOutput.js +72 -0
- package/dist/esm/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/esm/models/VerificationProfileResponse.js +63 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/AddRedirectUriResponse.d.ts +32 -0
- package/dist/models/AddRedirectUriResponse.js +50 -0
- package/dist/models/AttachmentAccessKeys.d.ts +6 -0
- package/dist/models/AttachmentAccessKeys.js +2 -0
- package/dist/models/ContractField.d.ts +7 -0
- package/dist/models/ContractField.js +4 -0
- package/dist/models/ContractIdentifierField.d.ts +45 -0
- package/dist/models/ContractIdentifierField.js +59 -0
- package/dist/models/CreateVerificationProfileResponse.d.ts +32 -0
- package/dist/models/CreateVerificationProfileResponse.js +50 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.d.ts +32 -0
- package/dist/models/EnvironmentRedirectUrisAddRequest.js +50 -0
- package/dist/models/FaydaProviderOutput.d.ts +35 -0
- package/dist/models/FaydaProviderOutput.js +48 -0
- package/dist/models/Identifier.d.ts +44 -0
- package/dist/models/Identifier.js +58 -0
- package/dist/models/IdentityData.d.ts +14 -0
- package/dist/models/IdentityData.js +8 -0
- package/dist/models/KenyaNidBiometric2Input.d.ts +47 -0
- package/dist/models/KenyaNidBiometric2Input.js +52 -0
- package/dist/models/KenyaNidInput.d.ts +1 -1
- package/dist/models/KenyaNidLookup2Input.d.ts +32 -0
- package/dist/models/KenyaNidLookup2Input.js +48 -0
- package/dist/models/KenyaNidMatch2Input.d.ts +63 -0
- package/dist/models/KenyaNidMatch2Input.js +59 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.d.ts +39 -0
- package/dist/models/ListEnvironmentRedirectUrisResponse.js +55 -0
- package/dist/models/ListVerificationProfilesResponse.d.ts +39 -0
- package/dist/models/ListVerificationProfilesResponse.js +55 -0
- package/dist/models/MexicoCurpProviderOutput.d.ts +44 -0
- package/dist/models/MexicoCurpProviderOutput.js +48 -0
- package/dist/models/NigeriaNinInput.d.ts +1 -1
- package/dist/models/PhilippinesDigitalNidProviderOutput.d.ts +32 -0
- package/dist/models/PhilippinesDigitalNidProviderOutput.js +50 -0
- package/dist/models/PhilippinesPhysicalNidProviderOutput.d.ts +32 -0
- package/dist/models/PhilippinesPhysicalNidProviderOutput.js +50 -0
- package/dist/models/ProviderContract.d.ts +7 -0
- package/dist/models/ProviderContract.js +3 -0
- package/dist/models/ProviderInput.d.ts +28 -0
- package/dist/models/ProviderInput.js +12 -0
- package/dist/models/ProviderOutput.d.ts +61 -0
- package/dist/models/ProviderOutput.js +61 -0
- package/dist/models/RedirectUriResponse.d.ts +38 -0
- package/dist/models/RedirectUriResponse.js +54 -0
- package/dist/models/SexV1.d.ts +27 -0
- package/dist/models/SexV1.js +53 -0
- package/dist/models/SouthAfricaNidInput.d.ts +1 -1
- package/dist/models/SouthAfricaNidLookup2Input.d.ts +32 -0
- package/dist/models/SouthAfricaNidLookup2Input.js +48 -0
- package/dist/models/SpidBillingInformation.d.ts +48 -0
- package/dist/models/SpidBillingInformation.js +58 -0
- package/dist/models/SpidInput.d.ts +11 -0
- package/dist/models/SpidInput.js +2 -0
- package/dist/models/SpidProviderOutput.d.ts +124 -0
- package/dist/models/SpidProviderOutput.js +79 -0
- package/dist/models/VerificationProfileResponse.d.ts +62 -0
- package/dist/models/VerificationProfileResponse.js +70 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/package.json +1 -1
- package/src/apis/EnvironmentRedirectUrisApi.ts +235 -0
- package/src/apis/VerificationProfilesApi.ts +294 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddRedirectUriResponse.ts +66 -0
- package/src/models/AttachmentAccessKeys.ts +8 -0
- package/src/models/ContractField.ts +10 -0
- package/src/models/ContractIdentifierField.ts +94 -0
- package/src/models/CreateVerificationProfileResponse.ts +66 -0
- package/src/models/EnvironmentRedirectUrisAddRequest.ts +66 -0
- package/src/models/FaydaProviderOutput.ts +68 -0
- package/src/models/Identifier.ts +84 -0
- package/src/models/IdentityData.ts +31 -0
- package/src/models/KenyaNidBiometric2Input.ts +84 -0
- package/src/models/KenyaNidInput.ts +1 -1
- package/src/models/KenyaNidLookup2Input.ts +65 -0
- package/src/models/KenyaNidMatch2Input.ts +115 -0
- package/src/models/ListEnvironmentRedirectUrisResponse.ts +83 -0
- package/src/models/ListVerificationProfilesResponse.ts +83 -0
- package/src/models/MexicoCurpProviderOutput.ts +77 -0
- package/src/models/NigeriaNinInput.ts +1 -1
- package/src/models/PhilippinesDigitalNidProviderOutput.ts +66 -0
- package/src/models/PhilippinesPhysicalNidProviderOutput.ts +66 -0
- package/src/models/ProviderContract.ts +15 -0
- package/src/models/ProviderInput.ts +60 -0
- package/src/models/ProviderOutput.ts +133 -0
- package/src/models/RedirectUriResponse.ts +75 -0
- package/src/models/SexV1.ts +55 -0
- package/src/models/SouthAfricaNidInput.ts +1 -1
- package/src/models/SouthAfricaNidLookup2Input.ts +65 -0
- package/src/models/SpidBillingInformation.ts +88 -0
- package/src/models/SpidInput.ts +13 -0
- package/src/models/SpidProviderOutput.ts +192 -0
- package/src/models/VerificationProfileResponse.ts +111 -0
- package/src/models/index.ts +21 -0
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import type { FieldAvailability } from './FieldAvailability';
|
|
17
|
+
import {
|
|
18
|
+
FieldAvailabilityFromJSON,
|
|
19
|
+
FieldAvailabilityFromJSONTyped,
|
|
20
|
+
FieldAvailabilityToJSON,
|
|
21
|
+
FieldAvailabilityToJSONTyped,
|
|
22
|
+
} from './FieldAvailability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Information about an identifier a Provider returns in verification results.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ContractIdentifierField
|
|
28
|
+
*/
|
|
29
|
+
export interface ContractIdentifierField {
|
|
30
|
+
/**
|
|
31
|
+
* The scope of the identifier as it appears in verification results.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContractIdentifierField
|
|
34
|
+
*/
|
|
35
|
+
scope: string;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates when this field will be present in verification results.
|
|
38
|
+
* @type {FieldAvailability}
|
|
39
|
+
* @memberof ContractIdentifierField
|
|
40
|
+
*/
|
|
41
|
+
outputted: FieldAvailability;
|
|
42
|
+
/**
|
|
43
|
+
* A human-readable description of the identifier, written by Trinsic.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ContractIdentifierField
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ContractIdentifierField interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfContractIdentifierField(value: object): value is ContractIdentifierField {
|
|
56
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
57
|
+
if (!('outputted' in value) || value['outputted'] === undefined) return false;
|
|
58
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContractIdentifierFieldFromJSON(json: any): ContractIdentifierField {
|
|
63
|
+
return ContractIdentifierFieldFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContractIdentifierFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractIdentifierField {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'scope': json['scope'],
|
|
73
|
+
'outputted': FieldAvailabilityFromJSON(json['outputted']),
|
|
74
|
+
'description': json['description'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ContractIdentifierFieldToJSON(json: any): ContractIdentifierField {
|
|
79
|
+
return ContractIdentifierFieldToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ContractIdentifierFieldToJSONTyped(value?: ContractIdentifierField | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'scope': value['scope'],
|
|
90
|
+
'outputted': FieldAvailabilityToJSON(value['outputted']),
|
|
91
|
+
'description': value['description'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 CreateVerificationProfileResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateVerificationProfileResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the verification profile
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateVerificationProfileResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateVerificationProfileResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateVerificationProfileResponse(value: object): value is CreateVerificationProfileResponse {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CreateVerificationProfileResponseFromJSON(json: any): CreateVerificationProfileResponse {
|
|
39
|
+
return CreateVerificationProfileResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function CreateVerificationProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVerificationProfileResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CreateVerificationProfileResponseToJSON(json: any): CreateVerificationProfileResponse {
|
|
53
|
+
return CreateVerificationProfileResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreateVerificationProfileResponseToJSONTyped(value?: CreateVerificationProfileResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 EnvironmentRedirectUrisAddRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface EnvironmentRedirectUrisAddRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EnvironmentRedirectUrisAddRequest
|
|
26
|
+
*/
|
|
27
|
+
uri: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the EnvironmentRedirectUrisAddRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfEnvironmentRedirectUrisAddRequest(value: object): value is EnvironmentRedirectUrisAddRequest {
|
|
34
|
+
if (!('uri' in value) || value['uri'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function EnvironmentRedirectUrisAddRequestFromJSON(json: any): EnvironmentRedirectUrisAddRequest {
|
|
39
|
+
return EnvironmentRedirectUrisAddRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function EnvironmentRedirectUrisAddRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnvironmentRedirectUrisAddRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'uri': json['uri'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function EnvironmentRedirectUrisAddRequestToJSON(json: any): EnvironmentRedirectUrisAddRequest {
|
|
53
|
+
return EnvironmentRedirectUrisAddRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function EnvironmentRedirectUrisAddRequestToJSONTyped(value?: EnvironmentRedirectUrisAddRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'uri': value['uri'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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 FaydaProviderOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface FaydaProviderOutput {
|
|
22
|
+
/**
|
|
23
|
+
* A unique eKYC identifying token used to match the original eKYC token received from the provider when the user was initially registered.
|
|
24
|
+
*
|
|
25
|
+
* Since Fayda does not return identifying data, it is the responsibility of the relying party to keep the unique user token received from Fayda when
|
|
26
|
+
* the user was initially registered to do a comparison of the subs to verify that it is the same person.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof FaydaProviderOutput
|
|
29
|
+
*/
|
|
30
|
+
sub?: string | null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the FaydaProviderOutput interface.
|
|
35
|
+
*/
|
|
36
|
+
export function instanceOfFaydaProviderOutput(value: object): value is FaydaProviderOutput {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function FaydaProviderOutputFromJSON(json: any): FaydaProviderOutput {
|
|
41
|
+
return FaydaProviderOutputFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function FaydaProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): FaydaProviderOutput {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'sub': json['sub'] == null ? undefined : json['sub'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function FaydaProviderOutputToJSON(json: any): FaydaProviderOutput {
|
|
55
|
+
return FaydaProviderOutputToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function FaydaProviderOutputToJSONTyped(value?: FaydaProviderOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'sub': value['sub'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 Identifier
|
|
20
|
+
*/
|
|
21
|
+
export interface Identifier {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Identifier
|
|
26
|
+
*/
|
|
27
|
+
identifier: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Identifier
|
|
32
|
+
*/
|
|
33
|
+
scope: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Identifier
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Identifier interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIdentifier(value: object): value is Identifier {
|
|
46
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
47
|
+
if (!('scope' in value) || value['scope'] === undefined) return false;
|
|
48
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IdentifierFromJSON(json: any): Identifier {
|
|
53
|
+
return IdentifierFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IdentifierFromJSONTyped(json: any, ignoreDiscriminator: boolean): Identifier {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'identifier': json['identifier'],
|
|
63
|
+
'scope': json['scope'],
|
|
64
|
+
'description': json['description'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IdentifierToJSON(json: any): Identifier {
|
|
69
|
+
return IdentifierToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IdentifierToJSONTyped(value?: Identifier | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'identifier': value['identifier'],
|
|
80
|
+
'scope': value['scope'],
|
|
81
|
+
'description': value['description'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -27,6 +27,20 @@ import {
|
|
|
27
27
|
PersonDataToJSON,
|
|
28
28
|
PersonDataToJSONTyped,
|
|
29
29
|
} from './PersonData';
|
|
30
|
+
import type { Identifier } from './Identifier';
|
|
31
|
+
import {
|
|
32
|
+
IdentifierFromJSON,
|
|
33
|
+
IdentifierFromJSONTyped,
|
|
34
|
+
IdentifierToJSON,
|
|
35
|
+
IdentifierToJSONTyped,
|
|
36
|
+
} from './Identifier';
|
|
37
|
+
import type { ProviderOutput } from './ProviderOutput';
|
|
38
|
+
import {
|
|
39
|
+
ProviderOutputFromJSON,
|
|
40
|
+
ProviderOutputFromJSONTyped,
|
|
41
|
+
ProviderOutputToJSON,
|
|
42
|
+
ProviderOutputToJSONTyped,
|
|
43
|
+
} from './ProviderOutput';
|
|
30
44
|
import type { AttachmentAccessKeys } from './AttachmentAccessKeys';
|
|
31
45
|
import {
|
|
32
46
|
AttachmentAccessKeysFromJSON,
|
|
@@ -84,12 +98,25 @@ export interface IdentityData {
|
|
|
84
98
|
* @memberof IdentityData
|
|
85
99
|
*/
|
|
86
100
|
attachmentAccessKeys?: AttachmentAccessKeys | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {ProviderOutput}
|
|
104
|
+
* @memberof IdentityData
|
|
105
|
+
*/
|
|
106
|
+
providerOutput?: ProviderOutput | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Array<Identifier>}
|
|
110
|
+
* @memberof IdentityData
|
|
111
|
+
*/
|
|
112
|
+
identifiers: Array<Identifier>;
|
|
87
113
|
}
|
|
88
114
|
|
|
89
115
|
/**
|
|
90
116
|
* Check if a given object implements the IdentityData interface.
|
|
91
117
|
*/
|
|
92
118
|
export function instanceOfIdentityData(value: object): value is IdentityData {
|
|
119
|
+
if (!('identifiers' in value) || value['identifiers'] === undefined) return false;
|
|
93
120
|
return true;
|
|
94
121
|
}
|
|
95
122
|
|
|
@@ -109,6 +136,8 @@ export function IdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
109
136
|
'document': json['document'] == null ? undefined : DocumentDataFromJSON(json['document']),
|
|
110
137
|
'match': json['match'] == null ? undefined : MatchDataFromJSON(json['match']),
|
|
111
138
|
'attachmentAccessKeys': json['attachmentAccessKeys'] == null ? undefined : AttachmentAccessKeysFromJSON(json['attachmentAccessKeys']),
|
|
139
|
+
'providerOutput': json['providerOutput'] == null ? undefined : ProviderOutputFromJSON(json['providerOutput']),
|
|
140
|
+
'identifiers': ((json['identifiers'] as Array<any>).map(IdentifierFromJSON)),
|
|
112
141
|
};
|
|
113
142
|
}
|
|
114
143
|
|
|
@@ -129,6 +158,8 @@ export function IdentityDataToJSONTyped(value?: IdentityData | null, ignoreDiscr
|
|
|
129
158
|
'document': DocumentDataToJSON(value['document']),
|
|
130
159
|
'match': MatchDataToJSON(value['match']),
|
|
131
160
|
'attachmentAccessKeys': AttachmentAccessKeysToJSON(value['attachmentAccessKeys']),
|
|
161
|
+
'providerOutput': ProviderOutputToJSON(value['providerOutput']),
|
|
162
|
+
'identifiers': ((value['identifiers'] as Array<any>).map(IdentifierToJSON)),
|
|
132
163
|
};
|
|
133
164
|
}
|
|
134
165
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 KenyaNidBiometric2Input
|
|
20
|
+
*/
|
|
21
|
+
export interface KenyaNidBiometric2Input {
|
|
22
|
+
/**
|
|
23
|
+
* The user's Kenyan National ID number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KenyaNidBiometric2Input
|
|
26
|
+
*/
|
|
27
|
+
idNumber?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* An array of exactly 8 images required for biometric liveness verification.
|
|
30
|
+
* The first 7 images should be liveness frames captured during the liveness detection process,
|
|
31
|
+
* and the last image (8th) should be a selfie of the user. All images must be in JPEG format
|
|
32
|
+
* and each image must be less than 15MB in size.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof KenyaNidBiometric2Input
|
|
35
|
+
*/
|
|
36
|
+
livenessImages?: Array<string> | null;
|
|
37
|
+
/**
|
|
38
|
+
* Test selfie for test environment (optional, maximum 15MB). Must be JPEG format.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof KenyaNidBiometric2Input
|
|
41
|
+
*/
|
|
42
|
+
testSelfie?: string | null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the KenyaNidBiometric2Input interface.
|
|
47
|
+
*/
|
|
48
|
+
export function instanceOfKenyaNidBiometric2Input(value: object): value is KenyaNidBiometric2Input {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function KenyaNidBiometric2InputFromJSON(json: any): KenyaNidBiometric2Input {
|
|
53
|
+
return KenyaNidBiometric2InputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function KenyaNidBiometric2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidBiometric2Input {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
|
|
63
|
+
'livenessImages': json['livenessImages'] == null ? undefined : json['livenessImages'],
|
|
64
|
+
'testSelfie': json['testSelfie'] == null ? undefined : json['testSelfie'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function KenyaNidBiometric2InputToJSON(json: any): KenyaNidBiometric2Input {
|
|
69
|
+
return KenyaNidBiometric2InputToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function KenyaNidBiometric2InputToJSONTyped(value?: KenyaNidBiometric2Input | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'idNumber': value['idNumber'],
|
|
80
|
+
'livenessImages': value['livenessImages'],
|
|
81
|
+
'testSelfie': value['testSelfie'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 KenyaNidLookup2Input
|
|
20
|
+
*/
|
|
21
|
+
export interface KenyaNidLookup2Input {
|
|
22
|
+
/**
|
|
23
|
+
* The user's National ID number
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KenyaNidLookup2Input
|
|
26
|
+
*/
|
|
27
|
+
idNumber?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the KenyaNidLookup2Input interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfKenyaNidLookup2Input(value: object): value is KenyaNidLookup2Input {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function KenyaNidLookup2InputFromJSON(json: any): KenyaNidLookup2Input {
|
|
38
|
+
return KenyaNidLookup2InputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function KenyaNidLookup2InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Input {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'idNumber': json['idNumber'] == null ? undefined : json['idNumber'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function KenyaNidLookup2InputToJSON(json: any): KenyaNidLookup2Input {
|
|
52
|
+
return KenyaNidLookup2InputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function KenyaNidLookup2InputToJSONTyped(value?: KenyaNidLookup2Input | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'idNumber': value['idNumber'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|