@onfido/api 3.3.0 → 3.4.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.
- package/dist/api.d.ts +30 -0
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +30 -0
- package/dist/esm/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -9738,6 +9738,12 @@ export interface WorkflowRun {
|
|
|
9738
9738
|
* @memberof WorkflowRun
|
|
9739
9739
|
*/
|
|
9740
9740
|
'tags'?: Array<string> | null;
|
|
9741
|
+
/**
|
|
9742
|
+
* Customer-provided user identifier.
|
|
9743
|
+
* @type {string}
|
|
9744
|
+
* @memberof WorkflowRun
|
|
9745
|
+
*/
|
|
9746
|
+
'customer_user_id'?: string;
|
|
9741
9747
|
/**
|
|
9742
9748
|
*
|
|
9743
9749
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9798,6 +9804,12 @@ export interface WorkflowRun {
|
|
|
9798
9804
|
* @memberof WorkflowRun
|
|
9799
9805
|
*/
|
|
9800
9806
|
'error'?: WorkflowRunResponseError;
|
|
9807
|
+
/**
|
|
9808
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9809
|
+
* @type {string}
|
|
9810
|
+
* @memberof WorkflowRun
|
|
9811
|
+
*/
|
|
9812
|
+
'sdk_token'?: string | null;
|
|
9801
9813
|
}
|
|
9802
9814
|
export declare const WorkflowRunStatusEnum: {
|
|
9803
9815
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9834,6 +9846,12 @@ export interface WorkflowRunBuilder {
|
|
|
9834
9846
|
* @memberof WorkflowRunBuilder
|
|
9835
9847
|
*/
|
|
9836
9848
|
'tags'?: Array<string> | null;
|
|
9849
|
+
/**
|
|
9850
|
+
* Customer-provided user identifier.
|
|
9851
|
+
* @type {string}
|
|
9852
|
+
* @memberof WorkflowRunBuilder
|
|
9853
|
+
*/
|
|
9854
|
+
'customer_user_id'?: string;
|
|
9837
9855
|
/**
|
|
9838
9856
|
*
|
|
9839
9857
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9924,6 +9942,12 @@ export interface WorkflowRunResponse {
|
|
|
9924
9942
|
* @memberof WorkflowRunResponse
|
|
9925
9943
|
*/
|
|
9926
9944
|
'error'?: WorkflowRunResponseError;
|
|
9945
|
+
/**
|
|
9946
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9947
|
+
* @type {string}
|
|
9948
|
+
* @memberof WorkflowRunResponse
|
|
9949
|
+
*/
|
|
9950
|
+
'sdk_token'?: string | null;
|
|
9927
9951
|
}
|
|
9928
9952
|
export declare const WorkflowRunResponseStatusEnum: {
|
|
9929
9953
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9979,6 +10003,12 @@ export interface WorkflowRunShared {
|
|
|
9979
10003
|
* @memberof WorkflowRunShared
|
|
9980
10004
|
*/
|
|
9981
10005
|
'tags'?: Array<string> | null;
|
|
10006
|
+
/**
|
|
10007
|
+
* Customer-provided user identifier.
|
|
10008
|
+
* @type {string}
|
|
10009
|
+
* @memberof WorkflowRunShared
|
|
10010
|
+
*/
|
|
10011
|
+
'customer_user_id'?: string;
|
|
9982
10012
|
/**
|
|
9983
10013
|
*
|
|
9984
10014
|
* @type {WorkflowRunSharedLink}
|
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
}
|
|
33
33
|
this.apiKey = 'Token token=' + param.apiToken;
|
|
34
34
|
this.basePath = param.basePath || base_1.BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
|
|
35
|
-
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/3.
|
|
35
|
+
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/3.4.0' }) });
|
|
36
36
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
37
37
|
}
|
|
38
38
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -9738,6 +9738,12 @@ export interface WorkflowRun {
|
|
|
9738
9738
|
* @memberof WorkflowRun
|
|
9739
9739
|
*/
|
|
9740
9740
|
'tags'?: Array<string> | null;
|
|
9741
|
+
/**
|
|
9742
|
+
* Customer-provided user identifier.
|
|
9743
|
+
* @type {string}
|
|
9744
|
+
* @memberof WorkflowRun
|
|
9745
|
+
*/
|
|
9746
|
+
'customer_user_id'?: string;
|
|
9741
9747
|
/**
|
|
9742
9748
|
*
|
|
9743
9749
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9798,6 +9804,12 @@ export interface WorkflowRun {
|
|
|
9798
9804
|
* @memberof WorkflowRun
|
|
9799
9805
|
*/
|
|
9800
9806
|
'error'?: WorkflowRunResponseError;
|
|
9807
|
+
/**
|
|
9808
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9809
|
+
* @type {string}
|
|
9810
|
+
* @memberof WorkflowRun
|
|
9811
|
+
*/
|
|
9812
|
+
'sdk_token'?: string | null;
|
|
9801
9813
|
}
|
|
9802
9814
|
export declare const WorkflowRunStatusEnum: {
|
|
9803
9815
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9834,6 +9846,12 @@ export interface WorkflowRunBuilder {
|
|
|
9834
9846
|
* @memberof WorkflowRunBuilder
|
|
9835
9847
|
*/
|
|
9836
9848
|
'tags'?: Array<string> | null;
|
|
9849
|
+
/**
|
|
9850
|
+
* Customer-provided user identifier.
|
|
9851
|
+
* @type {string}
|
|
9852
|
+
* @memberof WorkflowRunBuilder
|
|
9853
|
+
*/
|
|
9854
|
+
'customer_user_id'?: string;
|
|
9837
9855
|
/**
|
|
9838
9856
|
*
|
|
9839
9857
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9924,6 +9942,12 @@ export interface WorkflowRunResponse {
|
|
|
9924
9942
|
* @memberof WorkflowRunResponse
|
|
9925
9943
|
*/
|
|
9926
9944
|
'error'?: WorkflowRunResponseError;
|
|
9945
|
+
/**
|
|
9946
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9947
|
+
* @type {string}
|
|
9948
|
+
* @memberof WorkflowRunResponse
|
|
9949
|
+
*/
|
|
9950
|
+
'sdk_token'?: string | null;
|
|
9927
9951
|
}
|
|
9928
9952
|
export declare const WorkflowRunResponseStatusEnum: {
|
|
9929
9953
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9979,6 +10003,12 @@ export interface WorkflowRunShared {
|
|
|
9979
10003
|
* @memberof WorkflowRunShared
|
|
9980
10004
|
*/
|
|
9981
10005
|
'tags'?: Array<string> | null;
|
|
10006
|
+
/**
|
|
10007
|
+
* Customer-provided user identifier.
|
|
10008
|
+
* @type {string}
|
|
10009
|
+
* @memberof WorkflowRunShared
|
|
10010
|
+
*/
|
|
10011
|
+
'customer_user_id'?: string;
|
|
9982
10012
|
/**
|
|
9983
10013
|
*
|
|
9984
10014
|
* @type {WorkflowRunSharedLink}
|
|
@@ -29,7 +29,7 @@ export class Configuration {
|
|
|
29
29
|
}
|
|
30
30
|
this.apiKey = 'Token token=' + param.apiToken;
|
|
31
31
|
this.basePath = param.basePath || BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
|
|
32
|
-
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/3.
|
|
32
|
+
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/3.4.0' }) });
|
|
33
33
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
34
34
|
}
|
|
35
35
|
/**
|