@flexprice/mcp-server 2.0.20 → 2.0.21
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/bin/mcp-server.js +6007 -4324
- package/bin/mcp-server.js.map +221 -177
- package/bun.lock +79 -63
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts +16 -0
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
- package/esm/funcs/{subscriptionsListSubscriptionPauses.js → customersGetCustomerEntitlementsByExternalID.js} +9 -9
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
- package/esm/funcs/{plansPostPlansIdClone.d.ts → plansClonePlan.d.ts} +3 -3
- package/esm/funcs/plansClonePlan.d.ts.map +1 -0
- package/esm/funcs/{plansPostPlansIdClone.js → plansClonePlan.js} +5 -5
- package/esm/funcs/plansClonePlan.js.map +1 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +16 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/funcs/{subscriptionsResumeSubscription.js → subscriptionsPreviewSubscriptionModify.js} +8 -8
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts +16 -0
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
- package/esm/funcs/{subscriptionsPauseSubscription.js → subscriptionsQuerySubscriptionLineItems.js} +10 -16
- package/esm/funcs/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
- package/esm/landing-page.d.ts.map +1 -1
- package/esm/landing-page.js +8 -2
- package/esm/landing-page.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +7 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/retries.js +7 -0
- package/esm/lib/retries.js.map +1 -1
- package/esm/lib/sdks.js +0 -2
- package/esm/lib/sdks.js.map +1 -1
- package/esm/mcp-server/cli/serve/command.js +1 -1
- package/esm/mcp-server/cli/serve/command.js.map +1 -1
- package/esm/mcp-server/cli/serve/impl.js +1 -1
- package/esm/mcp-server/cli/serve/impl.js.map +1 -1
- package/esm/mcp-server/cli/start/command.js +1 -1
- package/esm/mcp-server/cli/start/command.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +9 -9
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts +7 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js +35 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
- package/esm/mcp-server/tools/plansClonePlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansClonePlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/{plansPostPlansIdClone.js → plansClonePlan.js} +7 -7
- package/esm/mcp-server/tools/plansClonePlan.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +35 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js +35 -0
- package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +11 -9
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/addaddonrequest.d.ts +4 -0
- package/esm/models/addaddonrequest.d.ts.map +1 -1
- package/esm/models/addaddonrequest.js +4 -0
- package/esm/models/addaddonrequest.js.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.d.ts +4 -0
- package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.js +4 -0
- package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
- package/esm/models/addon.d.ts +0 -2
- package/esm/models/addon.d.ts.map +1 -1
- package/esm/models/addon.js +0 -2
- package/esm/models/addon.js.map +1 -1
- package/esm/models/addoncadence.d.ts +12 -0
- package/esm/models/addoncadence.d.ts.map +1 -0
- package/esm/models/addoncadence.js +13 -0
- package/esm/models/addoncadence.js.map +1 -0
- package/esm/models/addonresponse.d.ts +0 -2
- package/esm/models/addonresponse.d.ts.map +1 -1
- package/esm/models/addonresponse.js +0 -2
- package/esm/models/addonresponse.js.map +1 -1
- package/esm/models/addonstatus.d.ts +3 -3
- package/esm/models/addonstatus.js +2 -2
- package/esm/models/addonstatus.js.map +1 -1
- package/esm/models/address.d.ts +11 -0
- package/esm/models/address.d.ts.map +1 -0
- package/esm/models/address.js +13 -0
- package/esm/models/address.js.map +1 -0
- package/esm/models/aggregatedentitlement.d.ts +5 -0
- package/esm/models/aggregatedentitlement.d.ts.map +1 -1
- package/esm/models/aggregatedentitlement.js +3 -1
- package/esm/models/aggregatedentitlement.js.map +1 -1
- package/esm/models/alertstate.d.ts +16 -0
- package/esm/models/alertstate.d.ts.map +1 -0
- package/esm/models/alertstate.js +17 -0
- package/esm/models/alertstate.js.map +1 -0
- package/esm/models/applicationstatus.d.ts +1 -1
- package/esm/models/attributedtocustomerresult.d.ts +11 -0
- package/esm/models/attributedtocustomerresult.d.ts.map +1 -0
- package/esm/models/attributedtocustomerresult.js +13 -0
- package/esm/models/attributedtocustomerresult.js.map +1 -0
- package/esm/models/autotopup.d.ts +9 -0
- package/esm/models/autotopup.d.ts.map +1 -0
- package/esm/models/autotopup.js +11 -0
- package/esm/models/autotopup.js.map +1 -0
- package/esm/models/billingcadence.d.ts +0 -2
- package/esm/models/billingcadence.d.ts.map +1 -1
- package/esm/models/billingcadence.js +0 -2
- package/esm/models/billingcadence.js.map +1 -1
- package/esm/models/billingperiod.d.ts +2 -0
- package/esm/models/billingperiod.d.ts.map +1 -1
- package/esm/models/billingperiod.js +2 -0
- package/esm/models/billingperiod.js.map +1 -1
- package/esm/models/bucket.d.ts +7 -0
- package/esm/models/bucket.d.ts.map +1 -0
- package/esm/models/bucket.js +9 -0
- package/esm/models/bucket.js.map +1 -0
- package/esm/models/bucketsummary.d.ts +18 -0
- package/esm/models/bucketsummary.d.ts.map +1 -0
- package/esm/models/bucketsummary.js +20 -0
- package/esm/models/bucketsummary.js.map +1 -0
- package/esm/models/cancelsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/cancelsubscriptionrequest.js +1 -1
- package/esm/models/cancelsubscriptionrequest.js.map +1 -1
- package/esm/models/changedinvoice.d.ts +14 -0
- package/esm/models/changedinvoice.d.ts.map +1 -0
- package/esm/models/changedinvoice.js +16 -0
- package/esm/models/changedinvoice.js.map +1 -0
- package/esm/models/changedinvoiceaction.d.ts +18 -0
- package/esm/models/changedinvoiceaction.d.ts.map +1 -0
- package/esm/models/changedinvoiceaction.js +16 -0
- package/esm/models/changedinvoiceaction.js.map +1 -0
- package/esm/models/changedinvoicestatus.d.ts +18 -0
- package/esm/models/changedinvoicestatus.d.ts.map +1 -0
- package/esm/models/changedinvoicestatus.js +16 -0
- package/esm/models/changedinvoicestatus.js.map +1 -0
- package/esm/models/changedlineitem.d.ts +12 -0
- package/esm/models/changedlineitem.d.ts.map +1 -0
- package/esm/models/changedlineitem.js +14 -0
- package/esm/models/changedlineitem.js.map +1 -0
- package/esm/models/changedlineitemaction.d.ts +20 -0
- package/esm/models/changedlineitemaction.d.ts.map +1 -0
- package/esm/models/changedlineitemaction.js +18 -0
- package/esm/models/changedlineitemaction.js.map +1 -0
- package/esm/models/changedresources.d.ts +11 -0
- package/esm/models/changedresources.d.ts.map +1 -0
- package/esm/models/changedresources.js +13 -0
- package/esm/models/changedresources.js.map +1 -0
- package/esm/models/changedsubscription.d.ts +12 -0
- package/esm/models/changedsubscription.d.ts.map +1 -0
- package/esm/models/changedsubscription.js +15 -0
- package/esm/models/changedsubscription.js.map +1 -0
- package/esm/models/changedsubscriptionaction.d.ts +18 -0
- package/esm/models/changedsubscriptionaction.d.ts.map +1 -0
- package/esm/models/changedsubscriptionaction.js +16 -0
- package/esm/models/changedsubscriptionaction.js.map +1 -0
- package/esm/models/cloneplanop.d.ts +12 -0
- package/esm/models/cloneplanop.d.ts.map +1 -0
- package/esm/models/{postplansidcloneop.js → cloneplanop.js} +4 -3
- package/esm/models/cloneplanop.js.map +1 -0
- package/esm/models/commitmentbucketrequest.d.ts +16 -0
- package/esm/models/commitmentbucketrequest.d.ts.map +1 -0
- package/esm/models/commitmentbucketrequest.js +18 -0
- package/esm/models/commitmentbucketrequest.js.map +1 -0
- package/esm/models/couponassociationresponse.d.ts +4 -2
- package/esm/models/couponassociationresponse.d.ts.map +1 -1
- package/esm/models/couponassociationresponse.js +4 -2
- package/esm/models/couponassociationresponse.js.map +1 -1
- package/esm/models/{coupon.d.ts → couponresponse.d.ts} +4 -3
- package/esm/models/couponresponse.d.ts.map +1 -0
- package/esm/models/{coupon.js → couponresponse.js} +3 -2
- package/esm/models/couponresponse.js.map +1 -0
- package/esm/models/createcustomerrequest.d.ts +1 -0
- package/esm/models/createcustomerrequest.d.ts.map +1 -1
- package/esm/models/createcustomerrequest.js +1 -0
- package/esm/models/createcustomerrequest.js.map +1 -1
- package/esm/models/createinvoicelineitemrequest.d.ts +3 -0
- package/esm/models/createinvoicelineitemrequest.d.ts.map +1 -1
- package/esm/models/createinvoicelineitemrequest.js +3 -0
- package/esm/models/createinvoicelineitemrequest.js.map +1 -1
- package/esm/models/createinvoicerequest.d.ts +1 -0
- package/esm/models/createinvoicerequest.d.ts.map +1 -1
- package/esm/models/createinvoicerequest.js +1 -0
- package/esm/models/createinvoicerequest.js.map +1 -1
- package/esm/models/createpricerequest.d.ts +1 -3
- package/esm/models/createpricerequest.d.ts.map +1 -1
- package/esm/models/createpricerequest.js +1 -3
- package/esm/models/createpricerequest.js.map +1 -1
- package/esm/models/createsubscriptionlineitemrequest.d.ts +4 -0
- package/esm/models/createsubscriptionlineitemrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionlineitemrequest.js +5 -0
- package/esm/models/createsubscriptionlineitemrequest.js.map +1 -1
- package/esm/models/createsubscriptionrequest.d.ts +6 -5
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +10 -7
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/creditbreakdown.d.ts +7 -0
- package/esm/models/creditbreakdown.d.ts.map +1 -0
- package/esm/models/creditbreakdown.js +9 -0
- package/esm/models/creditbreakdown.js.map +1 -0
- package/esm/models/creditgrantcadence.d.ts +1 -1
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/customer.d.ts +1 -0
- package/esm/models/customer.d.ts.map +1 -1
- package/esm/models/customer.js +1 -0
- package/esm/models/customer.js.map +1 -1
- package/esm/models/customerentitlementsresponse.d.ts +2 -0
- package/esm/models/customerentitlementsresponse.d.ts.map +1 -1
- package/esm/models/customerentitlementsresponse.js +2 -0
- package/esm/models/customerentitlementsresponse.js.map +1 -1
- package/esm/models/customerfilter.d.ts +3 -0
- package/esm/models/customerfilter.d.ts.map +1 -1
- package/esm/models/customerfilter.js +1 -0
- package/esm/models/customerfilter.js.map +1 -1
- package/esm/models/customerresponse.d.ts +1 -0
- package/esm/models/customerresponse.d.ts.map +1 -1
- package/esm/models/customerresponse.js +1 -0
- package/esm/models/customerresponse.js.map +1 -1
- package/esm/models/debugtracker.d.ts +2 -0
- package/esm/models/debugtracker.d.ts.map +1 -1
- package/esm/models/debugtracker.js +2 -0
- package/esm/models/debugtracker.js.map +1 -1
- package/esm/models/debugtrackerstatus.d.ts +4 -0
- package/esm/models/debugtrackerstatus.d.ts.map +1 -1
- package/esm/models/debugtrackerstatus.js +4 -0
- package/esm/models/debugtrackerstatus.js.map +1 -1
- package/esm/models/deletesubscriptionlineitemrequest.d.ts +2 -0
- package/esm/models/deletesubscriptionlineitemrequest.d.ts.map +1 -1
- package/esm/models/deletesubscriptionlineitemrequest.js +2 -0
- package/esm/models/deletesubscriptionlineitemrequest.js.map +1 -1
- package/esm/models/entitlementresponse.d.ts +3 -0
- package/esm/models/entitlementresponse.d.ts.map +1 -1
- package/esm/models/entitlementresponse.js +1 -0
- package/esm/models/entitlementresponse.js.map +1 -1
- package/esm/models/entitlementsource.d.ts +3 -0
- package/esm/models/entitlementsource.d.ts.map +1 -1
- package/esm/models/entitlementsource.js +1 -0
- package/esm/models/entitlementsource.js.map +1 -1
- package/esm/models/entityintegrationmappingresponse.d.ts +3 -0
- package/esm/models/entityintegrationmappingresponse.d.ts.map +1 -1
- package/esm/models/entityintegrationmappingresponse.js +1 -0
- package/esm/models/entityintegrationmappingresponse.js.map +1 -1
- package/esm/models/errorcode.d.ts +32 -0
- package/esm/models/errorcode.d.ts.map +1 -0
- package/esm/models/errorcode.js +33 -0
- package/esm/models/errorcode.js.map +1 -0
- package/esm/models/errorresponse.d.ts +2 -34
- package/esm/models/errorresponse.d.ts.map +1 -1
- package/esm/models/errorresponse.js +2 -29
- package/esm/models/errorresponse.js.map +1 -1
- package/esm/models/eventprocessingstatustype.d.ts +1 -1
- package/esm/models/executesubscriptionmodifyop.d.ts +6 -6
- package/esm/models/executesubscriptionmodifyop.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyop.js +5 -5
- package/esm/models/executesubscriptionmodifyop.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +19 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -0
- package/esm/models/executesubscriptionmodifyrequest.js +22 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -0
- package/esm/models/failurepointtype.d.ts +2 -0
- package/esm/models/failurepointtype.d.ts.map +1 -1
- package/esm/models/failurepointtype.js +2 -0
- package/esm/models/failurepointtype.js.map +1 -1
- package/esm/models/featuretype.d.ts +2 -0
- package/esm/models/featuretype.d.ts.map +1 -1
- package/esm/models/featuretype.js +2 -0
- package/esm/models/featuretype.js.map +1 -1
- package/esm/models/getcustomerentitlementsbyexternalidop.d.ts +10 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.d.ts.map +1 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.js +14 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.js.map +1 -0
- package/esm/models/getusageanalyticsrequest.d.ts +1 -0
- package/esm/models/getusageanalyticsrequest.d.ts.map +1 -1
- package/esm/models/getusageanalyticsrequest.js +1 -0
- package/esm/models/getusageanalyticsrequest.js.map +1 -1
- package/esm/models/getusageanalyticsresponse.d.ts +2 -0
- package/esm/models/getusageanalyticsresponse.d.ts.map +1 -1
- package/esm/models/getusageanalyticsresponse.js +3 -1
- package/esm/models/getusageanalyticsresponse.js.map +1 -1
- package/esm/models/getusagebymeterrequest.d.ts +1 -0
- package/esm/models/getusagebymeterrequest.d.ts.map +1 -1
- package/esm/models/getusagebymeterrequest.js +1 -0
- package/esm/models/getusagebymeterrequest.js.map +1 -1
- package/esm/models/getusagerequest.d.ts +2 -0
- package/esm/models/getusagerequest.d.ts.map +1 -1
- package/esm/models/getusagerequest.js +3 -1
- package/esm/models/getusagerequest.js.map +1 -1
- package/esm/models/groupedinvoicingaction.d.ts +12 -0
- package/esm/models/groupedinvoicingaction.d.ts.map +1 -0
- package/esm/models/groupedinvoicingaction.js +13 -0
- package/esm/models/groupedinvoicingaction.js.map +1 -0
- package/esm/models/inheritanceaction.d.ts +12 -0
- package/esm/models/inheritanceaction.d.ts.map +1 -0
- package/esm/models/inheritanceaction.js +13 -0
- package/esm/models/inheritanceaction.js.map +1 -0
- package/esm/models/invoicebillingreason.d.ts +8 -0
- package/esm/models/invoicebillingreason.d.ts.map +1 -1
- package/esm/models/invoicebillingreason.js +8 -0
- package/esm/models/invoicebillingreason.js.map +1 -1
- package/esm/models/invoicefilter.d.ts +4 -0
- package/esm/models/invoicefilter.d.ts.map +1 -1
- package/esm/models/invoicefilter.js +4 -0
- package/esm/models/invoicefilter.js.map +1 -1
- package/esm/models/invoicelineitemresponse.d.ts +2 -0
- package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
- package/esm/models/invoicelineitemresponse.js +2 -0
- package/esm/models/invoicelineitemresponse.js.map +1 -1
- package/esm/models/invoiceresponse.d.ts +2 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +2 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/lineitemcommitmentconfig.d.ts +2 -0
- package/esm/models/lineitemcommitmentconfig.d.ts.map +1 -1
- package/esm/models/lineitemcommitmentconfig.js +3 -0
- package/esm/models/lineitemcommitmentconfig.js.map +1 -1
- package/esm/models/lineitemquantitychange.d.ts +8 -0
- package/esm/models/lineitemquantitychange.d.ts.map +1 -0
- package/esm/models/lineitemquantitychange.js +10 -0
- package/esm/models/lineitemquantitychange.js.map +1 -0
- package/esm/models/listsubscriptionlineitemsresponse.d.ts +9 -0
- package/esm/models/listsubscriptionlineitemsresponse.d.ts.map +1 -0
- package/esm/models/listsubscriptionlineitemsresponse.js +11 -0
- package/esm/models/listsubscriptionlineitemsresponse.js.map +1 -0
- package/esm/models/meterusageattribution.d.ts +8 -0
- package/esm/models/meterusageattribution.d.ts.map +1 -0
- package/esm/models/meterusageattribution.js +10 -0
- package/esm/models/meterusageattribution.js.map +1 -0
- package/esm/models/overrideentitlementrequest.d.ts +3 -0
- package/esm/models/overrideentitlementrequest.d.ts.map +1 -1
- package/esm/models/overrideentitlementrequest.js +1 -0
- package/esm/models/overrideentitlementrequest.js.map +1 -1
- package/esm/models/pausestatus.d.ts +1 -1
- package/esm/models/paymentstatus.d.ts +2 -0
- package/esm/models/paymentstatus.d.ts.map +1 -1
- package/esm/models/paymentstatus.js +2 -0
- package/esm/models/paymentstatus.js.map +1 -1
- package/esm/models/planfilter.d.ts +3 -0
- package/esm/models/planfilter.d.ts.map +1 -1
- package/esm/models/planfilter.js +1 -0
- package/esm/models/planfilter.js.map +1 -1
- package/esm/models/pointbucket.d.ts +7 -0
- package/esm/models/pointbucket.d.ts.map +1 -0
- package/esm/models/pointbucket.js +9 -0
- package/esm/models/pointbucket.js.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts +12 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.js +16 -0
- package/esm/models/previewsubscriptionmodifyop.js.map +1 -0
- package/esm/models/pricefilter.d.ts +2 -0
- package/esm/models/pricefilter.d.ts.map +1 -1
- package/esm/models/pricefilter.js +2 -0
- package/esm/models/pricefilter.js.map +1 -1
- package/esm/models/priceprice.d.ts +2 -1
- package/esm/models/priceprice.d.ts.map +1 -1
- package/esm/models/priceprice.js +2 -1
- package/esm/models/priceprice.js.map +1 -1
- package/esm/models/priceresponse.d.ts +2 -1
- package/esm/models/priceresponse.d.ts.map +1 -1
- package/esm/models/priceresponse.js +2 -1
- package/esm/models/priceresponse.js.map +1 -1
- package/esm/models/querysubscriptionlineitemsop.d.ts +6 -0
- package/esm/models/querysubscriptionlineitemsop.d.ts.map +1 -0
- package/esm/models/querysubscriptionlineitemsop.js +11 -0
- package/esm/models/querysubscriptionlineitemsop.js.map +1 -0
- package/esm/models/removeaddonrequest.d.ts +3 -0
- package/esm/models/removeaddonrequest.d.ts.map +1 -1
- package/esm/models/removeaddonrequest.js +3 -0
- package/esm/models/removeaddonrequest.js.map +1 -1
- package/esm/models/schedulestatus.d.ts +1 -1
- package/esm/models/submodifycouponaction.d.ts +12 -0
- package/esm/models/submodifycouponaction.d.ts.map +1 -0
- package/esm/models/submodifycouponaction.js +13 -0
- package/esm/models/submodifycouponaction.js.map +1 -0
- package/esm/models/submodifycouponparams.d.ts +13 -0
- package/esm/models/submodifycouponparams.d.ts.map +1 -0
- package/esm/models/submodifycouponparams.js +15 -0
- package/esm/models/submodifycouponparams.js.map +1 -0
- package/esm/models/submodifygroupedinvoicingparams.d.ts +9 -0
- package/esm/models/submodifygroupedinvoicingparams.d.ts.map +1 -0
- package/esm/models/submodifygroupedinvoicingparams.js +11 -0
- package/esm/models/submodifygroupedinvoicingparams.js.map +1 -0
- package/esm/models/submodifyinheritancerequest.d.ts +9 -0
- package/esm/models/submodifyinheritancerequest.d.ts.map +1 -0
- package/esm/models/submodifyinheritancerequest.js +12 -0
- package/esm/models/submodifyinheritancerequest.js.map +1 -0
- package/esm/models/submodifyquantitychangerequest.d.ts +7 -0
- package/esm/models/submodifyquantitychangerequest.d.ts.map +1 -0
- package/esm/models/submodifyquantitychangerequest.js +9 -0
- package/esm/models/submodifyquantitychangerequest.js.map +1 -0
- package/esm/models/submodifytaxaction.d.ts +12 -0
- package/esm/models/submodifytaxaction.d.ts.map +1 -0
- package/esm/models/submodifytaxaction.js +13 -0
- package/esm/models/submodifytaxaction.js.map +1 -0
- package/esm/models/submodifytaxparams.d.ts +10 -0
- package/esm/models/submodifytaxparams.d.ts.map +1 -0
- package/esm/models/submodifytaxparams.js +13 -0
- package/esm/models/submodifytaxparams.js.map +1 -0
- package/esm/models/submodifytrialendrequest.d.ts +8 -0
- package/esm/models/submodifytrialendrequest.d.ts.map +1 -0
- package/esm/models/submodifytrialendrequest.js +10 -0
- package/esm/models/submodifytrialendrequest.js.map +1 -0
- package/esm/models/subscriptioncouponinput.d.ts +9 -0
- package/esm/models/subscriptioncouponinput.d.ts.map +1 -0
- package/esm/models/subscriptioncouponinput.js +11 -0
- package/esm/models/subscriptioncouponinput.js.map +1 -0
- package/esm/models/subscriptionfilter.d.ts +1 -0
- package/esm/models/subscriptionfilter.d.ts.map +1 -1
- package/esm/models/subscriptionfilter.js +1 -0
- package/esm/models/subscriptionfilter.js.map +1 -1
- package/esm/models/subscriptioninheritanceconfig.d.ts +1 -0
- package/esm/models/subscriptioninheritanceconfig.d.ts.map +1 -1
- package/esm/models/subscriptioninheritanceconfig.js +6 -3
- package/esm/models/subscriptioninheritanceconfig.js.map +1 -1
- package/esm/models/subscriptionlineitemfilter.d.ts +40 -0
- package/esm/models/subscriptionlineitemfilter.d.ts.map +1 -0
- package/esm/models/subscriptionlineitemfilter.js +40 -0
- package/esm/models/subscriptionlineitemfilter.js.map +1 -0
- package/esm/models/subscriptionlineitemresponse.d.ts +3 -1
- package/esm/models/subscriptionlineitemresponse.d.ts.map +1 -1
- package/esm/models/subscriptionlineitemresponse.js +3 -1
- package/esm/models/subscriptionlineitemresponse.js.map +1 -1
- package/esm/models/subscriptionmodifyresponse.d.ts +9 -0
- package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -0
- package/esm/models/subscriptionmodifyresponse.js +11 -0
- package/esm/models/subscriptionmodifyresponse.js.map +1 -0
- package/esm/models/subscriptionmodifytype.d.ts +20 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -0
- package/esm/models/subscriptionmodifytype.js +21 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts +4 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionphasecreaterequest.js +8 -2
- package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.d.ts +1 -3
- package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.js +1 -3
- package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
- package/esm/models/subscriptionresponse.d.ts +3 -1
- package/esm/models/subscriptionresponse.d.ts.map +1 -1
- package/esm/models/subscriptionresponse.js +3 -1
- package/esm/models/subscriptionresponse.js.map +1 -1
- package/esm/models/subscriptionresponsev2.d.ts +4 -1
- package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
- package/esm/models/subscriptionresponsev2.js +4 -1
- package/esm/models/subscriptionresponsev2.js.map +1 -1
- package/esm/models/subscriptionstatus.d.ts +1 -1
- package/esm/models/subscriptionsubscriptionlineitem.d.ts +3 -1
- package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
- package/esm/models/subscriptionsubscriptionlineitem.js +3 -1
- package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
- package/esm/models/subscriptiontype.d.ts +4 -0
- package/esm/models/subscriptiontype.d.ts.map +1 -1
- package/esm/models/subscriptiontype.js +4 -0
- package/esm/models/subscriptiontype.js.map +1 -1
- package/esm/models/tenantbillingdetails.d.ts +10 -0
- package/esm/models/tenantbillingdetails.d.ts.map +1 -0
- package/esm/models/tenantbillingdetails.js +13 -0
- package/esm/models/tenantbillingdetails.js.map +1 -0
- package/esm/models/tenantresponse.d.ts +15 -0
- package/esm/models/tenantresponse.d.ts.map +1 -0
- package/esm/models/tenantresponse.js +15 -0
- package/esm/models/tenantresponse.js.map +1 -0
- package/esm/models/timeofdaybucket.d.ts +15 -0
- package/esm/models/timeofdaybucket.d.ts.map +1 -0
- package/esm/models/timeofdaybucket.js +17 -0
- package/esm/models/timeofdaybucket.js.map +1 -0
- package/esm/models/transactionreason.d.ts +30 -0
- package/esm/models/transactionreason.d.ts.map +1 -0
- package/esm/models/transactionreason.js +31 -0
- package/esm/models/transactionreason.js.map +1 -0
- package/esm/models/transactionstatus.d.ts +14 -0
- package/esm/models/transactionstatus.d.ts.map +1 -0
- package/esm/models/transactionstatus.js +15 -0
- package/esm/models/transactionstatus.js.map +1 -0
- package/esm/models/transactiontype.d.ts +12 -0
- package/esm/models/transactiontype.d.ts.map +1 -0
- package/esm/models/transactiontype.js +13 -0
- package/esm/models/transactiontype.js.map +1 -0
- package/esm/models/trialendaction.d.ts +12 -0
- package/esm/models/trialendaction.d.ts.map +1 -0
- package/esm/models/trialendaction.js +13 -0
- package/esm/models/trialendaction.js.map +1 -0
- package/esm/models/updatecustomerrequest.d.ts +1 -0
- package/esm/models/updatecustomerrequest.d.ts.map +1 -1
- package/esm/models/updatecustomerrequest.js +1 -0
- package/esm/models/updatecustomerrequest.js.map +1 -1
- package/esm/models/updatesubscriptionlineitemrequest.d.ts +2 -0
- package/esm/models/updatesubscriptionlineitemrequest.d.ts.map +1 -1
- package/esm/models/updatesubscriptionlineitemrequest.js +3 -0
- package/esm/models/updatesubscriptionlineitemrequest.js.map +1 -1
- package/esm/models/usageanalyticitem.d.ts +4 -0
- package/esm/models/usageanalyticitem.d.ts.map +1 -1
- package/esm/models/usageanalyticitem.js +5 -1
- package/esm/models/usageanalyticitem.js.map +1 -1
- package/esm/models/usageanalyticpoint.d.ts +4 -0
- package/esm/models/usageanalyticpoint.d.ts.map +1 -1
- package/esm/models/usageanalyticpoint.js +5 -1
- package/esm/models/usageanalyticpoint.js.map +1 -1
- package/esm/models/userresponse.d.ts +16 -0
- package/esm/models/userresponse.d.ts.map +1 -0
- package/esm/models/userresponse.js +16 -0
- package/esm/models/userresponse.js.map +1 -0
- package/esm/models/usertype.d.ts +12 -0
- package/esm/models/usertype.d.ts.map +1 -0
- package/esm/models/usertype.js +13 -0
- package/esm/models/usertype.js.map +1 -0
- package/esm/models/walletconfig.d.ts +7 -0
- package/esm/models/walletconfig.d.ts.map +1 -0
- package/esm/models/walletconfig.js +10 -0
- package/esm/models/walletconfig.js.map +1 -0
- package/esm/models/walletconfigpricetype.d.ts +14 -0
- package/esm/models/walletconfigpricetype.d.ts.map +1 -0
- package/esm/models/walletconfigpricetype.js +15 -0
- package/esm/models/walletconfigpricetype.js.map +1 -0
- package/esm/models/walletresponse.d.ts +39 -0
- package/esm/models/walletresponse.d.ts.map +1 -0
- package/esm/models/walletresponse.js +39 -0
- package/esm/models/walletresponse.js.map +1 -0
- package/esm/models/walletstatus.d.ts +14 -0
- package/esm/models/walletstatus.d.ts.map +1 -0
- package/esm/models/walletstatus.js +15 -0
- package/esm/models/walletstatus.js.map +1 -0
- package/esm/models/wallettransactionresponse.d.ts +46 -0
- package/esm/models/wallettransactionresponse.d.ts.map +1 -0
- package/esm/models/wallettransactionresponse.js +46 -0
- package/esm/models/wallettransactionresponse.js.map +1 -0
- package/esm/models/wallettxreferencetype.d.ts +16 -0
- package/esm/models/wallettxreferencetype.d.ts.map +1 -0
- package/esm/models/wallettxreferencetype.js +17 -0
- package/esm/models/wallettxreferencetype.js.map +1 -0
- package/esm/models/wallettype.d.ts +12 -0
- package/esm/models/wallettype.d.ts.map +1 -0
- package/esm/models/wallettype.js +13 -0
- package/esm/models/wallettype.js.map +1 -0
- package/esm/models/windowsize.d.ts +2 -2
- package/esm/models/windowsize.js +2 -2
- package/esm/models/windowsize.js.map +1 -1
- package/esm/tool-names.js +12 -12
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/esm/types/bigint.d.ts.map +1 -1
- package/esm/types/bigint.js +4 -3
- package/esm/types/bigint.js.map +1 -1
- package/manifest.json +13 -13
- package/package.json +4 -2
- package/src/funcs/{subscriptionsListSubscriptionPauses.ts → customersGetCustomerEntitlementsByExternalID.ts} +13 -12
- package/src/funcs/{plansPostPlansIdClone.ts → plansClonePlan.ts} +9 -9
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +7 -7
- package/src/funcs/{subscriptionsResumeSubscription.ts → subscriptionsPreviewSubscriptionModify.ts} +11 -11
- package/src/funcs/{subscriptionsPauseSubscription.ts → subscriptionsQuerySubscriptionLineItems.ts} +13 -22
- package/src/landing-page.ts +8 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +10 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +0 -2
- package/src/mcp-server/cli/serve/command.ts +1 -1
- package/src/mcp-server/cli/serve/impl.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -9
- package/src/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.ts +45 -0
- package/src/mcp-server/tools/{plansPostPlansIdClone.ts → plansClonePlan.ts} +6 -6
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +4 -4
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +45 -0
- package/src/mcp-server/tools/{subscriptionsListSubscriptionPauses.ts → subscriptionsQuerySubscriptionLineItems.ts} +8 -8
- package/src/mcp-server/tools.ts +12 -10
- package/src/models/addaddonrequest.ts +9 -0
- package/src/models/addaddontosubscriptionrequest.ts +9 -0
- package/src/models/addon.ts +0 -3
- package/src/models/{addontype.ts → addoncadence.ts} +5 -5
- package/src/models/addonresponse.ts +0 -3
- package/src/models/addonstatus.ts +2 -2
- package/src/models/address.ts +23 -0
- package/src/models/aggregatedentitlement.ts +9 -3
- package/src/models/alertstate.ts +21 -0
- package/src/models/attributedtocustomerresult.ts +28 -0
- package/src/models/autotopup.ts +19 -0
- package/src/models/billingcadence.ts +0 -2
- package/src/models/billingperiod.ts +2 -0
- package/src/models/bucket.ts +12 -0
- package/src/models/bucketsummary.ts +40 -0
- package/src/models/cancelsubscriptionrequest.ts +3 -1
- package/src/models/changedinvoice.ts +41 -0
- package/src/models/changedinvoiceaction.ts +23 -0
- package/src/models/changedinvoicestatus.ts +25 -0
- package/src/models/changedlineitem.ts +29 -0
- package/src/models/changedlineitemaction.ts +25 -0
- package/src/models/changedresources.ts +28 -0
- package/src/models/changedsubscription.ts +32 -0
- package/src/models/changedsubscriptionaction.ts +25 -0
- package/src/models/{postplansidcloneop.ts → cloneplanop.ts} +9 -10
- package/src/models/commitmentbucketrequest.ts +35 -0
- package/src/models/couponassociationresponse.ts +9 -3
- package/src/models/{coupon.ts → couponresponse.ts} +4 -2
- package/src/models/createcustomerrequest.ts +4 -0
- package/src/models/createinvoicelineitemrequest.ts +12 -0
- package/src/models/createinvoicerequest.ts +4 -0
- package/src/models/createpricerequest.ts +2 -5
- package/src/models/createsubscriptionlineitemrequest.ts +13 -0
- package/src/models/createsubscriptionrequest.ts +30 -13
- package/src/models/creditbreakdown.ts +15 -0
- package/src/models/customer.ts +4 -0
- package/src/models/customerentitlementsresponse.ts +6 -0
- package/src/models/customerfilter.ts +2 -0
- package/src/models/customerresponse.ts +4 -0
- package/src/models/debugtracker.ts +6 -0
- package/src/models/debugtrackerstatus.ts +4 -0
- package/src/models/deletesubscriptionlineitemrequest.ts +6 -0
- package/src/models/entitlementresponse.ts +2 -0
- package/src/models/entitlementsource.ts +2 -0
- package/src/models/entityintegrationmappingresponse.ts +2 -0
- package/src/models/errorcode.ts +37 -0
- package/src/models/errorresponse.ts +3 -38
- package/src/models/executesubscriptionmodifyop.ts +14 -14
- package/src/models/executesubscriptionmodifyrequest.ts +56 -0
- package/src/models/failurepointtype.ts +2 -0
- package/src/models/featuretype.ts +2 -0
- package/src/models/getcustomerentitlementsbyexternalidop.ts +31 -0
- package/src/models/getusageanalyticsrequest.ts +4 -0
- package/src/models/getusageanalyticsresponse.ts +7 -1
- package/src/models/getusagebymeterrequest.ts +2 -0
- package/src/models/getusagerequest.ts +7 -1
- package/src/models/groupedinvoicingaction.ts +17 -0
- package/src/models/inheritanceaction.ts +17 -0
- package/src/models/invoicebillingreason.ts +8 -0
- package/src/models/invoicefilter.ts +14 -0
- package/src/models/invoicelineitemresponse.ts +8 -0
- package/src/models/invoiceresponse.ts +8 -0
- package/src/models/lineitemcommitmentconfig.ts +9 -0
- package/src/models/lineitemquantitychange.ts +21 -0
- package/src/models/listsubscriptionlineitemsresponse.ts +25 -0
- package/src/models/meterusageattribution.ts +18 -0
- package/src/models/overrideentitlementrequest.ts +4 -0
- package/src/models/paymentstatus.ts +2 -0
- package/src/models/planfilter.ts +2 -0
- package/src/models/pointbucket.ts +15 -0
- package/src/models/previewsubscriptionmodifyop.ts +39 -0
- package/src/models/pricefilter.ts +3 -0
- package/src/models/priceprice.ts +7 -3
- package/src/models/priceresponse.ts +7 -3
- package/src/models/querysubscriptionlineitemsop.ts +21 -0
- package/src/models/removeaddonrequest.ts +10 -0
- package/src/models/submodifycouponaction.ts +17 -0
- package/src/models/submodifycouponparams.ts +42 -0
- package/src/models/submodifygroupedinvoicingparams.ts +25 -0
- package/src/models/submodifyinheritancerequest.ts +28 -0
- package/src/models/submodifyquantitychangerequest.ts +19 -0
- package/src/models/submodifytaxaction.ts +17 -0
- package/src/models/submodifytaxparams.ts +30 -0
- package/src/models/submodifytrialendrequest.ts +20 -0
- package/src/models/subscriptioncouponinput.ts +29 -0
- package/src/models/subscriptionfilter.ts +4 -0
- package/src/models/subscriptioninheritanceconfig.ts +15 -3
- package/src/models/subscriptionlineitemfilter.ts +81 -0
- package/src/models/subscriptionlineitemresponse.ts +8 -2
- package/src/models/subscriptionmodifyresponse.ts +25 -0
- package/src/models/subscriptionmodifytype.ts +25 -0
- package/src/models/subscriptionphasecreaterequest.ts +18 -2
- package/src/models/subscriptionpricecreaterequest.ts +2 -5
- package/src/models/subscriptionresponse.ts +10 -2
- package/src/models/subscriptionresponsev2.ts +14 -2
- package/src/models/subscriptionsubscriptionlineitem.ts +8 -2
- package/src/models/subscriptiontype.ts +4 -0
- package/src/models/tenantbillingdetails.ts +21 -0
- package/src/models/tenantresponse.ts +29 -0
- package/src/models/timeofdaybucket.ts +33 -0
- package/src/models/transactionreason.ts +35 -0
- package/src/models/transactionstatus.ts +19 -0
- package/src/models/transactiontype.ts +17 -0
- package/src/models/trialendaction.ts +17 -0
- package/src/models/updatecustomerrequest.ts +4 -0
- package/src/models/updatesubscriptionlineitemrequest.ts +9 -0
- package/src/models/usageanalyticitem.ts +12 -1
- package/src/models/usageanalyticpoint.ts +12 -1
- package/src/models/userresponse.ts +27 -0
- package/src/models/usertype.ts +17 -0
- package/src/models/walletconfig.ts +20 -0
- package/src/models/walletconfigpricetype.ts +19 -0
- package/src/models/walletresponse.ts +74 -0
- package/src/models/walletstatus.ts +19 -0
- package/src/models/wallettransactionresponse.ts +104 -0
- package/src/models/wallettxreferencetype.ts +21 -0
- package/src/models/wallettype.ts +17 -0
- package/src/models/windowsize.ts +2 -2
- package/src/tool-names.ts +12 -12
- package/src/types/async.ts +8 -7
- package/src/types/bigint.ts +18 -17
- package/esm/funcs/plansPostPlansIdClone.d.ts.map +0 -1
- package/esm/funcs/plansPostPlansIdClone.js.map +0 -1
- package/esm/funcs/subscriptionsListSubscriptionPauses.d.ts +0 -16
- package/esm/funcs/subscriptionsListSubscriptionPauses.d.ts.map +0 -1
- package/esm/funcs/subscriptionsListSubscriptionPauses.js.map +0 -1
- package/esm/funcs/subscriptionsPauseSubscription.d.ts +0 -16
- package/esm/funcs/subscriptionsPauseSubscription.d.ts.map +0 -1
- package/esm/funcs/subscriptionsPauseSubscription.js.map +0 -1
- package/esm/funcs/subscriptionsResumeSubscription.d.ts +0 -16
- package/esm/funcs/subscriptionsResumeSubscription.d.ts.map +0 -1
- package/esm/funcs/subscriptionsResumeSubscription.js.map +0 -1
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.d.ts.map +0 -1
- package/esm/lib/dlv.js +0 -46
- package/esm/lib/dlv.js.map +0 -1
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.d.ts.map +0 -1
- package/esm/lib/is-plain-object.js +0 -38
- package/esm/lib/is-plain-object.js.map +0 -1
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts +0 -7
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts.map +0 -1
- package/esm/mcp-server/tools/plansPostPlansIdClone.js.map +0 -1
- package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.d.ts +0 -7
- package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.d.ts.map +0 -1
- package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.js +0 -35
- package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.js.map +0 -1
- package/esm/mcp-server/tools/subscriptionsPauseSubscription.d.ts +0 -7
- package/esm/mcp-server/tools/subscriptionsPauseSubscription.d.ts.map +0 -1
- package/esm/mcp-server/tools/subscriptionsPauseSubscription.js +0 -35
- package/esm/mcp-server/tools/subscriptionsPauseSubscription.js.map +0 -1
- package/esm/mcp-server/tools/subscriptionsResumeSubscription.d.ts +0 -7
- package/esm/mcp-server/tools/subscriptionsResumeSubscription.d.ts.map +0 -1
- package/esm/mcp-server/tools/subscriptionsResumeSubscription.js +0 -35
- package/esm/mcp-server/tools/subscriptionsResumeSubscription.js.map +0 -1
- package/esm/models/addontype.d.ts +0 -12
- package/esm/models/addontype.d.ts.map +0 -1
- package/esm/models/addontype.js +0 -13
- package/esm/models/addontype.js.map +0 -1
- package/esm/models/coupon.d.ts.map +0 -1
- package/esm/models/coupon.js.map +0 -1
- package/esm/models/executesubscriptioninheritancerequest.d.ts +0 -6
- package/esm/models/executesubscriptioninheritancerequest.d.ts.map +0 -1
- package/esm/models/executesubscriptioninheritancerequest.js +0 -8
- package/esm/models/executesubscriptioninheritancerequest.js.map +0 -1
- package/esm/models/listsubscriptionpausesop.d.ts +0 -10
- package/esm/models/listsubscriptionpausesop.d.ts.map +0 -1
- package/esm/models/listsubscriptionpausesop.js +0 -14
- package/esm/models/listsubscriptionpausesop.js.map +0 -1
- package/esm/models/listsubscriptionpausesresponse.d.ts +0 -11
- package/esm/models/listsubscriptionpausesresponse.d.ts.map +0 -1
- package/esm/models/listsubscriptionpausesresponse.js +0 -10
- package/esm/models/listsubscriptionpausesresponse.js.map +0 -1
- package/esm/models/pausesubscriptionop.d.ts +0 -12
- package/esm/models/pausesubscriptionop.d.ts.map +0 -1
- package/esm/models/pausesubscriptionop.js +0 -16
- package/esm/models/pausesubscriptionop.js.map +0 -1
- package/esm/models/pausesubscriptionrequest.d.ts +0 -18
- package/esm/models/pausesubscriptionrequest.d.ts.map +0 -1
- package/esm/models/pausesubscriptionrequest.js +0 -15
- package/esm/models/pausesubscriptionrequest.js.map +0 -1
- package/esm/models/postplansidcloneop.d.ts +0 -12
- package/esm/models/postplansidcloneop.d.ts.map +0 -1
- package/esm/models/postplansidcloneop.js.map +0 -1
- package/esm/models/resumesubscriptionop.d.ts +0 -12
- package/esm/models/resumesubscriptionop.d.ts.map +0 -1
- package/esm/models/resumesubscriptionop.js +0 -16
- package/esm/models/resumesubscriptionop.js.map +0 -1
- package/esm/models/resumesubscriptionrequest.d.ts +0 -14
- package/esm/models/resumesubscriptionrequest.d.ts.map +0 -1
- package/esm/models/resumesubscriptionrequest.js +0 -11
- package/esm/models/resumesubscriptionrequest.js.map +0 -1
- package/esm/models/subscriptionpauseresponse.d.ts +0 -33
- package/esm/models/subscriptionpauseresponse.d.ts.map +0 -1
- package/esm/models/subscriptionpauseresponse.js +0 -30
- package/esm/models/subscriptionpauseresponse.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/mcp-server/tools/subscriptionsPauseSubscription.ts +0 -44
- package/src/mcp-server/tools/subscriptionsResumeSubscription.ts +0 -44
- package/src/models/executesubscriptioninheritancerequest.ts +0 -15
- package/src/models/listsubscriptionpausesop.ts +0 -29
- package/src/models/listsubscriptionpausesresponse.ts +0 -28
- package/src/models/pausesubscriptionop.ts +0 -39
- package/src/models/pausesubscriptionrequest.ts +0 -45
- package/src/models/resumesubscriptionop.ts +0 -39
- package/src/models/resumesubscriptionrequest.ts +0 -27
- package/src/models/subscriptionpauseresponse.ts +0 -74
package/src/mcp-server/server.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { tool$customersDeleteCustomer } from "./tools/customersDeleteCustomer.js
|
|
|
22
22
|
import { tool$customersGetCustomer } from "./tools/customersGetCustomer.js";
|
|
23
23
|
import { tool$customersGetCustomerByExternalId } from "./tools/customersGetCustomerByExternalId.js";
|
|
24
24
|
import { tool$customersGetCustomerEntitlements } from "./tools/customersGetCustomerEntitlements.js";
|
|
25
|
+
import { tool$customersGetCustomerEntitlementsByExternalID } from "./tools/customersGetCustomerEntitlementsByExternalID.js";
|
|
25
26
|
import { tool$customersGetCustomerUpcomingGrants } from "./tools/customersGetCustomerUpcomingGrants.js";
|
|
26
27
|
import { tool$customersGetCustomerUsageSummary } from "./tools/customersGetCustomerUsageSummary.js";
|
|
27
28
|
import { tool$customersQueryCustomer } from "./tools/customersQueryCustomer.js";
|
|
@@ -48,10 +49,10 @@ import { tool$invoicesTriggerInvoiceCommsWebhook } from "./tools/invoicesTrigger
|
|
|
48
49
|
import { tool$invoicesUpdateInvoice } from "./tools/invoicesUpdateInvoice.js";
|
|
49
50
|
import { tool$invoicesUpdateInvoicePaymentStatus } from "./tools/invoicesUpdateInvoicePaymentStatus.js";
|
|
50
51
|
import { tool$invoicesVoidInvoice } from "./tools/invoicesVoidInvoice.js";
|
|
52
|
+
import { tool$plansClonePlan } from "./tools/plansClonePlan.js";
|
|
51
53
|
import { tool$plansCreatePlan } from "./tools/plansCreatePlan.js";
|
|
52
54
|
import { tool$plansDeletePlan } from "./tools/plansDeletePlan.js";
|
|
53
55
|
import { tool$plansGetPlan } from "./tools/plansGetPlan.js";
|
|
54
|
-
import { tool$plansPostPlansIdClone } from "./tools/plansPostPlansIdClone.js";
|
|
55
56
|
import { tool$plansQueryPlan } from "./tools/plansQueryPlan.js";
|
|
56
57
|
import { tool$plansSyncPlanPrices } from "./tools/plansSyncPlanPrices.js";
|
|
57
58
|
import { tool$plansUpdatePlan } from "./tools/plansUpdatePlan.js";
|
|
@@ -79,13 +80,12 @@ import { tool$subscriptionsGetSubscriptionUpcomingGrants } from "./tools/subscri
|
|
|
79
80
|
import { tool$subscriptionsGetSubscriptionUsage } from "./tools/subscriptionsGetSubscriptionUsage.js";
|
|
80
81
|
import { tool$subscriptionsGetSubscriptionV2 } from "./tools/subscriptionsGetSubscriptionV2.js";
|
|
81
82
|
import { tool$subscriptionsListAllSubscriptionSchedules } from "./tools/subscriptionsListAllSubscriptionSchedules.js";
|
|
82
|
-
import { tool$subscriptionsListSubscriptionPauses } from "./tools/subscriptionsListSubscriptionPauses.js";
|
|
83
83
|
import { tool$subscriptionsListSubscriptionSchedules } from "./tools/subscriptionsListSubscriptionSchedules.js";
|
|
84
|
-
import { tool$subscriptionsPauseSubscription } from "./tools/subscriptionsPauseSubscription.js";
|
|
85
84
|
import { tool$subscriptionsPreviewSubscriptionChange } from "./tools/subscriptionsPreviewSubscriptionChange.js";
|
|
85
|
+
import { tool$subscriptionsPreviewSubscriptionModify } from "./tools/subscriptionsPreviewSubscriptionModify.js";
|
|
86
86
|
import { tool$subscriptionsQuerySubscription } from "./tools/subscriptionsQuerySubscription.js";
|
|
87
|
+
import { tool$subscriptionsQuerySubscriptionLineItems } from "./tools/subscriptionsQuerySubscriptionLineItems.js";
|
|
87
88
|
import { tool$subscriptionsRemoveSubscriptionAddon } from "./tools/subscriptionsRemoveSubscriptionAddon.js";
|
|
88
|
-
import { tool$subscriptionsResumeSubscription } from "./tools/subscriptionsResumeSubscription.js";
|
|
89
89
|
import { tool$subscriptionsUpdateSubscription } from "./tools/subscriptionsUpdateSubscription.js";
|
|
90
90
|
import { tool$subscriptionsUpdateSubscriptionLineItem } from "./tools/subscriptionsUpdateSubscriptionLineItem.js";
|
|
91
91
|
|
|
@@ -102,7 +102,7 @@ export function createMCPServer(deps: {
|
|
|
102
102
|
}) {
|
|
103
103
|
const server = new McpServer({
|
|
104
104
|
name: "Flexprice",
|
|
105
|
-
version: "2.0.
|
|
105
|
+
version: "2.0.21",
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
const getClient = deps.getSDK || (() =>
|
|
@@ -150,6 +150,7 @@ export function createMCPServer(deps: {
|
|
|
150
150
|
tool(tool$customersUpdateCustomer);
|
|
151
151
|
tool(tool$customersCreateCustomer);
|
|
152
152
|
tool(tool$customersGetCustomerByExternalId);
|
|
153
|
+
tool(tool$customersGetCustomerEntitlementsByExternalID);
|
|
153
154
|
tool(tool$customersQueryCustomer);
|
|
154
155
|
tool(tool$customersGetCustomerUsageSummary);
|
|
155
156
|
tool(tool$customersGetCustomer);
|
|
@@ -183,7 +184,7 @@ export function createMCPServer(deps: {
|
|
|
183
184
|
tool(tool$plansGetPlan);
|
|
184
185
|
tool(tool$plansUpdatePlan);
|
|
185
186
|
tool(tool$plansDeletePlan);
|
|
186
|
-
tool(tool$
|
|
187
|
+
tool(tool$plansClonePlan);
|
|
187
188
|
tool(tool$plansSyncPlanPrices);
|
|
188
189
|
tool(tool$pricesCreatePrice);
|
|
189
190
|
tool(tool$pricesCreatePricesBulk);
|
|
@@ -195,6 +196,7 @@ export function createMCPServer(deps: {
|
|
|
195
196
|
tool(tool$subscriptionsCreateSubscription);
|
|
196
197
|
tool(tool$subscriptionsAddSubscriptionAddon);
|
|
197
198
|
tool(tool$subscriptionsRemoveSubscriptionAddon);
|
|
199
|
+
tool(tool$subscriptionsQuerySubscriptionLineItems);
|
|
198
200
|
tool(tool$subscriptionsUpdateSubscriptionLineItem);
|
|
199
201
|
tool(tool$subscriptionsDeleteSubscriptionLineItem);
|
|
200
202
|
tool(tool$subscriptionsQuerySubscription);
|
|
@@ -210,9 +212,7 @@ export function createMCPServer(deps: {
|
|
|
210
212
|
tool(tool$subscriptionsGetSubscriptionUpcomingGrants);
|
|
211
213
|
tool(tool$subscriptionsCreateSubscriptionLineItem);
|
|
212
214
|
tool(tool$subscriptionsExecuteSubscriptionModify);
|
|
213
|
-
tool(tool$
|
|
214
|
-
tool(tool$subscriptionsListSubscriptionPauses);
|
|
215
|
-
tool(tool$subscriptionsResumeSubscription);
|
|
215
|
+
tool(tool$subscriptionsPreviewSubscriptionModify);
|
|
216
216
|
tool(tool$subscriptionsGetSubscriptionV2);
|
|
217
217
|
tool(tool$subscriptionsListAllSubscriptionSchedules);
|
|
218
218
|
tool(tool$subscriptionsGetSubscriptionSchedule);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { customersGetCustomerEntitlementsByExternalID } from "../../funcs/customersGetCustomerEntitlementsByExternalID.js";
|
|
6
|
+
import { GetCustomerEntitlementsByExternalIDRequest$zodSchema } from "../../models/getcustomerentitlementsbyexternalidop.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: GetCustomerEntitlementsByExternalIDRequest$zodSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$customersGetCustomerEntitlementsByExternalID: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "get-customer-entitlements-by-external-i-d",
|
|
17
|
+
description: `Get customer entitlements by external ID
|
|
18
|
+
|
|
19
|
+
Use when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids).`,
|
|
20
|
+
scopes: ["read"],
|
|
21
|
+
annotations: {
|
|
22
|
+
"title": "",
|
|
23
|
+
"destructiveHint": false,
|
|
24
|
+
"idempotentHint": false,
|
|
25
|
+
"openWorldHint": false,
|
|
26
|
+
"readOnlyHint": true,
|
|
27
|
+
},
|
|
28
|
+
args,
|
|
29
|
+
tool: async (client, args, ctx) => {
|
|
30
|
+
const [result] = await customersGetCustomerEntitlementsByExternalID(
|
|
31
|
+
client,
|
|
32
|
+
args.request,
|
|
33
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
34
|
+
).$inspect();
|
|
35
|
+
|
|
36
|
+
if (!result.ok) {
|
|
37
|
+
return {
|
|
38
|
+
content: [{ type: "text", text: result.error.message }],
|
|
39
|
+
isError: true,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return formatResult(result.value);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { plansClonePlan } from "../../funcs/plansClonePlan.js";
|
|
6
|
+
import { ClonePlanRequestRequest$zodSchema } from "../../models/cloneplanop.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request:
|
|
10
|
+
request: ClonePlanRequestRequest$zodSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "
|
|
13
|
+
export const tool$plansClonePlan: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "clone-plan",
|
|
15
15
|
description: `Clone a plan
|
|
16
16
|
|
|
17
17
|
Clone an existing plan, copying its active prices, published entitlements, and published credit grants`,
|
|
@@ -25,7 +25,7 @@ Clone an existing plan, copying its active prices, published entitlements, and p
|
|
|
25
25
|
},
|
|
26
26
|
args,
|
|
27
27
|
tool: async (client, args, ctx) => {
|
|
28
|
-
const [result] = await
|
|
28
|
+
const [result] = await plansClonePlan(
|
|
29
29
|
client,
|
|
30
30
|
args.request,
|
|
31
31
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { subscriptionsExecuteSubscriptionModify } from "../../funcs/subscriptionsExecuteSubscriptionModify.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ExecuteSubscriptionModifyRequestRequest$zodSchema } from "../../models/executesubscriptionmodifyop.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request:
|
|
10
|
+
request: ExecuteSubscriptionModifyRequestRequest$zodSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$subscriptionsExecuteSubscriptionModify: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "execute-subscription-modify",
|
|
17
|
-
description: `
|
|
17
|
+
description: `Execute subscription modification
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax).`,
|
|
20
20
|
scopes: ["write"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { subscriptionsPreviewSubscriptionModify } from "../../funcs/subscriptionsPreviewSubscriptionModify.js";
|
|
6
|
+
import { PreviewSubscriptionModifyRequest$zodSchema } from "../../models/previewsubscriptionmodifyop.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: PreviewSubscriptionModifyRequest$zodSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$subscriptionsPreviewSubscriptionModify: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "preview-subscription-modify",
|
|
17
|
+
description: `Preview subscription modification
|
|
18
|
+
|
|
19
|
+
Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes.`,
|
|
20
|
+
scopes: ["read"],
|
|
21
|
+
annotations: {
|
|
22
|
+
"title": "",
|
|
23
|
+
"destructiveHint": false,
|
|
24
|
+
"idempotentHint": false,
|
|
25
|
+
"openWorldHint": false,
|
|
26
|
+
"readOnlyHint": true,
|
|
27
|
+
},
|
|
28
|
+
args,
|
|
29
|
+
tool: async (client, args, ctx) => {
|
|
30
|
+
const [result] = await subscriptionsPreviewSubscriptionModify(
|
|
31
|
+
client,
|
|
32
|
+
args.request,
|
|
33
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
34
|
+
).$inspect();
|
|
35
|
+
|
|
36
|
+
if (!result.ok) {
|
|
37
|
+
return {
|
|
38
|
+
content: [{ type: "text", text: result.error.message }],
|
|
39
|
+
isError: true,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return formatResult(result.value);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { subscriptionsQuerySubscriptionLineItems } from "../../funcs/subscriptionsQuerySubscriptionLineItems.js";
|
|
6
|
+
import { SubscriptionLineItemFilter$zodSchema } from "../../models/subscriptionlineitemfilter.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request:
|
|
10
|
+
request: SubscriptionLineItemFilter$zodSchema.describe(`Filter`),
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
13
|
+
export const tool$subscriptionsQuerySubscriptionLineItems: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
17
|
-
description: `
|
|
16
|
+
name: "query-subscription-line-items",
|
|
17
|
+
description: `Search subscription line items
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
List subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.).`,
|
|
20
20
|
scopes: ["read"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -27,7 +27,7 @@ Use when showing pause history for a subscription (e.g. support or audit). Retur
|
|
|
27
27
|
},
|
|
28
28
|
args,
|
|
29
29
|
tool: async (client, args, ctx) => {
|
|
30
|
-
const [result] = await
|
|
30
|
+
const [result] = await subscriptionsQuerySubscriptionLineItems(
|
|
31
31
|
client,
|
|
32
32
|
args.request,
|
|
33
33
|
{ fetchOptions: { signal: ctx.signal } },
|
package/src/mcp-server/tools.ts
CHANGED
|
@@ -343,6 +343,8 @@ export function registerDynamicTools(
|
|
|
343
343
|
if (def.args) {
|
|
344
344
|
const jsonSchema = z.toJSONSchema(z.object(def.args), {
|
|
345
345
|
target: "draft-2020-12",
|
|
346
|
+
io: "input",
|
|
347
|
+
unrepresentable: "any",
|
|
346
348
|
});
|
|
347
349
|
schemaText += JSON.stringify(jsonSchema, null, 2);
|
|
348
350
|
} else {
|
|
@@ -358,16 +360,16 @@ export function registerDynamicTools(
|
|
|
358
360
|
|
|
359
361
|
return { content: [{ type: "text", text: parts.join("\n\n") }] };
|
|
360
362
|
});
|
|
361
|
-
logger.debug("Registered dynamic meta-tool", { name: "
|
|
363
|
+
logger.debug("Registered dynamic meta-tool", { name: "describe_tool_input" });
|
|
362
364
|
|
|
363
365
|
// 3. execute_tool
|
|
364
366
|
server.registerTool("execute_tool", {
|
|
365
367
|
description:
|
|
366
|
-
"Execute a tool by name with
|
|
368
|
+
"Execute a tool by name with its arguments. If executing a given tool for the first time, it is recommended to call describe_tool_input first to understand the expected `arguments` shape.",
|
|
367
369
|
inputSchema: {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"
|
|
370
|
+
name: z.string().describe("The name of the tool to execute"),
|
|
371
|
+
arguments: z.looseObject({}).optional().describe(
|
|
372
|
+
"Arguments for the target tool as a JSON object, matching the schema returned by describe_tool_input.",
|
|
371
373
|
),
|
|
372
374
|
},
|
|
373
375
|
annotations: {
|
|
@@ -378,17 +380,17 @@ export function registerDynamicTools(
|
|
|
378
380
|
openWorldHint: true,
|
|
379
381
|
},
|
|
380
382
|
}, async (args, ctx) => {
|
|
381
|
-
const def = toolMap.get(args.
|
|
383
|
+
const def = toolMap.get(args.name);
|
|
382
384
|
if (!def) {
|
|
383
385
|
return {
|
|
384
|
-
content: [{ type: "text", text: `Unknown tool: ${args.
|
|
386
|
+
content: [{ type: "text", text: `Unknown tool: ${args.name}` }],
|
|
385
387
|
isError: true,
|
|
386
388
|
};
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
let validatedInput: Record<string, unknown> = {};
|
|
390
392
|
if (def.args) {
|
|
391
|
-
const vres = z.object(def.args).safeParse(args.
|
|
393
|
+
const vres = z.object(def.args).safeParse(args.arguments ?? {});
|
|
392
394
|
if (vres.success) {
|
|
393
395
|
validatedInput = vres.data;
|
|
394
396
|
} else {
|
|
@@ -398,7 +400,7 @@ export function registerDynamicTools(
|
|
|
398
400
|
content: [{
|
|
399
401
|
type: "text",
|
|
400
402
|
text:
|
|
401
|
-
`Invalid input for tool ${args.
|
|
403
|
+
`Invalid input for tool ${args.name}:\n<issues>\n${issues}\n</issues>`,
|
|
402
404
|
}],
|
|
403
405
|
isError: true,
|
|
404
406
|
};
|
|
@@ -416,7 +418,7 @@ export function registerDynamicTools(
|
|
|
416
418
|
return {
|
|
417
419
|
content: [{
|
|
418
420
|
type: "text",
|
|
419
|
-
text: `Error executing tool ${args.
|
|
421
|
+
text: `Error executing tool ${args.name}: ${message}`,
|
|
420
422
|
}],
|
|
421
423
|
isError: true,
|
|
422
424
|
};
|
|
@@ -3,21 +3,29 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AddonCadence, AddonCadence$zodSchema } from "./addoncadence.js";
|
|
6
7
|
import {
|
|
7
8
|
LineItemCommitmentConfig,
|
|
8
9
|
LineItemCommitmentConfig$zodSchema,
|
|
9
10
|
} from "./lineitemcommitmentconfig.js";
|
|
11
|
+
import {
|
|
12
|
+
ProrationBehavior,
|
|
13
|
+
ProrationBehavior$zodSchema,
|
|
14
|
+
} from "./prorationbehavior.js";
|
|
10
15
|
|
|
11
16
|
export type AddAddonRequest = {
|
|
12
17
|
addon_id: string;
|
|
18
|
+
cadence?: AddonCadence | undefined;
|
|
13
19
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
14
20
|
metadata?: { [k: string]: any } | undefined;
|
|
21
|
+
proration_behavior?: ProrationBehavior | undefined;
|
|
15
22
|
start_date?: string | undefined;
|
|
16
23
|
subscription_id: string;
|
|
17
24
|
};
|
|
18
25
|
|
|
19
26
|
export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
|
|
20
27
|
addon_id: z.string(),
|
|
28
|
+
cadence: AddonCadence$zodSchema.optional(),
|
|
21
29
|
line_item_commitments: z.record(
|
|
22
30
|
z.string(),
|
|
23
31
|
LineItemCommitmentConfig$zodSchema,
|
|
@@ -25,6 +33,7 @@ export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
|
|
|
25
33
|
"LineItemCommitments allows setting commitment configuration per addon line item (keyed by price_id)",
|
|
26
34
|
),
|
|
27
35
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
36
|
+
proration_behavior: ProrationBehavior$zodSchema.optional(),
|
|
28
37
|
start_date: z.iso.datetime({ offset: true }).optional(),
|
|
29
38
|
subscription_id: z.string(),
|
|
30
39
|
});
|
|
@@ -3,15 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AddonCadence, AddonCadence$zodSchema } from "./addoncadence.js";
|
|
6
7
|
import {
|
|
7
8
|
LineItemCommitmentConfig,
|
|
8
9
|
LineItemCommitmentConfig$zodSchema,
|
|
9
10
|
} from "./lineitemcommitmentconfig.js";
|
|
11
|
+
import {
|
|
12
|
+
ProrationBehavior,
|
|
13
|
+
ProrationBehavior$zodSchema,
|
|
14
|
+
} from "./prorationbehavior.js";
|
|
10
15
|
|
|
11
16
|
export type AddAddonToSubscriptionRequest = {
|
|
12
17
|
addon_id: string;
|
|
18
|
+
cadence?: AddonCadence | undefined;
|
|
13
19
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
14
20
|
metadata?: { [k: string]: any } | undefined;
|
|
21
|
+
proration_behavior?: ProrationBehavior | undefined;
|
|
15
22
|
start_date?: string | undefined;
|
|
16
23
|
};
|
|
17
24
|
|
|
@@ -19,6 +26,7 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
19
26
|
AddAddonToSubscriptionRequest
|
|
20
27
|
> = z.object({
|
|
21
28
|
addon_id: z.string(),
|
|
29
|
+
cadence: AddonCadence$zodSchema.optional(),
|
|
22
30
|
line_item_commitments: z.record(
|
|
23
31
|
z.string(),
|
|
24
32
|
LineItemCommitmentConfig$zodSchema,
|
|
@@ -26,5 +34,6 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
26
34
|
"LineItemCommitments allows setting commitment configuration per addon line item (keyed by price_id)",
|
|
27
35
|
),
|
|
28
36
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
37
|
+
proration_behavior: ProrationBehavior$zodSchema.optional(),
|
|
29
38
|
start_date: z.iso.datetime({ offset: true }).optional(),
|
|
30
39
|
});
|
package/src/models/addon.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { AddonType, AddonType$zodSchema } from "./addontype.js";
|
|
7
6
|
import { Status, Status$zodSchema } from "./status.js";
|
|
8
7
|
|
|
9
8
|
export type Addon = {
|
|
@@ -17,7 +16,6 @@ export type Addon = {
|
|
|
17
16
|
name?: string | undefined;
|
|
18
17
|
status?: Status | undefined;
|
|
19
18
|
tenant_id?: string | undefined;
|
|
20
|
-
type?: AddonType | undefined;
|
|
21
19
|
updated_at?: string | undefined;
|
|
22
20
|
updated_by?: string | undefined;
|
|
23
21
|
};
|
|
@@ -33,7 +31,6 @@ export const Addon$zodSchema: z.ZodType<Addon> = z.object({
|
|
|
33
31
|
name: z.string().optional(),
|
|
34
32
|
status: Status$zodSchema.optional(),
|
|
35
33
|
tenant_id: z.string().optional(),
|
|
36
|
-
type: AddonType$zodSchema.optional(),
|
|
37
34
|
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
38
35
|
updated_by: z.string().optional(),
|
|
39
36
|
});
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const AddonCadence = {
|
|
9
9
|
Onetime: "onetime",
|
|
10
|
-
|
|
10
|
+
Recurring: "recurring",
|
|
11
11
|
} as const;
|
|
12
|
-
export type
|
|
12
|
+
export type AddonCadence = ClosedEnum<typeof AddonCadence>;
|
|
13
13
|
|
|
14
|
-
export const
|
|
14
|
+
export const AddonCadence$zodSchema = z.enum([
|
|
15
15
|
"onetime",
|
|
16
|
-
"
|
|
16
|
+
"recurring",
|
|
17
17
|
]);
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { AddonType, AddonType$zodSchema } from "./addontype.js";
|
|
7
6
|
import {
|
|
8
7
|
EntitlementResponse,
|
|
9
8
|
EntitlementResponse$zodSchema,
|
|
@@ -24,7 +23,6 @@ export type AddonResponse = {
|
|
|
24
23
|
prices?: Array<PriceResponse> | undefined;
|
|
25
24
|
status?: Status | undefined;
|
|
26
25
|
tenant_id?: string | undefined;
|
|
27
|
-
type?: AddonType | undefined;
|
|
28
26
|
updated_at?: string | undefined;
|
|
29
27
|
updated_by?: string | undefined;
|
|
30
28
|
};
|
|
@@ -44,7 +42,6 @@ export const AddonResponse$zodSchema: z.ZodType<AddonResponse> = z.object({
|
|
|
44
42
|
),
|
|
45
43
|
status: Status$zodSchema.optional(),
|
|
46
44
|
tenant_id: z.string().optional(),
|
|
47
|
-
type: AddonType$zodSchema.optional(),
|
|
48
45
|
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
49
46
|
updated_by: z.string().optional(),
|
|
50
47
|
});
|
|
@@ -8,12 +8,12 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
8
8
|
export const AddonStatus = {
|
|
9
9
|
Active: "active",
|
|
10
10
|
Cancelled: "cancelled",
|
|
11
|
-
|
|
11
|
+
Pending: "pending",
|
|
12
12
|
} as const;
|
|
13
13
|
export type AddonStatus = ClosedEnum<typeof AddonStatus>;
|
|
14
14
|
|
|
15
15
|
export const AddonStatus$zodSchema = z.enum([
|
|
16
16
|
"active",
|
|
17
17
|
"cancelled",
|
|
18
|
-
"
|
|
18
|
+
"pending",
|
|
19
19
|
]);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type Address = {
|
|
8
|
+
address_city?: string | undefined;
|
|
9
|
+
address_country?: string | undefined;
|
|
10
|
+
address_line1?: string | undefined;
|
|
11
|
+
address_line2?: string | undefined;
|
|
12
|
+
address_postal_code?: string | undefined;
|
|
13
|
+
address_state?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const Address$zodSchema: z.ZodType<Address> = z.object({
|
|
17
|
+
address_city: z.string().optional(),
|
|
18
|
+
address_country: z.string().optional(),
|
|
19
|
+
address_line1: z.string().optional(),
|
|
20
|
+
address_line2: z.string().optional(),
|
|
21
|
+
address_postal_code: z.string().optional(),
|
|
22
|
+
address_state: z.string().optional(),
|
|
23
|
+
});
|
|
@@ -8,7 +8,12 @@ import {
|
|
|
8
8
|
EntitlementUsageResetPeriod$zodSchema,
|
|
9
9
|
} from "./entitlementusageresetperiod.js";
|
|
10
10
|
|
|
11
|
+
export type ConfigValue = {};
|
|
12
|
+
|
|
13
|
+
export const ConfigValue$zodSchema: z.ZodType<ConfigValue> = z.object({});
|
|
14
|
+
|
|
11
15
|
export type AggregatedEntitlement = {
|
|
16
|
+
config_values?: Array<{ [k: string]: ConfigValue }> | undefined;
|
|
12
17
|
is_enabled?: boolean | undefined;
|
|
13
18
|
is_soft_limit?: boolean | undefined;
|
|
14
19
|
static_values?: Array<string> | undefined;
|
|
@@ -18,11 +23,12 @@ export type AggregatedEntitlement = {
|
|
|
18
23
|
|
|
19
24
|
export const AggregatedEntitlement$zodSchema: z.ZodType<AggregatedEntitlement> =
|
|
20
25
|
z.object({
|
|
26
|
+
config_values: z.array(
|
|
27
|
+
z.record(z.string(), z.lazy(() => ConfigValue$zodSchema)),
|
|
28
|
+
).optional(),
|
|
21
29
|
is_enabled: z.boolean().optional(),
|
|
22
30
|
is_soft_limit: z.boolean().optional(),
|
|
23
|
-
static_values: z.array(z.string()).optional()
|
|
24
|
-
"For static/SLA features",
|
|
25
|
-
),
|
|
31
|
+
static_values: z.array(z.string()).optional(),
|
|
26
32
|
usage_limit: z.int().optional(),
|
|
27
33
|
usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional(),
|
|
28
34
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const AlertState = {
|
|
9
|
+
Ok: "ok",
|
|
10
|
+
Info: "info",
|
|
11
|
+
Warning: "warning",
|
|
12
|
+
InAlarm: "in_alarm",
|
|
13
|
+
} as const;
|
|
14
|
+
export type AlertState = ClosedEnum<typeof AlertState>;
|
|
15
|
+
|
|
16
|
+
export const AlertState$zodSchema = z.enum([
|
|
17
|
+
"ok",
|
|
18
|
+
"info",
|
|
19
|
+
"warning",
|
|
20
|
+
"in_alarm",
|
|
21
|
+
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
DebugTrackerStatus,
|
|
8
|
+
DebugTrackerStatus$zodSchema,
|
|
9
|
+
} from "./debugtrackerstatus.js";
|
|
10
|
+
import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
|
|
11
|
+
import {
|
|
12
|
+
MeterUsageAttribution,
|
|
13
|
+
MeterUsageAttribution$zodSchema,
|
|
14
|
+
} from "./meterusageattribution.js";
|
|
15
|
+
|
|
16
|
+
export type AttributedToCustomerResult = {
|
|
17
|
+
error?: ErrorResponse | undefined;
|
|
18
|
+
meter_usage?: MeterUsageAttribution | undefined;
|
|
19
|
+
status?: DebugTrackerStatus | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const AttributedToCustomerResult$zodSchema: z.ZodType<
|
|
23
|
+
AttributedToCustomerResult
|
|
24
|
+
> = z.object({
|
|
25
|
+
error: ErrorResponse$zodSchema.optional(),
|
|
26
|
+
meter_usage: MeterUsageAttribution$zodSchema.optional(),
|
|
27
|
+
status: DebugTrackerStatus$zodSchema.optional(),
|
|
28
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AutoTopup = {
|
|
8
|
+
amount?: number | undefined;
|
|
9
|
+
enabled?: boolean | undefined;
|
|
10
|
+
invoicing?: boolean | undefined;
|
|
11
|
+
threshold?: number | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const AutoTopup$zodSchema: z.ZodType<AutoTopup> = z.object({
|
|
15
|
+
amount: z.number().optional(),
|
|
16
|
+
enabled: z.boolean().optional(),
|
|
17
|
+
invoicing: z.boolean().optional(),
|
|
18
|
+
threshold: z.number().optional(),
|
|
19
|
+
});
|
|
@@ -7,11 +7,9 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
7
7
|
|
|
8
8
|
export const BillingCadence = {
|
|
9
9
|
Recurring: "RECURRING",
|
|
10
|
-
Onetime: "ONETIME",
|
|
11
10
|
} as const;
|
|
12
11
|
export type BillingCadence = ClosedEnum<typeof BillingCadence>;
|
|
13
12
|
|
|
14
13
|
export const BillingCadence$zodSchema = z.enum([
|
|
15
14
|
"RECURRING",
|
|
16
|
-
"ONETIME",
|
|
17
15
|
]);
|
|
@@ -12,6 +12,7 @@ export const BillingPeriod = {
|
|
|
12
12
|
Daily: "DAILY",
|
|
13
13
|
Quarterly: "QUARTERLY",
|
|
14
14
|
HalfYearly: "HALF_YEARLY",
|
|
15
|
+
Onetime: "ONETIME",
|
|
15
16
|
} as const;
|
|
16
17
|
export type BillingPeriod = ClosedEnum<typeof BillingPeriod>;
|
|
17
18
|
|
|
@@ -22,4 +23,5 @@ export const BillingPeriod$zodSchema = z.enum([
|
|
|
22
23
|
"DAILY",
|
|
23
24
|
"QUARTERLY",
|
|
24
25
|
"HALF_YEARLY",
|
|
26
|
+
"ONETIME",
|
|
25
27
|
]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type Bucket = { hour?: number | undefined; minute?: number | undefined };
|
|
8
|
+
|
|
9
|
+
export const Bucket$zodSchema: z.ZodType<Bucket> = z.object({
|
|
10
|
+
hour: z.int().optional(),
|
|
11
|
+
minute: z.int().optional(),
|
|
12
|
+
});
|