@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.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +4 -4
  3. package/dist/apis/NetworkApi.d.ts +28 -1
  4. package/dist/apis/NetworkApi.js +36 -0
  5. package/dist/esm/apis/NetworkApi.d.ts +28 -1
  6. package/dist/esm/apis/NetworkApi.js +37 -1
  7. package/dist/esm/models/CreateSessionRequest.d.ts +30 -0
  8. package/dist/esm/models/CreateSessionRequest.js +5 -0
  9. package/dist/esm/models/KnownAddress.d.ts +67 -0
  10. package/dist/esm/models/KnownAddress.js +50 -0
  11. package/dist/esm/models/KnownIdentityData.d.ts +34 -0
  12. package/dist/esm/models/KnownIdentityData.js +39 -0
  13. package/dist/esm/models/KnownPersonData.d.ts +62 -0
  14. package/dist/esm/models/KnownPersonData.js +49 -0
  15. package/dist/esm/models/ProviderInformation.d.ts +43 -0
  16. package/dist/esm/models/ProviderInformation.js +48 -0
  17. package/dist/esm/models/RecommendRequest.d.ts +43 -0
  18. package/dist/esm/models/RecommendRequest.js +44 -0
  19. package/dist/esm/models/RecommendResponse.d.ts +44 -0
  20. package/dist/esm/models/RecommendResponse.js +49 -0
  21. package/dist/esm/models/VerificationFailCode.d.ts +1 -0
  22. package/dist/esm/models/VerificationFailCode.js +2 -1
  23. package/dist/esm/models/index.d.ts +6 -0
  24. package/dist/esm/models/index.js +6 -0
  25. package/dist/models/CreateSessionRequest.d.ts +30 -0
  26. package/dist/models/CreateSessionRequest.js +5 -0
  27. package/dist/models/KnownAddress.d.ts +67 -0
  28. package/dist/models/KnownAddress.js +56 -0
  29. package/dist/models/KnownIdentityData.d.ts +34 -0
  30. package/dist/models/KnownIdentityData.js +45 -0
  31. package/dist/models/KnownPersonData.d.ts +62 -0
  32. package/dist/models/KnownPersonData.js +55 -0
  33. package/dist/models/ProviderInformation.d.ts +43 -0
  34. package/dist/models/ProviderInformation.js +54 -0
  35. package/dist/models/RecommendRequest.d.ts +43 -0
  36. package/dist/models/RecommendRequest.js +50 -0
  37. package/dist/models/RecommendResponse.d.ts +44 -0
  38. package/dist/models/RecommendResponse.js +55 -0
  39. package/dist/models/VerificationFailCode.d.ts +1 -0
  40. package/dist/models/VerificationFailCode.js +2 -1
  41. package/dist/models/index.d.ts +6 -0
  42. package/dist/models/index.js +6 -0
  43. package/package.json +1 -1
  44. package/src/apis/NetworkApi.ts +65 -0
  45. package/src/models/CreateSessionRequest.ts +39 -0
  46. package/src/models/KnownAddress.ts +108 -0
  47. package/src/models/KnownIdentityData.ts +69 -0
  48. package/src/models/KnownPersonData.ts +107 -0
  49. package/src/models/ProviderInformation.ts +79 -0
  50. package/src/models/RecommendRequest.ts +77 -0
  51. package/src/models/RecommendResponse.ts +86 -0
  52. package/src/models/VerificationFailCode.ts +2 -1
  53. package/src/models/index.ts +6 -0
@@ -0,0 +1,48 @@
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 ProviderInformation interface.
16
+ */
17
+ export function instanceOfProviderInformation(value) {
18
+ if (!('providerId' in value) || value['providerId'] === undefined)
19
+ return false;
20
+ if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined)
21
+ return false;
22
+ if (!('providerLogo' in value) || value['providerLogo'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ProviderInformationFromJSON(json) {
27
+ return ProviderInformationFromJSONTyped(json, false);
28
+ }
29
+ export function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'providerId': json['providerId'],
35
+ 'providerDisplayName': json['providerDisplayName'],
36
+ 'providerLogo': json['providerLogo'],
37
+ };
38
+ }
39
+ export function ProviderInformationToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'providerId': value['providerId'],
45
+ 'providerDisplayName': value['providerDisplayName'],
46
+ 'providerLogo': value['providerLogo'],
47
+ };
48
+ }
@@ -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';
@@ -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
  *
@@ -27,6 +28,27 @@ export interface CreateSessionRequest {
27
28
  * @memberof CreateSessionRequest
28
29
  */
29
30
  launchProviderDirectly?: boolean;
31
+ /**
32
+ * Whether to enable Trinsic's "Remember Me" feature, which allows users to save their credentials for future use.
33
+ *
34
+ * This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`.
35
+ * If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`.
36
+ *
37
+ * If this field is set to `true`, then:
38
+ * - The user will be prompted to authenticate with their phone number at the start of the flow
39
+ * - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it
40
+ * - After the user has verified their identity (and if the identity provider in question supports it), they will be prompted to save their credentials for future use
41
+ *
42
+ * If this field is set to `false`, then:
43
+ * - The user will not be prompted to authenticate with their phone number at the start of the flow.
44
+ * - Instead, the user will be immediately shown the list of available providers
45
+ * - The user will not be offered the ability to reuse a previously-saved Trinsic credential
46
+ * - After the user has verified their identity, they will not be prompted to save their credentials for future use
47
+ * - Instead, they will immediately return to your product
48
+ * @type {boolean}
49
+ * @memberof CreateSessionRequest
50
+ */
51
+ enableRememberMe?: boolean;
30
52
  /**
31
53
  * The list of allowed identity providers. If not specified, all available providers will be allowed.
32
54
  *
@@ -36,6 +58,14 @@ export interface CreateSessionRequest {
36
58
  * @memberof CreateSessionRequest
37
59
  */
38
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;
39
69
  /**
40
70
  * Specific identity attributes to request. If not provided, all available attributes will be requested.
41
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.
@@ -33,7 +34,9 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
34
  }
34
35
  return {
35
36
  'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
37
+ 'enableRememberMe': json['enableRememberMe'] == null ? undefined : json['enableRememberMe'],
36
38
  'providers': json['providers'] == null ? undefined : json['providers'],
39
+ 'knownIdentityData': json['knownIdentityData'] == null ? undefined : (0, KnownIdentityData_1.KnownIdentityDataFromJSON)(json['knownIdentityData']),
37
40
  'disclosedFields': json['disclosedFields'] == null ? undefined : (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestFromJSON)(json['disclosedFields']),
38
41
  };
39
42
  }
@@ -43,7 +46,9 @@ function CreateSessionRequestToJSON(value) {
43
46
  }
44
47
  return {
45
48
  'launchProviderDirectly': value['launchProviderDirectly'],
49
+ 'enableRememberMe': value['enableRememberMe'],
46
50
  'providers': value['providers'],
51
+ 'knownIdentityData': (0, KnownIdentityData_1.KnownIdentityDataToJSON)(value['knownIdentityData']),
47
52
  'disclosedFields': (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestToJSON)(value['disclosedFields']),
48
53
  };
49
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;