@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
|
@@ -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
|
+
InheritanceAction,
|
|
8
|
+
InheritanceAction$zodSchema,
|
|
9
|
+
} from "./inheritanceaction.js";
|
|
10
|
+
|
|
11
|
+
export type SubModifyInheritanceRequest = {
|
|
12
|
+
action?: InheritanceAction | undefined;
|
|
13
|
+
external_customer_ids_to_inherit_subscription?: Array<string> | undefined;
|
|
14
|
+
external_customer_ids_to_remove?: Array<string> | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const SubModifyInheritanceRequest$zodSchema: z.ZodType<
|
|
18
|
+
SubModifyInheritanceRequest
|
|
19
|
+
> = z.object({
|
|
20
|
+
action: InheritanceAction$zodSchema.optional(),
|
|
21
|
+
external_customer_ids_to_inherit_subscription: z.array(z.string()).optional()
|
|
22
|
+
.describe(
|
|
23
|
+
"ExternalCustomerIDsToInheritSubscription is used for action=\"add\".",
|
|
24
|
+
),
|
|
25
|
+
external_customer_ids_to_remove: z.array(z.string()).optional().describe(
|
|
26
|
+
"ExternalCustomerIDsToRemove is used for action=\"remove\".",
|
|
27
|
+
),
|
|
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
|
+
import {
|
|
7
|
+
LineItemQuantityChange,
|
|
8
|
+
LineItemQuantityChange$zodSchema,
|
|
9
|
+
} from "./lineitemquantitychange.js";
|
|
10
|
+
|
|
11
|
+
export type SubModifyQuantityChangeRequest = {
|
|
12
|
+
line_items: Array<LineItemQuantityChange>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const SubModifyQuantityChangeRequest$zodSchema: z.ZodType<
|
|
16
|
+
SubModifyQuantityChangeRequest
|
|
17
|
+
> = z.object({
|
|
18
|
+
line_items: z.array(LineItemQuantityChange$zodSchema),
|
|
19
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
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 SubModifyTaxAction = {
|
|
9
|
+
Add: "add",
|
|
10
|
+
Remove: "remove",
|
|
11
|
+
} as const;
|
|
12
|
+
export type SubModifyTaxAction = ClosedEnum<typeof SubModifyTaxAction>;
|
|
13
|
+
|
|
14
|
+
export const SubModifyTaxAction$zodSchema = z.enum([
|
|
15
|
+
"add",
|
|
16
|
+
"remove",
|
|
17
|
+
]);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
SubModifyTaxAction,
|
|
8
|
+
SubModifyTaxAction$zodSchema,
|
|
9
|
+
} from "./submodifytaxaction.js";
|
|
10
|
+
|
|
11
|
+
export type SubModifyTaxParams = {
|
|
12
|
+
action: SubModifyTaxAction;
|
|
13
|
+
effective_date?: string | undefined;
|
|
14
|
+
tax_association_id?: string | undefined;
|
|
15
|
+
tax_rate_id?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const SubModifyTaxParams$zodSchema: z.ZodType<SubModifyTaxParams> = z
|
|
19
|
+
.object({
|
|
20
|
+
action: SubModifyTaxAction$zodSchema,
|
|
21
|
+
effective_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
22
|
+
"Optional. When to apply the change; defaults to now if omitted.",
|
|
23
|
+
),
|
|
24
|
+
tax_association_id: z.string().optional().describe(
|
|
25
|
+
"Required when action=\"remove\". ID of the TaxAssociation to soft-delete.",
|
|
26
|
+
),
|
|
27
|
+
tax_rate_id: z.string().optional().describe(
|
|
28
|
+
"Required when action=\"add\". ID of the active tax rate to attach.",
|
|
29
|
+
),
|
|
30
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { TrialEndAction, TrialEndAction$zodSchema } from "./trialendaction.js";
|
|
7
|
+
|
|
8
|
+
export type SubModifyTrialEndRequest = {
|
|
9
|
+
action: TrialEndAction;
|
|
10
|
+
new_trial_end?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const SubModifyTrialEndRequest$zodSchema: z.ZodType<
|
|
14
|
+
SubModifyTrialEndRequest
|
|
15
|
+
> = z.object({
|
|
16
|
+
action: TrialEndAction$zodSchema,
|
|
17
|
+
new_trial_end: z.iso.datetime({ offset: true }).optional().describe(
|
|
18
|
+
"NewTrialEnd is the new trial end date. Required when action is \"scheduled_date\".",
|
|
19
|
+
),
|
|
20
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type SubscriptionCouponInput = {
|
|
8
|
+
coupon_code: string;
|
|
9
|
+
end_date?: string | undefined;
|
|
10
|
+
price_id?: string | undefined;
|
|
11
|
+
start_date?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const SubscriptionCouponInput$zodSchema: z.ZodType<
|
|
15
|
+
SubscriptionCouponInput
|
|
16
|
+
> = z.object({
|
|
17
|
+
coupon_code: z.string().describe(
|
|
18
|
+
"CouponCode is the coupon's human-readable code (case-insensitive). Required.",
|
|
19
|
+
),
|
|
20
|
+
end_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
21
|
+
"EndDate is when the coupon ends; overrides duration_in_periods calculation.",
|
|
22
|
+
),
|
|
23
|
+
price_id: z.string().optional().describe(
|
|
24
|
+
"PriceID is the price ID of the line item to target; omit for subscription-level.",
|
|
25
|
+
),
|
|
26
|
+
start_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
27
|
+
"StartDate is when the coupon starts; defaults to subscription/phase StartDate.",
|
|
28
|
+
),
|
|
29
|
+
});
|
|
@@ -57,6 +57,7 @@ export type SubscriptionFilter = {
|
|
|
57
57
|
subscription_ids?: Array<string> | undefined;
|
|
58
58
|
subscription_status?: Array<SubscriptionStatus> | undefined;
|
|
59
59
|
subscription_type?: Array<SubscriptionType> | undefined;
|
|
60
|
+
trial_end_due_lte?: string | undefined;
|
|
60
61
|
with_line_items?: boolean | undefined;
|
|
61
62
|
};
|
|
62
63
|
|
|
@@ -105,6 +106,9 @@ export const SubscriptionFilter$zodSchema: z.ZodType<SubscriptionFilter> = z
|
|
|
105
106
|
subscription_type: z.array(SubscriptionType$zodSchema).optional().describe(
|
|
106
107
|
"SubscriptionType filters by subscription type",
|
|
107
108
|
),
|
|
109
|
+
trial_end_due_lte: z.iso.datetime({ offset: true }).optional().describe(
|
|
110
|
+
"TrialEndDueLTE, when set, restricts to subscriptions with trial_end not nil and trial_end <= trial_end_due_lte.\nUse with subscription_status trialing for trial-end cron processing.",
|
|
111
|
+
),
|
|
108
112
|
with_line_items: z.boolean().optional().describe(
|
|
109
113
|
"WithLineItems includes line items in the response",
|
|
110
114
|
),
|
|
@@ -8,12 +8,24 @@ export type SubscriptionInheritanceConfig = {
|
|
|
8
8
|
external_customer_ids_to_inherit_subscription?: Array<string> | undefined;
|
|
9
9
|
invoicing_customer_external_id?: string | undefined;
|
|
10
10
|
parent_subscription_id?: string | undefined;
|
|
11
|
+
subscriptions_ids_for_grouped_invoicing?: Array<string> | undefined;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const SubscriptionInheritanceConfig$zodSchema: z.ZodType<
|
|
14
15
|
SubscriptionInheritanceConfig
|
|
15
16
|
> = z.object({
|
|
16
|
-
external_customer_ids_to_inherit_subscription: z.array(z.string()).optional()
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
external_customer_ids_to_inherit_subscription: z.array(z.string()).optional()
|
|
18
|
+
.describe(
|
|
19
|
+
"ExternalCustomerIDsToInheritSubscription: child customer external IDs for which\ninherited skeleton subscriptions will be created. Only valid for parent behavior.",
|
|
20
|
+
),
|
|
21
|
+
invoicing_customer_external_id: z.string().optional().describe(
|
|
22
|
+
"InvoicingCustomerExternalID sets a different billing recipient (external ID).\nRequired for delegated; rejected for inherited; optional for others.",
|
|
23
|
+
),
|
|
24
|
+
parent_subscription_id: z.string().optional().describe(
|
|
25
|
+
"ParentSubscriptionID links this subscription to an existing parent.\nRequired for inherited and grouped_invoicing; rejected for standalone, delegated, parent.",
|
|
26
|
+
),
|
|
27
|
+
subscriptions_ids_for_grouped_invoicing: z.array(z.string()).optional()
|
|
28
|
+
.describe(
|
|
29
|
+
"SubscriptionsIDsForGroupedInvoicing: existing standalone subscription IDs to convert to\ngrouped_invoicing under this parent at creation time. Only valid for parent behavior.",
|
|
30
|
+
),
|
|
19
31
|
});
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import {
|
|
8
|
+
FilterCondition,
|
|
9
|
+
FilterCondition$zodSchema,
|
|
10
|
+
} from "./filtercondition.js";
|
|
11
|
+
import { SortCondition, SortCondition$zodSchema } from "./sortcondition.js";
|
|
12
|
+
import { Status, Status$zodSchema } from "./status.js";
|
|
13
|
+
import {
|
|
14
|
+
SubscriptionLineItemEntityType,
|
|
15
|
+
SubscriptionLineItemEntityType$zodSchema,
|
|
16
|
+
} from "./subscriptionlineitementitytype.js";
|
|
17
|
+
|
|
18
|
+
export const SubscriptionLineItemFilterOrder = {
|
|
19
|
+
Asc: "asc",
|
|
20
|
+
Desc: "desc",
|
|
21
|
+
} as const;
|
|
22
|
+
export type SubscriptionLineItemFilterOrder = ClosedEnum<
|
|
23
|
+
typeof SubscriptionLineItemFilterOrder
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export const SubscriptionLineItemFilterOrder$zodSchema = z.enum([
|
|
27
|
+
"asc",
|
|
28
|
+
"desc",
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
export type SubscriptionLineItemFilter = {
|
|
32
|
+
active_filter?: boolean | undefined;
|
|
33
|
+
addon_association_ids?: Array<string> | undefined;
|
|
34
|
+
billing_periods?: Array<string> | undefined;
|
|
35
|
+
currencies?: Array<string> | undefined;
|
|
36
|
+
current_period_start?: string | undefined;
|
|
37
|
+
customer_ids?: Array<string> | undefined;
|
|
38
|
+
end_time?: string | undefined;
|
|
39
|
+
entity_ids?: Array<string> | undefined;
|
|
40
|
+
entity_type?: SubscriptionLineItemEntityType | undefined;
|
|
41
|
+
expand?: string | undefined;
|
|
42
|
+
filters?: Array<FilterCondition> | undefined;
|
|
43
|
+
limit?: number | undefined;
|
|
44
|
+
meter_ids?: Array<string> | undefined;
|
|
45
|
+
offset?: number | undefined;
|
|
46
|
+
order?: SubscriptionLineItemFilterOrder | undefined;
|
|
47
|
+
price_ids?: Array<string> | undefined;
|
|
48
|
+
sort?: Array<SortCondition> | undefined;
|
|
49
|
+
start_time?: string | undefined;
|
|
50
|
+
status?: Status | undefined;
|
|
51
|
+
subscription_ids?: Array<string> | undefined;
|
|
52
|
+
subscription_line_item_ids?: Array<string> | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const SubscriptionLineItemFilter$zodSchema: z.ZodType<
|
|
56
|
+
SubscriptionLineItemFilter
|
|
57
|
+
> = z.object({
|
|
58
|
+
active_filter: z.boolean().default(true),
|
|
59
|
+
addon_association_ids: z.array(z.string()).optional(),
|
|
60
|
+
billing_periods: z.array(z.string()).optional(),
|
|
61
|
+
currencies: z.array(z.string()).optional(),
|
|
62
|
+
current_period_start: z.iso.datetime({ offset: true }).optional(),
|
|
63
|
+
customer_ids: z.array(z.string()).optional(),
|
|
64
|
+
end_time: z.iso.datetime({ offset: true }).optional(),
|
|
65
|
+
entity_ids: z.array(z.string()).optional(),
|
|
66
|
+
entity_type: SubscriptionLineItemEntityType$zodSchema.optional(),
|
|
67
|
+
expand: z.string().optional(),
|
|
68
|
+
filters: z.array(FilterCondition$zodSchema).optional(),
|
|
69
|
+
limit: z.int().optional(),
|
|
70
|
+
meter_ids: z.array(z.string()).optional(),
|
|
71
|
+
offset: z.int().optional(),
|
|
72
|
+
order: SubscriptionLineItemFilterOrder$zodSchema.optional(),
|
|
73
|
+
price_ids: z.array(z.string()).optional(),
|
|
74
|
+
sort: z.array(SortCondition$zodSchema).optional(),
|
|
75
|
+
start_time: z.iso.datetime({ offset: true }).optional(),
|
|
76
|
+
status: Status$zodSchema.optional(),
|
|
77
|
+
subscription_ids: z.array(z.string()).optional(),
|
|
78
|
+
subscription_line_item_ids: z.array(z.string()).optional().describe(
|
|
79
|
+
"Specific filters",
|
|
80
|
+
),
|
|
81
|
+
});
|
|
@@ -13,14 +13,20 @@ import {
|
|
|
13
13
|
SubscriptionLineItemEntityType,
|
|
14
14
|
SubscriptionLineItemEntityType$zodSchema,
|
|
15
15
|
} from "./subscriptionlineitementitytype.js";
|
|
16
|
+
import {
|
|
17
|
+
TimeOfDayBucket,
|
|
18
|
+
TimeOfDayBucket$zodSchema,
|
|
19
|
+
} from "./timeofdaybucket.js";
|
|
16
20
|
|
|
17
21
|
export type SubscriptionLineItemResponse = {
|
|
22
|
+
addon_association_id?: string | undefined;
|
|
18
23
|
billing_period?: BillingPeriod | undefined;
|
|
19
24
|
billing_period_count?: number | undefined;
|
|
20
25
|
commitment_amount?: string | undefined;
|
|
21
26
|
commitment_duration?: BillingPeriod | undefined;
|
|
22
27
|
commitment_overage_factor?: string | undefined;
|
|
23
28
|
commitment_quantity?: string | undefined;
|
|
29
|
+
commitment_time_buckets?: Array<TimeOfDayBucket> | undefined;
|
|
24
30
|
commitment_true_up_enabled?: boolean | undefined;
|
|
25
31
|
commitment_type?: CommitmentType | undefined;
|
|
26
32
|
commitment_windowed?: boolean | undefined;
|
|
@@ -50,7 +56,6 @@ export type SubscriptionLineItemResponse = {
|
|
|
50
56
|
subscription_id?: string | undefined;
|
|
51
57
|
subscription_phase_id?: string | undefined;
|
|
52
58
|
tenant_id?: string | undefined;
|
|
53
|
-
trial_period?: number | undefined;
|
|
54
59
|
updated_at?: string | undefined;
|
|
55
60
|
updated_by?: string | undefined;
|
|
56
61
|
};
|
|
@@ -58,6 +63,7 @@ export type SubscriptionLineItemResponse = {
|
|
|
58
63
|
export const SubscriptionLineItemResponse$zodSchema: z.ZodType<
|
|
59
64
|
SubscriptionLineItemResponse
|
|
60
65
|
> = z.object({
|
|
66
|
+
addon_association_id: z.string().optional(),
|
|
61
67
|
billing_period: BillingPeriod$zodSchema.optional(),
|
|
62
68
|
billing_period_count: z.int().optional().describe(
|
|
63
69
|
"from price at create; default 1",
|
|
@@ -66,6 +72,7 @@ export const SubscriptionLineItemResponse$zodSchema: z.ZodType<
|
|
|
66
72
|
commitment_duration: BillingPeriod$zodSchema.optional(),
|
|
67
73
|
commitment_overage_factor: z.string().optional(),
|
|
68
74
|
commitment_quantity: z.string().optional(),
|
|
75
|
+
commitment_time_buckets: z.array(TimeOfDayBucket$zodSchema).optional(),
|
|
69
76
|
commitment_true_up_enabled: z.boolean().optional(),
|
|
70
77
|
commitment_type: CommitmentType$zodSchema.optional(),
|
|
71
78
|
commitment_windowed: z.boolean().optional(),
|
|
@@ -95,7 +102,6 @@ export const SubscriptionLineItemResponse$zodSchema: z.ZodType<
|
|
|
95
102
|
subscription_id: z.string().optional(),
|
|
96
103
|
subscription_phase_id: z.string().optional(),
|
|
97
104
|
tenant_id: z.string().optional(),
|
|
98
|
-
trial_period: z.int().optional(),
|
|
99
105
|
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
100
106
|
updated_by: z.string().optional(),
|
|
101
107
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
ChangedResources,
|
|
8
|
+
ChangedResources$zodSchema,
|
|
9
|
+
} from "./changedresources.js";
|
|
10
|
+
import {
|
|
11
|
+
SubscriptionResponse,
|
|
12
|
+
SubscriptionResponse$zodSchema,
|
|
13
|
+
} from "./subscriptionresponse.js";
|
|
14
|
+
|
|
15
|
+
export type SubscriptionModifyResponse = {
|
|
16
|
+
changed_resources?: ChangedResources | undefined;
|
|
17
|
+
subscription?: SubscriptionResponse | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const SubscriptionModifyResponse$zodSchema: z.ZodType<
|
|
21
|
+
SubscriptionModifyResponse
|
|
22
|
+
> = z.object({
|
|
23
|
+
changed_resources: ChangedResources$zodSchema.optional(),
|
|
24
|
+
subscription: SubscriptionResponse$zodSchema.optional(),
|
|
25
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
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 SubscriptionModifyType = {
|
|
9
|
+
Inheritance: "inheritance",
|
|
10
|
+
QuantityChange: "quantity_change",
|
|
11
|
+
GroupedInvoicing: "grouped_invoicing",
|
|
12
|
+
TrialEnd: "trial_end",
|
|
13
|
+
Coupon: "coupon",
|
|
14
|
+
Tax: "tax",
|
|
15
|
+
} as const;
|
|
16
|
+
export type SubscriptionModifyType = ClosedEnum<typeof SubscriptionModifyType>;
|
|
17
|
+
|
|
18
|
+
export const SubscriptionModifyType$zodSchema = z.enum([
|
|
19
|
+
"inheritance",
|
|
20
|
+
"quantity_change",
|
|
21
|
+
"grouped_invoicing",
|
|
22
|
+
"trial_end",
|
|
23
|
+
"coupon",
|
|
24
|
+
"tax",
|
|
25
|
+
]);
|
|
@@ -3,30 +3,42 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
CreateSubscriptionLineItemRequest,
|
|
8
|
+
CreateSubscriptionLineItemRequest$zodSchema,
|
|
9
|
+
} from "./createsubscriptionlineitemrequest.js";
|
|
6
10
|
import {
|
|
7
11
|
OverrideLineItemRequest,
|
|
8
12
|
OverrideLineItemRequest$zodSchema,
|
|
9
13
|
} from "./overridelineitemrequest.js";
|
|
14
|
+
import {
|
|
15
|
+
SubscriptionCouponInput,
|
|
16
|
+
SubscriptionCouponInput$zodSchema,
|
|
17
|
+
} from "./subscriptioncouponinput.js";
|
|
10
18
|
|
|
11
19
|
export type SubscriptionPhaseCreateRequest = {
|
|
12
20
|
coupons?: Array<string> | undefined;
|
|
13
21
|
end_date?: string | undefined;
|
|
14
22
|
line_item_coupons?: { [k: string]: Array<string> } | undefined;
|
|
23
|
+
line_items?: Array<CreateSubscriptionLineItemRequest> | undefined;
|
|
15
24
|
metadata?: { [k: string]: string } | undefined;
|
|
16
25
|
override_line_items?: Array<OverrideLineItemRequest> | undefined;
|
|
17
26
|
start_date: string;
|
|
27
|
+
subscription_coupons?: Array<SubscriptionCouponInput> | undefined;
|
|
18
28
|
};
|
|
19
29
|
|
|
20
30
|
export const SubscriptionPhaseCreateRequest$zodSchema: z.ZodType<
|
|
21
31
|
SubscriptionPhaseCreateRequest
|
|
22
32
|
> = z.object({
|
|
23
33
|
coupons: z.array(z.string()).optional().describe(
|
|
24
|
-
"
|
|
34
|
+
"Deprecated: use SubscriptionCoupons instead.",
|
|
25
35
|
),
|
|
26
36
|
end_date: z.iso.datetime({ offset: true }).optional(),
|
|
27
37
|
line_item_coupons: z.record(z.string(), z.array(z.string())).optional()
|
|
38
|
+
.describe("Deprecated: use SubscriptionCoupons instead."),
|
|
39
|
+
line_items: z.array(CreateSubscriptionLineItemRequest$zodSchema).optional()
|
|
28
40
|
.describe(
|
|
29
|
-
"
|
|
41
|
+
"LineItems are extra line items to add during this phase, primarily one-time charges.\nEach item's start_date defaults to the phase's start_date when not provided.",
|
|
30
42
|
),
|
|
31
43
|
metadata: z.record(z.string(), z.string()).optional(),
|
|
32
44
|
override_line_items: z.array(OverrideLineItemRequest$zodSchema).optional()
|
|
@@ -34,4 +46,8 @@ export const SubscriptionPhaseCreateRequest$zodSchema: z.ZodType<
|
|
|
34
46
|
"OverrideLineItems allows customizing specific prices for this phase\nIf not provided, phase will use the same line items as the subscription (plan prices)",
|
|
35
47
|
),
|
|
36
48
|
start_date: z.iso.datetime({ offset: true }),
|
|
49
|
+
subscription_coupons: z.array(SubscriptionCouponInput$zodSchema).optional()
|
|
50
|
+
.describe(
|
|
51
|
+
"SubscriptionCoupons is the preferred way to attach coupons to this phase.",
|
|
52
|
+
),
|
|
37
53
|
});
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { BillingCadence, BillingCadence$zodSchema } from "./billingcadence.js";
|
|
7
6
|
import { BillingModel, BillingModel$zodSchema } from "./billingmodel.js";
|
|
8
7
|
import { BillingPeriod, BillingPeriod$zodSchema } from "./billingperiod.js";
|
|
9
8
|
import { BillingTier, BillingTier$zodSchema } from "./billingtier.js";
|
|
@@ -25,7 +24,6 @@ import { PriceUnitType, PriceUnitType$zodSchema } from "./priceunittype.js";
|
|
|
25
24
|
|
|
26
25
|
export type SubscriptionPriceCreateRequest = {
|
|
27
26
|
amount?: string | undefined;
|
|
28
|
-
billing_cadence: BillingCadence;
|
|
29
27
|
billing_model: BillingModel;
|
|
30
28
|
billing_period: BillingPeriod;
|
|
31
29
|
billing_period_count?: number | undefined;
|
|
@@ -44,7 +42,7 @@ export type SubscriptionPriceCreateRequest = {
|
|
|
44
42
|
tier_mode?: BillingTier | undefined;
|
|
45
43
|
tiers?: Array<CreatePriceTier> | undefined;
|
|
46
44
|
transform_quantity?: PriceTransformQuantity | undefined;
|
|
47
|
-
|
|
45
|
+
trial_period_days?: number | undefined;
|
|
48
46
|
type: PriceType;
|
|
49
47
|
};
|
|
50
48
|
|
|
@@ -52,7 +50,6 @@ export const SubscriptionPriceCreateRequest$zodSchema: z.ZodType<
|
|
|
52
50
|
SubscriptionPriceCreateRequest
|
|
53
51
|
> = z.object({
|
|
54
52
|
amount: z.string().optional(),
|
|
55
|
-
billing_cadence: BillingCadence$zodSchema,
|
|
56
53
|
billing_model: BillingModel$zodSchema,
|
|
57
54
|
billing_period: BillingPeriod$zodSchema,
|
|
58
55
|
billing_period_count: z.int().optional(),
|
|
@@ -71,6 +68,6 @@ export const SubscriptionPriceCreateRequest$zodSchema: z.ZodType<
|
|
|
71
68
|
tier_mode: BillingTier$zodSchema.optional(),
|
|
72
69
|
tiers: z.array(CreatePriceTier$zodSchema).optional(),
|
|
73
70
|
transform_quantity: PriceTransformQuantity$zodSchema.optional(),
|
|
74
|
-
|
|
71
|
+
trial_period_days: z.int().optional(),
|
|
75
72
|
type: PriceType$zodSchema,
|
|
76
73
|
});
|
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
|
|
54
54
|
export type SubscriptionResponse = {
|
|
55
55
|
active_pause_id?: string | undefined;
|
|
56
|
+
auto_invoice_threshold?: string | undefined;
|
|
56
57
|
billing_anchor?: string | undefined;
|
|
57
58
|
billing_cadence?: BillingCadence | undefined;
|
|
58
59
|
billing_cycle?: BillingCycle | undefined;
|
|
@@ -73,7 +74,6 @@ export type SubscriptionResponse = {
|
|
|
73
74
|
current_period_start?: string | undefined;
|
|
74
75
|
customer?: CustomerResponse | undefined;
|
|
75
76
|
customer_id?: string | undefined;
|
|
76
|
-
customer_timezone?: string | undefined;
|
|
77
77
|
enable_true_up?: boolean | undefined;
|
|
78
78
|
end_date?: string | undefined;
|
|
79
79
|
environment_id?: string | undefined;
|
|
@@ -98,7 +98,9 @@ export type SubscriptionResponse = {
|
|
|
98
98
|
status?: Status | undefined;
|
|
99
99
|
subscription_status?: SubscriptionStatus | undefined;
|
|
100
100
|
subscription_type?: SubscriptionType | undefined;
|
|
101
|
+
synced_price_sequence?: number | undefined;
|
|
101
102
|
tenant_id?: string | undefined;
|
|
103
|
+
timezone?: string | undefined;
|
|
102
104
|
trial_end?: string | undefined;
|
|
103
105
|
trial_start?: string | undefined;
|
|
104
106
|
updated_at?: string | undefined;
|
|
@@ -111,6 +113,9 @@ export const SubscriptionResponse$zodSchema: z.ZodType<SubscriptionResponse> = z
|
|
|
111
113
|
active_pause_id: z.string().optional().describe(
|
|
112
114
|
"ActivePauseID references the current active pause configuration\nThis will be null if no pause is active or scheduled",
|
|
113
115
|
),
|
|
116
|
+
auto_invoice_threshold: z.string().optional().describe(
|
|
117
|
+
"AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers\nan intermediate invoice. Overrides the plan-level threshold when set.\nNil means: inherit from the plan's threshold (which may also be nil = disabled).",
|
|
118
|
+
),
|
|
114
119
|
billing_anchor: z.iso.datetime({ offset: true }).optional().describe(
|
|
115
120
|
"BillingAnchor is the reference point that aligns future billing cycle dates.\nIt sets the day of week for week intervals, the day of month for month and year intervals,\nand the month of year for year intervals. The timestamp is in UTC format.",
|
|
116
121
|
),
|
|
@@ -160,7 +165,6 @@ export const SubscriptionResponse$zodSchema: z.ZodType<SubscriptionResponse> = z
|
|
|
160
165
|
customer_id: z.string().optional().describe(
|
|
161
166
|
"CustomerID is the identifier for the customer in our system",
|
|
162
167
|
),
|
|
163
|
-
customer_timezone: z.string().optional(),
|
|
164
168
|
enable_true_up: z.boolean().optional(),
|
|
165
169
|
end_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
166
170
|
"EndDate is the end date of the subscription",
|
|
@@ -209,7 +213,11 @@ export const SubscriptionResponse$zodSchema: z.ZodType<SubscriptionResponse> = z
|
|
|
209
213
|
status: Status$zodSchema.optional(),
|
|
210
214
|
subscription_status: SubscriptionStatus$zodSchema.optional(),
|
|
211
215
|
subscription_type: SubscriptionType$zodSchema.optional(),
|
|
216
|
+
synced_price_sequence: z.int().optional().describe(
|
|
217
|
+
"SyncedPriceSequence is the plan-price sequence up to which this\nsubscription's line items have been reconciled. Bumped by the\nplan-price sync after a successful pass.",
|
|
218
|
+
),
|
|
212
219
|
tenant_id: z.string().optional(),
|
|
220
|
+
timezone: z.string().optional(),
|
|
213
221
|
trial_end: z.iso.datetime({ offset: true }).optional().describe(
|
|
214
222
|
"TrialEnd is the end date of the trial period",
|
|
215
223
|
),
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
|
|
50
50
|
export type SubscriptionResponseV2 = {
|
|
51
51
|
active_pause_id?: string | undefined;
|
|
52
|
+
auto_invoice_threshold?: string | undefined;
|
|
52
53
|
billing_anchor?: string | undefined;
|
|
53
54
|
billing_cadence?: BillingCadence | undefined;
|
|
54
55
|
billing_cycle?: BillingCycle | undefined;
|
|
@@ -69,7 +70,6 @@ export type SubscriptionResponseV2 = {
|
|
|
69
70
|
current_period_start?: string | undefined;
|
|
70
71
|
customer?: CustomerResponse | undefined;
|
|
71
72
|
customer_id?: string | undefined;
|
|
72
|
-
customer_timezone?: string | undefined;
|
|
73
73
|
enable_true_up?: boolean | undefined;
|
|
74
74
|
end_date?: string | undefined;
|
|
75
75
|
environment_id?: string | undefined;
|
|
@@ -88,12 +88,15 @@ export type SubscriptionResponseV2 = {
|
|
|
88
88
|
phases?: Array<SubscriptionPhaseResponse> | undefined;
|
|
89
89
|
plan?: PlanResponse | undefined;
|
|
90
90
|
plan_id?: string | undefined;
|
|
91
|
+
plan_prices_out_of_sync?: boolean | undefined;
|
|
91
92
|
proration_behavior?: ProrationBehavior | undefined;
|
|
92
93
|
start_date?: string | undefined;
|
|
93
94
|
status?: Status | undefined;
|
|
94
95
|
subscription_status?: SubscriptionStatus | undefined;
|
|
95
96
|
subscription_type?: SubscriptionType | undefined;
|
|
97
|
+
synced_price_sequence?: number | undefined;
|
|
96
98
|
tenant_id?: string | undefined;
|
|
99
|
+
timezone?: string | undefined;
|
|
97
100
|
trial_end?: string | undefined;
|
|
98
101
|
trial_start?: string | undefined;
|
|
99
102
|
updated_at?: string | undefined;
|
|
@@ -107,6 +110,9 @@ export const SubscriptionResponseV2$zodSchema: z.ZodType<
|
|
|
107
110
|
active_pause_id: z.string().optional().describe(
|
|
108
111
|
"ActivePauseID references the current active pause configuration\nThis will be null if no pause is active or scheduled",
|
|
109
112
|
),
|
|
113
|
+
auto_invoice_threshold: z.string().optional().describe(
|
|
114
|
+
"AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers\nan intermediate invoice. Overrides the plan-level threshold when set.\nNil means: inherit from the plan's threshold (which may also be nil = disabled).",
|
|
115
|
+
),
|
|
110
116
|
billing_anchor: z.iso.datetime({ offset: true }).optional().describe(
|
|
111
117
|
"BillingAnchor is the reference point that aligns future billing cycle dates.\nIt sets the day of week for week intervals, the day of month for month and year intervals,\nand the month of year for year intervals. The timestamp is in UTC format.",
|
|
112
118
|
),
|
|
@@ -156,7 +162,6 @@ export const SubscriptionResponseV2$zodSchema: z.ZodType<
|
|
|
156
162
|
customer_id: z.string().optional().describe(
|
|
157
163
|
"CustomerID is the identifier for the customer in our system",
|
|
158
164
|
),
|
|
159
|
-
customer_timezone: z.string().optional(),
|
|
160
165
|
enable_true_up: z.boolean().optional(),
|
|
161
166
|
end_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
162
167
|
"EndDate is the end date of the subscription",
|
|
@@ -202,6 +207,9 @@ export const SubscriptionResponseV2$zodSchema: z.ZodType<
|
|
|
202
207
|
plan_id: z.string().optional().describe(
|
|
203
208
|
"PlanID is the identifier for the plan in our system",
|
|
204
209
|
),
|
|
210
|
+
plan_prices_out_of_sync: z.boolean().optional().describe(
|
|
211
|
+
"PlanPricesOutOfSync is true when the subscription's synced_price_sequence\nis behind the plan's current max prices.sequence — i.e. plan-price\nchanges have not yet been reconciled into this subscription's line items.",
|
|
212
|
+
),
|
|
205
213
|
proration_behavior: ProrationBehavior$zodSchema.optional(),
|
|
206
214
|
start_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
207
215
|
"StartDate is the start date of the subscription",
|
|
@@ -209,7 +217,11 @@ export const SubscriptionResponseV2$zodSchema: z.ZodType<
|
|
|
209
217
|
status: Status$zodSchema.optional(),
|
|
210
218
|
subscription_status: SubscriptionStatus$zodSchema.optional(),
|
|
211
219
|
subscription_type: SubscriptionType$zodSchema.optional(),
|
|
220
|
+
synced_price_sequence: z.int().optional().describe(
|
|
221
|
+
"SyncedPriceSequence is the plan-price sequence up to which this\nsubscription's line items have been reconciled. Bumped by the\nplan-price sync after a successful pass.",
|
|
222
|
+
),
|
|
212
223
|
tenant_id: z.string().optional(),
|
|
224
|
+
timezone: z.string().optional(),
|
|
213
225
|
trial_end: z.iso.datetime({ offset: true }).optional().describe(
|
|
214
226
|
"TrialEnd is the end date of the trial period",
|
|
215
227
|
),
|
|
@@ -13,14 +13,20 @@ import {
|
|
|
13
13
|
SubscriptionLineItemEntityType,
|
|
14
14
|
SubscriptionLineItemEntityType$zodSchema,
|
|
15
15
|
} from "./subscriptionlineitementitytype.js";
|
|
16
|
+
import {
|
|
17
|
+
TimeOfDayBucket,
|
|
18
|
+
TimeOfDayBucket$zodSchema,
|
|
19
|
+
} from "./timeofdaybucket.js";
|
|
16
20
|
|
|
17
21
|
export type SubscriptionSubscriptionLineItem = {
|
|
22
|
+
addon_association_id?: string | undefined;
|
|
18
23
|
billing_period?: BillingPeriod | undefined;
|
|
19
24
|
billing_period_count?: number | undefined;
|
|
20
25
|
commitment_amount?: string | undefined;
|
|
21
26
|
commitment_duration?: BillingPeriod | undefined;
|
|
22
27
|
commitment_overage_factor?: string | undefined;
|
|
23
28
|
commitment_quantity?: string | undefined;
|
|
29
|
+
commitment_time_buckets?: Array<TimeOfDayBucket> | undefined;
|
|
24
30
|
commitment_true_up_enabled?: boolean | undefined;
|
|
25
31
|
commitment_type?: CommitmentType | undefined;
|
|
26
32
|
commitment_windowed?: boolean | undefined;
|
|
@@ -50,7 +56,6 @@ export type SubscriptionSubscriptionLineItem = {
|
|
|
50
56
|
subscription_id?: string | undefined;
|
|
51
57
|
subscription_phase_id?: string | undefined;
|
|
52
58
|
tenant_id?: string | undefined;
|
|
53
|
-
trial_period?: number | undefined;
|
|
54
59
|
updated_at?: string | undefined;
|
|
55
60
|
updated_by?: string | undefined;
|
|
56
61
|
};
|
|
@@ -58,6 +63,7 @@ export type SubscriptionSubscriptionLineItem = {
|
|
|
58
63
|
export const SubscriptionSubscriptionLineItem$zodSchema: z.ZodType<
|
|
59
64
|
SubscriptionSubscriptionLineItem
|
|
60
65
|
> = z.object({
|
|
66
|
+
addon_association_id: z.string().optional(),
|
|
61
67
|
billing_period: BillingPeriod$zodSchema.optional(),
|
|
62
68
|
billing_period_count: z.int().optional().describe(
|
|
63
69
|
"from price at create; default 1",
|
|
@@ -66,6 +72,7 @@ export const SubscriptionSubscriptionLineItem$zodSchema: z.ZodType<
|
|
|
66
72
|
commitment_duration: BillingPeriod$zodSchema.optional(),
|
|
67
73
|
commitment_overage_factor: z.string().optional(),
|
|
68
74
|
commitment_quantity: z.string().optional(),
|
|
75
|
+
commitment_time_buckets: z.array(TimeOfDayBucket$zodSchema).optional(),
|
|
69
76
|
commitment_true_up_enabled: z.boolean().optional(),
|
|
70
77
|
commitment_type: CommitmentType$zodSchema.optional(),
|
|
71
78
|
commitment_windowed: z.boolean().optional(),
|
|
@@ -95,7 +102,6 @@ export const SubscriptionSubscriptionLineItem$zodSchema: z.ZodType<
|
|
|
95
102
|
subscription_id: z.string().optional(),
|
|
96
103
|
subscription_phase_id: z.string().optional(),
|
|
97
104
|
tenant_id: z.string().optional(),
|
|
98
|
-
trial_period: z.int().optional(),
|
|
99
105
|
updated_at: z.iso.datetime({ offset: true }).optional(),
|
|
100
106
|
updated_by: z.string().optional(),
|
|
101
107
|
});
|