@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/esm/types/async.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IASnD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
|
package/esm/types/async.js
CHANGED
|
@@ -7,19 +7,19 @@ export class APIPromise {
|
|
|
7
7
|
[Symbol.toStringTag] = "APIPromise";
|
|
8
8
|
constructor(p) {
|
|
9
9
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
10
|
-
this.#unwrapped =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
11
|
+
}
|
|
12
|
+
#getUnwrapped() {
|
|
13
|
+
return (this.#unwrapped ??= this.#promise.then(([value]) => value));
|
|
14
14
|
}
|
|
15
15
|
then(onfulfilled, onrejected) {
|
|
16
16
|
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
|
|
17
17
|
}
|
|
18
18
|
catch(onrejected) {
|
|
19
|
-
return this.#
|
|
19
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
20
20
|
}
|
|
21
21
|
finally(onfinally) {
|
|
22
|
-
return this.#
|
|
22
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
23
23
|
}
|
|
24
24
|
$inspect() {
|
|
25
25
|
return this.#promise;
|
package/esm/types/async.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAwB;
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAwB;IACzC,UAAU,CAAoB;IAErB,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,YAAY,CAAC;IAE7C,YAAY,CAAuC;QACjD,IAAI,CAAC,QAAQ,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,aAAa;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAiBnD;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAiBnD;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAmBvE;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAkBlE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAqBpE"}
|
package/esm/types/bigint.js
CHANGED
|
@@ -22,7 +22,8 @@ export function bigint() {
|
|
|
22
22
|
]);
|
|
23
23
|
}
|
|
24
24
|
export function bigintOptional() {
|
|
25
|
-
return z
|
|
25
|
+
return z
|
|
26
|
+
.union([
|
|
26
27
|
z.bigint().transform((v) => String(v)),
|
|
27
28
|
z.string().transform((v, ctx) => {
|
|
28
29
|
try {
|
|
@@ -37,9 +38,9 @@ export function bigintOptional() {
|
|
|
37
38
|
}
|
|
38
39
|
}),
|
|
39
40
|
z.number().transform((v) => BigInt(Math.trunc(v))),
|
|
40
|
-
z.undefined(),
|
|
41
41
|
z.null().transform(() => undefined),
|
|
42
|
-
])
|
|
42
|
+
])
|
|
43
|
+
.optional();
|
|
43
44
|
}
|
|
44
45
|
export function bigintNullable() {
|
|
45
46
|
return z.union([
|
package/esm/types/bigint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigint.js","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,UAAU,MAAM;IACpB,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBAChC,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC,KAAK,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC9D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"bigint.js","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,UAAU,MAAM;IACpB,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBAChC,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC,KAAK,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC9D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC;SACL,KAAK,CAAC;QACL,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBAChC,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC,KAAK,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KACpC,CAAC;SACD,QAAQ,EAAE,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBAChC,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC,KAAK,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,IAAI,EAAE;QACR,CAAC,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;KACpC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,WAAW,CAAmB,KAAQ;IACpD,OAAO,CAAC;SACL,KAAK,CAAC;QACL,CAAC,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBAChC,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC,KAAK,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACnD,CAAC;SACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE;QAC1B,OAAO,EAAE,iBAAiB,KAAK,EAAE;KAClC,CAAC;SACD,SAAS,CAAC,GAAG,EAAE,CAAC,KAAU,CAAC,CAAC;AACjC,CAAC"}
|
package/manifest.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sensitive": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "2.0.
|
|
51
|
+
"version": "2.0.21",
|
|
52
52
|
"tools": [
|
|
53
53
|
{
|
|
54
54
|
"name": "update-customer",
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
"name": "get-customer-by-external-id",
|
|
63
63
|
"description": "Get customer by external ID\n\nUse when resolving a customer by your app's id (e.g. from your user table). Ideal for integrations that key by external id."
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"name": "get-customer-entitlements-by-external-i-d",
|
|
67
|
+
"description": "Get customer entitlements by external ID\n\nUse when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids)."
|
|
68
|
+
},
|
|
65
69
|
{
|
|
66
70
|
"name": "query-customer",
|
|
67
71
|
"description": "Query customers\n\nUse when listing or searching customers (e.g. admin CRM or reporting). Returns a paginated list; supports filtering and sorting."
|
|
@@ -195,7 +199,7 @@
|
|
|
195
199
|
"description": "Delete plan\n\nUse when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message."
|
|
196
200
|
},
|
|
197
201
|
{
|
|
198
|
-
"name": "
|
|
202
|
+
"name": "clone-plan",
|
|
199
203
|
"description": "Clone a plan\n\nClone an existing plan, copying its active prices, published entitlements, and published credit grants"
|
|
200
204
|
},
|
|
201
205
|
{
|
|
@@ -242,6 +246,10 @@
|
|
|
242
246
|
"name": "remove-subscription-addon",
|
|
243
247
|
"description": "Remove addon from subscription\n\nUse when removing an add-on from a subscription (e.g. downgrade or opt-out)."
|
|
244
248
|
},
|
|
249
|
+
{
|
|
250
|
+
"name": "query-subscription-line-items",
|
|
251
|
+
"description": "Search subscription line items\n\nList subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.)."
|
|
252
|
+
},
|
|
245
253
|
{
|
|
246
254
|
"name": "update-subscription-line-item",
|
|
247
255
|
"description": "Update subscription line item\n\nUse when changing a subscription line item (e.g. quantity or price). Implemented by ending the current line and creating a new one for clean billing."
|
|
@@ -300,19 +308,11 @@
|
|
|
300
308
|
},
|
|
301
309
|
{
|
|
302
310
|
"name": "execute-subscription-modify",
|
|
303
|
-
"description": "
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "pause-subscription",
|
|
307
|
-
"description": "Pause a subscription\n\nUse when temporarily stopping a subscription (e.g. customer hold or seasonal pause). Billing and access pause; resume when ready."
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"name": "list-subscription-pauses",
|
|
311
|
-
"description": "List all pauses for a subscription\n\nUse when showing pause history for a subscription (e.g. support or audit). Returns all past and future pauses."
|
|
311
|
+
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax)."
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
"name": "
|
|
315
|
-
"description": "
|
|
314
|
+
"name": "preview-subscription-modify",
|
|
315
|
+
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes."
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"name": "get-subscription-v2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flexprice/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
4
4
|
"author": "flexprice",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"zod": "^4.0.0"
|
|
23
23
|
},
|
|
24
24
|
"overrides": {
|
|
25
|
-
"@modelcontextprotocol/sdk": "1.26.0"
|
|
25
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
26
|
+
"hono": ">=4.12.25",
|
|
27
|
+
"fast-uri": ">=3.1.2"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"@anthropic-ai/mcpb": "^1.2.0",
|
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "../models/
|
|
22
|
+
GetCustomerEntitlementsByExternalIDRequest,
|
|
23
|
+
GetCustomerEntitlementsByExternalIDRequest$zodSchema,
|
|
24
|
+
} from "../models/getcustomerentitlementsbyexternalidop.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Get customer entitlements by external ID
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Use when
|
|
32
|
+
* Use when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids).
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function customersGetCustomerEntitlementsByExternalID(
|
|
35
35
|
client$: FlexpriceCore,
|
|
36
|
-
request:
|
|
36
|
+
request: GetCustomerEntitlementsByExternalIDRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -56,7 +56,7 @@ export function subscriptionsListSubscriptionPauses(
|
|
|
56
56
|
|
|
57
57
|
async function $do(
|
|
58
58
|
client$: FlexpriceCore,
|
|
59
|
-
request:
|
|
59
|
+
request: GetCustomerEntitlementsByExternalIDRequest,
|
|
60
60
|
options?: RequestOptions,
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
@@ -75,7 +75,8 @@ async function $do(
|
|
|
75
75
|
> {
|
|
76
76
|
const parsed$ = safeParse(
|
|
77
77
|
request,
|
|
78
|
-
(value$) =>
|
|
78
|
+
(value$) =>
|
|
79
|
+
GetCustomerEntitlementsByExternalIDRequest$zodSchema.parse(value$),
|
|
79
80
|
"Input validation failed",
|
|
80
81
|
);
|
|
81
82
|
if (!parsed$.ok) {
|
|
@@ -85,12 +86,12 @@ async function $do(
|
|
|
85
86
|
const body$ = null;
|
|
86
87
|
|
|
87
88
|
const pathParams$ = {
|
|
88
|
-
|
|
89
|
+
external_id: encodeSimple("external_id", payload$.external_id, {
|
|
89
90
|
explode: false,
|
|
90
91
|
charEncoding: "percent",
|
|
91
92
|
}),
|
|
92
93
|
};
|
|
93
|
-
const path$ = pathToFunc("/
|
|
94
|
+
const path$ = pathToFunc("/customers/external/{external_id}/entitlements")(
|
|
94
95
|
pathParams$,
|
|
95
96
|
);
|
|
96
97
|
|
|
@@ -103,7 +104,7 @@ async function $do(
|
|
|
103
104
|
const context = {
|
|
104
105
|
options: client$._options,
|
|
105
106
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
106
|
-
operationID: "
|
|
107
|
+
operationID: "getCustomerEntitlementsByExternalID",
|
|
107
108
|
oAuth2Scopes: null,
|
|
108
109
|
resolvedSecurity: requestSecurity,
|
|
109
110
|
securitySource: client$._options.security,
|
|
@@ -9,6 +9,10 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ClonePlanRequestRequest,
|
|
14
|
+
ClonePlanRequestRequest$zodSchema,
|
|
15
|
+
} from "../models/cloneplanop.js";
|
|
12
16
|
import { APIError } from "../models/errors/apierror.js";
|
|
13
17
|
import {
|
|
14
18
|
ConnectionError,
|
|
@@ -18,10 +22,6 @@ import {
|
|
|
18
22
|
UnexpectedClientError,
|
|
19
23
|
} from "../models/errors/httpclienterrors.js";
|
|
20
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
-
import {
|
|
22
|
-
PostPlansIdCloneRequest,
|
|
23
|
-
PostPlansIdCloneRequest$zodSchema,
|
|
24
|
-
} from "../models/postplansidcloneop.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
@@ -31,9 +31,9 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Clone an existing plan, copying its active prices, published entitlements, and published credit grants
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function plansClonePlan(
|
|
35
35
|
client$: FlexpriceCore,
|
|
36
|
-
request:
|
|
36
|
+
request: ClonePlanRequestRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -56,7 +56,7 @@ export function plansPostPlansIdClone(
|
|
|
56
56
|
|
|
57
57
|
async function $do(
|
|
58
58
|
client$: FlexpriceCore,
|
|
59
|
-
request:
|
|
59
|
+
request: ClonePlanRequestRequest,
|
|
60
60
|
options?: RequestOptions,
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
@@ -75,7 +75,7 @@ async function $do(
|
|
|
75
75
|
> {
|
|
76
76
|
const parsed$ = safeParse(
|
|
77
77
|
request,
|
|
78
|
-
(value$) =>
|
|
78
|
+
(value$) => ClonePlanRequestRequest$zodSchema.parse(value$),
|
|
79
79
|
"Input validation failed",
|
|
80
80
|
);
|
|
81
81
|
if (!parsed$.ok) {
|
|
@@ -104,7 +104,7 @@ async function $do(
|
|
|
104
104
|
const context = {
|
|
105
105
|
options: client$._options,
|
|
106
106
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
-
operationID: "
|
|
107
|
+
operationID: "clonePlan",
|
|
108
108
|
oAuth2Scopes: null,
|
|
109
109
|
resolvedSecurity: requestSecurity,
|
|
110
110
|
securitySource: client$._options.security,
|
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
ExecuteSubscriptionModifyRequestRequest,
|
|
23
|
+
ExecuteSubscriptionModifyRequestRequest$zodSchema,
|
|
24
24
|
} from "../models/executesubscriptionmodifyop.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Execute subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax).
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsExecuteSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
|
36
|
-
request:
|
|
36
|
+
request: ExecuteSubscriptionModifyRequestRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -56,7 +56,7 @@ export function subscriptionsExecuteSubscriptionModify(
|
|
|
56
56
|
|
|
57
57
|
async function $do(
|
|
58
58
|
client$: FlexpriceCore,
|
|
59
|
-
request:
|
|
59
|
+
request: ExecuteSubscriptionModifyRequestRequest,
|
|
60
60
|
options?: RequestOptions,
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
@@ -75,7 +75,7 @@ async function $do(
|
|
|
75
75
|
> {
|
|
76
76
|
const parsed$ = safeParse(
|
|
77
77
|
request,
|
|
78
|
-
(value$) =>
|
|
78
|
+
(value$) => ExecuteSubscriptionModifyRequestRequest$zodSchema.parse(value$),
|
|
79
79
|
"Input validation failed",
|
|
80
80
|
);
|
|
81
81
|
if (!parsed$.ok) {
|
package/src/funcs/{subscriptionsResumeSubscription.ts → subscriptionsPreviewSubscriptionModify.ts}
RENAMED
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "../models/
|
|
22
|
+
PreviewSubscriptionModifyRequest,
|
|
23
|
+
PreviewSubscriptionModifyRequest$zodSchema,
|
|
24
|
+
} from "../models/previewsubscriptionmodifyop.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Preview subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function subscriptionsPreviewSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
|
36
|
-
request:
|
|
36
|
+
request: PreviewSubscriptionModifyRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -56,7 +56,7 @@ export function subscriptionsResumeSubscription(
|
|
|
56
56
|
|
|
57
57
|
async function $do(
|
|
58
58
|
client$: FlexpriceCore,
|
|
59
|
-
request:
|
|
59
|
+
request: PreviewSubscriptionModifyRequest,
|
|
60
60
|
options?: RequestOptions,
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
@@ -75,7 +75,7 @@ async function $do(
|
|
|
75
75
|
> {
|
|
76
76
|
const parsed$ = safeParse(
|
|
77
77
|
request,
|
|
78
|
-
(value$) =>
|
|
78
|
+
(value$) => PreviewSubscriptionModifyRequest$zodSchema.parse(value$),
|
|
79
79
|
"Input validation failed",
|
|
80
80
|
);
|
|
81
81
|
if (!parsed$.ok) {
|
|
@@ -90,7 +90,7 @@ async function $do(
|
|
|
90
90
|
charEncoding: "percent",
|
|
91
91
|
}),
|
|
92
92
|
};
|
|
93
|
-
const path$ = pathToFunc("/subscriptions/{id}/
|
|
93
|
+
const path$ = pathToFunc("/subscriptions/{id}/modify/preview")(
|
|
94
94
|
pathParams$,
|
|
95
95
|
);
|
|
96
96
|
|
|
@@ -104,7 +104,7 @@ async function $do(
|
|
|
104
104
|
const context = {
|
|
105
105
|
options: client$._options,
|
|
106
106
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
-
operationID: "
|
|
107
|
+
operationID: "previewSubscriptionModify",
|
|
108
108
|
oAuth2Scopes: null,
|
|
109
109
|
resolvedSecurity: requestSecurity,
|
|
110
110
|
securitySource: client$._options.security,
|
package/src/funcs/{subscriptionsPauseSubscription.ts → subscriptionsQuerySubscriptionLineItems.ts}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FlexpriceCore } from "../core.js";
|
|
6
|
-
import { encodeJSON
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "../models/
|
|
22
|
+
SubscriptionLineItemFilter,
|
|
23
|
+
SubscriptionLineItemFilter$zodSchema,
|
|
24
|
+
} from "../models/subscriptionlineitemfilter.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Search subscription line items
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* List subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.).
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function subscriptionsQuerySubscriptionLineItems(
|
|
35
35
|
client$: FlexpriceCore,
|
|
36
|
-
request:
|
|
36
|
+
request: SubscriptionLineItemFilter,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -56,7 +56,7 @@ export function subscriptionsPauseSubscription(
|
|
|
56
56
|
|
|
57
57
|
async function $do(
|
|
58
58
|
client$: FlexpriceCore,
|
|
59
|
-
request:
|
|
59
|
+
request: SubscriptionLineItemFilter,
|
|
60
60
|
options?: RequestOptions,
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
@@ -75,24 +75,15 @@ async function $do(
|
|
|
75
75
|
> {
|
|
76
76
|
const parsed$ = safeParse(
|
|
77
77
|
request,
|
|
78
|
-
(value$) =>
|
|
78
|
+
(value$) => SubscriptionLineItemFilter$zodSchema.parse(value$),
|
|
79
79
|
"Input validation failed",
|
|
80
80
|
);
|
|
81
81
|
if (!parsed$.ok) {
|
|
82
82
|
return [parsed$, { status: "invalid" }];
|
|
83
83
|
}
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
|
-
const body$ = encodeJSON("body", payload
|
|
86
|
-
|
|
87
|
-
const pathParams$ = {
|
|
88
|
-
id: encodeSimple("id", payload$.id, {
|
|
89
|
-
explode: false,
|
|
90
|
-
charEncoding: "percent",
|
|
91
|
-
}),
|
|
92
|
-
};
|
|
93
|
-
const path$ = pathToFunc("/subscriptions/{id}/pause")(
|
|
94
|
-
pathParams$,
|
|
95
|
-
);
|
|
85
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
86
|
+
const path$ = pathToFunc("/subscriptions/lineitems/search")();
|
|
96
87
|
|
|
97
88
|
const headers$ = new Headers(compactMap({
|
|
98
89
|
"Content-Type": "application/json",
|
|
@@ -104,7 +95,7 @@ async function $do(
|
|
|
104
95
|
const context = {
|
|
105
96
|
options: client$._options,
|
|
106
97
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
-
operationID: "
|
|
98
|
+
operationID: "querySubscriptionLineItems",
|
|
108
99
|
oAuth2Scopes: null,
|
|
109
100
|
resolvedSecurity: requestSecurity,
|
|
110
101
|
securitySource: client$._options.security,
|
package/src/landing-page.ts
CHANGED
|
@@ -18,8 +18,14 @@ export function landingPage(req: Request): Response {
|
|
|
18
18
|
|
|
19
19
|
// express wrapper
|
|
20
20
|
export function landingPageExpress(req: ExpressRequest, res: ExpressResponse) {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const proto = req.get("x-forwarded-proto")?.split(",")[0]?.trim()
|
|
22
|
+
|| req.protocol;
|
|
23
|
+
const host = req.get("host");
|
|
24
|
+
if (!host) {
|
|
25
|
+
res.status(400).send("Missing Host header");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
res.type("html").send(landingPageHTML(`${proto}://${host}`));
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
export function landingPageHTML(origin: string): string {
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0",
|
|
72
|
-
sdkVersion: "2.0.
|
|
73
|
-
genVersion: "2.
|
|
72
|
+
sdkVersion: "2.0.21",
|
|
73
|
+
genVersion: "2.915.1",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/mcp-typescript 2.0.
|
|
75
|
+
"speakeasy-sdk/mcp-typescript 2.0.21 2.915.1 1.0 @flexprice/mcp-server",
|
|
76
76
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { bytesToBase64 } from "./base64.js";
|
|
6
|
-
import { isPlainObject } from "./
|
|
6
|
+
import { isPlainObject } from "./primitives.js";
|
|
7
7
|
|
|
8
8
|
export class EncodingError extends Error {
|
|
9
9
|
constructor(message: string) {
|
|
@@ -513,3 +513,12 @@ export function appendForm(
|
|
|
513
513
|
fd.append(key, String(value));
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
+
|
|
517
|
+
export async function normalizeBlob(
|
|
518
|
+
value: Pick<Blob, "arrayBuffer" | "type">,
|
|
519
|
+
): Promise<Blob> {
|
|
520
|
+
if (value instanceof Blob) {
|
|
521
|
+
return value;
|
|
522
|
+
}
|
|
523
|
+
return new Blob([await value.arrayBuffer()], { type: value.type });
|
|
524
|
+
}
|
package/src/lib/primitives.ts
CHANGED
|
@@ -111,3 +111,19 @@ export function invariant(
|
|
|
111
111
|
throw new InvariantError(message);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
export function isPlainObject(
|
|
116
|
+
value: unknown,
|
|
117
|
+
): value is Record<string, unknown> {
|
|
118
|
+
if (value === null || typeof value !== "object") return false;
|
|
119
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
120
|
+
const proto = Object.getPrototypeOf(value);
|
|
121
|
+
if (proto === null || proto === Object.prototype) return true;
|
|
122
|
+
// cross-realm plain objects (vm contexts, iframes) inherit from a
|
|
123
|
+
// different realm's Object.prototype, which itself has a null prototype
|
|
124
|
+
try {
|
|
125
|
+
return Object.getPrototypeOf(proto) === null;
|
|
126
|
+
} catch {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
}
|
package/src/lib/retries.ts
CHANGED
|
@@ -194,6 +194,14 @@ async function retryBackoff(
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
function retryIntervalFromResponse(res: Response): number {
|
|
197
|
+
const retryAfterMsVal = res.headers.get("retry-after-ms");
|
|
198
|
+
if (retryAfterMsVal) {
|
|
199
|
+
const parsedMs = Number(retryAfterMsVal);
|
|
200
|
+
if (Number.isFinite(parsedMs) && parsedMs >= 0) {
|
|
201
|
+
return parsedMs;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
const retryVal = res.headers.get("retry-after") || "";
|
|
198
206
|
if (!retryVal) {
|
|
199
207
|
return 0;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -379,8 +379,6 @@ async function logResponse(
|
|
|
379
379
|
break;
|
|
380
380
|
case matchContentType(res, "application/jsonl")
|
|
381
381
|
|| jsonlLikeContentTypeRE.test(ct):
|
|
382
|
-
logger.log(await res.clone().text());
|
|
383
|
-
break;
|
|
384
382
|
case matchContentType(res, "text/event-stream"):
|
|
385
383
|
logger.log(`<${contentType}>`);
|
|
386
384
|
break;
|
|
@@ -40,7 +40,7 @@ export const serveCommand = buildCommand({
|
|
|
40
40
|
mode: {
|
|
41
41
|
kind: "enum",
|
|
42
42
|
brief:
|
|
43
|
-
"Server mode (dynamic: expose list_tools,
|
|
43
|
+
"Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
|
|
44
44
|
values: ["dynamic"],
|
|
45
45
|
optional: true,
|
|
46
46
|
},
|
|
@@ -40,7 +40,7 @@ async function startStreamableHTTP(cliFlags: ServeCommandFlags) {
|
|
|
40
40
|
app.use((req, res, next) => {
|
|
41
41
|
res.header("Access-Control-Allow-Origin", "*");
|
|
42
42
|
res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
|
|
43
|
-
res.header("Access-Control-Allow-Headers", "
|
|
43
|
+
res.header("Access-Control-Allow-Headers", "*");
|
|
44
44
|
if (req.method === "OPTIONS") {
|
|
45
45
|
res.sendStatus(204);
|
|
46
46
|
return;
|
|
@@ -40,7 +40,7 @@ export const startCommand = buildCommand({
|
|
|
40
40
|
mode: {
|
|
41
41
|
kind: "enum",
|
|
42
42
|
brief:
|
|
43
|
-
"Server mode (dynamic: expose list_tools,
|
|
43
|
+
"Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
|
|
44
44
|
values: ["dynamic"],
|
|
45
45
|
optional: true,
|
|
46
46
|
},
|