@vouchsafe/node 0.1.0 → 0.1.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.
- package/README.md +21 -7
- package/dist/cjs/VouchsafeClient.d.ts +2 -3
- package/dist/cjs/VouchsafeClient.d.ts.map +1 -1
- package/dist/cjs/VouchsafeClient.js +18 -13
- package/dist/cjs/VouchsafeClient.js.map +1 -1
- package/dist/cjs/openapi/apis/AuthenticationApi.d.ts +5 -5
- package/dist/cjs/openapi/apis/AuthenticationApi.d.ts.map +1 -1
- package/dist/cjs/openapi/apis/AuthenticationApi.js +6 -6
- package/dist/cjs/openapi/apis/AuthenticationApi.js.map +1 -1
- package/dist/cjs/openapi/apis/SmartLookupsApi.d.ts +1 -1
- package/dist/cjs/openapi/apis/SmartLookupsApi.js +1 -1
- package/dist/cjs/openapi/apis/VerificationsApi.d.ts +3 -3
- package/dist/cjs/openapi/apis/VerificationsApi.d.ts.map +1 -1
- package/dist/cjs/openapi/apis/VerificationsApi.js +4 -4
- package/dist/cjs/openapi/apis/VerificationsApi.js.map +1 -1
- package/dist/cjs/openapi/models/ApiErrorResponse.d.ts +1 -1
- package/dist/cjs/openapi/models/ApiErrorResponse.js +1 -1
- package/dist/cjs/openapi/models/AuthenticateInput.d.ts +39 -0
- package/dist/cjs/openapi/models/AuthenticateInput.d.ts.map +1 -0
- package/dist/cjs/openapi/models/AuthenticateInput.js +55 -0
- package/dist/cjs/openapi/models/AuthenticateInput.js.map +1 -0
- package/dist/cjs/openapi/models/AuthenticateResponse.d.ts +1 -1
- package/dist/cjs/openapi/models/AuthenticateResponse.js +1 -1
- package/dist/cjs/openapi/models/CheckResult.d.ts +1 -1
- package/dist/cjs/openapi/models/CheckResult.js +1 -1
- package/dist/cjs/openapi/models/CheckState.d.ts +1 -1
- package/dist/cjs/openapi/models/CheckState.js +1 -1
- package/dist/cjs/openapi/models/GetSmartLookupResponse.d.ts +1 -1
- package/dist/cjs/openapi/models/GetSmartLookupResponse.js +1 -1
- package/dist/cjs/openapi/models/Model36EnumsBackgroundCheck.d.ts +1 -1
- package/dist/cjs/openapi/models/Model36EnumsBackgroundCheck.js +1 -1
- package/dist/cjs/openapi/models/PostcodeResponse.d.ts +1 -1
- package/dist/cjs/openapi/models/PostcodeResponse.js +1 -1
- package/dist/cjs/openapi/models/Reason.d.ts +1 -1
- package/dist/cjs/openapi/models/Reason.js +1 -1
- package/dist/cjs/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts +1 -1
- package/dist/cjs/openapi/models/RecordAddressVerificationChecksCheckResult.js +1 -1
- package/dist/cjs/openapi/models/Report.d.ts +1 -1
- package/dist/cjs/openapi/models/Report.js +1 -1
- package/dist/cjs/openapi/models/RequestVerificationInput.d.ts +97 -0
- package/dist/cjs/openapi/models/RequestVerificationInput.d.ts.map +1 -0
- package/dist/cjs/openapi/models/RequestVerificationInput.js +69 -0
- package/dist/cjs/openapi/models/RequestVerificationInput.js.map +1 -0
- package/dist/cjs/openapi/models/RequestVerificationResponse.d.ts +1 -1
- package/dist/cjs/openapi/models/RequestVerificationResponse.js +1 -1
- package/dist/cjs/openapi/models/SmartLookupInput.d.ts +1 -1
- package/dist/cjs/openapi/models/SmartLookupInput.js +1 -1
- package/dist/cjs/openapi/models/Status.d.ts +1 -1
- package/dist/cjs/openapi/models/Status.js +1 -1
- package/dist/cjs/openapi/models/Verification.d.ts +1 -1
- package/dist/cjs/openapi/models/Verification.js +1 -1
- package/dist/cjs/openapi/models/index.d.ts +2 -2
- package/dist/cjs/openapi/models/index.d.ts.map +1 -1
- package/dist/cjs/openapi/models/index.js +2 -2
- package/dist/cjs/openapi/models/index.js.map +1 -1
- package/dist/cjs/openapi/runtime.d.ts +1 -1
- package/dist/cjs/openapi/runtime.js +1 -1
- package/dist/esm/VouchsafeClient.d.ts +2 -3
- package/dist/esm/VouchsafeClient.d.ts.map +1 -1
- package/dist/esm/VouchsafeClient.js +18 -13
- package/dist/esm/VouchsafeClient.js.map +1 -1
- package/dist/esm/openapi/apis/AuthenticationApi.d.ts +5 -5
- package/dist/esm/openapi/apis/AuthenticationApi.d.ts.map +1 -1
- package/dist/esm/openapi/apis/AuthenticationApi.js +7 -7
- package/dist/esm/openapi/apis/AuthenticationApi.js.map +1 -1
- package/dist/esm/openapi/apis/SmartLookupsApi.d.ts +1 -1
- package/dist/esm/openapi/apis/SmartLookupsApi.js +1 -1
- package/dist/esm/openapi/apis/VerificationsApi.d.ts +3 -3
- package/dist/esm/openapi/apis/VerificationsApi.d.ts.map +1 -1
- package/dist/esm/openapi/apis/VerificationsApi.js +5 -5
- package/dist/esm/openapi/apis/VerificationsApi.js.map +1 -1
- package/dist/esm/openapi/models/ApiErrorResponse.d.ts +1 -1
- package/dist/esm/openapi/models/ApiErrorResponse.js +1 -1
- package/dist/esm/openapi/models/AuthenticateInput.d.ts +39 -0
- package/dist/esm/openapi/models/AuthenticateInput.d.ts.map +1 -0
- package/dist/esm/openapi/models/AuthenticateInput.js +48 -0
- package/dist/esm/openapi/models/AuthenticateInput.js.map +1 -0
- package/dist/esm/openapi/models/AuthenticateResponse.d.ts +1 -1
- package/dist/esm/openapi/models/AuthenticateResponse.js +1 -1
- package/dist/esm/openapi/models/CheckResult.d.ts +1 -1
- package/dist/esm/openapi/models/CheckResult.js +1 -1
- package/dist/esm/openapi/models/CheckState.d.ts +1 -1
- package/dist/esm/openapi/models/CheckState.js +1 -1
- package/dist/esm/openapi/models/GetSmartLookupResponse.d.ts +1 -1
- package/dist/esm/openapi/models/GetSmartLookupResponse.js +1 -1
- package/dist/esm/openapi/models/Model36EnumsBackgroundCheck.d.ts +1 -1
- package/dist/esm/openapi/models/Model36EnumsBackgroundCheck.js +1 -1
- package/dist/esm/openapi/models/PostcodeResponse.d.ts +1 -1
- package/dist/esm/openapi/models/PostcodeResponse.js +1 -1
- package/dist/esm/openapi/models/Reason.d.ts +1 -1
- package/dist/esm/openapi/models/Reason.js +1 -1
- package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts +1 -1
- package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.js +1 -1
- package/dist/esm/openapi/models/Report.d.ts +1 -1
- package/dist/esm/openapi/models/Report.js +1 -1
- package/dist/esm/openapi/models/RequestVerificationInput.d.ts +97 -0
- package/dist/esm/openapi/models/RequestVerificationInput.d.ts.map +1 -0
- package/dist/esm/openapi/models/RequestVerificationInput.js +62 -0
- package/dist/esm/openapi/models/RequestVerificationInput.js.map +1 -0
- package/dist/esm/openapi/models/RequestVerificationResponse.d.ts +1 -1
- package/dist/esm/openapi/models/RequestVerificationResponse.js +1 -1
- package/dist/esm/openapi/models/SmartLookupInput.d.ts +1 -1
- package/dist/esm/openapi/models/SmartLookupInput.js +1 -1
- package/dist/esm/openapi/models/Status.d.ts +1 -1
- package/dist/esm/openapi/models/Status.js +1 -1
- package/dist/esm/openapi/models/Verification.d.ts +1 -1
- package/dist/esm/openapi/models/Verification.js +1 -1
- package/dist/esm/openapi/models/index.d.ts +2 -2
- package/dist/esm/openapi/models/index.d.ts.map +1 -1
- package/dist/esm/openapi/models/index.js +2 -2
- package/dist/esm/openapi/models/index.js.map +1 -1
- package/dist/esm/openapi/runtime.d.ts +1 -1
- package/dist/esm/openapi/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vouchsafe API docs
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: help@vouchsafe.id
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequestVerificationInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestVerificationInput {
|
|
18
|
+
/**
|
|
19
|
+
* The user's email address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestVerificationInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's first name, if you have it
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequestVerificationInput
|
|
28
|
+
*/
|
|
29
|
+
first_name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The user's last name, if you have it
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RequestVerificationInput
|
|
34
|
+
*/
|
|
35
|
+
last_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's street address, if you have it
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RequestVerificationInput
|
|
40
|
+
*/
|
|
41
|
+
street_address?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The user's postcode, if you have it
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RequestVerificationInput
|
|
46
|
+
*/
|
|
47
|
+
postcode?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The user's date of birth, if you have it
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RequestVerificationInput
|
|
52
|
+
*/
|
|
53
|
+
date_of_birth?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Which verification flow to use.
|
|
56
|
+
*
|
|
57
|
+
* Get the flow ID from the URL of the builder page.
|
|
58
|
+
*
|
|
59
|
+
* For example: `/admin/teams/abc123/builder/[workflow_id]`
|
|
60
|
+
*
|
|
61
|
+
* If not provided, the last published flow is used instead.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof RequestVerificationInput
|
|
64
|
+
*/
|
|
65
|
+
workflow_id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* An identifier from your own systems, to avoid needing to store Vouchsafe's own ID
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof RequestVerificationInput
|
|
70
|
+
*/
|
|
71
|
+
external_id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* A generic or unique URL to send the user back to upon success.
|
|
74
|
+
*
|
|
75
|
+
* If not provided, the verification flow default will be used.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof RequestVerificationInput
|
|
78
|
+
*/
|
|
79
|
+
redirect_url?: string;
|
|
80
|
+
/**
|
|
81
|
+
* When will the verification session expire and the user cease getting reminders?
|
|
82
|
+
*
|
|
83
|
+
* If not provided, the verification flow default will be used.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof RequestVerificationInput
|
|
86
|
+
*/
|
|
87
|
+
expires_at?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the RequestVerificationInput interface.
|
|
91
|
+
*/
|
|
92
|
+
export declare function instanceOfRequestVerificationInput(value: object): value is RequestVerificationInput;
|
|
93
|
+
export declare function RequestVerificationInputFromJSON(json: any): RequestVerificationInput;
|
|
94
|
+
export declare function RequestVerificationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestVerificationInput;
|
|
95
|
+
export declare function RequestVerificationInputToJSON(json: any): RequestVerificationInput;
|
|
96
|
+
export declare function RequestVerificationInputToJSONTyped(value?: RequestVerificationInput | null, ignoreDiscriminator?: boolean): any;
|
|
97
|
+
//# sourceMappingURL=RequestVerificationInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestVerificationInput.d.ts","sourceRoot":"","sources":["../../../../src/openapi/models/RequestVerificationInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAiBvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBtI"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vouchsafe API docs
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: help@vouchsafe.id
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRequestVerificationInput = instanceOfRequestVerificationInput;
|
|
17
|
+
exports.RequestVerificationInputFromJSON = RequestVerificationInputFromJSON;
|
|
18
|
+
exports.RequestVerificationInputFromJSONTyped = RequestVerificationInputFromJSONTyped;
|
|
19
|
+
exports.RequestVerificationInputToJSON = RequestVerificationInputToJSON;
|
|
20
|
+
exports.RequestVerificationInputToJSONTyped = RequestVerificationInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RequestVerificationInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRequestVerificationInput(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RequestVerificationInputFromJSON(json) {
|
|
30
|
+
return RequestVerificationInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RequestVerificationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'first_name': json['first_name'] == null ? undefined : json['first_name'],
|
|
39
|
+
'last_name': json['last_name'] == null ? undefined : json['last_name'],
|
|
40
|
+
'street_address': json['street_address'] == null ? undefined : json['street_address'],
|
|
41
|
+
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
42
|
+
'date_of_birth': json['date_of_birth'] == null ? undefined : json['date_of_birth'],
|
|
43
|
+
'workflow_id': json['workflow_id'] == null ? undefined : json['workflow_id'],
|
|
44
|
+
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
45
|
+
'redirect_url': json['redirect_url'] == null ? undefined : json['redirect_url'],
|
|
46
|
+
'expires_at': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function RequestVerificationInputToJSON(json) {
|
|
50
|
+
return RequestVerificationInputToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function RequestVerificationInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'email': value['email'],
|
|
58
|
+
'first_name': value['first_name'],
|
|
59
|
+
'last_name': value['last_name'],
|
|
60
|
+
'street_address': value['street_address'],
|
|
61
|
+
'postcode': value['postcode'],
|
|
62
|
+
'date_of_birth': value['date_of_birth'],
|
|
63
|
+
'workflow_id': value['workflow_id'],
|
|
64
|
+
'external_id': value['external_id'],
|
|
65
|
+
'redirect_url': value['redirect_url'],
|
|
66
|
+
'expires_at': value['expires_at'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=RequestVerificationInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestVerificationInput.js","sourceRoot":"","sources":["../../../../src/openapi/models/RequestVerificationInput.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './ApiErrorResponse';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './AuthenticateInput';
|
|
3
3
|
export * from './AuthenticateResponse';
|
|
4
4
|
export * from './CheckResult';
|
|
5
5
|
export * from './CheckState';
|
|
@@ -9,7 +9,7 @@ export * from './PostcodeResponse';
|
|
|
9
9
|
export * from './Reason';
|
|
10
10
|
export * from './RecordAddressVerificationChecksCheckResult';
|
|
11
11
|
export * from './Report';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './RequestVerificationInput';
|
|
13
13
|
export * from './RequestVerificationResponse';
|
|
14
14
|
export * from './SmartLookupInput';
|
|
15
15
|
export * from './Status';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/openapi/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/openapi/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,8CAA8C,CAAC;AAC7D,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./ApiErrorResponse"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./AuthenticateInput"), exports);
|
|
21
21
|
__exportStar(require("./AuthenticateResponse"), exports);
|
|
22
22
|
__exportStar(require("./CheckResult"), exports);
|
|
23
23
|
__exportStar(require("./CheckState"), exports);
|
|
@@ -27,7 +27,7 @@ __exportStar(require("./PostcodeResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./Reason"), exports);
|
|
28
28
|
__exportStar(require("./RecordAddressVerificationChecksCheckResult"), exports);
|
|
29
29
|
__exportStar(require("./Report"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./RequestVerificationInput"), exports);
|
|
31
31
|
__exportStar(require("./RequestVerificationResponse"), exports);
|
|
32
32
|
__exportStar(require("./SmartLookupInput"), exports);
|
|
33
33
|
__exportStar(require("./Status"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/openapi/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,qDAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/openapi/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,qDAAmC;AACnC,sDAAoC;AACpC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,2DAAyC;AACzC,gEAA8C;AAC9C,qDAAmC;AACnC,2CAAyB;AACzB,+EAA6D;AAC7D,2CAAyB;AACzB,6DAA2C;AAC3C,gEAA8C;AAC9C,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vouchsafe API docs
|
|
6
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
6
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
9
9
|
* Contact: help@vouchsafe.id
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestVerificationInput, SmartLookupInput, Status } from "./openapi/models";
|
|
2
2
|
interface VouchsafeClientOptions {
|
|
3
3
|
client_id: string;
|
|
4
4
|
client_secret: string;
|
|
5
|
-
sandbox?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare class VouchsafeApiError extends Error {
|
|
8
7
|
statusCode: number;
|
|
@@ -36,7 +35,7 @@ export declare class VouchsafeClient {
|
|
|
36
35
|
listVerifications({ status }?: {
|
|
37
36
|
status?: Status;
|
|
38
37
|
}): Promise<import("./openapi").Verification[]>;
|
|
39
|
-
requestVerification(input:
|
|
38
|
+
requestVerification(input: RequestVerificationInput): Promise<import("./openapi").RequestVerificationResponse>;
|
|
40
39
|
performSmartLookup(input: SmartLookupInput): Promise<import("./openapi").GetSmartLookupResponse>;
|
|
41
40
|
searchPostcode({ postcode }: {
|
|
42
41
|
postcode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchsafeClient.d.ts","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"VouchsafeClient.d.ts","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,EACP,MAAM,kBAAkB,CAAA;AAGzB,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,iBAAkB,SAAQ,KAAK;IAEjC,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,OAAO;gBADrB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,OAAO,EAC5B,OAAO,CAAC,EAAE,MAAM;CAKnB;AAED,qBAAa,eAAe;IASd,OAAO,CAAC,OAAO;IAR3B,OAAO,CAAC,KAAK,CAAC,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAC,CAAM;IAC1B,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,iBAAiB,CAAmB;IAC5C,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,eAAe,CAAiB;gBAEpB,OAAO,EAAE,sBAAsB;IAanD;;;;OAIG;IAGH,OAAO,CAAC,cAAc,CAyBrB;IAGD,OAAO,CAAC,iBAAiB,CAqBxB;IAED;;;;OAIG;IAEG,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IAMtC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;IAMtD,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;IAQnD,kBAAkB,CAAC,KAAK,EAAE,gBAAgB;IAQ1C,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;CAOxD"}
|
|
@@ -32,19 +32,26 @@ export class VouchsafeClient {
|
|
|
32
32
|
client_secret: this.options.client_secret,
|
|
33
33
|
};
|
|
34
34
|
const response = await this.authenticationApi.authenticate({
|
|
35
|
-
|
|
35
|
+
authenticateInput: authBody,
|
|
36
36
|
});
|
|
37
37
|
this.token = response.access_token;
|
|
38
38
|
this.tokenExpiry = new Date(response.expires_at);
|
|
39
39
|
return this.token;
|
|
40
40
|
};
|
|
41
|
-
// Wrap raw fetch response errors and provide something cleaner
|
|
42
|
-
this.withErrorHandling = async (
|
|
41
|
+
// Wrap raw fetch response errors and provide something cleaner, and re-auth on 401 errors
|
|
42
|
+
this.withErrorHandling = async (fn) => {
|
|
43
43
|
try {
|
|
44
|
-
return await
|
|
44
|
+
return await fn();
|
|
45
45
|
}
|
|
46
46
|
catch (err) {
|
|
47
47
|
if (err.name === "ResponseError" && err.response instanceof Response) {
|
|
48
|
+
if (err.response.status === 401) {
|
|
49
|
+
// Force a token refresh and retry once
|
|
50
|
+
this.token = undefined;
|
|
51
|
+
this.tokenExpiry = undefined;
|
|
52
|
+
await this.getAccessToken();
|
|
53
|
+
return fn();
|
|
54
|
+
}
|
|
48
55
|
const body = await err.response.json().catch(() => ({}));
|
|
49
56
|
const message = body?.message ?? err.response.statusText;
|
|
50
57
|
throw new VouchsafeApiError(err.response.status, body, message);
|
|
@@ -52,9 +59,7 @@ export class VouchsafeClient {
|
|
|
52
59
|
throw err;
|
|
53
60
|
}
|
|
54
61
|
};
|
|
55
|
-
const basePath =
|
|
56
|
-
? "https://app.vouchsafe.id/api/v1/sandbox"
|
|
57
|
-
: "https://app.vouchsafe.id/api/v1";
|
|
62
|
+
const basePath = "https://app.vouchsafe.id/api/v1";
|
|
58
63
|
this.config = new Configuration({
|
|
59
64
|
basePath,
|
|
60
65
|
accessToken: this.getAccessToken,
|
|
@@ -69,23 +74,23 @@ export class VouchsafeClient {
|
|
|
69
74
|
* One for every endpoint we expose
|
|
70
75
|
*/
|
|
71
76
|
async getVerification({ id }) {
|
|
72
|
-
return this.withErrorHandling(this.verificationsApi.getVerification({ id }));
|
|
77
|
+
return this.withErrorHandling(() => this.verificationsApi.getVerification({ id }));
|
|
73
78
|
}
|
|
74
79
|
async listVerifications({ status } = {}) {
|
|
75
|
-
return this.withErrorHandling(this.verificationsApi.listVerifications({ status }));
|
|
80
|
+
return this.withErrorHandling(() => this.verificationsApi.listVerifications({ status }));
|
|
76
81
|
}
|
|
77
82
|
async requestVerification(input) {
|
|
78
|
-
return this.withErrorHandling(this.verificationsApi.requestVerification({
|
|
79
|
-
|
|
83
|
+
return this.withErrorHandling(() => this.verificationsApi.requestVerification({
|
|
84
|
+
requestVerificationInput: input,
|
|
80
85
|
}));
|
|
81
86
|
}
|
|
82
87
|
async performSmartLookup(input) {
|
|
83
|
-
return this.withErrorHandling(this.smartLookupsApi.performSmartLookup({
|
|
88
|
+
return this.withErrorHandling(() => this.smartLookupsApi.performSmartLookup({
|
|
84
89
|
smartLookupInput: input,
|
|
85
90
|
}));
|
|
86
91
|
}
|
|
87
92
|
async searchPostcode({ postcode }) {
|
|
88
|
-
return this.withErrorHandling(this.smartLookupsApi.searchPostcode({ postcode }));
|
|
93
|
+
return this.withErrorHandling(() => this.smartLookupsApi.searchPostcode({ postcode }));
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
96
|
//# sourceMappingURL=VouchsafeClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchsafeClient.js","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"VouchsafeClient.js","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vouchsafe API docs
|
|
3
|
-
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics.
|
|
3
|
+
* Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 0.1.0
|
|
6
6
|
* Contact: help@vouchsafe.id
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { AuthenticateInput, AuthenticateResponse } from '../models/index';
|
|
14
14
|
export interface AuthenticateRequest {
|
|
15
|
-
|
|
15
|
+
authenticateInput: AuthenticateInput;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
|
-
* Get the access token, needed for all other API requests. You will need your client ID and secret from the **API Integration** tab of the Vouchsafe dashboard. Each access token is valid for 24 hours, after which you will need to re-authenticate. Once you have an access token, pass it in future requests as a [Bearer token](https://workos.com/blog/understanding-bearer-tokens) in an `Authorization` header. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
|
|
22
|
+
* Get the access token, needed for all other API requests. You will need your client ID and secret from the **API Integration** tab of the Vouchsafe dashboard. Each access token is valid for 24 hours, after which you will need to re-authenticate. Once you have an access token, pass it in future requests as a [Bearer token](https://workos.com/blog/understanding-bearer-tokens) in an `Authorization` header. Use an [SDK or library](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) to simplify handling tokens > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
|
|
23
23
|
*/
|
|
24
24
|
authenticateRaw(requestParameters: AuthenticateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticateResponse>>;
|
|
25
25
|
/**
|
|
26
|
-
* Get the access token, needed for all other API requests. You will need your client ID and secret from the **API Integration** tab of the Vouchsafe dashboard. Each access token is valid for 24 hours, after which you will need to re-authenticate. Once you have an access token, pass it in future requests as a [Bearer token](https://workos.com/blog/understanding-bearer-tokens) in an `Authorization` header. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
|
|
26
|
+
* Get the access token, needed for all other API requests. You will need your client ID and secret from the **API Integration** tab of the Vouchsafe dashboard. Each access token is valid for 24 hours, after which you will need to re-authenticate. Once you have an access token, pass it in future requests as a [Bearer token](https://workos.com/blog/understanding-bearer-tokens) in an `Authorization` header. Use an [SDK or library](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) to simplify handling tokens > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
|
|
27
27
|
*/
|
|
28
28
|
authenticate(requestParameters: AuthenticateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticateResponse>;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationApi.d.ts","sourceRoot":"","sources":["../../../../src/openapi/apis/AuthenticationApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,
|
|
1
|
+
{"version":3,"file":"AuthenticationApi.d.ts","sourceRoot":"","sources":["../../../../src/openapi/apis/AuthenticationApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;OAEG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA4B7K;;OAEG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKxJ"}
|