@trinsic/api 2.0.2 → 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 (125) hide show
  1. package/.openapi-generator/FILES +3 -2
  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/apis/index.d.ts +0 -1
  9. package/dist/apis/index.js +0 -1
  10. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  11. package/dist/esm/apis/AttachmentsApi.js +2 -2
  12. package/dist/esm/apis/NetworkApi.d.ts +12 -8
  13. package/dist/esm/apis/NetworkApi.js +8 -5
  14. package/dist/esm/apis/SessionsApi.d.ts +4 -4
  15. package/dist/esm/apis/SessionsApi.js +2 -2
  16. package/dist/esm/apis/index.d.ts +0 -1
  17. package/dist/esm/apis/index.js +0 -1
  18. package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
  19. package/dist/esm/models/BangladeshNidInput.js +55 -0
  20. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
  21. package/dist/esm/models/ContractField.d.ts +39 -0
  22. package/dist/esm/models/ContractField.js +48 -0
  23. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  24. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
  25. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  26. package/dist/esm/models/DocumentType.d.ts +1 -0
  27. package/dist/esm/models/DocumentType.js +2 -1
  28. package/dist/esm/models/FieldAvailability.d.ts +26 -0
  29. package/dist/esm/models/FieldAvailability.js +44 -0
  30. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  31. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  32. package/dist/esm/models/IntegrationCapability.js +2 -1
  33. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  34. package/dist/esm/models/ProviderContract.d.ts +18 -1
  35. package/dist/esm/models/ProviderContract.js +7 -0
  36. package/dist/esm/models/ProviderInfo.d.ts +32 -0
  37. package/dist/esm/models/ProviderInfo.js +15 -0
  38. package/dist/esm/models/ProviderInformation.d.ts +50 -6
  39. package/dist/esm/models/ProviderInformation.js +28 -1
  40. package/dist/esm/models/ProviderInput.d.ts +15 -15
  41. package/dist/esm/models/ProviderInput.js +3 -3
  42. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  43. package/dist/esm/models/RecommendRequest.js +2 -0
  44. package/dist/esm/models/RecommendResponse.d.ts +5 -3
  45. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  46. package/dist/esm/models/RefreshStepContentRequest.js +3 -1
  47. package/dist/esm/models/Session.d.ts +1 -1
  48. package/dist/esm/models/SmartIdInput.d.ts +7 -0
  49. package/dist/esm/models/SmartIdInput.js +2 -0
  50. package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
  51. package/dist/esm/models/SubProviderMetadata.js +4 -0
  52. package/dist/esm/models/index.d.ts +3 -1
  53. package/dist/esm/models/index.js +3 -1
  54. package/dist/models/BangladeshNidInput.d.ts +58 -0
  55. package/dist/models/BangladeshNidInput.js +62 -0
  56. package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
  57. package/dist/models/ContractField.d.ts +39 -0
  58. package/dist/models/ContractField.js +55 -0
  59. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  60. package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
  61. package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  62. package/dist/models/DocumentType.d.ts +1 -0
  63. package/dist/models/DocumentType.js +2 -1
  64. package/dist/models/FieldAvailability.d.ts +26 -0
  65. package/dist/models/FieldAvailability.js +52 -0
  66. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  67. package/dist/models/IntegrationCapability.d.ts +1 -0
  68. package/dist/models/IntegrationCapability.js +2 -1
  69. package/dist/models/ProblemDetails.d.ts +5 -5
  70. package/dist/models/ProviderContract.d.ts +18 -1
  71. package/dist/models/ProviderContract.js +7 -0
  72. package/dist/models/ProviderInfo.d.ts +32 -0
  73. package/dist/models/ProviderInfo.js +15 -0
  74. package/dist/models/ProviderInformation.d.ts +50 -6
  75. package/dist/models/ProviderInformation.js +28 -1
  76. package/dist/models/ProviderInput.d.ts +15 -15
  77. package/dist/models/ProviderInput.js +3 -3
  78. package/dist/models/RecommendRequest.d.ts +6 -0
  79. package/dist/models/RecommendRequest.js +2 -0
  80. package/dist/models/RecommendResponse.d.ts +5 -3
  81. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  82. package/dist/models/RefreshStepContentRequest.js +3 -1
  83. package/dist/models/Session.d.ts +1 -1
  84. package/dist/models/SmartIdInput.d.ts +7 -0
  85. package/dist/models/SmartIdInput.js +2 -0
  86. package/dist/models/SubProviderMetadata.d.ts +12 -1
  87. package/dist/models/SubProviderMetadata.js +4 -0
  88. package/dist/models/index.d.ts +3 -1
  89. package/dist/models/index.js +3 -1
  90. package/package.json +1 -1
  91. package/src/apis/AttachmentsApi.ts +4 -4
  92. package/src/apis/NetworkApi.ts +18 -9
  93. package/src/apis/SessionsApi.ts +4 -4
  94. package/src/apis/index.ts +0 -1
  95. package/src/models/BangladeshNidInput.ts +102 -0
  96. package/src/models/BrazilDigitalCnhInput.ts +0 -6
  97. package/src/models/ContractField.ts +85 -0
  98. package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
  99. package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
  100. package/src/models/DocumentType.ts +2 -1
  101. package/src/models/FieldAvailability.ts +54 -0
  102. package/src/models/HttpValidationProblemDetails.ts +5 -5
  103. package/src/models/IntegrationCapability.ts +2 -1
  104. package/src/models/ProblemDetails.ts +5 -5
  105. package/src/models/ProviderContract.ts +29 -1
  106. package/src/models/ProviderInfo.ts +50 -0
  107. package/src/models/ProviderInformation.ts +78 -7
  108. package/src/models/ProviderInput.ts +23 -23
  109. package/src/models/RecommendRequest.ts +8 -0
  110. package/src/models/RecommendResponse.ts +5 -3
  111. package/src/models/RefreshStepContentRequest.ts +3 -2
  112. package/src/models/Session.ts +1 -1
  113. package/src/models/SmartIdInput.ts +9 -0
  114. package/src/models/SubProviderMetadata.ts +15 -1
  115. package/src/models/index.ts +3 -1
  116. package/dist/apis/WellKnownApi.d.ts +0 -41
  117. package/dist/apis/WellKnownApi.js +0 -61
  118. package/dist/esm/apis/WellKnownApi.d.ts +0 -41
  119. package/dist/esm/apis/WellKnownApi.js +0 -57
  120. package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
  121. package/dist/esm/models/BangladeshNationalIdInput.js +0 -47
  122. package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
  123. package/dist/models/BangladeshNationalIdInput.js +0 -54
  124. package/src/apis/WellKnownApi.ts +0 -82
  125. package/src/models/BangladeshNationalIdInput.ts +0 -89
@@ -27,12 +27,6 @@ export interface BrazilDigitalCnhInput {
27
27
  cpfNumber: string;
28
28
  /**
29
29
  * The raw bytes of the digital CNH file collected from the user.
30
- *
31
- * TODO: Lucas or JP help me describe these below vvvvvvvv
32
- * This can be:
33
- * - An image containing a physical or digital QR code
34
- * - A PDF file exported from the CNH app
35
- * - Some scary third thing?
36
30
  * @type {string}
37
31
  * @memberof BrazilDigitalCnhInput
38
32
  */
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Trinsic API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { FieldAvailability } from './FieldAvailability';
17
+ import {
18
+ FieldAvailabilityFromJSON,
19
+ FieldAvailabilityFromJSONTyped,
20
+ FieldAvailabilityToJSON,
21
+ FieldAvailabilityToJSONTyped,
22
+ } from './FieldAvailability';
23
+
24
+ /**
25
+ * Information about a field that a Provider will return in verification results.
26
+ * @export
27
+ * @interface ContractField
28
+ */
29
+ export interface ContractField {
30
+ /**
31
+ * The name of the field as it appears in verification results.
32
+ * @type {string}
33
+ * @memberof ContractField
34
+ */
35
+ name: string;
36
+ /**
37
+ * Indicates when this field will be present in verification results.
38
+ * @type {FieldAvailability}
39
+ * @memberof ContractField
40
+ */
41
+ outputted: FieldAvailability;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the ContractField interface.
48
+ */
49
+ export function instanceOfContractField(value: object): value is ContractField {
50
+ if (!('name' in value) || value['name'] === undefined) return false;
51
+ if (!('outputted' in value) || value['outputted'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function ContractFieldFromJSON(json: any): ContractField {
56
+ return ContractFieldFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function ContractFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContractField {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'name': json['name'],
66
+ 'outputted': FieldAvailabilityFromJSON(json['outputted']),
67
+ };
68
+ }
69
+
70
+ export function ContractFieldToJSON(json: any): ContractField {
71
+ return ContractFieldToJSONTyped(json, false);
72
+ }
73
+
74
+ export function ContractFieldToJSONTyped(value?: ContractField | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'name': value['name'],
82
+ 'outputted': FieldAvailabilityToJSON(value['outputted']),
83
+ };
84
+ }
85
+
@@ -40,12 +40,6 @@ export interface CreateAdvancedProviderSessionRequest {
40
40
  * @memberof CreateAdvancedProviderSessionRequest
41
41
  */
42
42
  provider: string;
43
- /**
44
- * Provider-specific input for those providers which require it.
45
- * @type {ProviderInput}
46
- * @memberof CreateAdvancedProviderSessionRequest
47
- */
48
- providerInput?: ProviderInput | null;
49
43
  /**
50
44
  * The Redirect URL to which the user should be sent after the session is complete.
51
45
  *
@@ -90,6 +84,12 @@ export interface CreateAdvancedProviderSessionRequest {
90
84
  * @memberof CreateAdvancedProviderSessionRequest
91
85
  */
92
86
  fallbackToHostedUI?: boolean | null;
87
+ /**
88
+ * Provider-specific input for those providers which require it.
89
+ * @type {ProviderInput}
90
+ * @memberof CreateAdvancedProviderSessionRequest
91
+ */
92
+ providerInput?: ProviderInput | null;
93
93
  }
94
94
 
95
95
  /**
@@ -112,10 +112,10 @@ export function CreateAdvancedProviderSessionRequestFromJSONTyped(json: any, ign
112
112
  return {
113
113
 
114
114
  'provider': json['provider'],
115
- 'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
116
115
  'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
117
116
  'capabilities': ((json['capabilities'] as Array<any>).map(IntegrationCapabilityFromJSON)),
118
117
  'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
118
+ 'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
119
119
  };
120
120
  }
121
121
 
@@ -131,10 +131,10 @@ export function CreateAdvancedProviderSessionRequestToJSONTyped(value?: CreateAd
131
131
  return {
132
132
 
133
133
  'provider': value['provider'],
134
- 'providerInput': ProviderInputToJSON(value['providerInput']),
135
134
  'redirectUrl': value['redirectUrl'],
136
135
  'capabilities': ((value['capabilities'] as Array<any>).map(IntegrationCapabilityToJSON)),
137
136
  'fallbackToHostedUI': value['fallbackToHostedUI'],
137
+ 'providerInput': ProviderInputToJSON(value['providerInput']),
138
138
  };
139
139
  }
140
140
 
@@ -41,8 +41,14 @@ export interface CreateHostedProviderSessionRequest {
41
41
  redirectUrl: string;
42
42
  /**
43
43
  * Provider-specific input for those providers which require it.
44
+ *
45
+ *
46
+ * <b>Deprecated:</b> In the future, Hosted Provider Sessions will not accept input on creation,
47
+ * and will instead always redirect the user to a hosted interface to collect input. If you need
48
+ * to collect input from the user yourself, please use the Create Advanced Session endpoint instead.
44
49
  * @type {ProviderInput}
45
50
  * @memberof CreateHostedProviderSessionRequest
51
+ * @deprecated
46
52
  */
47
53
  providerInput?: ProviderInput | null;
48
54
  }
@@ -21,7 +21,8 @@ export const DocumentType = {
21
21
  Passport: 'Passport',
22
22
  DriversLicense: 'DriversLicense',
23
23
  NationalId: 'NationalId',
24
- IdCard: 'IdCard'
24
+ IdCard: 'IdCard',
25
+ Other: 'Other'
25
26
  } as const;
26
27
  export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
27
28
 
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Trinsic API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Indicates when a field will be available in verification results.
18
+ * @export
19
+ */
20
+ export const FieldAvailability = {
21
+ Never: 'Never',
22
+ Sometimes: 'Sometimes',
23
+ Always: 'Always'
24
+ } as const;
25
+ export type FieldAvailability = typeof FieldAvailability[keyof typeof FieldAvailability];
26
+
27
+
28
+ export function instanceOfFieldAvailability(value: any): boolean {
29
+ for (const key in FieldAvailability) {
30
+ if (Object.prototype.hasOwnProperty.call(FieldAvailability, key)) {
31
+ if (FieldAvailability[key as keyof typeof FieldAvailability] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function FieldAvailabilityFromJSON(json: any): FieldAvailability {
40
+ return FieldAvailabilityFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function FieldAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldAvailability {
44
+ return json as FieldAvailability;
45
+ }
46
+
47
+ export function FieldAvailabilityToJSON(value?: FieldAvailability | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function FieldAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldAvailability {
52
+ return value as FieldAvailability;
53
+ }
54
+
@@ -20,31 +20,31 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface HttpValidationProblemDetails {
22
22
  /**
23
- *
23
+ * A URI reference that identifies the problem type.
24
24
  * @type {string}
25
25
  * @memberof HttpValidationProblemDetails
26
26
  */
27
27
  type?: string | null;
28
28
  /**
29
- *
29
+ * A short, human-readable summary of the error.
30
30
  * @type {string}
31
31
  * @memberof HttpValidationProblemDetails
32
32
  */
33
33
  title?: string | null;
34
34
  /**
35
- *
35
+ * The HTTP status code returned for the request.
36
36
  * @type {number}
37
37
  * @memberof HttpValidationProblemDetails
38
38
  */
39
39
  status?: number | null;
40
40
  /**
41
- *
41
+ * A human-readable explanation specific of the problem.
42
42
  * @type {string}
43
43
  * @memberof HttpValidationProblemDetails
44
44
  */
45
45
  detail?: string | null;
46
46
  /**
47
- *
47
+ * A URI reference that identifies the specific occurrence of the problem.
48
48
  * @type {string}
49
49
  * @memberof HttpValidationProblemDetails
50
50
  */
@@ -23,7 +23,8 @@ export const IntegrationCapability = {
23
23
  ShowContent: 'ShowContent',
24
24
  RefreshStepContent: 'RefreshStepContent',
25
25
  CaptureRedirect: 'CaptureRedirect',
26
- PollResult: 'PollResult'
26
+ PollResult: 'PollResult',
27
+ PollAfterRedirect: 'PollAfterRedirect'
27
28
  } as const;
28
29
  export type IntegrationCapability = typeof IntegrationCapability[keyof typeof IntegrationCapability];
29
30
 
@@ -21,31 +21,31 @@ import { mapValues } from '../runtime';
21
21
  export interface ProblemDetails {
22
22
  [key: string]: any | any;
23
23
  /**
24
- *
24
+ * A URI reference that identifies the problem type.
25
25
  * @type {string}
26
26
  * @memberof ProblemDetails
27
27
  */
28
28
  type?: string | null;
29
29
  /**
30
- *
30
+ * A short, human-readable summary of the error.
31
31
  * @type {string}
32
32
  * @memberof ProblemDetails
33
33
  */
34
34
  title?: string | null;
35
35
  /**
36
- *
36
+ * The HTTP status code returned for the request.
37
37
  * @type {number}
38
38
  * @memberof ProblemDetails
39
39
  */
40
40
  status?: number | null;
41
41
  /**
42
- *
42
+ * A human-readable explanation specific of the problem.
43
43
  * @type {string}
44
44
  * @memberof ProblemDetails
45
45
  */
46
46
  detail?: string | null;
47
47
  /**
48
- *
48
+ * A URI reference that identifies the specific occurrence of the problem.
49
49
  * @type {string}
50
50
  * @memberof ProblemDetails
51
51
  */
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ContractField } from './ContractField';
17
+ import {
18
+ ContractFieldFromJSON,
19
+ ContractFieldFromJSONTyped,
20
+ ContractFieldToJSON,
21
+ ContractFieldToJSONTyped,
22
+ } from './ContractField';
16
23
  import type { ProviderHealth } from './ProviderHealth';
17
24
  import {
18
25
  ProviderHealthFromJSON,
@@ -60,12 +67,21 @@ export interface ProviderContract {
60
67
  * @memberof ProviderContract
61
68
  */
62
69
  name: string;
70
+ /**
71
+ * The Provider's subtext recommended to be shown next to the name.
72
+ *
73
+ * This is flavor text, not a full, human-readable description of the provider.
74
+ * @type {string}
75
+ * @memberof ProviderContract
76
+ */
77
+ subtext: string;
63
78
  /**
64
79
  * The Provider's description as it appears in Trinsic's Widget.
65
80
  *
66
81
  * This is flavor text, not a full, human-readable description of the provider.
67
82
  * @type {string}
68
83
  * @memberof ProviderContract
84
+ * @deprecated
69
85
  */
70
86
  description: string;
71
87
  /**
@@ -116,7 +132,8 @@ export interface ProviderContract {
116
132
  * If `true`, then the results for this Provider may not be available immediately after the user is redirected back
117
133
  * to your application. In this case, the `GetSessionResults` API must be called until results are available.
118
134
  *
119
- * This is an uncommon scenario, and typically only applies to Providers which use a biometric check or traditional document scan.
135
+ * This is an uncommon scenario, and only applies to Providers which cannot guarantee
136
+ * the availability of results immediately after the user is redirected back to your application.
120
137
  * @type {boolean}
121
138
  * @memberof ProviderContract
122
139
  */
@@ -158,6 +175,12 @@ export interface ProviderContract {
158
175
  * @memberof ProviderContract
159
176
  */
160
177
  supportsAdvancedProviderSessions: boolean;
178
+ /**
179
+ * Information about the fields that this Provider will return in verification results.
180
+ * @type {Array<ContractField>}
181
+ * @memberof ProviderContract
182
+ */
183
+ availableFields?: Array<ContractField> | null;
161
184
  /**
162
185
  * Metadata about the sub-providers which are available for this Provider.
163
186
  *
@@ -182,6 +205,7 @@ export interface ProviderContract {
182
205
  export function instanceOfProviderContract(value: object): value is ProviderContract {
183
206
  if (!('id' in value) || value['id'] === undefined) return false;
184
207
  if (!('name' in value) || value['name'] === undefined) return false;
208
+ if (!('subtext' in value) || value['subtext'] === undefined) return false;
185
209
  if (!('description' in value) || value['description'] === undefined) return false;
186
210
  if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
187
211
  if (!('available' in value) || value['available'] === undefined) return false;
@@ -210,6 +234,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
210
234
 
211
235
  'id': json['id'],
212
236
  'name': json['name'],
237
+ 'subtext': json['subtext'],
213
238
  'description': json['description'],
214
239
  'logoUrl': json['logoUrl'],
215
240
  'available': json['available'],
@@ -222,6 +247,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
222
247
  'requiresInput': json['requiresInput'],
223
248
  'hasTrinsicInterface': json['hasTrinsicInterface'],
224
249
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
250
+ 'availableFields': json['availableFields'] == null ? undefined : ((json['availableFields'] as Array<any>).map(ContractFieldFromJSON)),
225
251
  'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
226
252
  'health': ProviderHealthFromJSON(json['health']),
227
253
  };
@@ -240,6 +266,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
240
266
 
241
267
  'id': value['id'],
242
268
  'name': value['name'],
269
+ 'subtext': value['subtext'],
243
270
  'description': value['description'],
244
271
  'logoUrl': value['logoUrl'],
245
272
  'available': value['available'],
@@ -252,6 +279,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
252
279
  'requiresInput': value['requiresInput'],
253
280
  'hasTrinsicInterface': value['hasTrinsicInterface'],
254
281
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
282
+ 'availableFields': value['availableFields'] == null ? undefined : ((value['availableFields'] as Array<any>).map(ContractFieldToJSON)),
255
283
  'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
256
284
  'health': ProviderHealthToJSON(value['health']),
257
285
  };
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { SubProviderMetadata } from './SubProviderMetadata';
17
+ import {
18
+ SubProviderMetadataFromJSON,
19
+ SubProviderMetadataFromJSONTyped,
20
+ SubProviderMetadataToJSON,
21
+ SubProviderMetadataToJSONTyped,
22
+ } from './SubProviderMetadata';
23
+
16
24
  /**
17
25
  * A provider that can be specified when creating a `Session`
18
26
  * @export
@@ -37,6 +45,37 @@ export interface ProviderInfo {
37
45
  * @memberof ProviderInfo
38
46
  */
39
47
  logoUrl: string;
48
+ /**
49
+ * The Provider's subtext recommended to be shown next to the name.
50
+ *
51
+ * This is flavor text, not a full, human-readable description of the provider.
52
+ * @type {string}
53
+ * @memberof ProviderInfo
54
+ */
55
+ subtext: string;
56
+ /**
57
+ * The Provider's description recommended to be shown next to the name.
58
+ *
59
+ * This is flavor text, not a full, human-readable description of the provider.
60
+ * @type {string}
61
+ * @memberof ProviderInfo
62
+ * @deprecated
63
+ */
64
+ description: string;
65
+ /**
66
+ * The current health status of the provider
67
+ * @type {string}
68
+ * @memberof ProviderInfo
69
+ */
70
+ health: string;
71
+ /**
72
+ * Metadata about the sub-providers which are available for this Provider.
73
+ *
74
+ * For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
75
+ * @type {Array<SubProviderMetadata>}
76
+ * @memberof ProviderInfo
77
+ */
78
+ subProviders?: Array<SubProviderMetadata> | null;
40
79
  }
41
80
 
42
81
  /**
@@ -46,6 +85,9 @@ export function instanceOfProviderInfo(value: object): value is ProviderInfo {
46
85
  if (!('id' in value) || value['id'] === undefined) return false;
47
86
  if (!('name' in value) || value['name'] === undefined) return false;
48
87
  if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
88
+ if (!('subtext' in value) || value['subtext'] === undefined) return false;
89
+ if (!('description' in value) || value['description'] === undefined) return false;
90
+ if (!('health' in value) || value['health'] === undefined) return false;
49
91
  return true;
50
92
  }
51
93
 
@@ -62,6 +104,10 @@ export function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolea
62
104
  'id': json['id'],
63
105
  'name': json['name'],
64
106
  'logoUrl': json['logoUrl'],
107
+ 'subtext': json['subtext'],
108
+ 'description': json['description'],
109
+ 'health': json['health'],
110
+ 'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
65
111
  };
66
112
  }
67
113
 
@@ -79,6 +125,10 @@ export function ProviderInfoToJSONTyped(value?: ProviderInfo | null, ignoreDiscr
79
125
  'id': value['id'],
80
126
  'name': value['name'],
81
127
  'logoUrl': value['logoUrl'],
128
+ 'subtext': value['subtext'],
129
+ 'description': value['description'],
130
+ 'health': value['health'],
131
+ 'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
82
132
  };
83
133
  }
84
134
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { SubProviderMetadata } from './SubProviderMetadata';
17
+ import {
18
+ SubProviderMetadataFromJSON,
19
+ SubProviderMetadataFromJSONTyped,
20
+ SubProviderMetadataToJSON,
21
+ SubProviderMetadataToJSONTyped,
22
+ } from './SubProviderMetadata';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -20,32 +28,80 @@ import { mapValues } from '../runtime';
20
28
  */
21
29
  export interface ProviderInformation {
22
30
  /**
23
- *
31
+ * The ID of the provider
32
+ * @type {string}
33
+ * @memberof ProviderInformation
34
+ */
35
+ id: string;
36
+ /**
37
+ * The friendly, human-readable name of the provider
38
+ * @type {string}
39
+ * @memberof ProviderInformation
40
+ */
41
+ name: string;
42
+ /**
43
+ * A URL pointing to the provider's logo
44
+ * @type {string}
45
+ * @memberof ProviderInformation
46
+ */
47
+ logoUrl: string;
48
+ /**
49
+ * The Provider's subtext recommended to be shown next to the name.
50
+ *
51
+ * This is flavor text, not a full, human-readable description of the provider.
52
+ * @type {string}
53
+ * @memberof ProviderInformation
54
+ */
55
+ subtext: string;
56
+ /**
57
+ * The ID of the provider
58
+ * @type {string}
59
+ * @memberof ProviderInformation
60
+ * @deprecated
61
+ */
62
+ providerId: string;
63
+ /**
64
+ * The friendly, human-readable name of the provider
24
65
  * @type {string}
25
66
  * @memberof ProviderInformation
67
+ * @deprecated
26
68
  */
27
- readonly providerId: string;
69
+ providerDisplayName: string;
28
70
  /**
29
- *
71
+ * A URL pointing to the provider's logo
30
72
  * @type {string}
31
73
  * @memberof ProviderInformation
74
+ * @deprecated
32
75
  */
33
- readonly providerDisplayName: string;
76
+ providerLogo: string;
34
77
  /**
35
- *
78
+ * The current health status of the provider
36
79
  * @type {string}
37
80
  * @memberof ProviderInformation
38
81
  */
39
- readonly providerLogo: string;
82
+ health: string;
83
+ /**
84
+ * Metadata about the sub-providers which are available for this Provider.
85
+ *
86
+ * For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
87
+ * @type {Array<SubProviderMetadata>}
88
+ * @memberof ProviderInformation
89
+ */
90
+ subProviders?: Array<SubProviderMetadata> | null;
40
91
  }
41
92
 
42
93
  /**
43
94
  * Check if a given object implements the ProviderInformation interface.
44
95
  */
45
96
  export function instanceOfProviderInformation(value: object): value is ProviderInformation {
97
+ if (!('id' in value) || value['id'] === undefined) return false;
98
+ if (!('name' in value) || value['name'] === undefined) return false;
99
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
100
+ if (!('subtext' in value) || value['subtext'] === undefined) return false;
46
101
  if (!('providerId' in value) || value['providerId'] === undefined) return false;
47
102
  if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined) return false;
48
103
  if (!('providerLogo' in value) || value['providerLogo'] === undefined) return false;
104
+ if (!('health' in value) || value['health'] === undefined) return false;
49
105
  return true;
50
106
  }
51
107
 
@@ -59,9 +115,15 @@ export function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator:
59
115
  }
60
116
  return {
61
117
 
118
+ 'id': json['id'],
119
+ 'name': json['name'],
120
+ 'logoUrl': json['logoUrl'],
121
+ 'subtext': json['subtext'],
62
122
  'providerId': json['providerId'],
63
123
  'providerDisplayName': json['providerDisplayName'],
64
124
  'providerLogo': json['providerLogo'],
125
+ 'health': json['health'],
126
+ 'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
65
127
  };
66
128
  }
67
129
 
@@ -69,13 +131,22 @@ export function ProviderInformationToJSON(json: any): ProviderInformation {
69
131
  return ProviderInformationToJSONTyped(json, false);
70
132
  }
71
133
 
72
- export function ProviderInformationToJSONTyped(value?: Omit<ProviderInformation, 'providerId'|'providerDisplayName'|'providerLogo'> | null, ignoreDiscriminator: boolean = false): any {
134
+ export function ProviderInformationToJSONTyped(value?: ProviderInformation | null, ignoreDiscriminator: boolean = false): any {
73
135
  if (value == null) {
74
136
  return value;
75
137
  }
76
138
 
77
139
  return {
78
140
 
141
+ 'id': value['id'],
142
+ 'name': value['name'],
143
+ 'logoUrl': value['logoUrl'],
144
+ 'subtext': value['subtext'],
145
+ 'providerId': value['providerId'],
146
+ 'providerDisplayName': value['providerDisplayName'],
147
+ 'providerLogo': value['providerLogo'],
148
+ 'health': value['health'],
149
+ 'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
79
150
  };
80
151
  }
81
152