@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
@@ -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
+ }
@@ -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;
@@ -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) {
@@ -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
  *
@@ -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
  }
@@ -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;
@@ -18,16 +18,27 @@ exports.ProviderInformationFromJSON = ProviderInformationFromJSON;
18
18
  exports.ProviderInformationFromJSONTyped = ProviderInformationFromJSONTyped;
19
19
  exports.ProviderInformationToJSON = ProviderInformationToJSON;
20
20
  exports.ProviderInformationToJSONTyped = ProviderInformationToJSONTyped;
21
+ const SubProviderMetadata_1 = require("./SubProviderMetadata");
21
22
  /**
22
23
  * Check if a given object implements the ProviderInformation interface.
23
24
  */
24
25
  function instanceOfProviderInformation(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
31
+ return false;
32
+ if (!('subtext' in value) || value['subtext'] === undefined)
33
+ return false;
25
34
  if (!('providerId' in value) || value['providerId'] === undefined)
26
35
  return false;
27
36
  if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined)
28
37
  return false;
29
38
  if (!('providerLogo' in value) || value['providerLogo'] === undefined)
30
39
  return false;
40
+ if (!('health' in value) || value['health'] === undefined)
41
+ return false;
31
42
  return true;
32
43
  }
33
44
  function ProviderInformationFromJSON(json) {
@@ -38,9 +49,15 @@ function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
38
49
  return json;
39
50
  }
40
51
  return {
52
+ 'id': json['id'],
53
+ 'name': json['name'],
54
+ 'logoUrl': json['logoUrl'],
55
+ 'subtext': json['subtext'],
41
56
  'providerId': json['providerId'],
42
57
  'providerDisplayName': json['providerDisplayName'],
43
58
  'providerLogo': json['providerLogo'],
59
+ 'health': json['health'],
60
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
44
61
  };
45
62
  }
46
63
  function ProviderInformationToJSON(json) {
@@ -50,5 +67,15 @@ function ProviderInformationToJSONTyped(value, ignoreDiscriminator = false) {
50
67
  if (value == null) {
51
68
  return value;
52
69
  }
53
- return {};
70
+ return {
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ 'logoUrl': value['logoUrl'],
74
+ 'subtext': value['subtext'],
75
+ 'providerId': value['providerId'],
76
+ 'providerDisplayName': value['providerDisplayName'],
77
+ 'providerLogo': value['providerLogo'],
78
+ 'health': value['health'],
79
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
80
+ };
54
81
  }