@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
@@ -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,48 @@
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
+ import { FieldAvailabilityFromJSON, FieldAvailabilityToJSON, } from './FieldAvailability';
15
+ /**
16
+ * Check if a given object implements the ContractField interface.
17
+ */
18
+ export function instanceOfContractField(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('outputted' in value) || value['outputted'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function ContractFieldFromJSON(json) {
26
+ return ContractFieldFromJSONTyped(json, false);
27
+ }
28
+ export function ContractFieldFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'outputted': FieldAvailabilityFromJSON(json['outputted']),
35
+ };
36
+ }
37
+ export function ContractFieldToJSON(json) {
38
+ return ContractFieldToJSONTyped(json, false);
39
+ }
40
+ export function ContractFieldToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'name': value['name'],
46
+ 'outputted': FieldAvailabilityToJSON(value['outputted']),
47
+ };
48
+ }
@@ -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.
@@ -32,10 +32,10 @@ export function CreateAdvancedProviderSessionRequestFromJSONTyped(json, ignoreDi
32
32
  }
33
33
  return {
34
34
  'provider': json['provider'],
35
- 'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
36
35
  'redirectUrl': json['redirectUrl'] == null ? undefined : json['redirectUrl'],
37
36
  'capabilities': (json['capabilities'].map(IntegrationCapabilityFromJSON)),
38
37
  'fallbackToHostedUI': json['fallbackToHostedUI'] == null ? undefined : json['fallbackToHostedUI'],
38
+ 'providerInput': json['providerInput'] == null ? undefined : ProviderInputFromJSON(json['providerInput']),
39
39
  };
40
40
  }
41
41
  export function CreateAdvancedProviderSessionRequestToJSON(json) {
@@ -47,9 +47,9 @@ export function CreateAdvancedProviderSessionRequestToJSONTyped(value, ignoreDis
47
47
  }
48
48
  return {
49
49
  'provider': value['provider'],
50
- 'providerInput': ProviderInputToJSON(value['providerInput']),
51
50
  'redirectUrl': value['redirectUrl'],
52
51
  'capabilities': (value['capabilities'].map(IntegrationCapabilityToJSON)),
53
52
  'fallbackToHostedUI': value['fallbackToHostedUI'],
53
+ 'providerInput': ProviderInputToJSON(value['providerInput']),
54
54
  };
55
55
  }
@@ -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;
@@ -19,7 +19,8 @@ export const DocumentType = {
19
19
  Passport: 'Passport',
20
20
  DriversLicense: 'DriversLicense',
21
21
  NationalId: 'NationalId',
22
- IdCard: 'IdCard'
22
+ IdCard: 'IdCard',
23
+ Other: 'Other'
23
24
  };
24
25
  export function instanceOfDocumentType(value) {
25
26
  for (const key in 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,44 @@
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
+ * Indicates when a field will be available in verification results.
16
+ * @export
17
+ */
18
+ export const FieldAvailability = {
19
+ Never: 'Never',
20
+ Sometimes: 'Sometimes',
21
+ Always: 'Always'
22
+ };
23
+ export function instanceOfFieldAvailability(value) {
24
+ for (const key in FieldAvailability) {
25
+ if (Object.prototype.hasOwnProperty.call(FieldAvailability, key)) {
26
+ if (FieldAvailability[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function FieldAvailabilityFromJSON(json) {
34
+ return FieldAvailabilityFromJSONTyped(json, false);
35
+ }
36
+ export function FieldAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function FieldAvailabilityToJSON(value) {
40
+ return value;
41
+ }
42
+ export function FieldAvailabilityToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface HttpValidationProblemDetails {
18
18
  /**
19
- *
19
+ * A URI reference that identifies the problem type.
20
20
  * @type {string}
21
21
  * @memberof HttpValidationProblemDetails
22
22
  */
23
23
  type?: string | null;
24
24
  /**
25
- *
25
+ * A short, human-readable summary of the error.
26
26
  * @type {string}
27
27
  * @memberof HttpValidationProblemDetails
28
28
  */
29
29
  title?: string | null;
30
30
  /**
31
- *
31
+ * The HTTP status code returned for the request.
32
32
  * @type {number}
33
33
  * @memberof HttpValidationProblemDetails
34
34
  */
35
35
  status?: number | null;
36
36
  /**
37
- *
37
+ * A human-readable explanation specific of the problem.
38
38
  * @type {string}
39
39
  * @memberof HttpValidationProblemDetails
40
40
  */
41
41
  detail?: string | null;
42
42
  /**
43
- *
43
+ * A URI reference that identifies the specific occurrence of the problem.
44
44
  * @type {string}
45
45
  * @memberof HttpValidationProblemDetails
46
46
  */
@@ -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;
@@ -21,7 +21,8 @@ export const IntegrationCapability = {
21
21
  ShowContent: 'ShowContent',
22
22
  RefreshStepContent: 'RefreshStepContent',
23
23
  CaptureRedirect: 'CaptureRedirect',
24
- PollResult: 'PollResult'
24
+ PollResult: 'PollResult',
25
+ PollAfterRedirect: 'PollAfterRedirect'
25
26
  };
26
27
  export function instanceOfIntegrationCapability(value) {
27
28
  for (const key in IntegrationCapability) {
@@ -17,31 +17,31 @@
17
17
  export interface ProblemDetails {
18
18
  [key: string]: any | any;
19
19
  /**
20
- *
20
+ * A URI reference that identifies the problem type.
21
21
  * @type {string}
22
22
  * @memberof ProblemDetails
23
23
  */
24
24
  type?: string | null;
25
25
  /**
26
- *
26
+ * A short, human-readable summary of the error.
27
27
  * @type {string}
28
28
  * @memberof ProblemDetails
29
29
  */
30
30
  title?: string | null;
31
31
  /**
32
- *
32
+ * The HTTP status code returned for the request.
33
33
  * @type {number}
34
34
  * @memberof ProblemDetails
35
35
  */
36
36
  status?: number | null;
37
37
  /**
38
- *
38
+ * A human-readable explanation specific of the problem.
39
39
  * @type {string}
40
40
  * @memberof ProblemDetails
41
41
  */
42
42
  detail?: string | null;
43
43
  /**
44
- *
44
+ * A URI reference that identifies the specific occurrence of the problem.
45
45
  * @type {string}
46
46
  * @memberof ProblemDetails
47
47
  */
@@ -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
  *
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ContractFieldFromJSON, ContractFieldToJSON, } from './ContractField';
14
15
  import { ProviderHealthFromJSON, ProviderHealthToJSON, } from './ProviderHealth';
15
16
  import { SubProviderMetadataFromJSON, SubProviderMetadataToJSON, } from './SubProviderMetadata';
16
17
  import { ResultCollectionMethodFromJSON, ResultCollectionMethodToJSON, } from './ResultCollectionMethod';
@@ -23,6 +24,8 @@ export function instanceOfProviderContract(value) {
23
24
  return false;
24
25
  if (!('name' in value) || value['name'] === undefined)
25
26
  return false;
27
+ if (!('subtext' in value) || value['subtext'] === undefined)
28
+ return false;
26
29
  if (!('description' in value) || value['description'] === undefined)
27
30
  return false;
28
31
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
@@ -61,6 +64,7 @@ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
61
64
  return {
62
65
  'id': json['id'],
63
66
  'name': json['name'],
67
+ 'subtext': json['subtext'],
64
68
  'description': json['description'],
65
69
  'logoUrl': json['logoUrl'],
66
70
  'available': json['available'],
@@ -73,6 +77,7 @@ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
73
77
  'requiresInput': json['requiresInput'],
74
78
  'hasTrinsicInterface': json['hasTrinsicInterface'],
75
79
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
80
+ 'availableFields': json['availableFields'] == null ? undefined : (json['availableFields'].map(ContractFieldFromJSON)),
76
81
  'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
77
82
  'health': ProviderHealthFromJSON(json['health']),
78
83
  };
@@ -87,6 +92,7 @@ export function ProviderContractToJSONTyped(value, ignoreDiscriminator = false)
87
92
  return {
88
93
  'id': value['id'],
89
94
  'name': value['name'],
95
+ 'subtext': value['subtext'],
90
96
  'description': value['description'],
91
97
  'logoUrl': value['logoUrl'],
92
98
  'available': value['available'],
@@ -99,6 +105,7 @@ export function ProviderContractToJSONTyped(value, ignoreDiscriminator = false)
99
105
  'requiresInput': value['requiresInput'],
100
106
  'hasTrinsicInterface': value['hasTrinsicInterface'],
101
107
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
108
+ 'availableFields': value['availableFields'] == null ? undefined : (value['availableFields'].map(ContractFieldToJSON)),
102
109
  'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
103
110
  'health': ProviderHealthToJSON(value['health']),
104
111
  };
@@ -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.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SubProviderMetadataFromJSON, SubProviderMetadataToJSON, } from './SubProviderMetadata';
14
15
  /**
15
16
  * Check if a given object implements the ProviderInfo interface.
16
17
  */
@@ -21,6 +22,12 @@ export function instanceOfProviderInfo(value) {
21
22
  return false;
22
23
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
23
24
  return false;
25
+ if (!('subtext' in value) || value['subtext'] === undefined)
26
+ return false;
27
+ if (!('description' in value) || value['description'] === undefined)
28
+ return false;
29
+ if (!('health' in value) || value['health'] === undefined)
30
+ return false;
24
31
  return true;
25
32
  }
26
33
  export function ProviderInfoFromJSON(json) {
@@ -34,6 +41,10 @@ export function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
34
41
  'id': json['id'],
35
42
  'name': json['name'],
36
43
  'logoUrl': json['logoUrl'],
44
+ 'subtext': json['subtext'],
45
+ 'description': json['description'],
46
+ 'health': json['health'],
47
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
37
48
  };
38
49
  }
39
50
  export function ProviderInfoToJSON(json) {
@@ -47,5 +58,9 @@ export function ProviderInfoToJSONTyped(value, ignoreDiscriminator = false) {
47
58
  'id': value['id'],
48
59
  'name': value['name'],
49
60
  'logoUrl': value['logoUrl'],
61
+ 'subtext': value['subtext'],
62
+ 'description': value['description'],
63
+ 'health': value['health'],
64
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
50
65
  };
51
66
  }
@@ -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
  *
14
15
  * @export
@@ -16,23 +17,66 @@
16
17
  */
17
18
  export interface ProviderInformation {
18
19
  /**
19
- *
20
+ * The ID of the provider
20
21
  * @type {string}
21
22
  * @memberof ProviderInformation
22
23
  */
23
- readonly providerId: string;
24
+ id: string;
24
25
  /**
25
- *
26
+ * The friendly, human-readable name of the provider
26
27
  * @type {string}
27
28
  * @memberof ProviderInformation
28
29
  */
29
- readonly providerDisplayName: string;
30
+ name: string;
30
31
  /**
32
+ * A URL pointing to the provider's logo
33
+ * @type {string}
34
+ * @memberof ProviderInformation
35
+ */
36
+ logoUrl: string;
37
+ /**
38
+ * The Provider's subtext recommended to be shown next to the name.
31
39
  *
40
+ * This is flavor text, not a full, human-readable description of the provider.
41
+ * @type {string}
42
+ * @memberof ProviderInformation
43
+ */
44
+ subtext: string;
45
+ /**
46
+ * The ID of the provider
47
+ * @type {string}
48
+ * @memberof ProviderInformation
49
+ * @deprecated
50
+ */
51
+ providerId: string;
52
+ /**
53
+ * The friendly, human-readable name of the provider
32
54
  * @type {string}
33
55
  * @memberof ProviderInformation
56
+ * @deprecated
57
+ */
58
+ providerDisplayName: string;
59
+ /**
60
+ * A URL pointing to the provider's logo
61
+ * @type {string}
62
+ * @memberof ProviderInformation
63
+ * @deprecated
64
+ */
65
+ providerLogo: string;
66
+ /**
67
+ * The current health status of the provider
68
+ * @type {string}
69
+ * @memberof ProviderInformation
70
+ */
71
+ health: string;
72
+ /**
73
+ * Metadata about the sub-providers which are available for this Provider.
74
+ *
75
+ * For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
76
+ * @type {Array<SubProviderMetadata>}
77
+ * @memberof ProviderInformation
34
78
  */
35
- readonly providerLogo: string;
79
+ subProviders?: Array<SubProviderMetadata> | null;
36
80
  }
37
81
  /**
38
82
  * Check if a given object implements the ProviderInformation interface.
@@ -41,4 +85,4 @@ export declare function instanceOfProviderInformation(value: object): value is P
41
85
  export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
42
86
  export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
43
87
  export declare function ProviderInformationToJSON(json: any): ProviderInformation;
44
- export declare function ProviderInformationToJSONTyped(value?: Omit<ProviderInformation, 'providerId' | 'providerDisplayName' | 'providerLogo'> | null, ignoreDiscriminator?: boolean): any;
88
+ export declare function ProviderInformationToJSONTyped(value?: ProviderInformation | null, ignoreDiscriminator?: boolean): any;