@beyond-pci/sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1097) hide show
  1. package/FUNCTIONS.md +87 -0
  2. package/README.md +544 -0
  3. package/RUNTIMES.md +48 -0
  4. package/dist/commonjs/core.d.ts +10 -0
  5. package/dist/commonjs/core.d.ts.map +1 -0
  6. package/dist/commonjs/core.js +17 -0
  7. package/dist/commonjs/core.js.map +1 -0
  8. package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts +18 -0
  9. package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js +132 -0
  11. package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js.map +1 -0
  12. package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
  13. package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js +130 -0
  15. package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
  16. package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
  17. package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js +127 -0
  19. package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
  20. package/dist/commonjs/funcs/merchantsGetV1Merchants.d.ts +18 -0
  21. package/dist/commonjs/funcs/merchantsGetV1Merchants.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/merchantsGetV1Merchants.js +123 -0
  23. package/dist/commonjs/funcs/merchantsGetV1Merchants.js.map +1 -0
  24. package/dist/commonjs/funcs/merchantsGetV1MerchantsId.d.ts +18 -0
  25. package/dist/commonjs/funcs/merchantsGetV1MerchantsId.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/merchantsGetV1MerchantsId.js +123 -0
  27. package/dist/commonjs/funcs/merchantsGetV1MerchantsId.js.map +1 -0
  28. package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.d.ts +18 -0
  29. package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.js +123 -0
  31. package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.js.map +1 -0
  32. package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.d.ts +18 -0
  33. package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.d.ts.map +1 -0
  34. package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.js +123 -0
  35. package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.js.map +1 -0
  36. package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.d.ts +18 -0
  37. package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.d.ts.map +1 -0
  38. package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.js +124 -0
  39. package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.js.map +1 -0
  40. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.d.ts +18 -0
  41. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.d.ts.map +1 -0
  42. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.js +124 -0
  43. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.js.map +1 -0
  44. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.d.ts +18 -0
  45. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.d.ts.map +1 -0
  46. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.js +123 -0
  47. package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.js.map +1 -0
  48. package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.d.ts +18 -0
  49. package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.d.ts.map +1 -0
  50. package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.js +118 -0
  51. package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.js.map +1 -0
  52. package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts +18 -0
  53. package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts.map +1 -0
  54. package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js +131 -0
  55. package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js.map +1 -0
  56. package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts +18 -0
  57. package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts.map +1 -0
  58. package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.js +124 -0
  59. package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.js.map +1 -0
  60. package/dist/commonjs/funcs/scansGetV1Scans.d.ts +18 -0
  61. package/dist/commonjs/funcs/scansGetV1Scans.d.ts.map +1 -0
  62. package/dist/commonjs/funcs/scansGetV1Scans.js +124 -0
  63. package/dist/commonjs/funcs/scansGetV1Scans.js.map +1 -0
  64. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.d.ts +18 -0
  65. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.d.ts.map +1 -0
  66. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.js +128 -0
  67. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.js.map +1 -0
  68. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts +18 -0
  69. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts.map +1 -0
  70. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.js +123 -0
  71. package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.js.map +1 -0
  72. package/dist/commonjs/funcs/scansGetV1ScansScanId.d.ts +18 -0
  73. package/dist/commonjs/funcs/scansGetV1ScansScanId.d.ts.map +1 -0
  74. package/dist/commonjs/funcs/scansGetV1ScansScanId.js +123 -0
  75. package/dist/commonjs/funcs/scansGetV1ScansScanId.js.map +1 -0
  76. package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.d.ts +18 -0
  77. package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.d.ts.map +1 -0
  78. package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.js +123 -0
  79. package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.js.map +1 -0
  80. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.d.ts +18 -0
  81. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.d.ts.map +1 -0
  82. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.js +125 -0
  83. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.js.map +1 -0
  84. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts +18 -0
  85. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts.map +1 -0
  86. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.js +123 -0
  87. package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.js.map +1 -0
  88. package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.d.ts +18 -0
  89. package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.d.ts.map +1 -0
  90. package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.js +123 -0
  91. package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.js.map +1 -0
  92. package/dist/commonjs/funcs/webhooksGetV1Webhooks.d.ts +18 -0
  93. package/dist/commonjs/funcs/webhooksGetV1Webhooks.d.ts.map +1 -0
  94. package/dist/commonjs/funcs/webhooksGetV1Webhooks.js +122 -0
  95. package/dist/commonjs/funcs/webhooksGetV1Webhooks.js.map +1 -0
  96. package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.d.ts +18 -0
  97. package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.d.ts.map +1 -0
  98. package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.js +124 -0
  99. package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.js.map +1 -0
  100. package/dist/commonjs/funcs/webhooksPostV1Webhooks.d.ts +18 -0
  101. package/dist/commonjs/funcs/webhooksPostV1Webhooks.d.ts.map +1 -0
  102. package/dist/commonjs/funcs/webhooksPostV1Webhooks.js +118 -0
  103. package/dist/commonjs/funcs/webhooksPostV1Webhooks.js.map +1 -0
  104. package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.d.ts +18 -0
  105. package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.d.ts.map +1 -0
  106. package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.js +124 -0
  107. package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.js.map +1 -0
  108. package/dist/commonjs/hooks/hooks.d.ts +25 -0
  109. package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
  110. package/dist/commonjs/hooks/hooks.js +86 -0
  111. package/dist/commonjs/hooks/hooks.js.map +1 -0
  112. package/dist/commonjs/hooks/index.d.ts +3 -0
  113. package/dist/commonjs/hooks/index.d.ts.map +1 -0
  114. package/dist/commonjs/hooks/index.js +22 -0
  115. package/dist/commonjs/hooks/index.js.map +1 -0
  116. package/dist/commonjs/hooks/registration.d.ts +3 -0
  117. package/dist/commonjs/hooks/registration.d.ts.map +1 -0
  118. package/dist/commonjs/hooks/registration.js +15 -0
  119. package/dist/commonjs/hooks/registration.js.map +1 -0
  120. package/dist/commonjs/hooks/types.d.ts +76 -0
  121. package/dist/commonjs/hooks/types.d.ts.map +1 -0
  122. package/dist/commonjs/hooks/types.js +6 -0
  123. package/dist/commonjs/hooks/types.js.map +1 -0
  124. package/dist/commonjs/index.d.ts +6 -0
  125. package/dist/commonjs/index.d.ts.map +1 -0
  126. package/dist/commonjs/index.js +48 -0
  127. package/dist/commonjs/index.js.map +1 -0
  128. package/dist/commonjs/lib/base64.d.ts +10 -0
  129. package/dist/commonjs/lib/base64.d.ts.map +1 -0
  130. package/dist/commonjs/lib/base64.js +71 -0
  131. package/dist/commonjs/lib/base64.js.map +1 -0
  132. package/dist/commonjs/lib/config.d.ts +38 -0
  133. package/dist/commonjs/lib/config.d.ts.map +1 -0
  134. package/dist/commonjs/lib/config.js +42 -0
  135. package/dist/commonjs/lib/config.js.map +1 -0
  136. package/dist/commonjs/lib/dlv.d.ts +14 -0
  137. package/dist/commonjs/lib/dlv.d.ts.map +1 -0
  138. package/dist/commonjs/lib/dlv.js +49 -0
  139. package/dist/commonjs/lib/dlv.js.map +1 -0
  140. package/dist/commonjs/lib/encodings.d.ts +52 -0
  141. package/dist/commonjs/lib/encodings.d.ts.map +1 -0
  142. package/dist/commonjs/lib/encodings.js +368 -0
  143. package/dist/commonjs/lib/encodings.js.map +1 -0
  144. package/dist/commonjs/lib/files.d.ts +13 -0
  145. package/dist/commonjs/lib/files.d.ts.map +1 -0
  146. package/dist/commonjs/lib/files.js +77 -0
  147. package/dist/commonjs/lib/files.js.map +1 -0
  148. package/dist/commonjs/lib/http.d.ts +67 -0
  149. package/dist/commonjs/lib/http.d.ts.map +1 -0
  150. package/dist/commonjs/lib/http.js +217 -0
  151. package/dist/commonjs/lib/http.js.map +1 -0
  152. package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
  153. package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
  154. package/dist/commonjs/lib/is-plain-object.js +41 -0
  155. package/dist/commonjs/lib/is-plain-object.js.map +1 -0
  156. package/dist/commonjs/lib/logger.d.ts +6 -0
  157. package/dist/commonjs/lib/logger.d.ts.map +1 -0
  158. package/dist/commonjs/lib/logger.js +6 -0
  159. package/dist/commonjs/lib/logger.js.map +1 -0
  160. package/dist/commonjs/lib/matchers.d.ts +59 -0
  161. package/dist/commonjs/lib/matchers.d.ts.map +1 -0
  162. package/dist/commonjs/lib/matchers.js +218 -0
  163. package/dist/commonjs/lib/matchers.js.map +1 -0
  164. package/dist/commonjs/lib/primitives.d.ts +26 -0
  165. package/dist/commonjs/lib/primitives.d.ts.map +1 -0
  166. package/dist/commonjs/lib/primitives.js +111 -0
  167. package/dist/commonjs/lib/primitives.js.map +1 -0
  168. package/dist/commonjs/lib/retries.d.ts +38 -0
  169. package/dist/commonjs/lib/retries.d.ts.map +1 -0
  170. package/dist/commonjs/lib/retries.js +153 -0
  171. package/dist/commonjs/lib/retries.js.map +1 -0
  172. package/dist/commonjs/lib/schemas.d.ts +19 -0
  173. package/dist/commonjs/lib/schemas.d.ts.map +1 -0
  174. package/dist/commonjs/lib/schemas.js +62 -0
  175. package/dist/commonjs/lib/schemas.js.map +1 -0
  176. package/dist/commonjs/lib/sdks.d.ts +63 -0
  177. package/dist/commonjs/lib/sdks.d.ts.map +1 -0
  178. package/dist/commonjs/lib/sdks.js +269 -0
  179. package/dist/commonjs/lib/sdks.js.map +1 -0
  180. package/dist/commonjs/lib/security.d.ts +83 -0
  181. package/dist/commonjs/lib/security.d.ts.map +1 -0
  182. package/dist/commonjs/lib/security.js +143 -0
  183. package/dist/commonjs/lib/security.js.map +1 -0
  184. package/dist/commonjs/lib/url.d.ts +5 -0
  185. package/dist/commonjs/lib/url.d.ts.map +1 -0
  186. package/dist/commonjs/lib/url.js +25 -0
  187. package/dist/commonjs/lib/url.js.map +1 -0
  188. package/dist/commonjs/models/components/index.d.ts +2 -0
  189. package/dist/commonjs/models/components/index.d.ts.map +1 -0
  190. package/dist/commonjs/models/components/index.js +21 -0
  191. package/dist/commonjs/models/components/index.js.map +1 -0
  192. package/dist/commonjs/models/components/security.d.ts +29 -0
  193. package/dist/commonjs/models/components/security.d.ts.map +1 -0
  194. package/dist/commonjs/models/components/security.js +78 -0
  195. package/dist/commonjs/models/components/security.js.map +1 -0
  196. package/dist/commonjs/models/errors/apierror.d.ts +10 -0
  197. package/dist/commonjs/models/errors/apierror.d.ts.map +1 -0
  198. package/dist/commonjs/models/errors/apierror.js +28 -0
  199. package/dist/commonjs/models/errors/apierror.js.map +1 -0
  200. package/dist/commonjs/models/errors/beyondpcierror.d.ts +19 -0
  201. package/dist/commonjs/models/errors/beyondpcierror.d.ts.map +1 -0
  202. package/dist/commonjs/models/errors/beyondpcierror.js +20 -0
  203. package/dist/commonjs/models/errors/beyondpcierror.js.map +1 -0
  204. package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +199 -0
  205. package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
  206. package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js +261 -0
  207. package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
  208. package/dist/commonjs/models/errors/deletev1webhooksid.d.ts +199 -0
  209. package/dist/commonjs/models/errors/deletev1webhooksid.d.ts.map +1 -0
  210. package/dist/commonjs/models/errors/deletev1webhooksid.js +261 -0
  211. package/dist/commonjs/models/errors/deletev1webhooksid.js.map +1 -0
  212. package/dist/commonjs/models/errors/getv1merchants.d.ts +102 -0
  213. package/dist/commonjs/models/errors/getv1merchants.d.ts.map +1 -0
  214. package/dist/commonjs/models/errors/getv1merchants.js +152 -0
  215. package/dist/commonjs/models/errors/getv1merchants.js.map +1 -0
  216. package/dist/commonjs/models/errors/getv1merchantsid.d.ts +199 -0
  217. package/dist/commonjs/models/errors/getv1merchantsid.d.ts.map +1 -0
  218. package/dist/commonjs/models/errors/getv1merchantsid.js +262 -0
  219. package/dist/commonjs/models/errors/getv1merchantsid.js.map +1 -0
  220. package/dist/commonjs/models/errors/getv1merchantsidcompliance.d.ts +199 -0
  221. package/dist/commonjs/models/errors/getv1merchantsidcompliance.d.ts.map +1 -0
  222. package/dist/commonjs/models/errors/getv1merchantsidcompliance.js +259 -0
  223. package/dist/commonjs/models/errors/getv1merchantsidcompliance.js.map +1 -0
  224. package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.d.ts +199 -0
  225. package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  226. package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.js +257 -0
  227. package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.js.map +1 -0
  228. package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +199 -0
  229. package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
  230. package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js +259 -0
  231. package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
  232. package/dist/commonjs/models/errors/getv1merchantsregistrationid.d.ts +199 -0
  233. package/dist/commonjs/models/errors/getv1merchantsregistrationid.d.ts.map +1 -0
  234. package/dist/commonjs/models/errors/getv1merchantsregistrationid.js +259 -0
  235. package/dist/commonjs/models/errors/getv1merchantsregistrationid.js.map +1 -0
  236. package/dist/commonjs/models/errors/getv1scans.d.ts +199 -0
  237. package/dist/commonjs/models/errors/getv1scans.d.ts.map +1 -0
  238. package/dist/commonjs/models/errors/getv1scans.js +261 -0
  239. package/dist/commonjs/models/errors/getv1scans.js.map +1 -0
  240. package/dist/commonjs/models/errors/getv1scansmerchantsidscans.d.ts +199 -0
  241. package/dist/commonjs/models/errors/getv1scansmerchantsidscans.d.ts.map +1 -0
  242. package/dist/commonjs/models/errors/getv1scansmerchantsidscans.js +259 -0
  243. package/dist/commonjs/models/errors/getv1scansmerchantsidscans.js.map +1 -0
  244. package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.d.ts +199 -0
  245. package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.d.ts.map +1 -0
  246. package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.js +259 -0
  247. package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.js.map +1 -0
  248. package/dist/commonjs/models/errors/getv1scansscanid.d.ts +199 -0
  249. package/dist/commonjs/models/errors/getv1scansscanid.d.ts.map +1 -0
  250. package/dist/commonjs/models/errors/getv1scansscanid.js +263 -0
  251. package/dist/commonjs/models/errors/getv1scansscanid.js.map +1 -0
  252. package/dist/commonjs/models/errors/getv1scansscanidreport.d.ts +102 -0
  253. package/dist/commonjs/models/errors/getv1scansscanidreport.d.ts.map +1 -0
  254. package/dist/commonjs/models/errors/getv1scansscanidreport.js +153 -0
  255. package/dist/commonjs/models/errors/getv1scansscanidreport.js.map +1 -0
  256. package/dist/commonjs/models/errors/getv1webhooks.d.ts +199 -0
  257. package/dist/commonjs/models/errors/getv1webhooks.d.ts.map +1 -0
  258. package/dist/commonjs/models/errors/getv1webhooks.js +262 -0
  259. package/dist/commonjs/models/errors/getv1webhooks.js.map +1 -0
  260. package/dist/commonjs/models/errors/httpclienterrors.d.ts +44 -0
  261. package/dist/commonjs/models/errors/httpclienterrors.d.ts.map +1 -0
  262. package/dist/commonjs/models/errors/httpclienterrors.js +78 -0
  263. package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -0
  264. package/dist/commonjs/models/errors/index.d.ts +30 -0
  265. package/dist/commonjs/models/errors/index.d.ts.map +1 -0
  266. package/dist/commonjs/models/errors/index.js +49 -0
  267. package/dist/commonjs/models/errors/index.js.map +1 -0
  268. package/dist/commonjs/models/errors/patchv1merchantsid.d.ts +296 -0
  269. package/dist/commonjs/models/errors/patchv1merchantsid.d.ts.map +1 -0
  270. package/dist/commonjs/models/errors/patchv1merchantsid.js +369 -0
  271. package/dist/commonjs/models/errors/patchv1merchantsid.js.map +1 -0
  272. package/dist/commonjs/models/errors/patchv1webhooksid.d.ts +296 -0
  273. package/dist/commonjs/models/errors/patchv1webhooksid.d.ts.map +1 -0
  274. package/dist/commonjs/models/errors/patchv1webhooksid.js +370 -0
  275. package/dist/commonjs/models/errors/patchv1webhooksid.js.map +1 -0
  276. package/dist/commonjs/models/errors/postv1merchantsidactivate.d.ts +296 -0
  277. package/dist/commonjs/models/errors/postv1merchantsidactivate.d.ts.map +1 -0
  278. package/dist/commonjs/models/errors/postv1merchantsidactivate.js +368 -0
  279. package/dist/commonjs/models/errors/postv1merchantsidactivate.js.map +1 -0
  280. package/dist/commonjs/models/errors/postv1merchantsidcancel.d.ts +296 -0
  281. package/dist/commonjs/models/errors/postv1merchantsidcancel.d.ts.map +1 -0
  282. package/dist/commonjs/models/errors/postv1merchantsidcancel.js +369 -0
  283. package/dist/commonjs/models/errors/postv1merchantsidcancel.js.map +1 -0
  284. package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.d.ts +199 -0
  285. package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  286. package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.js +258 -0
  287. package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.js.map +1 -0
  288. package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.d.ts +199 -0
  289. package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
  290. package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.js +259 -0
  291. package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.js.map +1 -0
  292. package/dist/commonjs/models/errors/postv1merchantsregister.d.ts +199 -0
  293. package/dist/commonjs/models/errors/postv1merchantsregister.d.ts.map +1 -0
  294. package/dist/commonjs/models/errors/postv1merchantsregister.js +261 -0
  295. package/dist/commonjs/models/errors/postv1merchantsregister.js.map +1 -0
  296. package/dist/commonjs/models/errors/postv1scansmerchantsidscans.d.ts +393 -0
  297. package/dist/commonjs/models/errors/postv1scansmerchantsidscans.d.ts.map +1 -0
  298. package/dist/commonjs/models/errors/postv1scansmerchantsidscans.js +475 -0
  299. package/dist/commonjs/models/errors/postv1scansmerchantsidscans.js.map +1 -0
  300. package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.d.ts +199 -0
  301. package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
  302. package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.js +259 -0
  303. package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.js.map +1 -0
  304. package/dist/commonjs/models/errors/postv1webhooks.d.ts +199 -0
  305. package/dist/commonjs/models/errors/postv1webhooks.d.ts.map +1 -0
  306. package/dist/commonjs/models/errors/postv1webhooks.js +263 -0
  307. package/dist/commonjs/models/errors/postv1webhooks.js.map +1 -0
  308. package/dist/commonjs/models/errors/postv1webhooksidtest.d.ts +296 -0
  309. package/dist/commonjs/models/errors/postv1webhooksidtest.d.ts.map +1 -0
  310. package/dist/commonjs/models/errors/postv1webhooksidtest.js +369 -0
  311. package/dist/commonjs/models/errors/postv1webhooksidtest.js.map +1 -0
  312. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  313. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  314. package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
  315. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  316. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +21 -0
  317. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -0
  318. package/dist/commonjs/models/errors/sdkvalidationerror.js +129 -0
  319. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -0
  320. package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +113 -0
  321. package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
  322. package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js +164 -0
  323. package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
  324. package/dist/commonjs/models/operations/deletev1webhooksid.d.ts +111 -0
  325. package/dist/commonjs/models/operations/deletev1webhooksid.d.ts.map +1 -0
  326. package/dist/commonjs/models/operations/deletev1webhooksid.js +154 -0
  327. package/dist/commonjs/models/operations/deletev1webhooksid.js.map +1 -0
  328. package/dist/commonjs/models/operations/getv1merchants.d.ts +237 -0
  329. package/dist/commonjs/models/operations/getv1merchants.d.ts.map +1 -0
  330. package/dist/commonjs/models/operations/getv1merchants.js +246 -0
  331. package/dist/commonjs/models/operations/getv1merchants.js.map +1 -0
  332. package/dist/commonjs/models/operations/getv1merchantsid.d.ts +172 -0
  333. package/dist/commonjs/models/operations/getv1merchantsid.d.ts.map +1 -0
  334. package/dist/commonjs/models/operations/getv1merchantsid.js +185 -0
  335. package/dist/commonjs/models/operations/getv1merchantsid.js.map +1 -0
  336. package/dist/commonjs/models/operations/getv1merchantsidcompliance.d.ts +173 -0
  337. package/dist/commonjs/models/operations/getv1merchantsidcompliance.d.ts.map +1 -0
  338. package/dist/commonjs/models/operations/getv1merchantsidcompliance.js +217 -0
  339. package/dist/commonjs/models/operations/getv1merchantsidcompliance.js.map +1 -0
  340. package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.d.ts +214 -0
  341. package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  342. package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.js +245 -0
  343. package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.js.map +1 -0
  344. package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +111 -0
  345. package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
  346. package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js +155 -0
  347. package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
  348. package/dist/commonjs/models/operations/getv1merchantsregistrationid.d.ts +156 -0
  349. package/dist/commonjs/models/operations/getv1merchantsregistrationid.d.ts.map +1 -0
  350. package/dist/commonjs/models/operations/getv1merchantsregistrationid.js +179 -0
  351. package/dist/commonjs/models/operations/getv1merchantsregistrationid.js.map +1 -0
  352. package/dist/commonjs/models/operations/getv1scans.d.ts +328 -0
  353. package/dist/commonjs/models/operations/getv1scans.d.ts.map +1 -0
  354. package/dist/commonjs/models/operations/getv1scans.js +331 -0
  355. package/dist/commonjs/models/operations/getv1scans.js.map +1 -0
  356. package/dist/commonjs/models/operations/getv1scansmerchantsidscans.d.ts +286 -0
  357. package/dist/commonjs/models/operations/getv1scansmerchantsidscans.d.ts.map +1 -0
  358. package/dist/commonjs/models/operations/getv1scansmerchantsidscans.js +304 -0
  359. package/dist/commonjs/models/operations/getv1scansmerchantsidscans.js.map +1 -0
  360. package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.d.ts +206 -0
  361. package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.d.ts.map +1 -0
  362. package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.js +236 -0
  363. package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.js.map +1 -0
  364. package/dist/commonjs/models/operations/getv1scansscanid.d.ts +369 -0
  365. package/dist/commonjs/models/operations/getv1scansscanid.d.ts.map +1 -0
  366. package/dist/commonjs/models/operations/getv1scansscanid.js +373 -0
  367. package/dist/commonjs/models/operations/getv1scansscanid.js.map +1 -0
  368. package/dist/commonjs/models/operations/getv1scansscanidreport.d.ts +59 -0
  369. package/dist/commonjs/models/operations/getv1scansscanidreport.d.ts.map +1 -0
  370. package/dist/commonjs/models/operations/getv1scansscanidreport.js +98 -0
  371. package/dist/commonjs/models/operations/getv1scansscanidreport.js.map +1 -0
  372. package/dist/commonjs/models/operations/getv1webhooks.d.ts +191 -0
  373. package/dist/commonjs/models/operations/getv1webhooks.d.ts.map +1 -0
  374. package/dist/commonjs/models/operations/getv1webhooks.js +219 -0
  375. package/dist/commonjs/models/operations/getv1webhooks.js.map +1 -0
  376. package/dist/commonjs/models/operations/index.d.ts +26 -0
  377. package/dist/commonjs/models/operations/index.d.ts.map +1 -0
  378. package/dist/commonjs/models/operations/index.js +45 -0
  379. package/dist/commonjs/models/operations/index.js.map +1 -0
  380. package/dist/commonjs/models/operations/patchv1merchantsid.d.ts +201 -0
  381. package/dist/commonjs/models/operations/patchv1merchantsid.d.ts.map +1 -0
  382. package/dist/commonjs/models/operations/patchv1merchantsid.js +225 -0
  383. package/dist/commonjs/models/operations/patchv1merchantsid.js.map +1 -0
  384. package/dist/commonjs/models/operations/patchv1webhooksid.d.ts +227 -0
  385. package/dist/commonjs/models/operations/patchv1webhooksid.d.ts.map +1 -0
  386. package/dist/commonjs/models/operations/patchv1webhooksid.js +251 -0
  387. package/dist/commonjs/models/operations/patchv1webhooksid.js.map +1 -0
  388. package/dist/commonjs/models/operations/postv1merchantsidactivate.d.ts +140 -0
  389. package/dist/commonjs/models/operations/postv1merchantsidactivate.d.ts.map +1 -0
  390. package/dist/commonjs/models/operations/postv1merchantsidactivate.js +174 -0
  391. package/dist/commonjs/models/operations/postv1merchantsidactivate.js.map +1 -0
  392. package/dist/commonjs/models/operations/postv1merchantsidcancel.d.ts +140 -0
  393. package/dist/commonjs/models/operations/postv1merchantsidcancel.d.ts.map +1 -0
  394. package/dist/commonjs/models/operations/postv1merchantsidcancel.js +174 -0
  395. package/dist/commonjs/models/operations/postv1merchantsidcancel.js.map +1 -0
  396. package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.d.ts +207 -0
  397. package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  398. package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.js +245 -0
  399. package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.js.map +1 -0
  400. package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.d.ts +333 -0
  401. package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
  402. package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.js +323 -0
  403. package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.js.map +1 -0
  404. package/dist/commonjs/models/operations/postv1merchantsregister.d.ts +1845 -0
  405. package/dist/commonjs/models/operations/postv1merchantsregister.d.ts.map +1 -0
  406. package/dist/commonjs/models/operations/postv1merchantsregister.js +1054 -0
  407. package/dist/commonjs/models/operations/postv1merchantsregister.js.map +1 -0
  408. package/dist/commonjs/models/operations/postv1scansmerchantsidscans.d.ts +140 -0
  409. package/dist/commonjs/models/operations/postv1scansmerchantsidscans.d.ts.map +1 -0
  410. package/dist/commonjs/models/operations/postv1scansmerchantsidscans.js +194 -0
  411. package/dist/commonjs/models/operations/postv1scansmerchantsidscans.js.map +1 -0
  412. package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.d.ts +111 -0
  413. package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
  414. package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.js +154 -0
  415. package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.js.map +1 -0
  416. package/dist/commonjs/models/operations/postv1webhooks.d.ts +203 -0
  417. package/dist/commonjs/models/operations/postv1webhooks.d.ts.map +1 -0
  418. package/dist/commonjs/models/operations/postv1webhooks.js +210 -0
  419. package/dist/commonjs/models/operations/postv1webhooks.js.map +1 -0
  420. package/dist/commonjs/models/operations/postv1webhooksidtest.d.ts +679 -0
  421. package/dist/commonjs/models/operations/postv1webhooksidtest.d.ts.map +1 -0
  422. package/dist/commonjs/models/operations/postv1webhooksidtest.js +722 -0
  423. package/dist/commonjs/models/operations/postv1webhooksidtest.js.map +1 -0
  424. package/dist/commonjs/package.json +3 -0
  425. package/dist/commonjs/sdk/assetconfigs.d.ts +26 -0
  426. package/dist/commonjs/sdk/assetconfigs.d.ts.map +1 -0
  427. package/dist/commonjs/sdk/assetconfigs.js +42 -0
  428. package/dist/commonjs/sdk/assetconfigs.js.map +1 -0
  429. package/dist/commonjs/sdk/index.d.ts +2 -0
  430. package/dist/commonjs/sdk/index.d.ts.map +1 -0
  431. package/dist/commonjs/sdk/index.js +21 -0
  432. package/dist/commonjs/sdk/index.js.map +1 -0
  433. package/dist/commonjs/sdk/merchants.d.ts +61 -0
  434. package/dist/commonjs/sdk/merchants.d.ts.map +1 -0
  435. package/dist/commonjs/sdk/merchants.js +92 -0
  436. package/dist/commonjs/sdk/merchants.js.map +1 -0
  437. package/dist/commonjs/sdk/saq.d.ts +19 -0
  438. package/dist/commonjs/sdk/saq.d.ts.map +1 -0
  439. package/dist/commonjs/sdk/saq.js +32 -0
  440. package/dist/commonjs/sdk/saq.js.map +1 -0
  441. package/dist/commonjs/sdk/scans.d.ts +54 -0
  442. package/dist/commonjs/sdk/scans.d.ts.map +1 -0
  443. package/dist/commonjs/sdk/scans.js +82 -0
  444. package/dist/commonjs/sdk/scans.js.map +1 -0
  445. package/dist/commonjs/sdk/sdk.d.ts +19 -0
  446. package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
  447. package/dist/commonjs/sdk/sdk.js +31 -0
  448. package/dist/commonjs/sdk/sdk.js.map +1 -0
  449. package/dist/commonjs/sdk/webhooks.d.ts +40 -0
  450. package/dist/commonjs/sdk/webhooks.d.ts.map +1 -0
  451. package/dist/commonjs/sdk/webhooks.js +62 -0
  452. package/dist/commonjs/sdk/webhooks.js.map +1 -0
  453. package/dist/commonjs/types/async.d.ts +23 -0
  454. package/dist/commonjs/types/async.d.ts.map +1 -0
  455. package/dist/commonjs/types/async.js +44 -0
  456. package/dist/commonjs/types/async.js.map +1 -0
  457. package/dist/commonjs/types/blobs.d.ts +4 -0
  458. package/dist/commonjs/types/blobs.d.ts.map +1 -0
  459. package/dist/commonjs/types/blobs.js +62 -0
  460. package/dist/commonjs/types/blobs.js.map +1 -0
  461. package/dist/commonjs/types/constdatetime.d.ts +3 -0
  462. package/dist/commonjs/types/constdatetime.d.ts.map +1 -0
  463. package/dist/commonjs/types/constdatetime.js +46 -0
  464. package/dist/commonjs/types/constdatetime.js.map +1 -0
  465. package/dist/commonjs/types/enums.d.ts +12 -0
  466. package/dist/commonjs/types/enums.d.ts.map +1 -0
  467. package/dist/commonjs/types/enums.js +10 -0
  468. package/dist/commonjs/types/enums.js.map +1 -0
  469. package/dist/commonjs/types/fp.d.ts +31 -0
  470. package/dist/commonjs/types/fp.d.ts.map +1 -0
  471. package/dist/commonjs/types/fp.js +37 -0
  472. package/dist/commonjs/types/fp.js.map +1 -0
  473. package/dist/commonjs/types/index.d.ts +8 -0
  474. package/dist/commonjs/types/index.d.ts.map +1 -0
  475. package/dist/commonjs/types/index.js +16 -0
  476. package/dist/commonjs/types/index.js.map +1 -0
  477. package/dist/commonjs/types/operations.d.ts +27 -0
  478. package/dist/commonjs/types/operations.d.ts.map +1 -0
  479. package/dist/commonjs/types/operations.js +83 -0
  480. package/dist/commonjs/types/operations.js.map +1 -0
  481. package/dist/commonjs/types/rfcdate.d.ts +21 -0
  482. package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
  483. package/dist/commonjs/types/rfcdate.js +46 -0
  484. package/dist/commonjs/types/rfcdate.js.map +1 -0
  485. package/dist/commonjs/types/streams.d.ts +2 -0
  486. package/dist/commonjs/types/streams.d.ts.map +1 -0
  487. package/dist/commonjs/types/streams.js +18 -0
  488. package/dist/commonjs/types/streams.js.map +1 -0
  489. package/dist/esm/core.d.ts +10 -0
  490. package/dist/esm/core.d.ts.map +1 -0
  491. package/dist/esm/core.js +13 -0
  492. package/dist/esm/core.js.map +1 -0
  493. package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts +18 -0
  494. package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts.map +1 -0
  495. package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js +96 -0
  496. package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js.map +1 -0
  497. package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
  498. package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
  499. package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js +94 -0
  500. package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
  501. package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
  502. package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
  503. package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js +91 -0
  504. package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
  505. package/dist/esm/funcs/merchantsGetV1Merchants.d.ts +18 -0
  506. package/dist/esm/funcs/merchantsGetV1Merchants.d.ts.map +1 -0
  507. package/dist/esm/funcs/merchantsGetV1Merchants.js +87 -0
  508. package/dist/esm/funcs/merchantsGetV1Merchants.js.map +1 -0
  509. package/dist/esm/funcs/merchantsGetV1MerchantsId.d.ts +18 -0
  510. package/dist/esm/funcs/merchantsGetV1MerchantsId.d.ts.map +1 -0
  511. package/dist/esm/funcs/merchantsGetV1MerchantsId.js +87 -0
  512. package/dist/esm/funcs/merchantsGetV1MerchantsId.js.map +1 -0
  513. package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.d.ts +18 -0
  514. package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.d.ts.map +1 -0
  515. package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.js +87 -0
  516. package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.js.map +1 -0
  517. package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.d.ts +18 -0
  518. package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.d.ts.map +1 -0
  519. package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.js +87 -0
  520. package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.js.map +1 -0
  521. package/dist/esm/funcs/merchantsPatchV1MerchantsId.d.ts +18 -0
  522. package/dist/esm/funcs/merchantsPatchV1MerchantsId.d.ts.map +1 -0
  523. package/dist/esm/funcs/merchantsPatchV1MerchantsId.js +88 -0
  524. package/dist/esm/funcs/merchantsPatchV1MerchantsId.js.map +1 -0
  525. package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.d.ts +18 -0
  526. package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.d.ts.map +1 -0
  527. package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.js +88 -0
  528. package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.js.map +1 -0
  529. package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.d.ts +18 -0
  530. package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.d.ts.map +1 -0
  531. package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.js +87 -0
  532. package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.js.map +1 -0
  533. package/dist/esm/funcs/merchantsPostV1MerchantsRegister.d.ts +18 -0
  534. package/dist/esm/funcs/merchantsPostV1MerchantsRegister.d.ts.map +1 -0
  535. package/dist/esm/funcs/merchantsPostV1MerchantsRegister.js +82 -0
  536. package/dist/esm/funcs/merchantsPostV1MerchantsRegister.js.map +1 -0
  537. package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts +18 -0
  538. package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts.map +1 -0
  539. package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js +95 -0
  540. package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js.map +1 -0
  541. package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts +18 -0
  542. package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts.map +1 -0
  543. package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.js +88 -0
  544. package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.js.map +1 -0
  545. package/dist/esm/funcs/scansGetV1Scans.d.ts +18 -0
  546. package/dist/esm/funcs/scansGetV1Scans.d.ts.map +1 -0
  547. package/dist/esm/funcs/scansGetV1Scans.js +88 -0
  548. package/dist/esm/funcs/scansGetV1Scans.js.map +1 -0
  549. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.d.ts +18 -0
  550. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.d.ts.map +1 -0
  551. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.js +92 -0
  552. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.js.map +1 -0
  553. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts +18 -0
  554. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts.map +1 -0
  555. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.js +87 -0
  556. package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.js.map +1 -0
  557. package/dist/esm/funcs/scansGetV1ScansScanId.d.ts +18 -0
  558. package/dist/esm/funcs/scansGetV1ScansScanId.d.ts.map +1 -0
  559. package/dist/esm/funcs/scansGetV1ScansScanId.js +87 -0
  560. package/dist/esm/funcs/scansGetV1ScansScanId.js.map +1 -0
  561. package/dist/esm/funcs/scansGetV1ScansScanIdReport.d.ts +18 -0
  562. package/dist/esm/funcs/scansGetV1ScansScanIdReport.d.ts.map +1 -0
  563. package/dist/esm/funcs/scansGetV1ScansScanIdReport.js +87 -0
  564. package/dist/esm/funcs/scansGetV1ScansScanIdReport.js.map +1 -0
  565. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.d.ts +18 -0
  566. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.d.ts.map +1 -0
  567. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.js +89 -0
  568. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.js.map +1 -0
  569. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts +18 -0
  570. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts.map +1 -0
  571. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.js +87 -0
  572. package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.js.map +1 -0
  573. package/dist/esm/funcs/webhooksDeleteV1WebhooksId.d.ts +18 -0
  574. package/dist/esm/funcs/webhooksDeleteV1WebhooksId.d.ts.map +1 -0
  575. package/dist/esm/funcs/webhooksDeleteV1WebhooksId.js +87 -0
  576. package/dist/esm/funcs/webhooksDeleteV1WebhooksId.js.map +1 -0
  577. package/dist/esm/funcs/webhooksGetV1Webhooks.d.ts +18 -0
  578. package/dist/esm/funcs/webhooksGetV1Webhooks.d.ts.map +1 -0
  579. package/dist/esm/funcs/webhooksGetV1Webhooks.js +86 -0
  580. package/dist/esm/funcs/webhooksGetV1Webhooks.js.map +1 -0
  581. package/dist/esm/funcs/webhooksPatchV1WebhooksId.d.ts +18 -0
  582. package/dist/esm/funcs/webhooksPatchV1WebhooksId.d.ts.map +1 -0
  583. package/dist/esm/funcs/webhooksPatchV1WebhooksId.js +88 -0
  584. package/dist/esm/funcs/webhooksPatchV1WebhooksId.js.map +1 -0
  585. package/dist/esm/funcs/webhooksPostV1Webhooks.d.ts +18 -0
  586. package/dist/esm/funcs/webhooksPostV1Webhooks.d.ts.map +1 -0
  587. package/dist/esm/funcs/webhooksPostV1Webhooks.js +82 -0
  588. package/dist/esm/funcs/webhooksPostV1Webhooks.js.map +1 -0
  589. package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.d.ts +18 -0
  590. package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.d.ts.map +1 -0
  591. package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.js +88 -0
  592. package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.js.map +1 -0
  593. package/dist/esm/hooks/hooks.d.ts +25 -0
  594. package/dist/esm/hooks/hooks.d.ts.map +1 -0
  595. package/dist/esm/hooks/hooks.js +82 -0
  596. package/dist/esm/hooks/hooks.js.map +1 -0
  597. package/dist/esm/hooks/index.d.ts +3 -0
  598. package/dist/esm/hooks/index.d.ts.map +1 -0
  599. package/dist/esm/hooks/index.js +6 -0
  600. package/dist/esm/hooks/index.js.map +1 -0
  601. package/dist/esm/hooks/registration.d.ts +3 -0
  602. package/dist/esm/hooks/registration.d.ts.map +1 -0
  603. package/dist/esm/hooks/registration.js +12 -0
  604. package/dist/esm/hooks/registration.js.map +1 -0
  605. package/dist/esm/hooks/types.d.ts +76 -0
  606. package/dist/esm/hooks/types.d.ts.map +1 -0
  607. package/dist/esm/hooks/types.js +5 -0
  608. package/dist/esm/hooks/types.js.map +1 -0
  609. package/dist/esm/index.d.ts +6 -0
  610. package/dist/esm/index.d.ts.map +1 -0
  611. package/dist/esm/index.js +8 -0
  612. package/dist/esm/index.js.map +1 -0
  613. package/dist/esm/lib/base64.d.ts +10 -0
  614. package/dist/esm/lib/base64.d.ts.map +1 -0
  615. package/dist/esm/lib/base64.js +29 -0
  616. package/dist/esm/lib/base64.js.map +1 -0
  617. package/dist/esm/lib/config.d.ts +38 -0
  618. package/dist/esm/lib/config.d.ts.map +1 -0
  619. package/dist/esm/lib/config.js +38 -0
  620. package/dist/esm/lib/config.js.map +1 -0
  621. package/dist/esm/lib/dlv.d.ts +14 -0
  622. package/dist/esm/lib/dlv.d.ts.map +1 -0
  623. package/dist/esm/lib/dlv.js +46 -0
  624. package/dist/esm/lib/dlv.js.map +1 -0
  625. package/dist/esm/lib/encodings.d.ts +52 -0
  626. package/dist/esm/lib/encodings.d.ts.map +1 -0
  627. package/dist/esm/lib/encodings.js +354 -0
  628. package/dist/esm/lib/encodings.js.map +1 -0
  629. package/dist/esm/lib/files.d.ts +13 -0
  630. package/dist/esm/lib/files.d.ts.map +1 -0
  631. package/dist/esm/lib/files.js +73 -0
  632. package/dist/esm/lib/files.js.map +1 -0
  633. package/dist/esm/lib/http.d.ts +67 -0
  634. package/dist/esm/lib/http.d.ts.map +1 -0
  635. package/dist/esm/lib/http.js +207 -0
  636. package/dist/esm/lib/http.js.map +1 -0
  637. package/dist/esm/lib/is-plain-object.d.ts +2 -0
  638. package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
  639. package/dist/esm/lib/is-plain-object.js +38 -0
  640. package/dist/esm/lib/is-plain-object.js.map +1 -0
  641. package/dist/esm/lib/logger.d.ts +6 -0
  642. package/dist/esm/lib/logger.d.ts.map +1 -0
  643. package/dist/esm/lib/logger.js +5 -0
  644. package/dist/esm/lib/logger.js.map +1 -0
  645. package/dist/esm/lib/matchers.d.ts +59 -0
  646. package/dist/esm/lib/matchers.d.ts.map +1 -0
  647. package/dist/esm/lib/matchers.js +199 -0
  648. package/dist/esm/lib/matchers.js.map +1 -0
  649. package/dist/esm/lib/primitives.d.ts +26 -0
  650. package/dist/esm/lib/primitives.d.ts.map +1 -0
  651. package/dist/esm/lib/primitives.js +103 -0
  652. package/dist/esm/lib/primitives.js.map +1 -0
  653. package/dist/esm/lib/retries.d.ts +38 -0
  654. package/dist/esm/lib/retries.d.ts.map +1 -0
  655. package/dist/esm/lib/retries.js +147 -0
  656. package/dist/esm/lib/retries.js.map +1 -0
  657. package/dist/esm/lib/schemas.d.ts +19 -0
  658. package/dist/esm/lib/schemas.d.ts.map +1 -0
  659. package/dist/esm/lib/schemas.js +57 -0
  660. package/dist/esm/lib/schemas.js.map +1 -0
  661. package/dist/esm/lib/sdks.d.ts +63 -0
  662. package/dist/esm/lib/sdks.d.ts.map +1 -0
  663. package/dist/esm/lib/sdks.js +265 -0
  664. package/dist/esm/lib/sdks.js.map +1 -0
  665. package/dist/esm/lib/security.d.ts +83 -0
  666. package/dist/esm/lib/security.d.ts.map +1 -0
  667. package/dist/esm/lib/security.js +136 -0
  668. package/dist/esm/lib/security.js.map +1 -0
  669. package/dist/esm/lib/url.d.ts +5 -0
  670. package/dist/esm/lib/url.d.ts.map +1 -0
  671. package/dist/esm/lib/url.js +22 -0
  672. package/dist/esm/lib/url.js.map +1 -0
  673. package/dist/esm/models/components/index.d.ts +2 -0
  674. package/dist/esm/models/components/index.d.ts.map +1 -0
  675. package/dist/esm/models/components/index.js +5 -0
  676. package/dist/esm/models/components/index.js.map +1 -0
  677. package/dist/esm/models/components/security.d.ts +29 -0
  678. package/dist/esm/models/components/security.d.ts.map +1 -0
  679. package/dist/esm/models/components/security.js +40 -0
  680. package/dist/esm/models/components/security.js.map +1 -0
  681. package/dist/esm/models/errors/apierror.d.ts +10 -0
  682. package/dist/esm/models/errors/apierror.d.ts.map +1 -0
  683. package/dist/esm/models/errors/apierror.js +24 -0
  684. package/dist/esm/models/errors/apierror.js.map +1 -0
  685. package/dist/esm/models/errors/beyondpcierror.d.ts +19 -0
  686. package/dist/esm/models/errors/beyondpcierror.d.ts.map +1 -0
  687. package/dist/esm/models/errors/beyondpcierror.js +16 -0
  688. package/dist/esm/models/errors/beyondpcierror.js.map +1 -0
  689. package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +199 -0
  690. package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
  691. package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js +215 -0
  692. package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
  693. package/dist/esm/models/errors/deletev1webhooksid.d.ts +199 -0
  694. package/dist/esm/models/errors/deletev1webhooksid.d.ts.map +1 -0
  695. package/dist/esm/models/errors/deletev1webhooksid.js +215 -0
  696. package/dist/esm/models/errors/deletev1webhooksid.js.map +1 -0
  697. package/dist/esm/models/errors/getv1merchants.d.ts +102 -0
  698. package/dist/esm/models/errors/getv1merchants.d.ts.map +1 -0
  699. package/dist/esm/models/errors/getv1merchants.js +111 -0
  700. package/dist/esm/models/errors/getv1merchants.js.map +1 -0
  701. package/dist/esm/models/errors/getv1merchantsid.d.ts +199 -0
  702. package/dist/esm/models/errors/getv1merchantsid.d.ts.map +1 -0
  703. package/dist/esm/models/errors/getv1merchantsid.js +216 -0
  704. package/dist/esm/models/errors/getv1merchantsid.js.map +1 -0
  705. package/dist/esm/models/errors/getv1merchantsidcompliance.d.ts +199 -0
  706. package/dist/esm/models/errors/getv1merchantsidcompliance.d.ts.map +1 -0
  707. package/dist/esm/models/errors/getv1merchantsidcompliance.js +213 -0
  708. package/dist/esm/models/errors/getv1merchantsidcompliance.js.map +1 -0
  709. package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.d.ts +199 -0
  710. package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  711. package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.js +211 -0
  712. package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.js.map +1 -0
  713. package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +199 -0
  714. package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
  715. package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js +213 -0
  716. package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
  717. package/dist/esm/models/errors/getv1merchantsregistrationid.d.ts +199 -0
  718. package/dist/esm/models/errors/getv1merchantsregistrationid.d.ts.map +1 -0
  719. package/dist/esm/models/errors/getv1merchantsregistrationid.js +213 -0
  720. package/dist/esm/models/errors/getv1merchantsregistrationid.js.map +1 -0
  721. package/dist/esm/models/errors/getv1scans.d.ts +199 -0
  722. package/dist/esm/models/errors/getv1scans.d.ts.map +1 -0
  723. package/dist/esm/models/errors/getv1scans.js +215 -0
  724. package/dist/esm/models/errors/getv1scans.js.map +1 -0
  725. package/dist/esm/models/errors/getv1scansmerchantsidscans.d.ts +199 -0
  726. package/dist/esm/models/errors/getv1scansmerchantsidscans.d.ts.map +1 -0
  727. package/dist/esm/models/errors/getv1scansmerchantsidscans.js +213 -0
  728. package/dist/esm/models/errors/getv1scansmerchantsidscans.js.map +1 -0
  729. package/dist/esm/models/errors/getv1scansmerchantsidscansnext.d.ts +199 -0
  730. package/dist/esm/models/errors/getv1scansmerchantsidscansnext.d.ts.map +1 -0
  731. package/dist/esm/models/errors/getv1scansmerchantsidscansnext.js +213 -0
  732. package/dist/esm/models/errors/getv1scansmerchantsidscansnext.js.map +1 -0
  733. package/dist/esm/models/errors/getv1scansscanid.d.ts +199 -0
  734. package/dist/esm/models/errors/getv1scansscanid.d.ts.map +1 -0
  735. package/dist/esm/models/errors/getv1scansscanid.js +217 -0
  736. package/dist/esm/models/errors/getv1scansscanid.js.map +1 -0
  737. package/dist/esm/models/errors/getv1scansscanidreport.d.ts +102 -0
  738. package/dist/esm/models/errors/getv1scansscanidreport.d.ts.map +1 -0
  739. package/dist/esm/models/errors/getv1scansscanidreport.js +112 -0
  740. package/dist/esm/models/errors/getv1scansscanidreport.js.map +1 -0
  741. package/dist/esm/models/errors/getv1webhooks.d.ts +199 -0
  742. package/dist/esm/models/errors/getv1webhooks.d.ts.map +1 -0
  743. package/dist/esm/models/errors/getv1webhooks.js +216 -0
  744. package/dist/esm/models/errors/getv1webhooks.js.map +1 -0
  745. package/dist/esm/models/errors/httpclienterrors.d.ts +44 -0
  746. package/dist/esm/models/errors/httpclienterrors.d.ts.map +1 -0
  747. package/dist/esm/models/errors/httpclienterrors.js +69 -0
  748. package/dist/esm/models/errors/httpclienterrors.js.map +1 -0
  749. package/dist/esm/models/errors/index.d.ts +30 -0
  750. package/dist/esm/models/errors/index.d.ts.map +1 -0
  751. package/dist/esm/models/errors/index.js +33 -0
  752. package/dist/esm/models/errors/index.js.map +1 -0
  753. package/dist/esm/models/errors/patchv1merchantsid.d.ts +296 -0
  754. package/dist/esm/models/errors/patchv1merchantsid.d.ts.map +1 -0
  755. package/dist/esm/models/errors/patchv1merchantsid.js +318 -0
  756. package/dist/esm/models/errors/patchv1merchantsid.js.map +1 -0
  757. package/dist/esm/models/errors/patchv1webhooksid.d.ts +296 -0
  758. package/dist/esm/models/errors/patchv1webhooksid.d.ts.map +1 -0
  759. package/dist/esm/models/errors/patchv1webhooksid.js +319 -0
  760. package/dist/esm/models/errors/patchv1webhooksid.js.map +1 -0
  761. package/dist/esm/models/errors/postv1merchantsidactivate.d.ts +296 -0
  762. package/dist/esm/models/errors/postv1merchantsidactivate.d.ts.map +1 -0
  763. package/dist/esm/models/errors/postv1merchantsidactivate.js +317 -0
  764. package/dist/esm/models/errors/postv1merchantsidactivate.js.map +1 -0
  765. package/dist/esm/models/errors/postv1merchantsidcancel.d.ts +296 -0
  766. package/dist/esm/models/errors/postv1merchantsidcancel.d.ts.map +1 -0
  767. package/dist/esm/models/errors/postv1merchantsidcancel.js +318 -0
  768. package/dist/esm/models/errors/postv1merchantsidcancel.js.map +1 -0
  769. package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.d.ts +199 -0
  770. package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  771. package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.js +212 -0
  772. package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.js.map +1 -0
  773. package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.d.ts +199 -0
  774. package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
  775. package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.js +213 -0
  776. package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.js.map +1 -0
  777. package/dist/esm/models/errors/postv1merchantsregister.d.ts +199 -0
  778. package/dist/esm/models/errors/postv1merchantsregister.d.ts.map +1 -0
  779. package/dist/esm/models/errors/postv1merchantsregister.js +215 -0
  780. package/dist/esm/models/errors/postv1merchantsregister.js.map +1 -0
  781. package/dist/esm/models/errors/postv1scansmerchantsidscans.d.ts +393 -0
  782. package/dist/esm/models/errors/postv1scansmerchantsidscans.d.ts.map +1 -0
  783. package/dist/esm/models/errors/postv1scansmerchantsidscans.js +419 -0
  784. package/dist/esm/models/errors/postv1scansmerchantsidscans.js.map +1 -0
  785. package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.d.ts +199 -0
  786. package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
  787. package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.js +213 -0
  788. package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.js.map +1 -0
  789. package/dist/esm/models/errors/postv1webhooks.d.ts +199 -0
  790. package/dist/esm/models/errors/postv1webhooks.d.ts.map +1 -0
  791. package/dist/esm/models/errors/postv1webhooks.js +217 -0
  792. package/dist/esm/models/errors/postv1webhooks.js.map +1 -0
  793. package/dist/esm/models/errors/postv1webhooksidtest.d.ts +296 -0
  794. package/dist/esm/models/errors/postv1webhooksidtest.d.ts.map +1 -0
  795. package/dist/esm/models/errors/postv1webhooksidtest.js +318 -0
  796. package/dist/esm/models/errors/postv1webhooksidtest.js.map +1 -0
  797. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  798. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  799. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  800. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  801. package/dist/esm/models/errors/sdkvalidationerror.d.ts +21 -0
  802. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -0
  803. package/dist/esm/models/errors/sdkvalidationerror.js +91 -0
  804. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -0
  805. package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +113 -0
  806. package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
  807. package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js +120 -0
  808. package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
  809. package/dist/esm/models/operations/deletev1webhooksid.d.ts +111 -0
  810. package/dist/esm/models/operations/deletev1webhooksid.d.ts.map +1 -0
  811. package/dist/esm/models/operations/deletev1webhooksid.js +110 -0
  812. package/dist/esm/models/operations/deletev1webhooksid.js.map +1 -0
  813. package/dist/esm/models/operations/getv1merchants.d.ts +237 -0
  814. package/dist/esm/models/operations/getv1merchants.d.ts.map +1 -0
  815. package/dist/esm/models/operations/getv1merchants.js +200 -0
  816. package/dist/esm/models/operations/getv1merchants.js.map +1 -0
  817. package/dist/esm/models/operations/getv1merchantsid.d.ts +172 -0
  818. package/dist/esm/models/operations/getv1merchantsid.d.ts.map +1 -0
  819. package/dist/esm/models/operations/getv1merchantsid.js +141 -0
  820. package/dist/esm/models/operations/getv1merchantsid.js.map +1 -0
  821. package/dist/esm/models/operations/getv1merchantsidcompliance.d.ts +173 -0
  822. package/dist/esm/models/operations/getv1merchantsidcompliance.d.ts.map +1 -0
  823. package/dist/esm/models/operations/getv1merchantsidcompliance.js +169 -0
  824. package/dist/esm/models/operations/getv1merchantsidcompliance.js.map +1 -0
  825. package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.d.ts +214 -0
  826. package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  827. package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.js +199 -0
  828. package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.js.map +1 -0
  829. package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +111 -0
  830. package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
  831. package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js +111 -0
  832. package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
  833. package/dist/esm/models/operations/getv1merchantsregistrationid.d.ts +156 -0
  834. package/dist/esm/models/operations/getv1merchantsregistrationid.d.ts.map +1 -0
  835. package/dist/esm/models/operations/getv1merchantsregistrationid.js +135 -0
  836. package/dist/esm/models/operations/getv1merchantsregistrationid.js.map +1 -0
  837. package/dist/esm/models/operations/getv1scans.d.ts +328 -0
  838. package/dist/esm/models/operations/getv1scans.d.ts.map +1 -0
  839. package/dist/esm/models/operations/getv1scans.js +283 -0
  840. package/dist/esm/models/operations/getv1scans.js.map +1 -0
  841. package/dist/esm/models/operations/getv1scansmerchantsidscans.d.ts +286 -0
  842. package/dist/esm/models/operations/getv1scansmerchantsidscans.d.ts.map +1 -0
  843. package/dist/esm/models/operations/getv1scansmerchantsidscans.js +256 -0
  844. package/dist/esm/models/operations/getv1scansmerchantsidscans.js.map +1 -0
  845. package/dist/esm/models/operations/getv1scansmerchantsidscansnext.d.ts +206 -0
  846. package/dist/esm/models/operations/getv1scansmerchantsidscansnext.d.ts.map +1 -0
  847. package/dist/esm/models/operations/getv1scansmerchantsidscansnext.js +190 -0
  848. package/dist/esm/models/operations/getv1scansmerchantsidscansnext.js.map +1 -0
  849. package/dist/esm/models/operations/getv1scansscanid.d.ts +369 -0
  850. package/dist/esm/models/operations/getv1scansscanid.d.ts.map +1 -0
  851. package/dist/esm/models/operations/getv1scansscanid.js +325 -0
  852. package/dist/esm/models/operations/getv1scansscanid.js.map +1 -0
  853. package/dist/esm/models/operations/getv1scansscanidreport.d.ts +59 -0
  854. package/dist/esm/models/operations/getv1scansscanidreport.d.ts.map +1 -0
  855. package/dist/esm/models/operations/getv1scansscanidreport.js +58 -0
  856. package/dist/esm/models/operations/getv1scansscanidreport.js.map +1 -0
  857. package/dist/esm/models/operations/getv1webhooks.d.ts +191 -0
  858. package/dist/esm/models/operations/getv1webhooks.d.ts.map +1 -0
  859. package/dist/esm/models/operations/getv1webhooks.js +173 -0
  860. package/dist/esm/models/operations/getv1webhooks.js.map +1 -0
  861. package/dist/esm/models/operations/index.d.ts +26 -0
  862. package/dist/esm/models/operations/index.d.ts.map +1 -0
  863. package/dist/esm/models/operations/index.js +29 -0
  864. package/dist/esm/models/operations/index.js.map +1 -0
  865. package/dist/esm/models/operations/patchv1merchantsid.d.ts +201 -0
  866. package/dist/esm/models/operations/patchv1merchantsid.d.ts.map +1 -0
  867. package/dist/esm/models/operations/patchv1merchantsid.js +179 -0
  868. package/dist/esm/models/operations/patchv1merchantsid.js.map +1 -0
  869. package/dist/esm/models/operations/patchv1webhooksid.d.ts +227 -0
  870. package/dist/esm/models/operations/patchv1webhooksid.d.ts.map +1 -0
  871. package/dist/esm/models/operations/patchv1webhooksid.js +205 -0
  872. package/dist/esm/models/operations/patchv1webhooksid.js.map +1 -0
  873. package/dist/esm/models/operations/postv1merchantsidactivate.d.ts +140 -0
  874. package/dist/esm/models/operations/postv1merchantsidactivate.d.ts.map +1 -0
  875. package/dist/esm/models/operations/postv1merchantsidactivate.js +130 -0
  876. package/dist/esm/models/operations/postv1merchantsidactivate.js.map +1 -0
  877. package/dist/esm/models/operations/postv1merchantsidcancel.d.ts +140 -0
  878. package/dist/esm/models/operations/postv1merchantsidcancel.d.ts.map +1 -0
  879. package/dist/esm/models/operations/postv1merchantsidcancel.js +130 -0
  880. package/dist/esm/models/operations/postv1merchantsidcancel.js.map +1 -0
  881. package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.d.ts +207 -0
  882. package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
  883. package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.js +199 -0
  884. package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.js.map +1 -0
  885. package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.d.ts +333 -0
  886. package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
  887. package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.js +275 -0
  888. package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.js.map +1 -0
  889. package/dist/esm/models/operations/postv1merchantsregister.d.ts +1845 -0
  890. package/dist/esm/models/operations/postv1merchantsregister.d.ts.map +1 -0
  891. package/dist/esm/models/operations/postv1merchantsregister.js +993 -0
  892. package/dist/esm/models/operations/postv1merchantsregister.js.map +1 -0
  893. package/dist/esm/models/operations/postv1scansmerchantsidscans.d.ts +140 -0
  894. package/dist/esm/models/operations/postv1scansmerchantsidscans.d.ts.map +1 -0
  895. package/dist/esm/models/operations/postv1scansmerchantsidscans.js +148 -0
  896. package/dist/esm/models/operations/postv1scansmerchantsidscans.js.map +1 -0
  897. package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.d.ts +111 -0
  898. package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
  899. package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.js +110 -0
  900. package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.js.map +1 -0
  901. package/dist/esm/models/operations/postv1webhooks.d.ts +203 -0
  902. package/dist/esm/models/operations/postv1webhooks.d.ts.map +1 -0
  903. package/dist/esm/models/operations/postv1webhooks.js +166 -0
  904. package/dist/esm/models/operations/postv1webhooks.js.map +1 -0
  905. package/dist/esm/models/operations/postv1webhooksidtest.d.ts +679 -0
  906. package/dist/esm/models/operations/postv1webhooksidtest.d.ts.map +1 -0
  907. package/dist/esm/models/operations/postv1webhooksidtest.js +651 -0
  908. package/dist/esm/models/operations/postv1webhooksidtest.js.map +1 -0
  909. package/dist/esm/package.json +3 -0
  910. package/dist/esm/sdk/assetconfigs.d.ts +26 -0
  911. package/dist/esm/sdk/assetconfigs.d.ts.map +1 -0
  912. package/dist/esm/sdk/assetconfigs.js +38 -0
  913. package/dist/esm/sdk/assetconfigs.js.map +1 -0
  914. package/dist/esm/sdk/index.d.ts +2 -0
  915. package/dist/esm/sdk/index.d.ts.map +1 -0
  916. package/dist/esm/sdk/index.js +5 -0
  917. package/dist/esm/sdk/index.js.map +1 -0
  918. package/dist/esm/sdk/merchants.d.ts +61 -0
  919. package/dist/esm/sdk/merchants.d.ts.map +1 -0
  920. package/dist/esm/sdk/merchants.js +88 -0
  921. package/dist/esm/sdk/merchants.js.map +1 -0
  922. package/dist/esm/sdk/saq.d.ts +19 -0
  923. package/dist/esm/sdk/saq.d.ts.map +1 -0
  924. package/dist/esm/sdk/saq.js +28 -0
  925. package/dist/esm/sdk/saq.js.map +1 -0
  926. package/dist/esm/sdk/scans.d.ts +54 -0
  927. package/dist/esm/sdk/scans.d.ts.map +1 -0
  928. package/dist/esm/sdk/scans.js +78 -0
  929. package/dist/esm/sdk/scans.js.map +1 -0
  930. package/dist/esm/sdk/sdk.d.ts +19 -0
  931. package/dist/esm/sdk/sdk.d.ts.map +1 -0
  932. package/dist/esm/sdk/sdk.js +27 -0
  933. package/dist/esm/sdk/sdk.js.map +1 -0
  934. package/dist/esm/sdk/webhooks.d.ts +40 -0
  935. package/dist/esm/sdk/webhooks.d.ts.map +1 -0
  936. package/dist/esm/sdk/webhooks.js +58 -0
  937. package/dist/esm/sdk/webhooks.js.map +1 -0
  938. package/dist/esm/types/async.d.ts +23 -0
  939. package/dist/esm/types/async.d.ts.map +1 -0
  940. package/dist/esm/types/async.js +40 -0
  941. package/dist/esm/types/async.js.map +1 -0
  942. package/dist/esm/types/blobs.d.ts +4 -0
  943. package/dist/esm/types/blobs.d.ts.map +1 -0
  944. package/dist/esm/types/blobs.js +25 -0
  945. package/dist/esm/types/blobs.js.map +1 -0
  946. package/dist/esm/types/constdatetime.d.ts +3 -0
  947. package/dist/esm/types/constdatetime.d.ts.map +1 -0
  948. package/dist/esm/types/constdatetime.js +10 -0
  949. package/dist/esm/types/constdatetime.js.map +1 -0
  950. package/dist/esm/types/enums.d.ts +12 -0
  951. package/dist/esm/types/enums.d.ts.map +1 -0
  952. package/dist/esm/types/enums.js +7 -0
  953. package/dist/esm/types/enums.js.map +1 -0
  954. package/dist/esm/types/fp.d.ts +31 -0
  955. package/dist/esm/types/fp.d.ts.map +1 -0
  956. package/dist/esm/types/fp.js +31 -0
  957. package/dist/esm/types/fp.js.map +1 -0
  958. package/dist/esm/types/index.d.ts +8 -0
  959. package/dist/esm/types/index.d.ts.map +1 -0
  960. package/dist/esm/types/index.js +8 -0
  961. package/dist/esm/types/index.js.map +1 -0
  962. package/dist/esm/types/operations.d.ts +27 -0
  963. package/dist/esm/types/operations.d.ts.map +1 -0
  964. package/dist/esm/types/operations.js +77 -0
  965. package/dist/esm/types/operations.js.map +1 -0
  966. package/dist/esm/types/rfcdate.d.ts +21 -0
  967. package/dist/esm/types/rfcdate.d.ts.map +1 -0
  968. package/dist/esm/types/rfcdate.js +42 -0
  969. package/dist/esm/types/rfcdate.js.map +1 -0
  970. package/dist/esm/types/streams.d.ts +2 -0
  971. package/dist/esm/types/streams.d.ts.map +1 -0
  972. package/dist/esm/types/streams.js +15 -0
  973. package/dist/esm/types/streams.js.map +1 -0
  974. package/jsr.json +27 -0
  975. package/package.json +126 -0
  976. package/src/core.ts +13 -0
  977. package/src/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.ts +203 -0
  978. package/src/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.ts +199 -0
  979. package/src/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.ts +195 -0
  980. package/src/funcs/merchantsGetV1Merchants.ts +175 -0
  981. package/src/funcs/merchantsGetV1MerchantsId.ts +179 -0
  982. package/src/funcs/merchantsGetV1MerchantsIdCompliance.ts +186 -0
  983. package/src/funcs/merchantsGetV1MerchantsRegistrationId.ts +191 -0
  984. package/src/funcs/merchantsPatchV1MerchantsId.ts +190 -0
  985. package/src/funcs/merchantsPostV1MerchantsIdActivate.ts +191 -0
  986. package/src/funcs/merchantsPostV1MerchantsIdCancel.ts +190 -0
  987. package/src/funcs/merchantsPostV1MerchantsRegister.ts +177 -0
  988. package/src/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.ts +201 -0
  989. package/src/funcs/saqPostV1MerchantsMerchantIdSAQLink.ts +192 -0
  990. package/src/funcs/scansGetV1Scans.ts +180 -0
  991. package/src/funcs/scansGetV1ScansMerchantsIdScans.ts +192 -0
  992. package/src/funcs/scansGetV1ScansMerchantsIdScansNext.ts +191 -0
  993. package/src/funcs/scansGetV1ScansScanId.ts +179 -0
  994. package/src/funcs/scansGetV1ScansScanIdReport.ts +176 -0
  995. package/src/funcs/scansPostV1ScansMerchantsIdScans.ts +205 -0
  996. package/src/funcs/scansPostV1ScansMerchantsIdScansCancel.ts +191 -0
  997. package/src/funcs/webhooksDeleteV1WebhooksId.ts +179 -0
  998. package/src/funcs/webhooksGetV1Webhooks.ts +178 -0
  999. package/src/funcs/webhooksPatchV1WebhooksId.ts +187 -0
  1000. package/src/funcs/webhooksPostV1Webhooks.ts +173 -0
  1001. package/src/funcs/webhooksPostV1WebhooksIdTest.ts +191 -0
  1002. package/src/hooks/hooks.ts +132 -0
  1003. package/src/hooks/index.ts +6 -0
  1004. package/src/hooks/registration.ts +14 -0
  1005. package/src/hooks/types.ts +107 -0
  1006. package/src/index.ts +9 -0
  1007. package/src/lib/base64.ts +37 -0
  1008. package/src/lib/config.ts +71 -0
  1009. package/src/lib/dlv.ts +53 -0
  1010. package/src/lib/encodings.ts +483 -0
  1011. package/src/lib/files.ts +82 -0
  1012. package/src/lib/http.ts +323 -0
  1013. package/src/lib/is-plain-object.ts +43 -0
  1014. package/src/lib/logger.ts +9 -0
  1015. package/src/lib/matchers.ts +345 -0
  1016. package/src/lib/primitives.ts +150 -0
  1017. package/src/lib/retries.ts +218 -0
  1018. package/src/lib/schemas.ts +91 -0
  1019. package/src/lib/sdks.ts +402 -0
  1020. package/src/lib/security.ts +260 -0
  1021. package/src/lib/url.ts +33 -0
  1022. package/src/models/components/index.ts +5 -0
  1023. package/src/models/components/security.ts +71 -0
  1024. package/src/models/errors/apierror.ts +34 -0
  1025. package/src/models/errors/beyondpcierror.ts +35 -0
  1026. package/src/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.ts +553 -0
  1027. package/src/models/errors/deletev1webhooksid.ts +444 -0
  1028. package/src/models/errors/getv1merchants.ts +206 -0
  1029. package/src/models/errors/getv1merchantsid.ts +442 -0
  1030. package/src/models/errors/getv1merchantsidcompliance.ts +478 -0
  1031. package/src/models/errors/getv1merchantsmerchantidassetconfigs.ts +522 -0
  1032. package/src/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.ts +534 -0
  1033. package/src/models/errors/getv1merchantsregistrationid.ts +487 -0
  1034. package/src/models/errors/getv1scans.ts +431 -0
  1035. package/src/models/errors/getv1scansmerchantsidscans.ts +463 -0
  1036. package/src/models/errors/getv1scansmerchantsidscansnext.ts +482 -0
  1037. package/src/models/errors/getv1scansscanid.ts +438 -0
  1038. package/src/models/errors/getv1scansscanidreport.ts +227 -0
  1039. package/src/models/errors/getv1webhooks.ts +437 -0
  1040. package/src/models/errors/httpclienterrors.ts +62 -0
  1041. package/src/models/errors/index.ts +33 -0
  1042. package/src/models/errors/patchv1merchantsid.ts +692 -0
  1043. package/src/models/errors/patchv1webhooksid.ts +684 -0
  1044. package/src/models/errors/postv1merchantsidactivate.ts +740 -0
  1045. package/src/models/errors/postv1merchantsidcancel.ts +724 -0
  1046. package/src/models/errors/postv1merchantsmerchantidassetconfigs.ts +525 -0
  1047. package/src/models/errors/postv1merchantsmerchantidsaqlink.ts +493 -0
  1048. package/src/models/errors/postv1merchantsregister.ts +465 -0
  1049. package/src/models/errors/postv1scansmerchantsidscans.ts +990 -0
  1050. package/src/models/errors/postv1scansmerchantsidscanscancel.ts +507 -0
  1051. package/src/models/errors/postv1webhooks.ts +440 -0
  1052. package/src/models/errors/postv1webhooksidtest.ts +702 -0
  1053. package/src/models/errors/responsevalidationerror.ts +50 -0
  1054. package/src/models/errors/sdkvalidationerror.ts +109 -0
  1055. package/src/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.ts +317 -0
  1056. package/src/models/operations/deletev1webhooksid.ts +253 -0
  1057. package/src/models/operations/getv1merchants.ts +410 -0
  1058. package/src/models/operations/getv1merchantsid.ts +322 -0
  1059. package/src/models/operations/getv1merchantsidcompliance.ts +381 -0
  1060. package/src/models/operations/getv1merchantsmerchantidassetconfigs.ts +487 -0
  1061. package/src/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.ts +316 -0
  1062. package/src/models/operations/getv1merchantsregistrationid.ts +321 -0
  1063. package/src/models/operations/getv1scans.ts +550 -0
  1064. package/src/models/operations/getv1scansmerchantsidscans.ts +566 -0
  1065. package/src/models/operations/getv1scansmerchantsidscansnext.ts +448 -0
  1066. package/src/models/operations/getv1scansscanid.ts +645 -0
  1067. package/src/models/operations/getv1scansscanidreport.ts +137 -0
  1068. package/src/models/operations/getv1webhooks.ts +372 -0
  1069. package/src/models/operations/index.ts +29 -0
  1070. package/src/models/operations/patchv1merchantsid.ts +401 -0
  1071. package/src/models/operations/patchv1webhooksid.ts +420 -0
  1072. package/src/models/operations/postv1merchantsidactivate.ts +293 -0
  1073. package/src/models/operations/postv1merchantsidcancel.ts +293 -0
  1074. package/src/models/operations/postv1merchantsmerchantidassetconfigs.ts +486 -0
  1075. package/src/models/operations/postv1merchantsmerchantidsaqlink.ts +584 -0
  1076. package/src/models/operations/postv1merchantsregister.ts +1760 -0
  1077. package/src/models/operations/postv1scansmerchantsidscans.ts +355 -0
  1078. package/src/models/operations/postv1scansmerchantsidscanscancel.ts +285 -0
  1079. package/src/models/operations/postv1webhooks.ts +337 -0
  1080. package/src/models/operations/postv1webhooksidtest.ts +1321 -0
  1081. package/src/sdk/assetconfigs.ts +68 -0
  1082. package/src/sdk/index.ts +5 -0
  1083. package/src/sdk/merchants.ts +153 -0
  1084. package/src/sdk/saq.ts +47 -0
  1085. package/src/sdk/scans.ts +135 -0
  1086. package/src/sdk/sdk.ts +37 -0
  1087. package/src/sdk/webhooks.ts +99 -0
  1088. package/src/types/async.ts +68 -0
  1089. package/src/types/blobs.ts +31 -0
  1090. package/src/types/constdatetime.ts +15 -0
  1091. package/src/types/enums.ts +16 -0
  1092. package/src/types/fp.ts +50 -0
  1093. package/src/types/index.ts +11 -0
  1094. package/src/types/operations.ts +105 -0
  1095. package/src/types/rfcdate.ts +54 -0
  1096. package/src/types/streams.ts +21 -0
  1097. package/tsconfig.json +41 -0
@@ -0,0 +1,323 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ export type Fetcher = (
6
+ input: RequestInfo | URL,
7
+ init?: RequestInit,
8
+ ) => Promise<Response>;
9
+
10
+ export type Awaitable<T> = T | Promise<T>;
11
+
12
+ const DEFAULT_FETCHER: Fetcher = (input, init) => {
13
+ // If input is a Request and init is undefined, Bun will discard the method,
14
+ // headers, body and other options that were set on the request object.
15
+ // Node.js and browers would ignore an undefined init value. This check is
16
+ // therefore needed for interop with Bun.
17
+ if (init == null) {
18
+ return fetch(input);
19
+ } else {
20
+ return fetch(input, init);
21
+ }
22
+ };
23
+
24
+ export type RequestInput = {
25
+ /**
26
+ * The URL the request will use.
27
+ */
28
+ url: URL;
29
+ /**
30
+ * Options used to create a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request).
31
+ */
32
+ options?: RequestInit | undefined;
33
+ };
34
+
35
+ export interface HTTPClientOptions {
36
+ fetcher?: Fetcher;
37
+ }
38
+
39
+ export type BeforeRequestHook = (req: Request) => Awaitable<Request | void>;
40
+ export type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>;
41
+ export type ResponseHook = (res: Response, req: Request) => Awaitable<void>;
42
+
43
+ export class HTTPClient {
44
+ private fetcher: Fetcher;
45
+ private requestHooks: BeforeRequestHook[] = [];
46
+ private requestErrorHooks: RequestErrorHook[] = [];
47
+ private responseHooks: ResponseHook[] = [];
48
+
49
+ constructor(private options: HTTPClientOptions = {}) {
50
+ this.fetcher = options.fetcher || DEFAULT_FETCHER;
51
+ }
52
+
53
+ async request(request: Request): Promise<Response> {
54
+ let req = request;
55
+ for (const hook of this.requestHooks) {
56
+ const nextRequest = await hook(req);
57
+ if (nextRequest) {
58
+ req = nextRequest;
59
+ }
60
+ }
61
+
62
+ try {
63
+ const res = await this.fetcher(req);
64
+
65
+ for (const hook of this.responseHooks) {
66
+ await hook(res, req);
67
+ }
68
+
69
+ return res;
70
+ } catch (err) {
71
+ for (const hook of this.requestErrorHooks) {
72
+ await hook(err, req);
73
+ }
74
+
75
+ throw err;
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Registers a hook that is called before a request is made. The hook function
81
+ * can mutate the request or return a new request. This may be useful to add
82
+ * additional information to request such as request IDs and tracing headers.
83
+ */
84
+ addHook(hook: "beforeRequest", fn: BeforeRequestHook): this;
85
+ /**
86
+ * Registers a hook that is called when a request cannot be made due to a
87
+ * network error.
88
+ */
89
+ addHook(hook: "requestError", fn: RequestErrorHook): this;
90
+ /**
91
+ * Registers a hook that is called when a response has been received from the
92
+ * server.
93
+ */
94
+ addHook(hook: "response", fn: ResponseHook): this;
95
+ addHook(
96
+ ...args:
97
+ | [hook: "beforeRequest", fn: BeforeRequestHook]
98
+ | [hook: "requestError", fn: RequestErrorHook]
99
+ | [hook: "response", fn: ResponseHook]
100
+ ) {
101
+ if (args[0] === "beforeRequest") {
102
+ this.requestHooks.push(args[1]);
103
+ } else if (args[0] === "requestError") {
104
+ this.requestErrorHooks.push(args[1]);
105
+ } else if (args[0] === "response") {
106
+ this.responseHooks.push(args[1]);
107
+ } else {
108
+ throw new Error(`Invalid hook type: ${args[0]}`);
109
+ }
110
+ return this;
111
+ }
112
+
113
+ /** Removes a hook that was previously registered with `addHook`. */
114
+ removeHook(hook: "beforeRequest", fn: BeforeRequestHook): this;
115
+ /** Removes a hook that was previously registered with `addHook`. */
116
+ removeHook(hook: "requestError", fn: RequestErrorHook): this;
117
+ /** Removes a hook that was previously registered with `addHook`. */
118
+ removeHook(hook: "response", fn: ResponseHook): this;
119
+ removeHook(
120
+ ...args:
121
+ | [hook: "beforeRequest", fn: BeforeRequestHook]
122
+ | [hook: "requestError", fn: RequestErrorHook]
123
+ | [hook: "response", fn: ResponseHook]
124
+ ): this {
125
+ let target: unknown[];
126
+ if (args[0] === "beforeRequest") {
127
+ target = this.requestHooks;
128
+ } else if (args[0] === "requestError") {
129
+ target = this.requestErrorHooks;
130
+ } else if (args[0] === "response") {
131
+ target = this.responseHooks;
132
+ } else {
133
+ throw new Error(`Invalid hook type: ${args[0]}`);
134
+ }
135
+
136
+ const index = target.findIndex((v) => v === args[1]);
137
+ if (index >= 0) {
138
+ target.splice(index, 1);
139
+ }
140
+
141
+ return this;
142
+ }
143
+
144
+ clone(): HTTPClient {
145
+ const child = new HTTPClient(this.options);
146
+ child.requestHooks = this.requestHooks.slice();
147
+ child.requestErrorHooks = this.requestErrorHooks.slice();
148
+ child.responseHooks = this.responseHooks.slice();
149
+
150
+ return child;
151
+ }
152
+ }
153
+
154
+ export type StatusCodePredicate = number | string | (number | string)[];
155
+
156
+ // A semicolon surrounded by optional whitespace characters is used to separate
157
+ // segments in a media type string.
158
+ const mediaParamSeparator = /\s*;\s*/g;
159
+
160
+ export function matchContentType(response: Response, pattern: string): boolean {
161
+ // `*` is a special case which means anything is acceptable.
162
+ if (pattern === "*") {
163
+ return true;
164
+ }
165
+
166
+ let contentType =
167
+ response.headers.get("content-type")?.trim() || "application/octet-stream";
168
+ contentType = contentType.toLowerCase();
169
+
170
+ const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator);
171
+ const [wantType = "", ...wantParams] = wantParts;
172
+
173
+ if (wantType.split("/").length !== 2) {
174
+ return false;
175
+ }
176
+
177
+ const gotParts = contentType.split(mediaParamSeparator);
178
+ const [gotType = "", ...gotParams] = gotParts;
179
+
180
+ const [type = "", subtype = ""] = gotType.split("/");
181
+ if (!type || !subtype) {
182
+ return false;
183
+ }
184
+
185
+ if (
186
+ wantType !== "*/*" &&
187
+ gotType !== wantType &&
188
+ `${type}/*` !== wantType &&
189
+ `*/${subtype}` !== wantType
190
+ ) {
191
+ return false;
192
+ }
193
+
194
+ if (gotParams.length < wantParams.length) {
195
+ return false;
196
+ }
197
+
198
+ const params = new Set(gotParams);
199
+ for (const wantParam of wantParams) {
200
+ if (!params.has(wantParam)) {
201
+ return false;
202
+ }
203
+ }
204
+
205
+ return true;
206
+ }
207
+
208
+ const codeRangeRE = new RegExp("^[0-9]xx$", "i");
209
+
210
+ export function matchStatusCode(
211
+ response: Response,
212
+ codes: StatusCodePredicate,
213
+ ): boolean {
214
+ const actual = `${response.status}`;
215
+ const expectedCodes = Array.isArray(codes) ? codes : [codes];
216
+ if (!expectedCodes.length) {
217
+ return false;
218
+ }
219
+
220
+ return expectedCodes.some((ec) => {
221
+ const code = `${ec}`;
222
+
223
+ if (code === "default") {
224
+ return true;
225
+ }
226
+
227
+ if (!codeRangeRE.test(`${code}`)) {
228
+ return code === actual;
229
+ }
230
+
231
+ const expectFamily = code.charAt(0);
232
+ if (!expectFamily) {
233
+ throw new Error("Invalid status code range");
234
+ }
235
+
236
+ const actualFamily = actual.charAt(0);
237
+ if (!actualFamily) {
238
+ throw new Error(`Invalid response status code: ${actual}`);
239
+ }
240
+
241
+ return actualFamily === expectFamily;
242
+ });
243
+ }
244
+
245
+ export function matchResponse(
246
+ response: Response,
247
+ code: StatusCodePredicate,
248
+ contentTypePattern: string,
249
+ ): boolean {
250
+ return (
251
+ matchStatusCode(response, code) &&
252
+ matchContentType(response, contentTypePattern)
253
+ );
254
+ }
255
+
256
+ /**
257
+ * Uses various heurisitics to determine if an error is a connection error.
258
+ */
259
+ export function isConnectionError(err: unknown): boolean {
260
+ if (typeof err !== "object" || err == null) {
261
+ return false;
262
+ }
263
+
264
+ // Covers fetch in Deno as well
265
+ const isBrowserErr =
266
+ err instanceof TypeError &&
267
+ err.message.toLowerCase().startsWith("failed to fetch");
268
+
269
+ const isNodeErr =
270
+ err instanceof TypeError &&
271
+ err.message.toLowerCase().startsWith("fetch failed");
272
+
273
+ const isBunErr = "name" in err && err.name === "ConnectionError";
274
+
275
+ const isGenericErr =
276
+ "code" in err &&
277
+ typeof err.code === "string" &&
278
+ err.code.toLowerCase() === "econnreset";
279
+
280
+ return isBrowserErr || isNodeErr || isGenericErr || isBunErr;
281
+ }
282
+
283
+ /**
284
+ * Uses various heurisitics to determine if an error is a timeout error.
285
+ */
286
+ export function isTimeoutError(err: unknown): boolean {
287
+ if (typeof err !== "object" || err == null) {
288
+ return false;
289
+ }
290
+
291
+ // Fetch in browser, Node.js, Bun, Deno
292
+ const isNative = "name" in err && err.name === "TimeoutError";
293
+ const isLegacyNative = "code" in err && err.code === 23;
294
+
295
+ // Node.js HTTP client and Axios
296
+ const isGenericErr =
297
+ "code" in err &&
298
+ typeof err.code === "string" &&
299
+ err.code.toLowerCase() === "econnaborted";
300
+
301
+ return isNative || isLegacyNative || isGenericErr;
302
+ }
303
+
304
+ /**
305
+ * Uses various heurisitics to determine if an error is a abort error.
306
+ */
307
+ export function isAbortError(err: unknown): boolean {
308
+ if (typeof err !== "object" || err == null) {
309
+ return false;
310
+ }
311
+
312
+ // Fetch in browser, Node.js, Bun, Deno
313
+ const isNative = "name" in err && err.name === "AbortError";
314
+ const isLegacyNative = "code" in err && err.code === 20;
315
+
316
+ // Node.js HTTP client and Axios
317
+ const isGenericErr =
318
+ "code" in err &&
319
+ typeof err.code === "string" &&
320
+ err.code.toLowerCase() === "econnaborted";
321
+
322
+ return isNative || isLegacyNative || isGenericErr;
323
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ /*
6
+ MIT License
7
+
8
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
11
+ this software and associated documentation files (the "Software"), to deal in
12
+ the Software without restriction, including without limitation the rights to
13
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
+ the Software, and to permit persons to whom the Software is furnished to do so,
15
+ subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+ */
27
+
28
+ // Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js
29
+
30
+ export function isPlainObject(value: unknown): value is object {
31
+ if (typeof value !== "object" || value === null) {
32
+ return false;
33
+ }
34
+
35
+ const prototype = Object.getPrototypeOf(value);
36
+ return (
37
+ (prototype === null ||
38
+ prototype === Object.prototype ||
39
+ Object.getPrototypeOf(prototype) === null) &&
40
+ !(Symbol.toStringTag in value) &&
41
+ !(Symbol.iterator in value)
42
+ );
43
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ export interface Logger {
6
+ group(label?: string): void;
7
+ groupEnd(): void;
8
+ log(message: any, ...args: any[]): void;
9
+ }
@@ -0,0 +1,345 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { APIError } from "../models/errors/apierror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { ERR, OK, Result } from "../types/fp.js";
8
+ import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
9
+ import { isPlainObject } from "./is-plain-object.js";
10
+
11
+ export type Encoding =
12
+ | "jsonl"
13
+ | "json"
14
+ | "text"
15
+ | "bytes"
16
+ | "stream"
17
+ | "sse"
18
+ | "nil"
19
+ | "fail";
20
+
21
+ const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
22
+ jsonl: "application/jsonl",
23
+ json: "application/json",
24
+ text: "text/plain",
25
+ bytes: "application/octet-stream",
26
+ stream: "application/octet-stream",
27
+ sse: "text/event-stream",
28
+ nil: "*",
29
+ fail: "*",
30
+ };
31
+
32
+ type Schema<T> = { parse(raw: unknown): T };
33
+
34
+ type MatchOptions = {
35
+ ctype?: string;
36
+ hdrs?: boolean;
37
+ key?: string;
38
+ sseSentinel?: string;
39
+ };
40
+
41
+ export type ValueMatcher<V> = MatchOptions & {
42
+ enc: Encoding;
43
+ codes: StatusCodePredicate;
44
+ schema: Schema<V>;
45
+ };
46
+
47
+ export type ErrorMatcher<E> = MatchOptions & {
48
+ enc: Encoding;
49
+ codes: StatusCodePredicate;
50
+ schema: Schema<E>;
51
+ err: true;
52
+ };
53
+
54
+ export type FailMatcher = {
55
+ enc: "fail";
56
+ codes: StatusCodePredicate;
57
+ };
58
+
59
+ export type Matcher<T, E> = ValueMatcher<T> | ErrorMatcher<E> | FailMatcher;
60
+
61
+ export function jsonErr<E>(
62
+ codes: StatusCodePredicate,
63
+ schema: Schema<E>,
64
+ options?: MatchOptions,
65
+ ): ErrorMatcher<E> {
66
+ return { ...options, err: true, enc: "json", codes, schema };
67
+ }
68
+ export function json<T>(
69
+ codes: StatusCodePredicate,
70
+ schema: Schema<T>,
71
+ options?: MatchOptions,
72
+ ): ValueMatcher<T> {
73
+ return { ...options, enc: "json", codes, schema };
74
+ }
75
+
76
+ export function jsonl<T>(
77
+ codes: StatusCodePredicate,
78
+ schema: Schema<T>,
79
+ options?: MatchOptions,
80
+ ): ValueMatcher<T> {
81
+ return { ...options, enc: "jsonl", codes, schema };
82
+ }
83
+
84
+ export function jsonlErr<E>(
85
+ codes: StatusCodePredicate,
86
+ schema: Schema<E>,
87
+ options?: MatchOptions,
88
+ ): ErrorMatcher<E> {
89
+ return { ...options, err: true, enc: "jsonl", codes, schema };
90
+ }
91
+ export function textErr<E>(
92
+ codes: StatusCodePredicate,
93
+ schema: Schema<E>,
94
+ options?: MatchOptions,
95
+ ): ErrorMatcher<E> {
96
+ return { ...options, err: true, enc: "text", codes, schema };
97
+ }
98
+ export function text<T>(
99
+ codes: StatusCodePredicate,
100
+ schema: Schema<T>,
101
+ options?: MatchOptions,
102
+ ): ValueMatcher<T> {
103
+ return { ...options, enc: "text", codes, schema };
104
+ }
105
+
106
+ export function bytesErr<E>(
107
+ codes: StatusCodePredicate,
108
+ schema: Schema<E>,
109
+ options?: MatchOptions,
110
+ ): ErrorMatcher<E> {
111
+ return { ...options, err: true, enc: "bytes", codes, schema };
112
+ }
113
+ export function bytes<T>(
114
+ codes: StatusCodePredicate,
115
+ schema: Schema<T>,
116
+ options?: MatchOptions,
117
+ ): ValueMatcher<T> {
118
+ return { ...options, enc: "bytes", codes, schema };
119
+ }
120
+
121
+ export function streamErr<E>(
122
+ codes: StatusCodePredicate,
123
+ schema: Schema<E>,
124
+ options?: MatchOptions,
125
+ ): ErrorMatcher<E> {
126
+ return { ...options, err: true, enc: "stream", codes, schema };
127
+ }
128
+ export function stream<T>(
129
+ codes: StatusCodePredicate,
130
+ schema: Schema<T>,
131
+ options?: MatchOptions,
132
+ ): ValueMatcher<T> {
133
+ return { ...options, enc: "stream", codes, schema };
134
+ }
135
+
136
+ export function sseErr<E>(
137
+ codes: StatusCodePredicate,
138
+ schema: Schema<E>,
139
+ options?: MatchOptions,
140
+ ): ErrorMatcher<E> {
141
+ return { ...options, err: true, enc: "sse", codes, schema };
142
+ }
143
+ export function sse<T>(
144
+ codes: StatusCodePredicate,
145
+ schema: Schema<T>,
146
+ options?: MatchOptions,
147
+ ): ValueMatcher<T> {
148
+ return { ...options, enc: "sse", codes, schema };
149
+ }
150
+
151
+ export function nilErr<E>(
152
+ codes: StatusCodePredicate,
153
+ schema: Schema<E>,
154
+ options?: MatchOptions,
155
+ ): ErrorMatcher<E> {
156
+ return { ...options, err: true, enc: "nil", codes, schema };
157
+ }
158
+ export function nil<T>(
159
+ codes: StatusCodePredicate,
160
+ schema: Schema<T>,
161
+ options?: MatchOptions,
162
+ ): ValueMatcher<T> {
163
+ return { ...options, enc: "nil", codes, schema };
164
+ }
165
+
166
+ export function fail(codes: StatusCodePredicate): FailMatcher {
167
+ return { enc: "fail", codes };
168
+ }
169
+
170
+ export type MatchedValue<Matchers> = Matchers extends Matcher<infer T, any>[]
171
+ ? T
172
+ : never;
173
+ export type MatchedError<Matchers> = Matchers extends Matcher<any, infer E>[]
174
+ ? E
175
+ : never;
176
+ export type MatchFunc<T, E> = (
177
+ response: Response,
178
+ request: Request,
179
+ options?: { resultKey?: string; extraFields?: Record<string, unknown> },
180
+ ) => Promise<[result: Result<T, E>, raw: unknown]>;
181
+
182
+ export function match<T, E>(
183
+ ...matchers: Array<Matcher<T, E>>
184
+ ): MatchFunc<T, E | APIError | ResponseValidationError> {
185
+ return async function matchFunc(
186
+ response: Response,
187
+ request: Request,
188
+ options?: { resultKey?: string; extraFields?: Record<string, unknown> },
189
+ ): Promise<
190
+ [result: Result<T, E | APIError | ResponseValidationError>, raw: unknown]
191
+ > {
192
+ let raw: unknown;
193
+ let matcher: Matcher<T, E> | undefined;
194
+ for (const match of matchers) {
195
+ const { codes } = match;
196
+ const ctpattern = "ctype" in match
197
+ ? match.ctype
198
+ : DEFAULT_CONTENT_TYPES[match.enc];
199
+ if (ctpattern && matchResponse(response, codes, ctpattern)) {
200
+ matcher = match;
201
+ break;
202
+ } else if (!ctpattern && matchStatusCode(response, codes)) {
203
+ matcher = match;
204
+ break;
205
+ }
206
+ }
207
+
208
+ if (!matcher) {
209
+ return [{
210
+ ok: false,
211
+ error: new APIError("Unexpected Status or Content-Type", {
212
+ response,
213
+ request,
214
+ body: await response.text().catch(() => ""),
215
+ }),
216
+ }, raw];
217
+ }
218
+
219
+ const encoding = matcher.enc;
220
+ let body = "";
221
+ switch (encoding) {
222
+ case "json":
223
+ body = await response.text();
224
+ raw = JSON.parse(body);
225
+ break;
226
+ case "jsonl":
227
+ raw = response.body;
228
+ break;
229
+ case "bytes":
230
+ raw = new Uint8Array(await response.arrayBuffer());
231
+ break;
232
+ case "stream":
233
+ raw = response.body;
234
+ break;
235
+ case "text":
236
+ body = await response.text();
237
+ raw = body;
238
+ break;
239
+ case "sse":
240
+ raw = response.body;
241
+ break;
242
+ case "nil":
243
+ body = await response.text();
244
+ raw = undefined;
245
+ break;
246
+ case "fail":
247
+ body = await response.text();
248
+ raw = body;
249
+ break;
250
+ default:
251
+ encoding satisfies never;
252
+ throw new Error(`Unsupported response type: ${encoding}`);
253
+ }
254
+
255
+ if (matcher.enc === "fail") {
256
+ return [{
257
+ ok: false,
258
+ error: new APIError("API error occurred", { request, response, body }),
259
+ }, raw];
260
+ }
261
+
262
+ const resultKey = matcher.key || options?.resultKey;
263
+ let data: unknown;
264
+
265
+ if ("err" in matcher) {
266
+ data = {
267
+ ...options?.extraFields,
268
+ ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null),
269
+ ...(isPlainObject(raw) ? raw : null),
270
+ request$: request,
271
+ response$: response,
272
+ body$: body,
273
+ };
274
+ } else if (resultKey) {
275
+ data = {
276
+ ...options?.extraFields,
277
+ ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null),
278
+ [resultKey]: raw,
279
+ };
280
+ } else if (matcher.hdrs) {
281
+ data = {
282
+ ...options?.extraFields,
283
+ ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null),
284
+ ...(isPlainObject(raw) ? raw : null),
285
+ };
286
+ } else {
287
+ data = raw;
288
+ }
289
+
290
+ if ("err" in matcher) {
291
+ const result = safeParseResponse(
292
+ data,
293
+ (v: unknown) => matcher.schema.parse(v),
294
+ "Response validation failed",
295
+ { request, response, body },
296
+ );
297
+ return [result.ok ? { ok: false, error: result.value } : result, raw];
298
+ } else {
299
+ return [
300
+ safeParseResponse(
301
+ data,
302
+ (v: unknown) => matcher.schema.parse(v),
303
+ "Response validation failed",
304
+ { request, response, body },
305
+ ),
306
+ raw,
307
+ ];
308
+ }
309
+ };
310
+ }
311
+
312
+ const headerValRE = /, */;
313
+ /**
314
+ * Iterates over a Headers object and returns an object with all the header
315
+ * entries. Values are represented as an array to account for repeated headers.
316
+ */
317
+ export function unpackHeaders(headers: Headers): Record<string, string[]> {
318
+ const out: Record<string, string[]> = {};
319
+
320
+ for (const [k, v] of headers.entries()) {
321
+ out[k] = v.split(headerValRE);
322
+ }
323
+
324
+ return out;
325
+ }
326
+
327
+ function safeParseResponse<Inp, Out>(
328
+ rawValue: Inp,
329
+ fn: (value: Inp) => Out,
330
+ errorMessage: string,
331
+ httpMeta: { response: Response; request: Request; body: string },
332
+ ): Result<Out, ResponseValidationError> {
333
+ try {
334
+ return OK(fn(rawValue));
335
+ } catch (err) {
336
+ return ERR(
337
+ new ResponseValidationError(errorMessage, {
338
+ cause: err,
339
+ rawValue,
340
+ rawMessage: errorMessage,
341
+ ...httpMeta,
342
+ }),
343
+ );
344
+ }
345
+ }