@trinsic/api 2.0.3 → 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.
- package/.openapi-generator/FILES +2 -0
- package/dist/apis/AttachmentsApi.d.ts +4 -4
- package/dist/apis/AttachmentsApi.js +2 -2
- package/dist/apis/NetworkApi.d.ts +12 -8
- package/dist/apis/NetworkApi.js +8 -5
- package/dist/apis/SessionsApi.d.ts +4 -4
- package/dist/apis/SessionsApi.js +2 -2
- package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
- package/dist/esm/apis/AttachmentsApi.js +2 -2
- package/dist/esm/apis/NetworkApi.d.ts +12 -8
- package/dist/esm/apis/NetworkApi.js +8 -5
- package/dist/esm/apis/SessionsApi.d.ts +4 -4
- package/dist/esm/apis/SessionsApi.js +2 -2
- package/dist/esm/models/BangladeshNidInput.d.ts +3 -3
- package/dist/esm/models/BangladeshNidInput.js +10 -4
- package/dist/esm/models/ContractField.d.ts +39 -0
- package/dist/esm/models/ContractField.js +48 -0
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
- package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
- package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
- package/dist/esm/models/DocumentType.d.ts +1 -0
- package/dist/esm/models/DocumentType.js +2 -1
- package/dist/esm/models/FieldAvailability.d.ts +26 -0
- package/dist/esm/models/FieldAvailability.js +44 -0
- package/dist/esm/models/IntegrationCapability.d.ts +1 -0
- package/dist/esm/models/IntegrationCapability.js +2 -1
- package/dist/esm/models/ProviderContract.d.ts +18 -1
- package/dist/esm/models/ProviderContract.js +7 -0
- package/dist/esm/models/ProviderInfo.d.ts +32 -0
- package/dist/esm/models/ProviderInfo.js +15 -0
- package/dist/esm/models/ProviderInformation.d.ts +50 -6
- package/dist/esm/models/ProviderInformation.js +28 -1
- package/dist/esm/models/ProviderInput.d.ts +12 -12
- package/dist/esm/models/RecommendRequest.d.ts +6 -0
- package/dist/esm/models/RecommendRequest.js +2 -0
- package/dist/esm/models/RecommendResponse.d.ts +5 -3
- package/dist/esm/models/Session.d.ts +1 -1
- package/dist/esm/models/SmartIdInput.d.ts +7 -0
- package/dist/esm/models/SmartIdInput.js +2 -0
- package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
- package/dist/esm/models/SubProviderMetadata.js +4 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/BangladeshNidInput.d.ts +3 -3
- package/dist/models/BangladeshNidInput.js +10 -4
- package/dist/models/ContractField.d.ts +39 -0
- package/dist/models/ContractField.js +55 -0
- package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
- package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
- package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
- package/dist/models/DocumentType.d.ts +1 -0
- package/dist/models/DocumentType.js +2 -1
- package/dist/models/FieldAvailability.d.ts +26 -0
- package/dist/models/FieldAvailability.js +52 -0
- package/dist/models/IntegrationCapability.d.ts +1 -0
- package/dist/models/IntegrationCapability.js +2 -1
- package/dist/models/ProviderContract.d.ts +18 -1
- package/dist/models/ProviderContract.js +7 -0
- package/dist/models/ProviderInfo.d.ts +32 -0
- package/dist/models/ProviderInfo.js +15 -0
- package/dist/models/ProviderInformation.d.ts +50 -6
- package/dist/models/ProviderInformation.js +28 -1
- package/dist/models/ProviderInput.d.ts +12 -12
- package/dist/models/RecommendRequest.d.ts +6 -0
- package/dist/models/RecommendRequest.js +2 -0
- package/dist/models/RecommendResponse.d.ts +5 -3
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/SmartIdInput.d.ts +7 -0
- package/dist/models/SmartIdInput.js +2 -0
- package/dist/models/SubProviderMetadata.d.ts +12 -1
- package/dist/models/SubProviderMetadata.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AttachmentsApi.ts +4 -4
- package/src/apis/NetworkApi.ts +18 -9
- package/src/apis/SessionsApi.ts +4 -4
- package/src/models/BangladeshNidInput.ts +10 -7
- package/src/models/ContractField.ts +85 -0
- package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
- package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
- package/src/models/DocumentType.ts +2 -1
- package/src/models/FieldAvailability.ts +54 -0
- package/src/models/IntegrationCapability.ts +2 -1
- package/src/models/ProviderContract.ts +29 -1
- package/src/models/ProviderInfo.ts +50 -0
- package/src/models/ProviderInformation.ts +78 -7
- package/src/models/ProviderInput.ts +12 -12
- package/src/models/RecommendRequest.ts +8 -0
- package/src/models/RecommendResponse.ts +5 -3
- package/src/models/Session.ts +1 -1
- package/src/models/SmartIdInput.ts +9 -0
- package/src/models/SubProviderMetadata.ts +15 -1
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ src/models/BangladeshNidInput.ts
|
|
|
15
15
|
src/models/BrazilCpfCheckInput.ts
|
|
16
16
|
src/models/BrazilDigitalCnhInput.ts
|
|
17
17
|
src/models/CancelSessionResponse.ts
|
|
18
|
+
src/models/ContractField.ts
|
|
18
19
|
src/models/CreateAdvancedProviderSessionRequest.ts
|
|
19
20
|
src/models/CreateAdvancedProviderSessionResponse.ts
|
|
20
21
|
src/models/CreateHostedProviderSessionRequest.ts
|
|
@@ -24,6 +25,7 @@ src/models/CreateWidgetSessionResponse.ts
|
|
|
24
25
|
src/models/DocumentData.ts
|
|
25
26
|
src/models/DocumentScanAttachments.ts
|
|
26
27
|
src/models/DocumentType.ts
|
|
28
|
+
src/models/FieldAvailability.ts
|
|
27
29
|
src/models/GetAttachmentRequest.ts
|
|
28
30
|
src/models/GetAttachmentResponse.ts
|
|
29
31
|
src/models/GetSessionResponse.ts
|
|
@@ -22,7 +22,7 @@ export interface GetAttachmentOperationRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface AttachmentsApiInterface {
|
|
24
24
|
/**
|
|
25
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
25
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
26
26
|
* @summary Get Attachment
|
|
27
27
|
* @param {GetAttachmentRequest} [getAttachmentRequest]
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
@@ -31,7 +31,7 @@ export interface AttachmentsApiInterface {
|
|
|
31
31
|
*/
|
|
32
32
|
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
|
|
33
33
|
/**
|
|
34
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
34
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
35
35
|
* Get Attachment
|
|
36
36
|
*/
|
|
37
37
|
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
|
|
@@ -41,12 +41,12 @@ export interface AttachmentsApiInterface {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
|
|
43
43
|
/**
|
|
44
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
44
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
45
45
|
* Get Attachment
|
|
46
46
|
*/
|
|
47
47
|
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
|
|
48
48
|
/**
|
|
49
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
49
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
50
50
|
* Get Attachment
|
|
51
51
|
*/
|
|
52
52
|
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
|
|
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class AttachmentsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
33
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
34
34
|
* Get Attachment
|
|
35
35
|
*/
|
|
36
36
|
getAttachmentRaw(requestParameters, initOverrides) {
|
|
@@ -56,7 +56,7 @@ class AttachmentsApi extends runtime.BaseAPI {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
59
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
60
60
|
* Get Attachment
|
|
61
61
|
*/
|
|
62
62
|
getAttachment(getAttachmentRequest, initOverrides) {
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ListProviderContractsResponse, ListProvidersResponse, RecommendRequest, RecommendResponse } from '../models/index';
|
|
14
|
+
export interface ListProvidersRequest {
|
|
15
|
+
health?: string;
|
|
16
|
+
}
|
|
14
17
|
export interface RecommendProvidersRequest {
|
|
15
18
|
recommendRequest?: RecommendRequest;
|
|
16
19
|
}
|
|
@@ -37,18 +40,19 @@ export interface NetworkApiInterface {
|
|
|
37
40
|
/**
|
|
38
41
|
* List all identity providers available for use
|
|
39
42
|
* @summary List Providers
|
|
43
|
+
* @param {string} [health] Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
40
44
|
* @param {*} [options] Override http request option.
|
|
41
45
|
* @throws {RequiredError}
|
|
42
46
|
* @memberof NetworkApiInterface
|
|
43
47
|
*/
|
|
44
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
48
|
+
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
45
49
|
/**
|
|
46
50
|
* List all identity providers available for use
|
|
47
51
|
* List Providers
|
|
48
52
|
*/
|
|
49
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
53
|
+
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
50
54
|
/**
|
|
51
|
-
* Generate provider recommendations based on the
|
|
55
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
52
56
|
* @summary Recommend Providers
|
|
53
57
|
* @param {RecommendRequest} [recommendRequest]
|
|
54
58
|
* @param {*} [options] Override http request option.
|
|
@@ -57,7 +61,7 @@ export interface NetworkApiInterface {
|
|
|
57
61
|
*/
|
|
58
62
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
59
63
|
/**
|
|
60
|
-
* Generate provider recommendations based on the
|
|
64
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
61
65
|
* Recommend Providers
|
|
62
66
|
*/
|
|
63
67
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -80,19 +84,19 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
80
84
|
* List all identity providers available for use
|
|
81
85
|
* List Providers
|
|
82
86
|
*/
|
|
83
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
87
|
+
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
84
88
|
/**
|
|
85
89
|
* List all identity providers available for use
|
|
86
90
|
* List Providers
|
|
87
91
|
*/
|
|
88
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
92
|
+
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
89
93
|
/**
|
|
90
|
-
* Generate provider recommendations based on the
|
|
94
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
91
95
|
* Recommend Providers
|
|
92
96
|
*/
|
|
93
97
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
94
98
|
/**
|
|
95
|
-
* Generate provider recommendations based on the
|
|
99
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
96
100
|
* Recommend Providers
|
|
97
101
|
*/
|
|
98
102
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
package/dist/apis/NetworkApi.js
CHANGED
|
@@ -67,9 +67,12 @@ class NetworkApi extends runtime.BaseAPI {
|
|
|
67
67
|
* List all identity providers available for use
|
|
68
68
|
* List Providers
|
|
69
69
|
*/
|
|
70
|
-
listProvidersRaw(initOverrides) {
|
|
70
|
+
listProvidersRaw(requestParameters, initOverrides) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
const queryParameters = {};
|
|
73
|
+
if (requestParameters['health'] != null) {
|
|
74
|
+
queryParameters['health'] = requestParameters['health'];
|
|
75
|
+
}
|
|
73
76
|
const headerParameters = {};
|
|
74
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
75
78
|
const token = this.configuration.accessToken;
|
|
@@ -91,14 +94,14 @@ class NetworkApi extends runtime.BaseAPI {
|
|
|
91
94
|
* List all identity providers available for use
|
|
92
95
|
* List Providers
|
|
93
96
|
*/
|
|
94
|
-
listProviders(initOverrides) {
|
|
97
|
+
listProviders(health, initOverrides) {
|
|
95
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
const response = yield this.listProvidersRaw(initOverrides);
|
|
99
|
+
const response = yield this.listProvidersRaw({ health: health }, initOverrides);
|
|
97
100
|
return yield response.value();
|
|
98
101
|
});
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
101
|
-
* Generate provider recommendations based on the
|
|
104
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
102
105
|
* Recommend Providers
|
|
103
106
|
*/
|
|
104
107
|
recommendProvidersRaw(requestParameters, initOverrides) {
|
|
@@ -124,7 +127,7 @@ class NetworkApi extends runtime.BaseAPI {
|
|
|
124
127
|
});
|
|
125
128
|
}
|
|
126
129
|
/**
|
|
127
|
-
* Generate provider recommendations based on the
|
|
130
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
128
131
|
* Recommend Providers
|
|
129
132
|
*/
|
|
130
133
|
recommendProviders(recommendRequest, initOverrides) {
|
|
@@ -152,7 +152,7 @@ export interface SessionsApiInterface {
|
|
|
152
152
|
*/
|
|
153
153
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
154
154
|
/**
|
|
155
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
155
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
156
156
|
* @summary Redact Session
|
|
157
157
|
* @param {string} sessionId
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
@@ -161,7 +161,7 @@ export interface SessionsApiInterface {
|
|
|
161
161
|
*/
|
|
162
162
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
163
163
|
/**
|
|
164
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
164
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
165
165
|
* Redact Session
|
|
166
166
|
*/
|
|
167
167
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -254,12 +254,12 @@ export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiI
|
|
|
254
254
|
*/
|
|
255
255
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
256
256
|
/**
|
|
257
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
257
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
258
258
|
* Redact Session
|
|
259
259
|
*/
|
|
260
260
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
261
261
|
/**
|
|
262
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
262
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
263
263
|
* Redact Session
|
|
264
264
|
*/
|
|
265
265
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
package/dist/apis/SessionsApi.js
CHANGED
|
@@ -295,7 +295,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
298
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
299
299
|
* Redact Session
|
|
300
300
|
*/
|
|
301
301
|
redactSessionRaw(requestParameters, initOverrides) {
|
|
@@ -322,7 +322,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
325
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
326
326
|
* Redact Session
|
|
327
327
|
*/
|
|
328
328
|
redactSession(sessionId, initOverrides) {
|
|
@@ -22,7 +22,7 @@ export interface GetAttachmentOperationRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface AttachmentsApiInterface {
|
|
24
24
|
/**
|
|
25
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
25
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
26
26
|
* @summary Get Attachment
|
|
27
27
|
* @param {GetAttachmentRequest} [getAttachmentRequest]
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
@@ -31,7 +31,7 @@ export interface AttachmentsApiInterface {
|
|
|
31
31
|
*/
|
|
32
32
|
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
|
|
33
33
|
/**
|
|
34
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
34
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
35
35
|
* Get Attachment
|
|
36
36
|
*/
|
|
37
37
|
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
|
|
@@ -41,12 +41,12 @@ export interface AttachmentsApiInterface {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
|
|
43
43
|
/**
|
|
44
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
44
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
45
45
|
* Get Attachment
|
|
46
46
|
*/
|
|
47
47
|
getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
|
|
48
48
|
/**
|
|
49
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
49
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
50
50
|
* Get Attachment
|
|
51
51
|
*/
|
|
52
52
|
getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
|
|
@@ -27,7 +27,7 @@ import { GetAttachmentRequestToJSON, GetAttachmentResponseFromJSON, } from '../m
|
|
|
27
27
|
*/
|
|
28
28
|
export class AttachmentsApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
30
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
31
31
|
* Get Attachment
|
|
32
32
|
*/
|
|
33
33
|
getAttachmentRaw(requestParameters, initOverrides) {
|
|
@@ -53,7 +53,7 @@ export class AttachmentsApi extends runtime.BaseAPI {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Exchange an Attachment Access Key (from `IdentityData.
|
|
56
|
+
* Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
|
|
57
57
|
* Get Attachment
|
|
58
58
|
*/
|
|
59
59
|
getAttachment(getAttachmentRequest, initOverrides) {
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ListProviderContractsResponse, ListProvidersResponse, RecommendRequest, RecommendResponse } from '../models/index';
|
|
14
|
+
export interface ListProvidersRequest {
|
|
15
|
+
health?: string;
|
|
16
|
+
}
|
|
14
17
|
export interface RecommendProvidersRequest {
|
|
15
18
|
recommendRequest?: RecommendRequest;
|
|
16
19
|
}
|
|
@@ -37,18 +40,19 @@ export interface NetworkApiInterface {
|
|
|
37
40
|
/**
|
|
38
41
|
* List all identity providers available for use
|
|
39
42
|
* @summary List Providers
|
|
43
|
+
* @param {string} [health] Filter providers by health status. Valid values: \"online\", \"offline\", \"all\". Defaults to \"all\".
|
|
40
44
|
* @param {*} [options] Override http request option.
|
|
41
45
|
* @throws {RequiredError}
|
|
42
46
|
* @memberof NetworkApiInterface
|
|
43
47
|
*/
|
|
44
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
48
|
+
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
45
49
|
/**
|
|
46
50
|
* List all identity providers available for use
|
|
47
51
|
* List Providers
|
|
48
52
|
*/
|
|
49
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
53
|
+
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
50
54
|
/**
|
|
51
|
-
* Generate provider recommendations based on the
|
|
55
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
52
56
|
* @summary Recommend Providers
|
|
53
57
|
* @param {RecommendRequest} [recommendRequest]
|
|
54
58
|
* @param {*} [options] Override http request option.
|
|
@@ -57,7 +61,7 @@ export interface NetworkApiInterface {
|
|
|
57
61
|
*/
|
|
58
62
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
59
63
|
/**
|
|
60
|
-
* Generate provider recommendations based on the
|
|
64
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
61
65
|
* Recommend Providers
|
|
62
66
|
*/
|
|
63
67
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -80,19 +84,19 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
|
|
|
80
84
|
* List all identity providers available for use
|
|
81
85
|
* List Providers
|
|
82
86
|
*/
|
|
83
|
-
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
87
|
+
listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
|
|
84
88
|
/**
|
|
85
89
|
* List all identity providers available for use
|
|
86
90
|
* List Providers
|
|
87
91
|
*/
|
|
88
|
-
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
92
|
+
listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
|
|
89
93
|
/**
|
|
90
|
-
* Generate provider recommendations based on the
|
|
94
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
91
95
|
* Recommend Providers
|
|
92
96
|
*/
|
|
93
97
|
recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
|
|
94
98
|
/**
|
|
95
|
-
* Generate provider recommendations based on the
|
|
99
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
96
100
|
* Recommend Providers
|
|
97
101
|
*/
|
|
98
102
|
recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
|
|
@@ -64,9 +64,12 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
64
64
|
* List all identity providers available for use
|
|
65
65
|
* List Providers
|
|
66
66
|
*/
|
|
67
|
-
listProvidersRaw(initOverrides) {
|
|
67
|
+
listProvidersRaw(requestParameters, initOverrides) {
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const queryParameters = {};
|
|
70
|
+
if (requestParameters['health'] != null) {
|
|
71
|
+
queryParameters['health'] = requestParameters['health'];
|
|
72
|
+
}
|
|
70
73
|
const headerParameters = {};
|
|
71
74
|
if (this.configuration && this.configuration.accessToken) {
|
|
72
75
|
const token = this.configuration.accessToken;
|
|
@@ -88,14 +91,14 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
88
91
|
* List all identity providers available for use
|
|
89
92
|
* List Providers
|
|
90
93
|
*/
|
|
91
|
-
listProviders(initOverrides) {
|
|
94
|
+
listProviders(health, initOverrides) {
|
|
92
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const response = yield this.listProvidersRaw(initOverrides);
|
|
96
|
+
const response = yield this.listProvidersRaw({ health: health }, initOverrides);
|
|
94
97
|
return yield response.value();
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
100
|
/**
|
|
98
|
-
* Generate provider recommendations based on the
|
|
101
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
99
102
|
* Recommend Providers
|
|
100
103
|
*/
|
|
101
104
|
recommendProvidersRaw(requestParameters, initOverrides) {
|
|
@@ -121,7 +124,7 @@ export class NetworkApi extends runtime.BaseAPI {
|
|
|
121
124
|
});
|
|
122
125
|
}
|
|
123
126
|
/**
|
|
124
|
-
* Generate provider recommendations based on the
|
|
127
|
+
* Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
|
|
125
128
|
* Recommend Providers
|
|
126
129
|
*/
|
|
127
130
|
recommendProviders(recommendRequest, initOverrides) {
|
|
@@ -152,7 +152,7 @@ export interface SessionsApiInterface {
|
|
|
152
152
|
*/
|
|
153
153
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
154
154
|
/**
|
|
155
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
155
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
156
156
|
* @summary Redact Session
|
|
157
157
|
* @param {string} sessionId
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
@@ -161,7 +161,7 @@ export interface SessionsApiInterface {
|
|
|
161
161
|
*/
|
|
162
162
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
163
163
|
/**
|
|
164
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
164
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
165
165
|
* Redact Session
|
|
166
166
|
*/
|
|
167
167
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -254,12 +254,12 @@ export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiI
|
|
|
254
254
|
*/
|
|
255
255
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
256
256
|
/**
|
|
257
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
257
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
258
258
|
* Redact Session
|
|
259
259
|
*/
|
|
260
260
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
261
261
|
/**
|
|
262
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
262
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
263
263
|
* Redact Session
|
|
264
264
|
*/
|
|
265
265
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -292,7 +292,7 @@ export class SessionsApi extends runtime.BaseAPI {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
295
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
296
296
|
* Redact Session
|
|
297
297
|
*/
|
|
298
298
|
redactSessionRaw(requestParameters, initOverrides) {
|
|
@@ -319,7 +319,7 @@ export class SessionsApi extends runtime.BaseAPI {
|
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
322
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
322
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
|
|
323
323
|
* Redact Session
|
|
324
324
|
*/
|
|
325
325
|
redactSession(sessionId, initOverrides) {
|
|
@@ -20,19 +20,19 @@ export interface BangladeshNidInput {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BangladeshNidInput
|
|
22
22
|
*/
|
|
23
|
-
nationalIdNumber
|
|
23
|
+
nationalIdNumber: string;
|
|
24
24
|
/**
|
|
25
25
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof BangladeshNidInput
|
|
28
28
|
*/
|
|
29
|
-
dateOfBirth
|
|
29
|
+
dateOfBirth: Date;
|
|
30
30
|
/**
|
|
31
31
|
* The user's full name
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BangladeshNidInput
|
|
34
34
|
*/
|
|
35
|
-
name
|
|
35
|
+
name: string;
|
|
36
36
|
/**
|
|
37
37
|
* The raw bytes of the photo file collected from the user.
|
|
38
38
|
* @type {string}
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* Check if a given object implements the BangladeshNidInput interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfBangladeshNidInput(value) {
|
|
18
|
+
if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
18
24
|
return true;
|
|
19
25
|
}
|
|
20
26
|
export function BangladeshNidInputFromJSON(json) {
|
|
@@ -25,9 +31,9 @@ export function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
31
|
return json;
|
|
26
32
|
}
|
|
27
33
|
return {
|
|
28
|
-
'nationalIdNumber': json['nationalIdNumber']
|
|
29
|
-
'dateOfBirth':
|
|
30
|
-
'name': json['name']
|
|
34
|
+
'nationalIdNumber': json['nationalIdNumber'],
|
|
35
|
+
'dateOfBirth': (new Date(json['dateOfBirth'])),
|
|
36
|
+
'name': json['name'],
|
|
31
37
|
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
32
38
|
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
33
39
|
};
|
|
@@ -41,7 +47,7 @@ export function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false
|
|
|
41
47
|
}
|
|
42
48
|
return {
|
|
43
49
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
44
|
-
'dateOfBirth':
|
|
50
|
+
'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
|
|
45
51
|
'name': value['name'],
|
|
46
52
|
'photoByes': value['photoByes'],
|
|
47
53
|
'photoImageMimeType': value['photoImageMimeType'],
|
|
@@ -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
|
+
}
|