@trinsic/api 2.0.1 → 2.0.2
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.
|
@@ -138,12 +138,11 @@ export interface ProviderContract {
|
|
|
138
138
|
*/
|
|
139
139
|
subProviders?: Array<SubProviderMetadata> | null;
|
|
140
140
|
/**
|
|
141
|
-
* The
|
|
142
|
-
* If the status is disabled, there is an issue that prevents a provider being able to launch a session.
|
|
141
|
+
* The health for an integration to be able to successfully perform a verification session.
|
|
143
142
|
* @type {ProviderHealth}
|
|
144
143
|
* @memberof ProviderContract
|
|
145
144
|
*/
|
|
146
|
-
|
|
145
|
+
health: ProviderHealth;
|
|
147
146
|
}
|
|
148
147
|
/**
|
|
149
148
|
* Check if a given object implements the ProviderContract interface.
|
|
@@ -47,7 +47,7 @@ export function instanceOfProviderContract(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
-
if (!('
|
|
50
|
+
if (!('health' in value) || value['health'] === undefined)
|
|
51
51
|
return false;
|
|
52
52
|
return true;
|
|
53
53
|
}
|
|
@@ -74,7 +74,7 @@ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
75
75
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
76
76
|
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
|
|
77
|
-
'
|
|
77
|
+
'health': ProviderHealthFromJSON(json['health']),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
export function ProviderContractToJSON(json) {
|
|
@@ -100,6 +100,6 @@ export function ProviderContractToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
100
100
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
101
101
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
102
102
|
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
|
|
103
|
-
'
|
|
103
|
+
'health': ProviderHealthToJSON(value['health']),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
@@ -138,12 +138,11 @@ export interface ProviderContract {
|
|
|
138
138
|
*/
|
|
139
139
|
subProviders?: Array<SubProviderMetadata> | null;
|
|
140
140
|
/**
|
|
141
|
-
* The
|
|
142
|
-
* If the status is disabled, there is an issue that prevents a provider being able to launch a session.
|
|
141
|
+
* The health for an integration to be able to successfully perform a verification session.
|
|
143
142
|
* @type {ProviderHealth}
|
|
144
143
|
* @memberof ProviderContract
|
|
145
144
|
*/
|
|
146
|
-
|
|
145
|
+
health: ProviderHealth;
|
|
147
146
|
}
|
|
148
147
|
/**
|
|
149
148
|
* Check if a given object implements the ProviderContract interface.
|
|
@@ -54,7 +54,7 @@ function instanceOfProviderContract(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
-
if (!('
|
|
57
|
+
if (!('health' in value) || value['health'] === undefined)
|
|
58
58
|
return false;
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
@@ -81,7 +81,7 @@ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
81
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
82
82
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
83
83
|
'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
|
|
84
|
-
'
|
|
84
|
+
'health': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['health']),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
function ProviderContractToJSON(json) {
|
|
@@ -107,6 +107,6 @@ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
107
107
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
108
108
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
109
109
|
'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
|
|
110
|
-
'
|
|
110
|
+
'health': (0, ProviderHealth_1.ProviderHealthToJSON)(value['health']),
|
|
111
111
|
};
|
|
112
112
|
}
|
package/package.json
CHANGED
|
@@ -167,12 +167,11 @@ export interface ProviderContract {
|
|
|
167
167
|
*/
|
|
168
168
|
subProviders?: Array<SubProviderMetadata> | null;
|
|
169
169
|
/**
|
|
170
|
-
* The
|
|
171
|
-
* If the status is disabled, there is an issue that prevents a provider being able to launch a session.
|
|
170
|
+
* The health for an integration to be able to successfully perform a verification session.
|
|
172
171
|
* @type {ProviderHealth}
|
|
173
172
|
* @memberof ProviderContract
|
|
174
173
|
*/
|
|
175
|
-
|
|
174
|
+
health: ProviderHealth;
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
|
|
@@ -195,7 +194,7 @@ export function instanceOfProviderContract(value: object): value is ProviderCont
|
|
|
195
194
|
if (!('requiresInput' in value) || value['requiresInput'] === undefined) return false;
|
|
196
195
|
if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined) return false;
|
|
197
196
|
if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined) return false;
|
|
198
|
-
if (!('
|
|
197
|
+
if (!('health' in value) || value['health'] === undefined) return false;
|
|
199
198
|
return true;
|
|
200
199
|
}
|
|
201
200
|
|
|
@@ -224,7 +223,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
223
|
'hasTrinsicInterface': json['hasTrinsicInterface'],
|
|
225
224
|
'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
|
|
226
225
|
'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
|
|
227
|
-
'
|
|
226
|
+
'health': ProviderHealthFromJSON(json['health']),
|
|
228
227
|
};
|
|
229
228
|
}
|
|
230
229
|
|
|
@@ -254,7 +253,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
|
|
|
254
253
|
'hasTrinsicInterface': value['hasTrinsicInterface'],
|
|
255
254
|
'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
|
|
256
255
|
'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
|
|
257
|
-
'
|
|
256
|
+
'health': ProviderHealthToJSON(value['health']),
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
259
|
|