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
package/tools/index.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.query = exports.endpoints = void 0;
|
|
8
|
+
const create_payments_1 = __importDefault(require("./payments/create-payments.js"));
|
|
9
|
+
const retrieve_payments_1 = __importDefault(require("./payments/retrieve-payments.js"));
|
|
10
|
+
const list_payments_1 = __importDefault(require("./payments/list-payments.js"));
|
|
11
|
+
const create_subscriptions_1 = __importDefault(require("./subscriptions/create-subscriptions.js"));
|
|
12
|
+
const retrieve_subscriptions_1 = __importDefault(require("./subscriptions/retrieve-subscriptions.js"));
|
|
13
|
+
const update_subscriptions_1 = __importDefault(require("./subscriptions/update-subscriptions.js"));
|
|
14
|
+
const list_subscriptions_1 = __importDefault(require("./subscriptions/list-subscriptions.js"));
|
|
15
|
+
const charge_subscriptions_1 = __importDefault(require("./subscriptions/charge-subscriptions.js"));
|
|
16
|
+
const retrieve_invoices_payments_1 = __importDefault(require("./invoices/payments/retrieve-invoices-payments.js"));
|
|
17
|
+
const activate_licenses_1 = __importDefault(require("./licenses/activate-licenses.js"));
|
|
18
|
+
const deactivate_licenses_1 = __importDefault(require("./licenses/deactivate-licenses.js"));
|
|
19
|
+
const validate_licenses_1 = __importDefault(require("./licenses/validate-licenses.js"));
|
|
20
|
+
const retrieve_license_keys_1 = __importDefault(require("./license-keys/retrieve-license-keys.js"));
|
|
21
|
+
const update_license_keys_1 = __importDefault(require("./license-keys/update-license-keys.js"));
|
|
22
|
+
const list_license_keys_1 = __importDefault(require("./license-keys/list-license-keys.js"));
|
|
23
|
+
const retrieve_license_key_instances_1 = __importDefault(require("./license-key-instances/retrieve-license-key-instances.js"));
|
|
24
|
+
const update_license_key_instances_1 = __importDefault(require("./license-key-instances/update-license-key-instances.js"));
|
|
25
|
+
const list_license_key_instances_1 = __importDefault(require("./license-key-instances/list-license-key-instances.js"));
|
|
26
|
+
const create_customers_1 = __importDefault(require("./customers/create-customers.js"));
|
|
27
|
+
const retrieve_customers_1 = __importDefault(require("./customers/retrieve-customers.js"));
|
|
28
|
+
const update_customers_1 = __importDefault(require("./customers/update-customers.js"));
|
|
29
|
+
const list_customers_1 = __importDefault(require("./customers/list-customers.js"));
|
|
30
|
+
const create_customers_customer_portal_1 = __importDefault(require("./customers/customer-portal/create-customers-customer-portal.js"));
|
|
31
|
+
const create_refunds_1 = __importDefault(require("./refunds/create-refunds.js"));
|
|
32
|
+
const retrieve_refunds_1 = __importDefault(require("./refunds/retrieve-refunds.js"));
|
|
33
|
+
const list_refunds_1 = __importDefault(require("./refunds/list-refunds.js"));
|
|
34
|
+
const retrieve_disputes_1 = __importDefault(require("./disputes/retrieve-disputes.js"));
|
|
35
|
+
const list_disputes_1 = __importDefault(require("./disputes/list-disputes.js"));
|
|
36
|
+
const list_payouts_1 = __importDefault(require("./payouts/list-payouts.js"));
|
|
37
|
+
const retrieve_webhook_events_1 = __importDefault(require("./webhook-events/retrieve-webhook-events.js"));
|
|
38
|
+
const list_webhook_events_1 = __importDefault(require("./webhook-events/list-webhook-events.js"));
|
|
39
|
+
const create_products_1 = __importDefault(require("./products/create-products.js"));
|
|
40
|
+
const retrieve_products_1 = __importDefault(require("./products/retrieve-products.js"));
|
|
41
|
+
const update_products_1 = __importDefault(require("./products/update-products.js"));
|
|
42
|
+
const list_products_1 = __importDefault(require("./products/list-products.js"));
|
|
43
|
+
const delete_products_1 = __importDefault(require("./products/delete-products.js"));
|
|
44
|
+
const unarchive_products_1 = __importDefault(require("./products/unarchive-products.js"));
|
|
45
|
+
const update_products_images_1 = __importDefault(require("./products/images/update-products-images.js"));
|
|
46
|
+
const list_supported_countries_misc_1 = __importDefault(require("./misc/list-supported-countries-misc.js"));
|
|
47
|
+
const create_discounts_1 = __importDefault(require("./discounts/create-discounts.js"));
|
|
48
|
+
const retrieve_discounts_1 = __importDefault(require("./discounts/retrieve-discounts.js"));
|
|
49
|
+
const update_discounts_1 = __importDefault(require("./discounts/update-discounts.js"));
|
|
50
|
+
const list_discounts_1 = __importDefault(require("./discounts/list-discounts.js"));
|
|
51
|
+
const delete_discounts_1 = __importDefault(require("./discounts/delete-discounts.js"));
|
|
52
|
+
exports.endpoints = [];
|
|
53
|
+
function addEndpoint(endpoint) {
|
|
54
|
+
exports.endpoints.push(endpoint);
|
|
55
|
+
}
|
|
56
|
+
addEndpoint(create_payments_1.default);
|
|
57
|
+
addEndpoint(retrieve_payments_1.default);
|
|
58
|
+
addEndpoint(list_payments_1.default);
|
|
59
|
+
addEndpoint(create_subscriptions_1.default);
|
|
60
|
+
addEndpoint(retrieve_subscriptions_1.default);
|
|
61
|
+
addEndpoint(update_subscriptions_1.default);
|
|
62
|
+
addEndpoint(list_subscriptions_1.default);
|
|
63
|
+
addEndpoint(charge_subscriptions_1.default);
|
|
64
|
+
addEndpoint(retrieve_invoices_payments_1.default);
|
|
65
|
+
addEndpoint(activate_licenses_1.default);
|
|
66
|
+
addEndpoint(deactivate_licenses_1.default);
|
|
67
|
+
addEndpoint(validate_licenses_1.default);
|
|
68
|
+
addEndpoint(retrieve_license_keys_1.default);
|
|
69
|
+
addEndpoint(update_license_keys_1.default);
|
|
70
|
+
addEndpoint(list_license_keys_1.default);
|
|
71
|
+
addEndpoint(retrieve_license_key_instances_1.default);
|
|
72
|
+
addEndpoint(update_license_key_instances_1.default);
|
|
73
|
+
addEndpoint(list_license_key_instances_1.default);
|
|
74
|
+
addEndpoint(create_customers_1.default);
|
|
75
|
+
addEndpoint(retrieve_customers_1.default);
|
|
76
|
+
addEndpoint(update_customers_1.default);
|
|
77
|
+
addEndpoint(list_customers_1.default);
|
|
78
|
+
addEndpoint(create_customers_customer_portal_1.default);
|
|
79
|
+
addEndpoint(create_refunds_1.default);
|
|
80
|
+
addEndpoint(retrieve_refunds_1.default);
|
|
81
|
+
addEndpoint(list_refunds_1.default);
|
|
82
|
+
addEndpoint(retrieve_disputes_1.default);
|
|
83
|
+
addEndpoint(list_disputes_1.default);
|
|
84
|
+
addEndpoint(list_payouts_1.default);
|
|
85
|
+
addEndpoint(retrieve_webhook_events_1.default);
|
|
86
|
+
addEndpoint(list_webhook_events_1.default);
|
|
87
|
+
addEndpoint(create_products_1.default);
|
|
88
|
+
addEndpoint(retrieve_products_1.default);
|
|
89
|
+
addEndpoint(update_products_1.default);
|
|
90
|
+
addEndpoint(list_products_1.default);
|
|
91
|
+
addEndpoint(delete_products_1.default);
|
|
92
|
+
addEndpoint(unarchive_products_1.default);
|
|
93
|
+
addEndpoint(update_products_images_1.default);
|
|
94
|
+
addEndpoint(list_supported_countries_misc_1.default);
|
|
95
|
+
addEndpoint(create_discounts_1.default);
|
|
96
|
+
addEndpoint(retrieve_discounts_1.default);
|
|
97
|
+
addEndpoint(update_discounts_1.default);
|
|
98
|
+
addEndpoint(list_discounts_1.default);
|
|
99
|
+
addEndpoint(delete_discounts_1.default);
|
|
100
|
+
function query(filters, endpoints) {
|
|
101
|
+
if (filters.length === 0) {
|
|
102
|
+
return endpoints;
|
|
103
|
+
}
|
|
104
|
+
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
105
|
+
return endpoints.filter((endpoint) => {
|
|
106
|
+
let included = false || allExcludes;
|
|
107
|
+
for (const filter of filters) {
|
|
108
|
+
if (match(filter, endpoint)) {
|
|
109
|
+
included = filter.op === 'include';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return included;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
exports.query = query;
|
|
116
|
+
function match({ type, value }, endpoint) {
|
|
117
|
+
switch (type) {
|
|
118
|
+
case 'resource': {
|
|
119
|
+
const regexStr = '^' + normalizeResource(value).replace(/\*/g, '.*') + '$';
|
|
120
|
+
const regex = new RegExp(regexStr);
|
|
121
|
+
return regex.test(normalizeResource(endpoint.metadata.resource));
|
|
122
|
+
}
|
|
123
|
+
case 'operation':
|
|
124
|
+
return endpoint.metadata.operation === value;
|
|
125
|
+
case 'tag':
|
|
126
|
+
return endpoint.metadata.tags.includes(value);
|
|
127
|
+
case 'tool':
|
|
128
|
+
return endpoint.tool.name === value;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function normalizeResource(resource) {
|
|
132
|
+
return resource.toLowerCase().replace(/[^a-z.*\-_]*/g, '');
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAKtF,oFAAyD;AACzD,wFAA6D;AAC7D,gFAAqD;AACrD,mGAAwE;AACxE,uGAA4E;AAC5E,mGAAwE;AACxE,+FAAoE;AACpE,mGAAwE;AACxE,mHAAwF;AACxF,wFAA6D;AAC7D,4FAAiE;AACjE,wFAA6D;AAC7D,oGAAyE;AACzE,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,CAAC,CAAC;AAC7D,CAAC"}
|
package/tools/index.mjs
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import create_payments from "./payments/create-payments.mjs";
|
|
3
|
+
import retrieve_payments from "./payments/retrieve-payments.mjs";
|
|
4
|
+
import list_payments from "./payments/list-payments.mjs";
|
|
5
|
+
import create_subscriptions from "./subscriptions/create-subscriptions.mjs";
|
|
6
|
+
import retrieve_subscriptions from "./subscriptions/retrieve-subscriptions.mjs";
|
|
7
|
+
import update_subscriptions from "./subscriptions/update-subscriptions.mjs";
|
|
8
|
+
import list_subscriptions from "./subscriptions/list-subscriptions.mjs";
|
|
9
|
+
import charge_subscriptions from "./subscriptions/charge-subscriptions.mjs";
|
|
10
|
+
import retrieve_invoices_payments from "./invoices/payments/retrieve-invoices-payments.mjs";
|
|
11
|
+
import activate_licenses from "./licenses/activate-licenses.mjs";
|
|
12
|
+
import deactivate_licenses from "./licenses/deactivate-licenses.mjs";
|
|
13
|
+
import validate_licenses from "./licenses/validate-licenses.mjs";
|
|
14
|
+
import retrieve_license_keys from "./license-keys/retrieve-license-keys.mjs";
|
|
15
|
+
import update_license_keys from "./license-keys/update-license-keys.mjs";
|
|
16
|
+
import list_license_keys from "./license-keys/list-license-keys.mjs";
|
|
17
|
+
import retrieve_license_key_instances from "./license-key-instances/retrieve-license-key-instances.mjs";
|
|
18
|
+
import update_license_key_instances from "./license-key-instances/update-license-key-instances.mjs";
|
|
19
|
+
import list_license_key_instances from "./license-key-instances/list-license-key-instances.mjs";
|
|
20
|
+
import create_customers from "./customers/create-customers.mjs";
|
|
21
|
+
import retrieve_customers from "./customers/retrieve-customers.mjs";
|
|
22
|
+
import update_customers from "./customers/update-customers.mjs";
|
|
23
|
+
import list_customers from "./customers/list-customers.mjs";
|
|
24
|
+
import create_customers_customer_portal from "./customers/customer-portal/create-customers-customer-portal.mjs";
|
|
25
|
+
import create_refunds from "./refunds/create-refunds.mjs";
|
|
26
|
+
import retrieve_refunds from "./refunds/retrieve-refunds.mjs";
|
|
27
|
+
import list_refunds from "./refunds/list-refunds.mjs";
|
|
28
|
+
import retrieve_disputes from "./disputes/retrieve-disputes.mjs";
|
|
29
|
+
import list_disputes from "./disputes/list-disputes.mjs";
|
|
30
|
+
import list_payouts from "./payouts/list-payouts.mjs";
|
|
31
|
+
import retrieve_webhook_events from "./webhook-events/retrieve-webhook-events.mjs";
|
|
32
|
+
import list_webhook_events from "./webhook-events/list-webhook-events.mjs";
|
|
33
|
+
import create_products from "./products/create-products.mjs";
|
|
34
|
+
import retrieve_products from "./products/retrieve-products.mjs";
|
|
35
|
+
import update_products from "./products/update-products.mjs";
|
|
36
|
+
import list_products from "./products/list-products.mjs";
|
|
37
|
+
import delete_products from "./products/delete-products.mjs";
|
|
38
|
+
import unarchive_products from "./products/unarchive-products.mjs";
|
|
39
|
+
import update_products_images from "./products/images/update-products-images.mjs";
|
|
40
|
+
import list_supported_countries_misc from "./misc/list-supported-countries-misc.mjs";
|
|
41
|
+
import create_discounts from "./discounts/create-discounts.mjs";
|
|
42
|
+
import retrieve_discounts from "./discounts/retrieve-discounts.mjs";
|
|
43
|
+
import update_discounts from "./discounts/update-discounts.mjs";
|
|
44
|
+
import list_discounts from "./discounts/list-discounts.mjs";
|
|
45
|
+
import delete_discounts from "./discounts/delete-discounts.mjs";
|
|
46
|
+
export const endpoints = [];
|
|
47
|
+
function addEndpoint(endpoint) {
|
|
48
|
+
endpoints.push(endpoint);
|
|
49
|
+
}
|
|
50
|
+
addEndpoint(create_payments);
|
|
51
|
+
addEndpoint(retrieve_payments);
|
|
52
|
+
addEndpoint(list_payments);
|
|
53
|
+
addEndpoint(create_subscriptions);
|
|
54
|
+
addEndpoint(retrieve_subscriptions);
|
|
55
|
+
addEndpoint(update_subscriptions);
|
|
56
|
+
addEndpoint(list_subscriptions);
|
|
57
|
+
addEndpoint(charge_subscriptions);
|
|
58
|
+
addEndpoint(retrieve_invoices_payments);
|
|
59
|
+
addEndpoint(activate_licenses);
|
|
60
|
+
addEndpoint(deactivate_licenses);
|
|
61
|
+
addEndpoint(validate_licenses);
|
|
62
|
+
addEndpoint(retrieve_license_keys);
|
|
63
|
+
addEndpoint(update_license_keys);
|
|
64
|
+
addEndpoint(list_license_keys);
|
|
65
|
+
addEndpoint(retrieve_license_key_instances);
|
|
66
|
+
addEndpoint(update_license_key_instances);
|
|
67
|
+
addEndpoint(list_license_key_instances);
|
|
68
|
+
addEndpoint(create_customers);
|
|
69
|
+
addEndpoint(retrieve_customers);
|
|
70
|
+
addEndpoint(update_customers);
|
|
71
|
+
addEndpoint(list_customers);
|
|
72
|
+
addEndpoint(create_customers_customer_portal);
|
|
73
|
+
addEndpoint(create_refunds);
|
|
74
|
+
addEndpoint(retrieve_refunds);
|
|
75
|
+
addEndpoint(list_refunds);
|
|
76
|
+
addEndpoint(retrieve_disputes);
|
|
77
|
+
addEndpoint(list_disputes);
|
|
78
|
+
addEndpoint(list_payouts);
|
|
79
|
+
addEndpoint(retrieve_webhook_events);
|
|
80
|
+
addEndpoint(list_webhook_events);
|
|
81
|
+
addEndpoint(create_products);
|
|
82
|
+
addEndpoint(retrieve_products);
|
|
83
|
+
addEndpoint(update_products);
|
|
84
|
+
addEndpoint(list_products);
|
|
85
|
+
addEndpoint(delete_products);
|
|
86
|
+
addEndpoint(unarchive_products);
|
|
87
|
+
addEndpoint(update_products_images);
|
|
88
|
+
addEndpoint(list_supported_countries_misc);
|
|
89
|
+
addEndpoint(create_discounts);
|
|
90
|
+
addEndpoint(retrieve_discounts);
|
|
91
|
+
addEndpoint(update_discounts);
|
|
92
|
+
addEndpoint(list_discounts);
|
|
93
|
+
addEndpoint(delete_discounts);
|
|
94
|
+
export function query(filters, endpoints) {
|
|
95
|
+
if (filters.length === 0) {
|
|
96
|
+
return endpoints;
|
|
97
|
+
}
|
|
98
|
+
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
99
|
+
return endpoints.filter((endpoint) => {
|
|
100
|
+
let included = false || allExcludes;
|
|
101
|
+
for (const filter of filters) {
|
|
102
|
+
if (match(filter, endpoint)) {
|
|
103
|
+
included = filter.op === 'include';
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return included;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function match({ type, value }, endpoint) {
|
|
110
|
+
switch (type) {
|
|
111
|
+
case 'resource': {
|
|
112
|
+
const regexStr = '^' + normalizeResource(value).replace(/\*/g, '.*') + '$';
|
|
113
|
+
const regex = new RegExp(regexStr);
|
|
114
|
+
return regex.test(normalizeResource(endpoint.metadata.resource));
|
|
115
|
+
}
|
|
116
|
+
case 'operation':
|
|
117
|
+
return endpoint.metadata.operation === value;
|
|
118
|
+
case 'tag':
|
|
119
|
+
return endpoint.metadata.tags.includes(value);
|
|
120
|
+
case 'tool':
|
|
121
|
+
return endpoint.tool.name === value;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function normalizeResource(resource) {
|
|
125
|
+
return resource.toLowerCase().replace(/[^a-z.*\-_]*/g, '');
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAK/E,eAAe;OACf,iBAAiB;OACjB,aAAa;OACb,oBAAoB;OACpB,sBAAsB;OACtB,oBAAoB;OACpB,kBAAkB;OAClB,oBAAoB;OACpB,0BAA0B;OAC1B,iBAAiB;OACjB,mBAAmB;OACnB,iBAAiB;OACjB,qBAAqB;OACrB,mBAAmB;OACnB,iBAAiB;OACjB,8BAA8B;OAC9B,4BAA4B;OAC5B,0BAA0B;OAC1B,gBAAgB;OAChB,kBAAkB;OAClB,gBAAgB;OAChB,cAAc;OACd,gCAAgC;OAChC,cAAc;OACd,gBAAgB;OAChB,YAAY;OACZ,iBAAiB;OACjB,a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YAC5B,IAAI,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;gBAC3B,QAAQ,GAAG,MAAM,CAAC,EAAE,KAAK,SAAS,CAAC;aACpC;SACF;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAU,EAAE,QAAkB;IACxD,QAAQ,IAAI,EAAE;QACZ,KAAK,UAAU,CAAC,CAAC;YACf,MAAM,QAAQ,GAAG,GAAG,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC;YAC3E,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;SAClE;QACD,KAAK,WAAW;YACd,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,KAAK,KAAK,CAAC;QAC/C,KAAK,KAAK;YACR,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;KACvC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7D,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<void>;
|
|
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<void>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-invoices-payments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-invoices-payments.d.mts","sourceRoot":"","sources":["../../../src/tools/invoices/payments/retrieve-invoices-payments.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,iDAGtD,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<void>;
|
|
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<void>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-invoices-payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-invoices-payments.d.ts","sourceRoot":"","sources":["../../../src/tools/invoices/payments/retrieve-invoices-payments.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,iDAGtD,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: 'invoices.payments',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'retrieve_invoices_payments',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
payment_id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const handler = (client, args) => {
|
|
23
|
+
const { payment_id } = args;
|
|
24
|
+
return client.invoices.payments.retrieve(payment_id);
|
|
25
|
+
};
|
|
26
|
+
exports.handler = handler;
|
|
27
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
28
|
+
//# sourceMappingURL=retrieve-invoices-payments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-invoices-payments.js","sourceRoot":"","sources":["../../../src/tools/invoices/payments/retrieve-invoices-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,mBAAmB;IAC7B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACvD,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: 'invoices.payments',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'retrieve_invoices_payments',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
payment_id: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const handler = (client, args) => {
|
|
20
|
+
const { payment_id } = args;
|
|
21
|
+
return client.invoices.payments.retrieve(payment_id);
|
|
22
|
+
};
|
|
23
|
+
export default { metadata, tool, handler };
|
|
24
|
+
//# sourceMappingURL=retrieve-invoices-payments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-invoices-payments.mjs","sourceRoot":"","sources":["../../../src/tools/invoices/payments/retrieve-invoices-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,mBAAmB;IAC7B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACvD,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.LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination, DodoPayments.LicenseKeyInstances.LicenseKeyInstance>;
|
|
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.LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination, DodoPayments.LicenseKeyInstances.LicenseKeyInstance>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=list-license-key-instances.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-license-key-instances.d.mts","sourceRoot":"","sources":["../../src/tools/license-key-instances/list-license-key-instances.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,IAoBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,kLAGtD,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.LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination, DodoPayments.LicenseKeyInstances.LicenseKeyInstance>;
|
|
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.LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination, DodoPayments.LicenseKeyInstances.LicenseKeyInstance>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=list-license-key-instances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-license-key-instances.d.ts","sourceRoot":"","sources":["../../src/tools/license-key-instances/list-license-key-instances.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,IAoBlB,CAAC;AAEF,eAAO,MAAM,OAAO,WAAY,YAAY,QAAQ,GAAG,kLAGtD,CAAC;;;;;;;;;;;;;;;;;AAEF,wBAA2C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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: 'license_key_instances',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'list_license_key_instances',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
license_key_id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'Filter by license key ID',
|
|
19
|
+
},
|
|
20
|
+
page_number: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
description: 'Page number default is 0',
|
|
23
|
+
},
|
|
24
|
+
page_size: {
|
|
25
|
+
type: 'integer',
|
|
26
|
+
description: 'Page size default is 10 max is 100',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const handler = (client, args) => {
|
|
32
|
+
const { ...body } = args;
|
|
33
|
+
return client.licenseKeyInstances.list(body);
|
|
34
|
+
};
|
|
35
|
+
exports.handler = handler;
|
|
36
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
37
|
+
//# sourceMappingURL=list-license-key-instances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-license-key-instances.js","sourceRoot":"","sources":["../../src/tools/license-key-instances/list-license-key-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,uBAAuB;IACjC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,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,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,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,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'license_key_instances',
|
|
4
|
+
operation: 'read',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'list_license_key_instances',
|
|
9
|
+
description: '',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
license_key_id: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Filter by license key ID',
|
|
16
|
+
},
|
|
17
|
+
page_number: {
|
|
18
|
+
type: 'integer',
|
|
19
|
+
description: 'Page number default is 0',
|
|
20
|
+
},
|
|
21
|
+
page_size: {
|
|
22
|
+
type: 'integer',
|
|
23
|
+
description: 'Page size default is 10 max is 100',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const handler = (client, args) => {
|
|
29
|
+
const { ...body } = args;
|
|
30
|
+
return client.licenseKeyInstances.list(body);
|
|
31
|
+
};
|
|
32
|
+
export default { metadata, tool, handler };
|
|
33
|
+
//# sourceMappingURL=list-license-key-instances.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-license-key-instances.mjs","sourceRoot":"","sources":["../../src/tools/license-key-instances/list-license-key-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,uBAAuB;IACjC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,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,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,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.LicenseKeyInstances.LicenseKeyInstance>;
|
|
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.LicenseKeyInstances.LicenseKeyInstance>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-license-key-instances.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-license-key-instances.d.mts","sourceRoot":"","sources":["../../src/tools/license-key-instances/retrieve-license-key-instances.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,gGAGtD,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.LicenseKeyInstances.LicenseKeyInstance>;
|
|
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.LicenseKeyInstances.LicenseKeyInstance>;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=retrieve-license-key-instances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-license-key-instances.d.ts","sourceRoot":"","sources":["../../src/tools/license-key-instances/retrieve-license-key-instances.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,gGAGtD,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: 'license_key_instances',
|
|
7
|
+
operation: 'read',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'retrieve_license_key_instances',
|
|
12
|
+
description: '',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
id: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const handler = (client, args) => {
|
|
23
|
+
const { id } = args;
|
|
24
|
+
return client.licenseKeyInstances.retrieve(id);
|
|
25
|
+
};
|
|
26
|
+
exports.handler = handler;
|
|
27
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
28
|
+
//# sourceMappingURL=retrieve-license-key-instances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-license-key-instances.js","sourceRoot":"","sources":["../../src/tools/license-key-instances/retrieve-license-key-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,uBAAuB;IACjC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAoB,EAAE,IAAS,EAAE,EAAE;IACzD,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;IACpB,OAAO,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACjD,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|