@trinsic/api 2.0.3 → 2.1.0-alpha1

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 (94) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/dist/apis/AttachmentsApi.d.ts +4 -4
  3. package/dist/apis/AttachmentsApi.js +2 -2
  4. package/dist/apis/NetworkApi.d.ts +12 -8
  5. package/dist/apis/NetworkApi.js +8 -5
  6. package/dist/apis/SessionsApi.d.ts +4 -4
  7. package/dist/apis/SessionsApi.js +2 -2
  8. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  9. package/dist/esm/apis/AttachmentsApi.js +2 -2
  10. package/dist/esm/apis/NetworkApi.d.ts +12 -8
  11. package/dist/esm/apis/NetworkApi.js +8 -5
  12. package/dist/esm/apis/SessionsApi.d.ts +4 -4
  13. package/dist/esm/apis/SessionsApi.js +2 -2
  14. package/dist/esm/models/BangladeshNidInput.d.ts +3 -3
  15. package/dist/esm/models/BangladeshNidInput.js +10 -4
  16. package/dist/esm/models/ContractField.d.ts +39 -0
  17. package/dist/esm/models/ContractField.js +48 -0
  18. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  19. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
  20. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  21. package/dist/esm/models/DocumentType.d.ts +1 -0
  22. package/dist/esm/models/DocumentType.js +2 -1
  23. package/dist/esm/models/FieldAvailability.d.ts +26 -0
  24. package/dist/esm/models/FieldAvailability.js +44 -0
  25. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  26. package/dist/esm/models/IntegrationCapability.js +2 -1
  27. package/dist/esm/models/ProviderContract.d.ts +18 -1
  28. package/dist/esm/models/ProviderContract.js +7 -0
  29. package/dist/esm/models/ProviderInfo.d.ts +32 -0
  30. package/dist/esm/models/ProviderInfo.js +15 -0
  31. package/dist/esm/models/ProviderInformation.d.ts +50 -6
  32. package/dist/esm/models/ProviderInformation.js +28 -1
  33. package/dist/esm/models/ProviderInput.d.ts +12 -12
  34. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  35. package/dist/esm/models/RecommendRequest.js +2 -0
  36. package/dist/esm/models/RecommendResponse.d.ts +5 -3
  37. package/dist/esm/models/Session.d.ts +1 -1
  38. package/dist/esm/models/SmartIdInput.d.ts +7 -0
  39. package/dist/esm/models/SmartIdInput.js +2 -0
  40. package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
  41. package/dist/esm/models/SubProviderMetadata.js +4 -0
  42. package/dist/esm/models/index.d.ts +2 -0
  43. package/dist/esm/models/index.js +2 -0
  44. package/dist/models/BangladeshNidInput.d.ts +3 -3
  45. package/dist/models/BangladeshNidInput.js +10 -4
  46. package/dist/models/ContractField.d.ts +39 -0
  47. package/dist/models/ContractField.js +55 -0
  48. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  49. package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
  50. package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  51. package/dist/models/DocumentType.d.ts +1 -0
  52. package/dist/models/DocumentType.js +2 -1
  53. package/dist/models/FieldAvailability.d.ts +26 -0
  54. package/dist/models/FieldAvailability.js +52 -0
  55. package/dist/models/IntegrationCapability.d.ts +1 -0
  56. package/dist/models/IntegrationCapability.js +2 -1
  57. package/dist/models/ProviderContract.d.ts +18 -1
  58. package/dist/models/ProviderContract.js +7 -0
  59. package/dist/models/ProviderInfo.d.ts +32 -0
  60. package/dist/models/ProviderInfo.js +15 -0
  61. package/dist/models/ProviderInformation.d.ts +50 -6
  62. package/dist/models/ProviderInformation.js +28 -1
  63. package/dist/models/ProviderInput.d.ts +12 -12
  64. package/dist/models/RecommendRequest.d.ts +6 -0
  65. package/dist/models/RecommendRequest.js +2 -0
  66. package/dist/models/RecommendResponse.d.ts +5 -3
  67. package/dist/models/Session.d.ts +1 -1
  68. package/dist/models/SmartIdInput.d.ts +7 -0
  69. package/dist/models/SmartIdInput.js +2 -0
  70. package/dist/models/SubProviderMetadata.d.ts +12 -1
  71. package/dist/models/SubProviderMetadata.js +4 -0
  72. package/dist/models/index.d.ts +2 -0
  73. package/dist/models/index.js +2 -0
  74. package/package.json +1 -1
  75. package/src/apis/AttachmentsApi.ts +4 -4
  76. package/src/apis/NetworkApi.ts +18 -9
  77. package/src/apis/SessionsApi.ts +4 -4
  78. package/src/models/BangladeshNidInput.ts +10 -7
  79. package/src/models/ContractField.ts +85 -0
  80. package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
  81. package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
  82. package/src/models/DocumentType.ts +2 -1
  83. package/src/models/FieldAvailability.ts +54 -0
  84. package/src/models/IntegrationCapability.ts +2 -1
  85. package/src/models/ProviderContract.ts +29 -1
  86. package/src/models/ProviderInfo.ts +50 -0
  87. package/src/models/ProviderInformation.ts +78 -7
  88. package/src/models/ProviderInput.ts +12 -12
  89. package/src/models/RecommendRequest.ts +8 -0
  90. package/src/models/RecommendResponse.ts +5 -3
  91. package/src/models/Session.ts +1 -1
  92. package/src/models/SmartIdInput.ts +9 -0
  93. package/src/models/SubProviderMetadata.ts +15 -1
  94. package/src/models/index.ts +2 -0
@@ -54,7 +54,7 @@ export interface Session {
54
54
  */
55
55
  created: number;
56
56
  /**
57
- * The unix timestamp, in seconds, when this session's state last changed
57
+ * The unix timestamp, in seconds, when this session's data was last updated
58
58
  * @type {number}
59
59
  * @memberof Session
60
60
  */
@@ -19,8 +19,15 @@ export interface SmartIdInput {
19
19
  * The user's Smart ID Document Number
20
20
  * @type {string}
21
21
  * @memberof SmartIdInput
22
+ * @deprecated
22
23
  */
23
24
  smartIdDocumentNumber?: string | null;
25
+ /**
26
+ * The user's Smart ID ETSI number or document number.
27
+ * @type {string}
28
+ * @memberof SmartIdInput
29
+ */
30
+ smartIdNumber?: string | null;
24
31
  }
25
32
  /**
26
33
  * Check if a given object implements the SmartIdInput interface.
@@ -26,6 +26,7 @@ export function SmartIdInputFromJSONTyped(json, ignoreDiscriminator) {
26
26
  }
27
27
  return {
28
28
  'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
29
+ 'smartIdNumber': json['smartIdNumber'] == null ? undefined : json['smartIdNumber'],
29
30
  };
30
31
  }
31
32
  export function SmartIdInputToJSON(json) {
@@ -37,5 +38,6 @@ export function SmartIdInputToJSONTyped(value, ignoreDiscriminator = false) {
37
38
  }
38
39
  return {
39
40
  'smartIdDocumentNumber': value['smartIdDocumentNumber'],
41
+ 'smartIdNumber': value['smartIdNumber'],
40
42
  };
41
43
  }
@@ -31,9 +31,20 @@ export interface SubProviderMetadata {
31
31
  */
32
32
  name: string;
33
33
  /**
34
- * Flavor text for the sub-provider
34
+ * The Provider's subtext recommended to be shown next to the name.
35
+ *
36
+ * This is flavor text, not a full, human-readable description of the provider.
37
+ * @type {string}
38
+ * @memberof SubProviderMetadata
39
+ */
40
+ subtext: string;
41
+ /**
42
+ * The Provider's subtext recommended to be shown next to the name.
43
+ *
44
+ * This is flavor text, not a full, human-readable description of the provider.
35
45
  * @type {string}
36
46
  * @memberof SubProviderMetadata
47
+ * @deprecated
37
48
  */
38
49
  description: string;
39
50
  /**
@@ -19,6 +19,8 @@ export function instanceOfSubProviderMetadata(value) {
19
19
  return false;
20
20
  if (!('name' in value) || value['name'] === undefined)
21
21
  return false;
22
+ if (!('subtext' in value) || value['subtext'] === undefined)
23
+ return false;
22
24
  if (!('description' in value) || value['description'] === undefined)
23
25
  return false;
24
26
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
@@ -35,6 +37,7 @@ export function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
35
37
  return {
36
38
  'id': json['id'],
37
39
  'name': json['name'],
40
+ 'subtext': json['subtext'],
38
41
  'description': json['description'],
39
42
  'logoUrl': json['logoUrl'],
40
43
  };
@@ -49,6 +52,7 @@ export function SubProviderMetadataToJSONTyped(value, ignoreDiscriminator = fals
49
52
  return {
50
53
  'id': value['id'],
51
54
  'name': value['name'],
55
+ 'subtext': value['subtext'],
52
56
  'description': value['description'],
53
57
  'logoUrl': value['logoUrl'],
54
58
  };
@@ -5,6 +5,7 @@ export * from './BangladeshNidInput';
5
5
  export * from './BrazilCpfCheckInput';
6
6
  export * from './BrazilDigitalCnhInput';
7
7
  export * from './CancelSessionResponse';
8
+ export * from './ContractField';
8
9
  export * from './CreateAdvancedProviderSessionRequest';
9
10
  export * from './CreateAdvancedProviderSessionResponse';
10
11
  export * from './CreateHostedProviderSessionRequest';
@@ -14,6 +15,7 @@ export * from './CreateWidgetSessionResponse';
14
15
  export * from './DocumentData';
15
16
  export * from './DocumentScanAttachments';
16
17
  export * from './DocumentType';
18
+ export * from './FieldAvailability';
17
19
  export * from './GetAttachmentRequest';
18
20
  export * from './GetAttachmentResponse';
19
21
  export * from './GetSessionResponse';
@@ -7,6 +7,7 @@ export * from './BangladeshNidInput';
7
7
  export * from './BrazilCpfCheckInput';
8
8
  export * from './BrazilDigitalCnhInput';
9
9
  export * from './CancelSessionResponse';
10
+ export * from './ContractField';
10
11
  export * from './CreateAdvancedProviderSessionRequest';
11
12
  export * from './CreateAdvancedProviderSessionResponse';
12
13
  export * from './CreateHostedProviderSessionRequest';
@@ -16,6 +17,7 @@ export * from './CreateWidgetSessionResponse';
16
17
  export * from './DocumentData';
17
18
  export * from './DocumentScanAttachments';
18
19
  export * from './DocumentType';
20
+ export * from './FieldAvailability';
19
21
  export * from './GetAttachmentRequest';
20
22
  export * from './GetAttachmentResponse';
21
23
  export * from './GetSessionResponse';
@@ -20,19 +20,19 @@ export interface BangladeshNidInput {
20
20
  * @type {string}
21
21
  * @memberof BangladeshNidInput
22
22
  */
23
- nationalIdNumber?: string | null;
23
+ nationalIdNumber: string;
24
24
  /**
25
25
  * The user's date of birth, in `YYYY-MM-DD` format
26
26
  * @type {Date}
27
27
  * @memberof BangladeshNidInput
28
28
  */
29
- dateOfBirth?: Date | null;
29
+ dateOfBirth: Date;
30
30
  /**
31
31
  * The user's full name
32
32
  * @type {string}
33
33
  * @memberof BangladeshNidInput
34
34
  */
35
- name?: string | null;
35
+ name: string;
36
36
  /**
37
37
  * The raw bytes of the photo file collected from the user.
38
38
  * @type {string}
@@ -22,6 +22,12 @@ exports.BangladeshNidInputToJSONTyped = BangladeshNidInputToJSONTyped;
22
22
  * Check if a given object implements the BangladeshNidInput interface.
23
23
  */
24
24
  function instanceOfBangladeshNidInput(value) {
25
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
26
+ return false;
27
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
25
31
  return true;
26
32
  }
27
33
  function BangladeshNidInputFromJSON(json) {
@@ -32,9 +38,9 @@ function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
32
38
  return json;
33
39
  }
34
40
  return {
35
- 'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
36
- 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
37
- 'name': json['name'] == null ? undefined : json['name'],
41
+ 'nationalIdNumber': json['nationalIdNumber'],
42
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
43
+ 'name': json['name'],
38
44
  'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
39
45
  'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
40
46
  };
@@ -48,7 +54,7 @@ function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
48
54
  }
49
55
  return {
50
56
  'nationalIdNumber': value['nationalIdNumber'],
51
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
57
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
52
58
  'name': value['name'],
53
59
  'photoByes': value['photoByes'],
54
60
  'photoImageMimeType': value['photoImageMimeType'],
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Trinsic 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 { FieldAvailability } from './FieldAvailability';
13
+ /**
14
+ * Information about a field that a Provider will return in verification results.
15
+ * @export
16
+ * @interface ContractField
17
+ */
18
+ export interface ContractField {
19
+ /**
20
+ * The name of the field as it appears in verification results.
21
+ * @type {string}
22
+ * @memberof ContractField
23
+ */
24
+ name: string;
25
+ /**
26
+ * Indicates when this field will be present in verification results.
27
+ * @type {FieldAvailability}
28
+ * @memberof ContractField
29
+ */
30
+ outputted: FieldAvailability;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ContractField interface.
34
+ */
35
+ export declare function instanceOfContractField(value: object): value is ContractField;
36
+ export declare function ContractFieldFromJSON(json: any): ContractField;
37
+ export declare function ContractFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractField;
38
+ export declare function ContractFieldToJSON(json: any): ContractField;
39
+ export declare function ContractFieldToJSONTyped(value?: ContractField | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic 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.instanceOfContractField = instanceOfContractField;
17
+ exports.ContractFieldFromJSON = ContractFieldFromJSON;
18
+ exports.ContractFieldFromJSONTyped = ContractFieldFromJSONTyped;
19
+ exports.ContractFieldToJSON = ContractFieldToJSON;
20
+ exports.ContractFieldToJSONTyped = ContractFieldToJSONTyped;
21
+ const FieldAvailability_1 = require("./FieldAvailability");
22
+ /**
23
+ * Check if a given object implements the ContractField interface.
24
+ */
25
+ function instanceOfContractField(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('outputted' in value) || value['outputted'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ContractFieldFromJSON(json) {
33
+ return ContractFieldFromJSONTyped(json, false);
34
+ }
35
+ function ContractFieldFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'outputted': (0, FieldAvailability_1.FieldAvailabilityFromJSON)(json['outputted']),
42
+ };
43
+ }
44
+ function ContractFieldToJSON(json) {
45
+ return ContractFieldToJSONTyped(json, false);
46
+ }
47
+ function ContractFieldToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'outputted': (0, FieldAvailability_1.FieldAvailabilityToJSON)(value['outputted']),
54
+ };
55
+ }
@@ -23,12 +23,6 @@ export interface CreateAdvancedProviderSessionRequest {
23
23
  * @memberof CreateAdvancedProviderSessionRequest
24
24
  */
25
25
  provider: string;
26
- /**
27
- * Provider-specific input for those providers which require it.
28
- * @type {ProviderInput}
29
- * @memberof CreateAdvancedProviderSessionRequest
30
- */
31
- providerInput?: ProviderInput | null;
32
26
  /**
33
27
  * The Redirect URL to which the user should be sent after the session is complete.
34
28
  *
@@ -73,6 +67,12 @@ export interface CreateAdvancedProviderSessionRequest {
73
67
  * @memberof CreateAdvancedProviderSessionRequest
74
68
  */
75
69
  fallbackToHostedUI?: boolean | null;
70
+ /**
71
+ * Provider-specific input for those providers which require it.
72
+ * @type {ProviderInput}
73
+ * @memberof CreateAdvancedProviderSessionRequest
74
+ */
75
+ providerInput?: ProviderInput | null;
76
76
  }
77
77
  /**
78
78
  * Check if a given object implements the CreateAdvancedProviderSessionRequest interface.
@@ -39,10 +39,10 @@ function CreateAdvancedProviderSessionRequestFromJSONTyped(json, ignoreDiscrimin
39
39
  }
40
40
  return {
41
41
  'provider': json['provider'],
42
- 'providerInput': json['providerInput'] == null ? undefined : (0, ProviderInput_1.ProviderInputFromJSON)(json['providerInput']),
43
42
  'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
44
43
  'capabilities': (json['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityFromJSON)),
45
44
  'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
45
+ 'providerInput': json['providerInput'] == null ? undefined : (0, ProviderInput_1.ProviderInputFromJSON)(json['providerInput']),
46
46
  };
47
47
  }
48
48
  function CreateAdvancedProviderSessionRequestToJSON(json) {
@@ -54,9 +54,9 @@ function CreateAdvancedProviderSessionRequestToJSONTyped(value, ignoreDiscrimina
54
54
  }
55
55
  return {
56
56
  'provider': value['provider'],
57
- 'providerInput': (0, ProviderInput_1.ProviderInputToJSON)(value['providerInput']),
58
57
  'redirectUrl': value['redirectUrl'],
59
58
  'capabilities': (value['capabilities'].map(IntegrationCapability_1.IntegrationCapabilityToJSON)),
60
59
  'fallbackToHostedUI': value['fallbackToHostedUI'],
60
+ 'providerInput': (0, ProviderInput_1.ProviderInputToJSON)(value['providerInput']),
61
61
  };
62
62
  }
@@ -30,8 +30,14 @@ export interface CreateHostedProviderSessionRequest {
30
30
  redirectUrl: string;
31
31
  /**
32
32
  * Provider-specific input for those providers which require it.
33
+ *
34
+ *
35
+ * <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation,
36
+ * and will instead always redirect the user to a hosted interface to collect input. If you need
37
+ * to collect input from the user yourself, please use the Create Advanced Session endpoint instead.
33
38
  * @type {ProviderInput}
34
39
  * @memberof CreateHostedProviderSessionRequest
40
+ * @deprecated
35
41
  */
36
42
  providerInput?: ProviderInput | null;
37
43
  }
@@ -18,6 +18,7 @@ export declare const DocumentType: {
18
18
  readonly DriversLicense: "DriversLicense";
19
19
  readonly NationalId: "NationalId";
20
20
  readonly IdCard: "IdCard";
21
+ readonly Other: "Other";
21
22
  };
22
23
  export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
23
24
  export declare function instanceOfDocumentType(value: any): boolean;
@@ -27,7 +27,8 @@ exports.DocumentType = {
27
27
  Passport: 'Passport',
28
28
  DriversLicense: 'DriversLicense',
29
29
  NationalId: 'NationalId',
30
- IdCard: 'IdCard'
30
+ IdCard: 'IdCard',
31
+ Other: 'Other'
31
32
  };
32
33
  function instanceOfDocumentType(value) {
33
34
  for (const key in exports.DocumentType) {
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Trinsic 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
+ * Indicates when a field will be available in verification results.
14
+ * @export
15
+ */
16
+ export declare const FieldAvailability: {
17
+ readonly Never: "Never";
18
+ readonly Sometimes: "Sometimes";
19
+ readonly Always: "Always";
20
+ };
21
+ export type FieldAvailability = typeof FieldAvailability[keyof typeof FieldAvailability];
22
+ export declare function instanceOfFieldAvailability(value: any): boolean;
23
+ export declare function FieldAvailabilityFromJSON(json: any): FieldAvailability;
24
+ export declare function FieldAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldAvailability;
25
+ export declare function FieldAvailabilityToJSON(value?: FieldAvailability | null): any;
26
+ export declare function FieldAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldAvailability;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic 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.FieldAvailability = void 0;
17
+ exports.instanceOfFieldAvailability = instanceOfFieldAvailability;
18
+ exports.FieldAvailabilityFromJSON = FieldAvailabilityFromJSON;
19
+ exports.FieldAvailabilityFromJSONTyped = FieldAvailabilityFromJSONTyped;
20
+ exports.FieldAvailabilityToJSON = FieldAvailabilityToJSON;
21
+ exports.FieldAvailabilityToJSONTyped = FieldAvailabilityToJSONTyped;
22
+ /**
23
+ * Indicates when a field will be available in verification results.
24
+ * @export
25
+ */
26
+ exports.FieldAvailability = {
27
+ Never: 'Never',
28
+ Sometimes: 'Sometimes',
29
+ Always: 'Always'
30
+ };
31
+ function instanceOfFieldAvailability(value) {
32
+ for (const key in exports.FieldAvailability) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.FieldAvailability, key)) {
34
+ if (exports.FieldAvailability[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function FieldAvailabilityFromJSON(json) {
42
+ return FieldAvailabilityFromJSONTyped(json, false);
43
+ }
44
+ function FieldAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function FieldAvailabilityToJSON(value) {
48
+ return value;
49
+ }
50
+ function FieldAvailabilityToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -20,6 +20,7 @@ export declare const IntegrationCapability: {
20
20
  readonly RefreshStepContent: "RefreshStepContent";
21
21
  readonly CaptureRedirect: "CaptureRedirect";
22
22
  readonly PollResult: "PollResult";
23
+ readonly PollAfterRedirect: "PollAfterRedirect";
23
24
  };
24
25
  export type IntegrationCapability = typeof IntegrationCapability[keyof typeof IntegrationCapability];
25
26
  export declare function instanceOfIntegrationCapability(value: any): boolean;
@@ -29,7 +29,8 @@ exports.IntegrationCapability = {
29
29
  ShowContent: 'ShowContent',
30
30
  RefreshStepContent: 'RefreshStepContent',
31
31
  CaptureRedirect: 'CaptureRedirect',
32
- PollResult: 'PollResult'
32
+ PollResult: 'PollResult',
33
+ PollAfterRedirect: 'PollAfterRedirect'
33
34
  };
34
35
  function instanceOfIntegrationCapability(value) {
35
36
  for (const key in exports.IntegrationCapability) {
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContractField } from './ContractField';
12
13
  import type { ProviderHealth } from './ProviderHealth';
13
14
  import type { SubProviderMetadata } from './SubProviderMetadata';
14
15
  import type { ResultCollectionMethod } from './ResultCollectionMethod';
@@ -31,12 +32,21 @@ export interface ProviderContract {
31
32
  * @memberof ProviderContract
32
33
  */
33
34
  name: string;
35
+ /**
36
+ * The Provider's subtext recommended to be shown next to the name.
37
+ *
38
+ * This is flavor text, not a full, human-readable description of the provider.
39
+ * @type {string}
40
+ * @memberof ProviderContract
41
+ */
42
+ subtext: string;
34
43
  /**
35
44
  * The Provider's description as it appears in Trinsic's Widget.
36
45
  *
37
46
  * This is flavor text, not a full, human-readable description of the provider.
38
47
  * @type {string}
39
48
  * @memberof ProviderContract
49
+ * @deprecated
40
50
  */
41
51
  description: string;
42
52
  /**
@@ -87,7 +97,8 @@ export interface ProviderContract {
87
97
  * If `true`, then the results for this Provider may not be available immediately after the user is redirected back
88
98
  * to your application. In this case, the `GetSessionResults` API must be called until results are available.
89
99
  *
90
- * This is an uncommon scenario, and typically only applies to Providers which use a biometric check or traditional document scan.
100
+ * This is an uncommon scenario, and only applies to Providers which cannot guarantee
101
+ * the availability of results immediately after the user is redirected back to your application.
91
102
  * @type {boolean}
92
103
  * @memberof ProviderContract
93
104
  */
@@ -129,6 +140,12 @@ export interface ProviderContract {
129
140
  * @memberof ProviderContract
130
141
  */
131
142
  supportsAdvancedProviderSessions: boolean;
143
+ /**
144
+ * Information about the fields that this Provider will return in verification results.
145
+ * @type {Array<ContractField>}
146
+ * @memberof ProviderContract
147
+ */
148
+ availableFields?: Array<ContractField> | null;
132
149
  /**
133
150
  * Metadata about the sub-providers which are available for this Provider.
134
151
  *
@@ -18,6 +18,7 @@ exports.ProviderContractFromJSON = ProviderContractFromJSON;
18
18
  exports.ProviderContractFromJSONTyped = ProviderContractFromJSONTyped;
19
19
  exports.ProviderContractToJSON = ProviderContractToJSON;
20
20
  exports.ProviderContractToJSONTyped = ProviderContractToJSONTyped;
21
+ const ContractField_1 = require("./ContractField");
21
22
  const ProviderHealth_1 = require("./ProviderHealth");
22
23
  const SubProviderMetadata_1 = require("./SubProviderMetadata");
23
24
  const ResultCollectionMethod_1 = require("./ResultCollectionMethod");
@@ -30,6 +31,8 @@ function instanceOfProviderContract(value) {
30
31
  return false;
31
32
  if (!('name' in value) || value['name'] === undefined)
32
33
  return false;
34
+ if (!('subtext' in value) || value['subtext'] === undefined)
35
+ return false;
33
36
  if (!('description' in value) || value['description'] === undefined)
34
37
  return false;
35
38
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
@@ -68,6 +71,7 @@ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
68
71
  return {
69
72
  'id': json['id'],
70
73
  'name': json['name'],
74
+ 'subtext': json['subtext'],
71
75
  'description': json['description'],
72
76
  'logoUrl': json['logoUrl'],
73
77
  'available': json['available'],
@@ -80,6 +84,7 @@ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
80
84
  'requiresInput': json['requiresInput'],
81
85
  'hasTrinsicInterface': json['hasTrinsicInterface'],
82
86
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
87
+ 'availableFields': json['availableFields'] == null ? undefined : (json['availableFields'].map(ContractField_1.ContractFieldFromJSON)),
83
88
  'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
84
89
  'health': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['health']),
85
90
  };
@@ -94,6 +99,7 @@ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
94
99
  return {
95
100
  'id': value['id'],
96
101
  'name': value['name'],
102
+ 'subtext': value['subtext'],
97
103
  'description': value['description'],
98
104
  'logoUrl': value['logoUrl'],
99
105
  'available': value['available'],
@@ -106,6 +112,7 @@ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
106
112
  'requiresInput': value['requiresInput'],
107
113
  'hasTrinsicInterface': value['hasTrinsicInterface'],
108
114
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
115
+ 'availableFields': value['availableFields'] == null ? undefined : (value['availableFields'].map(ContractField_1.ContractFieldToJSON)),
109
116
  'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
110
117
  'health': (0, ProviderHealth_1.ProviderHealthToJSON)(value['health']),
111
118
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SubProviderMetadata } from './SubProviderMetadata';
12
13
  /**
13
14
  * A provider that can be specified when creating a `Session`
14
15
  * @export
@@ -33,6 +34,37 @@ export interface ProviderInfo {
33
34
  * @memberof ProviderInfo
34
35
  */
35
36
  logoUrl: string;
37
+ /**
38
+ * The Provider's subtext recommended to be shown next to the name.
39
+ *
40
+ * This is flavor text, not a full, human-readable description of the provider.
41
+ * @type {string}
42
+ * @memberof ProviderInfo
43
+ */
44
+ subtext: string;
45
+ /**
46
+ * The Provider's description recommended to be shown next to the name.
47
+ *
48
+ * This is flavor text, not a full, human-readable description of the provider.
49
+ * @type {string}
50
+ * @memberof ProviderInfo
51
+ * @deprecated
52
+ */
53
+ description: string;
54
+ /**
55
+ * The current health status of the provider
56
+ * @type {string}
57
+ * @memberof ProviderInfo
58
+ */
59
+ health: string;
60
+ /**
61
+ * Metadata about the sub-providers which are available for this Provider.
62
+ *
63
+ * For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
64
+ * @type {Array<SubProviderMetadata>}
65
+ * @memberof ProviderInfo
66
+ */
67
+ subProviders?: Array<SubProviderMetadata> | null;
36
68
  }
37
69
  /**
38
70
  * Check if a given object implements the ProviderInfo interface.
@@ -18,6 +18,7 @@ exports.ProviderInfoFromJSON = ProviderInfoFromJSON;
18
18
  exports.ProviderInfoFromJSONTyped = ProviderInfoFromJSONTyped;
19
19
  exports.ProviderInfoToJSON = ProviderInfoToJSON;
20
20
  exports.ProviderInfoToJSONTyped = ProviderInfoToJSONTyped;
21
+ const SubProviderMetadata_1 = require("./SubProviderMetadata");
21
22
  /**
22
23
  * Check if a given object implements the ProviderInfo interface.
23
24
  */
@@ -28,6 +29,12 @@ function instanceOfProviderInfo(value) {
28
29
  return false;
29
30
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
30
31
  return false;
32
+ if (!('subtext' in value) || value['subtext'] === undefined)
33
+ return false;
34
+ if (!('description' in value) || value['description'] === undefined)
35
+ return false;
36
+ if (!('health' in value) || value['health'] === undefined)
37
+ return false;
31
38
  return true;
32
39
  }
33
40
  function ProviderInfoFromJSON(json) {
@@ -41,6 +48,10 @@ function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
41
48
  'id': json['id'],
42
49
  'name': json['name'],
43
50
  'logoUrl': json['logoUrl'],
51
+ 'subtext': json['subtext'],
52
+ 'description': json['description'],
53
+ 'health': json['health'],
54
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
44
55
  };
45
56
  }
46
57
  function ProviderInfoToJSON(json) {
@@ -54,5 +65,9 @@ function ProviderInfoToJSONTyped(value, ignoreDiscriminator = false) {
54
65
  'id': value['id'],
55
66
  'name': value['name'],
56
67
  'logoUrl': value['logoUrl'],
68
+ 'subtext': value['subtext'],
69
+ 'description': value['description'],
70
+ 'health': value['health'],
71
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
57
72
  };
58
73
  }