@metronome/mcp 2.0.0 → 2.1.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/README.md +31 -21
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/index.ts +6 -0
- package/src/tools/v1/contracts/amend-v1-contracts.ts +1 -1
- package/src/tools/v1/contracts/create-v1-contracts.ts +9 -6
- package/src/tools/v1/contracts/list-balances-v1-contracts.ts +4 -0
- package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +1 -1
- package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +1 -1
- package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +5 -1
- package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +2 -1
- package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +2 -1
- package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +2 -2
- package/src/tools/v1/customers/create-v1-customers.ts +3 -0
- package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +1 -1
- package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
- package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/preview-events-v1-customers.ts +5 -3
- package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +1 -1
- package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +1 -0
- package/src/tools/v1/payments/attempt-v1-payments.ts +1 -1
- package/src/tools/v1/payments/cancel-v1-payments.ts +1 -1
- package/src/tools/v1/payments/list-v1-payments.ts +1 -1
- package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-v1-plans.ts +1 -1
- package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +60 -0
- package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +48 -0
- package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +65 -0
- package/src/tools/v2/contracts/edit-v2-contracts.ts +6 -3
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +6 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +6 -0
- package/tools/index.mjs.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.js +1 -1
- package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.js +6 -6
- package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.mjs +6 -6
- package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js +4 -0
- package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.mjs +4 -0
- package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +3 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +3 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +2 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +2 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +2 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +2 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.js +2 -2
- package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs +2 -2
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/create-v1-customers.js +2 -0
- package/tools/v1/customers/create-v1-customers.js.map +1 -1
- package/tools/v1/customers/create-v1-customers.mjs +2 -0
- package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.js +1 -1
- package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.js +4 -3
- package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.mjs +4 -3
- package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.js +1 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +1 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.js +1 -1
- package/tools/v1/payments/attempt-v1-payments.js.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.mjs +1 -1
- package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.js +1 -1
- package/tools/v1/payments/cancel-v1-payments.js.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.mjs +1 -1
- package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -1
- package/tools/v1/payments/list-v1-payments.js +1 -1
- package/tools/v1/payments/list-v1-payments.js.map +1 -1
- package/tools/v1/payments/list-v1-payments.mjs +1 -1
- package/tools/v1/payments/list-v1-payments.mjs.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.js +1 -1
- package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.js +1 -1
- package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.js +1 -1
- package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-v1-plans.js +1 -1
- package/tools/v1/plans/list-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +45 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +45 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +52 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +48 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +45 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +45 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +41 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +37 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +45 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +45 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +57 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +53 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -0
- package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.js +4 -3
- package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.mjs +4 -3
- package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'attempt_v1_payments',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attempt-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"attempt-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,k1GAAk1G;IACp1G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'attempt_v1_payments',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attempt-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"attempt-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,k1GAAk1G;IACp1G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'cancel_v1_payments',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"cancel-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,k3FAAk3F;IACp3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'cancel_v1_payments',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"cancel-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,k3FAAk3F;IACp3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_v1_payments',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,21FAA21F;IAC71F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2DAA2D;aACzE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,wBAAwB;iBAC/B;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;QACvC,KAAK,EAAE;YACL,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,UAAU,CAAC;aAC/D;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_v1_payments',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,21FAA21F;IAC71F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2DAA2D;aACzE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,wBAAwB;iBAC/B;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;QACvC,KAAK,EAAE;YACL,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,UAAU,CAAC;aAC/D;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'get_details_v1_plans',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/plan_get_details_response',\n $defs: {\n plan_get_details_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ]\n },\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/plan_get_details_response',\n $defs: {\n plan_get_details_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ]\n },\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"get-details-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,60IAA60I;IAC/0I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'get_details_v1_plans',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/plan_get_details_response',\n $defs: {\n plan_get_details_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ]\n },\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/plan_get_details_response',\n $defs: {\n plan_get_details_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ]\n },\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"get-details-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,60IAA60I;IAC/0I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_charges_v1_plans',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of charges of a specific plan.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_charges_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_charges_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n charge_type: {\n type: 'string',\n enum: [ 'usage',\n 'fixed',\n 'composite',\n 'minimum',\n 'seat'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n prices: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n tier: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates at what metric value the price applies.'\n },\n value: {\n type: 'number'\n },\n collection_interval: {\n type: 'number'\n },\n collection_schedule: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'tier',\n 'value'\n ]\n }\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n tier_reset_frequency: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the tier count resets every billing period.'\n },\n unit_conversion: {\n type: 'object',\n description: 'Specifies how quantities for usage based charges will be converted.',\n properties: {\n division_factor: {\n type: 'number',\n description: 'The conversion factor'\n },\n rounding_behavior: {\n type: 'string',\n description: 'Whether usage should be rounded down or up to the nearest whole number. If null, quantity will be rounded to 20 decimal places.',\n enum: [ 'floor',\n 'ceiling'\n ]\n }\n },\n required: [ 'division_factor'\n ]\n }\n },\n required: [ 'id',\n 'charge_type',\n 'credit_type',\n 'custom_fields',\n 'name',\n 'prices',\n 'product_id',\n 'product_name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of charges of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_charges_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_charges_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n charge_type: {\n type: 'string',\n enum: [ 'usage',\n 'fixed',\n 'composite',\n 'minimum',\n 'seat'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n prices: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n tier: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates at what metric value the price applies.'\n },\n value: {\n type: 'number'\n },\n collection_interval: {\n type: 'number'\n },\n collection_schedule: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'tier',\n 'value'\n ]\n }\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n tier_reset_frequency: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the tier count resets every billing period.'\n },\n unit_conversion: {\n type: 'object',\n description: 'Specifies how quantities for usage based charges will be converted.',\n properties: {\n division_factor: {\n type: 'number',\n description: 'The conversion factor'\n },\n rounding_behavior: {\n type: 'string',\n description: 'Whether usage should be rounded down or up to the nearest whole number. If null, quantity will be rounded to 20 decimal places.',\n enum: [ 'floor',\n 'ceiling'\n ]\n }\n },\n required: [ 'division_factor'\n ]\n }\n },\n required: [ 'id',\n 'charge_type',\n 'credit_type',\n 'custom_fields',\n 'name',\n 'prices',\n 'product_id',\n 'product_name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-charges-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-charges-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mCAAmC;IAC7C,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-charges-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-charges-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mCAAmC;IAC7C,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,+uHAA+uH;IACjvH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_charges_v1_plans',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of charges of a specific plan.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_charges_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_charges_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n charge_type: {\n type: 'string',\n enum: [ 'usage',\n 'fixed',\n 'composite',\n 'minimum',\n 'seat'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n prices: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n tier: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates at what metric value the price applies.'\n },\n value: {\n type: 'number'\n },\n collection_interval: {\n type: 'number'\n },\n collection_schedule: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'tier',\n 'value'\n ]\n }\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n tier_reset_frequency: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the tier count resets every billing period.'\n },\n unit_conversion: {\n type: 'object',\n description: 'Specifies how quantities for usage based charges will be converted.',\n properties: {\n division_factor: {\n type: 'number',\n description: 'The conversion factor'\n },\n rounding_behavior: {\n type: 'string',\n description: 'Whether usage should be rounded down or up to the nearest whole number. If null, quantity will be rounded to 20 decimal places.',\n enum: [ 'floor',\n 'ceiling'\n ]\n }\n },\n required: [ 'division_factor'\n ]\n }\n },\n required: [ 'id',\n 'charge_type',\n 'credit_type',\n 'custom_fields',\n 'name',\n 'prices',\n 'product_id',\n 'product_name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of charges of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_charges_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_charges_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n charge_type: {\n type: 'string',\n enum: [ 'usage',\n 'fixed',\n 'composite',\n 'minimum',\n 'seat'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n prices: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n tier: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates at what metric value the price applies.'\n },\n value: {\n type: 'number'\n },\n collection_interval: {\n type: 'number'\n },\n collection_schedule: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n }\n },\n required: [ 'tier',\n 'value'\n ]\n }\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n quantity: {\n type: 'number'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n tier_reset_frequency: {\n type: 'number',\n description: 'Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the tier count resets every billing period.'\n },\n unit_conversion: {\n type: 'object',\n description: 'Specifies how quantities for usage based charges will be converted.',\n properties: {\n division_factor: {\n type: 'number',\n description: 'The conversion factor'\n },\n rounding_behavior: {\n type: 'string',\n description: 'Whether usage should be rounded down or up to the nearest whole number. If null, quantity will be rounded to 20 decimal places.',\n enum: [ 'floor',\n 'ceiling'\n ]\n }\n },\n required: [ 'division_factor'\n ]\n }\n },\n required: [ 'id',\n 'charge_type',\n 'credit_type',\n 'custom_fields',\n 'name',\n 'prices',\n 'product_id',\n 'product_name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-charges-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-charges-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mCAAmC;IAC7C,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"list-charges-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-charges-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mCAAmC;IAC7C,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,+uHAA+uH;IACjvH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_customers_v1_plans',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of customers on a specific plan (by default, only currently active plans are included)\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_customers_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_customers_response: {\n type: 'object',\n properties: {\n customer_details: {\n $ref: '#/$defs/customer_detail'\n },\n plan_details: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_plan_id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n starting_on: {\n type: 'string',\n description: 'The start date of the plan',\n format: 'date-time'\n },\n ending_before: {\n type: 'string',\n description: 'The end date of the plan',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'customer_plan_id',\n 'name',\n 'starting_on'\n ]\n }\n },\n required: [ 'customer_details',\n 'plan_details'\n ]\n },\n customer_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n created_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was created.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_config: {\n type: 'object',\n properties: {\n salesforce_account_id: {\n type: 'string',\n description: 'The Salesforce account ID for the customer'\n }\n },\n required: [ 'salesforce_account_id'\n ]\n },\n external_id: {\n type: 'string',\n description: '(deprecated, use ingest_aliases instead) the first ID (Metronome or ingest alias) that can be used in usage events'\n },\n ingest_aliases: {\n type: 'array',\n description: 'aliases for this customer that can be used instead of the Metronome customer ID in usage events',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string'\n },\n updated_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was last updated.',\n format: 'date-time'\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was archived. Null if the customer is active.',\n format: 'date-time'\n },\n current_billable_status: {\n type: 'object',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.',\n properties: {\n value: {\n type: 'string',\n enum: [ 'billable',\n 'unbillable'\n ]\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'value'\n ]\n }\n },\n required: [ 'id',\n 'created_at',\n 'custom_fields',\n 'customer_config',\n 'external_id',\n 'ingest_aliases',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of customers on a specific plan (by default, only currently active plans are included). This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_customers_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_customers_response: {\n type: 'object',\n properties: {\n customer_details: {\n $ref: '#/$defs/customer_detail'\n },\n plan_details: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_plan_id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n starting_on: {\n type: 'string',\n description: 'The start date of the plan',\n format: 'date-time'\n },\n ending_before: {\n type: 'string',\n description: 'The end date of the plan',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'customer_plan_id',\n 'name',\n 'starting_on'\n ]\n }\n },\n required: [ 'customer_details',\n 'plan_details'\n ]\n },\n customer_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n created_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was created.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_config: {\n type: 'object',\n properties: {\n salesforce_account_id: {\n type: 'string',\n description: 'The Salesforce account ID for the customer'\n }\n },\n required: [ 'salesforce_account_id'\n ]\n },\n external_id: {\n type: 'string',\n description: '(deprecated, use ingest_aliases instead) the first ID (Metronome or ingest alias) that can be used in usage events'\n },\n ingest_aliases: {\n type: 'array',\n description: 'aliases for this customer that can be used instead of the Metronome customer ID in usage events',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string'\n },\n updated_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was last updated.',\n format: 'date-time'\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was archived. Null if the customer is active.',\n format: 'date-time'\n },\n current_billable_status: {\n type: 'object',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.',\n properties: {\n value: {\n type: 'string',\n enum: [ 'billable',\n 'unbillable'\n ]\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'value'\n ]\n }\n },\n required: [ 'id',\n 'created_at',\n 'custom_fields',\n 'customer_config',\n 'external_id',\n 'ingest_aliases',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customers-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-customers-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-customers-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-customers-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,i9IAAi9I;IACn9I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yaAAya;gBAC3a,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC;aAC7C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACxE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_customers_v1_plans',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of customers on a specific plan (by default, only currently active plans are included)\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_customers_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_customers_response: {\n type: 'object',\n properties: {\n customer_details: {\n $ref: '#/$defs/customer_detail'\n },\n plan_details: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_plan_id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n starting_on: {\n type: 'string',\n description: 'The start date of the plan',\n format: 'date-time'\n },\n ending_before: {\n type: 'string',\n description: 'The end date of the plan',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'customer_plan_id',\n 'name',\n 'starting_on'\n ]\n }\n },\n required: [ 'customer_details',\n 'plan_details'\n ]\n },\n customer_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n created_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was created.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_config: {\n type: 'object',\n properties: {\n salesforce_account_id: {\n type: 'string',\n description: 'The Salesforce account ID for the customer'\n }\n },\n required: [ 'salesforce_account_id'\n ]\n },\n external_id: {\n type: 'string',\n description: '(deprecated, use ingest_aliases instead) the first ID (Metronome or ingest alias) that can be used in usage events'\n },\n ingest_aliases: {\n type: 'array',\n description: 'aliases for this customer that can be used instead of the Metronome customer ID in usage events',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string'\n },\n updated_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was last updated.',\n format: 'date-time'\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was archived. Null if the customer is active.',\n format: 'date-time'\n },\n current_billable_status: {\n type: 'object',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.',\n properties: {\n value: {\n type: 'string',\n enum: [ 'billable',\n 'unbillable'\n ]\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'value'\n ]\n }\n },\n required: [ 'id',\n 'created_at',\n 'custom_fields',\n 'customer_config',\n 'external_id',\n 'ingest_aliases',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetches a list of customers on a specific plan (by default, only currently active plans are included). This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_customers_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_customers_response: {\n type: 'object',\n properties: {\n customer_details: {\n $ref: '#/$defs/customer_detail'\n },\n plan_details: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_plan_id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n starting_on: {\n type: 'string',\n description: 'The start date of the plan',\n format: 'date-time'\n },\n ending_before: {\n type: 'string',\n description: 'The end date of the plan',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'customer_plan_id',\n 'name',\n 'starting_on'\n ]\n }\n },\n required: [ 'customer_details',\n 'plan_details'\n ]\n },\n customer_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n created_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was created.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_config: {\n type: 'object',\n properties: {\n salesforce_account_id: {\n type: 'string',\n description: 'The Salesforce account ID for the customer'\n }\n },\n required: [ 'salesforce_account_id'\n ]\n },\n external_id: {\n type: 'string',\n description: '(deprecated, use ingest_aliases instead) the first ID (Metronome or ingest alias) that can be used in usage events'\n },\n ingest_aliases: {\n type: 'array',\n description: 'aliases for this customer that can be used instead of the Metronome customer ID in usage events',\n items: {\n type: 'string'\n }\n },\n name: {\n type: 'string'\n },\n updated_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was last updated.',\n format: 'date-time'\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the customer was archived. Null if the customer is active.',\n format: 'date-time'\n },\n current_billable_status: {\n type: 'object',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.',\n properties: {\n value: {\n type: 'string',\n enum: [ 'billable',\n 'unbillable'\n ]\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'value'\n ]\n }\n },\n required: [ 'id',\n 'created_at',\n 'custom_fields',\n 'customer_config',\n 'external_id',\n 'ingest_aliases',\n 'name',\n 'updated_at'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customers-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-customers-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-customers-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-customers-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,i9IAAi9I;IACn9I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yaAAya;gBAC3a,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC;aAC7C;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACxE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'list_v1_plans',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all available plans.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n description: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'description',\n 'name'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all available plans. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n description: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'description',\n 'name'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,6mCAA6mC;IAC/mC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/D,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'list_v1_plans',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all available plans.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n description: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'description',\n 'name'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all available plans. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/plan_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n plan_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n description: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'description',\n 'name'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list-v1-plans.mjs","sourceRoot":"","sources":["../../../src/tools/v1/plans/list-v1-plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,6mCAA6mC;IAC/mC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/D,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@metronome/mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Metronome from '@metronome/sdk';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
|
|
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
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=create-settings-v1-billing-providers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-settings-v1-billing-providers.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAiClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
|