@moovio/sdk 26.7.0-dev.6 → 26.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -67
- package/bin/mcp-server.js +1364 -389
- package/bin/mcp-server.js.map +84 -50
- package/funcs/avatarsDelete.d.ts +23 -0
- package/funcs/avatarsDelete.d.ts.map +1 -0
- package/funcs/avatarsDelete.js +135 -0
- package/funcs/avatarsDelete.js.map +1 -0
- package/funcs/avatarsUpload.d.ts +23 -0
- package/funcs/avatarsUpload.d.ts.map +1 -0
- package/funcs/avatarsUpload.js +155 -0
- package/funcs/avatarsUpload.js.map +1 -0
- package/funcs/cardIssuingListMerchantCategories.d.ts +19 -0
- package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/funcs/cardIssuingListMerchantCategories.js +109 -0
- package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
- package/funcs/productsList.js +1 -0
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsListCategories.d.ts +14 -0
- package/funcs/productsListCategories.d.ts.map +1 -0
- package/funcs/productsListCategories.js +107 -0
- package/funcs/productsListCategories.js.map +1 -0
- package/funcs/transfersList.js +2 -0
- package/funcs/transfersList.js.map +1 -1
- package/hooks/oauth2scopes.d.ts +5 -0
- package/hooks/oauth2scopes.d.ts.map +1 -0
- package/hooks/oauth2scopes.js +6 -0
- package/hooks/oauth2scopes.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +10 -6
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/avatarsGet.js +1 -1
- package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts +3 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
- package/mcp-server/tools/enrichedAddressGet.js +1 -1
- package/mcp-server/tools/enrichedProfileGet.js +1 -1
- package/mcp-server/tools/institutionsSearch.js +1 -1
- package/mcp-server/tools/productsListCategories.d.ts +3 -0
- package/mcp-server/tools/productsListCategories.d.ts.map +1 -0
- package/mcp-server/tools/productsListCategories.js +24 -0
- package/mcp-server/tools/productsListCategories.js.map +1 -0
- package/models/components/allowedscheduleerror.d.ts +24 -0
- package/models/components/allowedscheduleerror.d.ts.map +1 -0
- package/models/components/allowedscheduleerror.js +62 -0
- package/models/components/allowedscheduleerror.js.map +1 -0
- package/models/components/avataruploadrequest.d.ts +35 -0
- package/models/components/avataruploadrequest.d.ts.map +1 -0
- package/models/components/avataruploadrequest.js +88 -0
- package/models/components/avataruploadrequest.js.map +1 -0
- package/models/components/capabilityid.d.ts +1 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +1 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createdtransfer.d.ts +6 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +3 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createrefund.d.ts +2 -2
- package/models/components/createreversal.d.ts +1 -1
- package/models/components/createtransfer.d.ts +6 -0
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/feepaidby.d.ts +18 -0
- package/models/components/feepaidby.d.ts.map +1 -0
- package/models/components/feepaidby.js +52 -0
- package/models/components/feepaidby.js.map +1 -0
- package/models/components/filedetails.d.ts +1 -1
- package/models/components/filepurpose.d.ts +2 -2
- package/models/components/filepurpose.js +1 -1
- package/models/components/fullissuedcard.d.ts +6 -3
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +3 -3
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/incurredfee.d.ts +6 -0
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js +3 -0
- package/models/components/incurredfee.js.map +1 -1
- package/models/components/index.d.ts +26 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +26 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +6 -3
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +3 -3
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcontrols.d.ts +76 -0
- package/models/components/issuedcontrols.d.ts.map +1 -0
- package/models/components/issuedcontrols.js +92 -0
- package/models/components/issuedcontrols.js.map +1 -0
- package/models/components/issuedvelocitylimit.d.ts +59 -0
- package/models/components/issuedvelocitylimit.d.ts.map +1 -0
- package/models/components/issuedvelocitylimit.js +74 -0
- package/models/components/issuedvelocitylimit.js.map +1 -0
- package/models/components/issuingcontrols.d.ts +47 -0
- package/models/components/issuingcontrols.d.ts.map +1 -1
- package/models/components/issuingcontrols.js +33 -1
- package/models/components/issuingcontrols.js.map +1 -1
- package/models/components/issuingcontrolserror.d.ts +11 -0
- package/models/components/issuingcontrolserror.d.ts.map +1 -1
- package/models/components/issuingcontrolserror.js +12 -0
- package/models/components/issuingcontrolserror.js.map +1 -1
- package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
- package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
- package/models/components/issuingcontrolsrestrictionmode.js +52 -0
- package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
- package/models/components/issuingintervallimit.d.ts +9 -6
- package/models/components/issuingintervallimit.d.ts.map +1 -1
- package/models/components/issuingintervallimit.js +7 -4
- package/models/components/issuingintervallimit.js.map +1 -1
- package/models/components/issuingmerchantcategory.d.ts +42 -0
- package/models/components/issuingmerchantcategory.d.ts.map +1 -0
- package/models/components/issuingmerchantcategory.js +76 -0
- package/models/components/issuingmerchantcategory.js.map +1 -0
- package/models/components/issuingscheduleday.d.ts +17 -0
- package/models/components/issuingscheduleday.d.ts.map +1 -0
- package/models/components/issuingscheduleday.js +54 -0
- package/models/components/issuingscheduleday.js.map +1 -0
- package/models/components/issuingvelocitylimit.d.ts +8 -3
- package/models/components/issuingvelocitylimit.d.ts.map +1 -1
- package/models/components/issuingvelocitylimit.js +4 -2
- package/models/components/issuingvelocitylimit.js.map +1 -1
- package/models/components/issuingvelocitylimiterror.d.ts +2 -0
- package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
- package/models/components/issuingvelocitylimiterror.js +2 -0
- package/models/components/issuingvelocitylimiterror.js.map +1 -1
- package/models/components/merchantcategories.d.ts +21 -0
- package/models/components/merchantcategories.d.ts.map +1 -0
- package/models/components/merchantcategories.js +59 -0
- package/models/components/merchantcategories.js.map +1 -0
- package/models/components/merchantcategory.d.ts +32 -0
- package/models/components/merchantcategory.d.ts.map +1 -0
- package/models/components/merchantcategory.js +62 -0
- package/models/components/merchantcategory.js.map +1 -0
- package/models/components/merchantcategoryrestrictions.d.ts +41 -0
- package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictions.js +68 -0
- package/models/components/merchantcategoryrestrictions.js.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.js +66 -0
- package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
- package/models/components/merchantentry.d.ts +33 -0
- package/models/components/merchantentry.d.ts.map +1 -0
- package/models/components/merchantentry.js +63 -0
- package/models/components/merchantentry.js.map +1 -0
- package/models/components/merchantentryerror.d.ts +19 -0
- package/models/components/merchantentryerror.d.ts.map +1 -0
- package/models/components/merchantentryerror.js +61 -0
- package/models/components/merchantentryerror.js.map +1 -0
- package/models/components/merchantrestrictions.d.ts +30 -0
- package/models/components/merchantrestrictions.d.ts.map +1 -0
- package/models/components/merchantrestrictions.js +62 -0
- package/models/components/merchantrestrictions.js.map +1 -0
- package/models/components/merchantrestrictionserror.d.ts +24 -0
- package/models/components/merchantrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantrestrictionserror.js +62 -0
- package/models/components/merchantrestrictionserror.js.map +1 -0
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/paymentlinkpayoutdetails.d.ts +14 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +3 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +14 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/paymentmethodswallet.d.ts +1 -0
- package/models/components/paymentmethodswallet.d.ts.map +1 -1
- package/models/components/paymentmethodswallet.js.map +1 -1
- package/models/components/payoutdetailserror.d.ts +2 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +2 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/components/product.d.ts +6 -0
- package/models/components/product.d.ts.map +1 -1
- package/models/components/product.js +3 -0
- package/models/components/product.js.map +1 -1
- package/models/components/productcategories.d.ts +21 -0
- package/models/components/productcategories.d.ts.map +1 -0
- package/models/components/productcategories.js +59 -0
- package/models/components/productcategories.js.map +1 -0
- package/models/components/productcategory.d.ts +43 -0
- package/models/components/productcategory.d.ts.map +1 -0
- package/models/components/productcategory.js +67 -0
- package/models/components/productcategory.js.map +1 -0
- package/models/components/productrequest.d.ts +5 -0
- package/models/components/productrequest.d.ts.map +1 -1
- package/models/components/productrequest.js +2 -0
- package/models/components/productrequest.js.map +1 -1
- package/models/components/schedulewindow.d.ts +34 -0
- package/models/components/schedulewindow.d.ts.map +1 -0
- package/models/components/schedulewindow.js +64 -0
- package/models/components/schedulewindow.js.map +1 -0
- package/models/components/schedulewindowerror.d.ts +21 -0
- package/models/components/schedulewindowerror.d.ts.map +1 -0
- package/models/components/schedulewindowerror.js +63 -0
- package/models/components/schedulewindowerror.js.map +1 -0
- package/models/components/sendfunds.d.ts +3 -0
- package/models/components/sendfunds.d.ts.map +1 -1
- package/models/components/sendfunds.js +3 -0
- package/models/components/sendfunds.js.map +1 -1
- package/models/components/sendfundserror.d.ts +3 -0
- package/models/components/sendfundserror.d.ts.map +1 -1
- package/models/components/sendfundserror.js +3 -0
- package/models/components/sendfundserror.js.map +1 -1
- package/models/components/sendfundswire.d.ts +18 -0
- package/models/components/sendfundswire.d.ts.map +1 -0
- package/models/components/sendfundswire.js +60 -0
- package/models/components/sendfundswire.js.map +1 -0
- package/models/components/sendfundswireerror.d.ts +18 -0
- package/models/components/sendfundswireerror.d.ts.map +1 -0
- package/models/components/sendfundswireerror.js +60 -0
- package/models/components/sendfundswireerror.js.map +1 -0
- package/models/components/transfer.d.ts +6 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/transfercapture.d.ts +28 -0
- package/models/components/transfercapture.d.ts.map +1 -0
- package/models/components/transfercapture.js +61 -0
- package/models/components/transfercapture.js.map +1 -0
- package/models/components/transferfeepaidby.d.ts +24 -0
- package/models/components/transferfeepaidby.d.ts.map +1 -0
- package/models/components/transferfeepaidby.js +60 -0
- package/models/components/transferfeepaidby.js.map +1 -0
- package/models/components/transferpaymentmethodswallet.d.ts +1 -0
- package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
- package/models/components/transferpaymentmethodswallet.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +6 -0
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +3 -0
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updateissuingcontrols.d.ts +130 -0
- package/models/components/updateissuingcontrols.d.ts.map +1 -0
- package/models/components/updateissuingcontrols.js +130 -0
- package/models/components/updateissuingcontrols.js.map +1 -0
- package/models/components/updateissuingcontrolserror.d.ts +33 -0
- package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
- package/models/components/updateissuingcontrolserror.js +72 -0
- package/models/components/updateissuingcontrolserror.js.map +1 -0
- package/models/components/wallet.d.ts +1 -0
- package/models/components/wallet.d.ts.map +1 -1
- package/models/components/wallet.js.map +1 -1
- package/models/components/wallettype.d.ts +3 -0
- package/models/components/wallettype.d.ts.map +1 -1
- package/models/components/wallettype.js +2 -0
- package/models/components/wallettype.js.map +1 -1
- package/models/components/webhookdatatransferstatus.d.ts +3 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
- package/models/components/webhookdatatransferstatus.js +3 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -1
- package/models/errors/productrequestvalidationerror.d.ts +3 -0
- package/models/errors/productrequestvalidationerror.d.ts.map +1 -1
- package/models/errors/productrequestvalidationerror.js +4 -0
- package/models/errors/productrequestvalidationerror.js.map +1 -1
- package/models/errors/transfer.d.ts +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +3 -0
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +4 -0
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/deleteavatar.d.ts +52 -0
- package/models/operations/deleteavatar.d.ts.map +1 -0
- package/models/operations/deleteavatar.js +102 -0
- package/models/operations/deleteavatar.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listissuingmerchantcategories.d.ts +24 -0
- package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
- package/models/operations/listissuingmerchantcategories.js +72 -0
- package/models/operations/listissuingmerchantcategories.js.map +1 -0
- package/models/operations/listproductcategories.d.ts +24 -0
- package/models/operations/listproductcategories.d.ts.map +1 -0
- package/models/operations/listproductcategories.js +72 -0
- package/models/operations/listproductcategories.js.map +1 -0
- package/models/operations/listproducts.d.ts +9 -0
- package/models/operations/listproducts.d.ts.map +1 -1
- package/models/operations/listproducts.js +2 -0
- package/models/operations/listproducts.js.map +1 -1
- package/models/operations/listtransfers.d.ts +10 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +4 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/uploadavatar.d.ts +55 -0
- package/models/operations/uploadavatar.d.ts.map +1 -0
- package/models/operations/uploadavatar.js +113 -0
- package/models/operations/uploadavatar.js.map +1 -0
- package/package.json +1 -1
- package/sdk/avatars.d.ts +24 -0
- package/sdk/avatars.d.ts.map +1 -1
- package/sdk/avatars.js +30 -0
- package/sdk/avatars.js.map +1 -1
- package/sdk/cardissuing.d.ts +9 -0
- package/sdk/cardissuing.d.ts.map +1 -1
- package/sdk/cardissuing.js +12 -0
- package/sdk/cardissuing.js.map +1 -1
- package/sdk/products.d.ts +4 -0
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +7 -0
- package/sdk/products.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/avatarsDelete.ts +194 -0
- package/src/funcs/avatarsUpload.ts +231 -0
- package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
- package/src/funcs/productsList.ts +1 -0
- package/src/funcs/productsListCategories.ts +149 -0
- package/src/funcs/transfersList.ts +2 -0
- package/src/hooks/oauth2scopes.ts +8 -0
- package/src/lib/config.ts +3 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +10 -6
- package/src/mcp-server/tools/avatarsGet.ts +1 -1
- package/src/mcp-server/tools/cardIssuingListMerchantCategories.ts +34 -0
- package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
- package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
- package/src/mcp-server/tools/institutionsSearch.ts +1 -1
- package/src/mcp-server/tools/productsListCategories.ts +29 -0
- package/src/models/components/allowedscheduleerror.ts +62 -0
- package/src/models/components/avataruploadrequest.ts +113 -0
- package/src/models/components/capabilityid.ts +1 -0
- package/src/models/components/createdtransfer.ts +13 -0
- package/src/models/components/createrefund.ts +2 -2
- package/src/models/components/createreversal.ts +1 -1
- package/src/models/components/createtransfer.ts +13 -0
- package/src/models/components/feepaidby.ts +32 -0
- package/src/models/components/filedetails.ts +1 -1
- package/src/models/components/filepurpose.ts +2 -2
- package/src/models/components/fullissuedcard.ts +12 -9
- package/src/models/components/incurredfee.ts +12 -0
- package/src/models/components/index.ts +26 -0
- package/src/models/components/issuedcard.ts +12 -9
- package/src/models/components/issuedcontrols.ts +180 -0
- package/src/models/components/issuedvelocitylimit.ts +112 -0
- package/src/models/components/issuingcontrols.ts +107 -0
- package/src/models/components/issuingcontrolserror.ts +39 -0
- package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
- package/src/models/components/issuingintervallimit.ts +18 -10
- package/src/models/components/issuingmerchantcategory.ts +56 -0
- package/src/models/components/issuingscheduleday.ts +26 -0
- package/src/models/components/issuingvelocitylimit.ts +12 -5
- package/src/models/components/issuingvelocitylimiterror.ts +4 -0
- package/src/models/components/merchantcategories.ts +60 -0
- package/src/models/components/merchantcategory.ts +73 -0
- package/src/models/components/merchantcategoryrestrictions.ts +97 -0
- package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
- package/src/models/components/merchantentry.ts +68 -0
- package/src/models/components/merchantentryerror.ts +56 -0
- package/src/models/components/merchantrestrictions.ts +75 -0
- package/src/models/components/merchantrestrictionserror.ts +62 -0
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/paymentlinkpayoutdetails.ts +16 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +16 -0
- package/src/models/components/paymentmethodswallet.ts +1 -0
- package/src/models/components/payoutdetailserror.ts +4 -0
- package/src/models/components/product.ts +13 -0
- package/src/models/components/productcategories.ts +60 -0
- package/src/models/components/productcategory.ts +84 -0
- package/src/models/components/productrequest.ts +7 -0
- package/src/models/components/schedulewindow.ts +73 -0
- package/src/models/components/schedulewindowerror.ts +60 -0
- package/src/models/components/sendfunds.ts +10 -0
- package/src/models/components/sendfundserror.ts +10 -0
- package/src/models/components/sendfundswire.ts +54 -0
- package/src/models/components/sendfundswireerror.ts +58 -0
- package/src/models/components/transfer.ts +13 -0
- package/src/models/components/transfercapture.ts +63 -0
- package/src/models/components/transferfeepaidby.ts +63 -0
- package/src/models/components/transferpaymentmethodswallet.ts +1 -0
- package/src/models/components/updateissuedcard.ts +13 -0
- package/src/models/components/updateissuingcontrols.ts +351 -0
- package/src/models/components/updateissuingcontrolserror.ts +101 -0
- package/src/models/components/wallet.ts +1 -0
- package/src/models/components/wallettype.ts +3 -0
- package/src/models/components/webhookdatatransferstatus.ts +3 -0
- package/src/models/errors/productrequestvalidationerror.ts +6 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/updateissuedcarderror.ts +6 -0
- package/src/models/operations/deleteavatar.ts +154 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listissuingmerchantcategories.ts +70 -0
- package/src/models/operations/listproductcategories.ts +69 -0
- package/src/models/operations/listproducts.ts +11 -0
- package/src/models/operations/listtransfers.ts +14 -0
- package/src/models/operations/uploadavatar.ts +167 -0
- package/src/sdk/avatars.ts +50 -0
- package/src/sdk/cardissuing.ts +18 -0
- package/src/sdk/products.ts +13 -0
- package/src/sdk/sdk.ts +5 -5
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AllowedScheduleError,
|
|
12
|
+
AllowedScheduleError$inboundSchema,
|
|
13
|
+
AllowedScheduleError$Outbound,
|
|
14
|
+
AllowedScheduleError$outboundSchema,
|
|
15
|
+
} from "./allowedscheduleerror.js";
|
|
16
|
+
import {
|
|
17
|
+
IssuingVelocityLimitError,
|
|
18
|
+
IssuingVelocityLimitError$inboundSchema,
|
|
19
|
+
IssuingVelocityLimitError$Outbound,
|
|
20
|
+
IssuingVelocityLimitError$outboundSchema,
|
|
21
|
+
} from "./issuingvelocitylimiterror.js";
|
|
22
|
+
import {
|
|
23
|
+
MerchantCategoryRestrictionsError,
|
|
24
|
+
MerchantCategoryRestrictionsError$inboundSchema,
|
|
25
|
+
MerchantCategoryRestrictionsError$Outbound,
|
|
26
|
+
MerchantCategoryRestrictionsError$outboundSchema,
|
|
27
|
+
} from "./merchantcategoryrestrictionserror.js";
|
|
28
|
+
import {
|
|
29
|
+
MerchantRestrictionsError,
|
|
30
|
+
MerchantRestrictionsError$inboundSchema,
|
|
31
|
+
MerchantRestrictionsError$Outbound,
|
|
32
|
+
MerchantRestrictionsError$outboundSchema,
|
|
33
|
+
} from "./merchantrestrictionserror.js";
|
|
34
|
+
|
|
35
|
+
export type UpdateIssuingControlsError = {
|
|
36
|
+
velocityLimits?: { [k: string]: IssuingVelocityLimitError } | undefined;
|
|
37
|
+
merchantCategoryRestrictions?: MerchantCategoryRestrictionsError | undefined;
|
|
38
|
+
merchantRestrictions?: MerchantRestrictionsError | undefined;
|
|
39
|
+
allowedSchedule?: AllowedScheduleError | undefined;
|
|
40
|
+
expiresOn?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const UpdateIssuingControlsError$inboundSchema: z.ZodType<
|
|
45
|
+
UpdateIssuingControlsError,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
velocityLimits: types.optional(
|
|
50
|
+
z.record(IssuingVelocityLimitError$inboundSchema),
|
|
51
|
+
),
|
|
52
|
+
merchantCategoryRestrictions: types.optional(
|
|
53
|
+
MerchantCategoryRestrictionsError$inboundSchema,
|
|
54
|
+
),
|
|
55
|
+
merchantRestrictions: types.optional(MerchantRestrictionsError$inboundSchema),
|
|
56
|
+
allowedSchedule: types.optional(AllowedScheduleError$inboundSchema),
|
|
57
|
+
expiresOn: types.optional(types.string()),
|
|
58
|
+
});
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type UpdateIssuingControlsError$Outbound = {
|
|
61
|
+
velocityLimits?:
|
|
62
|
+
| { [k: string]: IssuingVelocityLimitError$Outbound }
|
|
63
|
+
| undefined;
|
|
64
|
+
merchantCategoryRestrictions?:
|
|
65
|
+
| MerchantCategoryRestrictionsError$Outbound
|
|
66
|
+
| undefined;
|
|
67
|
+
merchantRestrictions?: MerchantRestrictionsError$Outbound | undefined;
|
|
68
|
+
allowedSchedule?: AllowedScheduleError$Outbound | undefined;
|
|
69
|
+
expiresOn?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const UpdateIssuingControlsError$outboundSchema: z.ZodType<
|
|
74
|
+
UpdateIssuingControlsError$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
UpdateIssuingControlsError
|
|
77
|
+
> = z.object({
|
|
78
|
+
velocityLimits: z.record(IssuingVelocityLimitError$outboundSchema).optional(),
|
|
79
|
+
merchantCategoryRestrictions: MerchantCategoryRestrictionsError$outboundSchema
|
|
80
|
+
.optional(),
|
|
81
|
+
merchantRestrictions: MerchantRestrictionsError$outboundSchema.optional(),
|
|
82
|
+
allowedSchedule: AllowedScheduleError$outboundSchema.optional(),
|
|
83
|
+
expiresOn: z.string().optional(),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function updateIssuingControlsErrorToJSON(
|
|
87
|
+
updateIssuingControlsError: UpdateIssuingControlsError,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
UpdateIssuingControlsError$outboundSchema.parse(updateIssuingControlsError),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
export function updateIssuingControlsErrorFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<UpdateIssuingControlsError, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => UpdateIssuingControlsError$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'UpdateIssuingControlsError' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -49,6 +49,7 @@ export type Wallet = {
|
|
|
49
49
|
* @remarks
|
|
50
50
|
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
51
51
|
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
52
|
+
* - `card-issuing`: The system-generated wallet automatically created when an account is granted the card-issuing capability.
|
|
52
53
|
*/
|
|
53
54
|
walletType: WalletType;
|
|
54
55
|
/**
|
|
@@ -12,10 +12,12 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
14
14
|
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
15
|
+
* - `card-issuing`: The system-generated wallet automatically created when an account is granted the card-issuing capability.
|
|
15
16
|
*/
|
|
16
17
|
export const WalletType = {
|
|
17
18
|
Default: "default",
|
|
18
19
|
General: "general",
|
|
20
|
+
CardIssuing: "card-issuing",
|
|
19
21
|
} as const;
|
|
20
22
|
/**
|
|
21
23
|
* Type of a wallet.
|
|
@@ -23,6 +25,7 @@ export const WalletType = {
|
|
|
23
25
|
* @remarks
|
|
24
26
|
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
25
27
|
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
28
|
+
* - `card-issuing`: The system-generated wallet automatically created when an account is granted the card-issuing capability.
|
|
26
29
|
*/
|
|
27
30
|
export type WalletType = OpenEnum<typeof WalletType>;
|
|
28
31
|
|
|
@@ -28,8 +28,11 @@ export const WebhookDataTransferStatus = {
|
|
|
28
28
|
DestinationReturned: "destination.returned",
|
|
29
29
|
DestinationOriginated: "destination.originated",
|
|
30
30
|
DestinationConfirmed: "destination.confirmed",
|
|
31
|
+
DestinationSettled: "destination.settled",
|
|
31
32
|
DestinationFailed: "destination.failed",
|
|
33
|
+
DestinationCanceled: "destination.canceled",
|
|
32
34
|
DestinationAcceptedWithoutPosting: "destination.accepted-without-posting",
|
|
35
|
+
DestinationDeferred: "destination.deferred",
|
|
33
36
|
} as const;
|
|
34
37
|
export type WebhookDataTransferStatus = ClosedEnum<
|
|
35
38
|
typeof WebhookDataTransferStatus
|
|
@@ -17,6 +17,7 @@ export type ProductRequestValidationErrorData = {
|
|
|
17
17
|
optionGroups?:
|
|
18
18
|
| { [k: string]: components.ProductOptionGroupValidationError }
|
|
19
19
|
| undefined;
|
|
20
|
+
categoryID?: string | undefined;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export class ProductRequestValidationError extends MoovError {
|
|
@@ -29,6 +30,7 @@ export class ProductRequestValidationError extends MoovError {
|
|
|
29
30
|
optionGroups?:
|
|
30
31
|
| { [k: string]: components.ProductOptionGroupValidationError }
|
|
31
32
|
| undefined;
|
|
33
|
+
categoryID?: string | undefined;
|
|
32
34
|
|
|
33
35
|
/** The original data that was passed to this error instance. */
|
|
34
36
|
data$: ProductRequestValidationErrorData;
|
|
@@ -47,6 +49,7 @@ export class ProductRequestValidationError extends MoovError {
|
|
|
47
49
|
if (err.basePrice != null) this.basePrice = err.basePrice;
|
|
48
50
|
if (err.images != null) this.images = err.images;
|
|
49
51
|
if (err.optionGroups != null) this.optionGroups = err.optionGroups;
|
|
52
|
+
if (err.categoryID != null) this.categoryID = err.categoryID;
|
|
50
53
|
|
|
51
54
|
this.name = "ProductRequestValidationError";
|
|
52
55
|
}
|
|
@@ -69,6 +72,7 @@ export const ProductRequestValidationError$inboundSchema: z.ZodType<
|
|
|
69
72
|
optionGroups: types.optional(
|
|
70
73
|
z.record(components.ProductOptionGroupValidationError$inboundSchema),
|
|
71
74
|
),
|
|
75
|
+
categoryID: types.optional(types.string()),
|
|
72
76
|
request$: z.instanceof(Request),
|
|
73
77
|
response$: z.instanceof(Response),
|
|
74
78
|
body$: z.string(),
|
|
@@ -92,6 +96,7 @@ export type ProductRequestValidationError$Outbound = {
|
|
|
92
96
|
optionGroups?: {
|
|
93
97
|
[k: string]: components.ProductOptionGroupValidationError$Outbound;
|
|
94
98
|
} | undefined;
|
|
99
|
+
categoryID?: string | undefined;
|
|
95
100
|
};
|
|
96
101
|
|
|
97
102
|
/** @internal */
|
|
@@ -112,4 +117,5 @@ export const ProductRequestValidationError$outboundSchema: z.ZodType<
|
|
|
112
117
|
optionGroups: z.record(
|
|
113
118
|
components.ProductOptionGroupValidationError$outboundSchema,
|
|
114
119
|
).optional(),
|
|
120
|
+
categoryID: z.string().optional(),
|
|
115
121
|
}));
|
|
@@ -82,6 +82,10 @@ export type TransferData = {
|
|
|
82
82
|
*/
|
|
83
83
|
invoiceID?: string | undefined;
|
|
84
84
|
amountDetails?: components.TransferAmountDetails | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The card authorization and capture IDs associated with a transfer.
|
|
87
|
+
*/
|
|
88
|
+
capture?: components.TransferCapture | undefined;
|
|
85
89
|
};
|
|
86
90
|
|
|
87
91
|
/**
|
|
@@ -159,6 +163,10 @@ export class Transfer extends MoovError {
|
|
|
159
163
|
*/
|
|
160
164
|
invoiceID?: string | undefined;
|
|
161
165
|
amountDetails?: components.TransferAmountDetails | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* The card authorization and capture IDs associated with a transfer.
|
|
168
|
+
*/
|
|
169
|
+
capture?: components.TransferCapture | undefined;
|
|
162
170
|
|
|
163
171
|
/** The original data that was passed to this error instance. */
|
|
164
172
|
data$: TransferData;
|
|
@@ -201,6 +209,7 @@ export class Transfer extends MoovError {
|
|
|
201
209
|
if (err.lineItems != null) this.lineItems = err.lineItems;
|
|
202
210
|
if (err.invoiceID != null) this.invoiceID = err.invoiceID;
|
|
203
211
|
if (err.amountDetails != null) this.amountDetails = err.amountDetails;
|
|
212
|
+
if (err.capture != null) this.capture = err.capture;
|
|
204
213
|
|
|
205
214
|
this.name = "Transfer";
|
|
206
215
|
}
|
|
@@ -245,6 +254,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
245
254
|
lineItems: types.optional(components.TransferLineItems$inboundSchema),
|
|
246
255
|
invoiceID: types.optional(types.string()),
|
|
247
256
|
amountDetails: types.optional(components.TransferAmountDetails$inboundSchema),
|
|
257
|
+
capture: types.optional(components.TransferCapture$inboundSchema),
|
|
248
258
|
request$: z.instanceof(Request),
|
|
249
259
|
response$: z.instanceof(Response),
|
|
250
260
|
body$: z.string(),
|
|
@@ -288,6 +298,7 @@ export type Transfer$Outbound = {
|
|
|
288
298
|
lineItems?: components.TransferLineItems$Outbound | undefined;
|
|
289
299
|
invoiceID?: string | undefined;
|
|
290
300
|
amountDetails?: components.TransferAmountDetails$Outbound | undefined;
|
|
301
|
+
capture?: components.TransferCapture$Outbound | undefined;
|
|
291
302
|
};
|
|
292
303
|
|
|
293
304
|
/** @internal */
|
|
@@ -328,4 +339,5 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
328
339
|
lineItems: components.TransferLineItems$outboundSchema.optional(),
|
|
329
340
|
invoiceID: z.string().optional(),
|
|
330
341
|
amountDetails: components.TransferAmountDetails$outboundSchema.optional(),
|
|
342
|
+
capture: components.TransferCapture$outboundSchema.optional(),
|
|
331
343
|
}));
|
|
@@ -12,6 +12,7 @@ export type UpdateIssuedCardErrorData = {
|
|
|
12
12
|
nickname?: string | undefined;
|
|
13
13
|
metadata?: string | undefined;
|
|
14
14
|
billingAddress?: components.AddressError | undefined;
|
|
15
|
+
controls?: components.UpdateIssuingControlsError | undefined;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export class UpdateIssuedCardError extends MoovError {
|
|
@@ -19,6 +20,7 @@ export class UpdateIssuedCardError extends MoovError {
|
|
|
19
20
|
nickname?: string | undefined;
|
|
20
21
|
metadata?: string | undefined;
|
|
21
22
|
billingAddress?: components.AddressError | undefined;
|
|
23
|
+
controls?: components.UpdateIssuingControlsError | undefined;
|
|
22
24
|
|
|
23
25
|
/** The original data that was passed to this error instance. */
|
|
24
26
|
data$: UpdateIssuedCardErrorData;
|
|
@@ -36,6 +38,7 @@ export class UpdateIssuedCardError extends MoovError {
|
|
|
36
38
|
if (err.nickname != null) this.nickname = err.nickname;
|
|
37
39
|
if (err.metadata != null) this.metadata = err.metadata;
|
|
38
40
|
if (err.billingAddress != null) this.billingAddress = err.billingAddress;
|
|
41
|
+
if (err.controls != null) this.controls = err.controls;
|
|
39
42
|
|
|
40
43
|
this.name = "UpdateIssuedCardError";
|
|
41
44
|
}
|
|
@@ -51,6 +54,7 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
|
|
|
51
54
|
nickname: types.optional(types.string()),
|
|
52
55
|
metadata: types.optional(types.string()),
|
|
53
56
|
billingAddress: types.optional(components.AddressError$inboundSchema),
|
|
57
|
+
controls: types.optional(components.UpdateIssuingControlsError$inboundSchema),
|
|
54
58
|
request$: z.instanceof(Request),
|
|
55
59
|
response$: z.instanceof(Response),
|
|
56
60
|
body$: z.string(),
|
|
@@ -69,6 +73,7 @@ export type UpdateIssuedCardError$Outbound = {
|
|
|
69
73
|
nickname?: string | undefined;
|
|
70
74
|
metadata?: string | undefined;
|
|
71
75
|
billingAddress?: components.AddressError$Outbound | undefined;
|
|
76
|
+
controls?: components.UpdateIssuingControlsError$Outbound | undefined;
|
|
72
77
|
};
|
|
73
78
|
|
|
74
79
|
/** @internal */
|
|
@@ -83,4 +88,5 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
|
|
|
83
88
|
nickname: z.string().optional(),
|
|
84
89
|
metadata: z.string().optional(),
|
|
85
90
|
billingAddress: components.AddressError$outboundSchema.optional(),
|
|
91
|
+
controls: components.UpdateIssuingControlsError$outboundSchema.optional(),
|
|
86
92
|
}));
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type DeleteAvatarSecurity = {
|
|
13
|
+
username?: string | undefined;
|
|
14
|
+
password?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type DeleteAvatarRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* The accountID to delete the avatar for. Only accountID values are accepted for writes.
|
|
20
|
+
*/
|
|
21
|
+
uniqueID: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type DeleteAvatarResponse = {
|
|
25
|
+
headers: { [k: string]: Array<string> };
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const DeleteAvatarSecurity$inboundSchema: z.ZodType<
|
|
30
|
+
DeleteAvatarSecurity,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
username: types.optional(types.string()),
|
|
35
|
+
password: types.optional(types.string()),
|
|
36
|
+
});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type DeleteAvatarSecurity$Outbound = {
|
|
39
|
+
username?: string | undefined;
|
|
40
|
+
password?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const DeleteAvatarSecurity$outboundSchema: z.ZodType<
|
|
45
|
+
DeleteAvatarSecurity$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
DeleteAvatarSecurity
|
|
48
|
+
> = z.object({
|
|
49
|
+
username: z.string().optional(),
|
|
50
|
+
password: z.string().optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function deleteAvatarSecurityToJSON(
|
|
54
|
+
deleteAvatarSecurity: DeleteAvatarSecurity,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
DeleteAvatarSecurity$outboundSchema.parse(deleteAvatarSecurity),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export function deleteAvatarSecurityFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<DeleteAvatarSecurity, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => DeleteAvatarSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'DeleteAvatarSecurity' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const DeleteAvatarRequest$inboundSchema: z.ZodType<
|
|
72
|
+
DeleteAvatarRequest,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
uniqueID: types.string(),
|
|
77
|
+
});
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type DeleteAvatarRequest$Outbound = {
|
|
80
|
+
uniqueID: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const DeleteAvatarRequest$outboundSchema: z.ZodType<
|
|
85
|
+
DeleteAvatarRequest$Outbound,
|
|
86
|
+
z.ZodTypeDef,
|
|
87
|
+
DeleteAvatarRequest
|
|
88
|
+
> = z.object({
|
|
89
|
+
uniqueID: z.string(),
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export function deleteAvatarRequestToJSON(
|
|
93
|
+
deleteAvatarRequest: DeleteAvatarRequest,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
DeleteAvatarRequest$outboundSchema.parse(deleteAvatarRequest),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export function deleteAvatarRequestFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<DeleteAvatarRequest, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => DeleteAvatarRequest$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'DeleteAvatarRequest' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const DeleteAvatarResponse$inboundSchema: z.ZodType<
|
|
111
|
+
DeleteAvatarResponse,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
unknown
|
|
114
|
+
> = z.object({
|
|
115
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
"Headers": "headers",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type DeleteAvatarResponse$Outbound = {
|
|
123
|
+
Headers: { [k: string]: Array<string> };
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const DeleteAvatarResponse$outboundSchema: z.ZodType<
|
|
128
|
+
DeleteAvatarResponse$Outbound,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
DeleteAvatarResponse
|
|
131
|
+
> = z.object({
|
|
132
|
+
headers: z.record(z.array(z.string())),
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
headers: "Headers",
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export function deleteAvatarResponseToJSON(
|
|
140
|
+
deleteAvatarResponse: DeleteAvatarResponse,
|
|
141
|
+
): string {
|
|
142
|
+
return JSON.stringify(
|
|
143
|
+
DeleteAvatarResponse$outboundSchema.parse(deleteAvatarResponse),
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
export function deleteAvatarResponseFromJSON(
|
|
147
|
+
jsonString: string,
|
|
148
|
+
): SafeParseResult<DeleteAvatarResponse, SDKValidationError> {
|
|
149
|
+
return safeParse(
|
|
150
|
+
jsonString,
|
|
151
|
+
(x) => DeleteAvatarResponse$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
+
`Failed to parse 'DeleteAvatarResponse' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
@@ -35,6 +35,7 @@ export * from "./createtransferconfig.js";
|
|
|
35
35
|
export * from "./createtransferoptions.js";
|
|
36
36
|
export * from "./createwallet.js";
|
|
37
37
|
export * from "./createwebhook.js";
|
|
38
|
+
export * from "./deleteavatar.js";
|
|
38
39
|
export * from "./deletedisputeevidencefile.js";
|
|
39
40
|
export * from "./deleteimage.js";
|
|
40
41
|
export * from "./deleteinvoice.js";
|
|
@@ -134,10 +135,12 @@ export * from "./listissuedcardauthorizationevents.js";
|
|
|
134
135
|
export * from "./listissuedcardauthorizations.js";
|
|
135
136
|
export * from "./listissuedcards.js";
|
|
136
137
|
export * from "./listissuedcardtransactions.js";
|
|
138
|
+
export * from "./listissuingmerchantcategories.js";
|
|
137
139
|
export * from "./listonboardinginvites.js";
|
|
138
140
|
export * from "./listpartnerpricingagreements.js";
|
|
139
141
|
export * from "./listpaymentlinks.js";
|
|
140
142
|
export * from "./listpaymentmethods.js";
|
|
143
|
+
export * from "./listproductcategories.js";
|
|
141
144
|
export * from "./listproducts.js";
|
|
142
145
|
export * from "./listreceipts.js";
|
|
143
146
|
export * from "./listrefunds.js";
|
|
@@ -186,6 +189,7 @@ export * from "./updatetransfer.js";
|
|
|
186
189
|
export * from "./updatetransferconfig.js";
|
|
187
190
|
export * from "./updatewallet.js";
|
|
188
191
|
export * from "./updatewebhook.js";
|
|
192
|
+
export * from "./uploadavatar.js";
|
|
189
193
|
export * from "./uploaddisputeevidencefile.js";
|
|
190
194
|
export * from "./uploaddisputeevidencetext.js";
|
|
191
195
|
export * from "./uploadfile.js";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListIssuingMerchantCategoriesResponse = {
|
|
13
|
+
headers: { [k: string]: Array<string> };
|
|
14
|
+
result: components.MerchantCategories;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ListIssuingMerchantCategoriesResponse$inboundSchema: z.ZodType<
|
|
19
|
+
ListIssuingMerchantCategoriesResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
24
|
+
Result: components.MerchantCategories$inboundSchema,
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"Headers": "headers",
|
|
28
|
+
"Result": "result",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ListIssuingMerchantCategoriesResponse$Outbound = {
|
|
33
|
+
Headers: { [k: string]: Array<string> };
|
|
34
|
+
Result: components.MerchantCategories$Outbound;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListIssuingMerchantCategoriesResponse$outboundSchema: z.ZodType<
|
|
39
|
+
ListIssuingMerchantCategoriesResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
ListIssuingMerchantCategoriesResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
headers: z.record(z.array(z.string())),
|
|
44
|
+
result: components.MerchantCategories$outboundSchema,
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
headers: "Headers",
|
|
48
|
+
result: "Result",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function listIssuingMerchantCategoriesResponseToJSON(
|
|
53
|
+
listIssuingMerchantCategoriesResponse: ListIssuingMerchantCategoriesResponse,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
ListIssuingMerchantCategoriesResponse$outboundSchema.parse(
|
|
57
|
+
listIssuingMerchantCategoriesResponse,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function listIssuingMerchantCategoriesResponseFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ListIssuingMerchantCategoriesResponse, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) =>
|
|
67
|
+
ListIssuingMerchantCategoriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'ListIssuingMerchantCategoriesResponse' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListProductCategoriesResponse = {
|
|
13
|
+
headers: { [k: string]: Array<string> };
|
|
14
|
+
result: components.ProductCategories;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ListProductCategoriesResponse$inboundSchema: z.ZodType<
|
|
19
|
+
ListProductCategoriesResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
24
|
+
Result: components.ProductCategories$inboundSchema,
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"Headers": "headers",
|
|
28
|
+
"Result": "result",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ListProductCategoriesResponse$Outbound = {
|
|
33
|
+
Headers: { [k: string]: Array<string> };
|
|
34
|
+
Result: components.ProductCategories$Outbound;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListProductCategoriesResponse$outboundSchema: z.ZodType<
|
|
39
|
+
ListProductCategoriesResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
ListProductCategoriesResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
headers: z.record(z.array(z.string())),
|
|
44
|
+
result: components.ProductCategories$outboundSchema,
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
headers: "Headers",
|
|
48
|
+
result: "Result",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function listProductCategoriesResponseToJSON(
|
|
53
|
+
listProductCategoriesResponse: ListProductCategoriesResponse,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
ListProductCategoriesResponse$outboundSchema.parse(
|
|
57
|
+
listProductCategoriesResponse,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function listProductCategoriesResponseFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ListProductCategoriesResponse, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => ListProductCategoriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'ListProductCategoriesResponse' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -16,6 +16,14 @@ export type ListProductsRequest = {
|
|
|
16
16
|
* Allows filtering products by title. This supports partial matches and is case-insensitive
|
|
17
17
|
*/
|
|
18
18
|
title?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Filter products by category. Accepts a category ID at any level of the taxonomy;
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* a product matches when the given category is anywhere in its category's breadcrumb
|
|
24
|
+
* (i.e. filtering by a top-level category returns products in any of its descendants).
|
|
25
|
+
*/
|
|
26
|
+
category?: string | undefined;
|
|
19
27
|
skip?: number | undefined;
|
|
20
28
|
count?: number | undefined;
|
|
21
29
|
};
|
|
@@ -33,6 +41,7 @@ export const ListProductsRequest$inboundSchema: z.ZodType<
|
|
|
33
41
|
> = z.object({
|
|
34
42
|
accountID: types.string(),
|
|
35
43
|
title: types.optional(types.string()),
|
|
44
|
+
category: types.optional(types.string()),
|
|
36
45
|
skip: types.optional(types.number()),
|
|
37
46
|
count: types.optional(types.number()),
|
|
38
47
|
});
|
|
@@ -40,6 +49,7 @@ export const ListProductsRequest$inboundSchema: z.ZodType<
|
|
|
40
49
|
export type ListProductsRequest$Outbound = {
|
|
41
50
|
accountID: string;
|
|
42
51
|
title?: string | undefined;
|
|
52
|
+
category?: string | undefined;
|
|
43
53
|
skip?: number | undefined;
|
|
44
54
|
count?: number | undefined;
|
|
45
55
|
};
|
|
@@ -52,6 +62,7 @@ export const ListProductsRequest$outboundSchema: z.ZodType<
|
|
|
52
62
|
> = z.object({
|
|
53
63
|
accountID: z.string(),
|
|
54
64
|
title: z.string().optional(),
|
|
65
|
+
category: z.string().optional(),
|
|
55
66
|
skip: z.number().int().optional(),
|
|
56
67
|
count: z.number().int().optional(),
|
|
57
68
|
});
|
|
@@ -51,6 +51,14 @@ export type ListTransfersRequest = {
|
|
|
51
51
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
52
52
|
*/
|
|
53
53
|
foreignID?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Optional comma-separated IDs to filter for transfers associated with specific card authorizations.
|
|
56
|
+
*/
|
|
57
|
+
authorizationIDs?: Array<string> | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Optional comma-separated IDs to filter for transfers associated with specific card captures.
|
|
60
|
+
*/
|
|
61
|
+
captureIDs?: Array<string> | undefined;
|
|
54
62
|
skip?: number | undefined;
|
|
55
63
|
count?: number | undefined;
|
|
56
64
|
accountID: string;
|
|
@@ -77,6 +85,8 @@ export const ListTransfersRequest$inboundSchema: z.ZodType<
|
|
|
77
85
|
refunded: types.optional(types.boolean()),
|
|
78
86
|
disputed: types.optional(types.boolean()),
|
|
79
87
|
foreignID: types.optional(types.string()),
|
|
88
|
+
authorizationIDs: types.optional(z.array(types.string())),
|
|
89
|
+
captureIDs: types.optional(z.array(types.string())),
|
|
80
90
|
skip: types.optional(types.number()),
|
|
81
91
|
count: types.optional(types.number()),
|
|
82
92
|
accountID: types.string(),
|
|
@@ -93,6 +103,8 @@ export type ListTransfersRequest$Outbound = {
|
|
|
93
103
|
refunded?: boolean | undefined;
|
|
94
104
|
disputed?: boolean | undefined;
|
|
95
105
|
foreignID?: string | undefined;
|
|
106
|
+
authorizationIDs?: Array<string> | undefined;
|
|
107
|
+
captureIDs?: Array<string> | undefined;
|
|
96
108
|
skip?: number | undefined;
|
|
97
109
|
count?: number | undefined;
|
|
98
110
|
accountID: string;
|
|
@@ -114,6 +126,8 @@ export const ListTransfersRequest$outboundSchema: z.ZodType<
|
|
|
114
126
|
refunded: z.boolean().optional(),
|
|
115
127
|
disputed: z.boolean().optional(),
|
|
116
128
|
foreignID: z.string().optional(),
|
|
129
|
+
authorizationIDs: z.array(z.string()).optional(),
|
|
130
|
+
captureIDs: z.array(z.string()).optional(),
|
|
117
131
|
skip: z.number().int().optional(),
|
|
118
132
|
count: z.number().int().optional(),
|
|
119
133
|
accountID: z.string(),
|