@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.
- package/FUNCTIONS.md +87 -0
- package/README.md +544 -0
- package/RUNTIMES.md +48 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts +18 -0
- package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts.map +1 -0
- package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js +132 -0
- package/dist/commonjs/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js.map +1 -0
- package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
- package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
- package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js +130 -0
- package/dist/commonjs/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
- package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
- package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
- package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js +127 -0
- package/dist/commonjs/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1Merchants.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsGetV1Merchants.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1Merchants.js +123 -0
- package/dist/commonjs/funcs/merchantsGetV1Merchants.js.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsId.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsId.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsId.js +123 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsId.js.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.js +123 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsIdCompliance.js.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.js +123 -0
- package/dist/commonjs/funcs/merchantsGetV1MerchantsRegistrationId.js.map +1 -0
- package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.js +124 -0
- package/dist/commonjs/funcs/merchantsPatchV1MerchantsId.js.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.js +124 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdActivate.js.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.js +123 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsIdCancel.js.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.d.ts +18 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.js +118 -0
- package/dist/commonjs/funcs/merchantsPostV1MerchantsRegister.js.map +1 -0
- package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts +18 -0
- package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts.map +1 -0
- package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js +131 -0
- package/dist/commonjs/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js.map +1 -0
- package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts +18 -0
- package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts.map +1 -0
- package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.js +124 -0
- package/dist/commonjs/funcs/saqPostV1MerchantsMerchantIdSAQLink.js.map +1 -0
- package/dist/commonjs/funcs/scansGetV1Scans.d.ts +18 -0
- package/dist/commonjs/funcs/scansGetV1Scans.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansGetV1Scans.js +124 -0
- package/dist/commonjs/funcs/scansGetV1Scans.js.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.d.ts +18 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.js +128 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScans.js.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts +18 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.js +123 -0
- package/dist/commonjs/funcs/scansGetV1ScansMerchantsIdScansNext.js.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanId.d.ts +18 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanId.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanId.js +123 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanId.js.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.d.ts +18 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.js +123 -0
- package/dist/commonjs/funcs/scansGetV1ScansScanIdReport.js.map +1 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.d.ts +18 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.js +125 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScans.js.map +1 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts +18 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts.map +1 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.js +123 -0
- package/dist/commonjs/funcs/scansPostV1ScansMerchantsIdScansCancel.js.map +1 -0
- package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.js +123 -0
- package/dist/commonjs/funcs/webhooksDeleteV1WebhooksId.js.map +1 -0
- package/dist/commonjs/funcs/webhooksGetV1Webhooks.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksGetV1Webhooks.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksGetV1Webhooks.js +122 -0
- package/dist/commonjs/funcs/webhooksGetV1Webhooks.js.map +1 -0
- package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.js +124 -0
- package/dist/commonjs/funcs/webhooksPatchV1WebhooksId.js.map +1 -0
- package/dist/commonjs/funcs/webhooksPostV1Webhooks.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksPostV1Webhooks.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksPostV1Webhooks.js +118 -0
- package/dist/commonjs/funcs/webhooksPostV1Webhooks.js.map +1 -0
- package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.d.ts +18 -0
- package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.js +124 -0
- package/dist/commonjs/funcs/webhooksPostV1WebhooksIdTest.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +25 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +86 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts +3 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -0
- package/dist/commonjs/hooks/registration.js +15 -0
- package/dist/commonjs/hooks/registration.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +76 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +71 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +38 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +42 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/dlv.d.ts +14 -0
- package/dist/commonjs/lib/dlv.d.ts.map +1 -0
- package/dist/commonjs/lib/dlv.js +49 -0
- package/dist/commonjs/lib/dlv.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +52 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +368 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +77 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +217 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
- package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
- package/dist/commonjs/lib/is-plain-object.js +41 -0
- package/dist/commonjs/lib/is-plain-object.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +218 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +26 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +111 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +153 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +19 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +62 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +269 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +83 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +143 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +25 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -0
- package/dist/commonjs/models/components/index.js +21 -0
- package/dist/commonjs/models/components/index.js.map +1 -0
- package/dist/commonjs/models/components/security.d.ts +29 -0
- package/dist/commonjs/models/components/security.d.ts.map +1 -0
- package/dist/commonjs/models/components/security.js +78 -0
- package/dist/commonjs/models/components/security.js.map +1 -0
- package/dist/commonjs/models/errors/apierror.d.ts +10 -0
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/apierror.js +28 -0
- package/dist/commonjs/models/errors/apierror.js.map +1 -0
- package/dist/commonjs/models/errors/beyondpcierror.d.ts +19 -0
- package/dist/commonjs/models/errors/beyondpcierror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/beyondpcierror.js +20 -0
- package/dist/commonjs/models/errors/beyondpcierror.js.map +1 -0
- package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +199 -0
- package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js +261 -0
- package/dist/commonjs/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
- package/dist/commonjs/models/errors/deletev1webhooksid.d.ts +199 -0
- package/dist/commonjs/models/errors/deletev1webhooksid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/deletev1webhooksid.js +261 -0
- package/dist/commonjs/models/errors/deletev1webhooksid.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchants.d.ts +102 -0
- package/dist/commonjs/models/errors/getv1merchants.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchants.js +152 -0
- package/dist/commonjs/models/errors/getv1merchants.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsid.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1merchantsid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsid.js +262 -0
- package/dist/commonjs/models/errors/getv1merchantsid.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsidcompliance.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1merchantsidcompliance.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsidcompliance.js +259 -0
- package/dist/commonjs/models/errors/getv1merchantsidcompliance.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.js +257 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js +259 -0
- package/dist/commonjs/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsregistrationid.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1merchantsregistrationid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1merchantsregistrationid.js +259 -0
- package/dist/commonjs/models/errors/getv1merchantsregistrationid.js.map +1 -0
- package/dist/commonjs/models/errors/getv1scans.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1scans.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1scans.js +261 -0
- package/dist/commonjs/models/errors/getv1scans.js.map +1 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscans.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscans.js +259 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscans.js.map +1 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.js +259 -0
- package/dist/commonjs/models/errors/getv1scansmerchantsidscansnext.js.map +1 -0
- package/dist/commonjs/models/errors/getv1scansscanid.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1scansscanid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1scansscanid.js +263 -0
- package/dist/commonjs/models/errors/getv1scansscanid.js.map +1 -0
- package/dist/commonjs/models/errors/getv1scansscanidreport.d.ts +102 -0
- package/dist/commonjs/models/errors/getv1scansscanidreport.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1scansscanidreport.js +153 -0
- package/dist/commonjs/models/errors/getv1scansscanidreport.js.map +1 -0
- package/dist/commonjs/models/errors/getv1webhooks.d.ts +199 -0
- package/dist/commonjs/models/errors/getv1webhooks.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1webhooks.js +262 -0
- package/dist/commonjs/models/errors/getv1webhooks.js.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.js +78 -0
- package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +30 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/models/errors/index.js +49 -0
- package/dist/commonjs/models/errors/index.js.map +1 -0
- package/dist/commonjs/models/errors/patchv1merchantsid.d.ts +296 -0
- package/dist/commonjs/models/errors/patchv1merchantsid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/patchv1merchantsid.js +369 -0
- package/dist/commonjs/models/errors/patchv1merchantsid.js.map +1 -0
- package/dist/commonjs/models/errors/patchv1webhooksid.d.ts +296 -0
- package/dist/commonjs/models/errors/patchv1webhooksid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/patchv1webhooksid.js +370 -0
- package/dist/commonjs/models/errors/patchv1webhooksid.js.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsidactivate.d.ts +296 -0
- package/dist/commonjs/models/errors/postv1merchantsidactivate.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsidactivate.js +368 -0
- package/dist/commonjs/models/errors/postv1merchantsidactivate.js.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsidcancel.d.ts +296 -0
- package/dist/commonjs/models/errors/postv1merchantsidcancel.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsidcancel.js +369 -0
- package/dist/commonjs/models/errors/postv1merchantsidcancel.js.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.d.ts +199 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.js +258 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.d.ts +199 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.js +259 -0
- package/dist/commonjs/models/errors/postv1merchantsmerchantidsaqlink.js.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsregister.d.ts +199 -0
- package/dist/commonjs/models/errors/postv1merchantsregister.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1merchantsregister.js +261 -0
- package/dist/commonjs/models/errors/postv1merchantsregister.js.map +1 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscans.d.ts +393 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscans.js +475 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscans.js.map +1 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.d.ts +199 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.js +259 -0
- package/dist/commonjs/models/errors/postv1scansmerchantsidscanscancel.js.map +1 -0
- package/dist/commonjs/models/errors/postv1webhooks.d.ts +199 -0
- package/dist/commonjs/models/errors/postv1webhooks.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1webhooks.js +263 -0
- package/dist/commonjs/models/errors/postv1webhooks.js.map +1 -0
- package/dist/commonjs/models/errors/postv1webhooksidtest.d.ts +296 -0
- package/dist/commonjs/models/errors/postv1webhooksidtest.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1webhooksidtest.js +369 -0
- package/dist/commonjs/models/errors/postv1webhooksidtest.js.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js +129 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +113 -0
- package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js +164 -0
- package/dist/commonjs/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
- package/dist/commonjs/models/operations/deletev1webhooksid.d.ts +111 -0
- package/dist/commonjs/models/operations/deletev1webhooksid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletev1webhooksid.js +154 -0
- package/dist/commonjs/models/operations/deletev1webhooksid.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchants.d.ts +237 -0
- package/dist/commonjs/models/operations/getv1merchants.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchants.js +246 -0
- package/dist/commonjs/models/operations/getv1merchants.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsid.d.ts +172 -0
- package/dist/commonjs/models/operations/getv1merchantsid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsid.js +185 -0
- package/dist/commonjs/models/operations/getv1merchantsid.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsidcompliance.d.ts +173 -0
- package/dist/commonjs/models/operations/getv1merchantsidcompliance.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsidcompliance.js +217 -0
- package/dist/commonjs/models/operations/getv1merchantsidcompliance.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.d.ts +214 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.js +245 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +111 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js +155 -0
- package/dist/commonjs/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsregistrationid.d.ts +156 -0
- package/dist/commonjs/models/operations/getv1merchantsregistrationid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1merchantsregistrationid.js +179 -0
- package/dist/commonjs/models/operations/getv1merchantsregistrationid.js.map +1 -0
- package/dist/commonjs/models/operations/getv1scans.d.ts +328 -0
- package/dist/commonjs/models/operations/getv1scans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1scans.js +331 -0
- package/dist/commonjs/models/operations/getv1scans.js.map +1 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscans.d.ts +286 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscans.js +304 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscans.js.map +1 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.d.ts +206 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.js +236 -0
- package/dist/commonjs/models/operations/getv1scansmerchantsidscansnext.js.map +1 -0
- package/dist/commonjs/models/operations/getv1scansscanid.d.ts +369 -0
- package/dist/commonjs/models/operations/getv1scansscanid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1scansscanid.js +373 -0
- package/dist/commonjs/models/operations/getv1scansscanid.js.map +1 -0
- package/dist/commonjs/models/operations/getv1scansscanidreport.d.ts +59 -0
- package/dist/commonjs/models/operations/getv1scansscanidreport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1scansscanidreport.js +98 -0
- package/dist/commonjs/models/operations/getv1scansscanidreport.js.map +1 -0
- package/dist/commonjs/models/operations/getv1webhooks.d.ts +191 -0
- package/dist/commonjs/models/operations/getv1webhooks.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1webhooks.js +219 -0
- package/dist/commonjs/models/operations/getv1webhooks.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +26 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -0
- package/dist/commonjs/models/operations/index.js +45 -0
- package/dist/commonjs/models/operations/index.js.map +1 -0
- package/dist/commonjs/models/operations/patchv1merchantsid.d.ts +201 -0
- package/dist/commonjs/models/operations/patchv1merchantsid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patchv1merchantsid.js +225 -0
- package/dist/commonjs/models/operations/patchv1merchantsid.js.map +1 -0
- package/dist/commonjs/models/operations/patchv1webhooksid.d.ts +227 -0
- package/dist/commonjs/models/operations/patchv1webhooksid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patchv1webhooksid.js +251 -0
- package/dist/commonjs/models/operations/patchv1webhooksid.js.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsidactivate.d.ts +140 -0
- package/dist/commonjs/models/operations/postv1merchantsidactivate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsidactivate.js +174 -0
- package/dist/commonjs/models/operations/postv1merchantsidactivate.js.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsidcancel.d.ts +140 -0
- package/dist/commonjs/models/operations/postv1merchantsidcancel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsidcancel.js +174 -0
- package/dist/commonjs/models/operations/postv1merchantsidcancel.js.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.d.ts +207 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.js +245 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.d.ts +333 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.js +323 -0
- package/dist/commonjs/models/operations/postv1merchantsmerchantidsaqlink.js.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsregister.d.ts +1845 -0
- package/dist/commonjs/models/operations/postv1merchantsregister.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1merchantsregister.js +1054 -0
- package/dist/commonjs/models/operations/postv1merchantsregister.js.map +1 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscans.d.ts +140 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscans.js +194 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscans.js.map +1 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.d.ts +111 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.js +154 -0
- package/dist/commonjs/models/operations/postv1scansmerchantsidscanscancel.js.map +1 -0
- package/dist/commonjs/models/operations/postv1webhooks.d.ts +203 -0
- package/dist/commonjs/models/operations/postv1webhooks.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1webhooks.js +210 -0
- package/dist/commonjs/models/operations/postv1webhooks.js.map +1 -0
- package/dist/commonjs/models/operations/postv1webhooksidtest.d.ts +679 -0
- package/dist/commonjs/models/operations/postv1webhooksidtest.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1webhooksidtest.js +722 -0
- package/dist/commonjs/models/operations/postv1webhooksidtest.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/assetconfigs.d.ts +26 -0
- package/dist/commonjs/sdk/assetconfigs.d.ts.map +1 -0
- package/dist/commonjs/sdk/assetconfigs.js +42 -0
- package/dist/commonjs/sdk/assetconfigs.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/merchants.d.ts +61 -0
- package/dist/commonjs/sdk/merchants.d.ts.map +1 -0
- package/dist/commonjs/sdk/merchants.js +92 -0
- package/dist/commonjs/sdk/merchants.js.map +1 -0
- package/dist/commonjs/sdk/saq.d.ts +19 -0
- package/dist/commonjs/sdk/saq.d.ts.map +1 -0
- package/dist/commonjs/sdk/saq.js +32 -0
- package/dist/commonjs/sdk/saq.js.map +1 -0
- package/dist/commonjs/sdk/scans.d.ts +54 -0
- package/dist/commonjs/sdk/scans.d.ts.map +1 -0
- package/dist/commonjs/sdk/scans.js +82 -0
- package/dist/commonjs/sdk/scans.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +19 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +31 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/sdk/webhooks.d.ts +40 -0
- package/dist/commonjs/sdk/webhooks.d.ts.map +1 -0
- package/dist/commonjs/sdk/webhooks.js +62 -0
- package/dist/commonjs/sdk/webhooks.js.map +1 -0
- package/dist/commonjs/types/async.d.ts +23 -0
- package/dist/commonjs/types/async.d.ts.map +1 -0
- package/dist/commonjs/types/async.js +44 -0
- package/dist/commonjs/types/async.js.map +1 -0
- package/dist/commonjs/types/blobs.d.ts +4 -0
- package/dist/commonjs/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/types/blobs.js +62 -0
- package/dist/commonjs/types/blobs.js.map +1 -0
- package/dist/commonjs/types/constdatetime.d.ts +3 -0
- package/dist/commonjs/types/constdatetime.d.ts.map +1 -0
- package/dist/commonjs/types/constdatetime.js +46 -0
- package/dist/commonjs/types/constdatetime.js.map +1 -0
- package/dist/commonjs/types/enums.d.ts +12 -0
- package/dist/commonjs/types/enums.d.ts.map +1 -0
- package/dist/commonjs/types/enums.js +10 -0
- package/dist/commonjs/types/enums.js.map +1 -0
- package/dist/commonjs/types/fp.d.ts +31 -0
- package/dist/commonjs/types/fp.d.ts.map +1 -0
- package/dist/commonjs/types/fp.js +37 -0
- package/dist/commonjs/types/fp.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +8 -0
- package/dist/commonjs/types/index.d.ts.map +1 -0
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/types/operations.d.ts +27 -0
- package/dist/commonjs/types/operations.d.ts.map +1 -0
- package/dist/commonjs/types/operations.js +83 -0
- package/dist/commonjs/types/operations.js.map +1 -0
- package/dist/commonjs/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/types/rfcdate.js +46 -0
- package/dist/commonjs/types/rfcdate.js.map +1 -0
- package/dist/commonjs/types/streams.d.ts +2 -0
- package/dist/commonjs/types/streams.d.ts.map +1 -0
- package/dist/commonjs/types/streams.js +18 -0
- package/dist/commonjs/types/streams.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts +18 -0
- package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.d.ts.map +1 -0
- package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js +96 -0
- package/dist/esm/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.js.map +1 -0
- package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
- package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
- package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js +94 -0
- package/dist/esm/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
- package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts +18 -0
- package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.d.ts.map +1 -0
- package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js +91 -0
- package/dist/esm/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.js.map +1 -0
- package/dist/esm/funcs/merchantsGetV1Merchants.d.ts +18 -0
- package/dist/esm/funcs/merchantsGetV1Merchants.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsGetV1Merchants.js +87 -0
- package/dist/esm/funcs/merchantsGetV1Merchants.js.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsId.d.ts +18 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsId.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsId.js +87 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsId.js.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.d.ts +18 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.js +87 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsIdCompliance.js.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.d.ts +18 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.js +87 -0
- package/dist/esm/funcs/merchantsGetV1MerchantsRegistrationId.js.map +1 -0
- package/dist/esm/funcs/merchantsPatchV1MerchantsId.d.ts +18 -0
- package/dist/esm/funcs/merchantsPatchV1MerchantsId.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsPatchV1MerchantsId.js +88 -0
- package/dist/esm/funcs/merchantsPatchV1MerchantsId.js.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.d.ts +18 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.js +88 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdActivate.js.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.d.ts +18 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.js +87 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsIdCancel.js.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsRegister.d.ts +18 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsRegister.d.ts.map +1 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsRegister.js +82 -0
- package/dist/esm/funcs/merchantsPostV1MerchantsRegister.js.map +1 -0
- package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts +18 -0
- package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.d.ts.map +1 -0
- package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js +95 -0
- package/dist/esm/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.js.map +1 -0
- package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts +18 -0
- package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.d.ts.map +1 -0
- package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.js +88 -0
- package/dist/esm/funcs/saqPostV1MerchantsMerchantIdSAQLink.js.map +1 -0
- package/dist/esm/funcs/scansGetV1Scans.d.ts +18 -0
- package/dist/esm/funcs/scansGetV1Scans.d.ts.map +1 -0
- package/dist/esm/funcs/scansGetV1Scans.js +88 -0
- package/dist/esm/funcs/scansGetV1Scans.js.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.d.ts +18 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.d.ts.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.js +92 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScans.js.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts +18 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.d.ts.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.js +87 -0
- package/dist/esm/funcs/scansGetV1ScansMerchantsIdScansNext.js.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansScanId.d.ts +18 -0
- package/dist/esm/funcs/scansGetV1ScansScanId.d.ts.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansScanId.js +87 -0
- package/dist/esm/funcs/scansGetV1ScansScanId.js.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansScanIdReport.d.ts +18 -0
- package/dist/esm/funcs/scansGetV1ScansScanIdReport.d.ts.map +1 -0
- package/dist/esm/funcs/scansGetV1ScansScanIdReport.js +87 -0
- package/dist/esm/funcs/scansGetV1ScansScanIdReport.js.map +1 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.d.ts +18 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.d.ts.map +1 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.js +89 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScans.js.map +1 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts +18 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.d.ts.map +1 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.js +87 -0
- package/dist/esm/funcs/scansPostV1ScansMerchantsIdScansCancel.js.map +1 -0
- package/dist/esm/funcs/webhooksDeleteV1WebhooksId.d.ts +18 -0
- package/dist/esm/funcs/webhooksDeleteV1WebhooksId.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksDeleteV1WebhooksId.js +87 -0
- package/dist/esm/funcs/webhooksDeleteV1WebhooksId.js.map +1 -0
- package/dist/esm/funcs/webhooksGetV1Webhooks.d.ts +18 -0
- package/dist/esm/funcs/webhooksGetV1Webhooks.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksGetV1Webhooks.js +86 -0
- package/dist/esm/funcs/webhooksGetV1Webhooks.js.map +1 -0
- package/dist/esm/funcs/webhooksPatchV1WebhooksId.d.ts +18 -0
- package/dist/esm/funcs/webhooksPatchV1WebhooksId.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksPatchV1WebhooksId.js +88 -0
- package/dist/esm/funcs/webhooksPatchV1WebhooksId.js.map +1 -0
- package/dist/esm/funcs/webhooksPostV1Webhooks.d.ts +18 -0
- package/dist/esm/funcs/webhooksPostV1Webhooks.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksPostV1Webhooks.js +82 -0
- package/dist/esm/funcs/webhooksPostV1Webhooks.js.map +1 -0
- package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.d.ts +18 -0
- package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.d.ts.map +1 -0
- package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.js +88 -0
- package/dist/esm/funcs/webhooksPostV1WebhooksIdTest.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +25 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +82 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts +3 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -0
- package/dist/esm/hooks/registration.js +12 -0
- package/dist/esm/hooks/registration.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +76 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +29 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +38 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +38 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/dlv.d.ts +14 -0
- package/dist/esm/lib/dlv.d.ts.map +1 -0
- package/dist/esm/lib/dlv.js +46 -0
- package/dist/esm/lib/dlv.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +52 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +354 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +73 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +207 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/is-plain-object.d.ts +2 -0
- package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
- package/dist/esm/lib/is-plain-object.js +38 -0
- package/dist/esm/lib/is-plain-object.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +199 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +26 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +103 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +147 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +19 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +265 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +83 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +136 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +22 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -0
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -0
- package/dist/esm/models/components/security.d.ts +29 -0
- package/dist/esm/models/components/security.d.ts.map +1 -0
- package/dist/esm/models/components/security.js +40 -0
- package/dist/esm/models/components/security.js.map +1 -0
- package/dist/esm/models/errors/apierror.d.ts +10 -0
- package/dist/esm/models/errors/apierror.d.ts.map +1 -0
- package/dist/esm/models/errors/apierror.js +24 -0
- package/dist/esm/models/errors/apierror.js.map +1 -0
- package/dist/esm/models/errors/beyondpcierror.d.ts +19 -0
- package/dist/esm/models/errors/beyondpcierror.d.ts.map +1 -0
- package/dist/esm/models/errors/beyondpcierror.js +16 -0
- package/dist/esm/models/errors/beyondpcierror.js.map +1 -0
- package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +199 -0
- package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
- package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js +215 -0
- package/dist/esm/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
- package/dist/esm/models/errors/deletev1webhooksid.d.ts +199 -0
- package/dist/esm/models/errors/deletev1webhooksid.d.ts.map +1 -0
- package/dist/esm/models/errors/deletev1webhooksid.js +215 -0
- package/dist/esm/models/errors/deletev1webhooksid.js.map +1 -0
- package/dist/esm/models/errors/getv1merchants.d.ts +102 -0
- package/dist/esm/models/errors/getv1merchants.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchants.js +111 -0
- package/dist/esm/models/errors/getv1merchants.js.map +1 -0
- package/dist/esm/models/errors/getv1merchantsid.d.ts +199 -0
- package/dist/esm/models/errors/getv1merchantsid.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchantsid.js +216 -0
- package/dist/esm/models/errors/getv1merchantsid.js.map +1 -0
- package/dist/esm/models/errors/getv1merchantsidcompliance.d.ts +199 -0
- package/dist/esm/models/errors/getv1merchantsidcompliance.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchantsidcompliance.js +213 -0
- package/dist/esm/models/errors/getv1merchantsidcompliance.js.map +1 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.d.ts +199 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.js +211 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +199 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js +213 -0
- package/dist/esm/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
- package/dist/esm/models/errors/getv1merchantsregistrationid.d.ts +199 -0
- package/dist/esm/models/errors/getv1merchantsregistrationid.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1merchantsregistrationid.js +213 -0
- package/dist/esm/models/errors/getv1merchantsregistrationid.js.map +1 -0
- package/dist/esm/models/errors/getv1scans.d.ts +199 -0
- package/dist/esm/models/errors/getv1scans.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1scans.js +215 -0
- package/dist/esm/models/errors/getv1scans.js.map +1 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscans.d.ts +199 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscans.js +213 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscans.js.map +1 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscansnext.d.ts +199 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscansnext.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscansnext.js +213 -0
- package/dist/esm/models/errors/getv1scansmerchantsidscansnext.js.map +1 -0
- package/dist/esm/models/errors/getv1scansscanid.d.ts +199 -0
- package/dist/esm/models/errors/getv1scansscanid.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1scansscanid.js +217 -0
- package/dist/esm/models/errors/getv1scansscanid.js.map +1 -0
- package/dist/esm/models/errors/getv1scansscanidreport.d.ts +102 -0
- package/dist/esm/models/errors/getv1scansscanidreport.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1scansscanidreport.js +112 -0
- package/dist/esm/models/errors/getv1scansscanidreport.js.map +1 -0
- package/dist/esm/models/errors/getv1webhooks.d.ts +199 -0
- package/dist/esm/models/errors/getv1webhooks.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1webhooks.js +216 -0
- package/dist/esm/models/errors/getv1webhooks.js.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.js +69 -0
- package/dist/esm/models/errors/httpclienterrors.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +30 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -0
- package/dist/esm/models/errors/index.js +33 -0
- package/dist/esm/models/errors/index.js.map +1 -0
- package/dist/esm/models/errors/patchv1merchantsid.d.ts +296 -0
- package/dist/esm/models/errors/patchv1merchantsid.d.ts.map +1 -0
- package/dist/esm/models/errors/patchv1merchantsid.js +318 -0
- package/dist/esm/models/errors/patchv1merchantsid.js.map +1 -0
- package/dist/esm/models/errors/patchv1webhooksid.d.ts +296 -0
- package/dist/esm/models/errors/patchv1webhooksid.d.ts.map +1 -0
- package/dist/esm/models/errors/patchv1webhooksid.js +319 -0
- package/dist/esm/models/errors/patchv1webhooksid.js.map +1 -0
- package/dist/esm/models/errors/postv1merchantsidactivate.d.ts +296 -0
- package/dist/esm/models/errors/postv1merchantsidactivate.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1merchantsidactivate.js +317 -0
- package/dist/esm/models/errors/postv1merchantsidactivate.js.map +1 -0
- package/dist/esm/models/errors/postv1merchantsidcancel.d.ts +296 -0
- package/dist/esm/models/errors/postv1merchantsidcancel.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1merchantsidcancel.js +318 -0
- package/dist/esm/models/errors/postv1merchantsidcancel.js.map +1 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.d.ts +199 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.js +212 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.d.ts +199 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.js +213 -0
- package/dist/esm/models/errors/postv1merchantsmerchantidsaqlink.js.map +1 -0
- package/dist/esm/models/errors/postv1merchantsregister.d.ts +199 -0
- package/dist/esm/models/errors/postv1merchantsregister.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1merchantsregister.js +215 -0
- package/dist/esm/models/errors/postv1merchantsregister.js.map +1 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscans.d.ts +393 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscans.js +419 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscans.js.map +1 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.d.ts +199 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.js +213 -0
- package/dist/esm/models/errors/postv1scansmerchantsidscanscancel.js.map +1 -0
- package/dist/esm/models/errors/postv1webhooks.d.ts +199 -0
- package/dist/esm/models/errors/postv1webhooks.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1webhooks.js +217 -0
- package/dist/esm/models/errors/postv1webhooks.js.map +1 -0
- package/dist/esm/models/errors/postv1webhooksidtest.d.ts +296 -0
- package/dist/esm/models/errors/postv1webhooksidtest.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1webhooksidtest.js +318 -0
- package/dist/esm/models/errors/postv1webhooksidtest.js.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.js +91 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts +113 -0
- package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js +120 -0
- package/dist/esm/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.js.map +1 -0
- package/dist/esm/models/operations/deletev1webhooksid.d.ts +111 -0
- package/dist/esm/models/operations/deletev1webhooksid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletev1webhooksid.js +110 -0
- package/dist/esm/models/operations/deletev1webhooksid.js.map +1 -0
- package/dist/esm/models/operations/getv1merchants.d.ts +237 -0
- package/dist/esm/models/operations/getv1merchants.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchants.js +200 -0
- package/dist/esm/models/operations/getv1merchants.js.map +1 -0
- package/dist/esm/models/operations/getv1merchantsid.d.ts +172 -0
- package/dist/esm/models/operations/getv1merchantsid.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchantsid.js +141 -0
- package/dist/esm/models/operations/getv1merchantsid.js.map +1 -0
- package/dist/esm/models/operations/getv1merchantsidcompliance.d.ts +173 -0
- package/dist/esm/models/operations/getv1merchantsidcompliance.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchantsidcompliance.js +169 -0
- package/dist/esm/models/operations/getv1merchantsidcompliance.js.map +1 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.d.ts +214 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.js +199 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts +111 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js +111 -0
- package/dist/esm/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.js.map +1 -0
- package/dist/esm/models/operations/getv1merchantsregistrationid.d.ts +156 -0
- package/dist/esm/models/operations/getv1merchantsregistrationid.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1merchantsregistrationid.js +135 -0
- package/dist/esm/models/operations/getv1merchantsregistrationid.js.map +1 -0
- package/dist/esm/models/operations/getv1scans.d.ts +328 -0
- package/dist/esm/models/operations/getv1scans.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1scans.js +283 -0
- package/dist/esm/models/operations/getv1scans.js.map +1 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscans.d.ts +286 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscans.js +256 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscans.js.map +1 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscansnext.d.ts +206 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscansnext.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscansnext.js +190 -0
- package/dist/esm/models/operations/getv1scansmerchantsidscansnext.js.map +1 -0
- package/dist/esm/models/operations/getv1scansscanid.d.ts +369 -0
- package/dist/esm/models/operations/getv1scansscanid.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1scansscanid.js +325 -0
- package/dist/esm/models/operations/getv1scansscanid.js.map +1 -0
- package/dist/esm/models/operations/getv1scansscanidreport.d.ts +59 -0
- package/dist/esm/models/operations/getv1scansscanidreport.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1scansscanidreport.js +58 -0
- package/dist/esm/models/operations/getv1scansscanidreport.js.map +1 -0
- package/dist/esm/models/operations/getv1webhooks.d.ts +191 -0
- package/dist/esm/models/operations/getv1webhooks.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1webhooks.js +173 -0
- package/dist/esm/models/operations/getv1webhooks.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +26 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -0
- package/dist/esm/models/operations/index.js +29 -0
- package/dist/esm/models/operations/index.js.map +1 -0
- package/dist/esm/models/operations/patchv1merchantsid.d.ts +201 -0
- package/dist/esm/models/operations/patchv1merchantsid.d.ts.map +1 -0
- package/dist/esm/models/operations/patchv1merchantsid.js +179 -0
- package/dist/esm/models/operations/patchv1merchantsid.js.map +1 -0
- package/dist/esm/models/operations/patchv1webhooksid.d.ts +227 -0
- package/dist/esm/models/operations/patchv1webhooksid.d.ts.map +1 -0
- package/dist/esm/models/operations/patchv1webhooksid.js +205 -0
- package/dist/esm/models/operations/patchv1webhooksid.js.map +1 -0
- package/dist/esm/models/operations/postv1merchantsidactivate.d.ts +140 -0
- package/dist/esm/models/operations/postv1merchantsidactivate.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1merchantsidactivate.js +130 -0
- package/dist/esm/models/operations/postv1merchantsidactivate.js.map +1 -0
- package/dist/esm/models/operations/postv1merchantsidcancel.d.ts +140 -0
- package/dist/esm/models/operations/postv1merchantsidcancel.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1merchantsidcancel.js +130 -0
- package/dist/esm/models/operations/postv1merchantsidcancel.js.map +1 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.d.ts +207 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.js +199 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidassetconfigs.js.map +1 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.d.ts +333 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.js +275 -0
- package/dist/esm/models/operations/postv1merchantsmerchantidsaqlink.js.map +1 -0
- package/dist/esm/models/operations/postv1merchantsregister.d.ts +1845 -0
- package/dist/esm/models/operations/postv1merchantsregister.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1merchantsregister.js +993 -0
- package/dist/esm/models/operations/postv1merchantsregister.js.map +1 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscans.d.ts +140 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscans.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscans.js +148 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscans.js.map +1 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.d.ts +111 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.js +110 -0
- package/dist/esm/models/operations/postv1scansmerchantsidscanscancel.js.map +1 -0
- package/dist/esm/models/operations/postv1webhooks.d.ts +203 -0
- package/dist/esm/models/operations/postv1webhooks.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1webhooks.js +166 -0
- package/dist/esm/models/operations/postv1webhooks.js.map +1 -0
- package/dist/esm/models/operations/postv1webhooksidtest.d.ts +679 -0
- package/dist/esm/models/operations/postv1webhooksidtest.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1webhooksidtest.js +651 -0
- package/dist/esm/models/operations/postv1webhooksidtest.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/assetconfigs.d.ts +26 -0
- package/dist/esm/sdk/assetconfigs.d.ts.map +1 -0
- package/dist/esm/sdk/assetconfigs.js +38 -0
- package/dist/esm/sdk/assetconfigs.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/merchants.d.ts +61 -0
- package/dist/esm/sdk/merchants.d.ts.map +1 -0
- package/dist/esm/sdk/merchants.js +88 -0
- package/dist/esm/sdk/merchants.js.map +1 -0
- package/dist/esm/sdk/saq.d.ts +19 -0
- package/dist/esm/sdk/saq.d.ts.map +1 -0
- package/dist/esm/sdk/saq.js +28 -0
- package/dist/esm/sdk/saq.js.map +1 -0
- package/dist/esm/sdk/scans.d.ts +54 -0
- package/dist/esm/sdk/scans.d.ts.map +1 -0
- package/dist/esm/sdk/scans.js +78 -0
- package/dist/esm/sdk/scans.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +19 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +27 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/sdk/webhooks.d.ts +40 -0
- package/dist/esm/sdk/webhooks.d.ts.map +1 -0
- package/dist/esm/sdk/webhooks.js +58 -0
- package/dist/esm/sdk/webhooks.js.map +1 -0
- package/dist/esm/types/async.d.ts +23 -0
- package/dist/esm/types/async.d.ts.map +1 -0
- package/dist/esm/types/async.js +40 -0
- package/dist/esm/types/async.js.map +1 -0
- package/dist/esm/types/blobs.d.ts +4 -0
- package/dist/esm/types/blobs.d.ts.map +1 -0
- package/dist/esm/types/blobs.js +25 -0
- package/dist/esm/types/blobs.js.map +1 -0
- package/dist/esm/types/constdatetime.d.ts +3 -0
- package/dist/esm/types/constdatetime.d.ts.map +1 -0
- package/dist/esm/types/constdatetime.js +10 -0
- package/dist/esm/types/constdatetime.js.map +1 -0
- package/dist/esm/types/enums.d.ts +12 -0
- package/dist/esm/types/enums.d.ts.map +1 -0
- package/dist/esm/types/enums.js +7 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/fp.d.ts +31 -0
- package/dist/esm/types/fp.d.ts.map +1 -0
- package/dist/esm/types/fp.js +31 -0
- package/dist/esm/types/fp.js.map +1 -0
- package/dist/esm/types/index.d.ts +8 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +8 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/operations.d.ts +27 -0
- package/dist/esm/types/operations.d.ts.map +1 -0
- package/dist/esm/types/operations.js +77 -0
- package/dist/esm/types/operations.js.map +1 -0
- package/dist/esm/types/rfcdate.d.ts +21 -0
- package/dist/esm/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/types/rfcdate.js +42 -0
- package/dist/esm/types/rfcdate.js.map +1 -0
- package/dist/esm/types/streams.d.ts +2 -0
- package/dist/esm/types/streams.d.ts.map +1 -0
- package/dist/esm/types/streams.js +15 -0
- package/dist/esm/types/streams.js.map +1 -0
- package/jsr.json +27 -0
- package/package.json +126 -0
- package/src/core.ts +13 -0
- package/src/funcs/assetConfigsDeleteV1MerchantsMerchantIdAssetConfigsAssetConfigId.ts +203 -0
- package/src/funcs/assetConfigsGetV1MerchantsMerchantIdAssetConfigs.ts +199 -0
- package/src/funcs/assetConfigsPostV1MerchantsMerchantIdAssetConfigs.ts +195 -0
- package/src/funcs/merchantsGetV1Merchants.ts +175 -0
- package/src/funcs/merchantsGetV1MerchantsId.ts +179 -0
- package/src/funcs/merchantsGetV1MerchantsIdCompliance.ts +186 -0
- package/src/funcs/merchantsGetV1MerchantsRegistrationId.ts +191 -0
- package/src/funcs/merchantsPatchV1MerchantsId.ts +190 -0
- package/src/funcs/merchantsPostV1MerchantsIdActivate.ts +191 -0
- package/src/funcs/merchantsPostV1MerchantsIdCancel.ts +190 -0
- package/src/funcs/merchantsPostV1MerchantsRegister.ts +177 -0
- package/src/funcs/saqGetV1MerchantsMerchantIdSAQSubmissionIdPdf.ts +201 -0
- package/src/funcs/saqPostV1MerchantsMerchantIdSAQLink.ts +192 -0
- package/src/funcs/scansGetV1Scans.ts +180 -0
- package/src/funcs/scansGetV1ScansMerchantsIdScans.ts +192 -0
- package/src/funcs/scansGetV1ScansMerchantsIdScansNext.ts +191 -0
- package/src/funcs/scansGetV1ScansScanId.ts +179 -0
- package/src/funcs/scansGetV1ScansScanIdReport.ts +176 -0
- package/src/funcs/scansPostV1ScansMerchantsIdScans.ts +205 -0
- package/src/funcs/scansPostV1ScansMerchantsIdScansCancel.ts +191 -0
- package/src/funcs/webhooksDeleteV1WebhooksId.ts +179 -0
- package/src/funcs/webhooksGetV1Webhooks.ts +178 -0
- package/src/funcs/webhooksPatchV1WebhooksId.ts +187 -0
- package/src/funcs/webhooksPostV1Webhooks.ts +173 -0
- package/src/funcs/webhooksPostV1WebhooksIdTest.ts +191 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +71 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +345 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +402 -0
- package/src/lib/security.ts +260 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/security.ts +71 -0
- package/src/models/errors/apierror.ts +34 -0
- package/src/models/errors/beyondpcierror.ts +35 -0
- package/src/models/errors/deletev1merchantsmerchantidassetconfigsassetconfigid.ts +553 -0
- package/src/models/errors/deletev1webhooksid.ts +444 -0
- package/src/models/errors/getv1merchants.ts +206 -0
- package/src/models/errors/getv1merchantsid.ts +442 -0
- package/src/models/errors/getv1merchantsidcompliance.ts +478 -0
- package/src/models/errors/getv1merchantsmerchantidassetconfigs.ts +522 -0
- package/src/models/errors/getv1merchantsmerchantidsaqsubmissionidpdf.ts +534 -0
- package/src/models/errors/getv1merchantsregistrationid.ts +487 -0
- package/src/models/errors/getv1scans.ts +431 -0
- package/src/models/errors/getv1scansmerchantsidscans.ts +463 -0
- package/src/models/errors/getv1scansmerchantsidscansnext.ts +482 -0
- package/src/models/errors/getv1scansscanid.ts +438 -0
- package/src/models/errors/getv1scansscanidreport.ts +227 -0
- package/src/models/errors/getv1webhooks.ts +437 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +33 -0
- package/src/models/errors/patchv1merchantsid.ts +692 -0
- package/src/models/errors/patchv1webhooksid.ts +684 -0
- package/src/models/errors/postv1merchantsidactivate.ts +740 -0
- package/src/models/errors/postv1merchantsidcancel.ts +724 -0
- package/src/models/errors/postv1merchantsmerchantidassetconfigs.ts +525 -0
- package/src/models/errors/postv1merchantsmerchantidsaqlink.ts +493 -0
- package/src/models/errors/postv1merchantsregister.ts +465 -0
- package/src/models/errors/postv1scansmerchantsidscans.ts +990 -0
- package/src/models/errors/postv1scansmerchantsidscanscancel.ts +507 -0
- package/src/models/errors/postv1webhooks.ts +440 -0
- package/src/models/errors/postv1webhooksidtest.ts +702 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +109 -0
- package/src/models/operations/deletev1merchantsmerchantidassetconfigsassetconfigid.ts +317 -0
- package/src/models/operations/deletev1webhooksid.ts +253 -0
- package/src/models/operations/getv1merchants.ts +410 -0
- package/src/models/operations/getv1merchantsid.ts +322 -0
- package/src/models/operations/getv1merchantsidcompliance.ts +381 -0
- package/src/models/operations/getv1merchantsmerchantidassetconfigs.ts +487 -0
- package/src/models/operations/getv1merchantsmerchantidsaqsubmissionidpdf.ts +316 -0
- package/src/models/operations/getv1merchantsregistrationid.ts +321 -0
- package/src/models/operations/getv1scans.ts +550 -0
- package/src/models/operations/getv1scansmerchantsidscans.ts +566 -0
- package/src/models/operations/getv1scansmerchantsidscansnext.ts +448 -0
- package/src/models/operations/getv1scansscanid.ts +645 -0
- package/src/models/operations/getv1scansscanidreport.ts +137 -0
- package/src/models/operations/getv1webhooks.ts +372 -0
- package/src/models/operations/index.ts +29 -0
- package/src/models/operations/patchv1merchantsid.ts +401 -0
- package/src/models/operations/patchv1webhooksid.ts +420 -0
- package/src/models/operations/postv1merchantsidactivate.ts +293 -0
- package/src/models/operations/postv1merchantsidcancel.ts +293 -0
- package/src/models/operations/postv1merchantsmerchantidassetconfigs.ts +486 -0
- package/src/models/operations/postv1merchantsmerchantidsaqlink.ts +584 -0
- package/src/models/operations/postv1merchantsregister.ts +1760 -0
- package/src/models/operations/postv1scansmerchantsidscans.ts +355 -0
- package/src/models/operations/postv1scansmerchantsidscanscancel.ts +285 -0
- package/src/models/operations/postv1webhooks.ts +337 -0
- package/src/models/operations/postv1webhooksidtest.ts +1321 -0
- package/src/sdk/assetconfigs.ts +68 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/merchants.ts +153 -0
- package/src/sdk/saq.ts +47 -0
- package/src/sdk/scans.ts +135 -0
- package/src/sdk/sdk.ts +37 -0
- package/src/sdk/webhooks.ts +99 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { BeyondPCICore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { BeyondPciError } from "../models/errors/beyondpcierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Create webhook
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Creates a new webhook configuration. The signing secret is returned only on creation - store it securely.
|
|
33
|
+
*/
|
|
34
|
+
export function webhooksPostV1Webhooks(
|
|
35
|
+
client: BeyondPCICore,
|
|
36
|
+
request: operations.PostV1WebhooksRequestBody,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
operations.PostV1WebhooksResponseBody,
|
|
41
|
+
| errors.PostV1WebhooksResponseBody
|
|
42
|
+
| errors.PostV1WebhooksWebhooksResponseBody
|
|
43
|
+
| BeyondPciError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: BeyondPCICore,
|
|
62
|
+
request: operations.PostV1WebhooksRequestBody,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.PostV1WebhooksResponseBody,
|
|
68
|
+
| errors.PostV1WebhooksResponseBody
|
|
69
|
+
| errors.PostV1WebhooksWebhooksResponseBody
|
|
70
|
+
| BeyondPciError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) => operations.PostV1WebhooksRequestBody$outboundSchema.parse(value),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/v1/webhooks/")();
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
+
operationID: "post_/v1/webhooks/",
|
|
108
|
+
oAuth2Scopes: [],
|
|
109
|
+
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
|
|
112
|
+
securitySource: client._options.bearerAuth,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const requestRes = client._createRequest(context, {
|
|
120
|
+
security: requestSecurity,
|
|
121
|
+
method: "POST",
|
|
122
|
+
baseURL: options?.serverURL,
|
|
123
|
+
path: path,
|
|
124
|
+
headers: headers,
|
|
125
|
+
body: body,
|
|
126
|
+
userAgent: client._options.userAgent,
|
|
127
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
|
+
}, options);
|
|
129
|
+
if (!requestRes.ok) {
|
|
130
|
+
return [requestRes, { status: "invalid" }];
|
|
131
|
+
}
|
|
132
|
+
const req = requestRes.value;
|
|
133
|
+
|
|
134
|
+
const doResult = await client._do(req, {
|
|
135
|
+
context,
|
|
136
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
137
|
+
retryConfig: context.retryConfig,
|
|
138
|
+
retryCodes: context.retryCodes,
|
|
139
|
+
});
|
|
140
|
+
if (!doResult.ok) {
|
|
141
|
+
return [doResult, { status: "request-error", request: req }];
|
|
142
|
+
}
|
|
143
|
+
const response = doResult.value;
|
|
144
|
+
|
|
145
|
+
const responseFields = {
|
|
146
|
+
HttpMeta: { Response: response, Request: req },
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const [result] = await M.match<
|
|
150
|
+
operations.PostV1WebhooksResponseBody,
|
|
151
|
+
| errors.PostV1WebhooksResponseBody
|
|
152
|
+
| errors.PostV1WebhooksWebhooksResponseBody
|
|
153
|
+
| BeyondPciError
|
|
154
|
+
| ResponseValidationError
|
|
155
|
+
| ConnectionError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| InvalidRequestError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| SDKValidationError
|
|
161
|
+
>(
|
|
162
|
+
M.json(201, operations.PostV1WebhooksResponseBody$inboundSchema),
|
|
163
|
+
M.jsonErr(400, errors.PostV1WebhooksResponseBody$inboundSchema),
|
|
164
|
+
M.jsonErr(401, errors.PostV1WebhooksWebhooksResponseBody$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, req, { extraFields: responseFields });
|
|
168
|
+
if (!result.ok) {
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { BeyondPCICore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { BeyondPciError } from "../models/errors/beyondpcierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Send test webhook
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Sends a test webhook delivery to verify your endpoint is configured correctly using the same payload signature as production webhook events.
|
|
33
|
+
*/
|
|
34
|
+
export function webhooksPostV1WebhooksIdTest(
|
|
35
|
+
client: BeyondPCICore,
|
|
36
|
+
request: operations.PostV1WebhooksIdTestRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
operations.PostV1WebhooksIdTestResponseBody,
|
|
41
|
+
| errors.PostV1WebhooksIdTestResponseBody
|
|
42
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseBody
|
|
43
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseResponseBody
|
|
44
|
+
| BeyondPciError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: BeyondPCICore,
|
|
63
|
+
request: operations.PostV1WebhooksIdTestRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
operations.PostV1WebhooksIdTestResponseBody,
|
|
69
|
+
| errors.PostV1WebhooksIdTestResponseBody
|
|
70
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseBody
|
|
71
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseResponseBody
|
|
72
|
+
| BeyondPciError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const parsed = safeParse(
|
|
85
|
+
request,
|
|
86
|
+
(value) =>
|
|
87
|
+
operations.PostV1WebhooksIdTestRequest$outboundSchema.parse(value),
|
|
88
|
+
"Input validation failed",
|
|
89
|
+
);
|
|
90
|
+
if (!parsed.ok) {
|
|
91
|
+
return [parsed, { status: "invalid" }];
|
|
92
|
+
}
|
|
93
|
+
const payload = parsed.value;
|
|
94
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
95
|
+
|
|
96
|
+
const pathParams = {
|
|
97
|
+
id: encodeSimple("id", payload.id, {
|
|
98
|
+
explode: false,
|
|
99
|
+
charEncoding: "percent",
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const path = pathToFunc("/v1/webhooks/{id}/test")(pathParams);
|
|
104
|
+
|
|
105
|
+
const headers = new Headers(compactMap({
|
|
106
|
+
"Content-Type": "application/json",
|
|
107
|
+
Accept: "application/json",
|
|
108
|
+
}));
|
|
109
|
+
|
|
110
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
111
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
112
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
|
+
|
|
114
|
+
const context = {
|
|
115
|
+
options: client._options,
|
|
116
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
|
+
operationID: "post_/v1/webhooks/{id}/test",
|
|
118
|
+
oAuth2Scopes: [],
|
|
119
|
+
|
|
120
|
+
resolvedSecurity: requestSecurity,
|
|
121
|
+
|
|
122
|
+
securitySource: client._options.bearerAuth,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| { strategy: "none" },
|
|
126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const requestRes = client._createRequest(context, {
|
|
130
|
+
security: requestSecurity,
|
|
131
|
+
method: "POST",
|
|
132
|
+
baseURL: options?.serverURL,
|
|
133
|
+
path: path,
|
|
134
|
+
headers: headers,
|
|
135
|
+
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
137
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
|
+
}, options);
|
|
139
|
+
if (!requestRes.ok) {
|
|
140
|
+
return [requestRes, { status: "invalid" }];
|
|
141
|
+
}
|
|
142
|
+
const req = requestRes.value;
|
|
143
|
+
|
|
144
|
+
const doResult = await client._do(req, {
|
|
145
|
+
context,
|
|
146
|
+
errorCodes: ["401", "404", "409", "4XX", "5XX"],
|
|
147
|
+
retryConfig: context.retryConfig,
|
|
148
|
+
retryCodes: context.retryCodes,
|
|
149
|
+
});
|
|
150
|
+
if (!doResult.ok) {
|
|
151
|
+
return [doResult, { status: "request-error", request: req }];
|
|
152
|
+
}
|
|
153
|
+
const response = doResult.value;
|
|
154
|
+
|
|
155
|
+
const responseFields = {
|
|
156
|
+
HttpMeta: { Response: response, Request: req },
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const [result] = await M.match<
|
|
160
|
+
operations.PostV1WebhooksIdTestResponseBody,
|
|
161
|
+
| errors.PostV1WebhooksIdTestResponseBody
|
|
162
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseBody
|
|
163
|
+
| errors.PostV1WebhooksIdTestWebhooksResponseResponseBody
|
|
164
|
+
| BeyondPciError
|
|
165
|
+
| ResponseValidationError
|
|
166
|
+
| ConnectionError
|
|
167
|
+
| RequestAbortedError
|
|
168
|
+
| RequestTimeoutError
|
|
169
|
+
| InvalidRequestError
|
|
170
|
+
| UnexpectedClientError
|
|
171
|
+
| SDKValidationError
|
|
172
|
+
>(
|
|
173
|
+
M.json(200, operations.PostV1WebhooksIdTestResponseBody$inboundSchema),
|
|
174
|
+
M.jsonErr(401, errors.PostV1WebhooksIdTestResponseBody$inboundSchema),
|
|
175
|
+
M.jsonErr(
|
|
176
|
+
404,
|
|
177
|
+
errors.PostV1WebhooksIdTestWebhooksResponseBody$inboundSchema,
|
|
178
|
+
),
|
|
179
|
+
M.jsonErr(
|
|
180
|
+
409,
|
|
181
|
+
errors.PostV1WebhooksIdTestWebhooksResponseResponseBody$inboundSchema,
|
|
182
|
+
),
|
|
183
|
+
M.fail("4XX"),
|
|
184
|
+
M.fail("5XX"),
|
|
185
|
+
)(response, req, { extraFields: responseFields });
|
|
186
|
+
if (!result.ok) {
|
|
187
|
+
return [result, { status: "complete", request: req, response }];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return [result, { status: "complete", request: req, response }];
|
|
191
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKOptions } from "../lib/config.js";
|
|
6
|
+
import { RequestInput } from "../lib/http.js";
|
|
7
|
+
import {
|
|
8
|
+
AfterErrorContext,
|
|
9
|
+
AfterErrorHook,
|
|
10
|
+
AfterSuccessContext,
|
|
11
|
+
AfterSuccessHook,
|
|
12
|
+
BeforeCreateRequestContext,
|
|
13
|
+
BeforeCreateRequestHook,
|
|
14
|
+
BeforeRequestContext,
|
|
15
|
+
BeforeRequestHook,
|
|
16
|
+
Hook,
|
|
17
|
+
Hooks,
|
|
18
|
+
SDKInitHook,
|
|
19
|
+
} from "./types.js";
|
|
20
|
+
|
|
21
|
+
import { initHooks } from "./registration.js";
|
|
22
|
+
|
|
23
|
+
export class SDKHooks implements Hooks {
|
|
24
|
+
sdkInitHooks: SDKInitHook[] = [];
|
|
25
|
+
beforeCreateRequestHooks: BeforeCreateRequestHook[] = [];
|
|
26
|
+
beforeRequestHooks: BeforeRequestHook[] = [];
|
|
27
|
+
afterSuccessHooks: AfterSuccessHook[] = [];
|
|
28
|
+
afterErrorHooks: AfterErrorHook[] = [];
|
|
29
|
+
|
|
30
|
+
constructor() {
|
|
31
|
+
const presetHooks: Array<Hook> = [];
|
|
32
|
+
|
|
33
|
+
for (const hook of presetHooks) {
|
|
34
|
+
if ("sdkInit" in hook) {
|
|
35
|
+
this.registerSDKInitHook(hook);
|
|
36
|
+
}
|
|
37
|
+
if ("beforeCreateRequest" in hook) {
|
|
38
|
+
this.registerBeforeCreateRequestHook(hook);
|
|
39
|
+
}
|
|
40
|
+
if ("beforeRequest" in hook) {
|
|
41
|
+
this.registerBeforeRequestHook(hook);
|
|
42
|
+
}
|
|
43
|
+
if ("afterSuccess" in hook) {
|
|
44
|
+
this.registerAfterSuccessHook(hook);
|
|
45
|
+
}
|
|
46
|
+
if ("afterError" in hook) {
|
|
47
|
+
this.registerAfterErrorHook(hook);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
initHooks(this);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
registerSDKInitHook(hook: SDKInitHook) {
|
|
54
|
+
this.sdkInitHooks.push(hook);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook) {
|
|
58
|
+
this.beforeCreateRequestHooks.push(hook);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
registerBeforeRequestHook(hook: BeforeRequestHook) {
|
|
62
|
+
this.beforeRequestHooks.push(hook);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
registerAfterSuccessHook(hook: AfterSuccessHook) {
|
|
66
|
+
this.afterSuccessHooks.push(hook);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
registerAfterErrorHook(hook: AfterErrorHook) {
|
|
70
|
+
this.afterErrorHooks.push(hook);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
sdkInit(opts: SDKOptions): SDKOptions {
|
|
74
|
+
return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
beforeCreateRequest(
|
|
78
|
+
hookCtx: BeforeCreateRequestContext,
|
|
79
|
+
input: RequestInput,
|
|
80
|
+
): RequestInput {
|
|
81
|
+
let inp = input;
|
|
82
|
+
|
|
83
|
+
for (const hook of this.beforeCreateRequestHooks) {
|
|
84
|
+
inp = hook.beforeCreateRequest(hookCtx, inp);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return inp;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
async beforeRequest(
|
|
91
|
+
hookCtx: BeforeRequestContext,
|
|
92
|
+
request: Request,
|
|
93
|
+
): Promise<Request> {
|
|
94
|
+
let req = request;
|
|
95
|
+
|
|
96
|
+
for (const hook of this.beforeRequestHooks) {
|
|
97
|
+
req = await hook.beforeRequest(hookCtx, req);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return req;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async afterSuccess(
|
|
104
|
+
hookCtx: AfterSuccessContext,
|
|
105
|
+
response: Response,
|
|
106
|
+
): Promise<Response> {
|
|
107
|
+
let res = response;
|
|
108
|
+
|
|
109
|
+
for (const hook of this.afterSuccessHooks) {
|
|
110
|
+
res = await hook.afterSuccess(hookCtx, res);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return res;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
async afterError(
|
|
117
|
+
hookCtx: AfterErrorContext,
|
|
118
|
+
response: Response | null,
|
|
119
|
+
error: unknown,
|
|
120
|
+
): Promise<{ response: Response | null; error: unknown }> {
|
|
121
|
+
let res = response;
|
|
122
|
+
let err = error;
|
|
123
|
+
|
|
124
|
+
for (const hook of this.afterErrorHooks) {
|
|
125
|
+
const result = await hook.afterError(hookCtx, res, err);
|
|
126
|
+
res = result.response;
|
|
127
|
+
err = result.error;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return { response: res, error: err };
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Hooks } from "./types.js";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is only ever generated once on the first generation and then is free to be modified.
|
|
5
|
+
* Any hooks you wish to add should be registered in the initHooks function. Feel free to define them
|
|
6
|
+
* in this file or in separate files in the hooks folder.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// @ts-expect-error remove this line when you add your first hook and hooks is used
|
|
10
|
+
export function initHooks(hooks: Hooks) {
|
|
11
|
+
// Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
12
|
+
// with an instance of a hook that implements that specific Hook interface
|
|
13
|
+
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
14
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKOptions } from "../lib/config.js";
|
|
6
|
+
import { RequestInput } from "../lib/http.js";
|
|
7
|
+
import { RetryConfig } from "../lib/retries.js";
|
|
8
|
+
import { SecurityState } from "../lib/security.js";
|
|
9
|
+
|
|
10
|
+
export type HookContext = {
|
|
11
|
+
baseURL: string | URL;
|
|
12
|
+
operationID: string;
|
|
13
|
+
oAuth2Scopes: string[] | null;
|
|
14
|
+
securitySource?: any | (() => Promise<any>);
|
|
15
|
+
retryConfig: RetryConfig;
|
|
16
|
+
resolvedSecurity: SecurityState | null;
|
|
17
|
+
options: SDKOptions;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
21
|
+
|
|
22
|
+
export type BeforeCreateRequestContext = HookContext & {};
|
|
23
|
+
export type BeforeRequestContext = HookContext & {};
|
|
24
|
+
export type AfterSuccessContext = HookContext & {};
|
|
25
|
+
export type AfterErrorContext = HookContext & {};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* SDKInitHook is called when the SDK is initializing. The
|
|
29
|
+
* hook can return a new baseURL and HTTP client to be used by the SDK.
|
|
30
|
+
*/
|
|
31
|
+
export interface SDKInitHook {
|
|
32
|
+
sdkInit: (opts: SDKOptions) => SDKOptions;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface BeforeCreateRequestHook {
|
|
36
|
+
/**
|
|
37
|
+
* A hook that is called before the SDK creates a `Request` object. The hook
|
|
38
|
+
* can modify how a request is constructed since certain modifications, like
|
|
39
|
+
* changing the request URL, cannot be done on a request object directly.
|
|
40
|
+
*/
|
|
41
|
+
beforeCreateRequest: (
|
|
42
|
+
hookCtx: BeforeCreateRequestContext,
|
|
43
|
+
input: RequestInput,
|
|
44
|
+
) => RequestInput;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface BeforeRequestHook {
|
|
48
|
+
/**
|
|
49
|
+
* A hook that is called before the SDK sends a request. The hook can
|
|
50
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
51
|
+
* replace the request before it is sent or throw an error to stop the
|
|
52
|
+
* request from being sent.
|
|
53
|
+
*/
|
|
54
|
+
beforeRequest: (
|
|
55
|
+
hookCtx: BeforeRequestContext,
|
|
56
|
+
request: Request,
|
|
57
|
+
) => Awaitable<Request>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface AfterSuccessHook {
|
|
61
|
+
/**
|
|
62
|
+
* A hook that is called after the SDK receives a response. The hook can
|
|
63
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
64
|
+
* modify the response before it is handled or throw an error to stop the
|
|
65
|
+
* response from being handled.
|
|
66
|
+
*/
|
|
67
|
+
afterSuccess: (
|
|
68
|
+
hookCtx: AfterSuccessContext,
|
|
69
|
+
response: Response,
|
|
70
|
+
) => Awaitable<Response>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface AfterErrorHook {
|
|
74
|
+
/**
|
|
75
|
+
* A hook that is called after the SDK encounters an error, or a
|
|
76
|
+
* non-successful response. The hook can introduce instrumentation code such
|
|
77
|
+
* as logging, tracing and metrics or modify the response or error values.
|
|
78
|
+
*/
|
|
79
|
+
afterError: (
|
|
80
|
+
hookCtx: AfterErrorContext,
|
|
81
|
+
response: Response | null,
|
|
82
|
+
error: unknown,
|
|
83
|
+
) => Awaitable<{
|
|
84
|
+
response: Response | null;
|
|
85
|
+
error: unknown;
|
|
86
|
+
}>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface Hooks {
|
|
90
|
+
/** Registers a hook to be used by the SDK for initialization event. */
|
|
91
|
+
registerSDKInitHook(hook: SDKInitHook): void;
|
|
92
|
+
/** Registers a hook to be used by the SDK for to modify `Request` construction. */
|
|
93
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
|
|
94
|
+
/** Registers a hook to be used by the SDK for the before request event. */
|
|
95
|
+
registerBeforeRequestHook(hook: BeforeRequestHook): void;
|
|
96
|
+
/** Registers a hook to be used by the SDK for the after success event. */
|
|
97
|
+
registerAfterSuccessHook(hook: AfterSuccessHook): void;
|
|
98
|
+
/** Registers a hook to be used by the SDK for the after error event. */
|
|
99
|
+
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Hook =
|
|
103
|
+
| SDKInitHook
|
|
104
|
+
| BeforeCreateRequestHook
|
|
105
|
+
| BeforeRequestHook
|
|
106
|
+
| AfterSuccessHook
|
|
107
|
+
| AfterErrorHook;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./lib/config.js";
|
|
6
|
+
export * as files from "./lib/files.js";
|
|
7
|
+
export { HTTPClient } from "./lib/http.js";
|
|
8
|
+
export type { Fetcher, HTTPClientOptions } from "./lib/http.js";
|
|
9
|
+
export * from "./sdk/sdk.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export function bytesToBase64(u8arr: Uint8Array): string {
|
|
8
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function bytesFromBase64(encoded: string): Uint8Array {
|
|
12
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function stringToBytes(str: string): Uint8Array {
|
|
16
|
+
return new TextEncoder().encode(str);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function stringFromBytes(u8arr: Uint8Array): string {
|
|
20
|
+
return new TextDecoder().decode(u8arr);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function stringToBase64(str: string): string {
|
|
24
|
+
return bytesToBase64(stringToBytes(str));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function stringFromBase64(b64str: string): string {
|
|
28
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const zodOutbound = z
|
|
32
|
+
.instanceof(Uint8Array)
|
|
33
|
+
.or(z.string().transform(stringToBytes));
|
|
34
|
+
|
|
35
|
+
export const zodInbound = z
|
|
36
|
+
.instanceof(Uint8Array)
|
|
37
|
+
.or(z.string().transform(bytesFromBase64));
|