@trinsic/api 1.1.2 → 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/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 +9 -0
- package/dist/esm/models/CreateSessionRequest.js +3 -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 +9 -0
- package/dist/models/CreateSessionRequest.js +3 -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 +16 -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,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RecommendRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RecommendRequest {
|
|
18
|
+
/**
|
|
19
|
+
* 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
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecommendRequest
|
|
22
|
+
*/
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof RecommendRequest
|
|
28
|
+
*/
|
|
29
|
+
countries?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* 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)
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof RecommendRequest
|
|
34
|
+
*/
|
|
35
|
+
states?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the RecommendRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfRecommendRequest(value: object): value is RecommendRequest;
|
|
41
|
+
export declare function RecommendRequestFromJSON(json: any): RecommendRequest;
|
|
42
|
+
export declare function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendRequest;
|
|
43
|
+
export declare function RecommendRequestToJSON(value?: RecommendRequest | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Check if a given object implements the RecommendRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRecommendRequest(value) {
|
|
18
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function RecommendRequestFromJSON(json) {
|
|
23
|
+
return RecommendRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'phoneNumber': json['phoneNumber'],
|
|
31
|
+
'countries': json['countries'] == null ? undefined : json['countries'],
|
|
32
|
+
'states': json['states'] == null ? undefined : json['states'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function RecommendRequestToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'phoneNumber': value['phoneNumber'],
|
|
41
|
+
'countries': value['countries'],
|
|
42
|
+
'states': value['states'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProviderInformation } from './ProviderInformation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RecommendResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RecommendResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
|
|
21
|
+
* @type {Array<ProviderInformation>}
|
|
22
|
+
* @memberof RecommendResponse
|
|
23
|
+
*/
|
|
24
|
+
recognized: Array<ProviderInformation>;
|
|
25
|
+
/**
|
|
26
|
+
* The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
|
|
27
|
+
* @type {Array<ProviderInformation>}
|
|
28
|
+
* @memberof RecommendResponse
|
|
29
|
+
*/
|
|
30
|
+
relevant: Array<ProviderInformation>;
|
|
31
|
+
/**
|
|
32
|
+
* The list of providers that are not recognized and are not relevant to the user's identity
|
|
33
|
+
* @type {Array<ProviderInformation>}
|
|
34
|
+
* @memberof RecommendResponse
|
|
35
|
+
*/
|
|
36
|
+
remainder: Array<ProviderInformation>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RecommendResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfRecommendResponse(value: object): value is RecommendResponse;
|
|
42
|
+
export declare function RecommendResponseFromJSON(json: any): RecommendResponse;
|
|
43
|
+
export declare function RecommendResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendResponse;
|
|
44
|
+
export declare function RecommendResponseToJSON(value?: RecommendResponse | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { ProviderInformationFromJSON, ProviderInformationToJSON, } from './ProviderInformation';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RecommendResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRecommendResponse(value) {
|
|
19
|
+
if (!('recognized' in value) || value['recognized'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('relevant' in value) || value['relevant'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('remainder' in value) || value['remainder'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function RecommendResponseFromJSON(json) {
|
|
28
|
+
return RecommendResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function RecommendResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'recognized': (json['recognized'].map(ProviderInformationFromJSON)),
|
|
36
|
+
'relevant': (json['relevant'].map(ProviderInformationFromJSON)),
|
|
37
|
+
'remainder': (json['remainder'].map(ProviderInformationFromJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function RecommendResponseToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'recognized': (value['recognized'].map(ProviderInformationToJSON)),
|
|
46
|
+
'relevant': (value['relevant'].map(ProviderInformationToJSON)),
|
|
47
|
+
'remainder': (value['remainder'].map(ProviderInformationToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -19,6 +19,7 @@ export declare const VerificationFailCode: {
|
|
|
19
19
|
readonly VerificationFailInvalidImage: "VerificationFailInvalidImage";
|
|
20
20
|
readonly VerificationFailInauthentic: "VerificationFailInauthentic";
|
|
21
21
|
readonly VerificationFailUnsupportedDocument: "VerificationFailUnsupportedDocument";
|
|
22
|
+
readonly VerificationFailUserAbandoned: "VerificationFailUserAbandoned";
|
|
22
23
|
};
|
|
23
24
|
export type VerificationFailCode = typeof VerificationFailCode[keyof typeof VerificationFailCode];
|
|
24
25
|
export declare function instanceOfVerificationFailCode(value: any): boolean;
|
|
@@ -20,7 +20,8 @@ export const VerificationFailCode = {
|
|
|
20
20
|
VerificationFailInternal: 'VerificationFailInternal',
|
|
21
21
|
VerificationFailInvalidImage: 'VerificationFailInvalidImage',
|
|
22
22
|
VerificationFailInauthentic: 'VerificationFailInauthentic',
|
|
23
|
-
VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument'
|
|
23
|
+
VerificationFailUnsupportedDocument: 'VerificationFailUnsupportedDocument',
|
|
24
|
+
VerificationFailUserAbandoned: 'VerificationFailUserAbandoned'
|
|
24
25
|
};
|
|
25
26
|
export function instanceOfVerificationFailCode(value) {
|
|
26
27
|
for (const key in VerificationFailCode) {
|
|
@@ -14,11 +14,17 @@ export * from './GetSessionResultRequest';
|
|
|
14
14
|
export * from './GetSessionResultResponse';
|
|
15
15
|
export * from './IdentityData';
|
|
16
16
|
export * from './IdentityLookupResponse';
|
|
17
|
+
export * from './KnownAddress';
|
|
18
|
+
export * from './KnownIdentityData';
|
|
19
|
+
export * from './KnownPersonData';
|
|
17
20
|
export * from './ListProvidersResponse';
|
|
18
21
|
export * from './ListSessionsResponse';
|
|
19
22
|
export * from './OrderDirection';
|
|
20
23
|
export * from './PersonData';
|
|
21
24
|
export * from './ProviderInfo';
|
|
25
|
+
export * from './ProviderInformation';
|
|
26
|
+
export * from './RecommendRequest';
|
|
27
|
+
export * from './RecommendResponse';
|
|
22
28
|
export * from './Session';
|
|
23
29
|
export * from './SessionFailCode';
|
|
24
30
|
export * from './SessionOrdering';
|
package/dist/esm/models/index.js
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';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { KnownIdentityData } from './KnownIdentityData';
|
|
12
13
|
import type { DisclosedFieldsRequest } from './DisclosedFieldsRequest';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -57,6 +58,14 @@ export interface CreateSessionRequest {
|
|
|
57
58
|
* @memberof CreateSessionRequest
|
|
58
59
|
*/
|
|
59
60
|
providers?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Known identity data of an individual being verified.
|
|
63
|
+
*
|
|
64
|
+
* Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
|
|
65
|
+
* @type {KnownIdentityData}
|
|
66
|
+
* @memberof CreateSessionRequest
|
|
67
|
+
*/
|
|
68
|
+
knownIdentityData?: KnownIdentityData;
|
|
60
69
|
/**
|
|
61
70
|
* Specific identity attributes to request. If not provided, all available attributes will be requested.
|
|
62
71
|
* @type {DisclosedFieldsRequest}
|
|
@@ -17,6 +17,7 @@ exports.instanceOfCreateSessionRequest = instanceOfCreateSessionRequest;
|
|
|
17
17
|
exports.CreateSessionRequestFromJSON = CreateSessionRequestFromJSON;
|
|
18
18
|
exports.CreateSessionRequestFromJSONTyped = CreateSessionRequestFromJSONTyped;
|
|
19
19
|
exports.CreateSessionRequestToJSON = CreateSessionRequestToJSON;
|
|
20
|
+
const KnownIdentityData_1 = require("./KnownIdentityData");
|
|
20
21
|
const DisclosedFieldsRequest_1 = require("./DisclosedFieldsRequest");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the CreateSessionRequest interface.
|
|
@@ -35,6 +36,7 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
|
|
36
37
|
'enableRememberMe': json['enableRememberMe'] == null ? undefined : json['enableRememberMe'],
|
|
37
38
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
39
|
+
'knownIdentityData': json['knownIdentityData'] == null ? undefined : (0, KnownIdentityData_1.KnownIdentityDataFromJSON)(json['knownIdentityData']),
|
|
38
40
|
'disclosedFields': json['disclosedFields'] == null ? undefined : (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestFromJSON)(json['disclosedFields']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -46,6 +48,7 @@ function CreateSessionRequestToJSON(value) {
|
|
|
46
48
|
'launchProviderDirectly': value['launchProviderDirectly'],
|
|
47
49
|
'enableRememberMe': value['enableRememberMe'],
|
|
48
50
|
'providers': value['providers'],
|
|
51
|
+
'knownIdentityData': (0, KnownIdentityData_1.KnownIdentityDataToJSON)(value['knownIdentityData']),
|
|
49
52
|
'disclosedFields': (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestToJSON)(value['disclosedFields']),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Address information for an individual
|
|
14
|
+
* @export
|
|
15
|
+
* @interface KnownAddress
|
|
16
|
+
*/
|
|
17
|
+
export interface KnownAddress {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KnownAddress
|
|
22
|
+
*/
|
|
23
|
+
line1?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KnownAddress
|
|
28
|
+
*/
|
|
29
|
+
line2?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KnownAddress
|
|
34
|
+
*/
|
|
35
|
+
line3?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof KnownAddress
|
|
40
|
+
*/
|
|
41
|
+
city?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof KnownAddress
|
|
46
|
+
*/
|
|
47
|
+
state?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof KnownAddress
|
|
52
|
+
*/
|
|
53
|
+
postalCode?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof KnownAddress
|
|
58
|
+
*/
|
|
59
|
+
country?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the KnownAddress interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfKnownAddress(value: object): value is KnownAddress;
|
|
65
|
+
export declare function KnownAddressFromJSON(json: any): KnownAddress;
|
|
66
|
+
export declare function KnownAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownAddress;
|
|
67
|
+
export declare function KnownAddressToJSON(value?: KnownAddress | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfKnownAddress = instanceOfKnownAddress;
|
|
17
|
+
exports.KnownAddressFromJSON = KnownAddressFromJSON;
|
|
18
|
+
exports.KnownAddressFromJSONTyped = KnownAddressFromJSONTyped;
|
|
19
|
+
exports.KnownAddressToJSON = KnownAddressToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the KnownAddress interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfKnownAddress(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function KnownAddressFromJSON(json) {
|
|
27
|
+
return KnownAddressFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function KnownAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'line1': json['line1'] == null ? undefined : json['line1'],
|
|
35
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
36
|
+
'line3': json['line3'] == null ? undefined : json['line3'],
|
|
37
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
38
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
39
|
+
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
40
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function KnownAddressToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'line1': value['line1'],
|
|
49
|
+
'line2': value['line2'],
|
|
50
|
+
'line3': value['line3'],
|
|
51
|
+
'city': value['city'],
|
|
52
|
+
'state': value['state'],
|
|
53
|
+
'postalCode': value['postalCode'],
|
|
54
|
+
'country': value['country'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { KnownPersonData } from './KnownPersonData';
|
|
13
|
+
/**
|
|
14
|
+
* Known identity data of an individual being verified.
|
|
15
|
+
*
|
|
16
|
+
* Provide this to Trinsic during Session creation to enable improved identity provider selection recommendations.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface KnownIdentityData
|
|
19
|
+
*/
|
|
20
|
+
export interface KnownIdentityData {
|
|
21
|
+
/**
|
|
22
|
+
* Known identity data specific to the person being verified
|
|
23
|
+
* @type {KnownPersonData}
|
|
24
|
+
* @memberof KnownIdentityData
|
|
25
|
+
*/
|
|
26
|
+
person?: KnownPersonData;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the KnownIdentityData interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfKnownIdentityData(value: object): value is KnownIdentityData;
|
|
32
|
+
export declare function KnownIdentityDataFromJSON(json: any): KnownIdentityData;
|
|
33
|
+
export declare function KnownIdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownIdentityData;
|
|
34
|
+
export declare function KnownIdentityDataToJSON(value?: KnownIdentityData | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfKnownIdentityData = instanceOfKnownIdentityData;
|
|
17
|
+
exports.KnownIdentityDataFromJSON = KnownIdentityDataFromJSON;
|
|
18
|
+
exports.KnownIdentityDataFromJSONTyped = KnownIdentityDataFromJSONTyped;
|
|
19
|
+
exports.KnownIdentityDataToJSON = KnownIdentityDataToJSON;
|
|
20
|
+
const KnownPersonData_1 = require("./KnownPersonData");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the KnownIdentityData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfKnownIdentityData(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function KnownIdentityDataFromJSON(json) {
|
|
28
|
+
return KnownIdentityDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function KnownIdentityDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'person': json['person'] == null ? undefined : (0, KnownPersonData_1.KnownPersonDataFromJSON)(json['person']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function KnownIdentityDataToJSON(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'person': (0, KnownPersonData_1.KnownPersonDataToJSON)(value['person']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { KnownAddress } from './KnownAddress';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface KnownPersonData
|
|
17
|
+
*/
|
|
18
|
+
export interface KnownPersonData {
|
|
19
|
+
/**
|
|
20
|
+
* Given (first) name of the individual
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof KnownPersonData
|
|
23
|
+
*/
|
|
24
|
+
givenName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Family (last) name of the individual
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof KnownPersonData
|
|
29
|
+
*/
|
|
30
|
+
familyName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Middle name of the individual
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof KnownPersonData
|
|
35
|
+
*/
|
|
36
|
+
middleName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The phone number (with preceding + character and country code) of the individual being verified
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof KnownPersonData
|
|
41
|
+
*/
|
|
42
|
+
phoneNumber?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The address of the individual being verified
|
|
45
|
+
* @type {KnownAddress}
|
|
46
|
+
* @memberof KnownPersonData
|
|
47
|
+
*/
|
|
48
|
+
address?: KnownAddress;
|
|
49
|
+
/**
|
|
50
|
+
* Date of birth of the individual, in the format "YYYY-MM-DD"
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof KnownPersonData
|
|
53
|
+
*/
|
|
54
|
+
dateOfBirth?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the KnownPersonData interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfKnownPersonData(value: object): value is KnownPersonData;
|
|
60
|
+
export declare function KnownPersonDataFromJSON(json: any): KnownPersonData;
|
|
61
|
+
export declare function KnownPersonDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnownPersonData;
|
|
62
|
+
export declare function KnownPersonDataToJSON(value?: KnownPersonData | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Connect API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfKnownPersonData = instanceOfKnownPersonData;
|
|
17
|
+
exports.KnownPersonDataFromJSON = KnownPersonDataFromJSON;
|
|
18
|
+
exports.KnownPersonDataFromJSONTyped = KnownPersonDataFromJSONTyped;
|
|
19
|
+
exports.KnownPersonDataToJSON = KnownPersonDataToJSON;
|
|
20
|
+
const KnownAddress_1 = require("./KnownAddress");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the KnownPersonData interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfKnownPersonData(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function KnownPersonDataFromJSON(json) {
|
|
28
|
+
return KnownPersonDataFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function KnownPersonDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'givenName': json['givenName'] == null ? undefined : json['givenName'],
|
|
36
|
+
'familyName': json['familyName'] == null ? undefined : json['familyName'],
|
|
37
|
+
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
38
|
+
'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
|
|
39
|
+
'address': json['address'] == null ? undefined : (0, KnownAddress_1.KnownAddressFromJSON)(json['address']),
|
|
40
|
+
'dateOfBirth': json['dateOfBirth'] == null ? undefined : json['dateOfBirth'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function KnownPersonDataToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'givenName': value['givenName'],
|
|
49
|
+
'familyName': value['familyName'],
|
|
50
|
+
'middleName': value['middleName'],
|
|
51
|
+
'phoneNumber': value['phoneNumber'],
|
|
52
|
+
'address': (0, KnownAddress_1.KnownAddressToJSON)(value['address']),
|
|
53
|
+
'dateOfBirth': value['dateOfBirth'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connect API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProviderInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface ProviderInformation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProviderInformation
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProviderInformation
|
|
28
|
+
*/
|
|
29
|
+
providerDisplayName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProviderInformation
|
|
34
|
+
*/
|
|
35
|
+
providerLogo: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProviderInformation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProviderInformation(value: object): value is ProviderInformation;
|
|
41
|
+
export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
|
|
42
|
+
export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
|
|
43
|
+
export declare function ProviderInformationToJSON(value?: ProviderInformation | null): any;
|