mollie-api-typescript 1.3.0 → 1.3.2
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 +7 -4
- package/bin/mcp-server.js +266 -214
- package/bin/mcp-server.js.map +94 -92
- package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js +5 -5
- package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/balancesGet.js.map +1 -1
- package/dist/commonjs/funcs/balancesGetReport.js.map +1 -1
- package/dist/commonjs/funcs/balancesList.js +5 -5
- package/dist/commonjs/funcs/balancesList.js.map +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js +5 -5
- package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
- package/dist/commonjs/funcs/capturesCreate.js.map +1 -1
- package/dist/commonjs/funcs/capturesGet.js.map +1 -1
- package/dist/commonjs/funcs/capturesList.js +5 -5
- package/dist/commonjs/funcs/capturesList.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksAll.js +5 -5
- package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksGet.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksList.js +5 -5
- package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
- package/dist/commonjs/funcs/clientsGet.js.map +1 -1
- package/dist/commonjs/funcs/clientsList.js +5 -5
- package/dist/commonjs/funcs/clientsList.js.map +1 -1
- package/dist/commonjs/funcs/customersCreatePayment.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +5 -5
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersListPayments.js +5 -5
- package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/invoicesList.js +5 -5
- package/dist/commonjs/funcs/invoicesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesCreate.js.map +1 -1
- package/dist/commonjs/funcs/mandatesGet.js.map +1 -1
- package/dist/commonjs/funcs/mandatesList.js +5 -5
- package/dist/commonjs/funcs/mandatesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesRevoke.js.map +1 -1
- package/dist/commonjs/funcs/methodsGet.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksList.js +5 -5
- package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.js +5 -5
- package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/paymentsCancel.js.map +1 -1
- package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentsList.js +5 -5
- package/dist/commonjs/funcs/paymentsList.js.map +1 -1
- package/dist/commonjs/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/commonjs/funcs/paymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/permissionsGet.js.map +1 -1
- package/dist/commonjs/funcs/profilesDelete.js.map +1 -1
- package/dist/commonjs/funcs/profilesGet.js.map +1 -1
- package/dist/commonjs/funcs/profilesList.js +5 -5
- package/dist/commonjs/funcs/profilesList.js.map +1 -1
- package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/refundsAll.js +5 -5
- package/dist/commonjs/funcs/refundsAll.js.map +1 -1
- package/dist/commonjs/funcs/refundsCancel.js.map +1 -1
- package/dist/commonjs/funcs/refundsCreate.js.map +1 -1
- package/dist/commonjs/funcs/refundsGet.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +5 -5
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.js +5 -5
- package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/sessionsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsList.js +5 -5
- package/dist/commonjs/funcs/settlementsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js +5 -5
- package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js +5 -5
- package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js +5 -5
- package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +5 -5
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +5 -5
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +5 -5
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.js +5 -5
- package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/terminalsGet.js.map +1 -1
- package/dist/commonjs/funcs/terminalsList.js +5 -5
- package/dist/commonjs/funcs/terminalsList.js.map +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksList.js +5 -5
- package/dist/commonjs/funcs/webhooksList.js.map +1 -1
- package/dist/commonjs/funcs/webhooksTest.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -1
- package/dist/commonjs/hooks/global-usage.d.ts +2 -0
- package/dist/commonjs/hooks/global-usage.d.ts.map +1 -0
- package/dist/commonjs/hooks/global-usage.js +44 -0
- package/dist/commonjs/hooks/global-usage.js.map +1 -0
- package/dist/commonjs/hooks/mollie-auth-utils.d.ts +4 -0
- package/dist/commonjs/hooks/mollie-auth-utils.d.ts.map +1 -0
- package/dist/commonjs/hooks/mollie-auth-utils.js +19 -0
- package/dist/commonjs/hooks/mollie-auth-utils.js.map +1 -0
- package/dist/commonjs/hooks/mollie-hooks.d.ts +1 -2
- package/dist/commonjs/hooks/mollie-hooks.d.ts.map +1 -1
- package/dist/commonjs/hooks/mollie-hooks.js +27 -60
- package/dist/commonjs/hooks/mollie-hooks.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts +1 -0
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +1 -0
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +0 -2
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +10 -20
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +7 -0
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +8 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +10 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/security.d.ts +2 -0
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +2 -0
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersList.js +5 -5
- package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
- package/dist/esm/funcs/balancesGet.js.map +1 -1
- package/dist/esm/funcs/balancesGetReport.js.map +1 -1
- package/dist/esm/funcs/balancesList.js +5 -5
- package/dist/esm/funcs/balancesList.js.map +1 -1
- package/dist/esm/funcs/balancesListTransactions.js +5 -5
- package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
- package/dist/esm/funcs/capturesCreate.js.map +1 -1
- package/dist/esm/funcs/capturesGet.js.map +1 -1
- package/dist/esm/funcs/capturesList.js +5 -5
- package/dist/esm/funcs/capturesList.js.map +1 -1
- package/dist/esm/funcs/chargebacksAll.js +5 -5
- package/dist/esm/funcs/chargebacksAll.js.map +1 -1
- package/dist/esm/funcs/chargebacksGet.js.map +1 -1
- package/dist/esm/funcs/chargebacksList.js +5 -5
- package/dist/esm/funcs/chargebacksList.js.map +1 -1
- package/dist/esm/funcs/clientsGet.js.map +1 -1
- package/dist/esm/funcs/clientsList.js +5 -5
- package/dist/esm/funcs/clientsList.js.map +1 -1
- package/dist/esm/funcs/customersCreatePayment.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.js +5 -5
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersListPayments.js +5 -5
- package/dist/esm/funcs/customersListPayments.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/invoicesGet.js.map +1 -1
- package/dist/esm/funcs/invoicesList.js +5 -5
- package/dist/esm/funcs/invoicesList.js.map +1 -1
- package/dist/esm/funcs/mandatesCreate.js.map +1 -1
- package/dist/esm/funcs/mandatesGet.js.map +1 -1
- package/dist/esm/funcs/mandatesList.js +5 -5
- package/dist/esm/funcs/mandatesList.js.map +1 -1
- package/dist/esm/funcs/mandatesRevoke.js.map +1 -1
- package/dist/esm/funcs/methodsGet.js.map +1 -1
- package/dist/esm/funcs/organizationsGet.js.map +1 -1
- package/dist/esm/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/esm/funcs/paymentLinksGet.js.map +1 -1
- package/dist/esm/funcs/paymentLinksList.js +5 -5
- package/dist/esm/funcs/paymentLinksList.js.map +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.js +5 -5
- package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/esm/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/esm/funcs/paymentsCancel.js.map +1 -1
- package/dist/esm/funcs/paymentsGet.js.map +1 -1
- package/dist/esm/funcs/paymentsList.js +5 -5
- package/dist/esm/funcs/paymentsList.js.map +1 -1
- package/dist/esm/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/esm/funcs/paymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/permissionsGet.js.map +1 -1
- package/dist/esm/funcs/profilesDelete.js.map +1 -1
- package/dist/esm/funcs/profilesGet.js.map +1 -1
- package/dist/esm/funcs/profilesList.js +5 -5
- package/dist/esm/funcs/profilesList.js.map +1 -1
- package/dist/esm/funcs/profilesUpdate.js.map +1 -1
- package/dist/esm/funcs/refundsAll.js +5 -5
- package/dist/esm/funcs/refundsAll.js.map +1 -1
- package/dist/esm/funcs/refundsCancel.js.map +1 -1
- package/dist/esm/funcs/refundsCreate.js.map +1 -1
- package/dist/esm/funcs/refundsGet.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +5 -5
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesList.js +5 -5
- package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/esm/funcs/sessionsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsList.js +5 -5
- package/dist/esm/funcs/settlementsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js +5 -5
- package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js +5 -5
- package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/esm/funcs/settlementsListPayments.js +5 -5
- package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +5 -5
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +5 -5
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +5 -5
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.js +5 -5
- package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/terminalsGet.js.map +1 -1
- package/dist/esm/funcs/terminalsList.js +5 -5
- package/dist/esm/funcs/terminalsList.js.map +1 -1
- package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
- package/dist/esm/funcs/webhooksDelete.js.map +1 -1
- package/dist/esm/funcs/webhooksGet.js.map +1 -1
- package/dist/esm/funcs/webhooksList.js +5 -5
- package/dist/esm/funcs/webhooksList.js.map +1 -1
- package/dist/esm/funcs/webhooksTest.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdate.js.map +1 -1
- package/dist/esm/hooks/global-usage.d.ts +2 -0
- package/dist/esm/hooks/global-usage.d.ts.map +1 -0
- package/dist/esm/hooks/global-usage.js +41 -0
- package/dist/esm/hooks/global-usage.js.map +1 -0
- package/dist/esm/hooks/mollie-auth-utils.d.ts +4 -0
- package/dist/esm/hooks/mollie-auth-utils.d.ts.map +1 -0
- package/dist/esm/hooks/mollie-auth-utils.js +15 -0
- package/dist/esm/hooks/mollie-auth-utils.js.map +1 -0
- package/dist/esm/hooks/mollie-hooks.d.ts +1 -2
- package/dist/esm/hooks/mollie-hooks.d.ts.map +1 -1
- package/dist/esm/hooks/mollie-hooks.js +27 -60
- package/dist/esm/hooks/mollie-hooks.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/env.d.ts +1 -0
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +1 -0
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +0 -2
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +10 -20
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +7 -0
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +8 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +10 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/security.d.ts +2 -0
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +2 -0
- package/dist/esm/models/security.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/balanceTransfersGet.ts +0 -1
- package/src/funcs/balanceTransfersList.ts +5 -6
- package/src/funcs/balancesGet.ts +0 -1
- package/src/funcs/balancesGetReport.ts +0 -1
- package/src/funcs/balancesList.ts +5 -6
- package/src/funcs/balancesListTransactions.ts +5 -6
- package/src/funcs/capturesCreate.ts +0 -1
- package/src/funcs/capturesGet.ts +0 -1
- package/src/funcs/capturesList.ts +5 -6
- package/src/funcs/chargebacksAll.ts +5 -6
- package/src/funcs/chargebacksGet.ts +0 -1
- package/src/funcs/chargebacksList.ts +5 -6
- package/src/funcs/clientsGet.ts +0 -1
- package/src/funcs/clientsList.ts +5 -6
- package/src/funcs/customersCreatePayment.ts +0 -1
- package/src/funcs/customersDelete.ts +0 -1
- package/src/funcs/customersGet.ts +0 -1
- package/src/funcs/customersList.ts +5 -6
- package/src/funcs/customersListPayments.ts +5 -6
- package/src/funcs/customersUpdate.ts +0 -1
- package/src/funcs/delayedRoutingCreate.ts +0 -1
- package/src/funcs/delayedRoutingGet.ts +0 -1
- package/src/funcs/delayedRoutingList.ts +0 -1
- package/src/funcs/invoicesGet.ts +0 -1
- package/src/funcs/invoicesList.ts +5 -6
- package/src/funcs/mandatesCreate.ts +0 -1
- package/src/funcs/mandatesGet.ts +0 -1
- package/src/funcs/mandatesList.ts +5 -6
- package/src/funcs/mandatesRevoke.ts +0 -1
- package/src/funcs/methodsGet.ts +0 -1
- package/src/funcs/organizationsGet.ts +0 -1
- package/src/funcs/paymentLinksDelete.ts +0 -1
- package/src/funcs/paymentLinksGet.ts +0 -1
- package/src/funcs/paymentLinksList.ts +5 -6
- package/src/funcs/paymentLinksListPayments.ts +5 -6
- package/src/funcs/paymentLinksUpdate.ts +0 -1
- package/src/funcs/paymentsCancel.ts +0 -1
- package/src/funcs/paymentsGet.ts +0 -1
- package/src/funcs/paymentsList.ts +5 -6
- package/src/funcs/paymentsReleaseAuthorization.ts +0 -1
- package/src/funcs/paymentsUpdate.ts +0 -1
- package/src/funcs/permissionsGet.ts +0 -1
- package/src/funcs/profilesDelete.ts +0 -1
- package/src/funcs/profilesGet.ts +0 -1
- package/src/funcs/profilesList.ts +5 -6
- package/src/funcs/profilesUpdate.ts +0 -1
- package/src/funcs/refundsAll.ts +5 -6
- package/src/funcs/refundsCancel.ts +0 -1
- package/src/funcs/refundsCreate.ts +0 -1
- package/src/funcs/refundsGet.ts +0 -1
- package/src/funcs/refundsList.ts +5 -6
- package/src/funcs/salesInvoicesDelete.ts +0 -1
- package/src/funcs/salesInvoicesGet.ts +0 -1
- package/src/funcs/salesInvoicesList.ts +5 -6
- package/src/funcs/salesInvoicesUpdate.ts +0 -1
- package/src/funcs/sessionsGet.ts +0 -1
- package/src/funcs/settlementsGet.ts +0 -1
- package/src/funcs/settlementsList.ts +5 -6
- package/src/funcs/settlementsListCaptures.ts +5 -6
- package/src/funcs/settlementsListChargebacks.ts +5 -6
- package/src/funcs/settlementsListPayments.ts +5 -6
- package/src/funcs/settlementsListRefunds.ts +5 -6
- package/src/funcs/subscriptionsAll.ts +5 -6
- package/src/funcs/subscriptionsCancel.ts +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -1
- package/src/funcs/subscriptionsGet.ts +0 -1
- package/src/funcs/subscriptionsList.ts +5 -6
- package/src/funcs/subscriptionsListPayments.ts +5 -6
- package/src/funcs/subscriptionsUpdate.ts +0 -1
- package/src/funcs/terminalsGet.ts +0 -1
- package/src/funcs/terminalsList.ts +5 -6
- package/src/funcs/webhookEventsGet.ts +0 -1
- package/src/funcs/webhooksDelete.ts +0 -1
- package/src/funcs/webhooksGet.ts +0 -1
- package/src/funcs/webhooksList.ts +5 -6
- package/src/funcs/webhooksTest.ts +0 -1
- package/src/funcs/webhooksUpdate.ts +0 -1
- package/src/hooks/global-usage.ts +40 -0
- package/src/hooks/mollie-auth-utils.ts +17 -0
- package/src/hooks/mollie-hooks.ts +33 -76
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/env.ts +2 -0
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +9 -26
- package/src/lib/security.ts +8 -0
- package/src/lib/url.ts +16 -14
- package/src/mcp-server/cli/start/command.ts +8 -0
- package/src/mcp-server/cli/start/impl.ts +11 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/security.ts +4 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52838,7 +52838,7 @@ function pathToFunc(pathPattern, options) {
|
|
|
52838
52838
|
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
52839
52839
|
}
|
|
52840
52840
|
return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
|
|
52841
|
-
});
|
|
52841
|
+
}).replace(/^\/+/, "");
|
|
52842
52842
|
};
|
|
52843
52843
|
}
|
|
52844
52844
|
var hasOwn;
|
|
@@ -52869,12 +52869,72 @@ var init_config = __esm(() => {
|
|
|
52869
52869
|
SDK_METADATA = {
|
|
52870
52870
|
language: "typescript",
|
|
52871
52871
|
openapiDocVersion: "1.0.0",
|
|
52872
|
-
sdkVersion: "1.3.
|
|
52873
|
-
genVersion: "2.
|
|
52874
|
-
userAgent: "speakeasy-sdk/typescript 1.3.
|
|
52872
|
+
sdkVersion: "1.3.2",
|
|
52873
|
+
genVersion: "2.869.25",
|
|
52874
|
+
userAgent: "speakeasy-sdk/typescript 1.3.2 2.869.25 1.0.0 mollie-api-typescript"
|
|
52875
|
+
};
|
|
52876
|
+
});
|
|
52877
|
+
|
|
52878
|
+
// src/hooks/global-usage.ts
|
|
52879
|
+
var globalUsage;
|
|
52880
|
+
var init_global_usage = __esm(() => {
|
|
52881
|
+
globalUsage = {
|
|
52882
|
+
testmode: [
|
|
52883
|
+
"create-payment",
|
|
52884
|
+
"update-payment",
|
|
52885
|
+
"cancel-payment",
|
|
52886
|
+
"release-authorization",
|
|
52887
|
+
"create-refund",
|
|
52888
|
+
"create-payment-link",
|
|
52889
|
+
"update-payment-link",
|
|
52890
|
+
"delete-payment-link",
|
|
52891
|
+
"create-session",
|
|
52892
|
+
"create-webhook",
|
|
52893
|
+
"update-webhook",
|
|
52894
|
+
"delete-webhook",
|
|
52895
|
+
"test-webhook",
|
|
52896
|
+
"create-customer",
|
|
52897
|
+
"update-customer",
|
|
52898
|
+
"delete-customer",
|
|
52899
|
+
"create-customer-payment",
|
|
52900
|
+
"create-mandate",
|
|
52901
|
+
"revoke-mandate",
|
|
52902
|
+
"create-subscription",
|
|
52903
|
+
"update-subscription",
|
|
52904
|
+
"cancel-subscription",
|
|
52905
|
+
"create-connect-balance-transfer",
|
|
52906
|
+
"create-sales-invoice",
|
|
52907
|
+
"update-sales-invoice",
|
|
52908
|
+
"delete-sales-invoice"
|
|
52909
|
+
],
|
|
52910
|
+
profileId: [
|
|
52911
|
+
"create-payment",
|
|
52912
|
+
"release-authorization",
|
|
52913
|
+
"request-apple-pay-payment-session",
|
|
52914
|
+
"create-payment-link",
|
|
52915
|
+
"create-session",
|
|
52916
|
+
"create-customer-payment",
|
|
52917
|
+
"create-subscription",
|
|
52918
|
+
"create-sales-invoice"
|
|
52919
|
+
]
|
|
52875
52920
|
};
|
|
52876
52921
|
});
|
|
52877
52922
|
|
|
52923
|
+
// src/hooks/mollie-auth-utils.ts
|
|
52924
|
+
function clientCanHaveGlobalFields(options) {
|
|
52925
|
+
const security = options.security;
|
|
52926
|
+
if (!security)
|
|
52927
|
+
return false;
|
|
52928
|
+
const securityObj = typeof security === "function" ? security() : security;
|
|
52929
|
+
if (securityObj instanceof Promise)
|
|
52930
|
+
return false;
|
|
52931
|
+
const token = securityObj.apiKey || securityObj.oAuth;
|
|
52932
|
+
return !!token && token.startsWith("access_");
|
|
52933
|
+
}
|
|
52934
|
+
function clientHasGlobalFields(options) {
|
|
52935
|
+
return !!options.testmode || !!options.profileId;
|
|
52936
|
+
}
|
|
52937
|
+
|
|
52878
52938
|
// src/hooks/mollie-hooks.ts
|
|
52879
52939
|
class MollieHooks {
|
|
52880
52940
|
beforeCreateRequest(hookContext, input) {
|
|
@@ -52889,8 +52949,8 @@ class MollieHooks {
|
|
|
52889
52949
|
headers
|
|
52890
52950
|
}
|
|
52891
52951
|
};
|
|
52892
|
-
if (
|
|
52893
|
-
input = this.
|
|
52952
|
+
if (clientCanHaveGlobalFields(hookContext.options)) {
|
|
52953
|
+
input = this.injectGlobalFields(input, hookContext);
|
|
52894
52954
|
}
|
|
52895
52955
|
return input;
|
|
52896
52956
|
}
|
|
@@ -52907,20 +52967,6 @@ class MollieHooks {
|
|
|
52907
52967
|
}
|
|
52908
52968
|
}
|
|
52909
52969
|
}
|
|
52910
|
-
isOAuthRequest(headers, hookContext) {
|
|
52911
|
-
const security = hookContext.options.security;
|
|
52912
|
-
if (typeof security === "function") {
|
|
52913
|
-
return false;
|
|
52914
|
-
}
|
|
52915
|
-
if (security === null) {
|
|
52916
|
-
return false;
|
|
52917
|
-
}
|
|
52918
|
-
const oAuth = security?.oAuth;
|
|
52919
|
-
if (!oAuth) {
|
|
52920
|
-
return false;
|
|
52921
|
-
}
|
|
52922
|
-
return headers.get("Authorization") === `Bearer ${oAuth}`;
|
|
52923
|
-
}
|
|
52924
52970
|
handleIdempotencyKey(headers) {
|
|
52925
52971
|
const idempotencyKey = "Idempotency-Key";
|
|
52926
52972
|
if (!headers.has(idempotencyKey) || !headers.get(idempotencyKey)) {
|
|
@@ -52943,22 +52989,21 @@ class MollieHooks {
|
|
|
52943
52989
|
headers.set(userAgentKey, mollieUserAgent);
|
|
52944
52990
|
return headers;
|
|
52945
52991
|
}
|
|
52946
|
-
|
|
52947
|
-
const
|
|
52948
|
-
const
|
|
52949
|
-
const
|
|
52950
|
-
|
|
52951
|
-
|
|
52952
|
-
|
|
52953
|
-
|
|
52954
|
-
|
|
52955
|
-
if (
|
|
52956
|
-
|
|
52992
|
+
injectGlobalFields(input, hookContext) {
|
|
52993
|
+
const operationID = hookContext.operationID;
|
|
52994
|
+
const options = hookContext.options;
|
|
52995
|
+
const fieldMap = {
|
|
52996
|
+
profileId: options.profileId,
|
|
52997
|
+
testmode: options.testmode
|
|
52998
|
+
};
|
|
52999
|
+
const fieldsToInject = {};
|
|
53000
|
+
for (const [field, operations] of Object.entries(globalUsage)) {
|
|
53001
|
+
if (operations.includes(operationID) && fieldMap[field] !== undefined) {
|
|
53002
|
+
fieldsToInject[field] = fieldMap[field];
|
|
52957
53003
|
}
|
|
52958
|
-
|
|
52959
|
-
|
|
52960
|
-
|
|
52961
|
-
};
|
|
53004
|
+
}
|
|
53005
|
+
if (Object.keys(fieldsToInject).length === 0) {
|
|
53006
|
+
return input;
|
|
52962
53007
|
}
|
|
52963
53008
|
let body = {};
|
|
52964
53009
|
if (input.options?.body) {
|
|
@@ -52966,32 +53011,25 @@ class MollieHooks {
|
|
|
52966
53011
|
if (typeof input.options.body === "string") {
|
|
52967
53012
|
body = JSON.parse(input.options.body);
|
|
52968
53013
|
} else if (input.options.body instanceof ArrayBuffer || input.options.body instanceof Uint8Array) {
|
|
52969
|
-
|
|
52970
|
-
const text = decoder.decode(input.options.body);
|
|
52971
|
-
body = JSON.parse(text);
|
|
53014
|
+
body = JSON.parse(new TextDecoder().decode(input.options.body));
|
|
52972
53015
|
} else {
|
|
52973
53016
|
body = input.options.body;
|
|
52974
53017
|
}
|
|
52975
|
-
} catch
|
|
53018
|
+
} catch {
|
|
52976
53019
|
return input;
|
|
52977
53020
|
}
|
|
52978
53021
|
}
|
|
52979
|
-
|
|
52980
|
-
body
|
|
52981
|
-
|
|
52982
|
-
|
|
52983
|
-
body.testmode = clientTestmode;
|
|
53022
|
+
for (const [field, value] of Object.entries(fieldsToInject)) {
|
|
53023
|
+
if (!(field in body)) {
|
|
53024
|
+
body[field] = value;
|
|
53025
|
+
}
|
|
52984
53026
|
}
|
|
52985
53027
|
const newContent = JSON.stringify(body);
|
|
52986
53028
|
const headers = new Headers(input.options?.headers);
|
|
52987
53029
|
headers.set("Content-Length", String(new TextEncoder().encode(newContent).length));
|
|
52988
53030
|
return {
|
|
52989
53031
|
...input,
|
|
52990
|
-
options: {
|
|
52991
|
-
...input.options,
|
|
52992
|
-
headers,
|
|
52993
|
-
body: newContent
|
|
52994
|
-
}
|
|
53032
|
+
options: { ...input.options, headers, body: newContent }
|
|
52995
53033
|
};
|
|
52996
53034
|
}
|
|
52997
53035
|
generateIdempotencyKey() {
|
|
@@ -53000,6 +53038,7 @@ class MollieHooks {
|
|
|
53000
53038
|
}
|
|
53001
53039
|
var init_mollie_hooks = __esm(() => {
|
|
53002
53040
|
init_config();
|
|
53041
|
+
init_global_usage();
|
|
53003
53042
|
});
|
|
53004
53043
|
|
|
53005
53044
|
// src/hooks/registration.ts
|
|
@@ -53429,6 +53468,7 @@ var init_env = __esm(() => {
|
|
|
53429
53468
|
init_esm();
|
|
53430
53469
|
envSchema = objectType({
|
|
53431
53470
|
CLIENT_API_KEY: stringType().optional(),
|
|
53471
|
+
CLIENT_ORGANIZATION_ACCESS_TOKEN: stringType().optional(),
|
|
53432
53472
|
CLIENT_O_AUTH: stringType().optional(),
|
|
53433
53473
|
CLIENT_PROFILE_ID: stringType().optional(),
|
|
53434
53474
|
CLIENT_TESTMODE: enumType(["true", "false"]).transform((v2) => v2 === "true").optional(),
|
|
@@ -53768,39 +53808,27 @@ class ClientSDK {
|
|
|
53768
53808
|
if (!this.#logger && env().CLIENT_DEBUG) {
|
|
53769
53809
|
this.#logger = console;
|
|
53770
53810
|
}
|
|
53771
|
-
if (!
|
|
53811
|
+
if (!clientCanHaveGlobalFields(options) && clientHasGlobalFields(options)) {
|
|
53772
53812
|
throw new ClientCreationError("Invalid client configuration", {
|
|
53773
53813
|
cause: "Global fields like testmode and profileId can only be set when using an Access or oAuth Key."
|
|
53774
53814
|
});
|
|
53775
53815
|
}
|
|
53776
53816
|
}
|
|
53777
|
-
_canHaveGlobalFields(options) {
|
|
53778
|
-
const security = options.security;
|
|
53779
|
-
if (!security) {
|
|
53780
|
-
return false;
|
|
53781
|
-
}
|
|
53782
|
-
const securityObj = typeof security === "function" ? security() : security;
|
|
53783
|
-
if (securityObj instanceof Promise) {
|
|
53784
|
-
return false;
|
|
53785
|
-
}
|
|
53786
|
-
const token = securityObj.apiKey || securityObj.oAuth;
|
|
53787
|
-
return !!token && token.startsWith("access_");
|
|
53788
|
-
}
|
|
53789
|
-
_hasGlobalFields(options) {
|
|
53790
|
-
return !!options.testmode || !!options.profileId;
|
|
53791
|
-
}
|
|
53792
53817
|
_createRequest(context, conf, options) {
|
|
53793
53818
|
const { method, path, query, headers: opHeaders, security } = conf;
|
|
53794
53819
|
const base = conf.baseURL ?? this._baseURL;
|
|
53795
53820
|
if (!base) {
|
|
53796
53821
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
53797
53822
|
}
|
|
53798
|
-
const
|
|
53799
|
-
|
|
53823
|
+
const baseURL = new URL(base);
|
|
53824
|
+
let reqURL;
|
|
53800
53825
|
if (path) {
|
|
53801
|
-
|
|
53802
|
-
reqURL
|
|
53826
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53827
|
+
reqURL = new URL(path, baseURL);
|
|
53828
|
+
} else {
|
|
53829
|
+
reqURL = baseURL;
|
|
53803
53830
|
}
|
|
53831
|
+
reqURL.hash = "";
|
|
53804
53832
|
let finalQuery = query || "";
|
|
53805
53833
|
const secQuery = [];
|
|
53806
53834
|
for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
|
|
@@ -54649,6 +54677,12 @@ function resolveGlobalSecurity(security) {
|
|
|
54649
54677
|
type: "http:bearer",
|
|
54650
54678
|
value: security?.apiKey ?? env().CLIENT_API_KEY
|
|
54651
54679
|
}
|
|
54680
|
+
], [
|
|
54681
|
+
{
|
|
54682
|
+
fieldName: "Authorization",
|
|
54683
|
+
type: "http:bearer",
|
|
54684
|
+
value: security?.organizationAccessToken ?? env().CLIENT_ORGANIZATION_ACCESS_TOKEN
|
|
54685
|
+
}
|
|
54652
54686
|
], [
|
|
54653
54687
|
{
|
|
54654
54688
|
fieldName: "Authorization",
|
|
@@ -62512,10 +62546,12 @@ var init_security2 = __esm(() => {
|
|
|
62512
62546
|
init_esm();
|
|
62513
62547
|
Security$inboundSchema = objectType({
|
|
62514
62548
|
apiKey: stringType().optional(),
|
|
62549
|
+
organizationAccessToken: stringType().optional(),
|
|
62515
62550
|
oAuth: stringType().optional()
|
|
62516
62551
|
});
|
|
62517
62552
|
Security$outboundSchema = objectType({
|
|
62518
62553
|
apiKey: stringType().optional(),
|
|
62554
|
+
organizationAccessToken: stringType().optional(),
|
|
62519
62555
|
oAuth: stringType().optional()
|
|
62520
62556
|
});
|
|
62521
62557
|
});
|
|
@@ -68640,7 +68676,7 @@ async function $do4(client, request, options) {
|
|
|
68640
68676
|
}
|
|
68641
68677
|
const payload = parsed.value;
|
|
68642
68678
|
const body = null;
|
|
68643
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
68679
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/balances")();
|
|
68644
68680
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
68645
68681
|
currency: payload?.currency,
|
|
68646
68682
|
from: payload?.from,
|
|
@@ -68675,7 +68711,7 @@ async function $do4(client, request, options) {
|
|
|
68675
68711
|
const requestRes = client._createRequest(context, {
|
|
68676
68712
|
security: requestSecurity,
|
|
68677
68713
|
method: "GET",
|
|
68678
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
68714
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
68679
68715
|
path,
|
|
68680
68716
|
headers,
|
|
68681
68717
|
query,
|
|
@@ -68718,10 +68754,10 @@ async function $do4(client, request, options) {
|
|
|
68718
68754
|
if (typeof nextURL !== "string") {
|
|
68719
68755
|
return { next: () => null };
|
|
68720
68756
|
}
|
|
68721
|
-
if (nextURL.startsWith("/")) {
|
|
68722
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
68723
|
-
}
|
|
68724
68757
|
try {
|
|
68758
|
+
if (nextURL.startsWith("/")) {
|
|
68759
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
68760
|
+
}
|
|
68725
68761
|
new URL(nextURL);
|
|
68726
68762
|
} catch (_error) {
|
|
68727
68763
|
return { next: () => null };
|
|
@@ -68799,7 +68835,7 @@ async function $do5(client, request, options) {
|
|
|
68799
68835
|
charEncoding: "percent"
|
|
68800
68836
|
})
|
|
68801
68837
|
};
|
|
68802
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
68838
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/balances/{balanceId}/transactions")(pathParams);
|
|
68803
68839
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
68804
68840
|
from: payload.from,
|
|
68805
68841
|
limit: payload.limit,
|
|
@@ -68833,7 +68869,7 @@ async function $do5(client, request, options) {
|
|
|
68833
68869
|
const requestRes = client._createRequest(context, {
|
|
68834
68870
|
security: requestSecurity,
|
|
68835
68871
|
method: "GET",
|
|
68836
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
68872
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
68837
68873
|
path,
|
|
68838
68874
|
headers,
|
|
68839
68875
|
query,
|
|
@@ -68876,10 +68912,10 @@ async function $do5(client, request, options) {
|
|
|
68876
68912
|
if (typeof nextURL !== "string") {
|
|
68877
68913
|
return { next: () => null };
|
|
68878
68914
|
}
|
|
68879
|
-
if (nextURL.startsWith("/")) {
|
|
68880
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
68881
|
-
}
|
|
68882
68915
|
try {
|
|
68916
|
+
if (nextURL.startsWith("/")) {
|
|
68917
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
68918
|
+
}
|
|
68883
68919
|
new URL(nextURL);
|
|
68884
68920
|
} catch (_error) {
|
|
68885
68921
|
return { next: () => null };
|
|
@@ -69203,7 +69239,7 @@ async function $do8(client, request, options) {
|
|
|
69203
69239
|
}
|
|
69204
69240
|
const payload = parsed.value;
|
|
69205
69241
|
const body = null;
|
|
69206
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69242
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/connect/balance-transfers")();
|
|
69207
69243
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69208
69244
|
from: payload?.from,
|
|
69209
69245
|
limit: payload?.limit,
|
|
@@ -69238,7 +69274,7 @@ async function $do8(client, request, options) {
|
|
|
69238
69274
|
const requestRes = client._createRequest(context, {
|
|
69239
69275
|
security: requestSecurity,
|
|
69240
69276
|
method: "GET",
|
|
69241
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69277
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69242
69278
|
path,
|
|
69243
69279
|
headers,
|
|
69244
69280
|
query,
|
|
@@ -69281,10 +69317,10 @@ async function $do8(client, request, options) {
|
|
|
69281
69317
|
if (typeof nextURL !== "string") {
|
|
69282
69318
|
return { next: () => null };
|
|
69283
69319
|
}
|
|
69284
|
-
if (nextURL.startsWith("/")) {
|
|
69285
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69286
|
-
}
|
|
69287
69320
|
try {
|
|
69321
|
+
if (nextURL.startsWith("/")) {
|
|
69322
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
69323
|
+
}
|
|
69288
69324
|
new URL(nextURL);
|
|
69289
69325
|
} catch (_error) {
|
|
69290
69326
|
return { next: () => null };
|
|
@@ -69746,7 +69782,7 @@ async function $do12(client, request, options) {
|
|
|
69746
69782
|
charEncoding: "percent"
|
|
69747
69783
|
})
|
|
69748
69784
|
};
|
|
69749
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69785
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/captures")(pathParams);
|
|
69750
69786
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69751
69787
|
embed: payload.embed,
|
|
69752
69788
|
from: payload.from,
|
|
@@ -69781,7 +69817,7 @@ async function $do12(client, request, options) {
|
|
|
69781
69817
|
const requestRes = client._createRequest(context, {
|
|
69782
69818
|
security: requestSecurity,
|
|
69783
69819
|
method: "GET",
|
|
69784
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69820
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69785
69821
|
path,
|
|
69786
69822
|
headers,
|
|
69787
69823
|
query,
|
|
@@ -69824,10 +69860,10 @@ async function $do12(client, request, options) {
|
|
|
69824
69860
|
if (typeof nextURL !== "string") {
|
|
69825
69861
|
return { next: () => null };
|
|
69826
69862
|
}
|
|
69827
|
-
if (nextURL.startsWith("/")) {
|
|
69828
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69829
|
-
}
|
|
69830
69863
|
try {
|
|
69864
|
+
if (nextURL.startsWith("/")) {
|
|
69865
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
69866
|
+
}
|
|
69831
69867
|
new URL(nextURL);
|
|
69832
69868
|
} catch (_error) {
|
|
69833
69869
|
return { next: () => null };
|
|
@@ -69899,7 +69935,7 @@ async function $do13(client, request, options) {
|
|
|
69899
69935
|
}
|
|
69900
69936
|
const payload = parsed.value;
|
|
69901
69937
|
const body = null;
|
|
69902
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69938
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/chargebacks")();
|
|
69903
69939
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69904
69940
|
embed: payload?.embed,
|
|
69905
69941
|
from: payload?.from,
|
|
@@ -69936,7 +69972,7 @@ async function $do13(client, request, options) {
|
|
|
69936
69972
|
const requestRes = client._createRequest(context, {
|
|
69937
69973
|
security: requestSecurity,
|
|
69938
69974
|
method: "GET",
|
|
69939
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69975
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69940
69976
|
path,
|
|
69941
69977
|
headers,
|
|
69942
69978
|
query,
|
|
@@ -69979,10 +70015,10 @@ async function $do13(client, request, options) {
|
|
|
69979
70015
|
if (typeof nextURL !== "string") {
|
|
69980
70016
|
return { next: () => null };
|
|
69981
70017
|
}
|
|
69982
|
-
if (nextURL.startsWith("/")) {
|
|
69983
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69984
|
-
}
|
|
69985
70018
|
try {
|
|
70019
|
+
if (nextURL.startsWith("/")) {
|
|
70020
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70021
|
+
}
|
|
69986
70022
|
new URL(nextURL);
|
|
69987
70023
|
} catch (_error) {
|
|
69988
70024
|
return { next: () => null };
|
|
@@ -70191,7 +70227,7 @@ async function $do15(client, request, options) {
|
|
|
70191
70227
|
charEncoding: "percent"
|
|
70192
70228
|
})
|
|
70193
70229
|
};
|
|
70194
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
70230
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
|
|
70195
70231
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
70196
70232
|
embed: payload.embed,
|
|
70197
70233
|
from: payload.from,
|
|
@@ -70226,7 +70262,7 @@ async function $do15(client, request, options) {
|
|
|
70226
70262
|
const requestRes = client._createRequest(context, {
|
|
70227
70263
|
security: requestSecurity,
|
|
70228
70264
|
method: "GET",
|
|
70229
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
70265
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
70230
70266
|
path,
|
|
70231
70267
|
headers,
|
|
70232
70268
|
query,
|
|
@@ -70269,10 +70305,10 @@ async function $do15(client, request, options) {
|
|
|
70269
70305
|
if (typeof nextURL !== "string") {
|
|
70270
70306
|
return { next: () => null };
|
|
70271
70307
|
}
|
|
70272
|
-
if (nextURL.startsWith("/")) {
|
|
70273
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
70274
|
-
}
|
|
70275
70308
|
try {
|
|
70309
|
+
if (nextURL.startsWith("/")) {
|
|
70310
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70311
|
+
}
|
|
70276
70312
|
new URL(nextURL);
|
|
70277
70313
|
} catch (_error) {
|
|
70278
70314
|
return { next: () => null };
|
|
@@ -70640,7 +70676,7 @@ async function $do18(client, request, options) {
|
|
|
70640
70676
|
}
|
|
70641
70677
|
const payload = parsed.value;
|
|
70642
70678
|
const body = null;
|
|
70643
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
70679
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/clients")();
|
|
70644
70680
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
70645
70681
|
embed: payload?.embed,
|
|
70646
70682
|
from: payload?.from,
|
|
@@ -70674,7 +70710,7 @@ async function $do18(client, request, options) {
|
|
|
70674
70710
|
const requestRes = client._createRequest(context, {
|
|
70675
70711
|
security: requestSecurity,
|
|
70676
70712
|
method: "GET",
|
|
70677
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
70713
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
70678
70714
|
path,
|
|
70679
70715
|
headers,
|
|
70680
70716
|
query,
|
|
@@ -70717,10 +70753,10 @@ async function $do18(client, request, options) {
|
|
|
70717
70753
|
if (typeof nextURL !== "string") {
|
|
70718
70754
|
return { next: () => null };
|
|
70719
70755
|
}
|
|
70720
|
-
if (nextURL.startsWith("/")) {
|
|
70721
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
70722
|
-
}
|
|
70723
70756
|
try {
|
|
70757
|
+
if (nextURL.startsWith("/")) {
|
|
70758
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70759
|
+
}
|
|
70724
70760
|
new URL(nextURL);
|
|
70725
70761
|
} catch (_error) {
|
|
70726
70762
|
return { next: () => null };
|
|
@@ -71297,7 +71333,7 @@ async function $do23(client, request, options) {
|
|
|
71297
71333
|
}
|
|
71298
71334
|
const payload = parsed.value;
|
|
71299
71335
|
const body = null;
|
|
71300
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
71336
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers")();
|
|
71301
71337
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
71302
71338
|
from: payload?.from,
|
|
71303
71339
|
limit: payload?.limit,
|
|
@@ -71332,7 +71368,7 @@ async function $do23(client, request, options) {
|
|
|
71332
71368
|
const requestRes = client._createRequest(context, {
|
|
71333
71369
|
security: requestSecurity,
|
|
71334
71370
|
method: "GET",
|
|
71335
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
71371
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
71336
71372
|
path,
|
|
71337
71373
|
headers,
|
|
71338
71374
|
query,
|
|
@@ -71375,10 +71411,10 @@ async function $do23(client, request, options) {
|
|
|
71375
71411
|
if (typeof nextURL !== "string") {
|
|
71376
71412
|
return { next: () => null };
|
|
71377
71413
|
}
|
|
71378
|
-
if (nextURL.startsWith("/")) {
|
|
71379
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
71380
|
-
}
|
|
71381
71414
|
try {
|
|
71415
|
+
if (nextURL.startsWith("/")) {
|
|
71416
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
71417
|
+
}
|
|
71382
71418
|
new URL(nextURL);
|
|
71383
71419
|
} catch (_error) {
|
|
71384
71420
|
return { next: () => null };
|
|
@@ -71456,7 +71492,7 @@ async function $do24(client, request, options) {
|
|
|
71456
71492
|
charEncoding: "percent"
|
|
71457
71493
|
})
|
|
71458
71494
|
};
|
|
71459
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
71495
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/payments")(pathParams);
|
|
71460
71496
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
71461
71497
|
from: payload.from,
|
|
71462
71498
|
limit: payload.limit,
|
|
@@ -71492,7 +71528,7 @@ async function $do24(client, request, options) {
|
|
|
71492
71528
|
const requestRes = client._createRequest(context, {
|
|
71493
71529
|
security: requestSecurity,
|
|
71494
71530
|
method: "GET",
|
|
71495
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
71531
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
71496
71532
|
path,
|
|
71497
71533
|
headers,
|
|
71498
71534
|
query,
|
|
@@ -71535,10 +71571,10 @@ async function $do24(client, request, options) {
|
|
|
71535
71571
|
if (typeof nextURL !== "string") {
|
|
71536
71572
|
return { next: () => null };
|
|
71537
71573
|
}
|
|
71538
|
-
if (nextURL.startsWith("/")) {
|
|
71539
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
71540
|
-
}
|
|
71541
71574
|
try {
|
|
71575
|
+
if (nextURL.startsWith("/")) {
|
|
71576
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
71577
|
+
}
|
|
71542
71578
|
new URL(nextURL);
|
|
71543
71579
|
} catch (_error) {
|
|
71544
71580
|
return { next: () => null };
|
|
@@ -72235,7 +72271,7 @@ async function $do30(client, request, options) {
|
|
|
72235
72271
|
}
|
|
72236
72272
|
const payload = parsed.value;
|
|
72237
72273
|
const body = null;
|
|
72238
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
72274
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/invoices")();
|
|
72239
72275
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
72240
72276
|
from: payload?.from,
|
|
72241
72277
|
limit: payload?.limit,
|
|
@@ -72271,7 +72307,7 @@ async function $do30(client, request, options) {
|
|
|
72271
72307
|
const requestRes = client._createRequest(context, {
|
|
72272
72308
|
security: requestSecurity,
|
|
72273
72309
|
method: "GET",
|
|
72274
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
72310
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
72275
72311
|
path,
|
|
72276
72312
|
headers,
|
|
72277
72313
|
query,
|
|
@@ -72314,10 +72350,10 @@ async function $do30(client, request, options) {
|
|
|
72314
72350
|
if (typeof nextURL !== "string") {
|
|
72315
72351
|
return { next: () => null };
|
|
72316
72352
|
}
|
|
72317
|
-
if (nextURL.startsWith("/")) {
|
|
72318
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
72319
|
-
}
|
|
72320
72353
|
try {
|
|
72354
|
+
if (nextURL.startsWith("/")) {
|
|
72355
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
72356
|
+
}
|
|
72321
72357
|
new URL(nextURL);
|
|
72322
72358
|
} catch (_error) {
|
|
72323
72359
|
return { next: () => null };
|
|
@@ -72656,7 +72692,7 @@ async function $do33(client, request, options) {
|
|
|
72656
72692
|
charEncoding: "percent"
|
|
72657
72693
|
})
|
|
72658
72694
|
};
|
|
72659
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
72695
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/mandates")(pathParams);
|
|
72660
72696
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
72661
72697
|
from: payload.from,
|
|
72662
72698
|
limit: payload.limit,
|
|
@@ -72691,7 +72727,7 @@ async function $do33(client, request, options) {
|
|
|
72691
72727
|
const requestRes = client._createRequest(context, {
|
|
72692
72728
|
security: requestSecurity,
|
|
72693
72729
|
method: "GET",
|
|
72694
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
72730
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
72695
72731
|
path,
|
|
72696
72732
|
headers,
|
|
72697
72733
|
query,
|
|
@@ -72734,10 +72770,10 @@ async function $do33(client, request, options) {
|
|
|
72734
72770
|
if (typeof nextURL !== "string") {
|
|
72735
72771
|
return { next: () => null };
|
|
72736
72772
|
}
|
|
72737
|
-
if (nextURL.startsWith("/")) {
|
|
72738
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
72739
|
-
}
|
|
72740
72773
|
try {
|
|
72774
|
+
if (nextURL.startsWith("/")) {
|
|
72775
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
72776
|
+
}
|
|
72741
72777
|
new URL(nextURL);
|
|
72742
72778
|
} catch (_error) {
|
|
72743
72779
|
return { next: () => null };
|
|
@@ -74303,7 +74339,7 @@ async function $do46(client, request, options) {
|
|
|
74303
74339
|
}
|
|
74304
74340
|
const payload = parsed.value;
|
|
74305
74341
|
const body = null;
|
|
74306
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
74342
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payment-links")();
|
|
74307
74343
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
74308
74344
|
from: payload?.from,
|
|
74309
74345
|
limit: payload?.limit,
|
|
@@ -74337,7 +74373,7 @@ async function $do46(client, request, options) {
|
|
|
74337
74373
|
const requestRes = client._createRequest(context, {
|
|
74338
74374
|
security: requestSecurity,
|
|
74339
74375
|
method: "GET",
|
|
74340
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
74376
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
74341
74377
|
path,
|
|
74342
74378
|
headers,
|
|
74343
74379
|
query,
|
|
@@ -74380,10 +74416,10 @@ async function $do46(client, request, options) {
|
|
|
74380
74416
|
if (typeof nextURL !== "string") {
|
|
74381
74417
|
return { next: () => null };
|
|
74382
74418
|
}
|
|
74383
|
-
if (nextURL.startsWith("/")) {
|
|
74384
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
74385
|
-
}
|
|
74386
74419
|
try {
|
|
74420
|
+
if (nextURL.startsWith("/")) {
|
|
74421
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
74422
|
+
}
|
|
74387
74423
|
new URL(nextURL);
|
|
74388
74424
|
} catch (_error) {
|
|
74389
74425
|
return { next: () => null };
|
|
@@ -74461,7 +74497,7 @@ async function $do47(client, request, options) {
|
|
|
74461
74497
|
charEncoding: "percent"
|
|
74462
74498
|
})
|
|
74463
74499
|
};
|
|
74464
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
74500
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
|
|
74465
74501
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
74466
74502
|
from: payload.from,
|
|
74467
74503
|
limit: payload.limit,
|
|
@@ -74496,7 +74532,7 @@ async function $do47(client, request, options) {
|
|
|
74496
74532
|
const requestRes = client._createRequest(context, {
|
|
74497
74533
|
security: requestSecurity,
|
|
74498
74534
|
method: "GET",
|
|
74499
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
74535
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
74500
74536
|
path,
|
|
74501
74537
|
headers,
|
|
74502
74538
|
query,
|
|
@@ -74539,10 +74575,10 @@ async function $do47(client, request, options) {
|
|
|
74539
74575
|
if (typeof nextURL !== "string") {
|
|
74540
74576
|
return { next: () => null };
|
|
74541
74577
|
}
|
|
74542
|
-
if (nextURL.startsWith("/")) {
|
|
74543
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
74544
|
-
}
|
|
74545
74578
|
try {
|
|
74579
|
+
if (nextURL.startsWith("/")) {
|
|
74580
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
74581
|
+
}
|
|
74546
74582
|
new URL(nextURL);
|
|
74547
74583
|
} catch (_error) {
|
|
74548
74584
|
return { next: () => null };
|
|
@@ -75129,7 +75165,7 @@ async function $do52(client, request, options) {
|
|
|
75129
75165
|
}
|
|
75130
75166
|
const payload = parsed.value;
|
|
75131
75167
|
const body = null;
|
|
75132
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
75168
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments")();
|
|
75133
75169
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
75134
75170
|
from: payload?.from,
|
|
75135
75171
|
limit: payload?.limit,
|
|
@@ -75165,7 +75201,7 @@ async function $do52(client, request, options) {
|
|
|
75165
75201
|
const requestRes = client._createRequest(context, {
|
|
75166
75202
|
security: requestSecurity,
|
|
75167
75203
|
method: "GET",
|
|
75168
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
75204
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
75169
75205
|
path,
|
|
75170
75206
|
headers,
|
|
75171
75207
|
query,
|
|
@@ -75208,10 +75244,10 @@ async function $do52(client, request, options) {
|
|
|
75208
75244
|
if (typeof nextURL !== "string") {
|
|
75209
75245
|
return { next: () => null };
|
|
75210
75246
|
}
|
|
75211
|
-
if (nextURL.startsWith("/")) {
|
|
75212
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
75213
|
-
}
|
|
75214
75247
|
try {
|
|
75248
|
+
if (nextURL.startsWith("/")) {
|
|
75249
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
75250
|
+
}
|
|
75215
75251
|
new URL(nextURL);
|
|
75216
75252
|
} catch (_error) {
|
|
75217
75253
|
return { next: () => null };
|
|
@@ -76259,7 +76295,7 @@ async function $do61(client, request, options) {
|
|
|
76259
76295
|
}
|
|
76260
76296
|
const payload = parsed.value;
|
|
76261
76297
|
const body = null;
|
|
76262
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
76298
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/profiles")();
|
|
76263
76299
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
76264
76300
|
from: payload?.from,
|
|
76265
76301
|
limit: payload?.limit
|
|
@@ -76292,7 +76328,7 @@ async function $do61(client, request, options) {
|
|
|
76292
76328
|
const requestRes = client._createRequest(context, {
|
|
76293
76329
|
security: requestSecurity,
|
|
76294
76330
|
method: "GET",
|
|
76295
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
76331
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
76296
76332
|
path,
|
|
76297
76333
|
headers,
|
|
76298
76334
|
query,
|
|
@@ -76335,10 +76371,10 @@ async function $do61(client, request, options) {
|
|
|
76335
76371
|
if (typeof nextURL !== "string") {
|
|
76336
76372
|
return { next: () => null };
|
|
76337
76373
|
}
|
|
76338
|
-
if (nextURL.startsWith("/")) {
|
|
76339
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
76340
|
-
}
|
|
76341
76374
|
try {
|
|
76375
|
+
if (nextURL.startsWith("/")) {
|
|
76376
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
76377
|
+
}
|
|
76342
76378
|
new URL(nextURL);
|
|
76343
76379
|
} catch (_error) {
|
|
76344
76380
|
return { next: () => null };
|
|
@@ -76536,7 +76572,7 @@ async function $do63(client, request, options) {
|
|
|
76536
76572
|
}
|
|
76537
76573
|
const payload = parsed.value;
|
|
76538
76574
|
const body = null;
|
|
76539
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
76575
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/refunds")();
|
|
76540
76576
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
76541
76577
|
embed: payload?.embed,
|
|
76542
76578
|
from: payload?.from,
|
|
@@ -76573,7 +76609,7 @@ async function $do63(client, request, options) {
|
|
|
76573
76609
|
const requestRes = client._createRequest(context, {
|
|
76574
76610
|
security: requestSecurity,
|
|
76575
76611
|
method: "GET",
|
|
76576
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
76612
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
76577
76613
|
path,
|
|
76578
76614
|
headers,
|
|
76579
76615
|
query,
|
|
@@ -76616,10 +76652,10 @@ async function $do63(client, request, options) {
|
|
|
76616
76652
|
if (typeof nextURL !== "string") {
|
|
76617
76653
|
return { next: () => null };
|
|
76618
76654
|
}
|
|
76619
|
-
if (nextURL.startsWith("/")) {
|
|
76620
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
76621
|
-
}
|
|
76622
76655
|
try {
|
|
76656
|
+
if (nextURL.startsWith("/")) {
|
|
76657
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
76658
|
+
}
|
|
76623
76659
|
new URL(nextURL);
|
|
76624
76660
|
} catch (_error) {
|
|
76625
76661
|
return { next: () => null };
|
|
@@ -77083,7 +77119,7 @@ async function $do67(client, request, options) {
|
|
|
77083
77119
|
charEncoding: "percent"
|
|
77084
77120
|
})
|
|
77085
77121
|
};
|
|
77086
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
77122
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/refunds")(pathParams);
|
|
77087
77123
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
77088
77124
|
embed: payload.embed,
|
|
77089
77125
|
from: payload.from,
|
|
@@ -77118,7 +77154,7 @@ async function $do67(client, request, options) {
|
|
|
77118
77154
|
const requestRes = client._createRequest(context, {
|
|
77119
77155
|
security: requestSecurity,
|
|
77120
77156
|
method: "GET",
|
|
77121
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
77157
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
77122
77158
|
path,
|
|
77123
77159
|
headers,
|
|
77124
77160
|
query,
|
|
@@ -77161,10 +77197,10 @@ async function $do67(client, request, options) {
|
|
|
77161
77197
|
if (typeof nextURL !== "string") {
|
|
77162
77198
|
return { next: () => null };
|
|
77163
77199
|
}
|
|
77164
|
-
if (nextURL.startsWith("/")) {
|
|
77165
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
77166
|
-
}
|
|
77167
77200
|
try {
|
|
77201
|
+
if (nextURL.startsWith("/")) {
|
|
77202
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
77203
|
+
}
|
|
77168
77204
|
new URL(nextURL);
|
|
77169
77205
|
} catch (_error) {
|
|
77170
77206
|
return { next: () => null };
|
|
@@ -77616,7 +77652,7 @@ async function $do71(client, request, options) {
|
|
|
77616
77652
|
}
|
|
77617
77653
|
const payload = parsed.value;
|
|
77618
77654
|
const body = null;
|
|
77619
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
77655
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/sales-invoices")();
|
|
77620
77656
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
77621
77657
|
from: payload?.from,
|
|
77622
77658
|
limit: payload?.limit,
|
|
@@ -77650,7 +77686,7 @@ async function $do71(client, request, options) {
|
|
|
77650
77686
|
const requestRes = client._createRequest(context, {
|
|
77651
77687
|
security: requestSecurity,
|
|
77652
77688
|
method: "GET",
|
|
77653
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
77689
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
77654
77690
|
path,
|
|
77655
77691
|
headers,
|
|
77656
77692
|
query,
|
|
@@ -77693,10 +77729,10 @@ async function $do71(client, request, options) {
|
|
|
77693
77729
|
if (typeof nextURL !== "string") {
|
|
77694
77730
|
return { next: () => null };
|
|
77695
77731
|
}
|
|
77696
|
-
if (nextURL.startsWith("/")) {
|
|
77697
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
77698
|
-
}
|
|
77699
77732
|
try {
|
|
77733
|
+
if (nextURL.startsWith("/")) {
|
|
77734
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
77735
|
+
}
|
|
77700
77736
|
new URL(nextURL);
|
|
77701
77737
|
} catch (_error) {
|
|
77702
77738
|
return { next: () => null };
|
|
@@ -78510,7 +78546,7 @@ async function $do78(client, request, options) {
|
|
|
78510
78546
|
}
|
|
78511
78547
|
const payload = parsed.value;
|
|
78512
78548
|
const body = null;
|
|
78513
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78549
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements")();
|
|
78514
78550
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78515
78551
|
balanceId: payload?.balanceId,
|
|
78516
78552
|
currencies: payload?.currencies,
|
|
@@ -78547,7 +78583,7 @@ async function $do78(client, request, options) {
|
|
|
78547
78583
|
const requestRes = client._createRequest(context, {
|
|
78548
78584
|
security: requestSecurity,
|
|
78549
78585
|
method: "GET",
|
|
78550
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78586
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78551
78587
|
path,
|
|
78552
78588
|
headers,
|
|
78553
78589
|
query,
|
|
@@ -78590,10 +78626,10 @@ async function $do78(client, request, options) {
|
|
|
78590
78626
|
if (typeof nextURL !== "string") {
|
|
78591
78627
|
return { next: () => null };
|
|
78592
78628
|
}
|
|
78593
|
-
if (nextURL.startsWith("/")) {
|
|
78594
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78595
|
-
}
|
|
78596
78629
|
try {
|
|
78630
|
+
if (nextURL.startsWith("/")) {
|
|
78631
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78632
|
+
}
|
|
78597
78633
|
new URL(nextURL);
|
|
78598
78634
|
} catch (_error) {
|
|
78599
78635
|
return { next: () => null };
|
|
@@ -78671,7 +78707,7 @@ async function $do79(client, request, options) {
|
|
|
78671
78707
|
charEncoding: "percent"
|
|
78672
78708
|
})
|
|
78673
78709
|
};
|
|
78674
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78710
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/captures")(pathParams);
|
|
78675
78711
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78676
78712
|
embed: payload.embed,
|
|
78677
78713
|
from: payload.from,
|
|
@@ -78706,7 +78742,7 @@ async function $do79(client, request, options) {
|
|
|
78706
78742
|
const requestRes = client._createRequest(context, {
|
|
78707
78743
|
security: requestSecurity,
|
|
78708
78744
|
method: "GET",
|
|
78709
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78745
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78710
78746
|
path,
|
|
78711
78747
|
headers,
|
|
78712
78748
|
query,
|
|
@@ -78749,10 +78785,10 @@ async function $do79(client, request, options) {
|
|
|
78749
78785
|
if (typeof nextURL !== "string") {
|
|
78750
78786
|
return { next: () => null };
|
|
78751
78787
|
}
|
|
78752
|
-
if (nextURL.startsWith("/")) {
|
|
78753
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78754
|
-
}
|
|
78755
78788
|
try {
|
|
78789
|
+
if (nextURL.startsWith("/")) {
|
|
78790
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78791
|
+
}
|
|
78756
78792
|
new URL(nextURL);
|
|
78757
78793
|
} catch (_error) {
|
|
78758
78794
|
return { next: () => null };
|
|
@@ -78830,7 +78866,7 @@ async function $do80(client, request, options) {
|
|
|
78830
78866
|
charEncoding: "percent"
|
|
78831
78867
|
})
|
|
78832
78868
|
};
|
|
78833
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78869
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
|
|
78834
78870
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78835
78871
|
embed: payload.embed,
|
|
78836
78872
|
from: payload.from,
|
|
@@ -78865,7 +78901,7 @@ async function $do80(client, request, options) {
|
|
|
78865
78901
|
const requestRes = client._createRequest(context, {
|
|
78866
78902
|
security: requestSecurity,
|
|
78867
78903
|
method: "GET",
|
|
78868
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78904
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78869
78905
|
path,
|
|
78870
78906
|
headers,
|
|
78871
78907
|
query,
|
|
@@ -78908,10 +78944,10 @@ async function $do80(client, request, options) {
|
|
|
78908
78944
|
if (typeof nextURL !== "string") {
|
|
78909
78945
|
return { next: () => null };
|
|
78910
78946
|
}
|
|
78911
|
-
if (nextURL.startsWith("/")) {
|
|
78912
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78913
|
-
}
|
|
78914
78947
|
try {
|
|
78948
|
+
if (nextURL.startsWith("/")) {
|
|
78949
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78950
|
+
}
|
|
78915
78951
|
new URL(nextURL);
|
|
78916
78952
|
} catch (_error) {
|
|
78917
78953
|
return { next: () => null };
|
|
@@ -78989,7 +79025,7 @@ async function $do81(client, request, options) {
|
|
|
78989
79025
|
charEncoding: "percent"
|
|
78990
79026
|
})
|
|
78991
79027
|
};
|
|
78992
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79028
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/payments")(pathParams);
|
|
78993
79029
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78994
79030
|
from: payload.from,
|
|
78995
79031
|
limit: payload.limit,
|
|
@@ -79025,7 +79061,7 @@ async function $do81(client, request, options) {
|
|
|
79025
79061
|
const requestRes = client._createRequest(context, {
|
|
79026
79062
|
security: requestSecurity,
|
|
79027
79063
|
method: "GET",
|
|
79028
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79064
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79029
79065
|
path,
|
|
79030
79066
|
headers,
|
|
79031
79067
|
query,
|
|
@@ -79068,10 +79104,10 @@ async function $do81(client, request, options) {
|
|
|
79068
79104
|
if (typeof nextURL !== "string") {
|
|
79069
79105
|
return { next: () => null };
|
|
79070
79106
|
}
|
|
79071
|
-
if (nextURL.startsWith("/")) {
|
|
79072
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79073
|
-
}
|
|
79074
79107
|
try {
|
|
79108
|
+
if (nextURL.startsWith("/")) {
|
|
79109
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79110
|
+
}
|
|
79075
79111
|
new URL(nextURL);
|
|
79076
79112
|
} catch (_error) {
|
|
79077
79113
|
return { next: () => null };
|
|
@@ -79152,7 +79188,7 @@ async function $do82(client, request, options) {
|
|
|
79152
79188
|
charEncoding: "percent"
|
|
79153
79189
|
})
|
|
79154
79190
|
};
|
|
79155
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79191
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
|
|
79156
79192
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79157
79193
|
embed: payload.embed,
|
|
79158
79194
|
from: payload.from,
|
|
@@ -79187,7 +79223,7 @@ async function $do82(client, request, options) {
|
|
|
79187
79223
|
const requestRes = client._createRequest(context, {
|
|
79188
79224
|
security: requestSecurity,
|
|
79189
79225
|
method: "GET",
|
|
79190
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79226
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79191
79227
|
path,
|
|
79192
79228
|
headers,
|
|
79193
79229
|
query,
|
|
@@ -79230,10 +79266,10 @@ async function $do82(client, request, options) {
|
|
|
79230
79266
|
if (typeof nextURL !== "string") {
|
|
79231
79267
|
return { next: () => null };
|
|
79232
79268
|
}
|
|
79233
|
-
if (nextURL.startsWith("/")) {
|
|
79234
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79235
|
-
}
|
|
79236
79269
|
try {
|
|
79270
|
+
if (nextURL.startsWith("/")) {
|
|
79271
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79272
|
+
}
|
|
79237
79273
|
new URL(nextURL);
|
|
79238
79274
|
} catch (_error) {
|
|
79239
79275
|
return { next: () => null };
|
|
@@ -79305,7 +79341,7 @@ async function $do83(client, request, options) {
|
|
|
79305
79341
|
}
|
|
79306
79342
|
const payload = parsed.value;
|
|
79307
79343
|
const body = null;
|
|
79308
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79344
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/subscriptions")();
|
|
79309
79345
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79310
79346
|
from: payload?.from,
|
|
79311
79347
|
limit: payload?.limit,
|
|
@@ -79340,7 +79376,7 @@ async function $do83(client, request, options) {
|
|
|
79340
79376
|
const requestRes = client._createRequest(context, {
|
|
79341
79377
|
security: requestSecurity,
|
|
79342
79378
|
method: "GET",
|
|
79343
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79379
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79344
79380
|
path,
|
|
79345
79381
|
headers,
|
|
79346
79382
|
query,
|
|
@@ -79383,10 +79419,10 @@ async function $do83(client, request, options) {
|
|
|
79383
79419
|
if (typeof nextURL !== "string") {
|
|
79384
79420
|
return { next: () => null };
|
|
79385
79421
|
}
|
|
79386
|
-
if (nextURL.startsWith("/")) {
|
|
79387
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79388
|
-
}
|
|
79389
79422
|
try {
|
|
79423
|
+
if (nextURL.startsWith("/")) {
|
|
79424
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79425
|
+
}
|
|
79390
79426
|
new URL(nextURL);
|
|
79391
79427
|
} catch (_error) {
|
|
79392
79428
|
return { next: () => null };
|
|
@@ -79864,7 +79900,7 @@ async function $do87(client, request, options) {
|
|
|
79864
79900
|
charEncoding: "percent"
|
|
79865
79901
|
})
|
|
79866
79902
|
};
|
|
79867
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79903
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
|
|
79868
79904
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79869
79905
|
from: payload.from,
|
|
79870
79906
|
limit: payload.limit,
|
|
@@ -79899,7 +79935,7 @@ async function $do87(client, request, options) {
|
|
|
79899
79935
|
const requestRes = client._createRequest(context, {
|
|
79900
79936
|
security: requestSecurity,
|
|
79901
79937
|
method: "GET",
|
|
79902
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79938
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79903
79939
|
path,
|
|
79904
79940
|
headers,
|
|
79905
79941
|
query,
|
|
@@ -79942,10 +79978,10 @@ async function $do87(client, request, options) {
|
|
|
79942
79978
|
if (typeof nextURL !== "string") {
|
|
79943
79979
|
return { next: () => null };
|
|
79944
79980
|
}
|
|
79945
|
-
if (nextURL.startsWith("/")) {
|
|
79946
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79947
|
-
}
|
|
79948
79981
|
try {
|
|
79982
|
+
if (nextURL.startsWith("/")) {
|
|
79983
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79984
|
+
}
|
|
79949
79985
|
new URL(nextURL);
|
|
79950
79986
|
} catch (_error) {
|
|
79951
79987
|
return { next: () => null };
|
|
@@ -80027,7 +80063,7 @@ async function $do88(client, request, options) {
|
|
|
80027
80063
|
charEncoding: "percent"
|
|
80028
80064
|
})
|
|
80029
80065
|
};
|
|
80030
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
80066
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
|
|
80031
80067
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
80032
80068
|
from: payload.from,
|
|
80033
80069
|
limit: payload.limit,
|
|
@@ -80063,7 +80099,7 @@ async function $do88(client, request, options) {
|
|
|
80063
80099
|
const requestRes = client._createRequest(context, {
|
|
80064
80100
|
security: requestSecurity,
|
|
80065
80101
|
method: "GET",
|
|
80066
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
80102
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
80067
80103
|
path,
|
|
80068
80104
|
headers,
|
|
80069
80105
|
query,
|
|
@@ -80106,10 +80142,10 @@ async function $do88(client, request, options) {
|
|
|
80106
80142
|
if (typeof nextURL !== "string") {
|
|
80107
80143
|
return { next: () => null };
|
|
80108
80144
|
}
|
|
80109
|
-
if (nextURL.startsWith("/")) {
|
|
80110
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
80111
|
-
}
|
|
80112
80145
|
try {
|
|
80146
|
+
if (nextURL.startsWith("/")) {
|
|
80147
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
80148
|
+
}
|
|
80113
80149
|
new URL(nextURL);
|
|
80114
80150
|
} catch (_error) {
|
|
80115
80151
|
return { next: () => null };
|
|
@@ -80438,7 +80474,7 @@ async function $do91(client, request, options) {
|
|
|
80438
80474
|
}
|
|
80439
80475
|
const payload = parsed.value;
|
|
80440
80476
|
const body = null;
|
|
80441
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
80477
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/terminals")();
|
|
80442
80478
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
80443
80479
|
from: payload?.from,
|
|
80444
80480
|
limit: payload?.limit,
|
|
@@ -80473,7 +80509,7 @@ async function $do91(client, request, options) {
|
|
|
80473
80509
|
const requestRes = client._createRequest(context, {
|
|
80474
80510
|
security: requestSecurity,
|
|
80475
80511
|
method: "GET",
|
|
80476
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
80512
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
80477
80513
|
path,
|
|
80478
80514
|
headers,
|
|
80479
80515
|
query,
|
|
@@ -80516,10 +80552,10 @@ async function $do91(client, request, options) {
|
|
|
80516
80552
|
if (typeof nextURL !== "string") {
|
|
80517
80553
|
return { next: () => null };
|
|
80518
80554
|
}
|
|
80519
|
-
if (nextURL.startsWith("/")) {
|
|
80520
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
80521
|
-
}
|
|
80522
80555
|
try {
|
|
80556
|
+
if (nextURL.startsWith("/")) {
|
|
80557
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
80558
|
+
}
|
|
80523
80559
|
new URL(nextURL);
|
|
80524
80560
|
} catch (_error) {
|
|
80525
80561
|
return { next: () => null };
|
|
@@ -81213,7 +81249,7 @@ async function $do97(client, request, options) {
|
|
|
81213
81249
|
}
|
|
81214
81250
|
const payload = parsed.value;
|
|
81215
81251
|
const body = null;
|
|
81216
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
81252
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/webhooks")();
|
|
81217
81253
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
81218
81254
|
eventTypes: payload?.eventTypes,
|
|
81219
81255
|
from: payload?.from,
|
|
@@ -81249,7 +81285,7 @@ async function $do97(client, request, options) {
|
|
|
81249
81285
|
const requestRes = client._createRequest(context, {
|
|
81250
81286
|
security: requestSecurity,
|
|
81251
81287
|
method: "GET",
|
|
81252
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
81288
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
81253
81289
|
path,
|
|
81254
81290
|
headers,
|
|
81255
81291
|
query,
|
|
@@ -81292,10 +81328,10 @@ async function $do97(client, request, options) {
|
|
|
81292
81328
|
if (typeof nextURL !== "string") {
|
|
81293
81329
|
return { next: () => null };
|
|
81294
81330
|
}
|
|
81295
|
-
if (nextURL.startsWith("/")) {
|
|
81296
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
81297
|
-
}
|
|
81298
81331
|
try {
|
|
81332
|
+
if (nextURL.startsWith("/")) {
|
|
81333
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
81334
|
+
}
|
|
81299
81335
|
new URL(nextURL);
|
|
81300
81336
|
} catch (_error) {
|
|
81301
81337
|
return { next: () => null };
|
|
@@ -81601,7 +81637,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
81601
81637
|
function createMCPServer(deps) {
|
|
81602
81638
|
const server = new McpServer({
|
|
81603
81639
|
name: "Client",
|
|
81604
|
-
version: "1.3.
|
|
81640
|
+
version: "1.3.2"
|
|
81605
81641
|
});
|
|
81606
81642
|
const client = new ClientCore({
|
|
81607
81643
|
security: deps.security,
|
|
@@ -81851,7 +81887,11 @@ async function startStdio(flags) {
|
|
|
81851
81887
|
const server = createMCPServer({
|
|
81852
81888
|
logger,
|
|
81853
81889
|
allowedTools: flags.tool,
|
|
81854
|
-
security: {
|
|
81890
|
+
security: {
|
|
81891
|
+
apiKey: flags["api-key"] ?? "",
|
|
81892
|
+
organizationAccessToken: flags["organization-access-token"] ?? "",
|
|
81893
|
+
oAuth: flags["o-auth"] ?? ""
|
|
81894
|
+
},
|
|
81855
81895
|
profileId: flags["profile-id"],
|
|
81856
81896
|
testmode: flags.testmode,
|
|
81857
81897
|
customUserAgent: flags["custom-user-agent"],
|
|
@@ -81872,7 +81912,11 @@ async function startSSE(flags) {
|
|
|
81872
81912
|
const mcpServer = createMCPServer({
|
|
81873
81913
|
logger,
|
|
81874
81914
|
allowedTools: flags.tool,
|
|
81875
|
-
security: {
|
|
81915
|
+
security: {
|
|
81916
|
+
apiKey: flags["api-key"] ?? "",
|
|
81917
|
+
organizationAccessToken: flags["organization-access-token"] ?? "",
|
|
81918
|
+
oAuth: flags["o-auth"] ?? ""
|
|
81919
|
+
},
|
|
81876
81920
|
profileId: flags["profile-id"],
|
|
81877
81921
|
testmode: flags.testmode,
|
|
81878
81922
|
customUserAgent: flags["custom-user-agent"],
|
|
@@ -82944,6 +82988,14 @@ var startCommand = on({
|
|
|
82944
82988
|
return stringType().parse(value);
|
|
82945
82989
|
}
|
|
82946
82990
|
},
|
|
82991
|
+
"organization-access-token": {
|
|
82992
|
+
kind: "parsed",
|
|
82993
|
+
brief: "Sets the organizationAccessToken auth field for the API",
|
|
82994
|
+
optional: true,
|
|
82995
|
+
parse: (value) => {
|
|
82996
|
+
return stringType().parse(value);
|
|
82997
|
+
}
|
|
82998
|
+
},
|
|
82947
82999
|
"o-auth": {
|
|
82948
83000
|
kind: "parsed",
|
|
82949
83001
|
brief: "Sets the oAuth auth field for the API",
|
|
@@ -83035,7 +83087,7 @@ var routes = an({
|
|
|
83035
83087
|
var app = He(routes, {
|
|
83036
83088
|
name: "mcp",
|
|
83037
83089
|
versionInfo: {
|
|
83038
|
-
currentVersion: "1.3.
|
|
83090
|
+
currentVersion: "1.3.2"
|
|
83039
83091
|
}
|
|
83040
83092
|
});
|
|
83041
83093
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -83043,5 +83095,5 @@ export {
|
|
|
83043
83095
|
app
|
|
83044
83096
|
};
|
|
83045
83097
|
|
|
83046
|
-
//# debugId=
|
|
83098
|
+
//# debugId=D34EE055564CE0E964756E2164756E21
|
|
83047
83099
|
//# sourceMappingURL=mcp-server.js.map
|