@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
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ Node 18 or better.
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
npm install vouchsafe
|
|
12
|
+
npm install @vouchsafe/node
|
|
13
13
|
# or
|
|
14
|
-
yarn add
|
|
14
|
+
yarn add @vouchsafe/node
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
@@ -19,7 +19,7 @@ yarn add vouchsafe
|
|
|
19
19
|
The SDK needs a client ID and secret, which is available in the [Vouchsafe dashboard](https://app.vouchsafe.id). Replace the values below:
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import { VouchsafeClient } from "vouchsafe
|
|
22
|
+
import { VouchsafeClient } from "@vouchsafe/node"
|
|
23
23
|
|
|
24
24
|
const client = new VouchsafeClient({
|
|
25
25
|
client_id: "YOUR_CLIENT_ID",
|
|
@@ -53,12 +53,26 @@ const res = await client.getVerification({
|
|
|
53
53
|
|
|
54
54
|
### Sandbox mode
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
2. Use a sandbox client secret.
|
|
56
|
+
Use a sandbox rather than a live client secret to activate [sandbox mode](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work) on methods that support it.
|
|
58
57
|
|
|
59
|
-
###
|
|
58
|
+
### Re-authentication
|
|
60
59
|
|
|
61
|
-
The client will automatically
|
|
60
|
+
The client will automatically cache your access token and insert it into every request, and fetch a new one upon expiry.
|
|
61
|
+
|
|
62
|
+
If a request fails with a 401 Unauthorised error, it will fetch a new access token and retry once before throwing an error.
|
|
63
|
+
|
|
64
|
+
#### Multi-instance use
|
|
65
|
+
|
|
66
|
+
For best performance, you should instantiate the client once and share it across your app as a [singleton](https://www.patterns.dev/vanilla/singleton-pattern/).
|
|
67
|
+
|
|
68
|
+
Each time a new access token is requested using the same client credentials, it invalidates the old one.
|
|
69
|
+
|
|
70
|
+
Instantiating multiple clients can lead to:
|
|
71
|
+
|
|
72
|
+
- over-writing each other's tokens
|
|
73
|
+
- unnecessary retries and re-authentications.
|
|
74
|
+
|
|
75
|
+
For high-concurrency use cases, you should store the access token in a shared key-value store instead.
|
|
62
76
|
|
|
63
77
|
### Handling errors
|
|
64
78
|
|
|
@@ -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"}
|
|
@@ -36,19 +36,26 @@ class VouchsafeClient {
|
|
|
36
36
|
client_secret: this.options.client_secret,
|
|
37
37
|
};
|
|
38
38
|
const response = await this.authenticationApi.authenticate({
|
|
39
|
-
|
|
39
|
+
authenticateInput: authBody,
|
|
40
40
|
});
|
|
41
41
|
this.token = response.access_token;
|
|
42
42
|
this.tokenExpiry = new Date(response.expires_at);
|
|
43
43
|
return this.token;
|
|
44
44
|
};
|
|
45
|
-
// Wrap raw fetch response errors and provide something cleaner
|
|
46
|
-
this.withErrorHandling = async (
|
|
45
|
+
// Wrap raw fetch response errors and provide something cleaner, and re-auth on 401 errors
|
|
46
|
+
this.withErrorHandling = async (fn) => {
|
|
47
47
|
try {
|
|
48
|
-
return await
|
|
48
|
+
return await fn();
|
|
49
49
|
}
|
|
50
50
|
catch (err) {
|
|
51
51
|
if (err.name === "ResponseError" && err.response instanceof Response) {
|
|
52
|
+
if (err.response.status === 401) {
|
|
53
|
+
// Force a token refresh and retry once
|
|
54
|
+
this.token = undefined;
|
|
55
|
+
this.tokenExpiry = undefined;
|
|
56
|
+
await this.getAccessToken();
|
|
57
|
+
return fn();
|
|
58
|
+
}
|
|
52
59
|
const body = await err.response.json().catch(() => ({}));
|
|
53
60
|
const message = body?.message ?? err.response.statusText;
|
|
54
61
|
throw new VouchsafeApiError(err.response.status, body, message);
|
|
@@ -56,9 +63,7 @@ class VouchsafeClient {
|
|
|
56
63
|
throw err;
|
|
57
64
|
}
|
|
58
65
|
};
|
|
59
|
-
const basePath =
|
|
60
|
-
? "https://app.vouchsafe.id/api/v1/sandbox"
|
|
61
|
-
: "https://app.vouchsafe.id/api/v1";
|
|
66
|
+
const basePath = "https://app.vouchsafe.id/api/v1";
|
|
62
67
|
this.config = new openapi_1.Configuration({
|
|
63
68
|
basePath,
|
|
64
69
|
accessToken: this.getAccessToken,
|
|
@@ -73,23 +78,23 @@ class VouchsafeClient {
|
|
|
73
78
|
* One for every endpoint we expose
|
|
74
79
|
*/
|
|
75
80
|
async getVerification({ id }) {
|
|
76
|
-
return this.withErrorHandling(this.verificationsApi.getVerification({ id }));
|
|
81
|
+
return this.withErrorHandling(() => this.verificationsApi.getVerification({ id }));
|
|
77
82
|
}
|
|
78
83
|
async listVerifications({ status } = {}) {
|
|
79
|
-
return this.withErrorHandling(this.verificationsApi.listVerifications({ status }));
|
|
84
|
+
return this.withErrorHandling(() => this.verificationsApi.listVerifications({ status }));
|
|
80
85
|
}
|
|
81
86
|
async requestVerification(input) {
|
|
82
|
-
return this.withErrorHandling(this.verificationsApi.requestVerification({
|
|
83
|
-
|
|
87
|
+
return this.withErrorHandling(() => this.verificationsApi.requestVerification({
|
|
88
|
+
requestVerificationInput: input,
|
|
84
89
|
}));
|
|
85
90
|
}
|
|
86
91
|
async performSmartLookup(input) {
|
|
87
|
-
return this.withErrorHandling(this.smartLookupsApi.performSmartLookup({
|
|
92
|
+
return this.withErrorHandling(() => this.smartLookupsApi.performSmartLookup({
|
|
88
93
|
smartLookupInput: input,
|
|
89
94
|
}));
|
|
90
95
|
}
|
|
91
96
|
async searchPostcode({ postcode }) {
|
|
92
|
-
return this.withErrorHandling(this.smartLookupsApi.searchPostcode({ postcode }));
|
|
97
|
+
return this.withErrorHandling(() => this.smartLookupsApi.searchPostcode({ postcode }));
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
exports.VouchsafeClient = VouchsafeClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VouchsafeClient.js","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,wEAAoE;AACpE,sEAAkE;AAClE,oEAAgE;
|
|
1
|
+
{"version":3,"file":"VouchsafeClient.js","sourceRoot":"","sources":["../../src/VouchsafeClient.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,wEAAoE;AACpE,sEAAkE;AAClE,oEAAgE;AAchE,MAAa,iBAAkB,SAAQ,KAAK;IAC1C,YACS,UAAkB,EAClB,YAAqB,EAC5B,OAAgB;QAEhB,KAAK,CAAC,OAAO,CAAC,CAAA;QAJP,eAAU,GAAV,UAAU,CAAQ;QAClB,iBAAY,GAAZ,YAAY,CAAS;QAI5B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAA;IACjC,CAAC;CACF;AATD,8CASC;AAED,MAAa,eAAe;IAS1B,YAAoB,OAA+B;QAA/B,YAAO,GAAP,OAAO,CAAwB;QAanD;;;;WAIG;QAEH,sDAAsD;QAC9C,mBAAc,GAAG,KAAK,IAAqB,EAAE;YACnD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;YACtB,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,YAAY;YAE3C,IACE,IAAI,CAAC,KAAK;gBACV,IAAI,CAAC,WAAW;gBAChB,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,QAAQ,EACrD,CAAC;gBACD,OAAO,IAAI,CAAC,KAAK,CAAA;YACnB,CAAC;YAED,MAAM,QAAQ,GAAsB;gBAClC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;gBACjC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;aAC1C,CAAA;YAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC;gBACzD,iBAAiB,EAAE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AAC,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,CAClD,CAAA;IACH,CAAC;CAGF;AAzHD,0CAyHC"}
|
|
@@ -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"}
|
|
@@ -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
|
|
@@ -54,11 +54,11 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class AuthenticationApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* 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).
|
|
57
|
+
* 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).
|
|
58
58
|
*/
|
|
59
59
|
async authenticateRaw(requestParameters, initOverrides) {
|
|
60
|
-
if (requestParameters['
|
|
61
|
-
throw new runtime.RequiredError('
|
|
60
|
+
if (requestParameters['authenticateInput'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('authenticateInput', 'Required parameter "authenticateInput" was null or undefined when calling authenticate().');
|
|
62
62
|
}
|
|
63
63
|
const queryParameters = {};
|
|
64
64
|
const headerParameters = {};
|
|
@@ -69,12 +69,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
69
69
|
method: 'POST',
|
|
70
70
|
headers: headerParameters,
|
|
71
71
|
query: queryParameters,
|
|
72
|
-
body: (0, index_1.
|
|
72
|
+
body: (0, index_1.AuthenticateInputToJSON)(requestParameters['authenticateInput']),
|
|
73
73
|
}, initOverrides);
|
|
74
74
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AuthenticateResponseFromJSON)(jsonValue));
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* 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).
|
|
77
|
+
* 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).
|
|
78
78
|
*/
|
|
79
79
|
async authenticate(requestParameters, initOverrides) {
|
|
80
80
|
const response = await this.authenticateRaw(requestParameters, initOverrides);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationApi.js","sourceRoot":"","sources":["../../../../src/openapi/apis/AuthenticationApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB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E,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAzCD,8CAyCC"}
|
|
@@ -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
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { RequestVerificationInput, RequestVerificationResponse, Status, Verification } from '../models/index';
|
|
14
14
|
export interface GetVerificationRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -18,7 +18,7 @@ export interface ListVerificationsRequest {
|
|
|
18
18
|
status?: Status;
|
|
19
19
|
}
|
|
20
20
|
export interface RequestVerificationRequest {
|
|
21
|
-
|
|
21
|
+
requestVerificationInput: RequestVerificationInput;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationsApi.d.ts","sourceRoot":"","sources":["../../../../src/openapi/apis/VerificationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,
|
|
1
|
+
{"version":3,"file":"VerificationsApi.d.ts","sourceRoot":"","sources":["../../../../src/openapi/apis/VerificationsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,wBAAwB,EACxB,2BAA2B,EAC3B,MAAM,EACN,YAAY,EACb,MAAM,iBAAiB,CAAC;AAczB,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;CACtD;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IAEjD;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAkC3K;;OAEG;IACG,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IAKnJ;;OAEG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IA8BtL;;OAEG;IACG,iBAAiB,CAAC,iBAAiB,GAAE,wBAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAKnK;;OAEG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;IAoClM;;OAEG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAK7K"}
|
|
@@ -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
|
|
@@ -122,8 +122,8 @@ class VerificationsApi extends runtime.BaseAPI {
|
|
|
122
122
|
* Request a new verification. Provide the user\'s email and the ID of one of your verification flows to send them through. Vouchsafe will respond with: - a URL to redirect to the user to - a unique ID for you to track the verification If you have enabled \"On request creation\" emails in your flow, this also sends them an email. You can optionally provide more information/claims about the user, like their name, date of birth and address. Any that are provided will be checked against evidence the user gives, and mismatches will be flagged. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
|
|
123
123
|
*/
|
|
124
124
|
async requestVerificationRaw(requestParameters, initOverrides) {
|
|
125
|
-
if (requestParameters['
|
|
126
|
-
throw new runtime.RequiredError('
|
|
125
|
+
if (requestParameters['requestVerificationInput'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('requestVerificationInput', 'Required parameter "requestVerificationInput" was null or undefined when calling requestVerification().');
|
|
127
127
|
}
|
|
128
128
|
const queryParameters = {};
|
|
129
129
|
const headerParameters = {};
|
|
@@ -141,7 +141,7 @@ class VerificationsApi extends runtime.BaseAPI {
|
|
|
141
141
|
method: 'POST',
|
|
142
142
|
headers: headerParameters,
|
|
143
143
|
query: queryParameters,
|
|
144
|
-
body: (0, index_1.
|
|
144
|
+
body: (0, index_1.RequestVerificationInputToJSON)(requestParameters['requestVerificationInput']),
|
|
145
145
|
}, initOverrides);
|
|
146
146
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RequestVerificationResponseFromJSON)(jsonValue));
|
|
147
147
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationsApi.js","sourceRoot":"","sources":["../../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CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QAED,IAAI,OAAO,GAAG,gBAAgB,CAAC;QAE/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,sCAA8B,EAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;SACtF,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,2CAAmC,EAAC,SAAS,CAAC,CAAC,CAAC;IAChH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA6C,EAAE,aAA0D;QAC/H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAvID,4CAuIC"}
|
|
@@ -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,39 @@
|
|
|
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 AuthenticateInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticateInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticateInput
|
|
22
|
+
*/
|
|
23
|
+
client_id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticateInput
|
|
28
|
+
*/
|
|
29
|
+
client_secret: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AuthenticateInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAuthenticateInput(value: object): value is AuthenticateInput;
|
|
35
|
+
export declare function AuthenticateInputFromJSON(json: any): AuthenticateInput;
|
|
36
|
+
export declare function AuthenticateInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateInput;
|
|
37
|
+
export declare function AuthenticateInputToJSON(json: any): AuthenticateInput;
|
|
38
|
+
export declare function AuthenticateInputToJSONTyped(value?: AuthenticateInput | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=AuthenticateInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateInput.d.ts","sourceRoot":"","sources":["../../../../src/openapi/models/AuthenticateInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAuthenticateInput = instanceOfAuthenticateInput;
|
|
17
|
+
exports.AuthenticateInputFromJSON = AuthenticateInputFromJSON;
|
|
18
|
+
exports.AuthenticateInputFromJSONTyped = AuthenticateInputFromJSONTyped;
|
|
19
|
+
exports.AuthenticateInputToJSON = AuthenticateInputToJSON;
|
|
20
|
+
exports.AuthenticateInputToJSONTyped = AuthenticateInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuthenticateInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuthenticateInput(value) {
|
|
25
|
+
if (!('client_id' in value) || value['client_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('client_secret' in value) || value['client_secret'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AuthenticateInputFromJSON(json) {
|
|
32
|
+
return AuthenticateInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AuthenticateInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'client_id': json['client_id'],
|
|
40
|
+
'client_secret': json['client_secret'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AuthenticateInputToJSON(json) {
|
|
44
|
+
return AuthenticateInputToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuthenticateInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'client_id': value['client_id'],
|
|
52
|
+
'client_secret': value['client_secret'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=AuthenticateInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticateInput.js","sourceRoot":"","sources":["../../../../src/openapi/models/AuthenticateInput.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kEAIC;AAED,8DAEC;AAED,wEASC;AAED,0DAEC;AAED,oEAUC;AAtCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;KACzC,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;KAC1C,CAAC;AACN,CAAC"}
|
|
@@ -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,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
|