@vouchsafe/node 0.1.85 → 0.1.86
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
CHANGED
|
@@ -187,14 +187,7 @@ If a request fails with a 401 Unauthorised error, it will fetch a new access tok
|
|
|
187
187
|
|
|
188
188
|
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/).
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
Instantiating multiple clients can lead to:
|
|
193
|
-
|
|
194
|
-
- over-writing each other's tokens
|
|
195
|
-
- unnecessary retries and re-authentications.
|
|
196
|
-
|
|
197
|
-
For high-concurrency use cases, you should store the access token in a shared key-value store instead.
|
|
190
|
+
If you run multiple instances of your app, each instance can authenticate on its own and cache its own access token.
|
|
198
191
|
|
|
199
192
|
### Handling errors
|
|
200
193
|
|
|
@@ -43,15 +43,23 @@ When the credit bureau enrichment is turned on, a structured `address` is requir
|
|
|
43
43
|
|
|
44
44
|
### Sandbox
|
|
45
45
|
|
|
46
|
-
In sandbox mode, `
|
|
46
|
+
In sandbox mode, `email` picks the recommendation you get back.
|
|
47
47
|
|
|
48
|
-
| `
|
|
48
|
+
| `email` | Recommendation |
|
|
49
49
|
|---|---|
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
|
|
|
50
|
+
| contains `+reject` | `REJECT` |
|
|
51
|
+
| contains `+review` | `REVIEW` |
|
|
52
|
+
| anything else | `CLEAR` |
|
|
53
53
|
|
|
54
|
-
The response
|
|
54
|
+
The response echoes your input and includes only the enrichments you requested.
|
|
55
|
+
|
|
56
|
+
Requested enrichments are shaped to match the outcome:
|
|
57
|
+
|
|
58
|
+
- CLEAR: all pass
|
|
59
|
+
- REVIEW: only the last requested enrichment fails
|
|
60
|
+
- REJECT: all fail
|
|
61
|
+
|
|
62
|
+
To return a record you can open in the sandbox dashboard, use `dwebb@email.com` (`CLEAR`), `jdoe@email.com` (`REVIEW`), or `eroberts@email.com` (`REJECT`).
|
|
55
63
|
*/
|
|
56
64
|
export type checkRiskResponse201 = {
|
|
57
65
|
data: GetRiskResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/openapi-v2/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/openapi-v2/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,oBAAoB,CAAC,GAAG;IAC9D,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,oBAAoB,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC,GAAG;IACxJ,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,wBAAwB,GAAG,sBAAsB,CAAC,CAAA;AAEnF,eAAO,MAAM,eAAe,cAM3B,CAAA;AAED,eAAO,MAAM,SAAS,GAAU,eAAe,aAAa,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,iBAAiB,CAoC9G,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/openapi-v2/endpoints.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/openapi-v2/endpoints.ts"],"names":[],"mappings":";;;AA4GO,MAAM,eAAe,GAAG,GAAG,EAAE;IAKlC,OAAO,sCAAsC,CAAA;AAC/C,CAAC,CAAA;AANY,QAAA,eAAe,mBAM3B;AAEM,MAAM,SAAS,GAAG,KAAK,EAAE,aAA4B,EAAE,OAAqB,EAA8B,EAAE;IAC/G,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACxD,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACtD,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9D,IAAG,aAAa,CAAC,WAAW,KAAK,SAAS,EAAE,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CY,QAAA,SAAS,aAoCrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vouchsafe/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.86",
|
|
4
4
|
"description": "Official TypeScript and Node.js library for the Vouchsafe identity platform. Use it for easy KYC checks, identity verification, remote right-to-work and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vouchsafe",
|