@trinsic/api 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/dist/apis/AttachmentsApi.d.ts +4 -4
  3. package/dist/apis/AttachmentsApi.js +2 -2
  4. package/dist/apis/NetworkApi.d.ts +12 -8
  5. package/dist/apis/NetworkApi.js +8 -5
  6. package/dist/apis/SessionsApi.d.ts +4 -4
  7. package/dist/apis/SessionsApi.js +2 -2
  8. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  9. package/dist/esm/apis/AttachmentsApi.js +2 -2
  10. package/dist/esm/apis/NetworkApi.d.ts +12 -8
  11. package/dist/esm/apis/NetworkApi.js +8 -5
  12. package/dist/esm/apis/SessionsApi.d.ts +4 -4
  13. package/dist/esm/apis/SessionsApi.js +2 -2
  14. package/dist/esm/models/BangladeshNidInput.d.ts +3 -3
  15. package/dist/esm/models/BangladeshNidInput.js +10 -4
  16. package/dist/esm/models/ContractField.d.ts +39 -0
  17. package/dist/esm/models/ContractField.js +48 -0
  18. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  19. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
  20. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  21. package/dist/esm/models/DocumentType.d.ts +1 -0
  22. package/dist/esm/models/DocumentType.js +2 -1
  23. package/dist/esm/models/FieldAvailability.d.ts +26 -0
  24. package/dist/esm/models/FieldAvailability.js +44 -0
  25. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  26. package/dist/esm/models/IntegrationCapability.js +2 -1
  27. package/dist/esm/models/ProviderContract.d.ts +18 -1
  28. package/dist/esm/models/ProviderContract.js +7 -0
  29. package/dist/esm/models/ProviderInfo.d.ts +32 -0
  30. package/dist/esm/models/ProviderInfo.js +15 -0
  31. package/dist/esm/models/ProviderInformation.d.ts +50 -6
  32. package/dist/esm/models/ProviderInformation.js +28 -1
  33. package/dist/esm/models/ProviderInput.d.ts +12 -12
  34. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  35. package/dist/esm/models/RecommendRequest.js +2 -0
  36. package/dist/esm/models/RecommendResponse.d.ts +5 -3
  37. package/dist/esm/models/Session.d.ts +1 -1
  38. package/dist/esm/models/SmartIdInput.d.ts +7 -0
  39. package/dist/esm/models/SmartIdInput.js +2 -0
  40. package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
  41. package/dist/esm/models/SubProviderMetadata.js +4 -0
  42. package/dist/esm/models/index.d.ts +2 -0
  43. package/dist/esm/models/index.js +2 -0
  44. package/dist/models/BangladeshNidInput.d.ts +3 -3
  45. package/dist/models/BangladeshNidInput.js +10 -4
  46. package/dist/models/ContractField.d.ts +39 -0
  47. package/dist/models/ContractField.js +55 -0
  48. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  49. package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
  50. package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  51. package/dist/models/DocumentType.d.ts +1 -0
  52. package/dist/models/DocumentType.js +2 -1
  53. package/dist/models/FieldAvailability.d.ts +26 -0
  54. package/dist/models/FieldAvailability.js +52 -0
  55. package/dist/models/IntegrationCapability.d.ts +1 -0
  56. package/dist/models/IntegrationCapability.js +2 -1
  57. package/dist/models/ProviderContract.d.ts +18 -1
  58. package/dist/models/ProviderContract.js +7 -0
  59. package/dist/models/ProviderInfo.d.ts +32 -0
  60. package/dist/models/ProviderInfo.js +15 -0
  61. package/dist/models/ProviderInformation.d.ts +50 -6
  62. package/dist/models/ProviderInformation.js +28 -1
  63. package/dist/models/ProviderInput.d.ts +12 -12
  64. package/dist/models/RecommendRequest.d.ts +6 -0
  65. package/dist/models/RecommendRequest.js +2 -0
  66. package/dist/models/RecommendResponse.d.ts +5 -3
  67. package/dist/models/Session.d.ts +1 -1
  68. package/dist/models/SmartIdInput.d.ts +7 -0
  69. package/dist/models/SmartIdInput.js +2 -0
  70. package/dist/models/SubProviderMetadata.d.ts +12 -1
  71. package/dist/models/SubProviderMetadata.js +4 -0
  72. package/dist/models/index.d.ts +2 -0
  73. package/dist/models/index.js +2 -0
  74. package/package.json +1 -1
  75. package/src/apis/AttachmentsApi.ts +4 -4
  76. package/src/apis/NetworkApi.ts +18 -9
  77. package/src/apis/SessionsApi.ts +4 -4
  78. package/src/models/BangladeshNidInput.ts +10 -7
  79. package/src/models/ContractField.ts +85 -0
  80. package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
  81. package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
  82. package/src/models/DocumentType.ts +2 -1
  83. package/src/models/FieldAvailability.ts +54 -0
  84. package/src/models/IntegrationCapability.ts +2 -1
  85. package/src/models/ProviderContract.ts +29 -1
  86. package/src/models/ProviderInfo.ts +50 -0
  87. package/src/models/ProviderInformation.ts +78 -7
  88. package/src/models/ProviderInput.ts +12 -12
  89. package/src/models/RecommendRequest.ts +8 -0
  90. package/src/models/RecommendResponse.ts +5 -3
  91. package/src/models/Session.ts +1 -1
  92. package/src/models/SmartIdInput.ts +9 -0
  93. package/src/models/SubProviderMetadata.ts +15 -1
  94. package/src/models/index.ts +2 -0
@@ -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
+ }
@@ -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) {
@@ -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;
@@ -11,16 +11,27 @@
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 ProviderInformation interface.
16
17
  */
17
18
  export function instanceOfProviderInformation(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
24
+ return false;
25
+ if (!('subtext' in value) || value['subtext'] === undefined)
26
+ return false;
18
27
  if (!('providerId' in value) || value['providerId'] === undefined)
19
28
  return false;
20
29
  if (!('providerDisplayName' in value) || value['providerDisplayName'] === undefined)
21
30
  return false;
22
31
  if (!('providerLogo' in value) || value['providerLogo'] === undefined)
23
32
  return false;
33
+ if (!('health' in value) || value['health'] === undefined)
34
+ return false;
24
35
  return true;
25
36
  }
26
37
  export function ProviderInformationFromJSON(json) {
@@ -31,9 +42,15 @@ export function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
31
42
  return json;
32
43
  }
33
44
  return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'logoUrl': json['logoUrl'],
48
+ 'subtext': json['subtext'],
34
49
  'providerId': json['providerId'],
35
50
  'providerDisplayName': json['providerDisplayName'],
36
51
  'providerLogo': json['providerLogo'],
52
+ 'health': json['health'],
53
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
37
54
  };
38
55
  }
39
56
  export function ProviderInformationToJSON(json) {
@@ -43,5 +60,15 @@ export function ProviderInformationToJSONTyped(value, ignoreDiscriminator = fals
43
60
  if (value == null) {
44
61
  return value;
45
62
  }
46
- return {};
63
+ return {
64
+ 'id': value['id'],
65
+ 'name': value['name'],
66
+ 'logoUrl': value['logoUrl'],
67
+ 'subtext': value['subtext'],
68
+ 'providerId': value['providerId'],
69
+ 'providerDisplayName': value['providerDisplayName'],
70
+ 'providerLogo': value['providerLogo'],
71
+ 'health': value['health'],
72
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
73
+ };
47
74
  }
@@ -33,37 +33,37 @@ import type { IdinInput } from './IdinInput';
33
33
  */
34
34
  export interface ProviderInput {
35
35
  /**
36
- * Input for the `f-indonesia-nik` provider
36
+ * Input for the `indonesia-nik-lookup` provider
37
37
  * @type {IndonesiaNikInput}
38
38
  * @memberof ProviderInput
39
39
  */
40
40
  indonesiaNik?: IndonesiaNikInput | null;
41
41
  /**
42
- * Input for the `f-mexico-curp` provider
42
+ * Input for the `mexico-curp-lookup` provider
43
43
  * @type {MexicoCurpInput}
44
44
  * @memberof ProviderInput
45
45
  */
46
46
  mexicoCurp?: MexicoCurpInput | null;
47
47
  /**
48
- * Input for the `f-south-africa-nid` provider
48
+ * Input for the `south-africa-nid-lookup` provider
49
49
  * @type {SouthAfricaNidInput}
50
50
  * @memberof ProviderInput
51
51
  */
52
52
  southAfricaNid?: SouthAfricaNidInput | null;
53
53
  /**
54
- * Input for the `f-kenya-nid` provider
54
+ * Input for the `kenya-nid-lookup` provider
55
55
  * @type {KenyaNidInput}
56
56
  * @memberof ProviderInput
57
57
  */
58
58
  kenyaNid?: KenyaNidInput | null;
59
59
  /**
60
- * Input for the `f-nigeria-nin` provider
60
+ * Input for the `nigeria-nin-lookup` provider
61
61
  * @type {NigeriaNinInput}
62
62
  * @memberof ProviderInput
63
63
  */
64
64
  nigeriaNin?: NigeriaNinInput | null;
65
65
  /**
66
- * Input for the `f-india-aadhaar-match` provider
66
+ * Input for the `india-digilocker-aadhaar-match` provider
67
67
  * @type {AadhaarInput}
68
68
  * @memberof ProviderInput
69
69
  */
@@ -75,25 +75,25 @@ export interface ProviderInput {
75
75
  */
76
76
  bangladeshNationalId?: BangladeshNidInput | null;
77
77
  /**
78
- * Input for the `g-brazil-cpf` provider
78
+ * Input for the `brazil-cpf-lookup` provider
79
79
  * @type {BrazilCpfCheckInput}
80
80
  * @memberof ProviderInput
81
81
  */
82
82
  brazilCpfCheck?: BrazilCpfCheckInput | null;
83
83
  /**
84
- * Input for the `g-brazil-digital-cnh` provider
84
+ * Input for the `brazil-digital-cnh` provider
85
85
  * @type {BrazilDigitalCnhInput}
86
86
  * @memberof ProviderInput
87
87
  */
88
88
  brazilDigitalCnh?: BrazilDigitalCnhInput | null;
89
89
  /**
90
- * Input for the `b-philsys-biometric` provider
90
+ * Input for the `philippines-philsys-match` provider
91
91
  * @type {PhilippineMatchInput}
92
92
  * @memberof ProviderInput
93
93
  */
94
94
  philippineMatch?: PhilippineMatchInput | null;
95
95
  /**
96
- * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
96
+ * Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
97
97
  * @type {PhilippineQRInput}
98
98
  * @memberof ProviderInput
99
99
  */
@@ -111,13 +111,13 @@ export interface ProviderInput {
111
111
  */
112
112
  mobileId?: MobileIdInput | null;
113
113
  /**
114
- * Input for the `idin` provider
114
+ * Input for the `netherlands-idin` provider
115
115
  * @type {IdinInput}
116
116
  * @memberof ProviderInput
117
117
  */
118
118
  idin?: IdinInput | null;
119
119
  /**
120
- * Input for the `spid` provider
120
+ * Input for the `italy-spid` provider
121
121
  * @type {SpidInput}
122
122
  * @memberof ProviderInput
123
123
  */
@@ -22,6 +22,12 @@ export interface RecommendRequest {
22
22
  * @memberof RecommendRequest
23
23
  */
24
24
  recommendationInfo?: RecommendationInfo | null;
25
+ /**
26
+ * Filter providers by health status. Valid values: "online", "offline", "all". Defaults to "online".
27
+ * @type {string}
28
+ * @memberof RecommendRequest
29
+ */
30
+ health?: string | null;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the RecommendRequest interface.
@@ -27,6 +27,7 @@ export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  }
28
28
  return {
29
29
  'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
30
+ 'health': json['health'] == null ? undefined : json['health'],
30
31
  };
31
32
  }
32
33
  export function RecommendRequestToJSON(json) {
@@ -38,5 +39,6 @@ export function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false)
38
39
  }
39
40
  return {
40
41
  'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
42
+ 'health': value['health'],
41
43
  };
42
44
  }
@@ -17,19 +17,21 @@ import type { ProviderInformation } from './ProviderInformation';
17
17
  */
18
18
  export interface RecommendResponse {
19
19
  /**
20
- * The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
20
+ * The providers which the user is known to have a credential with.
21
21
  * @type {Array<ProviderInformation>}
22
22
  * @memberof RecommendResponse
23
23
  */
24
24
  recognized: Array<ProviderInformation>;
25
25
  /**
26
- * The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
26
+ * The providers which the user is deemed sufficiently likely to have a credential with.
27
27
  * @type {Array<ProviderInformation>}
28
28
  * @memberof RecommendResponse
29
29
  */
30
30
  relevant: Array<ProviderInformation>;
31
31
  /**
32
- * The list of providers that are not recognized and are not relevant to the user's identity
32
+ * The providers which the user is unlikely to have a credential with.
33
+ *
34
+ * This includes all providers available to your app which were not included in the Recognized or Relevant lists.
33
35
  * @type {Array<ProviderInformation>}
34
36
  * @memberof RecommendResponse
35
37
  */