@moovio/sdk 26.10.0-dev.2 → 26.10.0-dev.3
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 +135 -77
- package/bin/mcp-server.js +2501 -1424
- package/bin/mcp-server.js.map +168 -136
- package/funcs/bankAccountsCreateAttestation.d.ts +25 -0
- package/funcs/bankAccountsCreateAttestation.d.ts.map +1 -0
- package/funcs/bankAccountsCreateAttestation.js +142 -0
- package/funcs/bankAccountsCreateAttestation.js.map +1 -0
- package/funcs/bankAccountsGetAttestationEligibility.d.ts +23 -0
- package/funcs/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
- package/funcs/bankAccountsGetAttestationEligibility.js +137 -0
- package/funcs/bankAccountsGetAttestationEligibility.js.map +1 -0
- package/funcs/bankAccountsListAttestations.d.ts +14 -0
- package/funcs/bankAccountsListAttestations.d.ts.map +1 -0
- package/funcs/bankAccountsListAttestations.js +126 -0
- package/funcs/bankAccountsListAttestations.js.map +1 -0
- package/funcs/cardIssuingGetFull.d.ts +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/imagesUpload.d.ts +2 -2
- package/funcs/imagesUpload.d.ts.map +1 -1
- package/funcs/imagesUpload.js +2 -2
- package/funcs/imagesUpload.js.map +1 -1
- package/funcs/institutionsSearch.d.ts +1 -1
- package/funcs/institutionsSearch.js +1 -1
- package/funcs/issuingTransactionsList.js +1 -0
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/transfersCreateCancellation.d.ts +3 -0
- package/funcs/transfersCreateCancellation.d.ts.map +1 -1
- package/funcs/transfersCreateCancellation.js +6 -1
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateCapture.d.ts +2 -1
- package/funcs/transfersCreateCapture.d.ts.map +1 -1
- package/funcs/transfersCreateCapture.js +2 -1
- package/funcs/transfersCreateCapture.js.map +1 -1
- package/funcs/transfersCreateReversal.d.ts +3 -0
- package/funcs/transfersCreateReversal.d.ts.map +1 -1
- package/funcs/transfersCreateReversal.js +3 -0
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersGetCapture.d.ts +1 -1
- package/funcs/transfersGetCapture.js +1 -1
- package/funcs/transfersList.js +0 -1
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListCancellations.js +1 -1
- package/funcs/transfersListCancellations.js.map +1 -1
- package/funcs/transfersListCaptures.d.ts +1 -1
- package/funcs/transfersListCaptures.js +2 -2
- package/funcs/transfersListCaptures.js.map +1 -1
- package/funcs/transfersListRefunds.js +1 -1
- package/funcs/transfersListRefunds.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +7 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/bankAccountsCreateAttestation.d.ts +8 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.js +72 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.js.map +1 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts +8 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.js +70 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.js.map +1 -0
- package/mcp-server/tools/bankAccountsListAttestations.d.ts +8 -0
- package/mcp-server/tools/bankAccountsListAttestations.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsListAttestations.js +62 -0
- package/mcp-server/tools/bankAccountsListAttestations.js.map +1 -0
- package/mcp-server/tools/cardIssuingGetFull.js +1 -1
- package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
- package/mcp-server/tools/imagesUpload.js +1 -1
- package/mcp-server/tools/imagesUpload.js.map +1 -1
- package/mcp-server/tools/institutionsSearch.js +1 -1
- package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateCancellation.js +3 -0
- package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
- package/mcp-server/tools/transfersCreateCapture.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateCapture.js +2 -1
- package/mcp-server/tools/transfersCreateCapture.js.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.js +4 -1
- package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
- package/mcp-server/tools/transfersGetCapture.d.ts.map +1 -1
- package/mcp-server/tools/transfersGetCapture.js +1 -1
- package/mcp-server/tools/transfersGetCapture.js.map +1 -1
- package/mcp-server/tools/transfersListCancellations.js +1 -1
- package/mcp-server/tools/transfersListCaptures.d.ts.map +1 -1
- package/mcp-server/tools/transfersListCaptures.js +1 -1
- package/mcp-server/tools/transfersListCaptures.js.map +1 -1
- package/models/components/achcredittransferprocessingdetails.d.ts +6 -0
- package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/achcredittransferprocessingdetails.js +3 -0
- package/models/components/achcredittransferprocessingdetails.js.map +1 -1
- package/models/components/achdebittransferprocessingdetails.d.ts +6 -0
- package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/achdebittransferprocessingdetails.js +3 -0
- package/models/components/achdebittransferprocessingdetails.js.map +1 -1
- package/models/components/achtransactionstatus.d.ts +23 -0
- package/models/components/achtransactionstatus.d.ts.map +1 -0
- package/models/components/achtransactionstatus.js +57 -0
- package/models/components/achtransactionstatus.js.map +1 -0
- package/models/components/adjustmentfees.d.ts +30 -0
- package/models/components/adjustmentfees.d.ts.map +1 -0
- package/models/components/adjustmentfees.js +62 -0
- package/models/components/adjustmentfees.js.map +1 -0
- package/models/components/amountdecimalrange.d.ts +1 -3
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +1 -3
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/applicationscope.d.ts +1 -1
- package/models/components/applicationscope.js +1 -1
- package/models/components/applicationscope.js.map +1 -1
- package/models/components/asynccreatedrefund.d.ts +1 -1
- package/models/components/bankaccountattestation.d.ts +48 -0
- package/models/components/bankaccountattestation.d.ts.map +1 -0
- package/models/components/bankaccountattestation.js +69 -0
- package/models/components/bankaccountattestation.js.map +1 -0
- package/models/components/bankaccountattestationeligibility.d.ts +28 -0
- package/models/components/bankaccountattestationeligibility.d.ts.map +1 -0
- package/models/components/bankaccountattestationeligibility.js +61 -0
- package/models/components/bankaccountattestationeligibility.js.map +1 -0
- package/models/components/bankaccountattestationsummary.d.ts +38 -0
- package/models/components/bankaccountattestationsummary.d.ts.map +1 -0
- package/models/components/bankaccountattestationsummary.js +65 -0
- package/models/components/bankaccountattestationsummary.js.map +1 -0
- package/models/components/billingadjustment.d.ts +34 -0
- package/models/components/billingadjustment.d.ts.map +1 -0
- package/models/components/billingadjustment.js +64 -0
- package/models/components/billingadjustment.js.map +1 -0
- package/models/components/billingsummary.d.ts +15 -10
- package/models/components/billingsummary.d.ts.map +1 -1
- package/models/components/billingsummary.js +14 -11
- package/models/components/billingsummary.js.map +1 -1
- package/models/components/cancellation.d.ts +3 -0
- package/models/components/cancellation.d.ts.map +1 -1
- package/models/components/cancellation.js.map +1 -1
- package/models/components/capture.d.ts +9 -3
- package/models/components/capture.d.ts.map +1 -1
- package/models/components/capture.js +3 -0
- package/models/components/capture.js.map +1 -1
- package/models/components/capturestatus.d.ts +0 -2
- package/models/components/capturestatus.d.ts.map +1 -1
- package/models/components/capturestatus.js +0 -2
- package/models/components/capturestatus.js.map +1 -1
- package/models/components/cardacquiringrefund.d.ts +1 -1
- package/models/components/cardissuing.d.ts +25 -0
- package/models/components/cardissuing.d.ts.map +1 -0
- package/models/components/cardissuing.js +60 -0
- package/models/components/cardissuing.js.map +1 -0
- package/models/components/cardissuingerror.d.ts +18 -0
- package/models/components/cardissuingerror.d.ts.map +1 -0
- package/models/components/cardissuingerror.js +60 -0
- package/models/components/cardissuingerror.js.map +1 -0
- package/models/components/cardpaymenttransactionstatus.d.ts +22 -0
- package/models/components/cardpaymenttransactionstatus.d.ts.map +1 -0
- package/models/components/cardpaymenttransactionstatus.js +56 -0
- package/models/components/cardpaymenttransactionstatus.js.map +1 -0
- package/models/components/cardpaymenttransferprocessingdetails.d.ts +11 -2
- package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -1
- package/models/components/cardpaymenttransferprocessingdetails.js +5 -2
- package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -1
- package/models/components/cardtransactionfailurecode.d.ts +16 -0
- package/models/components/cardtransactionfailurecode.d.ts.map +1 -1
- package/models/components/cardtransactionfailurecode.js +16 -0
- package/models/components/cardtransactionfailurecode.js.map +1 -1
- package/models/components/createbankaccountattestation.d.ts +28 -0
- package/models/components/createbankaccountattestation.d.ts.map +1 -0
- package/models/components/createbankaccountattestation.js +61 -0
- package/models/components/createbankaccountattestation.js.map +1 -0
- package/models/components/createcancellation.d.ts +10 -0
- package/models/components/createcancellation.d.ts.map +1 -1
- package/models/components/createcancellation.js.map +1 -1
- package/models/components/createcapture.d.ts +13 -4
- package/models/components/createcapture.d.ts.map +1 -1
- package/models/components/createcapture.js.map +1 -1
- package/models/components/createdtransfer.d.ts +14 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createfeeplanagreement.d.ts +16 -1
- package/models/components/createfeeplanagreement.d.ts.map +1 -1
- package/models/components/createfeeplanagreement.js +2 -0
- package/models/components/createfeeplanagreement.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -0
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createrefund.d.ts +2 -2
- package/models/components/createreversal.d.ts +6 -1
- package/models/components/createreversal.d.ts.map +1 -1
- package/models/components/createreversal.js.map +1 -1
- package/models/components/createtransfer.d.ts +1 -1
- package/models/components/createtransferdestination.d.ts +6 -0
- package/models/components/createtransferdestination.d.ts.map +1 -1
- package/models/components/createtransferdestination.js +3 -0
- package/models/components/createtransferdestination.js.map +1 -1
- package/models/components/createtransferdestinationwire.d.ts +23 -0
- package/models/components/createtransferdestinationwire.d.ts.map +1 -0
- package/models/components/createtransferdestinationwire.js +59 -0
- package/models/components/createtransferdestinationwire.js.map +1 -0
- package/models/components/facilitatorfee.d.ts +7 -23
- package/models/components/facilitatorfee.d.ts.map +1 -1
- package/models/components/facilitatorfee.js +5 -8
- package/models/components/facilitatorfee.js.map +1 -1
- package/models/components/feepaidby.d.ts +0 -6
- package/models/components/feepaidby.d.ts.map +1 -1
- package/models/components/feepaidby.js +0 -3
- package/models/components/feepaidby.js.map +1 -1
- package/models/components/feeplanagreement.d.ts +10 -0
- package/models/components/feeplanagreement.d.ts.map +1 -1
- package/models/components/feeplanagreement.js +5 -0
- package/models/components/feeplanagreement.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +1 -0
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +21 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +21 -0
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.d.ts +6 -0
- package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.js +3 -0
- package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -1
- package/models/components/instantbanktransactionstatus.d.ts +20 -0
- package/models/components/instantbanktransactionstatus.d.ts.map +1 -0
- package/models/components/instantbanktransactionstatus.js +54 -0
- package/models/components/instantbanktransactionstatus.js.map +1 -0
- package/models/components/issuedcard.d.ts +1 -0
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +3 -0
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +2 -0
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/issuedcontrols.d.ts +1 -4
- package/models/components/issuedcontrols.d.ts.map +1 -1
- package/models/components/issuedcontrols.js.map +1 -1
- package/models/components/issuingcontrols.d.ts +5 -5
- package/models/components/issuingcontrols.d.ts.map +1 -1
- package/models/components/issuingcontrolsrestrictionmode.d.ts +2 -2
- package/models/components/issuingcontrolsrestrictionmode.js +1 -1
- package/models/components/merchantcategoryrestrictions.d.ts +2 -2
- package/models/components/merchantentry.d.ts +3 -3
- package/models/components/merchantentry.d.ts.map +1 -1
- package/models/components/merchantentry.js +2 -2
- package/models/components/merchantentry.js.map +1 -1
- package/models/components/merchantentryerror.d.ts +2 -2
- package/models/components/merchantentryerror.d.ts.map +1 -1
- package/models/components/merchantentryerror.js +2 -2
- package/models/components/merchantentryerror.js.map +1 -1
- package/models/components/merchantrestrictions.d.ts +1 -1
- package/models/components/partnerpricingagreement.d.ts +12 -2
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js +5 -0
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/models/components/paymentlink.d.ts +4 -3
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinkpayoutdetails.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/paymentmethod.d.ts +3 -2
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +3 -0
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/paymentmethodtype.d.ts +1 -0
- package/models/components/paymentmethodtype.d.ts.map +1 -1
- package/models/components/paymentmethodtype.js +1 -0
- package/models/components/paymentmethodtype.js.map +1 -1
- package/models/components/pullfromcardtransactionstatus.d.ts +19 -0
- package/models/components/pullfromcardtransactionstatus.d.ts.map +1 -0
- package/models/components/pullfromcardtransactionstatus.js +53 -0
- package/models/components/pullfromcardtransactionstatus.js.map +1 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts +6 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -1
- package/models/components/pullfromcardtransferprocessingdetails.js +3 -0
- package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -1
- package/models/components/pushoptions.d.ts +4 -6
- package/models/components/pushoptions.d.ts.map +1 -1
- package/models/components/pushoptions.js.map +1 -1
- package/models/components/pushoptionsupdate.d.ts +4 -6
- package/models/components/pushoptionsupdate.d.ts.map +1 -1
- package/models/components/pushoptionsupdate.js.map +1 -1
- package/models/components/pushtocardtransactionstatus.d.ts +21 -0
- package/models/components/pushtocardtransactionstatus.d.ts.map +1 -0
- package/models/components/pushtocardtransactionstatus.js +55 -0
- package/models/components/pushtocardtransactionstatus.js.map +1 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts +6 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -1
- package/models/components/pushtocardtransferprocessingdetails.js +3 -0
- package/models/components/pushtocardtransferprocessingdetails.js.map +1 -1
- package/models/components/requestcard.d.ts +3 -0
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js.map +1 -1
- package/models/components/requirementid.d.ts +15 -0
- package/models/components/requirementid.d.ts.map +1 -1
- package/models/components/requirementid.js +15 -0
- package/models/components/requirementid.js.map +1 -1
- package/models/components/reversalamountdetails.d.ts +5 -1
- package/models/components/reversalamountdetails.d.ts.map +1 -1
- package/models/components/reversalamountdetails.js.map +1 -1
- package/models/components/reversedwithcancellation.d.ts +3 -0
- package/models/components/reversedwithcancellation.d.ts.map +1 -1
- package/models/components/reversedwithcancellation.js.map +1 -1
- package/models/components/statement.d.ts +6 -0
- package/models/components/statement.d.ts.map +1 -1
- package/models/components/statement.js +3 -0
- package/models/components/statement.js.map +1 -1
- package/models/components/sweepconfig.d.ts +2 -2
- package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
- package/models/components/transfer.d.ts +14 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferauthorization.d.ts +21 -0
- package/models/components/transferauthorization.d.ts.map +1 -1
- package/models/components/transferauthorization.js.map +1 -1
- package/models/components/transferfeepaidby.d.ts +1 -1
- package/models/components/transferpaymentmethod.d.ts +3 -2
- package/models/components/transferpaymentmethod.d.ts.map +1 -1
- package/models/components/transferpaymentmethod.js +3 -0
- package/models/components/transferpaymentmethod.js.map +1 -1
- package/models/components/transferpaymentmethodtype.d.ts +1 -0
- package/models/components/transferpaymentmethodtype.d.ts.map +1 -1
- package/models/components/transferpaymentmethodtype.js +1 -0
- package/models/components/transferpaymentmethodtype.js.map +1 -1
- package/models/components/transferprocessingdetails.d.ts +6 -0
- package/models/components/transferprocessingdetails.d.ts.map +1 -1
- package/models/components/transferprocessingdetails.js +3 -0
- package/models/components/transferprocessingdetails.js.map +1 -1
- package/models/components/transferrailoptions.d.ts +6 -0
- package/models/components/transferrailoptions.d.ts.map +1 -1
- package/models/components/transferrailoptions.js +3 -0
- package/models/components/transferrailoptions.js.map +1 -1
- package/models/components/transfertype.d.ts +1 -0
- package/models/components/transfertype.d.ts.map +1 -1
- package/models/components/transfertype.js +1 -0
- package/models/components/transfertype.js.map +1 -1
- package/models/components/underwriting.d.ts +10 -0
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +3 -0
- package/models/components/underwriting.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +2 -0
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updateissuedcardstate.d.ts +6 -0
- package/models/components/updateissuedcardstate.d.ts.map +1 -1
- package/models/components/updateissuedcardstate.js +4 -0
- package/models/components/updateissuedcardstate.js.map +1 -1
- package/models/components/updateissuingcontrols.d.ts +10 -10
- package/models/components/updatepaymentlink.d.ts +3 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/upsertunderwriting.d.ts +10 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -1
- package/models/components/upsertunderwriting.js +3 -0
- package/models/components/upsertunderwriting.js.map +1 -1
- 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/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +3 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatacaptureupdated.d.ts +30 -0
- package/models/components/webhookdatacaptureupdated.d.ts.map +1 -0
- package/models/components/webhookdatacaptureupdated.js +66 -0
- package/models/components/webhookdatacaptureupdated.js.map +1 -0
- package/models/components/webhookdatatransferstatus.d.ts +1 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
- package/models/components/webhookdatatransferstatus.js +1 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/components/wirecreditpaymentmethod.d.ts +31 -0
- package/models/components/wirecreditpaymentmethod.d.ts.map +1 -0
- package/models/components/wirecreditpaymentmethod.js +64 -0
- package/models/components/wirecreditpaymentmethod.js.map +1 -0
- package/models/components/wirecredittransferpaymentmethod.d.ts +31 -0
- package/models/components/wirecredittransferpaymentmethod.d.ts.map +1 -0
- package/models/components/wirecredittransferpaymentmethod.js +64 -0
- package/models/components/wirecredittransferpaymentmethod.js.map +1 -0
- package/models/components/wirefailurecode.d.ts +25 -0
- package/models/components/wirefailurecode.d.ts.map +1 -0
- package/models/components/wirefailurecode.js +59 -0
- package/models/components/wirefailurecode.js.map +1 -0
- package/models/components/wireoptions.d.ts +23 -0
- package/models/components/wireoptions.d.ts.map +1 -0
- package/models/components/wireoptions.js +59 -0
- package/models/components/wireoptions.js.map +1 -0
- package/models/components/wiretransactionstatus.d.ts +20 -0
- package/models/components/wiretransactionstatus.d.ts.map +1 -0
- package/models/components/wiretransactionstatus.js +54 -0
- package/models/components/wiretransactionstatus.js.map +1 -0
- package/models/components/wiretransferprocessingdetails.d.ts +35 -0
- package/models/components/wiretransferprocessingdetails.d.ts.map +1 -0
- package/models/components/wiretransferprocessingdetails.js +65 -0
- package/models/components/wiretransferprocessingdetails.js.map +1 -0
- package/models/errors/bankaccountattestationvalidationerror.d.ts +45 -0
- package/models/errors/bankaccountattestationvalidationerror.d.ts.map +1 -0
- package/models/errors/bankaccountattestationvalidationerror.js +83 -0
- package/models/errors/bankaccountattestationvalidationerror.js.map +1 -0
- package/models/errors/cardacquiringrefund.d.ts +2 -2
- package/models/errors/imagemetadata.d.ts +78 -0
- package/models/errors/imagemetadata.d.ts.map +1 -0
- package/models/errors/imagemetadata.js +98 -0
- package/models/errors/imagemetadata.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/transfer.d.ts +28 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/upsertunderwritingerror.d.ts +3 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -1
- package/models/errors/upsertunderwritingerror.js +4 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -1
- package/models/operations/createbankaccountattestation.d.ts +41 -0
- package/models/operations/createbankaccountattestation.d.ts.map +1 -0
- package/models/operations/createbankaccountattestation.js +101 -0
- package/models/operations/createbankaccountattestation.js.map +1 -0
- package/models/operations/createcapture.d.ts +2 -2
- package/models/operations/getbankaccountattestationeligibility.d.ts +47 -0
- package/models/operations/getbankaccountattestationeligibility.d.ts.map +1 -0
- package/models/operations/getbankaccountattestationeligibility.js +93 -0
- package/models/operations/getbankaccountattestationeligibility.js.map +1 -0
- package/models/operations/getcapture.d.ts +2 -2
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccounts.d.ts +3 -0
- package/models/operations/listaccounts.d.ts.map +1 -1
- package/models/operations/listaccounts.js.map +1 -1
- package/models/operations/listbankaccountattestations.d.ts +39 -0
- package/models/operations/listbankaccountattestations.d.ts.map +1 -0
- package/models/operations/listbankaccountattestations.js +91 -0
- package/models/operations/listbankaccountattestations.js.map +1 -0
- package/models/operations/listcaptures.d.ts +2 -2
- package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
- package/models/operations/listdisputes.d.ts +3 -0
- package/models/operations/listdisputes.d.ts.map +1 -1
- package/models/operations/listdisputes.js.map +1 -1
- package/models/operations/listfeeplanagreements.d.ts +3 -0
- package/models/operations/listfeeplanagreements.d.ts.map +1 -1
- package/models/operations/listfeeplanagreements.js.map +1 -1
- package/models/operations/listfeerevenue.d.ts +3 -0
- package/models/operations/listfeerevenue.d.ts.map +1 -1
- package/models/operations/listfeerevenue.js.map +1 -1
- package/models/operations/listinvoices.d.ts +3 -0
- package/models/operations/listinvoices.d.ts.map +1 -1
- package/models/operations/listinvoices.js.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
- package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
- package/models/operations/listissuedcardauthorizations.d.ts +3 -0
- package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizations.js.map +1 -1
- package/models/operations/listissuedcards.d.ts +3 -0
- package/models/operations/listissuedcards.d.ts.map +1 -1
- package/models/operations/listissuedcards.js.map +1 -1
- package/models/operations/listissuedcardtransactions.d.ts +8 -0
- package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
- package/models/operations/listissuedcardtransactions.js +2 -0
- package/models/operations/listissuedcardtransactions.js.map +1 -1
- package/models/operations/listpartnerpricingagreements.d.ts +3 -0
- package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
- package/models/operations/listpartnerpricingagreements.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/listproducts.d.ts +3 -0
- package/models/operations/listproducts.d.ts.map +1 -1
- package/models/operations/listproducts.js.map +1 -1
- package/models/operations/listresidualfees.d.ts +3 -0
- package/models/operations/listresidualfees.d.ts.map +1 -1
- package/models/operations/listresidualfees.js.map +1 -1
- package/models/operations/listresiduals.d.ts +3 -0
- package/models/operations/listresiduals.d.ts.map +1 -1
- package/models/operations/listresiduals.js.map +1 -1
- package/models/operations/listschedules.d.ts +3 -0
- package/models/operations/listschedules.d.ts.map +1 -1
- package/models/operations/listschedules.js.map +1 -1
- package/models/operations/liststatements.d.ts +3 -0
- package/models/operations/liststatements.d.ts.map +1 -1
- package/models/operations/liststatements.js.map +1 -1
- package/models/operations/listsweeps.d.ts +3 -0
- package/models/operations/listsweeps.d.ts.map +1 -1
- package/models/operations/listsweeps.js.map +1 -1
- package/models/operations/listtickets.d.ts +3 -0
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js.map +1 -1
- package/models/operations/listtransfers.d.ts +4 -6
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +0 -2
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/listwallets.d.ts +3 -0
- package/models/operations/listwallets.d.ts.map +1 -1
- package/models/operations/listwallets.js.map +1 -1
- package/models/operations/listwallettransactions.d.ts +3 -0
- package/models/operations/listwallettransactions.d.ts.map +1 -1
- package/models/operations/listwallettransactions.js.map +1 -1
- package/models/operations/retrievefees.d.ts +3 -0
- package/models/operations/retrievefees.d.ts.map +1 -1
- package/models/operations/retrievefees.js.map +1 -1
- package/package.json +1 -1
- package/sdk/bankaccounts.d.ts +30 -0
- package/sdk/bankaccounts.d.ts.map +1 -1
- package/sdk/bankaccounts.js +39 -0
- package/sdk/bankaccounts.js.map +1 -1
- package/sdk/cardissuing.d.ts +1 -1
- package/sdk/cardissuing.js +1 -1
- package/sdk/images.d.ts +1 -1
- package/sdk/images.js +1 -1
- package/sdk/institutions.d.ts +1 -1
- package/sdk/institutions.js +1 -1
- package/sdk/transfers.d.ts +10 -3
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -3
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/bankAccountsCreateAttestation.ts +205 -0
- package/src/funcs/bankAccountsGetAttestationEligibility.ts +199 -0
- package/src/funcs/bankAccountsListAttestations.ts +179 -0
- package/src/funcs/cardIssuingGetFull.ts +1 -1
- package/src/funcs/imagesUpload.ts +6 -2
- package/src/funcs/institutionsSearch.ts +1 -1
- package/src/funcs/issuingTransactionsList.ts +1 -0
- package/src/funcs/transfersCreateCancellation.ts +6 -1
- package/src/funcs/transfersCreateCapture.ts +2 -1
- package/src/funcs/transfersCreateReversal.ts +3 -0
- package/src/funcs/transfersGetCapture.ts +1 -1
- package/src/funcs/transfersList.ts +0 -1
- package/src/funcs/transfersListCancellations.ts +1 -1
- package/src/funcs/transfersListCaptures.ts +2 -2
- package/src/funcs/transfersListRefunds.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/bankAccountsCreateAttestation.ts +46 -0
- package/src/mcp-server/tools/bankAccountsGetAttestationEligibility.ts +46 -0
- package/src/mcp-server/tools/bankAccountsListAttestations.ts +35 -0
- package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
- package/src/mcp-server/tools/imagesUpload.ts +1 -1
- package/src/mcp-server/tools/institutionsSearch.ts +1 -1
- package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
- package/src/mcp-server/tools/transfersCreateCapture.ts +3 -1
- package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
- package/src/mcp-server/tools/transfersGetCapture.ts +2 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
- package/src/mcp-server/tools/transfersListCaptures.ts +2 -1
- package/src/models/components/achcredittransferprocessingdetails.ts +12 -0
- package/src/models/components/achdebittransferprocessingdetails.ts +12 -0
- package/src/models/components/achtransactionstatus.ts +37 -0
- package/src/models/components/adjustmentfees.ts +72 -0
- package/src/models/components/amountdecimalrange.ts +1 -3
- package/src/models/components/amountdecimalrangeupdate.ts +1 -3
- package/src/models/components/applicationscope.ts +1 -1
- package/src/models/components/asynccreatedrefund.ts +1 -1
- package/src/models/components/bankaccountattestation.ts +95 -0
- package/src/models/components/bankaccountattestationeligibility.ts +67 -0
- package/src/models/components/bankaccountattestationsummary.ts +83 -0
- package/src/models/components/billingadjustment.ts +78 -0
- package/src/models/components/billingsummary.ts +35 -19
- package/src/models/components/cancellation.ts +3 -0
- package/src/models/components/capture.ts +15 -3
- package/src/models/components/capturestatus.ts +0 -2
- package/src/models/components/cardacquiringrefund.ts +1 -1
- package/src/models/components/cardissuing.ts +61 -0
- package/src/models/components/cardissuingerror.ts +58 -0
- package/src/models/components/cardpaymenttransactionstatus.ts +38 -0
- package/src/models/components/cardpaymenttransferprocessingdetails.ts +19 -4
- package/src/models/components/cardtransactionfailurecode.ts +16 -0
- package/src/models/components/createbankaccountattestation.ts +69 -0
- package/src/models/components/createcancellation.ts +10 -0
- package/src/models/components/createcapture.ts +13 -4
- package/src/models/components/createdtransfer.ts +14 -0
- package/src/models/components/createfeeplanagreement.ts +18 -1
- package/src/models/components/createpaymentlink.ts +3 -0
- package/src/models/components/createrefund.ts +2 -2
- package/src/models/components/createreversal.ts +6 -1
- package/src/models/components/createtransfer.ts +1 -1
- package/src/models/components/createtransferdestination.ts +13 -0
- package/src/models/components/createtransferdestinationwire.ts +60 -0
- package/src/models/components/facilitatorfee.ts +16 -31
- package/src/models/components/feepaidby.ts +0 -6
- package/src/models/components/feeplanagreement.ts +15 -0
- package/src/models/components/fullissuedcard.ts +1 -0
- package/src/models/components/index.ts +21 -0
- package/src/models/components/instantbankcredittransferprocessingdetails.ts +12 -0
- package/src/models/components/instantbanktransactionstatus.ts +36 -0
- package/src/models/components/issuedcard.ts +1 -0
- package/src/models/components/issuedcardstate.ts +3 -0
- package/src/models/components/issuedcontrols.ts +1 -4
- package/src/models/components/issuingcontrols.ts +5 -5
- package/src/models/components/issuingcontrolsrestrictionmode.ts +2 -2
- package/src/models/components/merchantcategoryrestrictions.ts +2 -2
- package/src/models/components/merchantentry.ts +5 -5
- package/src/models/components/merchantentryerror.ts +4 -4
- package/src/models/components/merchantrestrictions.ts +1 -1
- package/src/models/components/partnerpricingagreement.ts +17 -2
- package/src/models/components/paymentlink.ts +4 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +1 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +1 -3
- package/src/models/components/paymentlinkpayoutdetails.ts +7 -8
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -8
- package/src/models/components/paymentmethod.ts +11 -1
- package/src/models/components/paymentmethodtype.ts +1 -0
- package/src/models/components/pullfromcardtransactionstatus.ts +35 -0
- package/src/models/components/pullfromcardtransferprocessingdetails.ts +12 -0
- package/src/models/components/pushoptions.ts +4 -6
- package/src/models/components/pushoptionsupdate.ts +4 -6
- package/src/models/components/pushtocardtransactionstatus.ts +37 -0
- package/src/models/components/pushtocardtransferprocessingdetails.ts +12 -0
- package/src/models/components/requestcard.ts +3 -0
- package/src/models/components/requirementid.ts +30 -0
- package/src/models/components/reversalamountdetails.ts +5 -1
- package/src/models/components/reversedwithcancellation.ts +3 -0
- package/src/models/components/statement.ts +13 -0
- package/src/models/components/sweepconfig.ts +2 -2
- package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
- package/src/models/components/transfer.ts +14 -0
- package/src/models/components/transferauthorization.ts +21 -0
- package/src/models/components/transferfeepaidby.ts +1 -1
- package/src/models/components/transferpaymentmethod.ts +11 -1
- package/src/models/components/transferpaymentmethodtype.ts +1 -0
- package/src/models/components/transferprocessingdetails.ts +13 -0
- package/src/models/components/transferrailoptions.ts +13 -0
- package/src/models/components/transfertype.ts +1 -0
- package/src/models/components/underwriting.ts +17 -0
- package/src/models/components/updateissuedcard.ts +2 -0
- package/src/models/components/updateissuedcardstate.ts +6 -0
- package/src/models/components/updateissuingcontrols.ts +10 -10
- package/src/models/components/updatepaymentlink.ts +3 -0
- package/src/models/components/upsertunderwriting.ts +17 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/components/webhookdata.ts +10 -0
- package/src/models/components/webhookdatacaptureupdated.ts +75 -0
- package/src/models/components/webhookdatatransferstatus.ts +1 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/components/wirecreditpaymentmethod.ts +75 -0
- package/src/models/components/wirecredittransferpaymentmethod.ts +77 -0
- package/src/models/components/wirefailurecode.ts +39 -0
- package/src/models/components/wireoptions.ts +54 -0
- package/src/models/components/wiretransactionstatus.ts +34 -0
- package/src/models/components/wiretransferprocessingdetails.ts +84 -0
- package/src/models/errors/bankaccountattestationvalidationerror.ts +91 -0
- package/src/models/errors/cardacquiringrefund.ts +2 -2
- package/src/models/errors/imagemetadata.ts +139 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/transfer.ts +28 -0
- package/src/models/errors/upsertunderwritingerror.ts +6 -0
- package/src/models/operations/createbankaccountattestation.ts +136 -0
- package/src/models/operations/createcapture.ts +2 -2
- package/src/models/operations/getbankaccountattestationeligibility.ts +149 -0
- package/src/models/operations/getcapture.ts +2 -2
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listaccounts.ts +3 -0
- package/src/models/operations/listbankaccountattestations.ts +121 -0
- package/src/models/operations/listcaptures.ts +2 -2
- package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
- package/src/models/operations/listdisputes.ts +3 -0
- package/src/models/operations/listfeeplanagreements.ts +3 -0
- package/src/models/operations/listfeerevenue.ts +3 -0
- package/src/models/operations/listinvoices.ts +3 -0
- package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
- package/src/models/operations/listissuedcardauthorizations.ts +3 -0
- package/src/models/operations/listissuedcards.ts +3 -0
- package/src/models/operations/listissuedcardtransactions.ts +10 -0
- package/src/models/operations/listpartnerpricingagreements.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/listproducts.ts +3 -0
- package/src/models/operations/listresidualfees.ts +3 -0
- package/src/models/operations/listresiduals.ts +3 -0
- package/src/models/operations/listschedules.ts +3 -0
- package/src/models/operations/liststatements.ts +3 -0
- package/src/models/operations/listsweeps.ts +3 -0
- package/src/models/operations/listtickets.ts +3 -0
- package/src/models/operations/listtransfers.ts +4 -8
- package/src/models/operations/listwallets.ts +3 -0
- package/src/models/operations/listwallettransactions.ts +3 -0
- package/src/models/operations/retrievefees.ts +3 -0
- package/src/sdk/bankaccounts.ts +63 -0
- package/src/sdk/cardissuing.ts +1 -1
- package/src/sdk/images.ts +1 -1
- package/src/sdk/institutions.ts +1 -1
- package/src/sdk/transfers.ts +10 -3
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MoovCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { MoovError } from "../models/errors/mooverror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List the attestations submitted for a bank account.
|
|
30
|
+
*/
|
|
31
|
+
export function bankAccountsListAttestations(
|
|
32
|
+
client: MoovCore,
|
|
33
|
+
request: operations.ListBankAccountAttestationsRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.ListBankAccountAttestationsResponse,
|
|
38
|
+
| MoovError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: MoovCore,
|
|
57
|
+
request: operations.ListBankAccountAttestationsRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.ListBankAccountAttestationsResponse,
|
|
63
|
+
| MoovError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
operations.ListBankAccountAttestationsRequest$outboundSchema.parse(value),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed.ok) {
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload = parsed.value;
|
|
85
|
+
const body = null;
|
|
86
|
+
|
|
87
|
+
const pathParams = {
|
|
88
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
bankAccountID: encodeSimple("bankAccountID", payload.bankAccountID, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc(
|
|
98
|
+
"/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations",
|
|
99
|
+
)(pathParams);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "listBankAccountAttestations",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.security,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "GET",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
141
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const responseFields = {
|
|
151
|
+
HttpMeta: { Response: response, Request: req },
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const [result] = await M.match<
|
|
155
|
+
operations.ListBankAccountAttestationsResponse,
|
|
156
|
+
| MoovError
|
|
157
|
+
| ResponseValidationError
|
|
158
|
+
| ConnectionError
|
|
159
|
+
| RequestAbortedError
|
|
160
|
+
| RequestTimeoutError
|
|
161
|
+
| InvalidRequestError
|
|
162
|
+
| UnexpectedClientError
|
|
163
|
+
| SDKValidationError
|
|
164
|
+
>(
|
|
165
|
+
M.json(200, operations.ListBankAccountAttestationsResponse$inboundSchema, {
|
|
166
|
+
hdrs: true,
|
|
167
|
+
key: "Result",
|
|
168
|
+
}),
|
|
169
|
+
M.fail([401, 403, 404, 429]),
|
|
170
|
+
M.fail([500, 504]),
|
|
171
|
+
M.fail("4XX"),
|
|
172
|
+
M.fail("5XX"),
|
|
173
|
+
)(response, req, { extraFields: responseFields });
|
|
174
|
+
if (!result.ok) {
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
32
32
|
*
|
|
33
33
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
|
-
* you'll need to specify the `/accounts/{accountID}/issued-cards.read-
|
|
34
|
+
* you'll need to specify the `/accounts/{accountID}/issued-cards.read-private` scope.
|
|
35
35
|
*/
|
|
36
36
|
export function cardIssuingGetFull(
|
|
37
37
|
client: MoovCore,
|
|
@@ -40,7 +40,7 @@ import { isReadableStream } from "../types/streams.js";
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Upload a new PNG, JPEG, or WebP image with optional metadata.
|
|
43
|
-
* Duplicate images
|
|
43
|
+
* Duplicate images return the existing image's metadata with a 409 status. Requests larger than 16MB will be rejected.
|
|
44
44
|
*/
|
|
45
45
|
export function imagesUpload(
|
|
46
46
|
client: MoovCore,
|
|
@@ -50,6 +50,7 @@ export function imagesUpload(
|
|
|
50
50
|
Result<
|
|
51
51
|
operations.UploadImageResponse,
|
|
52
52
|
| errors.GenericError
|
|
53
|
+
| errors.ImageMetadata
|
|
53
54
|
| errors.ImageRequestValidationError
|
|
54
55
|
| MoovError
|
|
55
56
|
| ResponseValidationError
|
|
@@ -77,6 +78,7 @@ async function $do(
|
|
|
77
78
|
Result<
|
|
78
79
|
operations.UploadImageResponse,
|
|
79
80
|
| errors.GenericError
|
|
81
|
+
| errors.ImageMetadata
|
|
80
82
|
| errors.ImageRequestValidationError
|
|
81
83
|
| MoovError
|
|
82
84
|
| ResponseValidationError
|
|
@@ -211,6 +213,7 @@ async function $do(
|
|
|
211
213
|
const [result] = await M.match<
|
|
212
214
|
operations.UploadImageResponse,
|
|
213
215
|
| errors.GenericError
|
|
216
|
+
| errors.ImageMetadata
|
|
214
217
|
| errors.ImageRequestValidationError
|
|
215
218
|
| MoovError
|
|
216
219
|
| ResponseValidationError
|
|
@@ -225,7 +228,8 @@ async function $do(
|
|
|
225
228
|
hdrs: true,
|
|
226
229
|
key: "Result",
|
|
227
230
|
}),
|
|
228
|
-
M.jsonErr(
|
|
231
|
+
M.jsonErr(400, errors.GenericError$inboundSchema, { hdrs: true }),
|
|
232
|
+
M.jsonErr(409, errors.ImageMetadata$inboundSchema, { hdrs: true }),
|
|
229
233
|
M.jsonErr(422, errors.ImageRequestValidationError$inboundSchema, {
|
|
230
234
|
hdrs: true,
|
|
231
235
|
}),
|
|
@@ -27,7 +27,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/
|
|
30
|
+
* This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
|
|
31
31
|
*
|
|
32
32
|
* Search for institutions by either their name or routing number.
|
|
33
33
|
*
|
|
@@ -99,6 +99,7 @@ async function $do(
|
|
|
99
99
|
"count": payload.count,
|
|
100
100
|
"endDateTime": payload.endDateTime,
|
|
101
101
|
"issuedCardID": payload.issuedCardID,
|
|
102
|
+
"merchantName": payload.merchantName,
|
|
102
103
|
"skip": payload.skip,
|
|
103
104
|
"startDateTime": payload.startDateTime,
|
|
104
105
|
}, { explode: false });
|
|
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
/**
|
|
30
30
|
* Initiate a cancellation for a card, ACH, or queued transfer.
|
|
31
31
|
*
|
|
32
|
+
* In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
|
|
33
|
+
* For these transfers, a successful cancellation reduces `capturableAmount` without changing `authorizedAmount`.
|
|
34
|
+
* For these transfers, a partial cancellation leaves the remaining `capturableAmount` available for capture.
|
|
32
35
|
* To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
33
36
|
* to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
34
37
|
*/
|
|
@@ -175,7 +178,9 @@ async function $do(
|
|
|
175
178
|
hdrs: true,
|
|
176
179
|
key: "Result",
|
|
177
180
|
}),
|
|
178
|
-
M.jsonErr(400, errors.GenericError$inboundSchema, {
|
|
181
|
+
M.jsonErr([400, 409, 422], errors.GenericError$inboundSchema, {
|
|
182
|
+
hdrs: true,
|
|
183
|
+
}),
|
|
179
184
|
M.fail([401, 403, 404, 429]),
|
|
180
185
|
M.fail([500, 504]),
|
|
181
186
|
M.fail("4XX"),
|
|
@@ -27,7 +27,8 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create a capture against an
|
|
30
|
+
* Create a capture against an auth-capture `card-payment` transfer.
|
|
31
|
+
* The `accountID` must identify the partner account for the transfer.
|
|
31
32
|
*
|
|
32
33
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
33
34
|
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
|
|
31
|
+
* In v2026.10 and later, reversing an auth-capture `card-payment` transfer with no captures cancels the entire `capturableAmount`.
|
|
32
|
+
* In those API versions, an auth-capture `card-payment` transfer with one final capture is canceled or refunded depending on its processing state.
|
|
33
|
+
* Auth-capture `card-payment` transfers with a non-final capture or multiple captures are not supported in those API versions.
|
|
31
34
|
* Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
|
|
32
35
|
* to learn more.
|
|
33
36
|
*
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Get details of a capture for
|
|
29
|
+
* Get details of a capture for an auth-capture `card-payment` transfer.
|
|
30
30
|
*
|
|
31
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
32
|
* you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
@@ -107,7 +107,6 @@ async function $do(
|
|
|
107
107
|
const query = encodeFormQuery({
|
|
108
108
|
"accountIDs": payload.accountIDs,
|
|
109
109
|
"authorizationIDs": payload.authorizationIDs,
|
|
110
|
-
"captureIDs": payload.captureIDs,
|
|
111
110
|
"count": payload.count,
|
|
112
111
|
"disputed": payload.disputed,
|
|
113
112
|
"endDateTime": payload.endDateTime,
|
|
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Get a list of captures for
|
|
29
|
+
* Get a list of captures for an auth-capture `card-payment` transfer.
|
|
30
30
|
*
|
|
31
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
32
|
* you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
@@ -168,7 +168,7 @@ async function $do(
|
|
|
168
168
|
hdrs: true,
|
|
169
169
|
key: "Result",
|
|
170
170
|
}),
|
|
171
|
-
M.fail([401, 403, 429]),
|
|
171
|
+
M.fail([401, 403, 404, 429]),
|
|
172
172
|
M.fail([500, 504]),
|
|
173
173
|
M.fail("4XX"),
|
|
174
174
|
M.fail("5XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "v2026.10.00",
|
|
76
|
-
sdkVersion: "26.10.0-dev.
|
|
77
|
-
genVersion: "2.
|
|
76
|
+
sdkVersion: "26.10.0-dev.3",
|
|
77
|
+
genVersion: "2.935.1",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 26.10.0-dev.
|
|
79
|
+
"speakeasy-sdk/typescript 26.10.0-dev.3 2.935.1 v2026.10.00 @moovio/sdk",
|
|
80
80
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -12,10 +12,41 @@ export class EncodingError extends Error {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export type CharEncoding = "percent" | "percentExceptReserved" | "none";
|
|
16
|
+
|
|
17
|
+
const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
|
|
18
|
+
|
|
19
|
+
function encodeKeyChars(
|
|
20
|
+
v: string,
|
|
21
|
+
charEncoding: CharEncoding | undefined,
|
|
22
|
+
): string {
|
|
23
|
+
return encodeChars(
|
|
24
|
+
v,
|
|
25
|
+
charEncoding === "percentExceptReserved" ? "percent" : charEncoding,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function encodeChars(
|
|
30
|
+
v: string,
|
|
31
|
+
charEncoding: CharEncoding | undefined,
|
|
32
|
+
): string {
|
|
33
|
+
switch (charEncoding) {
|
|
34
|
+
case "percent":
|
|
35
|
+
return encodeURIComponent(v);
|
|
36
|
+
case "percentExceptReserved":
|
|
37
|
+
return encodeURIComponent(v).replace(
|
|
38
|
+
reservedEscapes,
|
|
39
|
+
(m) => decodeURIComponent(m),
|
|
40
|
+
);
|
|
41
|
+
default:
|
|
42
|
+
return v;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
export function encodeMatrix(
|
|
16
47
|
key: string,
|
|
17
48
|
value: unknown,
|
|
18
|
-
options?: { explode?: boolean; charEncoding?:
|
|
49
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
19
50
|
): string | undefined {
|
|
20
51
|
let out = "";
|
|
21
52
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -27,7 +58,7 @@ export function encodeMatrix(
|
|
|
27
58
|
}
|
|
28
59
|
|
|
29
60
|
const encodeString = (v: string) => {
|
|
30
|
-
return options?.charEncoding
|
|
61
|
+
return encodeChars(v, options?.charEncoding);
|
|
31
62
|
};
|
|
32
63
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
33
64
|
|
|
@@ -52,7 +83,7 @@ export function encodeMatrix(
|
|
|
52
83
|
return;
|
|
53
84
|
}
|
|
54
85
|
|
|
55
|
-
const keyPrefix =
|
|
86
|
+
const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
|
|
56
87
|
tmp = `${keyPrefix}=${encValue}`;
|
|
57
88
|
// trim trailing '=' if value was empty
|
|
58
89
|
if (tmp === `${keyPrefix}=`) {
|
|
@@ -73,7 +104,7 @@ export function encodeMatrix(
|
|
|
73
104
|
export function encodeLabel(
|
|
74
105
|
key: string,
|
|
75
106
|
value: unknown,
|
|
76
|
-
options?: { explode?: boolean; charEncoding?:
|
|
107
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
77
108
|
): string | undefined {
|
|
78
109
|
let out = "";
|
|
79
110
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -85,7 +116,7 @@ export function encodeLabel(
|
|
|
85
116
|
}
|
|
86
117
|
|
|
87
118
|
const encodeString = (v: string) => {
|
|
88
|
-
return options?.charEncoding
|
|
119
|
+
return encodeChars(v, options?.charEncoding);
|
|
89
120
|
};
|
|
90
121
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
91
122
|
|
|
@@ -103,7 +134,7 @@ export function encodeLabel(
|
|
|
103
134
|
encValue = mapped?.join("").slice(1);
|
|
104
135
|
} else {
|
|
105
136
|
const k = options?.explode && isPlainObject(value)
|
|
106
|
-
? `${
|
|
137
|
+
? `${encodeKeyChars(pk, options?.charEncoding)}=`
|
|
107
138
|
: "";
|
|
108
139
|
encValue = `${k}${encodeValue(pv)}`;
|
|
109
140
|
}
|
|
@@ -117,14 +148,14 @@ export function encodeLabel(
|
|
|
117
148
|
type FormEncoder = (
|
|
118
149
|
key: string,
|
|
119
150
|
value: unknown,
|
|
120
|
-
options?: { explode?: boolean; charEncoding?:
|
|
151
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
121
152
|
) => string | undefined;
|
|
122
153
|
|
|
123
154
|
function formEncoder(sep: string): FormEncoder {
|
|
124
155
|
return (
|
|
125
156
|
key: string,
|
|
126
157
|
value: unknown,
|
|
127
|
-
options?: { explode?: boolean; charEncoding?:
|
|
158
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
128
159
|
) => {
|
|
129
160
|
let out = "";
|
|
130
161
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -136,7 +167,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
136
167
|
}
|
|
137
168
|
|
|
138
169
|
const encodeString = (v: string) => {
|
|
139
|
-
return options?.charEncoding
|
|
170
|
+
return encodeChars(v, options?.charEncoding);
|
|
140
171
|
};
|
|
141
172
|
|
|
142
173
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -163,7 +194,7 @@ function formEncoder(sep: string): FormEncoder {
|
|
|
163
194
|
return;
|
|
164
195
|
}
|
|
165
196
|
|
|
166
|
-
tmp = `${
|
|
197
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
167
198
|
|
|
168
199
|
// If we end up with the nothing then skip forward
|
|
169
200
|
if (!tmp || tmp === "=") {
|
|
@@ -184,7 +215,7 @@ export const encodePipeDelimited = formEncoder("|");
|
|
|
184
215
|
export function encodeBodyForm(
|
|
185
216
|
key: string,
|
|
186
217
|
value: unknown,
|
|
187
|
-
options?: { explode?: boolean; charEncoding?:
|
|
218
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
188
219
|
): string {
|
|
189
220
|
let out = "";
|
|
190
221
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -192,7 +223,7 @@ export function encodeBodyForm(
|
|
|
192
223
|
: [[key, value]];
|
|
193
224
|
|
|
194
225
|
const encodeString = (v: string) => {
|
|
195
|
-
return options?.charEncoding
|
|
226
|
+
return encodeChars(v, options?.charEncoding);
|
|
196
227
|
};
|
|
197
228
|
|
|
198
229
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
@@ -211,7 +242,7 @@ export function encodeBodyForm(
|
|
|
211
242
|
encValue = `${encodeValue(pv)}`;
|
|
212
243
|
}
|
|
213
244
|
|
|
214
|
-
tmp = `${
|
|
245
|
+
tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
|
|
215
246
|
|
|
216
247
|
// If we end up with the nothing then skip forward
|
|
217
248
|
if (!tmp || tmp === "=") {
|
|
@@ -227,7 +258,7 @@ export function encodeBodyForm(
|
|
|
227
258
|
export function encodeDeepObject(
|
|
228
259
|
key: string,
|
|
229
260
|
value: unknown,
|
|
230
|
-
options?: { charEncoding?:
|
|
261
|
+
options?: { charEncoding?: CharEncoding },
|
|
231
262
|
): string | undefined {
|
|
232
263
|
if (value == null) {
|
|
233
264
|
return;
|
|
@@ -245,7 +276,7 @@ export function encodeDeepObject(
|
|
|
245
276
|
export function encodeDeepObjectObject(
|
|
246
277
|
key: string,
|
|
247
278
|
value: unknown,
|
|
248
|
-
options?: { charEncoding?:
|
|
279
|
+
options?: { charEncoding?: CharEncoding },
|
|
249
280
|
): string | undefined {
|
|
250
281
|
if (value == null) {
|
|
251
282
|
return;
|
|
@@ -254,7 +285,7 @@ export function encodeDeepObjectObject(
|
|
|
254
285
|
let out = "";
|
|
255
286
|
|
|
256
287
|
const encodeString = (v: string) => {
|
|
257
|
-
return options?.charEncoding
|
|
288
|
+
return encodeChars(v, options?.charEncoding);
|
|
258
289
|
};
|
|
259
290
|
|
|
260
291
|
if (!isPlainObject(value)) {
|
|
@@ -278,7 +309,9 @@ export function encodeDeepObjectObject(
|
|
|
278
309
|
|
|
279
310
|
const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
|
|
280
311
|
const encoded = mapDefined(pairs, (v) => {
|
|
281
|
-
return `${
|
|
312
|
+
return `${encodeKeyChars(pk, options?.charEncoding)}=${
|
|
313
|
+
encodeString(serializeValue(v))
|
|
314
|
+
}`;
|
|
282
315
|
})?.join("&");
|
|
283
316
|
|
|
284
317
|
out += encoded == null ? "" : `&${encoded}`;
|
|
@@ -290,25 +323,27 @@ export function encodeDeepObjectObject(
|
|
|
290
323
|
export function encodeJSON(
|
|
291
324
|
key: string,
|
|
292
325
|
value: unknown,
|
|
293
|
-
options?: { explode?: boolean; charEncoding?:
|
|
326
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
294
327
|
): string | undefined {
|
|
295
328
|
if (typeof value === "undefined") {
|
|
296
329
|
return;
|
|
297
330
|
}
|
|
298
331
|
|
|
299
332
|
const encodeString = (v: string) => {
|
|
300
|
-
return options?.charEncoding
|
|
333
|
+
return encodeChars(v, options?.charEncoding);
|
|
301
334
|
};
|
|
302
335
|
|
|
303
336
|
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
304
337
|
|
|
305
|
-
return options?.explode
|
|
338
|
+
return options?.explode
|
|
339
|
+
? encVal
|
|
340
|
+
: `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
|
|
306
341
|
}
|
|
307
342
|
|
|
308
343
|
export const encodeSimple = (
|
|
309
344
|
key: string,
|
|
310
345
|
value: unknown,
|
|
311
|
-
options?: { explode?: boolean; charEncoding?:
|
|
346
|
+
options?: { explode?: boolean; charEncoding?: CharEncoding },
|
|
312
347
|
): string | undefined => {
|
|
313
348
|
let out = "";
|
|
314
349
|
const pairs: [string, unknown][] = options?.explode
|
|
@@ -320,7 +355,7 @@ export const encodeSimple = (
|
|
|
320
355
|
}
|
|
321
356
|
|
|
322
357
|
const encodeString = (v: string) => {
|
|
323
|
-
return options?.charEncoding
|
|
358
|
+
return encodeChars(v, options?.charEncoding);
|
|
324
359
|
};
|
|
325
360
|
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
326
361
|
|
|
@@ -426,7 +461,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
|
|
|
426
461
|
|
|
427
462
|
type QueryEncoderOptions = {
|
|
428
463
|
explode?: boolean;
|
|
429
|
-
charEncoding?:
|
|
464
|
+
charEncoding?: CharEncoding;
|
|
430
465
|
allowEmptyValue?: string[];
|
|
431
466
|
};
|
|
432
467
|
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -40,13 +40,16 @@ import { tool$authenticationRevokeAccessToken } from "./tools/authenticationRevo
|
|
|
40
40
|
import { tool$avatarsGet } from "./tools/avatarsGet.js";
|
|
41
41
|
import { tool$bankAccountsCompleteMicroDeposits } from "./tools/bankAccountsCompleteMicroDeposits.js";
|
|
42
42
|
import { tool$bankAccountsCompleteVerification } from "./tools/bankAccountsCompleteVerification.js";
|
|
43
|
+
import { tool$bankAccountsCreateAttestation } from "./tools/bankAccountsCreateAttestation.js";
|
|
43
44
|
import { tool$bankAccountsDisable } from "./tools/bankAccountsDisable.js";
|
|
44
45
|
import { tool$bankAccountsGet } from "./tools/bankAccountsGet.js";
|
|
46
|
+
import { tool$bankAccountsGetAttestationEligibility } from "./tools/bankAccountsGetAttestationEligibility.js";
|
|
45
47
|
import { tool$bankAccountsGetVerification } from "./tools/bankAccountsGetVerification.js";
|
|
46
48
|
import { tool$bankAccountsInitiateMicroDeposits } from "./tools/bankAccountsInitiateMicroDeposits.js";
|
|
47
49
|
import { tool$bankAccountsInitiateVerification } from "./tools/bankAccountsInitiateVerification.js";
|
|
48
50
|
import { tool$bankAccountsLink } from "./tools/bankAccountsLink.js";
|
|
49
51
|
import { tool$bankAccountsList } from "./tools/bankAccountsList.js";
|
|
52
|
+
import { tool$bankAccountsListAttestations } from "./tools/bankAccountsListAttestations.js";
|
|
50
53
|
import { tool$brandingCreate } from "./tools/brandingCreate.js";
|
|
51
54
|
import { tool$brandingGet } from "./tools/brandingGet.js";
|
|
52
55
|
import { tool$brandingUpsert } from "./tools/brandingUpsert.js";
|
|
@@ -221,7 +224,7 @@ export function createMCPServer(deps: {
|
|
|
221
224
|
}) {
|
|
222
225
|
const server = new McpServer({
|
|
223
226
|
name: "Moov",
|
|
224
|
-
version: "26.10.0-dev.
|
|
227
|
+
version: "26.10.0-dev.3",
|
|
225
228
|
});
|
|
226
229
|
|
|
227
230
|
const client = new MoovCore({
|
|
@@ -274,6 +277,9 @@ export function createMCPServer(deps: {
|
|
|
274
277
|
tool(tool$bankAccountsList);
|
|
275
278
|
tool(tool$bankAccountsGet);
|
|
276
279
|
tool(tool$bankAccountsDisable);
|
|
280
|
+
tool(tool$bankAccountsCreateAttestation);
|
|
281
|
+
tool(tool$bankAccountsListAttestations);
|
|
282
|
+
tool(tool$bankAccountsGetAttestationEligibility);
|
|
277
283
|
tool(tool$bankAccountsInitiateMicroDeposits);
|
|
278
284
|
tool(tool$bankAccountsCompleteMicroDeposits);
|
|
279
285
|
tool(tool$bankAccountsGetVerification);
|