@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,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MoovCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { MoovError } from "../models/errors/mooverror.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List the predefined merchant category groups available for issued card spend controls, along with
|
|
28
|
+
* the merchant category codes (MCCs) each group covers. Use these category names in an issued card's
|
|
29
|
+
* `merchantCategoryRestrictions`.
|
|
30
|
+
*
|
|
31
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
32
|
+
* you'll need to specify the `/issued-cards.read` scope.
|
|
33
|
+
*/
|
|
34
|
+
export function cardIssuingListMerchantCategories(
|
|
35
|
+
client: MoovCore,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.ListIssuingMerchantCategoriesResponse,
|
|
40
|
+
| MoovError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: MoovCore,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.ListIssuingMerchantCategoriesResponse,
|
|
63
|
+
| MoovError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const path = pathToFunc("/issuing/merchant-categories")();
|
|
76
|
+
|
|
77
|
+
const headers = new Headers(compactMap({
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
82
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
83
|
+
|
|
84
|
+
const context = {
|
|
85
|
+
options: client._options,
|
|
86
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
+
operationID: "listIssuingMerchantCategories",
|
|
88
|
+
oAuth2Scopes: null,
|
|
89
|
+
|
|
90
|
+
resolvedSecurity: requestSecurity,
|
|
91
|
+
|
|
92
|
+
securitySource: client._options.security,
|
|
93
|
+
retryConfig: options?.retries
|
|
94
|
+
|| client._options.retryConfig
|
|
95
|
+
|| { strategy: "none" },
|
|
96
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const requestRes = client._createRequest(context, {
|
|
100
|
+
security: requestSecurity,
|
|
101
|
+
method: "GET",
|
|
102
|
+
baseURL: options?.serverURL,
|
|
103
|
+
path: path,
|
|
104
|
+
headers: headers,
|
|
105
|
+
userAgent: client._options.userAgent,
|
|
106
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
107
|
+
}, options);
|
|
108
|
+
if (!requestRes.ok) {
|
|
109
|
+
return [requestRes, { status: "invalid" }];
|
|
110
|
+
}
|
|
111
|
+
const req = requestRes.value;
|
|
112
|
+
|
|
113
|
+
const doResult = await client._do(req, {
|
|
114
|
+
context,
|
|
115
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
116
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
117
|
+
retryConfig: context.retryConfig,
|
|
118
|
+
retryCodes: context.retryCodes,
|
|
119
|
+
});
|
|
120
|
+
if (!doResult.ok) {
|
|
121
|
+
return [doResult, { status: "request-error", request: req }];
|
|
122
|
+
}
|
|
123
|
+
const response = doResult.value;
|
|
124
|
+
|
|
125
|
+
const responseFields = {
|
|
126
|
+
HttpMeta: { Response: response, Request: req },
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const [result] = await M.match<
|
|
130
|
+
operations.ListIssuingMerchantCategoriesResponse,
|
|
131
|
+
| MoovError
|
|
132
|
+
| ResponseValidationError
|
|
133
|
+
| ConnectionError
|
|
134
|
+
| RequestAbortedError
|
|
135
|
+
| RequestTimeoutError
|
|
136
|
+
| InvalidRequestError
|
|
137
|
+
| UnexpectedClientError
|
|
138
|
+
| SDKValidationError
|
|
139
|
+
>(
|
|
140
|
+
M.json(
|
|
141
|
+
200,
|
|
142
|
+
operations.ListIssuingMerchantCategoriesResponse$inboundSchema,
|
|
143
|
+
{ hdrs: true, key: "Result" },
|
|
144
|
+
),
|
|
145
|
+
M.fail([401, 403, 429]),
|
|
146
|
+
M.fail([500, 504]),
|
|
147
|
+
M.fail("4XX"),
|
|
148
|
+
M.fail("5XX"),
|
|
149
|
+
)(response, req, { extraFields: responseFields });
|
|
150
|
+
if (!result.ok) {
|
|
151
|
+
return [result, { status: "complete", request: req, response }];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return [result, { status: "complete", request: req, response }];
|
|
155
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MoovCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { MoovError } from "../models/errors/mooverror.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the full, read-only list of product categories from the product taxonomy.
|
|
28
|
+
*/
|
|
29
|
+
export function productsListCategories(
|
|
30
|
+
client: MoovCore,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
operations.ListProductCategoriesResponse,
|
|
35
|
+
| MoovError
|
|
36
|
+
| ResponseValidationError
|
|
37
|
+
| ConnectionError
|
|
38
|
+
| RequestAbortedError
|
|
39
|
+
| RequestTimeoutError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client,
|
|
47
|
+
options,
|
|
48
|
+
));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async function $do(
|
|
52
|
+
client: MoovCore,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): Promise<
|
|
55
|
+
[
|
|
56
|
+
Result<
|
|
57
|
+
operations.ListProductCategoriesResponse,
|
|
58
|
+
| MoovError
|
|
59
|
+
| ResponseValidationError
|
|
60
|
+
| ConnectionError
|
|
61
|
+
| RequestAbortedError
|
|
62
|
+
| RequestTimeoutError
|
|
63
|
+
| InvalidRequestError
|
|
64
|
+
| UnexpectedClientError
|
|
65
|
+
| SDKValidationError
|
|
66
|
+
>,
|
|
67
|
+
APICall,
|
|
68
|
+
]
|
|
69
|
+
> {
|
|
70
|
+
const path = pathToFunc("/product-categories")();
|
|
71
|
+
|
|
72
|
+
const headers = new Headers(compactMap({
|
|
73
|
+
Accept: "application/json",
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
77
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
|
+
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "listProductCategories",
|
|
83
|
+
oAuth2Scopes: null,
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
87
|
+
securitySource: client._options.security,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "GET",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
userAgent: client._options.userAgent,
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return [requestRes, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
111
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
112
|
+
retryConfig: context.retryConfig,
|
|
113
|
+
retryCodes: context.retryCodes,
|
|
114
|
+
});
|
|
115
|
+
if (!doResult.ok) {
|
|
116
|
+
return [doResult, { status: "request-error", request: req }];
|
|
117
|
+
}
|
|
118
|
+
const response = doResult.value;
|
|
119
|
+
|
|
120
|
+
const responseFields = {
|
|
121
|
+
HttpMeta: { Response: response, Request: req },
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const [result] = await M.match<
|
|
125
|
+
operations.ListProductCategoriesResponse,
|
|
126
|
+
| MoovError
|
|
127
|
+
| ResponseValidationError
|
|
128
|
+
| ConnectionError
|
|
129
|
+
| RequestAbortedError
|
|
130
|
+
| RequestTimeoutError
|
|
131
|
+
| InvalidRequestError
|
|
132
|
+
| UnexpectedClientError
|
|
133
|
+
| SDKValidationError
|
|
134
|
+
>(
|
|
135
|
+
M.json(200, operations.ListProductCategoriesResponse$inboundSchema, {
|
|
136
|
+
hdrs: true,
|
|
137
|
+
key: "Result",
|
|
138
|
+
}),
|
|
139
|
+
M.fail([401, 403, 429]),
|
|
140
|
+
M.fail([500, 504]),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return [result, { status: "complete", request: req, response }];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return [result, { status: "complete", request: req, response }];
|
|
149
|
+
}
|
|
@@ -106,6 +106,8 @@ async function $do(
|
|
|
106
106
|
|
|
107
107
|
const query = encodeFormQuery({
|
|
108
108
|
"accountIDs": payload.accountIDs,
|
|
109
|
+
"authorizationIDs": payload.authorizationIDs,
|
|
110
|
+
"captureIDs": payload.captureIDs,
|
|
109
111
|
"count": payload.count,
|
|
110
112
|
"disputed": payload.disputed,
|
|
111
113
|
"endDateTime": payload.endDateTime,
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "v2026.07.00",
|
|
76
|
-
sdkVersion: "26.7.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 26.7.0-dev.6 2.917.0 v2026.07.00 @moovio/sdk",
|
|
76
|
+
sdkVersion: "26.7.1",
|
|
77
|
+
genVersion: "2.924.0",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 26.7.1 2.924.0 v2026.07.00 @moovio/sdk",
|
|
80
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -57,6 +57,7 @@ import { tool$capabilitiesRequest } from "./tools/capabilitiesRequest.js";
|
|
|
57
57
|
import { tool$cardIssuingGet } from "./tools/cardIssuingGet.js";
|
|
58
58
|
import { tool$cardIssuingGetFull } from "./tools/cardIssuingGetFull.js";
|
|
59
59
|
import { tool$cardIssuingList } from "./tools/cardIssuingList.js";
|
|
60
|
+
import { tool$cardIssuingListMerchantCategories } from "./tools/cardIssuingListMerchantCategories.js";
|
|
60
61
|
import { tool$cardIssuingRequest } from "./tools/cardIssuingRequest.js";
|
|
61
62
|
import { tool$cardIssuingUpdate } from "./tools/cardIssuingUpdate.js";
|
|
62
63
|
import { tool$cardsDisable } from "./tools/cardsDisable.js";
|
|
@@ -134,6 +135,7 @@ import { tool$productsCreate } from "./tools/productsCreate.js";
|
|
|
134
135
|
import { tool$productsDisable } from "./tools/productsDisable.js";
|
|
135
136
|
import { tool$productsGet } from "./tools/productsGet.js";
|
|
136
137
|
import { tool$productsList } from "./tools/productsList.js";
|
|
138
|
+
import { tool$productsListCategories } from "./tools/productsListCategories.js";
|
|
137
139
|
import { tool$productsUpdate } from "./tools/productsUpdate.js";
|
|
138
140
|
import { tool$receiptsCreate } from "./tools/receiptsCreate.js";
|
|
139
141
|
import { tool$receiptsList } from "./tools/receiptsList.js";
|
|
@@ -215,7 +217,7 @@ export function createMCPServer(deps: {
|
|
|
215
217
|
}) {
|
|
216
218
|
const server = new McpServer({
|
|
217
219
|
name: "Moov",
|
|
218
|
-
version: "26.7.
|
|
220
|
+
version: "26.7.1",
|
|
219
221
|
});
|
|
220
222
|
|
|
221
223
|
const client = new MoovCore({
|
|
@@ -338,6 +340,7 @@ export function createMCPServer(deps: {
|
|
|
338
340
|
tool(tool$productsGet);
|
|
339
341
|
tool(tool$productsUpdate);
|
|
340
342
|
tool(tool$productsDisable);
|
|
343
|
+
tool(tool$productsListCategories);
|
|
341
344
|
tool(tool$representativesCreate);
|
|
342
345
|
tool(tool$representativesList);
|
|
343
346
|
tool(tool$representativesDelete);
|
|
@@ -411,16 +414,17 @@ export function createMCPServer(deps: {
|
|
|
411
414
|
tool(tool$industriesList);
|
|
412
415
|
tool(tool$institutionsSearchInstitutions);
|
|
413
416
|
tool(tool$institutionsSearch);
|
|
414
|
-
tool(tool$
|
|
415
|
-
tool(tool$issuingTransactionsGetAuthorization);
|
|
416
|
-
tool(tool$issuingTransactionsListAuthorizationEvents);
|
|
417
|
-
tool(tool$issuingTransactionsList);
|
|
418
|
-
tool(tool$issuingTransactionsGet);
|
|
417
|
+
tool(tool$cardIssuingListMerchantCategories);
|
|
419
418
|
tool(tool$cardIssuingRequest);
|
|
420
419
|
tool(tool$cardIssuingList);
|
|
421
420
|
tool(tool$cardIssuingGet);
|
|
422
421
|
tool(tool$cardIssuingUpdate);
|
|
423
422
|
tool(tool$cardIssuingGetFull);
|
|
423
|
+
tool(tool$issuingTransactionsListAuthorizations);
|
|
424
|
+
tool(tool$issuingTransactionsGetAuthorization);
|
|
425
|
+
tool(tool$issuingTransactionsListAuthorizationEvents);
|
|
426
|
+
tool(tool$issuingTransactionsList);
|
|
427
|
+
tool(tool$issuingTransactionsGet);
|
|
424
428
|
tool(tool$authenticationRevokeAccessToken);
|
|
425
429
|
tool(tool$authenticationCreateAccessToken);
|
|
426
430
|
tool(tool$onboardingCreateInvite);
|
|
@@ -14,7 +14,7 @@ export const tool$avatarsGet: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "avatars-get",
|
|
15
15
|
description: `Get avatar image for an account using a unique ID.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/profile-enrichment.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cardIssuingListMerchantCategories } from "../../funcs/cardIssuingListMerchantCategories.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$cardIssuingListMerchantCategories: ToolDefinition = {
|
|
9
|
+
name: "card-issuing-list-merchant-categories",
|
|
10
|
+
description:
|
|
11
|
+
`List the predefined merchant category groups available for issued card spend controls, along with
|
|
12
|
+
the merchant category codes (MCCs) each group covers. Use these category names in an issued card's
|
|
13
|
+
\`merchantCategoryRestrictions\`.
|
|
14
|
+
|
|
15
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
16
|
+
you'll need to specify the \`/issued-cards.read\` scope.`,
|
|
17
|
+
tool: async (client, ctx) => {
|
|
18
|
+
const [result, apiCall] = await cardIssuingListMerchantCategories(
|
|
19
|
+
client,
|
|
20
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
21
|
+
).$inspect();
|
|
22
|
+
|
|
23
|
+
if (!result.ok) {
|
|
24
|
+
return {
|
|
25
|
+
content: [{ type: "text", text: result.error.message }],
|
|
26
|
+
isError: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const value = result.value.result;
|
|
31
|
+
|
|
32
|
+
return formatResult(value, apiCall);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -14,7 +14,7 @@ export const tool$enrichedAddressGet: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "enriched-address-get",
|
|
15
15
|
description: `Fetch enriched address suggestions. Requires a partial address.
|
|
16
16
|
|
|
17
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
17
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
18
|
you'll need to specify the \`/profile-enrichment.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
@@ -15,7 +15,7 @@ export const tool$enrichedProfileGet: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description:
|
|
16
16
|
`Fetch enriched profile data. Requires a valid email address. This service is offered in collaboration with Clearbit.
|
|
17
17
|
|
|
18
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
19
|
you'll need to specify the \`/profile-enrichment.read\` scope.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
@@ -17,7 +17,7 @@ export const tool$institutionsSearch: ToolDefinition<typeof args> = {
|
|
|
17
17
|
|
|
18
18
|
Search for institutions by either their name or routing number.
|
|
19
19
|
|
|
20
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
21
21
|
you'll need to specify the \`/fed.read\` scope.`,
|
|
22
22
|
args,
|
|
23
23
|
tool: async (client, args, ctx) => {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { productsListCategories } from "../../funcs/productsListCategories.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$productsListCategories: ToolDefinition = {
|
|
9
|
+
name: "products-list-categories",
|
|
10
|
+
description:
|
|
11
|
+
`Returns the full, read-only list of product categories from the product taxonomy.`,
|
|
12
|
+
tool: async (client, ctx) => {
|
|
13
|
+
const [result, apiCall] = await productsListCategories(
|
|
14
|
+
client,
|
|
15
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
16
|
+
).$inspect();
|
|
17
|
+
|
|
18
|
+
if (!result.ok) {
|
|
19
|
+
return {
|
|
20
|
+
content: [{ type: "text", text: result.error.message }],
|
|
21
|
+
isError: true,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const value = result.value.result;
|
|
26
|
+
|
|
27
|
+
return formatResult(value, apiCall);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
ScheduleWindowError,
|
|
12
|
+
ScheduleWindowError$inboundSchema,
|
|
13
|
+
ScheduleWindowError$Outbound,
|
|
14
|
+
ScheduleWindowError$outboundSchema,
|
|
15
|
+
} from "./schedulewindowerror.js";
|
|
16
|
+
|
|
17
|
+
export type AllowedScheduleError = {
|
|
18
|
+
timezone?: string | undefined;
|
|
19
|
+
windows?: { [k: string]: ScheduleWindowError } | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AllowedScheduleError$inboundSchema: z.ZodType<
|
|
24
|
+
AllowedScheduleError,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
timezone: types.optional(types.string()),
|
|
29
|
+
windows: types.optional(z.record(ScheduleWindowError$inboundSchema)),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type AllowedScheduleError$Outbound = {
|
|
33
|
+
timezone?: string | undefined;
|
|
34
|
+
windows?: { [k: string]: ScheduleWindowError$Outbound } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AllowedScheduleError$outboundSchema: z.ZodType<
|
|
39
|
+
AllowedScheduleError$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AllowedScheduleError
|
|
42
|
+
> = z.object({
|
|
43
|
+
timezone: z.string().optional(),
|
|
44
|
+
windows: z.record(ScheduleWindowError$outboundSchema).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function allowedScheduleErrorToJSON(
|
|
48
|
+
allowedScheduleError: AllowedScheduleError,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
AllowedScheduleError$outboundSchema.parse(allowedScheduleError),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export function allowedScheduleErrorFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<AllowedScheduleError, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => AllowedScheduleError$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'AllowedScheduleError' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|