@moovio/sdk 26.4.0-dev.5 → 26.4.0-dev.7
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 +108 -50
- package/bin/mcp-server.js +2684 -820
- package/bin/mcp-server.js.map +232 -186
- package/examples/package-lock.json +1 -1
- package/funcs/cardsLink.d.ts +1 -1
- package/funcs/cardsLink.d.ts.map +1 -1
- package/funcs/cardsLink.js +1 -1
- package/funcs/cardsLink.js.map +1 -1
- package/funcs/invoicesCreateInvoice.d.ts +18 -0
- package/funcs/invoicesCreateInvoice.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoice.js +139 -0
- package/funcs/invoicesCreateInvoice.js.map +1 -0
- package/funcs/invoicesCreateInvoicePayment.d.ts +19 -0
- package/funcs/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoicePayment.js +148 -0
- package/funcs/invoicesCreateInvoicePayment.js.map +1 -0
- package/funcs/invoicesGetInvoice.d.ts +17 -0
- package/funcs/invoicesGetInvoice.d.ts.map +1 -0
- package/funcs/invoicesGetInvoice.js +129 -0
- package/funcs/invoicesGetInvoice.js.map +1 -0
- package/funcs/invoicesListInvoicePayments.d.ts +17 -0
- package/funcs/invoicesListInvoicePayments.d.ts.map +1 -0
- package/funcs/invoicesListInvoicePayments.js +129 -0
- package/funcs/invoicesListInvoicePayments.js.map +1 -0
- package/funcs/invoicesListInvoices.d.ts +18 -0
- package/funcs/invoicesListInvoices.d.ts.map +1 -0
- package/funcs/invoicesListInvoices.js +139 -0
- package/funcs/invoicesListInvoices.js.map +1 -0
- package/funcs/invoicesUpdateInvoice.d.ts +18 -0
- package/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
- package/funcs/invoicesUpdateInvoice.js +143 -0
- package/funcs/invoicesUpdateInvoice.js.map +1 -0
- package/funcs/paymentLinksList.js +1 -2
- package/funcs/paymentLinksList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoice.js +65 -0
- package/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js +66 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesGetInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesGetInvoice.js +65 -0
- package/mcp-server/tools/invoicesGetInvoice.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js +65 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoices.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoices.js +65 -0
- package/mcp-server/tools/invoicesListInvoices.js.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts +8 -0
- package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js +65 -0
- package/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
- package/models/components/amountdecimalupdate.d.ts +29 -0
- package/models/components/amountdecimalupdate.d.ts.map +1 -0
- package/models/components/amountdecimalupdate.js +60 -0
- package/models/components/amountdecimalupdate.js.map +1 -0
- package/models/components/createinvoice.d.ts +35 -0
- package/models/components/createinvoice.d.ts.map +1 -0
- package/models/components/createinvoice.js +72 -0
- package/models/components/createinvoice.js.map +1 -0
- package/models/components/createinvoicelineitem.d.ts +48 -0
- package/models/components/createinvoicelineitem.d.ts.map +1 -0
- package/models/components/createinvoicelineitem.js +68 -0
- package/models/components/createinvoicelineitem.js.map +1 -0
- package/models/components/createinvoicelineitemoption.d.ts +39 -0
- package/models/components/createinvoicelineitemoption.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoption.js +65 -0
- package/models/components/createinvoicelineitemoption.js.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitems.d.ts +24 -0
- package/models/components/createinvoicelineitems.d.ts.map +1 -0
- package/models/components/createinvoicelineitems.js +59 -0
- package/models/components/createinvoicelineitems.js.map +1 -0
- package/models/components/createinvoicelineitemsupdate.d.ts +24 -0
- package/models/components/createinvoicelineitemsupdate.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsupdate.js +59 -0
- package/models/components/createinvoicelineitemsupdate.js.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemsvalidationerror.js +61 -0
- package/models/components/createinvoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/createinvoicelineitemvalidationerror.js +70 -0
- package/models/components/createinvoicelineitemvalidationerror.js.map +1 -0
- package/models/components/createinvoicepayment.d.ts +24 -0
- package/models/components/createinvoicepayment.d.ts.map +1 -0
- package/models/components/createinvoicepayment.js +66 -0
- package/models/components/createinvoicepayment.js.map +1 -0
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +93 -0
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/invoice.js +107 -0
- package/models/components/invoice.js.map +1 -0
- package/models/components/invoiceexternalpayment.d.ts +21 -0
- package/models/components/invoiceexternalpayment.d.ts.map +1 -0
- package/models/components/invoiceexternalpayment.js +63 -0
- package/models/components/invoiceexternalpayment.js.map +1 -0
- package/models/components/invoicelineitem.d.ts +54 -0
- package/models/components/invoicelineitem.d.ts.map +1 -0
- package/models/components/invoicelineitem.js +71 -0
- package/models/components/invoicelineitem.js.map +1 -0
- package/models/components/invoicelineitemimagemetadata.d.ts +35 -0
- package/models/components/invoicelineitemimagemetadata.d.ts.map +1 -0
- package/models/components/invoicelineitemimagemetadata.js +64 -0
- package/models/components/invoicelineitemimagemetadata.js.map +1 -0
- package/models/components/invoicelineitemoption.d.ts +45 -0
- package/models/components/invoicelineitemoption.d.ts.map +1 -0
- package/models/components/invoicelineitemoption.js +68 -0
- package/models/components/invoicelineitemoption.js.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts +24 -0
- package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemoptionvalidationerror.js +65 -0
- package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -0
- package/models/components/invoicelineitems.d.ts +24 -0
- package/models/components/invoicelineitems.d.ts.map +1 -0
- package/models/components/invoicelineitems.js +59 -0
- package/models/components/invoicelineitems.js.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts +22 -0
- package/models/components/invoicelineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemsvalidationerror.js +59 -0
- package/models/components/invoicelineitemsvalidationerror.js.map +1 -0
- package/models/components/invoicelineitemvalidationerror.d.ts +31 -0
- package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -0
- package/models/components/invoicelineitemvalidationerror.js +70 -0
- package/models/components/invoicelineitemvalidationerror.js.map +1 -0
- package/models/components/invoicepayment.d.ts +35 -0
- package/models/components/invoicepayment.d.ts.map +1 -0
- package/models/components/invoicepayment.js +70 -0
- package/models/components/invoicepayment.js.map +1 -0
- package/models/components/invoicepaymenttype.d.ts +12 -0
- package/models/components/invoicepaymenttype.d.ts.map +1 -0
- package/models/components/invoicepaymenttype.js +49 -0
- package/models/components/invoicepaymenttype.js.map +1 -0
- package/models/components/invoicetransferpayment.d.ts +20 -0
- package/models/components/invoicetransferpayment.d.ts.map +1 -0
- package/models/components/invoicetransferpayment.js +58 -0
- package/models/components/invoicetransferpayment.js.map +1 -0
- package/models/components/paymentlinktype.d.ts +1 -0
- package/models/components/paymentlinktype.d.ts.map +1 -1
- package/models/components/paymentlinktype.js +1 -0
- package/models/components/paymentlinktype.js.map +1 -1
- package/models/components/transfer.d.ts +5 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +2 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/updateinvoice.d.ts +40 -0
- package/models/components/updateinvoice.d.ts.map +1 -0
- package/models/components/updateinvoice.js +71 -0
- package/models/components/updateinvoice.js.map +1 -0
- package/models/components/wallettransactiontype.d.ts +1 -0
- package/models/components/wallettransactiontype.d.ts.map +1 -1
- package/models/components/wallettransactiontype.js +1 -0
- package/models/components/wallettransactiontype.js.map +1 -1
- package/models/errors/createinvoiceerror.d.ts +40 -0
- package/models/errors/createinvoiceerror.d.ts.map +1 -0
- package/models/errors/createinvoiceerror.js +100 -0
- package/models/errors/createinvoiceerror.js.map +1 -0
- package/models/errors/createinvoicepaymenterror.d.ts +34 -0
- package/models/errors/createinvoicepaymenterror.d.ts.map +1 -0
- package/models/errors/createinvoicepaymenterror.js +88 -0
- package/models/errors/createinvoicepaymenterror.js.map +1 -0
- package/models/errors/duplicatecarderror.d.ts +45 -0
- package/models/errors/duplicatecarderror.d.ts.map +1 -0
- package/models/errors/duplicatecarderror.js +78 -0
- package/models/errors/duplicatecarderror.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/listinvoicesvalidationerror.d.ts +45 -0
- package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -0
- package/models/errors/listinvoicesvalidationerror.js +107 -0
- package/models/errors/listinvoicesvalidationerror.js.map +1 -0
- 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/updateinvoiceerror.d.ts +40 -0
- package/models/errors/updateinvoiceerror.d.ts.map +1 -0
- package/models/errors/updateinvoiceerror.js +99 -0
- package/models/errors/updateinvoiceerror.js.map +1 -0
- package/models/operations/acceptdispute.d.ts +1 -1
- package/models/operations/assignaccountcountries.d.ts +1 -1
- package/models/operations/cancelschedule.d.ts +1 -1
- package/models/operations/completebankaccountverification.d.ts +1 -1
- package/models/operations/completemicrodeposits.d.ts +1 -1
- package/models/operations/connectaccount.d.ts +1 -1
- package/models/operations/createaccesstoken.d.ts +1 -1
- package/models/operations/createaccount.d.ts +1 -1
- package/models/operations/createapplepaysession.d.ts +1 -1
- package/models/operations/createbrand.d.ts +1 -1
- package/models/operations/createcancellation.d.ts +1 -1
- package/models/operations/createfeeplanagreements.d.ts +1 -1
- package/models/operations/createinvoice.d.ts +66 -0
- package/models/operations/createinvoice.d.ts.map +1 -0
- package/models/operations/createinvoice.js +122 -0
- package/models/operations/createinvoice.js.map +1 -0
- package/models/operations/createinvoicepayment.d.ts +68 -0
- package/models/operations/createinvoicepayment.d.ts.map +1 -0
- package/models/operations/createinvoicepayment.js +124 -0
- package/models/operations/createinvoicepayment.js.map +1 -0
- package/models/operations/createonboardinginvite.d.ts +1 -1
- package/models/operations/createpaymentlink.d.ts +1 -1
- package/models/operations/createproduct.d.ts +1 -1
- package/models/operations/createreceipts.d.ts +1 -1
- package/models/operations/createrepresentative.d.ts +1 -1
- package/models/operations/createreversal.d.ts +1 -1
- package/models/operations/createschedule.d.ts +1 -1
- package/models/operations/createsweepconfig.d.ts +1 -1
- package/models/operations/createterminalapplication.d.ts +1 -1
- package/models/operations/createterminalapplicationversion.d.ts +1 -1
- package/models/operations/createticket.d.ts +1 -1
- package/models/operations/createtransfer.d.ts +1 -1
- package/models/operations/createtransferoptions.d.ts +1 -1
- package/models/operations/createwallet.d.ts +1 -1
- package/models/operations/createwebhook.d.ts +1 -1
- package/models/operations/deletedisputeevidencefile.d.ts +1 -1
- package/models/operations/deleteimage.d.ts +1 -1
- package/models/operations/deleterepresentative.d.ts +1 -1
- package/models/operations/deleteterminalapplication.d.ts +1 -1
- package/models/operations/disablebankaccount.d.ts +1 -1
- package/models/operations/disablecapability.d.ts +1 -1
- package/models/operations/disablecard.d.ts +1 -1
- package/models/operations/disablepaymentlink.d.ts +1 -1
- package/models/operations/disableproduct.d.ts +1 -1
- package/models/operations/disablewebhook.d.ts +1 -1
- package/models/operations/disconnectaccount.d.ts +1 -1
- package/models/operations/generateendtoendkey.d.ts +1 -1
- package/models/operations/getaccount.d.ts +1 -1
- package/models/operations/getaccountcountries.d.ts +1 -1
- package/models/operations/getaccountterminalapplication.d.ts +1 -1
- package/models/operations/getadjustment.d.ts +1 -1
- package/models/operations/getapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/getavatar.d.ts +1 -1
- package/models/operations/getbankaccount.d.ts +1 -1
- package/models/operations/getbankaccountverification.d.ts +1 -1
- package/models/operations/getbrand.d.ts +1 -1
- package/models/operations/getcancellation.d.ts +1 -1
- package/models/operations/getcapability.d.ts +1 -1
- package/models/operations/getcard.d.ts +1 -1
- package/models/operations/getdispute.d.ts +1 -1
- package/models/operations/getdisputeevidence.d.ts +1 -1
- package/models/operations/getdisputeevidencedata.d.ts +1 -1
- package/models/operations/getenrichmentaddress.d.ts +1 -1
- package/models/operations/getenrichmentprofile.d.ts +1 -1
- package/models/operations/getfiledetails.d.ts +1 -1
- package/models/operations/getfullissuedcard.d.ts +1 -1
- package/models/operations/getimagemetadata.d.ts +1 -1
- package/models/operations/getinvoice.d.ts +66 -0
- package/models/operations/getinvoice.d.ts.map +1 -0
- package/models/operations/getinvoice.js +114 -0
- package/models/operations/getinvoice.js.map +1 -0
- package/models/operations/getissuedcard.d.ts +1 -1
- package/models/operations/getissuedcardauthorization.d.ts +1 -1
- package/models/operations/getissuedcardtransaction.d.ts +1 -1
- package/models/operations/getmerchantprocessingagreement.d.ts +1 -1
- package/models/operations/getonboardinginvite.d.ts +1 -1
- package/models/operations/getpaymentlink.d.ts +1 -1
- package/models/operations/getpaymentlinkqrcode.d.ts +1 -1
- package/models/operations/getpaymentmethod.d.ts +1 -1
- package/models/operations/getproduct.d.ts +1 -1
- package/models/operations/getpublicimage.d.ts +2 -2
- package/models/operations/getpublicimage.d.ts.map +1 -1
- package/models/operations/getpublicimage.js +2 -2
- package/models/operations/getpublicimage.js.map +1 -1
- package/models/operations/getrefund.d.ts +1 -1
- package/models/operations/getrepresentative.d.ts +1 -1
- package/models/operations/getresidual.d.ts +1 -1
- package/models/operations/getscheduledoccurrence.d.ts +1 -1
- package/models/operations/getschedules.d.ts +1 -1
- package/models/operations/getstatement.d.ts +1 -1
- package/models/operations/getsweep.d.ts +1 -1
- package/models/operations/getsweepconfig.d.ts +1 -1
- package/models/operations/getterminalapplication.d.ts +1 -1
- package/models/operations/getterminalconfiguration.d.ts +1 -1
- package/models/operations/gettermsofservicetoken.d.ts +1 -1
- package/models/operations/getticket.d.ts +1 -1
- package/models/operations/gettransfer.d.ts +1 -1
- package/models/operations/getunderwriting.d.ts +1 -1
- package/models/operations/getwallet.d.ts +1 -1
- package/models/operations/getwallettransaction.d.ts +1 -1
- package/models/operations/getwebhook.d.ts +1 -1
- package/models/operations/getwebhooksecret.d.ts +1 -1
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/initiatebankaccountverification.d.ts +1 -1
- package/models/operations/initiatemicrodeposits.d.ts +1 -1
- package/models/operations/initiaterefund.d.ts +1 -1
- package/models/operations/linkaccountterminalapplication.d.ts +1 -1
- package/models/operations/linkapplepaytoken.d.ts +1 -1
- package/models/operations/linkbankaccount.d.ts +1 -1
- package/models/operations/linkcard.d.ts +1 -1
- package/models/operations/listaccounts.d.ts +1 -1
- package/models/operations/listaccountterminalapplications.d.ts +1 -1
- package/models/operations/listadjustments.d.ts +1 -1
- package/models/operations/listbankaccounts.d.ts +1 -1
- package/models/operations/listcapabilities.d.ts +1 -1
- package/models/operations/listcards.d.ts +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +1 -1
- package/models/operations/listdisputeevidence.d.ts +1 -1
- package/models/operations/listdisputes.d.ts +1 -1
- package/models/operations/listeventtypes.d.ts +1 -1
- package/models/operations/listfeeplanagreements.d.ts +1 -1
- package/models/operations/listfeeplans.d.ts +1 -1
- package/models/operations/listfeerevenue.d.ts +1 -1
- package/models/operations/listfeesfetch.d.ts +1 -1
- package/models/operations/listfiles.d.ts +1 -1
- package/models/operations/listimagemetadata.d.ts +1 -1
- package/models/operations/listindustries.d.ts +1 -1
- package/models/operations/listinstitutions.d.ts +1 -1
- package/models/operations/listinvoicepayments.d.ts +66 -0
- package/models/operations/listinvoicepayments.d.ts.map +1 -0
- package/models/operations/listinvoicepayments.js +114 -0
- package/models/operations/listinvoicepayments.js.map +1 -0
- package/models/operations/listinvoices.d.ts +80 -0
- package/models/operations/listinvoices.d.ts.map +1 -0
- package/models/operations/listinvoices.js +128 -0
- package/models/operations/listinvoices.js.map +1 -0
- package/models/operations/listissuedcardauthorizationevents.d.ts +1 -1
- package/models/operations/listissuedcardauthorizations.d.ts +1 -1
- package/models/operations/listissuedcards.d.ts +1 -1
- package/models/operations/listissuedcardtransactions.d.ts +1 -1
- package/models/operations/listonboardinginvites.d.ts +1 -1
- package/models/operations/listpartnerpricingagreements.d.ts +1 -1
- package/models/operations/listpaymentlinks.d.ts +6 -5
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js +2 -4
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/listpaymentmethods.d.ts +1 -1
- package/models/operations/listproducts.d.ts +1 -1
- package/models/operations/listreceipts.d.ts +1 -1
- package/models/operations/listrefunds.d.ts +1 -1
- package/models/operations/listrepresentatives.d.ts +1 -1
- package/models/operations/listresidualfees.d.ts +1 -1
- package/models/operations/listresiduals.d.ts +1 -1
- package/models/operations/listschedules.d.ts +1 -1
- package/models/operations/liststatements.d.ts +1 -1
- package/models/operations/listsweepconfigs.d.ts +1 -1
- package/models/operations/listsweeps.d.ts +1 -1
- package/models/operations/listterminalapplications.d.ts +1 -1
- package/models/operations/listticketmessages.d.ts +1 -1
- package/models/operations/listtickets.d.ts +1 -1
- package/models/operations/listtransfers.d.ts +1 -1
- package/models/operations/listwallets.d.ts +1 -1
- package/models/operations/listwallettransactions.d.ts +1 -1
- package/models/operations/listwebhooks.d.ts +1 -1
- package/models/operations/ping.d.ts +1 -1
- package/models/operations/pingwebhook.d.ts +1 -1
- package/models/operations/registerapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/requestcapabilities.d.ts +1 -1
- package/models/operations/requestcard.d.ts +1 -1
- package/models/operations/retrievefees.d.ts +1 -1
- package/models/operations/revokeaccesstoken.d.ts +1 -1
- package/models/operations/revokeonboardinginvite.d.ts +1 -1
- package/models/operations/saveunderwriting.d.ts +1 -1
- package/models/operations/searchinstitutions.d.ts +1 -1
- package/models/operations/submitdisputeevidence.d.ts +1 -1
- package/models/operations/testendtoendtoken.d.ts +1 -1
- package/models/operations/updateaccount.d.ts +1 -1
- package/models/operations/updateapplepaymerchantdomains.d.ts +1 -1
- package/models/operations/updatecard.d.ts +1 -1
- package/models/operations/updatedisputeevidence.d.ts +1 -1
- package/models/operations/updateimage.d.ts +1 -1
- package/models/operations/updateimagemetadata.d.ts +1 -1
- package/models/operations/updateinvoice.d.ts +68 -0
- package/models/operations/updateinvoice.d.ts.map +1 -0
- package/models/operations/updateinvoice.js +124 -0
- package/models/operations/updateinvoice.js.map +1 -0
- package/models/operations/updateissuedcard.d.ts +1 -1
- package/models/operations/updatepaymentlink.d.ts +1 -1
- package/models/operations/updateproduct.d.ts +1 -1
- package/models/operations/updaterepresentative.d.ts +1 -1
- package/models/operations/updateschedule.d.ts +1 -1
- package/models/operations/updatesweepconfig.d.ts +1 -1
- package/models/operations/updateticket.d.ts +1 -1
- package/models/operations/updatetransfer.d.ts +1 -1
- package/models/operations/updatewallet.d.ts +1 -1
- package/models/operations/updatewebhook.d.ts +1 -1
- package/models/operations/uploaddisputeevidencefile.d.ts +1 -1
- package/models/operations/uploaddisputeevidencetext.d.ts +1 -1
- package/models/operations/uploadfile.d.ts +1 -1
- package/models/operations/uploadimage.d.ts +1 -1
- package/models/operations/upsertbrand.d.ts +1 -1
- package/models/operations/upsertunderwriting.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/invoices.d.ts +48 -0
- package/sdk/invoices.d.ts.map +1 -0
- package/sdk/invoices.js +73 -0
- package/sdk/invoices.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/cardsLink.ts +5 -1
- package/src/funcs/invoicesCreateInvoice.ts +201 -0
- package/src/funcs/invoicesCreateInvoicePayment.ts +213 -0
- package/src/funcs/invoicesGetInvoice.ts +185 -0
- package/src/funcs/invoicesListInvoicePayments.ts +186 -0
- package/src/funcs/invoicesListInvoices.ts +198 -0
- package/src/funcs/invoicesUpdateInvoice.ts +207 -0
- package/src/funcs/paymentLinksList.ts +1 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/invoicesCreateInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesCreateInvoicePayment.ts +40 -0
- package/src/mcp-server/tools/invoicesGetInvoice.ts +38 -0
- package/src/mcp-server/tools/invoicesListInvoicePayments.ts +38 -0
- package/src/mcp-server/tools/invoicesListInvoices.ts +38 -0
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +38 -0
- package/src/models/components/amountdecimalupdate.ts +65 -0
- package/src/models/components/createinvoice.ts +87 -0
- package/src/models/components/createinvoicelineitem.ts +100 -0
- package/src/models/components/createinvoicelineitemoption.ts +86 -0
- package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +77 -0
- package/src/models/components/createinvoicelineitems.ts +63 -0
- package/src/models/components/createinvoicelineitemsupdate.ts +65 -0
- package/src/models/components/createinvoicelineitemsvalidationerror.ts +64 -0
- package/src/models/components/createinvoicelineitemvalidationerror.ts +88 -0
- package/src/models/components/createinvoicepayment.ts +70 -0
- package/src/models/components/index.ts +23 -0
- package/src/models/components/invoice.ts +190 -0
- package/src/models/components/invoiceexternalpayment.ts +60 -0
- package/src/models/components/invoicelineitem.ts +111 -0
- package/src/models/components/invoicelineitemimagemetadata.ts +77 -0
- package/src/models/components/invoicelineitemoption.ts +97 -0
- package/src/models/components/invoicelineitemoptionvalidationerror.ts +72 -0
- package/src/models/components/invoicelineitems.ts +63 -0
- package/src/models/components/invoicelineitemsvalidationerror.ts +59 -0
- package/src/models/components/invoicelineitemvalidationerror.ts +85 -0
- package/src/models/components/invoicepayment.ts +92 -0
- package/src/models/components/invoicepaymenttype.ts +21 -0
- package/src/models/components/invoicetransferpayment.ts +54 -0
- package/src/models/components/paymentlinktype.ts +1 -0
- package/src/models/components/transfer.ts +7 -0
- package/src/models/components/updateinvoice.ts +98 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/errors/createinvoiceerror.ts +104 -0
- package/src/models/errors/createinvoicepaymenterror.ts +85 -0
- package/src/models/errors/duplicatecarderror.ts +90 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/listinvoicesvalidationerror.ts +116 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/updateinvoiceerror.ts +100 -0
- package/src/models/operations/acceptdispute.ts +1 -1
- package/src/models/operations/assignaccountcountries.ts +1 -1
- package/src/models/operations/cancelschedule.ts +1 -1
- package/src/models/operations/completebankaccountverification.ts +1 -1
- package/src/models/operations/completemicrodeposits.ts +1 -1
- package/src/models/operations/connectaccount.ts +1 -1
- package/src/models/operations/createaccesstoken.ts +1 -1
- package/src/models/operations/createaccount.ts +1 -1
- package/src/models/operations/createapplepaysession.ts +1 -1
- package/src/models/operations/createbrand.ts +1 -1
- package/src/models/operations/createcancellation.ts +1 -1
- package/src/models/operations/createfeeplanagreements.ts +1 -1
- package/src/models/operations/createinvoice.ts +187 -0
- package/src/models/operations/createinvoicepayment.ts +197 -0
- package/src/models/operations/createonboardinginvite.ts +1 -1
- package/src/models/operations/createpaymentlink.ts +1 -1
- package/src/models/operations/createproduct.ts +1 -1
- package/src/models/operations/createreceipts.ts +1 -1
- package/src/models/operations/createrepresentative.ts +1 -1
- package/src/models/operations/createreversal.ts +1 -1
- package/src/models/operations/createschedule.ts +1 -1
- package/src/models/operations/createsweepconfig.ts +1 -1
- package/src/models/operations/createterminalapplication.ts +1 -1
- package/src/models/operations/createterminalapplicationversion.ts +1 -1
- package/src/models/operations/createticket.ts +1 -1
- package/src/models/operations/createtransfer.ts +1 -1
- package/src/models/operations/createtransferoptions.ts +1 -1
- package/src/models/operations/createwallet.ts +1 -1
- package/src/models/operations/createwebhook.ts +1 -1
- package/src/models/operations/deletedisputeevidencefile.ts +1 -1
- package/src/models/operations/deleteimage.ts +1 -1
- package/src/models/operations/deleterepresentative.ts +1 -1
- package/src/models/operations/deleteterminalapplication.ts +1 -1
- package/src/models/operations/disablebankaccount.ts +1 -1
- package/src/models/operations/disablecapability.ts +1 -1
- package/src/models/operations/disablecard.ts +1 -1
- package/src/models/operations/disablepaymentlink.ts +1 -1
- package/src/models/operations/disableproduct.ts +1 -1
- package/src/models/operations/disablewebhook.ts +1 -1
- package/src/models/operations/disconnectaccount.ts +1 -1
- package/src/models/operations/generateendtoendkey.ts +1 -1
- package/src/models/operations/getaccount.ts +1 -1
- package/src/models/operations/getaccountcountries.ts +1 -1
- package/src/models/operations/getaccountterminalapplication.ts +1 -1
- package/src/models/operations/getadjustment.ts +1 -1
- package/src/models/operations/getapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/getavatar.ts +1 -1
- package/src/models/operations/getbankaccount.ts +1 -1
- package/src/models/operations/getbankaccountverification.ts +1 -1
- package/src/models/operations/getbrand.ts +1 -1
- package/src/models/operations/getcancellation.ts +1 -1
- package/src/models/operations/getcapability.ts +1 -1
- package/src/models/operations/getcard.ts +1 -1
- package/src/models/operations/getdispute.ts +1 -1
- package/src/models/operations/getdisputeevidence.ts +1 -1
- package/src/models/operations/getdisputeevidencedata.ts +1 -1
- package/src/models/operations/getenrichmentaddress.ts +1 -1
- package/src/models/operations/getenrichmentprofile.ts +1 -1
- package/src/models/operations/getfiledetails.ts +1 -1
- package/src/models/operations/getfullissuedcard.ts +1 -1
- package/src/models/operations/getimagemetadata.ts +1 -1
- package/src/models/operations/getinvoice.ts +179 -0
- package/src/models/operations/getissuedcard.ts +1 -1
- package/src/models/operations/getissuedcardauthorization.ts +1 -1
- package/src/models/operations/getissuedcardtransaction.ts +1 -1
- package/src/models/operations/getmerchantprocessingagreement.ts +1 -1
- package/src/models/operations/getonboardinginvite.ts +1 -1
- package/src/models/operations/getpaymentlink.ts +1 -1
- package/src/models/operations/getpaymentlinkqrcode.ts +1 -1
- package/src/models/operations/getpaymentmethod.ts +1 -1
- package/src/models/operations/getproduct.ts +1 -1
- package/src/models/operations/getpublicimage.ts +8 -6
- package/src/models/operations/getrefund.ts +1 -1
- package/src/models/operations/getrepresentative.ts +1 -1
- package/src/models/operations/getresidual.ts +1 -1
- package/src/models/operations/getscheduledoccurrence.ts +1 -1
- package/src/models/operations/getschedules.ts +1 -1
- package/src/models/operations/getstatement.ts +1 -1
- package/src/models/operations/getsweep.ts +1 -1
- package/src/models/operations/getsweepconfig.ts +1 -1
- package/src/models/operations/getterminalapplication.ts +1 -1
- package/src/models/operations/getterminalconfiguration.ts +1 -1
- package/src/models/operations/gettermsofservicetoken.ts +1 -1
- package/src/models/operations/getticket.ts +1 -1
- package/src/models/operations/gettransfer.ts +1 -1
- package/src/models/operations/getunderwriting.ts +1 -1
- package/src/models/operations/getwallet.ts +1 -1
- package/src/models/operations/getwallettransaction.ts +1 -1
- package/src/models/operations/getwebhook.ts +1 -1
- package/src/models/operations/getwebhooksecret.ts +1 -1
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/initiatebankaccountverification.ts +1 -1
- package/src/models/operations/initiatemicrodeposits.ts +1 -1
- package/src/models/operations/initiaterefund.ts +1 -1
- package/src/models/operations/linkaccountterminalapplication.ts +1 -1
- package/src/models/operations/linkapplepaytoken.ts +1 -1
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/linkcard.ts +1 -1
- package/src/models/operations/listaccounts.ts +1 -1
- package/src/models/operations/listaccountterminalapplications.ts +1 -1
- package/src/models/operations/listadjustments.ts +1 -1
- package/src/models/operations/listbankaccounts.ts +1 -1
- package/src/models/operations/listcapabilities.ts +1 -1
- package/src/models/operations/listcards.ts +1 -1
- package/src/models/operations/listconnectedaccountsforaccount.ts +1 -1
- package/src/models/operations/listdisputeevidence.ts +1 -1
- package/src/models/operations/listdisputes.ts +1 -1
- package/src/models/operations/listeventtypes.ts +1 -1
- package/src/models/operations/listfeeplanagreements.ts +1 -1
- package/src/models/operations/listfeeplans.ts +1 -1
- package/src/models/operations/listfeerevenue.ts +1 -1
- package/src/models/operations/listfeesfetch.ts +1 -1
- package/src/models/operations/listfiles.ts +1 -1
- package/src/models/operations/listimagemetadata.ts +1 -1
- package/src/models/operations/listindustries.ts +1 -1
- package/src/models/operations/listinstitutions.ts +1 -1
- package/src/models/operations/listinvoicepayments.ts +181 -0
- package/src/models/operations/listinvoices.ts +215 -0
- package/src/models/operations/listissuedcardauthorizationevents.ts +1 -1
- package/src/models/operations/listissuedcardauthorizations.ts +1 -1
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/models/operations/listissuedcardtransactions.ts +1 -1
- package/src/models/operations/listonboardinginvites.ts +1 -1
- package/src/models/operations/listpartnerpricingagreements.ts +1 -1
- package/src/models/operations/listpaymentlinks.ts +8 -9
- package/src/models/operations/listpaymentmethods.ts +1 -1
- package/src/models/operations/listproducts.ts +1 -1
- package/src/models/operations/listreceipts.ts +1 -1
- package/src/models/operations/listrefunds.ts +1 -1
- package/src/models/operations/listrepresentatives.ts +1 -1
- package/src/models/operations/listresidualfees.ts +1 -1
- package/src/models/operations/listresiduals.ts +1 -1
- package/src/models/operations/listschedules.ts +1 -1
- package/src/models/operations/liststatements.ts +1 -1
- package/src/models/operations/listsweepconfigs.ts +1 -1
- package/src/models/operations/listsweeps.ts +1 -1
- package/src/models/operations/listterminalapplications.ts +1 -1
- package/src/models/operations/listticketmessages.ts +1 -1
- package/src/models/operations/listtickets.ts +1 -1
- package/src/models/operations/listtransfers.ts +1 -1
- package/src/models/operations/listwallets.ts +1 -1
- package/src/models/operations/listwallettransactions.ts +1 -1
- package/src/models/operations/listwebhooks.ts +1 -1
- package/src/models/operations/ping.ts +1 -1
- package/src/models/operations/pingwebhook.ts +1 -1
- package/src/models/operations/registerapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/requestcapabilities.ts +1 -1
- package/src/models/operations/requestcard.ts +1 -1
- package/src/models/operations/retrievefees.ts +1 -1
- package/src/models/operations/revokeaccesstoken.ts +1 -1
- package/src/models/operations/revokeonboardinginvite.ts +1 -1
- package/src/models/operations/saveunderwriting.ts +1 -1
- package/src/models/operations/searchinstitutions.ts +1 -1
- package/src/models/operations/submitdisputeevidence.ts +1 -1
- package/src/models/operations/testendtoendtoken.ts +1 -1
- package/src/models/operations/updateaccount.ts +1 -1
- package/src/models/operations/updateapplepaymerchantdomains.ts +1 -1
- package/src/models/operations/updatecard.ts +1 -1
- package/src/models/operations/updatedisputeevidence.ts +1 -1
- package/src/models/operations/updateimage.ts +1 -1
- package/src/models/operations/updateimagemetadata.ts +1 -1
- package/src/models/operations/updateinvoice.ts +191 -0
- package/src/models/operations/updateissuedcard.ts +1 -1
- package/src/models/operations/updatepaymentlink.ts +1 -1
- package/src/models/operations/updateproduct.ts +1 -1
- package/src/models/operations/updaterepresentative.ts +1 -1
- package/src/models/operations/updateschedule.ts +1 -1
- package/src/models/operations/updatesweepconfig.ts +1 -1
- package/src/models/operations/updateticket.ts +1 -1
- package/src/models/operations/updatetransfer.ts +1 -1
- package/src/models/operations/updatewallet.ts +1 -1
- package/src/models/operations/updatewebhook.ts +1 -1
- package/src/models/operations/uploaddisputeevidencefile.ts +1 -1
- package/src/models/operations/uploaddisputeevidencetext.ts +1 -1
- package/src/models/operations/uploadfile.ts +1 -1
- package/src/models/operations/uploadimage.ts +1 -1
- package/src/models/operations/upsertbrand.ts +1 -1
- package/src/models/operations/upsertunderwriting.ts +1 -1
- package/src/sdk/invoices.ts +118 -0
- package/src/sdk/sdk.ts +6 -0
package/mcp-server/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/mcp-server/server.ts"],"names":[],"mappings":";AAAA;;GAEG;;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/mcp-server/server.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA+LH,0CA6NC;AA1ZD,oEAAoE;AACpE,wCAAsC;AAGtC,6CAAoD;AACpD,iDAGwB;AAExB,yCAAgD;AAChD,mFAAkF;AAClF,mEAAkE;AAClE,iEAAgE;AAChE,yEAAwE;AACxE,2DAA0D;AAC1D,6EAA4E;AAC5E,iHAAgH;AAChH,iGAAgG;AAChG,6DAA4D;AAC5D,+EAA8E;AAC9E,iEAAgE;AAChE,iGA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,CAAC,6CAAsB,CAAC,CAAC;IAC7B,IAAI,CAAC,+CAAuB,CAAC,CAAC;IAC9B,IAAI,CAAC,yEAAoC,CAAC,CAAC;IAC3C,IAAI,CAAC,yEAAoC,CAAC,CAAC;IAC3C,IAAI,CAAC,uDAA2B,CAAC,CAAC;IAClC,IAAI,CAAC,qDAA0B,CAAC,CAAC;IACjC,IAAI,CAAC,iDAAwB,CAAC,CAAC;IAC/B,IAAI,CAAC,uDAA2B,CAAC,CAAC;IAClC,IAAI,CAAC,2BAAa,CAAC,CAAC;IACpB,IAAI,CAAC,uCAAmB,CAAC,CAAC;IAC1B,IAAI,CAAC,mCAAiB,CAAC,CAAC;IACxB,IAAI,CAAC,+DAA+B,CAAC,CAAC;IACtC,IAAI,CAAC,2DAA6B,CAAC,CAAC;IACpC,IAAI,CAAC,yDAA4B,CAAC,CAAC;IACnC,IAAI,CAAC,+DAA+B,CAAC,CAAC;IACtC,IAAI,CAAC,6EAAsC,CAAC,CAAC;IAE7C,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.CreateInvoiceRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesCreateInvoice: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesCreateInvoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesCreateInvoice.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesCreateInvoice.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBlE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesCreateInvoice = void 0;
|
|
40
|
+
const invoicesCreateInvoice_js_1 = require("../../funcs/invoicesCreateInvoice.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.CreateInvoiceRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesCreateInvoice = {
|
|
47
|
+
name: "invoices-create-invoice",
|
|
48
|
+
description: `Create an invoice for a Moov account.
|
|
49
|
+
|
|
50
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
51
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
52
|
+
args,
|
|
53
|
+
tool: async (client, args, ctx) => {
|
|
54
|
+
const [result, apiCall] = await (0, invoicesCreateInvoice_js_1.invoicesCreateInvoice)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
+
if (!result.ok) {
|
|
56
|
+
return {
|
|
57
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const value = result.value.result;
|
|
62
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=invoicesCreateInvoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesCreateInvoice.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesCreateInvoice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mFAA6E;AAC7E,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEW,QAAA,0BAA0B,GAAgC;IACrE,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;;2EAG4D;IACzE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gDAAqB,EACnD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.CreateInvoicePaymentRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesCreateInvoicePayment: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesCreateInvoicePayment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesCreateInvoicePayment.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesCreateInvoicePayment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,OAAO,IAAI,CA2BzE,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesCreateInvoicePayment = void 0;
|
|
40
|
+
const invoicesCreateInvoicePayment_js_1 = require("../../funcs/invoicesCreateInvoicePayment.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.CreateInvoicePaymentRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesCreateInvoicePayment = {
|
|
47
|
+
name: "invoices-create-invoice-payment",
|
|
48
|
+
description: `Creates a payment resource to represent that an invoice was paid outside of the Moov platform.
|
|
49
|
+
If a payment link was created for the invoice, the corresponding payment link is canceled, but a receipt is still sent.
|
|
50
|
+
|
|
51
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
52
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
53
|
+
args,
|
|
54
|
+
tool: async (client, args, ctx) => {
|
|
55
|
+
const [result, apiCall] = await (0, invoicesCreateInvoicePayment_js_1.invoicesCreateInvoicePayment)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56
|
+
if (!result.ok) {
|
|
57
|
+
return {
|
|
58
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59
|
+
isError: true,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const value = result.value.result;
|
|
63
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=invoicesCreateInvoicePayment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesCreateInvoicePayment.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesCreateInvoicePayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iGAA2F;AAC3F,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEW,QAAA,iCAAiC,GAAgC;IAC5E,IAAI,EAAE,iCAAiC;IACvC,WAAW,EACT;;;;2EAIuE;IACzE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8DAA4B,EAC1D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.GetInvoiceRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesGetInvoice: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesGetInvoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesGetInvoice.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesGetInvoice.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,OAAO,IAAI,CAyB/D,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesGetInvoice = void 0;
|
|
40
|
+
const invoicesGetInvoice_js_1 = require("../../funcs/invoicesGetInvoice.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.GetInvoiceRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesGetInvoice = {
|
|
47
|
+
name: "invoices-get-invoice",
|
|
48
|
+
description: `Retrieve an invoice by ID.
|
|
49
|
+
|
|
50
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
51
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.read\` scope.`,
|
|
52
|
+
args,
|
|
53
|
+
tool: async (client, args, ctx) => {
|
|
54
|
+
const [result, apiCall] = await (0, invoicesGetInvoice_js_1.invoicesGetInvoice)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
+
if (!result.ok) {
|
|
56
|
+
return {
|
|
57
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const value = result.value.result;
|
|
62
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=invoicesGetInvoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesGetInvoice.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesGetInvoice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6EAAuE;AACvE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,+BAA+B;CACpD,CAAC;AAEW,QAAA,uBAAuB,GAAgC;IAClE,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE;;;0EAG2D;IACxE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0CAAkB,EAChD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListInvoicePaymentsRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesListInvoicePayments: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesListInvoicePayments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesListInvoicePayments.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesListInvoicePayments.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBxE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesListInvoicePayments = void 0;
|
|
40
|
+
const invoicesListInvoicePayments_js_1 = require("../../funcs/invoicesListInvoicePayments.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.ListInvoicePaymentsRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesListInvoicePayments = {
|
|
47
|
+
name: "invoices-list-invoice-payments",
|
|
48
|
+
description: `List all the payments made towards an invoice.
|
|
49
|
+
|
|
50
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
51
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.read\` scope.`,
|
|
52
|
+
args,
|
|
53
|
+
tool: async (client, args, ctx) => {
|
|
54
|
+
const [result, apiCall] = await (0, invoicesListInvoicePayments_js_1.invoicesListInvoicePayments)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
+
if (!result.ok) {
|
|
56
|
+
return {
|
|
57
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const value = result.value.result;
|
|
62
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=invoicesListInvoicePayments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesListInvoicePayments.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesListInvoicePayments.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+FAAyF;AACzF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,wCAAwC;CAC7D,CAAC;AAEW,QAAA,gCAAgC,GAAgC;IAC3E,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;0EAG2D;IACxE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,4DAA2B,EACzD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.ListInvoicesRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesListInvoices: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesListInvoices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesListInvoices.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesListInvoices.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBjE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesListInvoices = void 0;
|
|
40
|
+
const invoicesListInvoices_js_1 = require("../../funcs/invoicesListInvoices.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.ListInvoicesRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesListInvoices = {
|
|
47
|
+
name: "invoices-list-invoices",
|
|
48
|
+
description: `List all the invoices created under a Moov account.
|
|
49
|
+
|
|
50
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
51
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.read\` scope.`,
|
|
52
|
+
args,
|
|
53
|
+
tool: async (client, args, ctx) => {
|
|
54
|
+
const [result, apiCall] = await (0, invoicesListInvoices_js_1.invoicesListInvoices)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
+
if (!result.ok) {
|
|
56
|
+
return {
|
|
57
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const value = result.value.result;
|
|
62
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=invoicesListInvoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesListInvoices.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesListInvoices.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAA2E;AAC3E,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEW,QAAA,yBAAyB,GAAgC;IACpE,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE;;;0EAG2D;IACxE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8CAAoB,EAClD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as operations from "../../models/operations/index.js";
|
|
2
|
+
import { ToolDefinition } from "../tools.js";
|
|
3
|
+
declare const args: {
|
|
4
|
+
request: import("zod").ZodType<operations.UpdateInvoiceRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tool$invoicesUpdateInvoice: ToolDefinition<typeof args>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=invoicesUpdateInvoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesUpdateInvoice.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesUpdateInvoice.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,OAAO,IAAI,CAyBlE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tool$invoicesUpdateInvoice = void 0;
|
|
40
|
+
const invoicesUpdateInvoice_js_1 = require("../../funcs/invoicesUpdateInvoice.js");
|
|
41
|
+
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
+
const tools_js_1 = require("../tools.js");
|
|
43
|
+
const args = {
|
|
44
|
+
request: operations.UpdateInvoiceRequest$inboundSchema,
|
|
45
|
+
};
|
|
46
|
+
exports.tool$invoicesUpdateInvoice = {
|
|
47
|
+
name: "invoices-update-invoice",
|
|
48
|
+
description: `Updates an invoice.
|
|
49
|
+
|
|
50
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
51
|
+
you'll need to specify the \`/accounts/{accountID}/invoices.write\` scope.`,
|
|
52
|
+
args,
|
|
53
|
+
tool: async (client, args, ctx) => {
|
|
54
|
+
const [result, apiCall] = await (0, invoicesUpdateInvoice_js_1.invoicesUpdateInvoice)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55
|
+
if (!result.ok) {
|
|
56
|
+
return {
|
|
57
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58
|
+
isError: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const value = result.value.result;
|
|
62
|
+
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=invoicesUpdateInvoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoicesUpdateInvoice.js","sourceRoot":"","sources":["../../src/mcp-server/tools/invoicesUpdateInvoice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mFAA6E;AAC7E,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEW,QAAA,0BAA0B,GAAgC;IACrE,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;;2EAG4D;IACzE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gDAAqB,EACnD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AmountDecimalUpdate = {
|
|
5
|
+
/**
|
|
6
|
+
* A 3-letter ISO 4217 currency code.
|
|
7
|
+
*/
|
|
8
|
+
currency?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* A decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
*
|
|
14
|
+
* For example, $12.987654321 is '12.987654321'.
|
|
15
|
+
*/
|
|
16
|
+
valueDecimal?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const AmountDecimalUpdate$inboundSchema: z.ZodType<AmountDecimalUpdate, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type AmountDecimalUpdate$Outbound = {
|
|
22
|
+
currency?: string | undefined;
|
|
23
|
+
valueDecimal?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const AmountDecimalUpdate$outboundSchema: z.ZodType<AmountDecimalUpdate$Outbound, z.ZodTypeDef, AmountDecimalUpdate>;
|
|
27
|
+
export declare function amountDecimalUpdateToJSON(amountDecimalUpdate: AmountDecimalUpdate): string;
|
|
28
|
+
export declare function amountDecimalUpdateFromJSON(jsonString: string): SafeParseResult<AmountDecimalUpdate, SDKValidationError>;
|
|
29
|
+
//# sourceMappingURL=amountdecimalupdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amountdecimalupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/amountdecimalupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAInB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|