dodopayments-mcp 1.12.0
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/LICENSE +201 -0
- package/README.md +184 -0
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +162 -0
- package/index.js.map +1 -0
- package/index.mjs +156 -0
- package/index.mjs.map +1 -0
- package/package.json +45 -0
- package/server.d.mts +30 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +30 -0
- package/server.d.ts.map +1 -0
- package/server.js +77 -0
- package/server.js.map +1 -0
- package/server.mjs +67 -0
- package/server.mjs.map +1 -0
- package/src/index.ts +190 -0
- package/src/server.ts +89 -0
- package/src/tools/customers/create-customers.ts +37 -0
- package/src/tools/customers/customer-portal/create-customers-customer-portal.ts +35 -0
- package/src/tools/customers/list-customers.ts +36 -0
- package/src/tools/customers/retrieve-customers.ts +31 -0
- package/src/tools/customers/update-customers.ts +37 -0
- package/src/tools/discounts/create-discounts.ts +61 -0
- package/src/tools/discounts/delete-discounts.ts +31 -0
- package/src/tools/discounts/list-discounts.ts +36 -0
- package/src/tools/discounts/retrieve-discounts.ts +31 -0
- package/src/tools/discounts/update-discounts.ts +62 -0
- package/src/tools/disputes/list-disputes.ts +66 -0
- package/src/tools/disputes/retrieve-disputes.ts +31 -0
- package/src/tools/index.ts +159 -0
- package/src/tools/invoices/payments/retrieve-invoices-payments.ts +31 -0
- package/src/tools/license-key-instances/list-license-key-instances.ts +40 -0
- package/src/tools/license-key-instances/retrieve-license-key-instances.ts +31 -0
- package/src/tools/license-key-instances/update-license-key-instances.ts +34 -0
- package/src/tools/license-keys/list-license-keys.ts +48 -0
- package/src/tools/license-keys/retrieve-license-keys.ts +31 -0
- package/src/tools/license-keys/update-license-keys.ts +47 -0
- package/src/tools/licenses/activate-licenses.ts +34 -0
- package/src/tools/licenses/deactivate-licenses.ts +34 -0
- package/src/tools/licenses/validate-licenses.ts +34 -0
- package/src/tools/misc/list-supported-countries-misc.ts +27 -0
- package/src/tools/payments/create-payments.ts +562 -0
- package/src/tools/payments/list-payments.ts +70 -0
- package/src/tools/payments/retrieve-payments.ts +31 -0
- package/src/tools/payouts/list-payouts.ts +36 -0
- package/src/tools/products/create-products.ts +476 -0
- package/src/tools/products/delete-products.ts +31 -0
- package/src/tools/products/images/update-products-images.ts +34 -0
- package/src/tools/products/list-products.ts +45 -0
- package/src/tools/products/retrieve-products.ts +31 -0
- package/src/tools/products/unarchive-products.ts +31 -0
- package/src/tools/products/update-products.ts +486 -0
- package/src/tools/refunds/create-refunds.ts +41 -0
- package/src/tools/refunds/list-refunds.ts +54 -0
- package/src/tools/refunds/retrieve-refunds.ts +31 -0
- package/src/tools/subscriptions/charge-subscriptions.ts +36 -0
- package/src/tools/subscriptions/create-subscriptions.ts +570 -0
- package/src/tools/subscriptions/list-subscriptions.ts +54 -0
- package/src/tools/subscriptions/retrieve-subscriptions.ts +31 -0
- package/src/tools/subscriptions/update-subscriptions.ts +38 -0
- package/src/tools/webhook-events/list-webhook-events.ts +54 -0
- package/src/tools/webhook-events/retrieve-webhook-events.ts +31 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/tools/customers/create-customers.d.mts +24 -0
- package/tools/customers/create-customers.d.mts.map +1 -0
- package/tools/customers/create-customers.d.ts +24 -0
- package/tools/customers/create-customers.d.ts.map +1 -0
- package/tools/customers/create-customers.js +34 -0
- package/tools/customers/create-customers.js.map +1 -0
- package/tools/customers/create-customers.mjs +30 -0
- package/tools/customers/create-customers.mjs.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts +24 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts +24 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.js +32 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.js.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs +28 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs.map +1 -0
- package/tools/customers/list-customers.d.mts +24 -0
- package/tools/customers/list-customers.d.mts.map +1 -0
- package/tools/customers/list-customers.d.ts +24 -0
- package/tools/customers/list-customers.d.ts.map +1 -0
- package/tools/customers/list-customers.js +33 -0
- package/tools/customers/list-customers.js.map +1 -0
- package/tools/customers/list-customers.mjs +29 -0
- package/tools/customers/list-customers.mjs.map +1 -0
- package/tools/customers/retrieve-customers.d.mts +24 -0
- package/tools/customers/retrieve-customers.d.mts.map +1 -0
- package/tools/customers/retrieve-customers.d.ts +24 -0
- package/tools/customers/retrieve-customers.d.ts.map +1 -0
- package/tools/customers/retrieve-customers.js +28 -0
- package/tools/customers/retrieve-customers.js.map +1 -0
- package/tools/customers/retrieve-customers.mjs +24 -0
- package/tools/customers/retrieve-customers.mjs.map +1 -0
- package/tools/customers/update-customers.d.mts +24 -0
- package/tools/customers/update-customers.d.mts.map +1 -0
- package/tools/customers/update-customers.d.ts +24 -0
- package/tools/customers/update-customers.d.ts.map +1 -0
- package/tools/customers/update-customers.js +34 -0
- package/tools/customers/update-customers.js.map +1 -0
- package/tools/customers/update-customers.mjs +30 -0
- package/tools/customers/update-customers.mjs.map +1 -0
- package/tools/discounts/create-discounts.d.mts +24 -0
- package/tools/discounts/create-discounts.d.mts.map +1 -0
- package/tools/discounts/create-discounts.d.ts +24 -0
- package/tools/discounts/create-discounts.d.ts.map +1 -0
- package/tools/discounts/create-discounts.js +56 -0
- package/tools/discounts/create-discounts.js.map +1 -0
- package/tools/discounts/create-discounts.mjs +52 -0
- package/tools/discounts/create-discounts.mjs.map +1 -0
- package/tools/discounts/delete-discounts.d.mts +24 -0
- package/tools/discounts/delete-discounts.d.mts.map +1 -0
- package/tools/discounts/delete-discounts.d.ts +24 -0
- package/tools/discounts/delete-discounts.d.ts.map +1 -0
- package/tools/discounts/delete-discounts.js +28 -0
- package/tools/discounts/delete-discounts.js.map +1 -0
- package/tools/discounts/delete-discounts.mjs +24 -0
- package/tools/discounts/delete-discounts.mjs.map +1 -0
- package/tools/discounts/list-discounts.d.mts +24 -0
- package/tools/discounts/list-discounts.d.mts.map +1 -0
- package/tools/discounts/list-discounts.d.ts +24 -0
- package/tools/discounts/list-discounts.d.ts.map +1 -0
- package/tools/discounts/list-discounts.js +33 -0
- package/tools/discounts/list-discounts.js.map +1 -0
- package/tools/discounts/list-discounts.mjs +29 -0
- package/tools/discounts/list-discounts.mjs.map +1 -0
- package/tools/discounts/retrieve-discounts.d.mts +24 -0
- package/tools/discounts/retrieve-discounts.d.mts.map +1 -0
- package/tools/discounts/retrieve-discounts.d.ts +24 -0
- package/tools/discounts/retrieve-discounts.d.ts.map +1 -0
- package/tools/discounts/retrieve-discounts.js +28 -0
- package/tools/discounts/retrieve-discounts.js.map +1 -0
- package/tools/discounts/retrieve-discounts.mjs +24 -0
- package/tools/discounts/retrieve-discounts.mjs.map +1 -0
- package/tools/discounts/update-discounts.d.mts +24 -0
- package/tools/discounts/update-discounts.d.mts.map +1 -0
- package/tools/discounts/update-discounts.d.ts +24 -0
- package/tools/discounts/update-discounts.d.ts.map +1 -0
- package/tools/discounts/update-discounts.js +57 -0
- package/tools/discounts/update-discounts.js.map +1 -0
- package/tools/discounts/update-discounts.mjs +53 -0
- package/tools/discounts/update-discounts.mjs.map +1 -0
- package/tools/disputes/list-disputes.d.mts +24 -0
- package/tools/disputes/list-disputes.d.mts.map +1 -0
- package/tools/disputes/list-disputes.d.ts +24 -0
- package/tools/disputes/list-disputes.d.ts.map +1 -0
- package/tools/disputes/list-disputes.js +63 -0
- package/tools/disputes/list-disputes.js.map +1 -0
- package/tools/disputes/list-disputes.mjs +59 -0
- package/tools/disputes/list-disputes.mjs.map +1 -0
- package/tools/disputes/retrieve-disputes.d.mts +24 -0
- package/tools/disputes/retrieve-disputes.d.mts.map +1 -0
- package/tools/disputes/retrieve-disputes.d.ts +24 -0
- package/tools/disputes/retrieve-disputes.d.ts.map +1 -0
- package/tools/disputes/retrieve-disputes.js +28 -0
- package/tools/disputes/retrieve-disputes.js.map +1 -0
- package/tools/disputes/retrieve-disputes.mjs +24 -0
- package/tools/disputes/retrieve-disputes.mjs.map +1 -0
- package/tools/index.d.mts +21 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +21 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +134 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +127 -0
- package/tools/index.mjs.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.js +28 -0
- package/tools/invoices/payments/retrieve-invoices-payments.js.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.mjs +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.mjs.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/list-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/list-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.js +37 -0
- package/tools/license-key-instances/list-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.mjs +33 -0
- package/tools/license-key-instances/list-license-key-instances.mjs.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.js +28 -0
- package/tools/license-key-instances/retrieve-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.mjs +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.mjs.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/update-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/update-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.js +31 -0
- package/tools/license-key-instances/update-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.mjs +27 -0
- package/tools/license-key-instances/update-license-key-instances.mjs.map +1 -0
- package/tools/license-keys/list-license-keys.d.mts +24 -0
- package/tools/license-keys/list-license-keys.d.mts.map +1 -0
- package/tools/license-keys/list-license-keys.d.ts +24 -0
- package/tools/license-keys/list-license-keys.d.ts.map +1 -0
- package/tools/license-keys/list-license-keys.js +45 -0
- package/tools/license-keys/list-license-keys.js.map +1 -0
- package/tools/license-keys/list-license-keys.mjs +41 -0
- package/tools/license-keys/list-license-keys.mjs.map +1 -0
- package/tools/license-keys/retrieve-license-keys.d.mts +24 -0
- package/tools/license-keys/retrieve-license-keys.d.mts.map +1 -0
- package/tools/license-keys/retrieve-license-keys.d.ts +24 -0
- package/tools/license-keys/retrieve-license-keys.d.ts.map +1 -0
- package/tools/license-keys/retrieve-license-keys.js +28 -0
- package/tools/license-keys/retrieve-license-keys.js.map +1 -0
- package/tools/license-keys/retrieve-license-keys.mjs +24 -0
- package/tools/license-keys/retrieve-license-keys.mjs.map +1 -0
- package/tools/license-keys/update-license-keys.d.mts +24 -0
- package/tools/license-keys/update-license-keys.d.mts.map +1 -0
- package/tools/license-keys/update-license-keys.d.ts +24 -0
- package/tools/license-keys/update-license-keys.d.ts.map +1 -0
- package/tools/license-keys/update-license-keys.js +41 -0
- package/tools/license-keys/update-license-keys.js.map +1 -0
- package/tools/license-keys/update-license-keys.mjs +37 -0
- package/tools/license-keys/update-license-keys.mjs.map +1 -0
- package/tools/licenses/activate-licenses.d.mts +24 -0
- package/tools/licenses/activate-licenses.d.mts.map +1 -0
- package/tools/licenses/activate-licenses.d.ts +24 -0
- package/tools/licenses/activate-licenses.d.ts.map +1 -0
- package/tools/licenses/activate-licenses.js +31 -0
- package/tools/licenses/activate-licenses.js.map +1 -0
- package/tools/licenses/activate-licenses.mjs +27 -0
- package/tools/licenses/activate-licenses.mjs.map +1 -0
- package/tools/licenses/deactivate-licenses.d.mts +24 -0
- package/tools/licenses/deactivate-licenses.d.mts.map +1 -0
- package/tools/licenses/deactivate-licenses.d.ts +24 -0
- package/tools/licenses/deactivate-licenses.d.ts.map +1 -0
- package/tools/licenses/deactivate-licenses.js +31 -0
- package/tools/licenses/deactivate-licenses.js.map +1 -0
- package/tools/licenses/deactivate-licenses.mjs +27 -0
- package/tools/licenses/deactivate-licenses.mjs.map +1 -0
- package/tools/licenses/validate-licenses.d.mts +24 -0
- package/tools/licenses/validate-licenses.d.mts.map +1 -0
- package/tools/licenses/validate-licenses.d.ts +24 -0
- package/tools/licenses/validate-licenses.d.ts.map +1 -0
- package/tools/licenses/validate-licenses.js +31 -0
- package/tools/licenses/validate-licenses.js.map +1 -0
- package/tools/licenses/validate-licenses.mjs +27 -0
- package/tools/licenses/validate-licenses.mjs.map +1 -0
- package/tools/misc/list-supported-countries-misc.d.mts +24 -0
- package/tools/misc/list-supported-countries-misc.d.mts.map +1 -0
- package/tools/misc/list-supported-countries-misc.d.ts +24 -0
- package/tools/misc/list-supported-countries-misc.d.ts.map +1 -0
- package/tools/misc/list-supported-countries-misc.js +24 -0
- package/tools/misc/list-supported-countries-misc.js.map +1 -0
- package/tools/misc/list-supported-countries-misc.mjs +20 -0
- package/tools/misc/list-supported-countries-misc.mjs.map +1 -0
- package/tools/payments/create-payments.d.mts +24 -0
- package/tools/payments/create-payments.d.mts.map +1 -0
- package/tools/payments/create-payments.d.ts +24 -0
- package/tools/payments/create-payments.d.ts.map +1 -0
- package/tools/payments/create-payments.js +555 -0
- package/tools/payments/create-payments.js.map +1 -0
- package/tools/payments/create-payments.mjs +551 -0
- package/tools/payments/create-payments.mjs.map +1 -0
- package/tools/payments/list-payments.d.mts +24 -0
- package/tools/payments/list-payments.d.mts.map +1 -0
- package/tools/payments/list-payments.d.ts +24 -0
- package/tools/payments/list-payments.d.ts.map +1 -0
- package/tools/payments/list-payments.js +67 -0
- package/tools/payments/list-payments.js.map +1 -0
- package/tools/payments/list-payments.mjs +63 -0
- package/tools/payments/list-payments.mjs.map +1 -0
- package/tools/payments/retrieve-payments.d.mts +24 -0
- package/tools/payments/retrieve-payments.d.mts.map +1 -0
- package/tools/payments/retrieve-payments.d.ts +24 -0
- package/tools/payments/retrieve-payments.d.ts.map +1 -0
- package/tools/payments/retrieve-payments.js +28 -0
- package/tools/payments/retrieve-payments.js.map +1 -0
- package/tools/payments/retrieve-payments.mjs +24 -0
- package/tools/payments/retrieve-payments.mjs.map +1 -0
- package/tools/payouts/list-payouts.d.mts +24 -0
- package/tools/payouts/list-payouts.d.mts.map +1 -0
- package/tools/payouts/list-payouts.d.ts +24 -0
- package/tools/payouts/list-payouts.d.ts.map +1 -0
- package/tools/payouts/list-payouts.js +33 -0
- package/tools/payouts/list-payouts.js.map +1 -0
- package/tools/payouts/list-payouts.mjs +29 -0
- package/tools/payouts/list-payouts.mjs.map +1 -0
- package/tools/products/create-products.d.mts +24 -0
- package/tools/products/create-products.d.mts.map +1 -0
- package/tools/products/create-products.d.ts +24 -0
- package/tools/products/create-products.d.ts.map +1 -0
- package/tools/products/create-products.js +464 -0
- package/tools/products/create-products.js.map +1 -0
- package/tools/products/create-products.mjs +460 -0
- package/tools/products/create-products.mjs.map +1 -0
- package/tools/products/delete-products.d.mts +24 -0
- package/tools/products/delete-products.d.mts.map +1 -0
- package/tools/products/delete-products.d.ts +24 -0
- package/tools/products/delete-products.d.ts.map +1 -0
- package/tools/products/delete-products.js +28 -0
- package/tools/products/delete-products.js.map +1 -0
- package/tools/products/delete-products.mjs +24 -0
- package/tools/products/delete-products.mjs.map +1 -0
- package/tools/products/images/update-products-images.d.mts +24 -0
- package/tools/products/images/update-products-images.d.mts.map +1 -0
- package/tools/products/images/update-products-images.d.ts +24 -0
- package/tools/products/images/update-products-images.d.ts.map +1 -0
- package/tools/products/images/update-products-images.js +31 -0
- package/tools/products/images/update-products-images.js.map +1 -0
- package/tools/products/images/update-products-images.mjs +27 -0
- package/tools/products/images/update-products-images.mjs.map +1 -0
- package/tools/products/list-products.d.mts +24 -0
- package/tools/products/list-products.d.mts.map +1 -0
- package/tools/products/list-products.d.ts +24 -0
- package/tools/products/list-products.d.ts.map +1 -0
- package/tools/products/list-products.js +41 -0
- package/tools/products/list-products.js.map +1 -0
- package/tools/products/list-products.mjs +37 -0
- package/tools/products/list-products.mjs.map +1 -0
- package/tools/products/retrieve-products.d.mts +24 -0
- package/tools/products/retrieve-products.d.mts.map +1 -0
- package/tools/products/retrieve-products.d.ts +24 -0
- package/tools/products/retrieve-products.d.ts.map +1 -0
- package/tools/products/retrieve-products.js +28 -0
- package/tools/products/retrieve-products.js.map +1 -0
- package/tools/products/retrieve-products.mjs +24 -0
- package/tools/products/retrieve-products.mjs.map +1 -0
- package/tools/products/unarchive-products.d.mts +24 -0
- package/tools/products/unarchive-products.d.mts.map +1 -0
- package/tools/products/unarchive-products.d.ts +24 -0
- package/tools/products/unarchive-products.d.ts.map +1 -0
- package/tools/products/unarchive-products.js +28 -0
- package/tools/products/unarchive-products.js.map +1 -0
- package/tools/products/unarchive-products.mjs +24 -0
- package/tools/products/unarchive-products.mjs.map +1 -0
- package/tools/products/update-products.d.mts +24 -0
- package/tools/products/update-products.d.mts.map +1 -0
- package/tools/products/update-products.d.ts +24 -0
- package/tools/products/update-products.d.ts.map +1 -0
- package/tools/products/update-products.js +471 -0
- package/tools/products/update-products.js.map +1 -0
- package/tools/products/update-products.mjs +467 -0
- package/tools/products/update-products.mjs.map +1 -0
- package/tools/refunds/create-refunds.d.mts +24 -0
- package/tools/refunds/create-refunds.d.mts.map +1 -0
- package/tools/refunds/create-refunds.d.ts +24 -0
- package/tools/refunds/create-refunds.d.ts.map +1 -0
- package/tools/refunds/create-refunds.js +37 -0
- package/tools/refunds/create-refunds.js.map +1 -0
- package/tools/refunds/create-refunds.mjs +33 -0
- package/tools/refunds/create-refunds.mjs.map +1 -0
- package/tools/refunds/list-refunds.d.mts +24 -0
- package/tools/refunds/list-refunds.d.mts.map +1 -0
- package/tools/refunds/list-refunds.d.ts +24 -0
- package/tools/refunds/list-refunds.d.ts.map +1 -0
- package/tools/refunds/list-refunds.js +51 -0
- package/tools/refunds/list-refunds.js.map +1 -0
- package/tools/refunds/list-refunds.mjs +47 -0
- package/tools/refunds/list-refunds.mjs.map +1 -0
- package/tools/refunds/retrieve-refunds.d.mts +24 -0
- package/tools/refunds/retrieve-refunds.d.mts.map +1 -0
- package/tools/refunds/retrieve-refunds.d.ts +24 -0
- package/tools/refunds/retrieve-refunds.d.ts.map +1 -0
- package/tools/refunds/retrieve-refunds.js +28 -0
- package/tools/refunds/retrieve-refunds.js.map +1 -0
- package/tools/refunds/retrieve-refunds.mjs +24 -0
- package/tools/refunds/retrieve-refunds.mjs.map +1 -0
- package/tools/subscriptions/charge-subscriptions.d.mts +24 -0
- package/tools/subscriptions/charge-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/charge-subscriptions.d.ts +24 -0
- package/tools/subscriptions/charge-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/charge-subscriptions.js +32 -0
- package/tools/subscriptions/charge-subscriptions.js.map +1 -0
- package/tools/subscriptions/charge-subscriptions.mjs +28 -0
- package/tools/subscriptions/charge-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/create-subscriptions.d.mts +24 -0
- package/tools/subscriptions/create-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/create-subscriptions.d.ts +24 -0
- package/tools/subscriptions/create-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/create-subscriptions.js +561 -0
- package/tools/subscriptions/create-subscriptions.js.map +1 -0
- package/tools/subscriptions/create-subscriptions.mjs +557 -0
- package/tools/subscriptions/create-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/list-subscriptions.d.mts +24 -0
- package/tools/subscriptions/list-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/list-subscriptions.d.ts +24 -0
- package/tools/subscriptions/list-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/list-subscriptions.js +51 -0
- package/tools/subscriptions/list-subscriptions.js.map +1 -0
- package/tools/subscriptions/list-subscriptions.mjs +47 -0
- package/tools/subscriptions/list-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.d.mts +24 -0
- package/tools/subscriptions/retrieve-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.d.ts +24 -0
- package/tools/subscriptions/retrieve-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.js +28 -0
- package/tools/subscriptions/retrieve-subscriptions.js.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.mjs +24 -0
- package/tools/subscriptions/retrieve-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/update-subscriptions.d.mts +24 -0
- package/tools/subscriptions/update-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/update-subscriptions.d.ts +24 -0
- package/tools/subscriptions/update-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/update-subscriptions.js +35 -0
- package/tools/subscriptions/update-subscriptions.js.map +1 -0
- package/tools/subscriptions/update-subscriptions.mjs +31 -0
- package/tools/subscriptions/update-subscriptions.mjs.map +1 -0
- package/tools/webhook-events/list-webhook-events.d.mts +24 -0
- package/tools/webhook-events/list-webhook-events.d.mts.map +1 -0
- package/tools/webhook-events/list-webhook-events.d.ts +24 -0
- package/tools/webhook-events/list-webhook-events.d.ts.map +1 -0
- package/tools/webhook-events/list-webhook-events.js +51 -0
- package/tools/webhook-events/list-webhook-events.js.map +1 -0
- package/tools/webhook-events/list-webhook-events.mjs +47 -0
- package/tools/webhook-events/list-webhook-events.mjs.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.d.mts +24 -0
- package/tools/webhook-events/retrieve-webhook-events.d.mts.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.d.ts +24 -0
- package/tools/webhook-events/retrieve-webhook-events.d.ts.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.js +28 -0
- package/tools/webhook-events/retrieve-webhook-events.js.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.mjs +24 -0
- package/tools/webhook-events/retrieve-webhook-events.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'webhook_events',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_webhook_events',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
created_at_gte: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Get events after this created time',
|
|
22
|
+
format: 'date-time',
|
|
23
|
+
},
|
|
24
|
+
created_at_lte: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Get events created before this time',
|
|
27
|
+
format: 'date-time',
|
|
28
|
+
},
|
|
29
|
+
limit: {
|
|
30
|
+
type: 'integer',
|
|
31
|
+
description: 'Min : 1, Max : 100, default 10',
|
|
32
|
+
},
|
|
33
|
+
object_id: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Get events history of a specific object like payment/subscription/refund/dispute',
|
|
36
|
+
},
|
|
37
|
+
page_number: {
|
|
38
|
+
type: 'integer',
|
|
39
|
+
description: 'Page number default is 0',
|
|
40
|
+
},
|
|
41
|
+
page_size: {
|
|
42
|
+
type: 'integer',
|
|
43
|
+
description: 'Page size default is 10 max is 100',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
50
|
+
const { ...body } = args;
|
|
51
|
+
return client.webhookEvents.list(body);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'webhook_events',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_webhook_events',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
webhook_event_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { webhook_event_id } = args;
|
|
28
|
+
return client.webhookEvents.retrieve(webhook_event_id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
package/src/tools.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tools/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "es2015",
|
|
8
|
+
"lib": ["DOM"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=create-customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers.d.mts","sourceRoot":"","sources":["../../src/tools/customers/create-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,4EAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=create-customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers.d.ts","sourceRoot":"","sources":["../../src/tools/customers/create-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,4EAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'customers',
|
|
7
|
+
operation: 'write',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'create_customers',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
email: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
phone_number: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const handler = (client, args) => {
|
|
29
|
+
const { ...body } = args;
|
|
30
|
+
return client.customers.create(body);
|
|
31
|
+
};
|
|
32
|
+
exports.handler = handler;
|
|
33
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
34
|
+
//# sourceMappingURL=create-customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers.js","sourceRoot":"","sources":["../../src/tools/customers/create-customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACzB,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'customers',
|
|
4
|
+
operation: 'write',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'create_customers',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
email: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
name: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
phone_number: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export const handler = (client, args) => {
|
|
26
|
+
const { ...body } = args;
|
|
27
|
+
return client.customers.create(body);
|
|
28
|
+
};
|
|
29
|
+
export default { metadata, tool, handler };
|
|
30
|
+
//# sourceMappingURL=create-customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers.mjs","sourceRoot":"","sources":["../../src/tools/customers/create-customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACzB,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "../..//index.mjs";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.CustomerPortalSession>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.CustomerPortalSession>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=create-customers-customer-portal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers-customer-portal.d.mts","sourceRoot":"","sources":["../../../src/tools/customers/customer-portal/create-customers-customer-portal.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,yFAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "../..//index.js";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.CustomerPortalSession>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.CustomerPortalSession>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=create-customers-customer-portal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers-customer-portal.d.ts","sourceRoot":"","sources":["../../../src/tools/customers/customer-portal/create-customers-customer-portal.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,yFAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'customers.customer_portal',
|
|
7
|
+
operation: 'write',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'create_customers_customer_portal',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
customer_id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
send_email: {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
description: 'If true, will send link to user.',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const handler = (client, args) => {
|
|
27
|
+
const { customer_id, ...body } = args;
|
|
28
|
+
return client.customers.customerPortal.create(customer_id, body);
|
|
29
|
+
};
|
|
30
|
+
exports.handler = handler;
|
|
31
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
32
|
+
//# sourceMappingURL=create-customers-customer-portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers-customer-portal.js","sourceRoot":"","sources":["../../../src/tools/customers/customer-portal/create-customers-customer-portal.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,kCAAkC;aAChD;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACtC,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'customers.customer_portal',
|
|
4
|
+
operation: 'write',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'create_customers_customer_portal',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
customer_id: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
send_email: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
description: 'If true, will send link to user.',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export const handler = (client, args) => {
|
|
24
|
+
const { customer_id, ...body } = args;
|
|
25
|
+
return client.customers.customerPortal.create(customer_id, body);
|
|
26
|
+
};
|
|
27
|
+
export default { metadata, tool, handler };
|
|
28
|
+
//# sourceMappingURL=create-customers-customer-portal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customers-customer-portal.mjs","sourceRoot":"","sources":["../../../src/tools/customers/customer-portal/create-customers-customer-portal.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,2BAA2B;IACrC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,kCAAkC;aAChD;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACtC,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").PagePromise<DodoPayments.Customers.CustomersDefaultPageNumberPagination, DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").PagePromise<DodoPayments.Customers.CustomersDefaultPageNumberPagination, DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=list-customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customers.d.mts","sourceRoot":"","sources":["../../src/tools/customers/list-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,0IAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").PagePromise<DodoPayments.Customers.CustomersDefaultPageNumberPagination, DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").PagePromise<DodoPayments.Customers.CustomersDefaultPageNumberPagination, DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=list-customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customers.d.ts","sourceRoot":"","sources":["../../src/tools/customers/list-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,0IAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'customers',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'list_customers',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
page_number: {
|
|
17
|
+
type: 'integer',
|
|
18
|
+
description: 'Page number default is 0',
|
|
19
|
+
},
|
|
20
|
+
page_size: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
description: 'Page size default is 10 max is 100',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const handler = (client, args) => {
|
|
28
|
+
const { ...body } = args;
|
|
29
|
+
return client.customers.list(body);
|
|
30
|
+
};
|
|
31
|
+
exports.handler = handler;
|
|
32
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
33
|
+
//# sourceMappingURL=list-customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customers.js","sourceRoot":"","sources":["../../src/tools/customers/list-customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,oCAAoC;aAClD;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACzB,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'customers',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'list_customers',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
page_number: {
|
|
14
|
+
type: 'integer',
|
|
15
|
+
description: 'Page number default is 0',
|
|
16
|
+
},
|
|
17
|
+
page_size: {
|
|
18
|
+
type: 'integer',
|
|
19
|
+
description: 'Page size default is 10 max is 100',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export const handler = (client, args) => {
|
|
25
|
+
const { ...body } = args;
|
|
26
|
+
return client.customers.list(body);
|
|
27
|
+
};
|
|
28
|
+
export default { metadata, tool, handler };
|
|
29
|
+
//# sourceMappingURL=list-customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-customers.mjs","sourceRoot":"","sources":["../../src/tools/customers/list-customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,oCAAoC;aAClD;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACzB,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-customers.d.mts","sourceRoot":"","sources":["../../src/tools/customers/retrieve-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,4EAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.js";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-customers.d.ts","sourceRoot":"","sources":["../../src/tools/customers/retrieve-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,4EAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
exports.metadata = {
|
|
6
|
+
resource: 'customers',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'retrieve_customers',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
customer_id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const handler = (client, args) => {
|
|
23
|
+
const { customer_id } = args;
|
|
24
|
+
return client.customers.retrieve(customer_id);
|
|
25
|
+
};
|
|
26
|
+
exports.handler = handler;
|
|
27
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
28
|
+
//# sourceMappingURL=retrieve-customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-customers.js","sourceRoot":"","sources":["../../src/tools/customers/retrieve-customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC7B,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'customers',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'retrieve_customers',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
customer_id: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const handler = (client, args) => {
|
|
20
|
+
const { customer_id } = args;
|
|
21
|
+
return client.customers.retrieve(customer_id);
|
|
22
|
+
};
|
|
23
|
+
export default { metadata, tool, handler };
|
|
24
|
+
//# sourceMappingURL=retrieve-customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-customers.mjs","sourceRoot":"","sources":["../../src/tools/customers/retrieve-customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAC7B,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
handler: (client: DodoPayments, args: any) => import("dodopayments/core").APIPromise<DodoPayments.Customers.Customer>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=update-customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-customers.d.mts","sourceRoot":"","sources":["../../src/tools/customers/update-customers.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,YAAY,MAAM,cAAc;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,4EAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|