@vouchsafe/node 0.1.1 → 0.1.3

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.
Files changed (257) hide show
  1. package/README.md +19 -5
  2. package/dist/{cjs/VouchsafeClient.d.ts → VouchsafeClient.d.ts} +2 -3
  3. package/dist/VouchsafeClient.d.ts.map +1 -0
  4. package/dist/{cjs/VouchsafeClient.js → VouchsafeClient.js} +18 -13
  5. package/dist/VouchsafeClient.js.map +1 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/{cjs/openapi → openapi}/apis/AuthenticationApi.d.ts +5 -5
  9. package/dist/openapi/apis/AuthenticationApi.d.ts.map +1 -0
  10. package/dist/{cjs/openapi → openapi}/apis/AuthenticationApi.js +6 -6
  11. package/dist/openapi/apis/AuthenticationApi.js.map +1 -0
  12. package/dist/{esm/openapi → openapi}/apis/SmartLookupsApi.d.ts +1 -1
  13. package/dist/openapi/apis/SmartLookupsApi.d.ts.map +1 -0
  14. package/dist/{cjs/openapi → openapi}/apis/SmartLookupsApi.js +1 -1
  15. package/dist/openapi/apis/SmartLookupsApi.js.map +1 -0
  16. package/dist/{esm/openapi → openapi}/apis/VerificationsApi.d.ts +3 -3
  17. package/dist/openapi/apis/VerificationsApi.d.ts.map +1 -0
  18. package/dist/{cjs/openapi → openapi}/apis/VerificationsApi.js +4 -4
  19. package/dist/openapi/apis/VerificationsApi.js.map +1 -0
  20. package/dist/openapi/apis/index.d.ts.map +1 -0
  21. package/dist/openapi/apis/index.js.map +1 -0
  22. package/dist/openapi/index.d.ts.map +1 -0
  23. package/dist/openapi/index.js.map +1 -0
  24. package/dist/{esm/openapi → openapi}/models/ApiErrorResponse.d.ts +1 -1
  25. package/dist/openapi/models/ApiErrorResponse.d.ts.map +1 -0
  26. package/dist/{cjs/openapi → openapi}/models/ApiErrorResponse.js +1 -1
  27. package/dist/openapi/models/ApiErrorResponse.js.map +1 -0
  28. package/dist/openapi/models/AuthenticateInput.d.ts +39 -0
  29. package/dist/openapi/models/AuthenticateInput.d.ts.map +1 -0
  30. package/dist/{esm/openapi/models/AuthenticateRequestBody.js → openapi/models/AuthenticateInput.js} +17 -10
  31. package/dist/openapi/models/AuthenticateInput.js.map +1 -0
  32. package/dist/openapi/models/AuthenticateRequestBody.d.ts.map +1 -0
  33. package/dist/openapi/models/AuthenticateRequestBody.js.map +1 -0
  34. package/dist/{cjs/openapi → openapi}/models/AuthenticateResponse.d.ts +1 -1
  35. package/dist/openapi/models/AuthenticateResponse.d.ts.map +1 -0
  36. package/dist/{cjs/openapi → openapi}/models/AuthenticateResponse.js +1 -1
  37. package/dist/openapi/models/AuthenticateResponse.js.map +1 -0
  38. package/dist/{cjs/openapi → openapi}/models/CheckResult.d.ts +1 -1
  39. package/dist/openapi/models/CheckResult.d.ts.map +1 -0
  40. package/dist/{cjs/openapi → openapi}/models/CheckResult.js +1 -1
  41. package/dist/openapi/models/CheckResult.js.map +1 -0
  42. package/dist/{esm/openapi → openapi}/models/CheckState.d.ts +1 -1
  43. package/dist/openapi/models/CheckState.d.ts.map +1 -0
  44. package/dist/{cjs/openapi → openapi}/models/CheckState.js +1 -1
  45. package/dist/openapi/models/CheckState.js.map +1 -0
  46. package/dist/{esm/openapi → openapi}/models/GetSmartLookupResponse.d.ts +1 -1
  47. package/dist/openapi/models/GetSmartLookupResponse.d.ts.map +1 -0
  48. package/dist/{cjs/openapi → openapi}/models/GetSmartLookupResponse.js +1 -1
  49. package/dist/openapi/models/GetSmartLookupResponse.js.map +1 -0
  50. package/dist/{esm/openapi → openapi}/models/Model36EnumsBackgroundCheck.d.ts +1 -1
  51. package/dist/openapi/models/Model36EnumsBackgroundCheck.d.ts.map +1 -0
  52. package/dist/{cjs/openapi → openapi}/models/Model36EnumsBackgroundCheck.js +1 -1
  53. package/dist/openapi/models/Model36EnumsBackgroundCheck.js.map +1 -0
  54. package/dist/{cjs/openapi → openapi}/models/PostcodeResponse.d.ts +1 -1
  55. package/dist/openapi/models/PostcodeResponse.d.ts.map +1 -0
  56. package/dist/{cjs/openapi → openapi}/models/PostcodeResponse.js +1 -1
  57. package/dist/openapi/models/PostcodeResponse.js.map +1 -0
  58. package/dist/{cjs/openapi → openapi}/models/Reason.d.ts +1 -1
  59. package/dist/openapi/models/Reason.d.ts.map +1 -0
  60. package/dist/{cjs/openapi → openapi}/models/Reason.js +1 -1
  61. package/dist/openapi/models/Reason.js.map +1 -0
  62. package/dist/{cjs/openapi → openapi}/models/RecordAddressVerificationChecksCheckResult.d.ts +1 -1
  63. package/dist/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts.map +1 -0
  64. package/dist/{cjs/openapi → openapi}/models/RecordAddressVerificationChecksCheckResult.js +1 -1
  65. package/dist/openapi/models/RecordAddressVerificationChecksCheckResult.js.map +1 -0
  66. package/dist/{cjs/openapi → openapi}/models/Report.d.ts +1 -1
  67. package/dist/openapi/models/Report.d.ts.map +1 -0
  68. package/dist/{cjs/openapi → openapi}/models/Report.js +1 -1
  69. package/dist/openapi/models/Report.js.map +1 -0
  70. package/dist/{esm/openapi/models/RequestVerificationRequestBody.d.ts → openapi/models/RequestVerificationInput.d.ts} +20 -20
  71. package/dist/openapi/models/RequestVerificationInput.d.ts.map +1 -0
  72. package/dist/{esm/openapi/models/RequestVerificationRequestBody.js → openapi/models/RequestVerificationInput.js} +17 -10
  73. package/dist/openapi/models/RequestVerificationInput.js.map +1 -0
  74. package/dist/openapi/models/RequestVerificationRequestBody.d.ts.map +1 -0
  75. package/dist/openapi/models/RequestVerificationRequestBody.js.map +1 -0
  76. package/dist/{cjs/openapi → openapi}/models/RequestVerificationResponse.d.ts +1 -1
  77. package/dist/openapi/models/RequestVerificationResponse.d.ts.map +1 -0
  78. package/dist/{cjs/openapi → openapi}/models/RequestVerificationResponse.js +1 -1
  79. package/dist/openapi/models/RequestVerificationResponse.js.map +1 -0
  80. package/dist/{cjs/openapi → openapi}/models/SmartLookupInput.d.ts +1 -1
  81. package/dist/openapi/models/SmartLookupInput.d.ts.map +1 -0
  82. package/dist/{cjs/openapi → openapi}/models/SmartLookupInput.js +1 -1
  83. package/dist/openapi/models/SmartLookupInput.js.map +1 -0
  84. package/dist/{cjs/openapi → openapi}/models/Status.d.ts +1 -1
  85. package/dist/openapi/models/Status.d.ts.map +1 -0
  86. package/dist/{cjs/openapi → openapi}/models/Status.js +1 -1
  87. package/dist/openapi/models/Status.js.map +1 -0
  88. package/dist/{cjs/openapi → openapi}/models/Verification.d.ts +1 -1
  89. package/dist/openapi/models/Verification.d.ts.map +1 -0
  90. package/dist/{cjs/openapi → openapi}/models/Verification.js +1 -1
  91. package/dist/openapi/models/Verification.js.map +1 -0
  92. package/dist/{esm/openapi → openapi}/models/index.d.ts +2 -2
  93. package/dist/openapi/models/index.d.ts.map +1 -0
  94. package/dist/{cjs/openapi → openapi}/models/index.js +2 -2
  95. package/dist/openapi/models/index.js.map +1 -0
  96. package/dist/{cjs/openapi → openapi}/runtime.d.ts +1 -1
  97. package/dist/openapi/runtime.d.ts.map +1 -0
  98. package/dist/{cjs/openapi → openapi}/runtime.js +1 -1
  99. package/dist/openapi/runtime.js.map +1 -0
  100. package/package.json +4 -10
  101. package/dist/cjs/VouchsafeClient.d.ts.map +0 -1
  102. package/dist/cjs/VouchsafeClient.js.map +0 -1
  103. package/dist/cjs/index.d.ts.map +0 -1
  104. package/dist/cjs/index.js.map +0 -1
  105. package/dist/cjs/openapi/apis/AuthenticationApi.d.ts.map +0 -1
  106. package/dist/cjs/openapi/apis/AuthenticationApi.js.map +0 -1
  107. package/dist/cjs/openapi/apis/SmartLookupsApi.d.ts +0 -41
  108. package/dist/cjs/openapi/apis/SmartLookupsApi.d.ts.map +0 -1
  109. package/dist/cjs/openapi/apis/SmartLookupsApi.js.map +0 -1
  110. package/dist/cjs/openapi/apis/VerificationsApi.d.ts +0 -52
  111. package/dist/cjs/openapi/apis/VerificationsApi.d.ts.map +0 -1
  112. package/dist/cjs/openapi/apis/VerificationsApi.js.map +0 -1
  113. package/dist/cjs/openapi/apis/index.d.ts.map +0 -1
  114. package/dist/cjs/openapi/apis/index.js.map +0 -1
  115. package/dist/cjs/openapi/index.d.ts.map +0 -1
  116. package/dist/cjs/openapi/index.js.map +0 -1
  117. package/dist/cjs/openapi/models/ApiErrorResponse.d.ts +0 -45
  118. package/dist/cjs/openapi/models/ApiErrorResponse.d.ts.map +0 -1
  119. package/dist/cjs/openapi/models/ApiErrorResponse.js.map +0 -1
  120. package/dist/cjs/openapi/models/AuthenticateRequestBody.d.ts.map +0 -1
  121. package/dist/cjs/openapi/models/AuthenticateRequestBody.js.map +0 -1
  122. package/dist/cjs/openapi/models/AuthenticateResponse.d.ts.map +0 -1
  123. package/dist/cjs/openapi/models/AuthenticateResponse.js.map +0 -1
  124. package/dist/cjs/openapi/models/CheckResult.d.ts.map +0 -1
  125. package/dist/cjs/openapi/models/CheckResult.js.map +0 -1
  126. package/dist/cjs/openapi/models/CheckState.d.ts +0 -28
  127. package/dist/cjs/openapi/models/CheckState.d.ts.map +0 -1
  128. package/dist/cjs/openapi/models/CheckState.js.map +0 -1
  129. package/dist/cjs/openapi/models/GetSmartLookupResponse.d.ts +0 -89
  130. package/dist/cjs/openapi/models/GetSmartLookupResponse.d.ts.map +0 -1
  131. package/dist/cjs/openapi/models/GetSmartLookupResponse.js.map +0 -1
  132. package/dist/cjs/openapi/models/Model36EnumsBackgroundCheck.d.ts +0 -28
  133. package/dist/cjs/openapi/models/Model36EnumsBackgroundCheck.d.ts.map +0 -1
  134. package/dist/cjs/openapi/models/Model36EnumsBackgroundCheck.js.map +0 -1
  135. package/dist/cjs/openapi/models/PostcodeResponse.d.ts.map +0 -1
  136. package/dist/cjs/openapi/models/PostcodeResponse.js.map +0 -1
  137. package/dist/cjs/openapi/models/Reason.d.ts.map +0 -1
  138. package/dist/cjs/openapi/models/Reason.js.map +0 -1
  139. package/dist/cjs/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts.map +0 -1
  140. package/dist/cjs/openapi/models/RecordAddressVerificationChecksCheckResult.js.map +0 -1
  141. package/dist/cjs/openapi/models/Report.d.ts.map +0 -1
  142. package/dist/cjs/openapi/models/Report.js.map +0 -1
  143. package/dist/cjs/openapi/models/RequestVerificationRequestBody.d.ts.map +0 -1
  144. package/dist/cjs/openapi/models/RequestVerificationRequestBody.js.map +0 -1
  145. package/dist/cjs/openapi/models/RequestVerificationResponse.d.ts.map +0 -1
  146. package/dist/cjs/openapi/models/RequestVerificationResponse.js.map +0 -1
  147. package/dist/cjs/openapi/models/SmartLookupInput.d.ts.map +0 -1
  148. package/dist/cjs/openapi/models/SmartLookupInput.js.map +0 -1
  149. package/dist/cjs/openapi/models/Status.d.ts.map +0 -1
  150. package/dist/cjs/openapi/models/Status.js.map +0 -1
  151. package/dist/cjs/openapi/models/Verification.d.ts.map +0 -1
  152. package/dist/cjs/openapi/models/Verification.js.map +0 -1
  153. package/dist/cjs/openapi/models/index.d.ts +0 -17
  154. package/dist/cjs/openapi/models/index.d.ts.map +0 -1
  155. package/dist/cjs/openapi/models/index.js.map +0 -1
  156. package/dist/cjs/openapi/runtime.d.ts.map +0 -1
  157. package/dist/cjs/openapi/runtime.js.map +0 -1
  158. package/dist/esm/VouchsafeClient.d.ts +0 -46
  159. package/dist/esm/VouchsafeClient.d.ts.map +0 -1
  160. package/dist/esm/VouchsafeClient.js +0 -91
  161. package/dist/esm/VouchsafeClient.js.map +0 -1
  162. package/dist/esm/index.d.ts +0 -3
  163. package/dist/esm/index.d.ts.map +0 -1
  164. package/dist/esm/index.js +0 -4
  165. package/dist/esm/index.js.map +0 -1
  166. package/dist/esm/openapi/apis/AuthenticationApi.d.ts +0 -30
  167. package/dist/esm/openapi/apis/AuthenticationApi.d.ts.map +0 -1
  168. package/dist/esm/openapi/apis/AuthenticationApi.js +0 -48
  169. package/dist/esm/openapi/apis/AuthenticationApi.js.map +0 -1
  170. package/dist/esm/openapi/apis/SmartLookupsApi.d.ts.map +0 -1
  171. package/dist/esm/openapi/apis/SmartLookupsApi.js +0 -90
  172. package/dist/esm/openapi/apis/SmartLookupsApi.js.map +0 -1
  173. package/dist/esm/openapi/apis/VerificationsApi.d.ts.map +0 -1
  174. package/dist/esm/openapi/apis/VerificationsApi.js +0 -120
  175. package/dist/esm/openapi/apis/VerificationsApi.js.map +0 -1
  176. package/dist/esm/openapi/apis/index.d.ts +0 -4
  177. package/dist/esm/openapi/apis/index.d.ts.map +0 -1
  178. package/dist/esm/openapi/apis/index.js +0 -6
  179. package/dist/esm/openapi/apis/index.js.map +0 -1
  180. package/dist/esm/openapi/index.d.ts +0 -4
  181. package/dist/esm/openapi/index.d.ts.map +0 -1
  182. package/dist/esm/openapi/index.js +0 -6
  183. package/dist/esm/openapi/index.js.map +0 -1
  184. package/dist/esm/openapi/models/ApiErrorResponse.d.ts.map +0 -1
  185. package/dist/esm/openapi/models/ApiErrorResponse.js +0 -50
  186. package/dist/esm/openapi/models/ApiErrorResponse.js.map +0 -1
  187. package/dist/esm/openapi/models/AuthenticateRequestBody.d.ts +0 -39
  188. package/dist/esm/openapi/models/AuthenticateRequestBody.d.ts.map +0 -1
  189. package/dist/esm/openapi/models/AuthenticateRequestBody.js.map +0 -1
  190. package/dist/esm/openapi/models/AuthenticateResponse.d.ts +0 -39
  191. package/dist/esm/openapi/models/AuthenticateResponse.d.ts.map +0 -1
  192. package/dist/esm/openapi/models/AuthenticateResponse.js +0 -48
  193. package/dist/esm/openapi/models/AuthenticateResponse.js.map +0 -1
  194. package/dist/esm/openapi/models/CheckResult.d.ts +0 -41
  195. package/dist/esm/openapi/models/CheckResult.d.ts.map +0 -1
  196. package/dist/esm/openapi/models/CheckResult.js +0 -48
  197. package/dist/esm/openapi/models/CheckResult.js.map +0 -1
  198. package/dist/esm/openapi/models/CheckState.d.ts.map +0 -1
  199. package/dist/esm/openapi/models/CheckState.js +0 -46
  200. package/dist/esm/openapi/models/CheckState.js.map +0 -1
  201. package/dist/esm/openapi/models/GetSmartLookupResponse.d.ts.map +0 -1
  202. package/dist/esm/openapi/models/GetSmartLookupResponse.js +0 -82
  203. package/dist/esm/openapi/models/GetSmartLookupResponse.js.map +0 -1
  204. package/dist/esm/openapi/models/Model36EnumsBackgroundCheck.d.ts.map +0 -1
  205. package/dist/esm/openapi/models/Model36EnumsBackgroundCheck.js +0 -46
  206. package/dist/esm/openapi/models/Model36EnumsBackgroundCheck.js.map +0 -1
  207. package/dist/esm/openapi/models/PostcodeResponse.d.ts +0 -33
  208. package/dist/esm/openapi/models/PostcodeResponse.d.ts.map +0 -1
  209. package/dist/esm/openapi/models/PostcodeResponse.js +0 -44
  210. package/dist/esm/openapi/models/PostcodeResponse.js.map +0 -1
  211. package/dist/esm/openapi/models/Reason.d.ts +0 -28
  212. package/dist/esm/openapi/models/Reason.d.ts.map +0 -1
  213. package/dist/esm/openapi/models/Reason.js +0 -46
  214. package/dist/esm/openapi/models/Reason.js.map +0 -1
  215. package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts +0 -46
  216. package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.d.ts.map +0 -1
  217. package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.js +0 -53
  218. package/dist/esm/openapi/models/RecordAddressVerificationChecksCheckResult.js.map +0 -1
  219. package/dist/esm/openapi/models/Report.d.ts +0 -41
  220. package/dist/esm/openapi/models/Report.d.ts.map +0 -1
  221. package/dist/esm/openapi/models/Report.js +0 -50
  222. package/dist/esm/openapi/models/Report.js.map +0 -1
  223. package/dist/esm/openapi/models/RequestVerificationRequestBody.d.ts.map +0 -1
  224. package/dist/esm/openapi/models/RequestVerificationRequestBody.js.map +0 -1
  225. package/dist/esm/openapi/models/RequestVerificationResponse.d.ts +0 -45
  226. package/dist/esm/openapi/models/RequestVerificationResponse.d.ts.map +0 -1
  227. package/dist/esm/openapi/models/RequestVerificationResponse.js +0 -52
  228. package/dist/esm/openapi/models/RequestVerificationResponse.js.map +0 -1
  229. package/dist/esm/openapi/models/SmartLookupInput.d.ts +0 -64
  230. package/dist/esm/openapi/models/SmartLookupInput.d.ts.map +0 -1
  231. package/dist/esm/openapi/models/SmartLookupInput.js +0 -66
  232. package/dist/esm/openapi/models/SmartLookupInput.js.map +0 -1
  233. package/dist/esm/openapi/models/Status.d.ts +0 -30
  234. package/dist/esm/openapi/models/Status.d.ts.map +0 -1
  235. package/dist/esm/openapi/models/Status.js +0 -48
  236. package/dist/esm/openapi/models/Status.js.map +0 -1
  237. package/dist/esm/openapi/models/Verification.d.ts +0 -76
  238. package/dist/esm/openapi/models/Verification.d.ts.map +0 -1
  239. package/dist/esm/openapi/models/Verification.js +0 -73
  240. package/dist/esm/openapi/models/Verification.js.map +0 -1
  241. package/dist/esm/openapi/models/index.d.ts.map +0 -1
  242. package/dist/esm/openapi/models/index.js +0 -19
  243. package/dist/esm/openapi/models/index.js.map +0 -1
  244. package/dist/esm/openapi/runtime.d.ts +0 -185
  245. package/dist/esm/openapi/runtime.d.ts.map +0 -1
  246. package/dist/esm/openapi/runtime.js +0 -323
  247. package/dist/esm/openapi/runtime.js.map +0 -1
  248. /package/dist/{cjs/index.d.ts → index.d.ts} +0 -0
  249. /package/dist/{cjs/index.js → index.js} +0 -0
  250. /package/dist/{cjs/openapi → openapi}/apis/index.d.ts +0 -0
  251. /package/dist/{cjs/openapi → openapi}/apis/index.js +0 -0
  252. /package/dist/{cjs/openapi → openapi}/index.d.ts +0 -0
  253. /package/dist/{cjs/openapi → openapi}/index.js +0 -0
  254. /package/dist/{cjs/openapi → openapi}/models/AuthenticateRequestBody.d.ts +0 -0
  255. /package/dist/{cjs/openapi → openapi}/models/AuthenticateRequestBody.js +0 -0
  256. /package/dist/{cjs/openapi → openapi}/models/RequestVerificationRequestBody.d.ts +0 -0
  257. /package/dist/{cjs/openapi → openapi}/models/RequestVerificationRequestBody.js +0 -0
package/README.md CHANGED
@@ -19,7 +19,7 @@ yarn add @vouchsafe/node
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/node"
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
- 1. Add `sandbox: true` when instantiating the client
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
- ### Expiring access tokens
58
+ ### Re-authentication
60
59
 
61
- The client will automatically store your access token and insert it into every request, and fetch a new one upon expiry.
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 { RequestVerificationRequestBody, SmartLookupInput, Status } from "./openapi/models";
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: RequestVerificationRequestBody): Promise<import("./openapi").RequestVerificationResponse>;
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;
@@ -0,0 +1 @@
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
- authenticateRequestBody: authBody,
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 (promise) => {
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 promise;
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 = options.sandbox
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
- requestVerificationRequestBody: input,
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;
@@ -0,0 +1 @@
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,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AAC;YACxC,wBAAwB,EAAE,KAAK;SAChC,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,KAAuB;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,CACjC,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC;YACtC,gBAAgB,EAAE,KAAK;SACxB,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAwB;QACrD,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,CACjC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,CAClD,CAAA;IACH,CAAC;CAGF;AAzHD,0CAyHC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAC1B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAG0B;AAFxB,kHAAA,eAAe,OAAA;AACf,oHAAA,iBAAiB,OAAA;AAEnB,mDAAgC,CAAC,kCAAkC"}
@@ -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 { AuthenticateRequestBody, AuthenticateResponse } from '../models/index';
13
+ import type { AuthenticateInput, AuthenticateResponse } from '../models/index';
14
14
  export interface AuthenticateRequest {
15
- authenticateRequestBody: AuthenticateRequestBody;
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
  }
@@ -0,0 +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,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['authenticateRequestBody'] == null) {
61
- throw new runtime.RequiredError('authenticateRequestBody', 'Required parameter "authenticateRequestBody" was null or undefined when calling authenticate().');
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.AuthenticateRequestBodyToJSON)(requestParameters['authenticateRequestBody']),
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);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/AuthenticationApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAMtC,2CAOyB;AAMzB;;GAEG;AACH,MAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,IAAI,EAAE,CAAC;YACjD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,mBAAmB,EACnB,2FAA2F,CAC9F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAGtD,IAAI,OAAO,GAAG,eAAe,CAAC;QAE9B,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,+BAAuB,EAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;SACxE,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartLookupsApi.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/SmartLookupsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAYzB,MAAM,WAAW,yBAAyB;IACtC,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,OAAO;IAEhD;;OAEG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAoC3L;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKnK;;OAEG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAqC7K;;OAEG;IACG,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartLookupsApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/SmartLookupsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAOtC,2CASyB;AAUzB;;GAEG;AACH,MAAa,eAAgB,SAAQ,OAAO,CAAC,OAAO;IAEhD;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,iBAA4C,EAAE,aAA0D;QAChI,IAAI,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,IAAI,EAAE,CAAC;YAChD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,kBAAkB,EAClB,gGAAgG,CACnG,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,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,8BAAsB,EA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,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,gCAAwB,EAAC,SAAS,CAAC,CAAC,CAAC;IACrG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,iBAAwC,EAAE,aAA0D;QACrH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAChF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjGD,0CAiGC"}
@@ -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 { RequestVerificationRequestBody, RequestVerificationResponse, Status, Verification } from '../models/index';
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
- requestVerificationRequestBody: RequestVerificationRequestBody;
21
+ requestVerificationInput: RequestVerificationInput;
22
22
  }
23
23
  /**
24
24
  *
@@ -0,0 +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,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['requestVerificationRequestBody'] == null) {
126
- throw new runtime.RequiredError('requestVerificationRequestBody', 'Required parameter "requestVerificationRequestBody" was null or undefined when calling requestVerification().');
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.RequestVerificationRequestBodyToJSON)(requestParameters['requestVerificationRequestBody']),
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
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerificationsApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/VerificationsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAQtC,2CAWyB;AAczB;;GAEG;AACH,MAAa,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IAEjD;;OAEG;IACH,K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A6C,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/openapi/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/openapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,4CAA0B;AAC1B,+CAA6B;AAC7B,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/ApiErrorResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtH"}
@@ -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 @@
1
+ {"version":3,"file":"ApiErrorResponse.js","sourceRoot":"","sources":["../../../src/openapi/models/ApiErrorResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gEAIC;AAED,4DAEC;AAED,sEAUC;AAED,wDAEC;AAED,kEAWC;AAxCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;KAClF,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;KACxC,CAAC;AACN,CAAC"}
@@ -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"}
@@ -1,8 +1,9 @@
1
+ "use strict";
1
2
  /* tslint:disable */
2
3
  /* eslint-disable */
3
4
  /**
4
5
  * Vouchsafe API docs
5
- * 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.
6
7
  *
7
8
  * The version of the OpenAPI document: 0.1.0
8
9
  * Contact: help@vouchsafe.id
@@ -11,20 +12,26 @@
11
12
  * https://openapi-generator.tech
12
13
  * Do not edit the class manually.
13
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;
14
21
  /**
15
- * Check if a given object implements the AuthenticateRequestBody interface.
22
+ * Check if a given object implements the AuthenticateInput interface.
16
23
  */
17
- export function instanceOfAuthenticateRequestBody(value) {
24
+ function instanceOfAuthenticateInput(value) {
18
25
  if (!('client_id' in value) || value['client_id'] === undefined)
19
26
  return false;
20
27
  if (!('client_secret' in value) || value['client_secret'] === undefined)
21
28
  return false;
22
29
  return true;
23
30
  }
24
- export function AuthenticateRequestBodyFromJSON(json) {
25
- return AuthenticateRequestBodyFromJSONTyped(json, false);
31
+ function AuthenticateInputFromJSON(json) {
32
+ return AuthenticateInputFromJSONTyped(json, false);
26
33
  }
27
- export function AuthenticateRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
34
+ function AuthenticateInputFromJSONTyped(json, ignoreDiscriminator) {
28
35
  if (json == null) {
29
36
  return json;
30
37
  }
@@ -33,10 +40,10 @@ export function AuthenticateRequestBodyFromJSONTyped(json, ignoreDiscriminator)
33
40
  'client_secret': json['client_secret'],
34
41
  };
35
42
  }
36
- export function AuthenticateRequestBodyToJSON(json) {
37
- return AuthenticateRequestBodyToJSONTyped(json, false);
43
+ function AuthenticateInputToJSON(json) {
44
+ return AuthenticateInputToJSONTyped(json, false);
38
45
  }
39
- export function AuthenticateRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
46
+ function AuthenticateInputToJSONTyped(value, ignoreDiscriminator = false) {
40
47
  if (value == null) {
41
48
  return value;
42
49
  }
@@ -45,4 +52,4 @@ export function AuthenticateRequestBodyToJSONTyped(value, ignoreDiscriminator =
45
52
  'client_secret': value['client_secret'],
46
53
  };
47
54
  }
48
- //# sourceMappingURL=AuthenticateRequestBody.js.map
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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticateRequestBody.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/AuthenticateRequestBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAIjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticateRequestBody.js","sourceRoot":"","sources":["../../../src/openapi/models/AuthenticateRequestBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,8EAIC;AAED,0EAEC;AAED,oFASC;AAED,sEAEC;AAED,gFAUC;AAtCD;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,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,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,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,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAAsC,EAAE,sBAA+B,KAAK;IAC3H,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticateResponse.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/AuthenticateResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAS/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9H"}
@@ -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 @@
1
+ {"version":3,"file":"AuthenticateResponse.js","sourceRoot":"","sources":["../../../src/openapi/models/AuthenticateResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wEAIC;AAED,oEAEC;AAED,8EASC;AAED,gEAEC;AAED,0EAUC;AAtCD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckResult.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/CheckResult.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAID;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAS7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5G"}
@@ -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 @@
1
+ {"version":3,"file":"CheckResult.js","sourceRoot":"","sources":["../../../src/openapi/models/CheckResult.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA2CH,sDAGC;AAED,kDAEC;AAED,4DASC;AAED,8CAEC;AAED,wDAUC;AAzED,6CAKsB;AAEtB,qCAKkB;AAwBlB;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAA,+BAAkB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,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