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,159 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import DodoPayments from 'dodopayments';
|
|
4
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
|
|
6
|
+
import create_payments from './payments/create-payments';
|
|
7
|
+
import retrieve_payments from './payments/retrieve-payments';
|
|
8
|
+
import list_payments from './payments/list-payments';
|
|
9
|
+
import create_subscriptions from './subscriptions/create-subscriptions';
|
|
10
|
+
import retrieve_subscriptions from './subscriptions/retrieve-subscriptions';
|
|
11
|
+
import update_subscriptions from './subscriptions/update-subscriptions';
|
|
12
|
+
import list_subscriptions from './subscriptions/list-subscriptions';
|
|
13
|
+
import charge_subscriptions from './subscriptions/charge-subscriptions';
|
|
14
|
+
import retrieve_invoices_payments from './invoices/payments/retrieve-invoices-payments';
|
|
15
|
+
import activate_licenses from './licenses/activate-licenses';
|
|
16
|
+
import deactivate_licenses from './licenses/deactivate-licenses';
|
|
17
|
+
import validate_licenses from './licenses/validate-licenses';
|
|
18
|
+
import retrieve_license_keys from './license-keys/retrieve-license-keys';
|
|
19
|
+
import update_license_keys from './license-keys/update-license-keys';
|
|
20
|
+
import list_license_keys from './license-keys/list-license-keys';
|
|
21
|
+
import retrieve_license_key_instances from './license-key-instances/retrieve-license-key-instances';
|
|
22
|
+
import update_license_key_instances from './license-key-instances/update-license-key-instances';
|
|
23
|
+
import list_license_key_instances from './license-key-instances/list-license-key-instances';
|
|
24
|
+
import create_customers from './customers/create-customers';
|
|
25
|
+
import retrieve_customers from './customers/retrieve-customers';
|
|
26
|
+
import update_customers from './customers/update-customers';
|
|
27
|
+
import list_customers from './customers/list-customers';
|
|
28
|
+
import create_customers_customer_portal from './customers/customer-portal/create-customers-customer-portal';
|
|
29
|
+
import create_refunds from './refunds/create-refunds';
|
|
30
|
+
import retrieve_refunds from './refunds/retrieve-refunds';
|
|
31
|
+
import list_refunds from './refunds/list-refunds';
|
|
32
|
+
import retrieve_disputes from './disputes/retrieve-disputes';
|
|
33
|
+
import list_disputes from './disputes/list-disputes';
|
|
34
|
+
import list_payouts from './payouts/list-payouts';
|
|
35
|
+
import retrieve_webhook_events from './webhook-events/retrieve-webhook-events';
|
|
36
|
+
import list_webhook_events from './webhook-events/list-webhook-events';
|
|
37
|
+
import create_products from './products/create-products';
|
|
38
|
+
import retrieve_products from './products/retrieve-products';
|
|
39
|
+
import update_products from './products/update-products';
|
|
40
|
+
import list_products from './products/list-products';
|
|
41
|
+
import delete_products from './products/delete-products';
|
|
42
|
+
import unarchive_products from './products/unarchive-products';
|
|
43
|
+
import update_products_images from './products/images/update-products-images';
|
|
44
|
+
import list_supported_countries_misc from './misc/list-supported-countries-misc';
|
|
45
|
+
import create_discounts from './discounts/create-discounts';
|
|
46
|
+
import retrieve_discounts from './discounts/retrieve-discounts';
|
|
47
|
+
import update_discounts from './discounts/update-discounts';
|
|
48
|
+
import list_discounts from './discounts/list-discounts';
|
|
49
|
+
import delete_discounts from './discounts/delete-discounts';
|
|
50
|
+
|
|
51
|
+
export type HandlerFunction = (client: DodoPayments, args: any) => Promise<any>;
|
|
52
|
+
|
|
53
|
+
export type Metadata = {
|
|
54
|
+
resource: string;
|
|
55
|
+
operation: 'read' | 'write';
|
|
56
|
+
tags: string[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type Endpoint = {
|
|
60
|
+
metadata: Metadata;
|
|
61
|
+
tool: Tool;
|
|
62
|
+
handler: HandlerFunction;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const endpoints: Endpoint[] = [];
|
|
66
|
+
|
|
67
|
+
function addEndpoint(endpoint: Endpoint) {
|
|
68
|
+
endpoints.push(endpoint);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
addEndpoint(create_payments);
|
|
72
|
+
addEndpoint(retrieve_payments);
|
|
73
|
+
addEndpoint(list_payments);
|
|
74
|
+
addEndpoint(create_subscriptions);
|
|
75
|
+
addEndpoint(retrieve_subscriptions);
|
|
76
|
+
addEndpoint(update_subscriptions);
|
|
77
|
+
addEndpoint(list_subscriptions);
|
|
78
|
+
addEndpoint(charge_subscriptions);
|
|
79
|
+
addEndpoint(retrieve_invoices_payments);
|
|
80
|
+
addEndpoint(activate_licenses);
|
|
81
|
+
addEndpoint(deactivate_licenses);
|
|
82
|
+
addEndpoint(validate_licenses);
|
|
83
|
+
addEndpoint(retrieve_license_keys);
|
|
84
|
+
addEndpoint(update_license_keys);
|
|
85
|
+
addEndpoint(list_license_keys);
|
|
86
|
+
addEndpoint(retrieve_license_key_instances);
|
|
87
|
+
addEndpoint(update_license_key_instances);
|
|
88
|
+
addEndpoint(list_license_key_instances);
|
|
89
|
+
addEndpoint(create_customers);
|
|
90
|
+
addEndpoint(retrieve_customers);
|
|
91
|
+
addEndpoint(update_customers);
|
|
92
|
+
addEndpoint(list_customers);
|
|
93
|
+
addEndpoint(create_customers_customer_portal);
|
|
94
|
+
addEndpoint(create_refunds);
|
|
95
|
+
addEndpoint(retrieve_refunds);
|
|
96
|
+
addEndpoint(list_refunds);
|
|
97
|
+
addEndpoint(retrieve_disputes);
|
|
98
|
+
addEndpoint(list_disputes);
|
|
99
|
+
addEndpoint(list_payouts);
|
|
100
|
+
addEndpoint(retrieve_webhook_events);
|
|
101
|
+
addEndpoint(list_webhook_events);
|
|
102
|
+
addEndpoint(create_products);
|
|
103
|
+
addEndpoint(retrieve_products);
|
|
104
|
+
addEndpoint(update_products);
|
|
105
|
+
addEndpoint(list_products);
|
|
106
|
+
addEndpoint(delete_products);
|
|
107
|
+
addEndpoint(unarchive_products);
|
|
108
|
+
addEndpoint(update_products_images);
|
|
109
|
+
addEndpoint(list_supported_countries_misc);
|
|
110
|
+
addEndpoint(create_discounts);
|
|
111
|
+
addEndpoint(retrieve_discounts);
|
|
112
|
+
addEndpoint(update_discounts);
|
|
113
|
+
addEndpoint(list_discounts);
|
|
114
|
+
addEndpoint(delete_discounts);
|
|
115
|
+
|
|
116
|
+
export type Filter = {
|
|
117
|
+
type: 'resource' | 'operation' | 'tag' | 'tool';
|
|
118
|
+
op: 'include' | 'exclude';
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
|
|
123
|
+
if (filters.length === 0) {
|
|
124
|
+
return endpoints;
|
|
125
|
+
}
|
|
126
|
+
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
127
|
+
|
|
128
|
+
return endpoints.filter((endpoint: Endpoint) => {
|
|
129
|
+
let included = false || allExcludes;
|
|
130
|
+
|
|
131
|
+
for (const filter of filters) {
|
|
132
|
+
if (match(filter, endpoint)) {
|
|
133
|
+
included = filter.op === 'include';
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return included;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function match({ type, value }: Filter, endpoint: Endpoint): boolean {
|
|
142
|
+
switch (type) {
|
|
143
|
+
case 'resource': {
|
|
144
|
+
const regexStr = '^' + normalizeResource(value).replace(/\*/g, '.*') + '$';
|
|
145
|
+
const regex = new RegExp(regexStr);
|
|
146
|
+
return regex.test(normalizeResource(endpoint.metadata.resource));
|
|
147
|
+
}
|
|
148
|
+
case 'operation':
|
|
149
|
+
return endpoint.metadata.operation === value;
|
|
150
|
+
case 'tag':
|
|
151
|
+
return endpoint.metadata.tags.includes(value);
|
|
152
|
+
case 'tool':
|
|
153
|
+
return endpoint.tool.name === value;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function normalizeResource(resource: string): string {
|
|
158
|
+
return resource.toLowerCase().replace(/[^a-z.*\-_]*/g, '');
|
|
159
|
+
}
|
|
@@ -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: 'invoices.payments',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_invoices_payments',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
payment_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { payment_id } = args;
|
|
28
|
+
return client.invoices.payments.retrieve(payment_id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,40 @@
|
|
|
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: 'license_key_instances',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_license_key_instances',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
license_key_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Filter by license key ID',
|
|
22
|
+
},
|
|
23
|
+
page_number: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
description: 'Page number default is 0',
|
|
26
|
+
},
|
|
27
|
+
page_size: {
|
|
28
|
+
type: 'integer',
|
|
29
|
+
description: 'Page size default is 10 max is 100',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
36
|
+
const { ...body } = args;
|
|
37
|
+
return client.licenseKeyInstances.list(body);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
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: 'license_key_instances',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_license_key_instances',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { id } = args;
|
|
28
|
+
return client.licenseKeyInstances.retrieve(id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,34 @@
|
|
|
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: 'license_key_instances',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_license_key_instances',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
30
|
+
const { id, ...body } = args;
|
|
31
|
+
return client.licenseKeyInstances.update(id, body);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,48 @@
|
|
|
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: 'license_keys',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_license_keys',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
customer_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Filter by customer ID',
|
|
22
|
+
},
|
|
23
|
+
page_number: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
description: 'Page number default is 0',
|
|
26
|
+
},
|
|
27
|
+
page_size: {
|
|
28
|
+
type: 'integer',
|
|
29
|
+
description: 'Page size default is 10 max is 100',
|
|
30
|
+
},
|
|
31
|
+
product_id: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Filter by product ID',
|
|
34
|
+
},
|
|
35
|
+
status: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: ['active', 'expired', 'disabled'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
44
|
+
const { ...body } = args;
|
|
45
|
+
return client.licenseKeys.list(body);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
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: 'license_keys',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_license_keys',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { id } = args;
|
|
28
|
+
return client.licenseKeys.retrieve(id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,47 @@
|
|
|
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: 'license_keys',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_license_keys',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
activations_limit: {
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description:
|
|
25
|
+
'The updated activation limit for the license key.\nUse `null` to remove the limit, or omit this field to leave it unchanged.',
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
description:
|
|
30
|
+
'Indicates whether the license key should be disabled.\nA value of `true` disables the key, while `false` enables it. Omit this field to leave it unchanged.',
|
|
31
|
+
},
|
|
32
|
+
expires_at: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description:
|
|
35
|
+
'The updated expiration timestamp for the license key in UTC.\nUse `null` to remove the expiration date, or omit this field to leave it unchanged.',
|
|
36
|
+
format: 'date-time',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
43
|
+
const { id, ...body } = args;
|
|
44
|
+
return client.licenseKeys.update(id, body);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,34 @@
|
|
|
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: 'licenses',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'activate_licenses',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
license_key: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
30
|
+
const { ...body } = args;
|
|
31
|
+
return client.licenses.activate(body);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,34 @@
|
|
|
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: 'licenses',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'deactivate_licenses',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
license_key: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
license_key_instance_id: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
30
|
+
const { ...body } = args;
|
|
31
|
+
return client.licenses.deactivate(body);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,34 @@
|
|
|
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: 'licenses',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'validate_licenses',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
license_key: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
license_key_instance_id: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
30
|
+
const { ...body } = args;
|
|
31
|
+
return client.licenses.validate(body);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,27 @@
|
|
|
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: 'misc',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_supported_countries_misc',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
23
|
+
const {} = args;
|
|
24
|
+
return client.misc.listSupportedCountries();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default { metadata, tool, handler };
|