@trinsic/api 1.1.1 → 1.2.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 +6 -0
- package/README.md +4 -4
- package/dist/apis/NetworkApi.d.ts +28 -1
- package/dist/apis/NetworkApi.js +36 -0
- package/dist/esm/apis/NetworkApi.d.ts +28 -1
- package/dist/esm/apis/NetworkApi.js +37 -1
- package/dist/esm/models/CreateSessionRequest.d.ts +30 -0
- package/dist/esm/models/CreateSessionRequest.js +5 -0
- package/dist/esm/models/KnownAddress.d.ts +67 -0
- package/dist/esm/models/KnownAddress.js +50 -0
- package/dist/esm/models/KnownIdentityData.d.ts +34 -0
- package/dist/esm/models/KnownIdentityData.js +39 -0
- package/dist/esm/models/KnownPersonData.d.ts +62 -0
- package/dist/esm/models/KnownPersonData.js +49 -0
- package/dist/esm/models/ProviderInformation.d.ts +43 -0
- package/dist/esm/models/ProviderInformation.js +48 -0
- package/dist/esm/models/RecommendRequest.d.ts +43 -0
- package/dist/esm/models/RecommendRequest.js +44 -0
- package/dist/esm/models/RecommendResponse.d.ts +44 -0
- package/dist/esm/models/RecommendResponse.js +49 -0
- package/dist/esm/models/VerificationFailCode.d.ts +1 -0
- package/dist/esm/models/VerificationFailCode.js +2 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/CreateSessionRequest.d.ts +30 -0
- package/dist/models/CreateSessionRequest.js +5 -0
- package/dist/models/KnownAddress.d.ts +67 -0
- package/dist/models/KnownAddress.js +56 -0
- package/dist/models/KnownIdentityData.d.ts +34 -0
- package/dist/models/KnownIdentityData.js +45 -0
- package/dist/models/KnownPersonData.d.ts +62 -0
- package/dist/models/KnownPersonData.js +55 -0
- package/dist/models/ProviderInformation.d.ts +43 -0
- package/dist/models/ProviderInformation.js +54 -0
- package/dist/models/RecommendRequest.d.ts +43 -0
- package/dist/models/RecommendRequest.js +50 -0
- package/dist/models/RecommendResponse.d.ts +44 -0
- package/dist/models/RecommendResponse.js +55 -0
- package/dist/models/VerificationFailCode.d.ts +1 -0
- package/dist/models/VerificationFailCode.js +2 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/NetworkApi.ts +65 -0
- package/src/models/CreateSessionRequest.ts +39 -0
- package/src/models/KnownAddress.ts +108 -0
- package/src/models/KnownIdentityData.ts +69 -0
- package/src/models/KnownPersonData.ts +107 -0
- package/src/models/ProviderInformation.ts +79 -0
- package/src/models/RecommendRequest.ts +77 -0
- package/src/models/RecommendResponse.ts +86 -0
- package/src/models/VerificationFailCode.ts +2 -1
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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
|
+
* Address information for an individual
|
|
18
|
+
* @export
|
|
19
|
+
* @interface KnownAddress
|
|
20
|
+
*/
|
|
21
|
+
export interface KnownAddress {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KnownAddress
|
|
26
|
+
*/
|
|
27
|
+
line1?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof KnownAddress
|
|
32
|
+
*/
|
|
33
|
+
line2?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof KnownAddress
|
|
38
|
+
*/
|
|
39
|
+
line3?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof KnownAddress
|
|
44
|
+
*/
|
|
45
|
+
city?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof KnownAddress
|
|
50
|
+
*/
|
|
51
|
+
state?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof KnownAddress
|
|
56
|
+
*/
|
|
57
|
+
postalCode?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof KnownAddress
|
|
62
|
+
*/
|
|
63
|
+
country?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the KnownAddress interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfKnownAddress(value: object): value is KnownAddress {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function KnownAddressFromJSON(json: any): KnownAddress {
|
|
74
|
+
return KnownAddressFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function KnownAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownAddress {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'line1': json['line1'] == null ? undefined : json['line1'],
|
|
84
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
85
|
+
'line3': json['line3'] == null ? undefined : json['line3'],
|
|
86
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
87
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
88
|
+
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
89
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function KnownAddressToJSON(value?: KnownAddress | null): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'line1': value['line1'],
|
|
100
|
+
'line2': value['line2'],
|
|
101
|
+
'line3': value['line3'],
|
|
102
|
+
'city': value['city'],
|
|
103
|
+
'state': value['state'],
|
|
104
|
+
'postalCode': value['postalCode'],
|
|
105
|
+
'country': value['country'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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 { KnownPersonData } from './KnownPersonData';
|
|
17
|
+
import {
|
|
18
|
+
KnownPersonDataFromJSON,
|
|
19
|
+
KnownPersonDataFromJSONTyped,
|
|
20
|
+
KnownPersonDataToJSON,
|
|
21
|
+
} from './KnownPersonData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Known identity data of an individual being verified.
|
|
25
|
+
*
|
|
26
|
+
* Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
|
|
27
|
+
* @export
|
|
28
|
+
* @interface KnownIdentityData
|
|
29
|
+
*/
|
|
30
|
+
export interface KnownIdentityData {
|
|
31
|
+
/**
|
|
32
|
+
* Known identity data specific to the person being verified
|
|
33
|
+
* @type {KnownPersonData}
|
|
34
|
+
* @memberof KnownIdentityData
|
|
35
|
+
*/
|
|
36
|
+
person?: KnownPersonData;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the KnownIdentityData interface.
|
|
41
|
+
*/
|
|
42
|
+
export function instanceOfKnownIdentityData(value: object): value is KnownIdentityData {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function KnownIdentityDataFromJSON(json: any): KnownIdentityData {
|
|
47
|
+
return KnownIdentityDataFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function KnownIdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownIdentityData {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'person': json['person'] == null ? undefined : KnownPersonDataFromJSON(json['person']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function KnownIdentityDataToJSON(value?: KnownIdentityData | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'person': KnownPersonDataToJSON(value['person']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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 { KnownAddress } from './KnownAddress';
|
|
17
|
+
import {
|
|
18
|
+
KnownAddressFromJSON,
|
|
19
|
+
KnownAddressFromJSONTyped,
|
|
20
|
+
KnownAddressToJSON,
|
|
21
|
+
} from './KnownAddress';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface KnownPersonData
|
|
27
|
+
*/
|
|
28
|
+
export interface KnownPersonData {
|
|
29
|
+
/**
|
|
30
|
+
* Given (first) name of the individual
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof KnownPersonData
|
|
33
|
+
*/
|
|
34
|
+
givenName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Family (last) name of the individual
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof KnownPersonData
|
|
39
|
+
*/
|
|
40
|
+
familyName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Middle name of the individual
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KnownPersonData
|
|
45
|
+
*/
|
|
46
|
+
middleName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The phone number (with preceding + character and country code) of the individual being verified
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof KnownPersonData
|
|
51
|
+
*/
|
|
52
|
+
phoneNumber?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The address of the individual being verified
|
|
55
|
+
* @type {KnownAddress}
|
|
56
|
+
* @memberof KnownPersonData
|
|
57
|
+
*/
|
|
58
|
+
address?: KnownAddress;
|
|
59
|
+
/**
|
|
60
|
+
* Date of birth of the individual, in the format "YYYY-MM-DD"
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof KnownPersonData
|
|
63
|
+
*/
|
|
64
|
+
dateOfBirth?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the KnownPersonData interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfKnownPersonData(value: object): value is KnownPersonData {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function KnownPersonDataFromJSON(json: any): KnownPersonData {
|
|
75
|
+
return KnownPersonDataFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function KnownPersonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownPersonData {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'givenName': json['givenName'] == null ? undefined : json['givenName'],
|
|
85
|
+
'familyName': json['familyName'] == null ? undefined : json['familyName'],
|
|
86
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
87
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
88
|
+
'address': json['address'] == null ? undefined : KnownAddressFromJSON(json['address']),
|
|
89
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function KnownPersonDataToJSON(value?: KnownPersonData | null): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'givenName': value['givenName'],
|
|
100
|
+
'familyName': value['familyName'],
|
|
101
|
+
'middleName': value['middleName'],
|
|
102
|
+
'phoneNumber': value['phoneNumber'],
|
|
103
|
+
'address': KnownAddressToJSON(value['address']),
|
|
104
|
+
'dateOfBirth': value['dateOfBirth'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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 ProviderInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface ProviderInformation {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProviderInformation
|
|
26
|
+
*/
|
|
27
|
+
providerId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProviderInformation
|
|
32
|
+
*/
|
|
33
|
+
providerDisplayName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProviderInformation
|
|
38
|
+
*/
|
|
39
|
+
providerLogo: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProviderInformation interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProviderInformation(value: object): value is ProviderInformation {
|
|
46
|
+
if (!('providerId' in value) || value['providerId'] === undefined) return false;
|
|
47
|
+
if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined) return false;
|
|
48
|
+
if (!('providerLogo' in value) || value['providerLogo'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ProviderInformationFromJSON(json: any): ProviderInformation {
|
|
53
|
+
return ProviderInformationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'providerId': json['providerId'],
|
|
63
|
+
'providerDisplayName': json['providerDisplayName'],
|
|
64
|
+
'providerLogo': json['providerLogo'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ProviderInformationToJSON(value?: ProviderInformation | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'providerId': value['providerId'],
|
|
75
|
+
'providerDisplayName': value['providerDisplayName'],
|
|
76
|
+
'providerLogo': value['providerLogo'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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 RecommendRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RecommendRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The phone number of the user you whish to generate a recommendation for. Will be used to lookup the user's identity in the network
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecommendRequest
|
|
26
|
+
*/
|
|
27
|
+
phoneNumber: string;
|
|
28
|
+
/**
|
|
29
|
+
* A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof RecommendRequest
|
|
32
|
+
*/
|
|
33
|
+
countries?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* If one of the countries is US, you can specify a list of US states to further refine the recommendation (e.g., CA, UT, NY)
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof RecommendRequest
|
|
38
|
+
*/
|
|
39
|
+
states?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RecommendRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfRecommendRequest(value: object): value is RecommendRequest {
|
|
46
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function RecommendRequestFromJSON(json: any): RecommendRequest {
|
|
51
|
+
return RecommendRequestFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendRequest {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'phoneNumber': json['phoneNumber'],
|
|
61
|
+
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
62
|
+
'states': json['states'] == null ? undefined : json['states'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'phoneNumber': value['phoneNumber'],
|
|
73
|
+
'countries': value['countries'],
|
|
74
|
+
'states': value['states'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Connect 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 { ProviderInformation } from './ProviderInformation';
|
|
17
|
+
import {
|
|
18
|
+
ProviderInformationFromJSON,
|
|
19
|
+
ProviderInformationFromJSONTyped,
|
|
20
|
+
ProviderInformationToJSON,
|
|
21
|
+
} from './ProviderInformation';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RecommendResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface RecommendResponse {
|
|
29
|
+
/**
|
|
30
|
+
* The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
|
|
31
|
+
* @type {Array<ProviderInformation>}
|
|
32
|
+
* @memberof RecommendResponse
|
|
33
|
+
*/
|
|
34
|
+
recognized: Array<ProviderInformation>;
|
|
35
|
+
/**
|
|
36
|
+
* The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
|
|
37
|
+
* @type {Array<ProviderInformation>}
|
|
38
|
+
* @memberof RecommendResponse
|
|
39
|
+
*/
|
|
40
|
+
relevant: Array<ProviderInformation>;
|
|
41
|
+
/**
|
|
42
|
+
* The list of providers that are not recognized and are not relevant to the user's identity
|
|
43
|
+
* @type {Array<ProviderInformation>}
|
|
44
|
+
* @memberof RecommendResponse
|
|
45
|
+
*/
|
|
46
|
+
remainder: Array<ProviderInformation>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the RecommendResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfRecommendResponse(value: object): value is RecommendResponse {
|
|
53
|
+
if (!('recognized' in value) || value['recognized'] === undefined) return false;
|
|
54
|
+
if (!('relevant' in value) || value['relevant'] === undefined) return false;
|
|
55
|
+
if (!('remainder' in value) || value['remainder'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RecommendResponseFromJSON(json: any): RecommendResponse {
|
|
60
|
+
return RecommendResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function RecommendResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'recognized': ((json['recognized'] as Array<any>).map(ProviderInformationFromJSON)),
|
|
70
|
+
'relevant': ((json['relevant'] as Array<any>).map(ProviderInformationFromJSON)),
|
|
71
|
+
'remainder': ((json['remainder'] as Array<any>).map(ProviderInformationFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function RecommendResponseToJSON(value?: RecommendResponse | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'recognized': ((value['recognized'] as Array<any>).map(ProviderInformationToJSON)),
|
|
82
|
+
'relevant': ((value['relevant'] as Array<any>).map(ProviderInformationToJSON)),
|
|
83
|
+
'remainder': ((value['remainder'] as Array<any>).map(ProviderInformationToJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -22,7 +22,8 @@ export const VerificationFailCode = {
|
|
|
22
22
|
VerificationFailInternal: 'VerificationFailInternal',
|
|
23
23
|
VerificationFailInvalidImage: 'VerificationFailInvalidImage',
|
|
24
24
|
VerificationFailInauthentic: 'VerificationFailInauthentic',
|
|
25
|
-
VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument'
|
|
25
|
+
VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument',
|
|
26
|
+
VerificationFailUserAbandoned: 'VerificationFailUserAbandoned'
|
|
26
27
|
} as const;
|
|
27
28
|
export type VerificationFailCode = typeof VerificationFailCode[keyof typeof VerificationFailCode];
|
|
28
29
|
|
package/src/models/index.ts
CHANGED
|
@@ -16,11 +16,17 @@ export * from './GetSessionResultRequest';
|
|
|
16
16
|
export * from './GetSessionResultResponse';
|
|
17
17
|
export * from './IdentityData';
|
|
18
18
|
export * from './IdentityLookupResponse';
|
|
19
|
+
export * from './KnownAddress';
|
|
20
|
+
export * from './KnownIdentityData';
|
|
21
|
+
export * from './KnownPersonData';
|
|
19
22
|
export * from './ListProvidersResponse';
|
|
20
23
|
export * from './ListSessionsResponse';
|
|
21
24
|
export * from './OrderDirection';
|
|
22
25
|
export * from './PersonData';
|
|
23
26
|
export * from './ProviderInfo';
|
|
27
|
+
export * from './ProviderInformation';
|
|
28
|
+
export * from './RecommendRequest';
|
|
29
|
+
export * from './RecommendResponse';
|
|
24
30
|
export * from './Session';
|
|
25
31
|
export * from './SessionFailCode';
|
|
26
32
|
export * from './SessionOrdering';
|