@omkar273/mcp-temp 0.0.47 → 0.0.52
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 +2685 -637
- package/bin/mcp-server.js.map +162 -112
- package/bun.lock +1 -1
- package/esm/funcs/customersQueryCustomer.d.ts +2 -2
- package/esm/funcs/customersQueryCustomer.d.ts.map +1 -1
- package/esm/funcs/customersQueryCustomer.js +2 -2
- package/esm/funcs/customersQueryCustomer.js.map +1 -1
- package/esm/funcs/invoicesQueryInvoice.d.ts +2 -2
- package/esm/funcs/invoicesQueryInvoice.d.ts.map +1 -1
- package/esm/funcs/invoicesQueryInvoice.js +2 -2
- package/esm/funcs/invoicesQueryInvoice.js.map +1 -1
- package/esm/funcs/plansCreatePlan.d.ts +16 -0
- package/esm/funcs/plansCreatePlan.d.ts.map +1 -0
- package/esm/funcs/plansCreatePlan.js +82 -0
- package/esm/funcs/plansCreatePlan.js.map +1 -0
- package/esm/funcs/plansDeletePlan.d.ts +16 -0
- package/esm/funcs/plansDeletePlan.d.ts.map +1 -0
- package/esm/funcs/plansDeletePlan.js +87 -0
- package/esm/funcs/plansDeletePlan.js.map +1 -0
- package/esm/funcs/plansGetPlan.d.ts +16 -0
- package/esm/funcs/plansGetPlan.d.ts.map +1 -0
- package/esm/funcs/plansGetPlan.js +87 -0
- package/esm/funcs/plansGetPlan.js.map +1 -0
- package/esm/funcs/plansPostPlansIdClone.d.ts +16 -0
- package/esm/funcs/plansPostPlansIdClone.d.ts.map +1 -0
- package/esm/funcs/plansPostPlansIdClone.js +88 -0
- package/esm/funcs/plansPostPlansIdClone.js.map +1 -0
- package/esm/funcs/plansQueryPlan.d.ts +16 -0
- package/esm/funcs/plansQueryPlan.d.ts.map +1 -0
- package/esm/funcs/plansQueryPlan.js +82 -0
- package/esm/funcs/plansQueryPlan.js.map +1 -0
- package/esm/funcs/plansSyncPlanPrices.d.ts +16 -0
- package/esm/funcs/plansSyncPlanPrices.d.ts.map +1 -0
- package/esm/funcs/plansSyncPlanPrices.js +87 -0
- package/esm/funcs/plansSyncPlanPrices.js.map +1 -0
- package/esm/funcs/plansUpdatePlan.d.ts +16 -0
- package/esm/funcs/plansUpdatePlan.d.ts.map +1 -0
- package/esm/funcs/plansUpdatePlan.js +88 -0
- package/esm/funcs/plansUpdatePlan.js.map +1 -0
- package/esm/funcs/pricesCreatePrice.d.ts +16 -0
- package/esm/funcs/pricesCreatePrice.d.ts.map +1 -0
- package/esm/funcs/pricesCreatePrice.js +82 -0
- package/esm/funcs/pricesCreatePrice.js.map +1 -0
- package/esm/funcs/pricesCreatePricesBulk.d.ts +16 -0
- package/esm/funcs/pricesCreatePricesBulk.d.ts.map +1 -0
- package/esm/funcs/pricesCreatePricesBulk.js +82 -0
- package/esm/funcs/pricesCreatePricesBulk.js.map +1 -0
- package/esm/funcs/pricesDeletePrice.d.ts +16 -0
- package/esm/funcs/pricesDeletePrice.d.ts.map +1 -0
- package/esm/funcs/pricesDeletePrice.js +88 -0
- package/esm/funcs/pricesDeletePrice.js.map +1 -0
- package/esm/funcs/pricesGetPrice.d.ts +16 -0
- package/esm/funcs/pricesGetPrice.d.ts.map +1 -0
- package/esm/funcs/pricesGetPrice.js +87 -0
- package/esm/funcs/pricesGetPrice.js.map +1 -0
- package/esm/funcs/pricesGetPriceByLookupKey.d.ts +16 -0
- package/esm/funcs/pricesGetPriceByLookupKey.d.ts.map +1 -0
- package/esm/funcs/pricesGetPriceByLookupKey.js +87 -0
- package/esm/funcs/pricesGetPriceByLookupKey.js.map +1 -0
- package/esm/funcs/pricesQueryPrice.d.ts +16 -0
- package/esm/funcs/pricesQueryPrice.d.ts.map +1 -0
- package/esm/funcs/pricesQueryPrice.js +82 -0
- package/esm/funcs/pricesQueryPrice.js.map +1 -0
- package/esm/funcs/pricesUpdatePrice.d.ts +16 -0
- package/esm/funcs/pricesUpdatePrice.d.ts.map +1 -0
- package/esm/funcs/pricesUpdatePrice.js +88 -0
- package/esm/funcs/pricesUpdatePrice.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +29 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/customersQueryCustomer.d.ts +1 -1
- package/esm/mcp-server/tools/customersQueryCustomer.js +2 -2
- package/esm/mcp-server/tools/customersQueryCustomer.js.map +1 -1
- package/esm/mcp-server/tools/invoicesQueryInvoice.d.ts +1 -1
- package/esm/mcp-server/tools/invoicesQueryInvoice.js +2 -2
- package/esm/mcp-server/tools/invoicesQueryInvoice.js.map +1 -1
- package/esm/mcp-server/tools/plansCreatePlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansCreatePlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansCreatePlan.js +34 -0
- package/esm/mcp-server/tools/plansCreatePlan.js.map +1 -0
- package/esm/mcp-server/tools/plansDeletePlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansDeletePlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansDeletePlan.js +34 -0
- package/esm/mcp-server/tools/plansDeletePlan.js.map +1 -0
- package/esm/mcp-server/tools/plansGetPlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansGetPlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansGetPlan.js +34 -0
- package/esm/mcp-server/tools/plansGetPlan.js.map +1 -0
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts +7 -0
- package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansPostPlansIdClone.js +34 -0
- package/esm/mcp-server/tools/plansPostPlansIdClone.js.map +1 -0
- package/esm/mcp-server/tools/plansQueryPlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansQueryPlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansQueryPlan.js +34 -0
- package/esm/mcp-server/tools/plansQueryPlan.js.map +1 -0
- package/esm/mcp-server/tools/plansSyncPlanPrices.d.ts +7 -0
- package/esm/mcp-server/tools/plansSyncPlanPrices.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansSyncPlanPrices.js +34 -0
- package/esm/mcp-server/tools/plansSyncPlanPrices.js.map +1 -0
- package/esm/mcp-server/tools/plansUpdatePlan.d.ts +7 -0
- package/esm/mcp-server/tools/plansUpdatePlan.d.ts.map +1 -0
- package/esm/mcp-server/tools/plansUpdatePlan.js +34 -0
- package/esm/mcp-server/tools/plansUpdatePlan.js.map +1 -0
- package/esm/mcp-server/tools/pricesCreatePrice.d.ts +7 -0
- package/esm/mcp-server/tools/pricesCreatePrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesCreatePrice.js +34 -0
- package/esm/mcp-server/tools/pricesCreatePrice.js.map +1 -0
- package/esm/mcp-server/tools/pricesCreatePricesBulk.d.ts +7 -0
- package/esm/mcp-server/tools/pricesCreatePricesBulk.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesCreatePricesBulk.js +34 -0
- package/esm/mcp-server/tools/pricesCreatePricesBulk.js.map +1 -0
- package/esm/mcp-server/tools/pricesDeletePrice.d.ts +7 -0
- package/esm/mcp-server/tools/pricesDeletePrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesDeletePrice.js +34 -0
- package/esm/mcp-server/tools/pricesDeletePrice.js.map +1 -0
- package/esm/mcp-server/tools/pricesGetPrice.d.ts +7 -0
- package/esm/mcp-server/tools/pricesGetPrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesGetPrice.js +34 -0
- package/esm/mcp-server/tools/pricesGetPrice.js.map +1 -0
- package/esm/mcp-server/tools/pricesGetPriceByLookupKey.d.ts +7 -0
- package/esm/mcp-server/tools/pricesGetPriceByLookupKey.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesGetPriceByLookupKey.js +34 -0
- package/esm/mcp-server/tools/pricesGetPriceByLookupKey.js.map +1 -0
- package/esm/mcp-server/tools/pricesQueryPrice.d.ts +7 -0
- package/esm/mcp-server/tools/pricesQueryPrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesQueryPrice.js +34 -0
- package/esm/mcp-server/tools/pricesQueryPrice.js.map +1 -0
- package/esm/mcp-server/tools/pricesUpdatePrice.d.ts +7 -0
- package/esm/mcp-server/tools/pricesUpdatePrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/pricesUpdatePrice.js +34 -0
- package/esm/mcp-server/tools/pricesUpdatePrice.js.map +1 -0
- package/esm/models/addontype.d.ts +12 -0
- package/esm/models/addontype.d.ts.map +1 -0
- package/esm/models/addontype.js +13 -0
- package/esm/models/addontype.js.map +1 -0
- package/esm/models/aggregationtype.d.ts +24 -0
- package/esm/models/aggregationtype.d.ts.map +1 -0
- package/esm/models/aggregationtype.js +25 -0
- package/esm/models/aggregationtype.js.map +1 -0
- package/esm/models/alertcondition.d.ts +12 -0
- package/esm/models/alertcondition.d.ts.map +1 -0
- package/esm/models/alertcondition.js +13 -0
- package/esm/models/alertcondition.js.map +1 -0
- package/esm/models/alertsettings.d.ts +10 -0
- package/esm/models/alertsettings.d.ts.map +1 -0
- package/esm/models/alertsettings.js +12 -0
- package/esm/models/alertsettings.js.map +1 -0
- package/esm/models/alertthreshold.d.ts +8 -0
- package/esm/models/alertthreshold.d.ts.map +1 -0
- package/esm/models/alertthreshold.js +10 -0
- package/esm/models/alertthreshold.js.map +1 -0
- package/esm/models/applicationstatus.d.ts +18 -0
- package/esm/models/applicationstatus.d.ts.map +1 -0
- package/esm/models/applicationstatus.js +19 -0
- package/esm/models/applicationstatus.js.map +1 -0
- package/esm/models/billingcadence.d.ts +12 -0
- package/esm/models/billingcadence.d.ts.map +1 -0
- package/esm/models/billingcadence.js +13 -0
- package/esm/models/billingcadence.js.map +1 -0
- package/esm/models/billingcycle.d.ts +12 -0
- package/esm/models/billingcycle.d.ts.map +1 -0
- package/esm/models/billingcycle.js +13 -0
- package/esm/models/billingcycle.js.map +1 -0
- package/esm/models/billingmodel.d.ts +14 -0
- package/esm/models/billingmodel.d.ts.map +1 -0
- package/esm/models/billingmodel.js +15 -0
- package/esm/models/billingmodel.js.map +1 -0
- package/esm/models/billingperiod.d.ts +20 -0
- package/esm/models/billingperiod.d.ts.map +1 -0
- package/esm/models/billingperiod.js +21 -0
- package/esm/models/billingperiod.js.map +1 -0
- package/esm/models/billingtier.d.ts +12 -0
- package/esm/models/billingtier.d.ts.map +1 -0
- package/esm/models/billingtier.js +13 -0
- package/esm/models/billingtier.js.map +1 -0
- package/esm/models/commitmentinfo.d.ts +17 -0
- package/esm/models/commitmentinfo.d.ts.map +1 -0
- package/esm/models/commitmentinfo.js +19 -0
- package/esm/models/commitmentinfo.js.map +1 -0
- package/esm/models/commitmenttype.d.ts +12 -0
- package/esm/models/commitmenttype.d.ts.map +1 -0
- package/esm/models/commitmenttype.js +13 -0
- package/esm/models/commitmenttype.js.map +1 -0
- package/esm/models/couponcadence.d.ts +14 -0
- package/esm/models/couponcadence.d.ts.map +1 -0
- package/esm/models/couponcadence.js +15 -0
- package/esm/models/couponcadence.js.map +1 -0
- package/esm/models/coupontype.d.ts +12 -0
- package/esm/models/coupontype.d.ts.map +1 -0
- package/esm/models/coupontype.js +13 -0
- package/esm/models/coupontype.js.map +1 -0
- package/esm/models/createplanop.d.ts +6 -0
- package/esm/models/createplanop.d.ts.map +1 -0
- package/esm/models/createplanop.js +12 -0
- package/esm/models/createplanop.js.map +1 -0
- package/esm/models/createpriceop.d.ts +6 -0
- package/esm/models/createpriceop.d.ts.map +1 -0
- package/esm/models/createpriceop.js +12 -0
- package/esm/models/createpriceop.js.map +1 -0
- package/esm/models/createpricesbulkop.d.ts +6 -0
- package/esm/models/createpricesbulkop.d.ts.map +1 -0
- package/esm/models/createpricesbulkop.js +11 -0
- package/esm/models/createpricesbulkop.js.map +1 -0
- package/esm/models/creditgrantapplicationreason.d.ts +14 -0
- package/esm/models/creditgrantapplicationreason.d.ts.map +1 -0
- package/esm/models/creditgrantapplicationreason.js +15 -0
- package/esm/models/creditgrantapplicationreason.js.map +1 -0
- package/esm/models/creditgrantcadence.d.ts +12 -0
- package/esm/models/creditgrantcadence.d.ts.map +1 -0
- package/esm/models/creditgrantcadence.js +13 -0
- package/esm/models/creditgrantcadence.js.map +1 -0
- package/esm/models/creditgrantexpirydurationunit.d.ts +16 -0
- package/esm/models/creditgrantexpirydurationunit.d.ts.map +1 -0
- package/esm/models/creditgrantexpirydurationunit.js +17 -0
- package/esm/models/creditgrantexpirydurationunit.js.map +1 -0
- package/esm/models/creditgrantexpirytype.d.ts +14 -0
- package/esm/models/creditgrantexpirytype.d.ts.map +1 -0
- package/esm/models/creditgrantexpirytype.js +15 -0
- package/esm/models/creditgrantexpirytype.js.map +1 -0
- package/esm/models/creditgrantperiod.d.ts +20 -0
- package/esm/models/creditgrantperiod.d.ts.map +1 -0
- package/esm/models/creditgrantperiod.js +21 -0
- package/esm/models/creditgrantperiod.js.map +1 -0
- package/esm/models/creditgrantscope.d.ts +12 -0
- package/esm/models/creditgrantscope.d.ts.map +1 -0
- package/esm/models/creditgrantscope.js +13 -0
- package/esm/models/creditgrantscope.js.map +1 -0
- package/esm/models/customerfilter.d.ts +32 -0
- package/esm/models/customerfilter.d.ts.map +1 -0
- package/esm/models/customerfilter.js +32 -0
- package/esm/models/customerfilter.js.map +1 -0
- package/esm/models/datatype.d.ts +16 -0
- package/esm/models/datatype.d.ts.map +1 -0
- package/esm/models/datatype.js +17 -0
- package/esm/models/datatype.js.map +1 -0
- package/esm/models/debugtrackerstatus.d.ts +16 -0
- package/esm/models/debugtrackerstatus.d.ts.map +1 -0
- package/esm/models/debugtrackerstatus.js +17 -0
- package/esm/models/debugtrackerstatus.js.map +1 -0
- package/esm/models/deleteplanop.d.ts +10 -0
- package/esm/models/deleteplanop.d.ts.map +1 -0
- package/esm/models/deleteplanop.js +16 -0
- package/esm/models/deleteplanop.js.map +1 -0
- package/esm/models/deletepriceop.d.ts +12 -0
- package/esm/models/deletepriceop.d.ts.map +1 -0
- package/esm/models/deletepriceop.js +18 -0
- package/esm/models/deletepriceop.js.map +1 -0
- package/esm/models/dtoaddonresponse.d.ts +4 -4
- package/esm/models/dtoaddonresponse.d.ts.map +1 -1
- package/esm/models/dtoaddonresponse.js +4 -4
- package/esm/models/dtoaddonresponse.js.map +1 -1
- package/esm/models/dtoaggregatedentitlement.d.ts +2 -2
- package/esm/models/dtoaggregatedentitlement.d.ts.map +1 -1
- package/esm/models/dtoaggregatedentitlement.js +2 -2
- package/esm/models/dtoaggregatedentitlement.js.map +1 -1
- package/esm/models/dtocloneplanrequest.d.ts +12 -0
- package/esm/models/dtocloneplanrequest.d.ts.map +1 -0
- package/esm/models/dtocloneplanrequest.js +13 -0
- package/esm/models/dtocloneplanrequest.js.map +1 -0
- package/esm/models/dtocouponapplicationresponse.d.ts +4 -4
- package/esm/models/dtocouponapplicationresponse.d.ts.map +1 -1
- package/esm/models/dtocouponapplicationresponse.js +4 -4
- package/esm/models/dtocouponapplicationresponse.js.map +1 -1
- package/esm/models/dtocouponassociationresponse.d.ts +2 -2
- package/esm/models/dtocouponassociationresponse.d.ts.map +1 -1
- package/esm/models/dtocouponassociationresponse.js +2 -2
- package/esm/models/dtocouponassociationresponse.js.map +1 -1
- package/esm/models/dtocreatebulkpricerequest.d.ts +7 -0
- package/esm/models/dtocreatebulkpricerequest.d.ts.map +1 -0
- package/esm/models/dtocreatebulkpricerequest.js +9 -0
- package/esm/models/dtocreatebulkpricerequest.js.map +1 -0
- package/esm/models/dtocreatebulkpriceresponse.d.ts +7 -0
- package/esm/models/dtocreatebulkpriceresponse.d.ts.map +1 -0
- package/esm/models/dtocreatebulkpriceresponse.js +9 -0
- package/esm/models/dtocreatebulkpriceresponse.js.map +1 -0
- package/esm/models/dtocreateinvoicelineitemrequest.d.ts +2 -2
- package/esm/models/dtocreateinvoicelineitemrequest.d.ts.map +1 -1
- package/esm/models/dtocreateinvoicelineitemrequest.js +2 -2
- package/esm/models/dtocreateinvoicelineitemrequest.js.map +1 -1
- package/esm/models/dtocreateinvoicerequest.d.ts +8 -8
- package/esm/models/dtocreateinvoicerequest.d.ts.map +1 -1
- package/esm/models/dtocreateinvoicerequest.js +8 -8
- package/esm/models/dtocreateinvoicerequest.js.map +1 -1
- package/esm/models/dtocreateplanrequest.d.ts +12 -0
- package/esm/models/dtocreateplanrequest.d.ts.map +1 -0
- package/esm/models/dtocreateplanrequest.js +13 -0
- package/esm/models/dtocreateplanrequest.js.map +1 -0
- package/esm/models/dtocreatepricerequest.d.ts +46 -0
- package/esm/models/dtocreatepricerequest.d.ts.map +1 -0
- package/esm/models/dtocreatepricerequest.js +44 -0
- package/esm/models/dtocreatepricerequest.js.map +1 -0
- package/esm/models/dtocreatepricetier.d.ts +8 -0
- package/esm/models/dtocreatepricetier.d.ts.map +1 -0
- package/esm/models/dtocreatepricetier.js +11 -0
- package/esm/models/dtocreatepricetier.js.map +1 -0
- package/esm/models/dtocreditgrantapplicationresponse.d.ts +8 -8
- package/esm/models/dtocreditgrantapplicationresponse.d.ts.map +1 -1
- package/esm/models/dtocreditgrantapplicationresponse.js +8 -9
- package/esm/models/dtocreditgrantapplicationresponse.js.map +1 -1
- package/esm/models/dtocreditgrantresponse.d.ts +12 -12
- package/esm/models/dtocreditgrantresponse.d.ts.map +1 -1
- package/esm/models/dtocreditgrantresponse.js +12 -13
- package/esm/models/dtocreditgrantresponse.js.map +1 -1
- package/esm/models/dtocustomerlookupresult.d.ts +2 -2
- package/esm/models/dtocustomerlookupresult.d.ts.map +1 -1
- package/esm/models/dtocustomerlookupresult.js +2 -2
- package/esm/models/dtocustomerlookupresult.js.map +1 -1
- package/esm/models/dtocustomerresponse.d.ts +2 -2
- package/esm/models/dtocustomerresponse.d.ts.map +1 -1
- package/esm/models/dtocustomerresponse.js +2 -2
- package/esm/models/dtocustomerresponse.js.map +1 -1
- package/esm/models/dtocustomerusagesummaryresponse.d.ts +2 -2
- package/esm/models/dtocustomerusagesummaryresponse.d.ts.map +1 -1
- package/esm/models/dtocustomerusagesummaryresponse.js +2 -2
- package/esm/models/dtocustomerusagesummaryresponse.js.map +1 -1
- package/esm/models/dtodebugtracker.d.ts +2 -2
- package/esm/models/dtodebugtracker.d.ts.map +1 -1
- package/esm/models/dtodebugtracker.js +2 -2
- package/esm/models/dtodebugtracker.js.map +1 -1
- package/esm/models/dtodeletepricerequest.d.ts +6 -0
- package/esm/models/dtodeletepricerequest.d.ts.map +1 -0
- package/esm/models/dtodeletepricerequest.js +8 -0
- package/esm/models/dtodeletepricerequest.js.map +1 -0
- package/esm/models/dtoentitlementresponse.d.ts +8 -8
- package/esm/models/dtoentitlementresponse.d.ts.map +1 -1
- package/esm/models/dtoentitlementresponse.js +8 -8
- package/esm/models/dtoentitlementresponse.js.map +1 -1
- package/esm/models/dtoentitlementsource.d.ts +2 -2
- package/esm/models/dtoentitlementsource.d.ts.map +1 -1
- package/esm/models/dtoentitlementsource.js +2 -2
- package/esm/models/dtoentitlementsource.js.map +1 -1
- package/esm/models/dtofeatureresponse.d.ts +6 -6
- package/esm/models/dtofeatureresponse.d.ts.map +1 -1
- package/esm/models/dtofeatureresponse.js +6 -6
- package/esm/models/dtofeatureresponse.js.map +1 -1
- package/esm/models/dtogeteventbyidresponse.d.ts +2 -2
- package/esm/models/dtogeteventbyidresponse.d.ts.map +1 -1
- package/esm/models/dtogeteventbyidresponse.js +2 -2
- package/esm/models/dtogeteventbyidresponse.js.map +1 -1
- package/esm/models/dtogetusageanalyticsrequest.d.ts +2 -2
- package/esm/models/dtogetusageanalyticsrequest.d.ts.map +1 -1
- package/esm/models/dtogetusageanalyticsrequest.js +2 -2
- package/esm/models/dtogetusageanalyticsrequest.js.map +1 -1
- package/esm/models/dtogetusagebymeterrequest.d.ts +3 -3
- package/esm/models/dtogetusagebymeterrequest.d.ts.map +1 -1
- package/esm/models/dtogetusagebymeterrequest.js +3 -3
- package/esm/models/dtogetusagebymeterrequest.js.map +1 -1
- package/esm/models/dtogetusagerequest.d.ts +5 -5
- package/esm/models/dtogetusagerequest.d.ts.map +1 -1
- package/esm/models/dtogetusagerequest.js +5 -5
- package/esm/models/dtogetusagerequest.js.map +1 -1
- package/esm/models/dtogetusageresponse.d.ts +2 -2
- package/esm/models/dtogetusageresponse.d.ts.map +1 -1
- package/esm/models/dtogetusageresponse.js +2 -2
- package/esm/models/dtogetusageresponse.js.map +1 -1
- package/esm/models/dtoinvoicelineitemresponse.d.ts +4 -4
- package/esm/models/dtoinvoicelineitemresponse.d.ts.map +1 -1
- package/esm/models/dtoinvoicelineitemresponse.js +4 -4
- package/esm/models/dtoinvoicelineitemresponse.js.map +1 -1
- package/esm/models/dtoinvoiceresponse.d.ts +8 -8
- package/esm/models/dtoinvoiceresponse.d.ts.map +1 -1
- package/esm/models/dtoinvoiceresponse.js +8 -8
- package/esm/models/dtoinvoiceresponse.js.map +1 -1
- package/esm/models/dtolistcreditgrantapplicationsresponse.d.ts +2 -2
- package/esm/models/dtolistcreditgrantapplicationsresponse.d.ts.map +1 -1
- package/esm/models/dtolistcreditgrantapplicationsresponse.js +2 -2
- package/esm/models/dtolistcreditgrantapplicationsresponse.js.map +1 -1
- package/esm/models/dtolistcustomersresponse.d.ts +2 -2
- package/esm/models/dtolistcustomersresponse.d.ts.map +1 -1
- package/esm/models/dtolistcustomersresponse.js +2 -2
- package/esm/models/dtolistcustomersresponse.js.map +1 -1
- package/esm/models/dtolistinvoicesresponse.d.ts +2 -2
- package/esm/models/dtolistinvoicesresponse.d.ts.map +1 -1
- package/esm/models/dtolistinvoicesresponse.js +2 -2
- package/esm/models/dtolistinvoicesresponse.js.map +1 -1
- package/esm/models/dtolistplansresponse.d.ts +9 -0
- package/esm/models/dtolistplansresponse.d.ts.map +1 -0
- package/esm/models/dtolistplansresponse.js +12 -0
- package/esm/models/dtolistplansresponse.js.map +1 -0
- package/esm/models/dtolistpricesresponse.d.ts +9 -0
- package/esm/models/dtolistpricesresponse.d.ts.map +1 -0
- package/esm/models/dtolistpricesresponse.js +11 -0
- package/esm/models/dtolistpricesresponse.js.map +1 -0
- package/esm/models/dtometermatchingresult.d.ts +2 -2
- package/esm/models/dtometermatchingresult.d.ts.map +1 -1
- package/esm/models/dtometermatchingresult.js +2 -2
- package/esm/models/dtometermatchingresult.js.map +1 -1
- package/esm/models/dtometerresponse.d.ts +2 -2
- package/esm/models/dtometerresponse.d.ts.map +1 -1
- package/esm/models/dtometerresponse.js +2 -2
- package/esm/models/dtometerresponse.js.map +1 -1
- package/esm/models/dtoplanresponse.d.ts +2 -2
- package/esm/models/dtoplanresponse.d.ts.map +1 -1
- package/esm/models/dtoplanresponse.js +2 -2
- package/esm/models/dtoplanresponse.js.map +1 -1
- package/esm/models/dtopricelookupresult.d.ts +2 -2
- package/esm/models/dtopricelookupresult.d.ts.map +1 -1
- package/esm/models/dtopricelookupresult.js +2 -2
- package/esm/models/dtopricelookupresult.js.map +1 -1
- package/esm/models/dtopriceresponse.d.ts +18 -18
- package/esm/models/dtopriceresponse.d.ts.map +1 -1
- package/esm/models/dtopriceresponse.js +18 -18
- package/esm/models/dtopriceresponse.js.map +1 -1
- package/esm/models/dtopriceunitconfig.d.ts +9 -0
- package/esm/models/dtopriceunitconfig.d.ts.map +1 -0
- package/esm/models/dtopriceunitconfig.js +12 -0
- package/esm/models/dtopriceunitconfig.js.map +1 -0
- package/esm/models/dtopriceunitresponse.d.ts +2 -2
- package/esm/models/dtopriceunitresponse.d.ts.map +1 -1
- package/esm/models/dtopriceunitresponse.js +2 -2
- package/esm/models/dtopriceunitresponse.js.map +1 -1
- package/esm/models/dtosubscriptionlineitemlookupresult.d.ts +2 -2
- package/esm/models/dtosubscriptionlineitemlookupresult.d.ts.map +1 -1
- package/esm/models/dtosubscriptionlineitemlookupresult.js +2 -2
- package/esm/models/dtosubscriptionlineitemlookupresult.js.map +1 -1
- package/esm/models/dtosubscriptionphaseresponse.d.ts +2 -2
- package/esm/models/dtosubscriptionphaseresponse.d.ts.map +1 -1
- package/esm/models/dtosubscriptionphaseresponse.js +2 -2
- package/esm/models/dtosubscriptionphaseresponse.js.map +1 -1
- package/esm/models/dtosubscriptionresponse.d.ts +17 -17
- package/esm/models/dtosubscriptionresponse.d.ts.map +1 -1
- package/esm/models/dtosubscriptionresponse.js +17 -17
- package/esm/models/dtosubscriptionresponse.js.map +1 -1
- package/esm/models/dtotaxappliedresponse.d.ts +4 -4
- package/esm/models/dtotaxappliedresponse.d.ts.map +1 -1
- package/esm/models/dtotaxappliedresponse.js +4 -4
- package/esm/models/dtotaxappliedresponse.js.map +1 -1
- package/esm/models/dtotaxrateresponse.d.ts +8 -8
- package/esm/models/dtotaxrateresponse.d.ts.map +1 -1
- package/esm/models/dtotaxrateresponse.js +8 -8
- package/esm/models/dtotaxrateresponse.js.map +1 -1
- package/esm/models/dtoupdatepaymentstatusrequest.d.ts +2 -2
- package/esm/models/dtoupdatepaymentstatusrequest.d.ts.map +1 -1
- package/esm/models/dtoupdatepaymentstatusrequest.js +2 -2
- package/esm/models/dtoupdatepaymentstatusrequest.js.map +1 -1
- package/esm/models/dtoupdateplanrequest.d.ts +12 -0
- package/esm/models/dtoupdateplanrequest.d.ts.map +1 -0
- package/esm/models/dtoupdateplanrequest.js +13 -0
- package/esm/models/dtoupdateplanrequest.js.map +1 -0
- package/esm/models/dtoupdatepricerequest.d.ts +24 -0
- package/esm/models/dtoupdatepricerequest.d.ts.map +1 -0
- package/esm/models/dtoupdatepricerequest.js +24 -0
- package/esm/models/dtoupdatepricerequest.js.map +1 -0
- package/esm/models/dtousageanalyticitem.d.ts +6 -6
- package/esm/models/dtousageanalyticitem.d.ts.map +1 -1
- package/esm/models/dtousageanalyticitem.js +6 -6
- package/esm/models/dtousageanalyticitem.js.map +1 -1
- package/esm/models/entitlemententitytype.d.ts +14 -0
- package/esm/models/entitlemententitytype.d.ts.map +1 -0
- package/esm/models/entitlemententitytype.js +15 -0
- package/esm/models/entitlemententitytype.js.map +1 -0
- package/esm/models/entitlementusageresetperiod.d.ts +22 -0
- package/esm/models/entitlementusageresetperiod.d.ts.map +1 -0
- package/esm/models/entitlementusageresetperiod.js +23 -0
- package/esm/models/entitlementusageresetperiod.js.map +1 -0
- package/esm/models/eventprocessingstatustype.d.ts +14 -0
- package/esm/models/eventprocessingstatustype.d.ts.map +1 -0
- package/esm/models/eventprocessingstatustype.js +15 -0
- package/esm/models/eventprocessingstatustype.js.map +1 -0
- package/esm/models/failurepoint.d.ts +9 -0
- package/esm/models/failurepoint.d.ts.map +1 -0
- package/esm/models/failurepoint.js +11 -0
- package/esm/models/failurepoint.js.map +1 -0
- package/esm/models/failurepointtype.d.ts +16 -0
- package/esm/models/failurepointtype.d.ts.map +1 -0
- package/esm/models/failurepointtype.js +17 -0
- package/esm/models/failurepointtype.js.map +1 -0
- package/esm/models/featuretype.d.ts +14 -0
- package/esm/models/featuretype.d.ts.map +1 -0
- package/esm/models/featuretype.js +15 -0
- package/esm/models/featuretype.js.map +1 -0
- package/esm/models/filtercondition.d.ts +12 -0
- package/esm/models/filtercondition.d.ts.map +1 -0
- package/esm/models/filtercondition.js +14 -0
- package/esm/models/filtercondition.js.map +1 -0
- package/esm/models/filteroperatortype.d.ts +26 -0
- package/esm/models/filteroperatortype.d.ts.map +1 -0
- package/esm/models/filteroperatortype.js +27 -0
- package/esm/models/filteroperatortype.js.map +1 -0
- package/esm/models/getplanop.d.ts +10 -0
- package/esm/models/getplanop.d.ts.map +1 -0
- package/esm/models/getplanop.js +14 -0
- package/esm/models/getplanop.js.map +1 -0
- package/esm/models/getpricebylookupkeyop.d.ts +10 -0
- package/esm/models/getpricebylookupkeyop.d.ts.map +1 -0
- package/esm/models/getpricebylookupkeyop.js +14 -0
- package/esm/models/getpricebylookupkeyop.js.map +1 -0
- package/esm/models/getpriceop.d.ts +10 -0
- package/esm/models/getpriceop.d.ts.map +1 -0
- package/esm/models/getpriceop.js +14 -0
- package/esm/models/getpriceop.js.map +1 -0
- package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.d.ts +4 -4
- package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.js +4 -4
- package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.js.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.d.ts +6 -6
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.js +6 -6
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.js.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.d.ts +2 -2
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.js +2 -2
- package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.js.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts +6 -6
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js +6 -6
- package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.d.ts +2 -2
- package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.d.ts.map +1 -1
- package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.js +2 -2
- package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.js.map +1 -1
- package/esm/models/invoicebillingreason.d.ts +18 -0
- package/esm/models/invoicebillingreason.d.ts.map +1 -0
- package/esm/models/invoicebillingreason.js +19 -0
- package/esm/models/invoicebillingreason.js.map +1 -0
- package/esm/models/invoicecadence.d.ts +12 -0
- package/esm/models/invoicecadence.d.ts.map +1 -0
- package/esm/models/invoicecadence.js +13 -0
- package/esm/models/invoicecadence.js.map +1 -0
- package/esm/models/invoicefilter.d.ts +44 -0
- package/esm/models/invoicefilter.d.ts.map +1 -0
- package/esm/models/invoicefilter.js +44 -0
- package/esm/models/invoicefilter.js.map +1 -0
- package/esm/models/invoicestatus.d.ts +14 -0
- package/esm/models/invoicestatus.d.ts.map +1 -0
- package/esm/models/invoicestatus.js +15 -0
- package/esm/models/invoicestatus.js.map +1 -0
- package/esm/models/invoicetype.d.ts +14 -0
- package/esm/models/invoicetype.d.ts.map +1 -0
- package/esm/models/invoicetype.js +15 -0
- package/esm/models/invoicetype.js.map +1 -0
- package/esm/models/meteraggregation.d.ts +4 -4
- package/esm/models/meteraggregation.d.ts.map +1 -1
- package/esm/models/meteraggregation.js +4 -4
- package/esm/models/meteraggregation.js.map +1 -1
- package/esm/models/metermeter.d.ts +4 -4
- package/esm/models/metermeter.d.ts.map +1 -1
- package/esm/models/metermeter.js +4 -4
- package/esm/models/metermeter.js.map +1 -1
- package/esm/models/modelstemporalworkflowresult.d.ts +8 -0
- package/esm/models/modelstemporalworkflowresult.d.ts.map +1 -0
- package/esm/models/modelstemporalworkflowresult.js +10 -0
- package/esm/models/modelstemporalworkflowresult.js.map +1 -0
- package/esm/models/paginationresponse.d.ts +8 -0
- package/esm/models/paginationresponse.d.ts.map +1 -0
- package/esm/models/paginationresponse.js +11 -0
- package/esm/models/paginationresponse.js.map +1 -0
- package/esm/models/pausemode.d.ts +14 -0
- package/esm/models/pausemode.d.ts.map +1 -0
- package/esm/models/pausemode.js +15 -0
- package/esm/models/pausemode.js.map +1 -0
- package/esm/models/pausestatus.d.ts +18 -0
- package/esm/models/pausestatus.d.ts.map +1 -0
- package/esm/models/pausestatus.js +19 -0
- package/esm/models/pausestatus.js.map +1 -0
- package/esm/models/paymentstatus.d.ts +24 -0
- package/esm/models/paymentstatus.d.ts.map +1 -0
- package/esm/models/paymentstatus.js +25 -0
- package/esm/models/paymentstatus.js.map +1 -0
- package/esm/models/paymentterms.d.ts +20 -0
- package/esm/models/paymentterms.d.ts.map +1 -0
- package/esm/models/paymentterms.js +21 -0
- package/esm/models/paymentterms.js.map +1 -0
- package/esm/models/planfilter.d.ts +29 -0
- package/esm/models/planfilter.d.ts.map +1 -0
- package/esm/models/planfilter.js +29 -0
- package/esm/models/planfilter.js.map +1 -0
- package/esm/models/postplansidcloneop.d.ts +12 -0
- package/esm/models/postplansidcloneop.d.ts.map +1 -0
- package/esm/models/postplansidcloneop.js +16 -0
- package/esm/models/postplansidcloneop.js.map +1 -0
- package/esm/models/priceentitytype.d.ts +18 -0
- package/esm/models/priceentitytype.d.ts.map +1 -0
- package/esm/models/priceentitytype.js +19 -0
- package/esm/models/priceentitytype.js.map +1 -0
- package/esm/models/pricefilter.d.ts +36 -0
- package/esm/models/pricefilter.d.ts.map +1 -0
- package/esm/models/pricefilter.js +36 -0
- package/esm/models/pricefilter.js.map +1 -0
- package/esm/models/pricejsonbtransformquantity.d.ts +2 -2
- package/esm/models/pricejsonbtransformquantity.d.ts.map +1 -1
- package/esm/models/pricejsonbtransformquantity.js +2 -2
- package/esm/models/pricejsonbtransformquantity.js.map +1 -1
- package/esm/models/priceprice.d.ts +18 -18
- package/esm/models/priceprice.d.ts.map +1 -1
- package/esm/models/priceprice.js +18 -18
- package/esm/models/priceprice.js.map +1 -1
- package/esm/models/pricetransformquantity.d.ts +8 -0
- package/esm/models/pricetransformquantity.d.ts.map +1 -0
- package/esm/models/pricetransformquantity.js +10 -0
- package/esm/models/pricetransformquantity.js.map +1 -0
- package/esm/models/pricetype.d.ts +12 -0
- package/esm/models/pricetype.d.ts.map +1 -0
- package/esm/models/pricetype.js +13 -0
- package/esm/models/pricetype.js.map +1 -0
- package/esm/models/priceunittype.d.ts +12 -0
- package/esm/models/priceunittype.d.ts.map +1 -0
- package/esm/models/priceunittype.js +13 -0
- package/esm/models/priceunittype.js.map +1 -0
- package/esm/models/prorationbehavior.d.ts +12 -0
- package/esm/models/prorationbehavior.d.ts.map +1 -0
- package/esm/models/prorationbehavior.js +13 -0
- package/esm/models/prorationbehavior.js.map +1 -0
- package/esm/models/queryplanop.d.ts +6 -0
- package/esm/models/queryplanop.d.ts.map +1 -0
- package/esm/models/queryplanop.js +12 -0
- package/esm/models/queryplanop.js.map +1 -0
- package/esm/models/querypriceop.d.ts +6 -0
- package/esm/models/querypriceop.d.ts.map +1 -0
- package/esm/models/querypriceop.js +12 -0
- package/esm/models/querypriceop.js.map +1 -0
- package/esm/models/resetusage.d.ts +12 -0
- package/esm/models/resetusage.d.ts.map +1 -0
- package/esm/models/resetusage.js +13 -0
- package/esm/models/resetusage.js.map +1 -0
- package/esm/models/resumemode.d.ts +14 -0
- package/esm/models/resumemode.d.ts.map +1 -0
- package/esm/models/resumemode.js +15 -0
- package/esm/models/resumemode.js.map +1 -0
- package/esm/models/roundtype.d.ts +12 -0
- package/esm/models/roundtype.d.ts.map +1 -0
- package/esm/models/roundtype.js +13 -0
- package/esm/models/roundtype.js.map +1 -0
- package/esm/models/sortcondition.d.ts +8 -0
- package/esm/models/sortcondition.d.ts.map +1 -0
- package/esm/models/sortcondition.js +10 -0
- package/esm/models/sortcondition.js.map +1 -0
- package/esm/models/sortdirection.d.ts +12 -0
- package/esm/models/sortdirection.d.ts.map +1 -0
- package/esm/models/sortdirection.js +13 -0
- package/esm/models/sortdirection.js.map +1 -0
- package/esm/models/status.d.ts +14 -0
- package/esm/models/status.d.ts.map +1 -0
- package/esm/models/status.js +15 -0
- package/esm/models/status.js.map +1 -0
- package/esm/models/subscriptionlineitementitytype.d.ts +14 -0
- package/esm/models/subscriptionlineitementitytype.d.ts.map +1 -0
- package/esm/models/subscriptionlineitementitytype.js +15 -0
- package/esm/models/subscriptionlineitementitytype.js.map +1 -0
- package/esm/models/subscriptionstatus.d.ts +20 -0
- package/esm/models/subscriptionstatus.d.ts.map +1 -0
- package/esm/models/subscriptionstatus.js +21 -0
- package/esm/models/subscriptionstatus.js.map +1 -0
- package/esm/models/subscriptionsubscriptionlineitem.d.ts +13 -13
- package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
- package/esm/models/subscriptionsubscriptionlineitem.js +13 -13
- package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
- package/esm/models/subscriptionsubscriptionpause.d.ts +8 -8
- package/esm/models/subscriptionsubscriptionpause.d.ts.map +1 -1
- package/esm/models/subscriptionsubscriptionpause.js +8 -8
- package/esm/models/subscriptionsubscriptionpause.js.map +1 -1
- package/esm/models/syncplanpricesop.d.ts +10 -0
- package/esm/models/syncplanpricesop.d.ts.map +1 -0
- package/esm/models/syncplanpricesop.js +14 -0
- package/esm/models/syncplanpricesop.js.map +1 -0
- package/esm/models/taxrateentitytype.d.ts +16 -0
- package/esm/models/taxrateentitytype.d.ts.map +1 -0
- package/esm/models/taxrateentitytype.js +17 -0
- package/esm/models/taxrateentitytype.js.map +1 -0
- package/esm/models/taxratescope.d.ts +14 -0
- package/esm/models/taxratescope.d.ts.map +1 -0
- package/esm/models/taxratescope.js +15 -0
- package/esm/models/taxratescope.js.map +1 -0
- package/esm/models/taxratestatus.d.ts +12 -0
- package/esm/models/taxratestatus.d.ts.map +1 -0
- package/esm/models/taxratestatus.js +13 -0
- package/esm/models/taxratestatus.js.map +1 -0
- package/esm/models/taxratetype.d.ts +12 -0
- package/esm/models/taxratetype.d.ts.map +1 -0
- package/esm/models/taxratetype.js +13 -0
- package/esm/models/taxratetype.js.map +1 -0
- package/esm/models/updateplanop.d.ts +12 -0
- package/esm/models/updateplanop.d.ts.map +1 -0
- package/esm/models/updateplanop.js +18 -0
- package/esm/models/updateplanop.js.map +1 -0
- package/esm/models/updatepriceop.d.ts +12 -0
- package/esm/models/updatepriceop.d.ts.map +1 -0
- package/esm/models/updatepriceop.js +18 -0
- package/esm/models/updatepriceop.js.map +1 -0
- package/esm/models/windowsize.d.ts +28 -0
- package/esm/models/windowsize.d.ts.map +1 -0
- package/esm/models/windowsize.js +29 -0
- package/esm/models/windowsize.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +56 -0
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +57 -1
- package/package.json +1 -1
- package/src/funcs/customersQueryCustomer.ts +7 -7
- package/src/funcs/invoicesQueryInvoice.ts +6 -6
- package/src/funcs/plansCreatePlan.ts +144 -0
- package/src/funcs/plansDeletePlan.ts +152 -0
- package/src/funcs/plansGetPlan.ts +152 -0
- package/src/funcs/plansPostPlansIdClone.ts +153 -0
- package/src/funcs/plansQueryPlan.ts +141 -0
- package/src/funcs/plansSyncPlanPrices.ts +152 -0
- package/src/funcs/plansUpdatePlan.ts +153 -0
- package/src/funcs/pricesCreatePrice.ts +144 -0
- package/src/funcs/pricesCreatePricesBulk.ts +144 -0
- package/src/funcs/pricesDeletePrice.ts +153 -0
- package/src/funcs/pricesGetPrice.ts +152 -0
- package/src/funcs/pricesGetPriceByLookupKey.ts +152 -0
- package/src/funcs/pricesQueryPrice.ts +141 -0
- package/src/funcs/pricesUpdatePrice.ts +153 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +29 -1
- package/src/mcp-server/tools/customersQueryCustomer.ts +2 -2
- package/src/mcp-server/tools/invoicesQueryInvoice.ts +2 -2
- package/src/mcp-server/tools/plansCreatePlan.ts +42 -0
- package/src/mcp-server/tools/plansDeletePlan.ts +42 -0
- package/src/mcp-server/tools/plansGetPlan.ts +42 -0
- package/src/mcp-server/tools/plansPostPlansIdClone.ts +42 -0
- package/src/mcp-server/tools/plansQueryPlan.ts +42 -0
- package/src/mcp-server/tools/plansSyncPlanPrices.ts +42 -0
- package/src/mcp-server/tools/plansUpdatePlan.ts +42 -0
- package/src/mcp-server/tools/pricesCreatePrice.ts +42 -0
- package/src/mcp-server/tools/pricesCreatePricesBulk.ts +42 -0
- package/src/mcp-server/tools/pricesDeletePrice.ts +42 -0
- package/src/mcp-server/tools/pricesGetPrice.ts +42 -0
- package/src/mcp-server/tools/pricesGetPriceByLookupKey.ts +42 -0
- package/src/mcp-server/tools/pricesQueryPrice.ts +42 -0
- package/src/mcp-server/tools/pricesUpdatePrice.ts +42 -0
- package/src/models/addontype.ts +17 -0
- package/src/models/aggregationtype.ts +29 -0
- package/src/models/alertcondition.ts +17 -0
- package/src/models/alertsettings.ts +20 -0
- package/src/models/alertthreshold.ts +16 -0
- package/src/models/applicationstatus.ts +23 -0
- package/src/models/billingcadence.ts +17 -0
- package/src/models/billingcycle.ts +17 -0
- package/src/models/billingmodel.ts +19 -0
- package/src/models/billingperiod.ts +25 -0
- package/src/models/billingtier.ts +17 -0
- package/src/models/commitmentinfo.ts +33 -0
- package/src/models/commitmenttype.ts +17 -0
- package/src/models/couponcadence.ts +19 -0
- package/src/models/coupontype.ts +17 -0
- package/src/models/createplanop.ts +21 -0
- package/src/models/createpriceop.ts +21 -0
- package/src/models/createpricesbulkop.ts +24 -0
- package/src/models/creditgrantapplicationreason.ts +21 -0
- package/src/models/creditgrantcadence.ts +17 -0
- package/src/models/creditgrantexpirydurationunit.ts +23 -0
- package/src/models/creditgrantexpirytype.ts +19 -0
- package/src/models/creditgrantperiod.ts +25 -0
- package/src/models/creditgrantscope.ts +17 -0
- package/src/models/customerfilter.ts +57 -0
- package/src/models/datatype.ts +21 -0
- package/src/models/debugtrackerstatus.ts +21 -0
- package/src/models/deleteplanop.ts +28 -0
- package/src/models/deletepriceop.ts +33 -0
- package/src/models/dtoaddonresponse.ts +6 -6
- package/src/models/dtoaggregatedentitlement.ts +5 -5
- package/src/models/dtocloneplanrequest.ts +22 -0
- package/src/models/dtocouponapplicationresponse.ts +6 -9
- package/src/models/dtocouponassociationresponse.ts +3 -3
- package/src/models/dtocreatebulkpricerequest.ts +17 -0
- package/src/models/dtocreatebulkpriceresponse.ts +19 -0
- package/src/models/dtocreateinvoicelineitemrequest.ts +3 -6
- package/src/models/dtocreateinvoicerequest.ts +14 -23
- package/src/models/dtocreateplanrequest.ts +22 -0
- package/src/models/dtocreatepricerequest.ts +87 -0
- package/src/models/dtocreatepricetier.ts +18 -0
- package/src/models/dtocreditgrantapplicationresponse.ts +18 -19
- package/src/models/dtocreditgrantresponse.ts +28 -29
- package/src/models/dtocustomerlookupresult.ts +6 -6
- package/src/models/dtocustomerresponse.ts +3 -3
- package/src/models/dtocustomerusagesummaryresponse.ts +5 -5
- package/src/models/dtodebugtracker.ts +3 -6
- package/src/models/dtodeletepricerequest.ts +12 -0
- package/src/models/dtoentitlementresponse.ts +16 -19
- package/src/models/dtoentitlementsource.ts +3 -6
- package/src/models/dtofeatureresponse.ts +9 -15
- package/src/models/dtogeteventbyidresponse.ts +5 -5
- package/src/models/dtogetusageanalyticsrequest.ts +3 -6
- package/src/models/dtogetusagebymeterrequest.ts +5 -8
- package/src/models/dtogetusagerequest.ts +10 -13
- package/src/models/dtogetusageresponse.ts +6 -6
- package/src/models/dtoinvoicelineitemresponse.ts +6 -9
- package/src/models/dtoinvoiceresponse.ts +12 -21
- package/src/models/dtolistcreditgrantapplicationsresponse.ts +5 -5
- package/src/models/dtolistcustomersresponse.ts +5 -5
- package/src/models/dtolistinvoicesresponse.ts +5 -5
- package/src/models/dtolistplansresponse.ts +24 -0
- package/src/models/dtolistpricesresponse.ts +24 -0
- package/src/models/dtometermatchingresult.ts +6 -6
- package/src/models/dtometerresponse.ts +3 -6
- package/src/models/dtoplanresponse.ts +3 -3
- package/src/models/dtopricelookupresult.ts +6 -6
- package/src/models/dtopriceresponse.ts +30 -48
- package/src/models/dtopriceunitconfig.ts +22 -0
- package/src/models/dtopriceunitresponse.ts +3 -3
- package/src/models/dtosubscriptionlineitemlookupresult.ts +6 -6
- package/src/models/dtosubscriptionphaseresponse.ts +3 -3
- package/src/models/dtosubscriptionresponse.ts +32 -47
- package/src/models/dtotaxappliedresponse.ts +8 -8
- package/src/models/dtotaxrateresponse.ts +12 -21
- package/src/models/dtoupdatepaymentstatusrequest.ts +3 -6
- package/src/models/dtoupdateplanrequest.ts +22 -0
- package/src/models/dtoupdatepricerequest.ts +48 -0
- package/src/models/dtousageanalyticitem.ts +12 -18
- package/src/models/entitlemententitytype.ts +19 -0
- package/src/models/entitlementusageresetperiod.ts +29 -0
- package/src/models/eventprocessingstatustype.ts +21 -0
- package/src/models/failurepoint.ts +23 -0
- package/src/models/failurepointtype.ts +21 -0
- package/src/models/featuretype.ts +19 -0
- package/src/models/filtercondition.ts +28 -0
- package/src/models/filteroperatortype.ts +31 -0
- package/src/models/getplanop.ts +26 -0
- package/src/models/getpricebylookupkeyop.ts +32 -0
- package/src/models/getpriceop.ts +26 -0
- package/src/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.ts +6 -6
- package/src/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.ts +9 -15
- package/src/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.ts +3 -3
- package/src/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.ts +9 -15
- package/src/models/githubcomflexpriceflexpriceinternaldomainplanplan.ts +3 -3
- package/src/models/invoicebillingreason.ts +23 -0
- package/src/models/invoicecadence.ts +17 -0
- package/src/models/invoicefilter.ts +78 -0
- package/src/models/invoicestatus.ts +19 -0
- package/src/models/invoicetype.ts +19 -0
- package/src/models/meteraggregation.ts +8 -11
- package/src/models/metermeter.ts +6 -9
- package/src/models/modelstemporalworkflowresult.ts +19 -0
- package/src/models/paginationresponse.ts +18 -0
- package/src/models/pausemode.ts +19 -0
- package/src/models/pausestatus.ts +23 -0
- package/src/models/paymentstatus.ts +29 -0
- package/src/models/paymentterms.ts +25 -0
- package/src/models/planfilter.ts +51 -0
- package/src/models/postplansidcloneop.ts +35 -0
- package/src/models/priceentitytype.ts +23 -0
- package/src/models/pricefilter.ts +68 -0
- package/src/models/pricejsonbtransformquantity.ts +3 -3
- package/src/models/priceprice.ts +30 -48
- package/src/models/pricetransformquantity.ts +18 -0
- package/src/models/pricetype.ts +17 -0
- package/src/models/priceunittype.ts +17 -0
- package/src/models/prorationbehavior.ts +17 -0
- package/src/models/queryplanop.ts +21 -0
- package/src/models/querypriceop.ts +21 -0
- package/src/models/resetusage.ts +17 -0
- package/src/models/resumemode.ts +19 -0
- package/src/models/roundtype.ts +17 -0
- package/src/models/sortcondition.ts +16 -0
- package/src/models/sortdirection.ts +17 -0
- package/src/models/status.ts +19 -0
- package/src/models/subscriptionlineitementitytype.ts +21 -0
- package/src/models/subscriptionstatus.ts +25 -0
- package/src/models/subscriptionsubscriptionlineitem.ts +22 -31
- package/src/models/subscriptionsubscriptionpause.ts +12 -18
- package/src/models/syncplanpricesop.ts +31 -0
- package/src/models/taxrateentitytype.ts +21 -0
- package/src/models/taxratescope.ts +19 -0
- package/src/models/taxratestatus.ts +17 -0
- package/src/models/taxratetype.ts +17 -0
- package/src/models/updateplanop.ts +33 -0
- package/src/models/updatepriceop.ts +33 -0
- package/src/models/windowsize.ts +33 -0
- package/src/tool-names.ts +56 -0
- package/esm/models/typesaddontype.d.ts +0 -12
- package/esm/models/typesaddontype.d.ts.map +0 -1
- package/esm/models/typesaddontype.js +0 -13
- package/esm/models/typesaddontype.js.map +0 -1
- package/esm/models/typesaggregationtype.d.ts +0 -24
- package/esm/models/typesaggregationtype.d.ts.map +0 -1
- package/esm/models/typesaggregationtype.js +0 -25
- package/esm/models/typesaggregationtype.js.map +0 -1
- package/esm/models/typesalertcondition.d.ts +0 -12
- package/esm/models/typesalertcondition.d.ts.map +0 -1
- package/esm/models/typesalertcondition.js +0 -13
- package/esm/models/typesalertcondition.js.map +0 -1
- package/esm/models/typesalertsettings.d.ts +0 -10
- package/esm/models/typesalertsettings.d.ts.map +0 -1
- package/esm/models/typesalertsettings.js +0 -13
- package/esm/models/typesalertsettings.js.map +0 -1
- package/esm/models/typesalertthreshold.d.ts +0 -8
- package/esm/models/typesalertthreshold.d.ts.map +0 -1
- package/esm/models/typesalertthreshold.js +0 -11
- package/esm/models/typesalertthreshold.js.map +0 -1
- package/esm/models/typesapplicationstatus.d.ts +0 -18
- package/esm/models/typesapplicationstatus.d.ts.map +0 -1
- package/esm/models/typesapplicationstatus.js +0 -19
- package/esm/models/typesapplicationstatus.js.map +0 -1
- package/esm/models/typesbillingcadence.d.ts +0 -12
- package/esm/models/typesbillingcadence.d.ts.map +0 -1
- package/esm/models/typesbillingcadence.js +0 -13
- package/esm/models/typesbillingcadence.js.map +0 -1
- package/esm/models/typesbillingcycle.d.ts +0 -12
- package/esm/models/typesbillingcycle.d.ts.map +0 -1
- package/esm/models/typesbillingcycle.js +0 -13
- package/esm/models/typesbillingcycle.js.map +0 -1
- package/esm/models/typesbillingmodel.d.ts +0 -14
- package/esm/models/typesbillingmodel.d.ts.map +0 -1
- package/esm/models/typesbillingmodel.js +0 -15
- package/esm/models/typesbillingmodel.js.map +0 -1
- package/esm/models/typesbillingperiod.d.ts +0 -20
- package/esm/models/typesbillingperiod.d.ts.map +0 -1
- package/esm/models/typesbillingperiod.js +0 -21
- package/esm/models/typesbillingperiod.js.map +0 -1
- package/esm/models/typesbillingtier.d.ts +0 -12
- package/esm/models/typesbillingtier.d.ts.map +0 -1
- package/esm/models/typesbillingtier.js +0 -13
- package/esm/models/typesbillingtier.js.map +0 -1
- package/esm/models/typescommitmentinfo.d.ts +0 -17
- package/esm/models/typescommitmentinfo.d.ts.map +0 -1
- package/esm/models/typescommitmentinfo.js +0 -20
- package/esm/models/typescommitmentinfo.js.map +0 -1
- package/esm/models/typescommitmenttype.d.ts +0 -12
- package/esm/models/typescommitmenttype.d.ts.map +0 -1
- package/esm/models/typescommitmenttype.js +0 -13
- package/esm/models/typescommitmenttype.js.map +0 -1
- package/esm/models/typescouponcadence.d.ts +0 -14
- package/esm/models/typescouponcadence.d.ts.map +0 -1
- package/esm/models/typescouponcadence.js +0 -15
- package/esm/models/typescouponcadence.js.map +0 -1
- package/esm/models/typescoupontype.d.ts +0 -12
- package/esm/models/typescoupontype.d.ts.map +0 -1
- package/esm/models/typescoupontype.js +0 -13
- package/esm/models/typescoupontype.js.map +0 -1
- package/esm/models/typescreditgrantapplicationreason.d.ts +0 -14
- package/esm/models/typescreditgrantapplicationreason.d.ts.map +0 -1
- package/esm/models/typescreditgrantapplicationreason.js +0 -15
- package/esm/models/typescreditgrantapplicationreason.js.map +0 -1
- package/esm/models/typescreditgrantcadence.d.ts +0 -12
- package/esm/models/typescreditgrantcadence.d.ts.map +0 -1
- package/esm/models/typescreditgrantcadence.js +0 -13
- package/esm/models/typescreditgrantcadence.js.map +0 -1
- package/esm/models/typescreditgrantexpirydurationunit.d.ts +0 -16
- package/esm/models/typescreditgrantexpirydurationunit.d.ts.map +0 -1
- package/esm/models/typescreditgrantexpirydurationunit.js +0 -17
- package/esm/models/typescreditgrantexpirydurationunit.js.map +0 -1
- package/esm/models/typescreditgrantexpirytype.d.ts +0 -14
- package/esm/models/typescreditgrantexpirytype.d.ts.map +0 -1
- package/esm/models/typescreditgrantexpirytype.js +0 -15
- package/esm/models/typescreditgrantexpirytype.js.map +0 -1
- package/esm/models/typescreditgrantperiod.d.ts +0 -20
- package/esm/models/typescreditgrantperiod.d.ts.map +0 -1
- package/esm/models/typescreditgrantperiod.js +0 -21
- package/esm/models/typescreditgrantperiod.js.map +0 -1
- package/esm/models/typescreditgrantscope.d.ts +0 -12
- package/esm/models/typescreditgrantscope.d.ts.map +0 -1
- package/esm/models/typescreditgrantscope.js +0 -13
- package/esm/models/typescreditgrantscope.js.map +0 -1
- package/esm/models/typescustomerfilter.d.ts +0 -32
- package/esm/models/typescustomerfilter.d.ts.map +0 -1
- package/esm/models/typescustomerfilter.js +0 -33
- package/esm/models/typescustomerfilter.js.map +0 -1
- package/esm/models/typesdatatype.d.ts +0 -16
- package/esm/models/typesdatatype.d.ts.map +0 -1
- package/esm/models/typesdatatype.js +0 -17
- package/esm/models/typesdatatype.js.map +0 -1
- package/esm/models/typesdebugtrackerstatus.d.ts +0 -16
- package/esm/models/typesdebugtrackerstatus.d.ts.map +0 -1
- package/esm/models/typesdebugtrackerstatus.js +0 -17
- package/esm/models/typesdebugtrackerstatus.js.map +0 -1
- package/esm/models/typesentitlemententitytype.d.ts +0 -14
- package/esm/models/typesentitlemententitytype.d.ts.map +0 -1
- package/esm/models/typesentitlemententitytype.js +0 -15
- package/esm/models/typesentitlemententitytype.js.map +0 -1
- package/esm/models/typesentitlementusageresetperiod.d.ts +0 -22
- package/esm/models/typesentitlementusageresetperiod.d.ts.map +0 -1
- package/esm/models/typesentitlementusageresetperiod.js +0 -23
- package/esm/models/typesentitlementusageresetperiod.js.map +0 -1
- package/esm/models/typeseventprocessingstatustype.d.ts +0 -14
- package/esm/models/typeseventprocessingstatustype.d.ts.map +0 -1
- package/esm/models/typeseventprocessingstatustype.js +0 -15
- package/esm/models/typeseventprocessingstatustype.js.map +0 -1
- package/esm/models/typesfailurepoint.d.ts +0 -9
- package/esm/models/typesfailurepoint.d.ts.map +0 -1
- package/esm/models/typesfailurepoint.js +0 -12
- package/esm/models/typesfailurepoint.js.map +0 -1
- package/esm/models/typesfailurepointtype.d.ts +0 -16
- package/esm/models/typesfailurepointtype.d.ts.map +0 -1
- package/esm/models/typesfailurepointtype.js +0 -17
- package/esm/models/typesfailurepointtype.js.map +0 -1
- package/esm/models/typesfeaturetype.d.ts +0 -14
- package/esm/models/typesfeaturetype.d.ts.map +0 -1
- package/esm/models/typesfeaturetype.js +0 -15
- package/esm/models/typesfeaturetype.js.map +0 -1
- package/esm/models/typesfiltercondition.d.ts +0 -12
- package/esm/models/typesfiltercondition.d.ts.map +0 -1
- package/esm/models/typesfiltercondition.js +0 -15
- package/esm/models/typesfiltercondition.js.map +0 -1
- package/esm/models/typesfilteroperatortype.d.ts +0 -26
- package/esm/models/typesfilteroperatortype.d.ts.map +0 -1
- package/esm/models/typesfilteroperatortype.js +0 -27
- package/esm/models/typesfilteroperatortype.js.map +0 -1
- package/esm/models/typesinvoicebillingreason.d.ts +0 -18
- package/esm/models/typesinvoicebillingreason.d.ts.map +0 -1
- package/esm/models/typesinvoicebillingreason.js +0 -19
- package/esm/models/typesinvoicebillingreason.js.map +0 -1
- package/esm/models/typesinvoicecadence.d.ts +0 -12
- package/esm/models/typesinvoicecadence.d.ts.map +0 -1
- package/esm/models/typesinvoicecadence.js +0 -13
- package/esm/models/typesinvoicecadence.js.map +0 -1
- package/esm/models/typesinvoicefilter.d.ts +0 -44
- package/esm/models/typesinvoicefilter.d.ts.map +0 -1
- package/esm/models/typesinvoicefilter.js +0 -45
- package/esm/models/typesinvoicefilter.js.map +0 -1
- package/esm/models/typesinvoicestatus.d.ts +0 -14
- package/esm/models/typesinvoicestatus.d.ts.map +0 -1
- package/esm/models/typesinvoicestatus.js +0 -15
- package/esm/models/typesinvoicestatus.js.map +0 -1
- package/esm/models/typesinvoicetype.d.ts +0 -14
- package/esm/models/typesinvoicetype.d.ts.map +0 -1
- package/esm/models/typesinvoicetype.js +0 -15
- package/esm/models/typesinvoicetype.js.map +0 -1
- package/esm/models/typespaginationresponse.d.ts +0 -8
- package/esm/models/typespaginationresponse.d.ts.map +0 -1
- package/esm/models/typespaginationresponse.js +0 -10
- package/esm/models/typespaginationresponse.js.map +0 -1
- package/esm/models/typespausemode.d.ts +0 -14
- package/esm/models/typespausemode.d.ts.map +0 -1
- package/esm/models/typespausemode.js +0 -15
- package/esm/models/typespausemode.js.map +0 -1
- package/esm/models/typespausestatus.d.ts +0 -18
- package/esm/models/typespausestatus.d.ts.map +0 -1
- package/esm/models/typespausestatus.js +0 -19
- package/esm/models/typespausestatus.js.map +0 -1
- package/esm/models/typespaymentstatus.d.ts +0 -24
- package/esm/models/typespaymentstatus.d.ts.map +0 -1
- package/esm/models/typespaymentstatus.js +0 -25
- package/esm/models/typespaymentstatus.js.map +0 -1
- package/esm/models/typespaymentterms.d.ts +0 -20
- package/esm/models/typespaymentterms.d.ts.map +0 -1
- package/esm/models/typespaymentterms.js +0 -21
- package/esm/models/typespaymentterms.js.map +0 -1
- package/esm/models/typespriceentitytype.d.ts +0 -18
- package/esm/models/typespriceentitytype.d.ts.map +0 -1
- package/esm/models/typespriceentitytype.js +0 -19
- package/esm/models/typespriceentitytype.js.map +0 -1
- package/esm/models/typespricetype.d.ts +0 -12
- package/esm/models/typespricetype.d.ts.map +0 -1
- package/esm/models/typespricetype.js +0 -13
- package/esm/models/typespricetype.js.map +0 -1
- package/esm/models/typespriceunittype.d.ts +0 -12
- package/esm/models/typespriceunittype.d.ts.map +0 -1
- package/esm/models/typespriceunittype.js +0 -13
- package/esm/models/typespriceunittype.js.map +0 -1
- package/esm/models/typesprorationbehavior.d.ts +0 -12
- package/esm/models/typesprorationbehavior.d.ts.map +0 -1
- package/esm/models/typesprorationbehavior.js +0 -13
- package/esm/models/typesprorationbehavior.js.map +0 -1
- package/esm/models/typesresetusage.d.ts +0 -12
- package/esm/models/typesresetusage.d.ts.map +0 -1
- package/esm/models/typesresetusage.js +0 -13
- package/esm/models/typesresetusage.js.map +0 -1
- package/esm/models/typesresumemode.d.ts +0 -14
- package/esm/models/typesresumemode.d.ts.map +0 -1
- package/esm/models/typesresumemode.js +0 -15
- package/esm/models/typesresumemode.js.map +0 -1
- package/esm/models/typesroundtype.d.ts +0 -12
- package/esm/models/typesroundtype.d.ts.map +0 -1
- package/esm/models/typesroundtype.js +0 -13
- package/esm/models/typesroundtype.js.map +0 -1
- package/esm/models/typessortcondition.d.ts +0 -8
- package/esm/models/typessortcondition.d.ts.map +0 -1
- package/esm/models/typessortcondition.js +0 -11
- package/esm/models/typessortcondition.js.map +0 -1
- package/esm/models/typessortdirection.d.ts +0 -12
- package/esm/models/typessortdirection.d.ts.map +0 -1
- package/esm/models/typessortdirection.js +0 -13
- package/esm/models/typessortdirection.js.map +0 -1
- package/esm/models/typesstatus.d.ts +0 -14
- package/esm/models/typesstatus.d.ts.map +0 -1
- package/esm/models/typesstatus.js +0 -15
- package/esm/models/typesstatus.js.map +0 -1
- package/esm/models/typessubscriptionlineitementitytype.d.ts +0 -14
- package/esm/models/typessubscriptionlineitementitytype.d.ts.map +0 -1
- package/esm/models/typessubscriptionlineitementitytype.js +0 -15
- package/esm/models/typessubscriptionlineitementitytype.js.map +0 -1
- package/esm/models/typessubscriptionstatus.d.ts +0 -20
- package/esm/models/typessubscriptionstatus.d.ts.map +0 -1
- package/esm/models/typessubscriptionstatus.js +0 -21
- package/esm/models/typessubscriptionstatus.js.map +0 -1
- package/esm/models/typestaxrateentitytype.d.ts +0 -16
- package/esm/models/typestaxrateentitytype.d.ts.map +0 -1
- package/esm/models/typestaxrateentitytype.js +0 -17
- package/esm/models/typestaxrateentitytype.js.map +0 -1
- package/esm/models/typestaxratescope.d.ts +0 -14
- package/esm/models/typestaxratescope.d.ts.map +0 -1
- package/esm/models/typestaxratescope.js +0 -15
- package/esm/models/typestaxratescope.js.map +0 -1
- package/esm/models/typestaxratestatus.d.ts +0 -12
- package/esm/models/typestaxratestatus.d.ts.map +0 -1
- package/esm/models/typestaxratestatus.js +0 -13
- package/esm/models/typestaxratestatus.js.map +0 -1
- package/esm/models/typestaxratetype.d.ts +0 -12
- package/esm/models/typestaxratetype.d.ts.map +0 -1
- package/esm/models/typestaxratetype.js +0 -13
- package/esm/models/typestaxratetype.js.map +0 -1
- package/esm/models/typeswindowsize.d.ts +0 -28
- package/esm/models/typeswindowsize.d.ts.map +0 -1
- package/esm/models/typeswindowsize.js +0 -29
- package/esm/models/typeswindowsize.js.map +0 -1
- package/src/models/typesaddontype.ts +0 -17
- package/src/models/typesaggregationtype.ts +0 -29
- package/src/models/typesalertcondition.ts +0 -17
- package/src/models/typesalertsettings.ts +0 -24
- package/src/models/typesalertthreshold.ts +0 -20
- package/src/models/typesapplicationstatus.ts +0 -23
- package/src/models/typesbillingcadence.ts +0 -17
- package/src/models/typesbillingcycle.ts +0 -17
- package/src/models/typesbillingmodel.ts +0 -19
- package/src/models/typesbillingperiod.ts +0 -25
- package/src/models/typesbillingtier.ts +0 -17
- package/src/models/typescommitmentinfo.ts +0 -40
- package/src/models/typescommitmenttype.ts +0 -17
- package/src/models/typescouponcadence.ts +0 -19
- package/src/models/typescoupontype.ts +0 -17
- package/src/models/typescreditgrantapplicationreason.ts +0 -21
- package/src/models/typescreditgrantcadence.ts +0 -19
- package/src/models/typescreditgrantexpirydurationunit.ts +0 -23
- package/src/models/typescreditgrantexpirytype.ts +0 -21
- package/src/models/typescreditgrantperiod.ts +0 -25
- package/src/models/typescreditgrantscope.ts +0 -17
- package/src/models/typescustomerfilter.ts +0 -63
- package/src/models/typesdatatype.ts +0 -21
- package/src/models/typesdebugtrackerstatus.ts +0 -23
- package/src/models/typesentitlemententitytype.ts +0 -21
- package/src/models/typesentitlementusageresetperiod.ts +0 -29
- package/src/models/typeseventprocessingstatustype.ts +0 -21
- package/src/models/typesfailurepoint.ts +0 -24
- package/src/models/typesfailurepointtype.ts +0 -21
- package/src/models/typesfeaturetype.ts +0 -19
- package/src/models/typesfiltercondition.ts +0 -29
- package/src/models/typesfilteroperatortype.ts +0 -33
- package/src/models/typesinvoicebillingreason.ts +0 -25
- package/src/models/typesinvoicecadence.ts +0 -17
- package/src/models/typesinvoicefilter.ts +0 -93
- package/src/models/typesinvoicestatus.ts +0 -19
- package/src/models/typesinvoicetype.ts +0 -19
- package/src/models/typespaginationresponse.ts +0 -19
- package/src/models/typespausemode.ts +0 -19
- package/src/models/typespausestatus.ts +0 -23
- package/src/models/typespaymentstatus.ts +0 -29
- package/src/models/typespaymentterms.ts +0 -25
- package/src/models/typespriceentitytype.ts +0 -23
- package/src/models/typespricetype.ts +0 -17
- package/src/models/typespriceunittype.ts +0 -17
- package/src/models/typesprorationbehavior.ts +0 -17
- package/src/models/typesresetusage.ts +0 -17
- package/src/models/typesresumemode.ts +0 -19
- package/src/models/typesroundtype.ts +0 -17
- package/src/models/typessortcondition.ts +0 -20
- package/src/models/typessortdirection.ts +0 -17
- package/src/models/typesstatus.ts +0 -19
- package/src/models/typessubscriptionlineitementitytype.ts +0 -21
- package/src/models/typessubscriptionstatus.ts +0 -27
- package/src/models/typestaxrateentitytype.ts +0 -21
- package/src/models/typestaxratescope.ts +0 -19
- package/src/models/typestaxratestatus.ts +0 -17
- package/src/models/typestaxratetype.ts +0 -17
- package/src/models/typeswindowsize.ts +0 -33
package/bin/mcp-server.js
CHANGED
|
@@ -50418,9 +50418,9 @@ var init_config = __esm(() => {
|
|
|
50418
50418
|
SDK_METADATA = {
|
|
50419
50419
|
language: "typescript",
|
|
50420
50420
|
openapiDocVersion: "1.0",
|
|
50421
|
-
sdkVersion: "0.0.
|
|
50422
|
-
genVersion: "2.845.
|
|
50423
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
50421
|
+
sdkVersion: "0.0.52",
|
|
50422
|
+
genVersion: "2.845.5",
|
|
50423
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.52 2.845.5 1.0 @omkar273/mcp-temp"
|
|
50424
50424
|
};
|
|
50425
50425
|
});
|
|
50426
50426
|
|
|
@@ -52071,11 +52071,11 @@ Use when removing a customer (e.g. GDPR or churn). Returns 204 No Content on suc
|
|
|
52071
52071
|
};
|
|
52072
52072
|
});
|
|
52073
52073
|
|
|
52074
|
-
// src/models/
|
|
52075
|
-
var
|
|
52076
|
-
var
|
|
52074
|
+
// src/models/status.ts
|
|
52075
|
+
var Status$zodSchema;
|
|
52076
|
+
var init_status = __esm(() => {
|
|
52077
52077
|
init_zod();
|
|
52078
|
-
|
|
52078
|
+
Status$zodSchema = _enum([
|
|
52079
52079
|
"published",
|
|
52080
52080
|
"deleted",
|
|
52081
52081
|
"archived"
|
|
@@ -52086,7 +52086,7 @@ var init_typesstatus = __esm(() => {
|
|
|
52086
52086
|
var DtoCustomerResponse$zodSchema;
|
|
52087
52087
|
var init_dtocustomerresponse = __esm(() => {
|
|
52088
52088
|
init_zod();
|
|
52089
|
-
|
|
52089
|
+
init_status();
|
|
52090
52090
|
DtoCustomerResponse$zodSchema = object({
|
|
52091
52091
|
address_city: string2().optional(),
|
|
52092
52092
|
address_country: string2().optional(),
|
|
@@ -52104,7 +52104,7 @@ var init_dtocustomerresponse = __esm(() => {
|
|
|
52104
52104
|
name: string2().optional(),
|
|
52105
52105
|
parent_customer: lazy(() => DtoCustomerResponse$zodSchema).optional(),
|
|
52106
52106
|
parent_customer_id: string2().optional(),
|
|
52107
|
-
status:
|
|
52107
|
+
status: Status$zodSchema.optional(),
|
|
52108
52108
|
tenant_id: string2().optional(),
|
|
52109
52109
|
updated_at: string2().optional(),
|
|
52110
52110
|
updated_by: string2().optional()
|
|
@@ -52388,11 +52388,11 @@ Use when resolving a customer by your app's id (e.g. from your user table). Idea
|
|
|
52388
52388
|
};
|
|
52389
52389
|
});
|
|
52390
52390
|
|
|
52391
|
-
// src/models/
|
|
52392
|
-
var
|
|
52393
|
-
var
|
|
52391
|
+
// src/models/entitlementusageresetperiod.ts
|
|
52392
|
+
var EntitlementUsageResetPeriod$zodSchema;
|
|
52393
|
+
var init_entitlementusageresetperiod = __esm(() => {
|
|
52394
52394
|
init_zod();
|
|
52395
|
-
|
|
52395
|
+
EntitlementUsageResetPeriod$zodSchema = _enum([
|
|
52396
52396
|
"MONTHLY",
|
|
52397
52397
|
"ANNUAL",
|
|
52398
52398
|
"WEEKLY",
|
|
@@ -52407,16 +52407,30 @@ var init_typesentitlementusageresetperiod = __esm(() => {
|
|
|
52407
52407
|
var DtoAggregatedEntitlement$zodSchema;
|
|
52408
52408
|
var init_dtoaggregatedentitlement = __esm(() => {
|
|
52409
52409
|
init_zod();
|
|
52410
|
-
|
|
52410
|
+
init_entitlementusageresetperiod();
|
|
52411
52411
|
DtoAggregatedEntitlement$zodSchema = object({
|
|
52412
52412
|
is_enabled: boolean2().optional(),
|
|
52413
52413
|
is_soft_limit: boolean2().optional(),
|
|
52414
52414
|
static_values: array(string2()).optional(),
|
|
52415
52415
|
usage_limit: int().optional(),
|
|
52416
|
-
usage_reset_period:
|
|
52416
|
+
usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional()
|
|
52417
52417
|
});
|
|
52418
52418
|
});
|
|
52419
52419
|
|
|
52420
|
+
// src/models/billingperiod.ts
|
|
52421
|
+
var BillingPeriod$zodSchema;
|
|
52422
|
+
var init_billingperiod = __esm(() => {
|
|
52423
|
+
init_zod();
|
|
52424
|
+
BillingPeriod$zodSchema = _enum([
|
|
52425
|
+
"MONTHLY",
|
|
52426
|
+
"ANNUAL",
|
|
52427
|
+
"WEEKLY",
|
|
52428
|
+
"DAILY",
|
|
52429
|
+
"QUARTERLY",
|
|
52430
|
+
"HALF_YEARLY"
|
|
52431
|
+
]);
|
|
52432
|
+
});
|
|
52433
|
+
|
|
52420
52434
|
// src/models/dtoentitlementsourceentitytype.ts
|
|
52421
52435
|
var DtoEntitlementSourceEntityType$zodSchema;
|
|
52422
52436
|
var init_dtoentitlementsourceentitytype = __esm(() => {
|
|
@@ -52428,26 +52442,12 @@ var init_dtoentitlementsourceentitytype = __esm(() => {
|
|
|
52428
52442
|
]);
|
|
52429
52443
|
});
|
|
52430
52444
|
|
|
52431
|
-
// src/models/typesbillingperiod.ts
|
|
52432
|
-
var TypesBillingPeriod$zodSchema;
|
|
52433
|
-
var init_typesbillingperiod = __esm(() => {
|
|
52434
|
-
init_zod();
|
|
52435
|
-
TypesBillingPeriod$zodSchema = _enum([
|
|
52436
|
-
"MONTHLY",
|
|
52437
|
-
"ANNUAL",
|
|
52438
|
-
"WEEKLY",
|
|
52439
|
-
"DAILY",
|
|
52440
|
-
"QUARTERLY",
|
|
52441
|
-
"HALF_YEARLY"
|
|
52442
|
-
]);
|
|
52443
|
-
});
|
|
52444
|
-
|
|
52445
52445
|
// src/models/dtoentitlementsource.ts
|
|
52446
52446
|
var DtoEntitlementSource$zodSchema;
|
|
52447
52447
|
var init_dtoentitlementsource = __esm(() => {
|
|
52448
52448
|
init_zod();
|
|
52449
|
+
init_billingperiod();
|
|
52449
52450
|
init_dtoentitlementsourceentitytype();
|
|
52450
|
-
init_typesbillingperiod();
|
|
52451
52451
|
DtoEntitlementSource$zodSchema = object({
|
|
52452
52452
|
entitlement_id: string2().optional(),
|
|
52453
52453
|
entity_id: string2().optional(),
|
|
@@ -52458,15 +52458,49 @@ var init_dtoentitlementsource = __esm(() => {
|
|
|
52458
52458
|
static_value: string2().optional(),
|
|
52459
52459
|
subscription_id: string2().optional(),
|
|
52460
52460
|
usage_limit: int().optional(),
|
|
52461
|
-
usage_reset_period:
|
|
52461
|
+
usage_reset_period: BillingPeriod$zodSchema.optional()
|
|
52462
|
+
});
|
|
52463
|
+
});
|
|
52464
|
+
|
|
52465
|
+
// src/models/alertcondition.ts
|
|
52466
|
+
var AlertCondition$zodSchema;
|
|
52467
|
+
var init_alertcondition = __esm(() => {
|
|
52468
|
+
init_zod();
|
|
52469
|
+
AlertCondition$zodSchema = _enum([
|
|
52470
|
+
"above",
|
|
52471
|
+
"below"
|
|
52472
|
+
]);
|
|
52473
|
+
});
|
|
52474
|
+
|
|
52475
|
+
// src/models/alertthreshold.ts
|
|
52476
|
+
var AlertThreshold$zodSchema;
|
|
52477
|
+
var init_alertthreshold = __esm(() => {
|
|
52478
|
+
init_zod();
|
|
52479
|
+
init_alertcondition();
|
|
52480
|
+
AlertThreshold$zodSchema = object({
|
|
52481
|
+
condition: AlertCondition$zodSchema.optional(),
|
|
52482
|
+
threshold: number2().optional()
|
|
52483
|
+
});
|
|
52484
|
+
});
|
|
52485
|
+
|
|
52486
|
+
// src/models/alertsettings.ts
|
|
52487
|
+
var AlertSettings$zodSchema;
|
|
52488
|
+
var init_alertsettings = __esm(() => {
|
|
52489
|
+
init_zod();
|
|
52490
|
+
init_alertthreshold();
|
|
52491
|
+
AlertSettings$zodSchema = object({
|
|
52492
|
+
alert_enabled: boolean2().optional(),
|
|
52493
|
+
critical: AlertThreshold$zodSchema.optional(),
|
|
52494
|
+
info: AlertThreshold$zodSchema.optional(),
|
|
52495
|
+
warning: AlertThreshold$zodSchema.optional()
|
|
52462
52496
|
});
|
|
52463
52497
|
});
|
|
52464
52498
|
|
|
52465
|
-
// src/models/
|
|
52466
|
-
var
|
|
52467
|
-
var
|
|
52499
|
+
// src/models/aggregationtype.ts
|
|
52500
|
+
var AggregationType$zodSchema;
|
|
52501
|
+
var init_aggregationtype = __esm(() => {
|
|
52468
52502
|
init_zod();
|
|
52469
|
-
|
|
52503
|
+
AggregationType$zodSchema = _enum([
|
|
52470
52504
|
"COUNT",
|
|
52471
52505
|
"SUM",
|
|
52472
52506
|
"AVG",
|
|
@@ -52478,11 +52512,11 @@ var init_typesaggregationtype = __esm(() => {
|
|
|
52478
52512
|
]);
|
|
52479
52513
|
});
|
|
52480
52514
|
|
|
52481
|
-
// src/models/
|
|
52482
|
-
var
|
|
52483
|
-
var
|
|
52515
|
+
// src/models/windowsize.ts
|
|
52516
|
+
var WindowSize$zodSchema;
|
|
52517
|
+
var init_windowsize = __esm(() => {
|
|
52484
52518
|
init_zod();
|
|
52485
|
-
|
|
52519
|
+
WindowSize$zodSchema = _enum([
|
|
52486
52520
|
"MINUTE",
|
|
52487
52521
|
"15MIN",
|
|
52488
52522
|
"30MIN",
|
|
@@ -52500,14 +52534,14 @@ var init_typeswindowsize = __esm(() => {
|
|
|
52500
52534
|
var MeterAggregation$zodSchema;
|
|
52501
52535
|
var init_meteraggregation = __esm(() => {
|
|
52502
52536
|
init_zod();
|
|
52503
|
-
|
|
52504
|
-
|
|
52537
|
+
init_aggregationtype();
|
|
52538
|
+
init_windowsize();
|
|
52505
52539
|
MeterAggregation$zodSchema = object({
|
|
52506
|
-
bucket_size:
|
|
52540
|
+
bucket_size: WindowSize$zodSchema.optional(),
|
|
52507
52541
|
field: string2().optional(),
|
|
52508
52542
|
group_by: string2().optional(),
|
|
52509
52543
|
multiplier: string2().optional(),
|
|
52510
|
-
type:
|
|
52544
|
+
type: AggregationType$zodSchema.optional()
|
|
52511
52545
|
});
|
|
52512
52546
|
});
|
|
52513
52547
|
|
|
@@ -52521,11 +52555,11 @@ var init_meterfilter = __esm(() => {
|
|
|
52521
52555
|
});
|
|
52522
52556
|
});
|
|
52523
52557
|
|
|
52524
|
-
// src/models/
|
|
52525
|
-
var
|
|
52526
|
-
var
|
|
52558
|
+
// src/models/resetusage.ts
|
|
52559
|
+
var ResetUsage$zodSchema;
|
|
52560
|
+
var init_resetusage = __esm(() => {
|
|
52527
52561
|
init_zod();
|
|
52528
|
-
|
|
52562
|
+
ResetUsage$zodSchema = _enum([
|
|
52529
52563
|
"BILLING_PERIOD",
|
|
52530
52564
|
"NEVER"
|
|
52531
52565
|
]);
|
|
@@ -52537,7 +52571,7 @@ var init_dtometerresponse = __esm(() => {
|
|
|
52537
52571
|
init_zod();
|
|
52538
52572
|
init_meteraggregation();
|
|
52539
52573
|
init_meterfilter();
|
|
52540
|
-
|
|
52574
|
+
init_resetusage();
|
|
52541
52575
|
DtoMeterResponse$zodSchema = object({
|
|
52542
52576
|
aggregation: MeterAggregation$zodSchema.optional(),
|
|
52543
52577
|
created_at: string2().optional(),
|
|
@@ -52545,52 +52579,18 @@ var init_dtometerresponse = __esm(() => {
|
|
|
52545
52579
|
filters: array(MeterFilter$zodSchema).optional(),
|
|
52546
52580
|
id: string2().optional(),
|
|
52547
52581
|
name: string2().optional(),
|
|
52548
|
-
reset_usage:
|
|
52582
|
+
reset_usage: ResetUsage$zodSchema.optional(),
|
|
52549
52583
|
status: string2().optional(),
|
|
52550
52584
|
tenant_id: string2().optional(),
|
|
52551
52585
|
updated_at: string2().optional()
|
|
52552
52586
|
});
|
|
52553
52587
|
});
|
|
52554
52588
|
|
|
52555
|
-
// src/models/
|
|
52556
|
-
var
|
|
52557
|
-
var
|
|
52558
|
-
init_zod();
|
|
52559
|
-
TypesAlertCondition$zodSchema = _enum([
|
|
52560
|
-
"above",
|
|
52561
|
-
"below"
|
|
52562
|
-
]);
|
|
52563
|
-
});
|
|
52564
|
-
|
|
52565
|
-
// src/models/typesalertthreshold.ts
|
|
52566
|
-
var TypesAlertThreshold$zodSchema;
|
|
52567
|
-
var init_typesalertthreshold = __esm(() => {
|
|
52568
|
-
init_zod();
|
|
52569
|
-
init_typesalertcondition();
|
|
52570
|
-
TypesAlertThreshold$zodSchema = object({
|
|
52571
|
-
condition: TypesAlertCondition$zodSchema.optional(),
|
|
52572
|
-
threshold: number2().optional()
|
|
52573
|
-
});
|
|
52574
|
-
});
|
|
52575
|
-
|
|
52576
|
-
// src/models/typesalertsettings.ts
|
|
52577
|
-
var TypesAlertSettings$zodSchema;
|
|
52578
|
-
var init_typesalertsettings = __esm(() => {
|
|
52579
|
-
init_zod();
|
|
52580
|
-
init_typesalertthreshold();
|
|
52581
|
-
TypesAlertSettings$zodSchema = object({
|
|
52582
|
-
alert_enabled: boolean2().optional(),
|
|
52583
|
-
critical: TypesAlertThreshold$zodSchema.optional(),
|
|
52584
|
-
info: TypesAlertThreshold$zodSchema.optional(),
|
|
52585
|
-
warning: TypesAlertThreshold$zodSchema.optional()
|
|
52586
|
-
});
|
|
52587
|
-
});
|
|
52588
|
-
|
|
52589
|
-
// src/models/typesfeaturetype.ts
|
|
52590
|
-
var TypesFeatureType$zodSchema;
|
|
52591
|
-
var init_typesfeaturetype = __esm(() => {
|
|
52589
|
+
// src/models/featuretype.ts
|
|
52590
|
+
var FeatureType$zodSchema;
|
|
52591
|
+
var init_featuretype = __esm(() => {
|
|
52592
52592
|
init_zod();
|
|
52593
|
-
|
|
52593
|
+
FeatureType$zodSchema = _enum([
|
|
52594
52594
|
"metered",
|
|
52595
52595
|
"boolean",
|
|
52596
52596
|
"static"
|
|
@@ -52601,12 +52601,12 @@ var init_typesfeaturetype = __esm(() => {
|
|
|
52601
52601
|
var DtoFeatureResponse$zodSchema;
|
|
52602
52602
|
var init_dtofeatureresponse = __esm(() => {
|
|
52603
52603
|
init_zod();
|
|
52604
|
+
init_alertsettings();
|
|
52604
52605
|
init_dtometerresponse();
|
|
52605
|
-
|
|
52606
|
-
|
|
52607
|
-
init_typesstatus();
|
|
52606
|
+
init_featuretype();
|
|
52607
|
+
init_status();
|
|
52608
52608
|
DtoFeatureResponse$zodSchema = object({
|
|
52609
|
-
alert_settings:
|
|
52609
|
+
alert_settings: AlertSettings$zodSchema.optional(),
|
|
52610
52610
|
created_at: string2().optional(),
|
|
52611
52611
|
created_by: string2().optional(),
|
|
52612
52612
|
description: string2().optional(),
|
|
@@ -52617,9 +52617,9 @@ var init_dtofeatureresponse = __esm(() => {
|
|
|
52617
52617
|
meter: DtoMeterResponse$zodSchema.optional(),
|
|
52618
52618
|
meter_id: string2().optional(),
|
|
52619
52619
|
name: string2().optional(),
|
|
52620
|
-
status:
|
|
52620
|
+
status: Status$zodSchema.optional(),
|
|
52621
52621
|
tenant_id: string2().optional(),
|
|
52622
|
-
type:
|
|
52622
|
+
type: FeatureType$zodSchema.optional(),
|
|
52623
52623
|
unit_plural: string2().optional(),
|
|
52624
52624
|
unit_singular: string2().optional(),
|
|
52625
52625
|
updated_at: string2().optional(),
|
|
@@ -52780,11 +52780,11 @@ Use when checking what a customer can access (e.g. feature gating or usage limit
|
|
|
52780
52780
|
};
|
|
52781
52781
|
});
|
|
52782
52782
|
|
|
52783
|
-
// src/models/
|
|
52784
|
-
var
|
|
52785
|
-
var
|
|
52783
|
+
// src/models/applicationstatus.ts
|
|
52784
|
+
var ApplicationStatus$zodSchema;
|
|
52785
|
+
var init_applicationstatus = __esm(() => {
|
|
52786
52786
|
init_zod();
|
|
52787
|
-
|
|
52787
|
+
ApplicationStatus$zodSchema = _enum([
|
|
52788
52788
|
"applied",
|
|
52789
52789
|
"failed",
|
|
52790
52790
|
"pending",
|
|
@@ -52793,22 +52793,22 @@ var init_typesapplicationstatus = __esm(() => {
|
|
|
52793
52793
|
]);
|
|
52794
52794
|
});
|
|
52795
52795
|
|
|
52796
|
-
// src/models/
|
|
52797
|
-
var
|
|
52798
|
-
var
|
|
52796
|
+
// src/models/creditgrantapplicationreason.ts
|
|
52797
|
+
var CreditGrantApplicationReason$zodSchema;
|
|
52798
|
+
var init_creditgrantapplicationreason = __esm(() => {
|
|
52799
52799
|
init_zod();
|
|
52800
|
-
|
|
52800
|
+
CreditGrantApplicationReason$zodSchema = _enum([
|
|
52801
52801
|
"first_time_recurring_credit_grant",
|
|
52802
52802
|
"recurring_credit_grant",
|
|
52803
52803
|
"onetime_credit_grant"
|
|
52804
52804
|
]);
|
|
52805
52805
|
});
|
|
52806
52806
|
|
|
52807
|
-
// src/models/
|
|
52808
|
-
var
|
|
52809
|
-
var
|
|
52807
|
+
// src/models/subscriptionstatus.ts
|
|
52808
|
+
var SubscriptionStatus$zodSchema;
|
|
52809
|
+
var init_subscriptionstatus = __esm(() => {
|
|
52810
52810
|
init_zod();
|
|
52811
|
-
|
|
52811
|
+
SubscriptionStatus$zodSchema = _enum([
|
|
52812
52812
|
"active",
|
|
52813
52813
|
"paused",
|
|
52814
52814
|
"cancelled",
|
|
@@ -52822,13 +52822,13 @@ var init_typessubscriptionstatus = __esm(() => {
|
|
|
52822
52822
|
var DtoCreditGrantApplicationResponse$zodSchema;
|
|
52823
52823
|
var init_dtocreditgrantapplicationresponse = __esm(() => {
|
|
52824
52824
|
init_zod();
|
|
52825
|
-
|
|
52826
|
-
|
|
52827
|
-
|
|
52828
|
-
|
|
52825
|
+
init_applicationstatus();
|
|
52826
|
+
init_creditgrantapplicationreason();
|
|
52827
|
+
init_status();
|
|
52828
|
+
init_subscriptionstatus();
|
|
52829
52829
|
DtoCreditGrantApplicationResponse$zodSchema = object({
|
|
52830
|
-
application_reason:
|
|
52831
|
-
application_status:
|
|
52830
|
+
application_reason: CreditGrantApplicationReason$zodSchema.optional(),
|
|
52831
|
+
application_status: ApplicationStatus$zodSchema.optional(),
|
|
52832
52832
|
applied_at: string2().optional(),
|
|
52833
52833
|
created_at: string2().optional(),
|
|
52834
52834
|
created_by: string2().optional(),
|
|
@@ -52843,20 +52843,20 @@ var init_dtocreditgrantapplicationresponse = __esm(() => {
|
|
|
52843
52843
|
period_start: string2().optional(),
|
|
52844
52844
|
retry_count: int().optional(),
|
|
52845
52845
|
scheduled_for: string2().optional(),
|
|
52846
|
-
status:
|
|
52846
|
+
status: Status$zodSchema.optional(),
|
|
52847
52847
|
subscription_id: string2().optional(),
|
|
52848
|
-
subscription_status_at_application:
|
|
52848
|
+
subscription_status_at_application: SubscriptionStatus$zodSchema.optional(),
|
|
52849
52849
|
tenant_id: string2().optional(),
|
|
52850
52850
|
updated_at: string2().optional(),
|
|
52851
52851
|
updated_by: string2().optional()
|
|
52852
52852
|
});
|
|
52853
52853
|
});
|
|
52854
52854
|
|
|
52855
|
-
// src/models/
|
|
52856
|
-
var
|
|
52857
|
-
var
|
|
52855
|
+
// src/models/paginationresponse.ts
|
|
52856
|
+
var PaginationResponse$zodSchema;
|
|
52857
|
+
var init_paginationresponse = __esm(() => {
|
|
52858
52858
|
init_zod();
|
|
52859
|
-
|
|
52859
|
+
PaginationResponse$zodSchema = object({
|
|
52860
52860
|
limit: int().optional(),
|
|
52861
52861
|
offset: int().optional(),
|
|
52862
52862
|
total: int().optional()
|
|
@@ -52868,10 +52868,10 @@ var DtoListCreditGrantApplicationsResponse$zodSchema;
|
|
|
52868
52868
|
var init_dtolistcreditgrantapplicationsresponse = __esm(() => {
|
|
52869
52869
|
init_zod();
|
|
52870
52870
|
init_dtocreditgrantapplicationresponse();
|
|
52871
|
-
|
|
52871
|
+
init_paginationresponse();
|
|
52872
52872
|
DtoListCreditGrantApplicationsResponse$zodSchema = object({
|
|
52873
52873
|
items: array(DtoCreditGrantApplicationResponse$zodSchema).optional(),
|
|
52874
|
-
pagination:
|
|
52874
|
+
pagination: PaginationResponse$zodSchema.optional()
|
|
52875
52875
|
});
|
|
52876
52876
|
});
|
|
52877
52877
|
|
|
@@ -53039,11 +53039,11 @@ var init_dtocustomerusagesummaryresponse = __esm(() => {
|
|
|
53039
53039
|
init_zod();
|
|
53040
53040
|
init_dtobillingperiodinfo();
|
|
53041
53041
|
init_dtofeatureusagesummary();
|
|
53042
|
-
|
|
53042
|
+
init_paginationresponse();
|
|
53043
53043
|
DtoCustomerUsageSummaryResponse$zodSchema = object({
|
|
53044
53044
|
customer_id: string2().optional(),
|
|
53045
53045
|
features: array(DtoFeatureUsageSummary$zodSchema).optional(),
|
|
53046
|
-
pagination:
|
|
53046
|
+
pagination: PaginationResponse$zodSchema.optional(),
|
|
53047
53047
|
period: DtoBillingPeriodInfo$zodSchema.optional()
|
|
53048
53048
|
});
|
|
53049
53049
|
});
|
|
@@ -53183,24 +53183,11 @@ Use when showing a customer's usage (e.g. portal or overage alerts). Identify by
|
|
|
53183
53183
|
};
|
|
53184
53184
|
});
|
|
53185
53185
|
|
|
53186
|
-
// src/models/
|
|
53187
|
-
var
|
|
53188
|
-
var
|
|
53189
|
-
init_zod();
|
|
53190
|
-
GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema = object({
|
|
53191
|
-
array: array(string2()).optional(),
|
|
53192
|
-
boolean: boolean2().optional(),
|
|
53193
|
-
date: string2().optional(),
|
|
53194
|
-
number: number2().optional(),
|
|
53195
|
-
string: string2().optional()
|
|
53196
|
-
});
|
|
53197
|
-
});
|
|
53198
|
-
|
|
53199
|
-
// src/models/typesdatatype.ts
|
|
53200
|
-
var TypesDataType$zodSchema;
|
|
53201
|
-
var init_typesdatatype = __esm(() => {
|
|
53186
|
+
// src/models/datatype.ts
|
|
53187
|
+
var DataType$zodSchema;
|
|
53188
|
+
var init_datatype = __esm(() => {
|
|
53202
53189
|
init_zod();
|
|
53203
|
-
|
|
53190
|
+
DataType$zodSchema = _enum([
|
|
53204
53191
|
"string",
|
|
53205
53192
|
"number",
|
|
53206
53193
|
"date",
|
|
@@ -53208,11 +53195,11 @@ var init_typesdatatype = __esm(() => {
|
|
|
53208
53195
|
]);
|
|
53209
53196
|
});
|
|
53210
53197
|
|
|
53211
|
-
// src/models/
|
|
53212
|
-
var
|
|
53213
|
-
var
|
|
53198
|
+
// src/models/filteroperatortype.ts
|
|
53199
|
+
var FilterOperatorType$zodSchema;
|
|
53200
|
+
var init_filteroperatortype = __esm(() => {
|
|
53214
53201
|
init_zod();
|
|
53215
|
-
|
|
53202
|
+
FilterOperatorType$zodSchema = _enum([
|
|
53216
53203
|
"eq",
|
|
53217
53204
|
"contains",
|
|
53218
53205
|
"not_contains",
|
|
@@ -53225,68 +53212,81 @@ var init_typesfilteroperatortype = __esm(() => {
|
|
|
53225
53212
|
]);
|
|
53226
53213
|
});
|
|
53227
53214
|
|
|
53228
|
-
// src/models/
|
|
53229
|
-
var
|
|
53230
|
-
var
|
|
53215
|
+
// src/models/githubcomflexpriceflexpriceinternaltypesvalue.ts
|
|
53216
|
+
var GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema;
|
|
53217
|
+
var init_githubcomflexpriceflexpriceinternaltypesvalue = __esm(() => {
|
|
53218
|
+
init_zod();
|
|
53219
|
+
GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema = object({
|
|
53220
|
+
array: array(string2()).optional(),
|
|
53221
|
+
boolean: boolean2().optional(),
|
|
53222
|
+
date: string2().optional(),
|
|
53223
|
+
number: number2().optional(),
|
|
53224
|
+
string: string2().optional()
|
|
53225
|
+
});
|
|
53226
|
+
});
|
|
53227
|
+
|
|
53228
|
+
// src/models/filtercondition.ts
|
|
53229
|
+
var FilterCondition$zodSchema;
|
|
53230
|
+
var init_filtercondition = __esm(() => {
|
|
53231
53231
|
init_zod();
|
|
53232
|
+
init_datatype();
|
|
53233
|
+
init_filteroperatortype();
|
|
53232
53234
|
init_githubcomflexpriceflexpriceinternaltypesvalue();
|
|
53233
|
-
|
|
53234
|
-
|
|
53235
|
-
TypesFilterCondition$zodSchema = object({
|
|
53236
|
-
data_type: TypesDataType$zodSchema.optional(),
|
|
53235
|
+
FilterCondition$zodSchema = object({
|
|
53236
|
+
data_type: DataType$zodSchema.optional(),
|
|
53237
53237
|
field: string2().optional(),
|
|
53238
|
-
operator:
|
|
53238
|
+
operator: FilterOperatorType$zodSchema.optional(),
|
|
53239
53239
|
value: GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema.optional()
|
|
53240
53240
|
});
|
|
53241
53241
|
});
|
|
53242
53242
|
|
|
53243
|
-
// src/models/
|
|
53244
|
-
var
|
|
53245
|
-
var
|
|
53243
|
+
// src/models/sortdirection.ts
|
|
53244
|
+
var SortDirection$zodSchema;
|
|
53245
|
+
var init_sortdirection = __esm(() => {
|
|
53246
53246
|
init_zod();
|
|
53247
|
-
|
|
53247
|
+
SortDirection$zodSchema = _enum([
|
|
53248
53248
|
"asc",
|
|
53249
53249
|
"desc"
|
|
53250
53250
|
]);
|
|
53251
53251
|
});
|
|
53252
53252
|
|
|
53253
|
-
// src/models/
|
|
53254
|
-
var
|
|
53255
|
-
var
|
|
53253
|
+
// src/models/sortcondition.ts
|
|
53254
|
+
var SortCondition$zodSchema;
|
|
53255
|
+
var init_sortcondition = __esm(() => {
|
|
53256
53256
|
init_zod();
|
|
53257
|
-
|
|
53258
|
-
|
|
53259
|
-
direction:
|
|
53257
|
+
init_sortdirection();
|
|
53258
|
+
SortCondition$zodSchema = object({
|
|
53259
|
+
direction: SortDirection$zodSchema.optional(),
|
|
53260
53260
|
field: string2().optional()
|
|
53261
53261
|
});
|
|
53262
53262
|
});
|
|
53263
53263
|
|
|
53264
|
-
// src/models/
|
|
53265
|
-
var
|
|
53266
|
-
var
|
|
53264
|
+
// src/models/customerfilter.ts
|
|
53265
|
+
var CustomerFilterOrder$zodSchema, CustomerFilter$zodSchema;
|
|
53266
|
+
var init_customerfilter = __esm(() => {
|
|
53267
53267
|
init_zod();
|
|
53268
|
-
|
|
53269
|
-
|
|
53270
|
-
|
|
53271
|
-
|
|
53268
|
+
init_filtercondition();
|
|
53269
|
+
init_sortcondition();
|
|
53270
|
+
init_status();
|
|
53271
|
+
CustomerFilterOrder$zodSchema = _enum([
|
|
53272
53272
|
"asc",
|
|
53273
53273
|
"desc"
|
|
53274
53274
|
]);
|
|
53275
|
-
|
|
53275
|
+
CustomerFilter$zodSchema = object({
|
|
53276
53276
|
customer_ids: array(string2()).optional(),
|
|
53277
53277
|
email: string2().optional(),
|
|
53278
53278
|
end_time: string2().optional(),
|
|
53279
53279
|
expand: string2().optional(),
|
|
53280
53280
|
external_id: string2().optional(),
|
|
53281
53281
|
external_ids: array(string2()).optional(),
|
|
53282
|
-
filters: array(
|
|
53282
|
+
filters: array(FilterCondition$zodSchema).optional(),
|
|
53283
53283
|
limit: int().optional(),
|
|
53284
53284
|
offset: int().optional(),
|
|
53285
|
-
order:
|
|
53285
|
+
order: CustomerFilterOrder$zodSchema.optional(),
|
|
53286
53286
|
parent_customer_ids: array(string2()).optional(),
|
|
53287
|
-
sort: array(
|
|
53287
|
+
sort: array(SortCondition$zodSchema).optional(),
|
|
53288
53288
|
start_time: string2().optional(),
|
|
53289
|
-
status:
|
|
53289
|
+
status: Status$zodSchema.optional()
|
|
53290
53290
|
});
|
|
53291
53291
|
});
|
|
53292
53292
|
|
|
@@ -53295,7 +53295,7 @@ function customersQueryCustomer(client$, request, options) {
|
|
|
53295
53295
|
return new APIPromise($do8(client$, request, options));
|
|
53296
53296
|
}
|
|
53297
53297
|
async function $do8(client$, request, options) {
|
|
53298
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
53298
|
+
const parsed$ = safeParse4(request, (value$) => CustomerFilter$zodSchema.parse(value$), "Input validation failed");
|
|
53299
53299
|
if (!parsed$.ok) {
|
|
53300
53300
|
return [parsed$, { status: "invalid" }];
|
|
53301
53301
|
}
|
|
@@ -53359,7 +53359,7 @@ var init_customersQueryCustomer = __esm(() => {
|
|
|
53359
53359
|
init_schemas4();
|
|
53360
53360
|
init_security();
|
|
53361
53361
|
init_url();
|
|
53362
|
-
|
|
53362
|
+
init_customerfilter();
|
|
53363
53363
|
init_async();
|
|
53364
53364
|
});
|
|
53365
53365
|
|
|
@@ -53367,10 +53367,10 @@ var init_customersQueryCustomer = __esm(() => {
|
|
|
53367
53367
|
var args8, tool$customersQueryCustomer;
|
|
53368
53368
|
var init_customersQueryCustomer2 = __esm(() => {
|
|
53369
53369
|
init_customersQueryCustomer();
|
|
53370
|
-
|
|
53370
|
+
init_customerfilter();
|
|
53371
53371
|
init_tools();
|
|
53372
53372
|
args8 = {
|
|
53373
|
-
request:
|
|
53373
|
+
request: CustomerFilter$zodSchema
|
|
53374
53374
|
};
|
|
53375
53375
|
tool$customersQueryCustomer = {
|
|
53376
53376
|
name: "query-customer",
|
|
@@ -53551,11 +53551,23 @@ Use when updating customer details (e.g. name, email, or metadata). Identify by
|
|
|
53551
53551
|
};
|
|
53552
53552
|
});
|
|
53553
53553
|
|
|
53554
|
+
// src/models/debugtrackerstatus.ts
|
|
53555
|
+
var DebugTrackerStatus$zodSchema;
|
|
53556
|
+
var init_debugtrackerstatus = __esm(() => {
|
|
53557
|
+
init_zod();
|
|
53558
|
+
DebugTrackerStatus$zodSchema = _enum([
|
|
53559
|
+
"unprocessed",
|
|
53560
|
+
"not_found",
|
|
53561
|
+
"found",
|
|
53562
|
+
"error"
|
|
53563
|
+
]);
|
|
53564
|
+
});
|
|
53565
|
+
|
|
53554
53566
|
// src/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.ts
|
|
53555
53567
|
var GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema;
|
|
53556
53568
|
var init_githubcomflexpriceflexpriceinternaldomaincustomercustomer = __esm(() => {
|
|
53557
53569
|
init_zod();
|
|
53558
|
-
|
|
53570
|
+
init_status();
|
|
53559
53571
|
GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema = object({
|
|
53560
53572
|
address_city: string2().optional(),
|
|
53561
53573
|
address_country: string2().optional(),
|
|
@@ -53572,36 +53584,24 @@ var init_githubcomflexpriceflexpriceinternaldomaincustomercustomer = __esm(() =>
|
|
|
53572
53584
|
metadata: record(string2(), string2()).optional(),
|
|
53573
53585
|
name: string2().optional(),
|
|
53574
53586
|
parent_customer_id: string2().optional(),
|
|
53575
|
-
status:
|
|
53587
|
+
status: Status$zodSchema.optional(),
|
|
53576
53588
|
tenant_id: string2().optional(),
|
|
53577
53589
|
updated_at: string2().optional(),
|
|
53578
53590
|
updated_by: string2().optional()
|
|
53579
53591
|
});
|
|
53580
53592
|
});
|
|
53581
53593
|
|
|
53582
|
-
// src/models/typesdebugtrackerstatus.ts
|
|
53583
|
-
var TypesDebugTrackerStatus$zodSchema;
|
|
53584
|
-
var init_typesdebugtrackerstatus = __esm(() => {
|
|
53585
|
-
init_zod();
|
|
53586
|
-
TypesDebugTrackerStatus$zodSchema = _enum([
|
|
53587
|
-
"unprocessed",
|
|
53588
|
-
"not_found",
|
|
53589
|
-
"found",
|
|
53590
|
-
"error"
|
|
53591
|
-
]);
|
|
53592
|
-
});
|
|
53593
|
-
|
|
53594
53594
|
// src/models/dtocustomerlookupresult.ts
|
|
53595
53595
|
var DtoCustomerLookupResult$zodSchema;
|
|
53596
53596
|
var init_dtocustomerlookupresult = __esm(() => {
|
|
53597
53597
|
init_zod();
|
|
53598
|
+
init_debugtrackerstatus();
|
|
53598
53599
|
init_errorserrorresponse();
|
|
53599
53600
|
init_githubcomflexpriceflexpriceinternaldomaincustomercustomer();
|
|
53600
|
-
init_typesdebugtrackerstatus();
|
|
53601
53601
|
DtoCustomerLookupResult$zodSchema = object({
|
|
53602
53602
|
customer: GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema.optional(),
|
|
53603
53603
|
error: ErrorsErrorResponse$zodSchema.optional(),
|
|
53604
|
-
status:
|
|
53604
|
+
status: DebugTrackerStatus$zodSchema.optional()
|
|
53605
53605
|
});
|
|
53606
53606
|
});
|
|
53607
53607
|
|
|
@@ -53611,8 +53611,8 @@ var init_metermeter = __esm(() => {
|
|
|
53611
53611
|
init_zod();
|
|
53612
53612
|
init_meteraggregation();
|
|
53613
53613
|
init_meterfilter();
|
|
53614
|
-
|
|
53615
|
-
|
|
53614
|
+
init_resetusage();
|
|
53615
|
+
init_status();
|
|
53616
53616
|
MeterMeter$zodSchema = object({
|
|
53617
53617
|
aggregation: MeterAggregation$zodSchema.optional(),
|
|
53618
53618
|
created_at: string2().optional(),
|
|
@@ -53622,8 +53622,8 @@ var init_metermeter = __esm(() => {
|
|
|
53622
53622
|
filters: array(MeterFilter$zodSchema).optional(),
|
|
53623
53623
|
id: string2().optional(),
|
|
53624
53624
|
name: string2().optional(),
|
|
53625
|
-
reset_usage:
|
|
53626
|
-
status:
|
|
53625
|
+
reset_usage: ResetUsage$zodSchema.optional(),
|
|
53626
|
+
status: Status$zodSchema.optional(),
|
|
53627
53627
|
tenant_id: string2().optional(),
|
|
53628
53628
|
updated_at: string2().optional(),
|
|
53629
53629
|
updated_by: string2().optional()
|
|
@@ -53646,94 +53646,62 @@ var init_dtomatchedmeter = __esm(() => {
|
|
|
53646
53646
|
var DtoMeterMatchingResult$zodSchema;
|
|
53647
53647
|
var init_dtometermatchingresult = __esm(() => {
|
|
53648
53648
|
init_zod();
|
|
53649
|
+
init_debugtrackerstatus();
|
|
53649
53650
|
init_dtomatchedmeter();
|
|
53650
53651
|
init_errorserrorresponse();
|
|
53651
|
-
init_typesdebugtrackerstatus();
|
|
53652
53652
|
DtoMeterMatchingResult$zodSchema = object({
|
|
53653
53653
|
error: ErrorsErrorResponse$zodSchema.optional(),
|
|
53654
53654
|
matched_meters: array(DtoMatchedMeter$zodSchema).optional(),
|
|
53655
|
-
status:
|
|
53656
|
-
});
|
|
53657
|
-
});
|
|
53658
|
-
|
|
53659
|
-
// src/models/typesroundtype.ts
|
|
53660
|
-
var TypesRoundType$zodSchema;
|
|
53661
|
-
var init_typesroundtype = __esm(() => {
|
|
53662
|
-
init_zod();
|
|
53663
|
-
TypesRoundType$zodSchema = _enum([
|
|
53664
|
-
"up",
|
|
53665
|
-
"down"
|
|
53666
|
-
]);
|
|
53667
|
-
});
|
|
53668
|
-
|
|
53669
|
-
// src/models/pricejsonbtransformquantity.ts
|
|
53670
|
-
var PriceJSONBTransformQuantity$zodSchema;
|
|
53671
|
-
var init_pricejsonbtransformquantity = __esm(() => {
|
|
53672
|
-
init_zod();
|
|
53673
|
-
init_typesroundtype();
|
|
53674
|
-
PriceJSONBTransformQuantity$zodSchema = object({
|
|
53675
|
-
divide_by: int().optional(),
|
|
53676
|
-
round: TypesRoundType$zodSchema.optional()
|
|
53677
|
-
});
|
|
53678
|
-
});
|
|
53679
|
-
|
|
53680
|
-
// src/models/pricepricetier.ts
|
|
53681
|
-
var PricePriceTier$zodSchema;
|
|
53682
|
-
var init_pricepricetier = __esm(() => {
|
|
53683
|
-
init_zod();
|
|
53684
|
-
PricePriceTier$zodSchema = object({
|
|
53685
|
-
flat_amount: string2().optional(),
|
|
53686
|
-
unit_amount: string2().optional(),
|
|
53687
|
-
up_to: int().optional()
|
|
53655
|
+
status: DebugTrackerStatus$zodSchema.optional()
|
|
53688
53656
|
});
|
|
53689
53657
|
});
|
|
53690
53658
|
|
|
53691
|
-
// src/models/
|
|
53692
|
-
var
|
|
53693
|
-
var
|
|
53659
|
+
// src/models/billingcadence.ts
|
|
53660
|
+
var BillingCadence$zodSchema;
|
|
53661
|
+
var init_billingcadence = __esm(() => {
|
|
53694
53662
|
init_zod();
|
|
53695
|
-
|
|
53663
|
+
BillingCadence$zodSchema = _enum([
|
|
53696
53664
|
"RECURRING",
|
|
53697
53665
|
"ONETIME"
|
|
53698
53666
|
]);
|
|
53699
53667
|
});
|
|
53700
53668
|
|
|
53701
|
-
// src/models/
|
|
53702
|
-
var
|
|
53703
|
-
var
|
|
53669
|
+
// src/models/billingmodel.ts
|
|
53670
|
+
var BillingModel$zodSchema;
|
|
53671
|
+
var init_billingmodel = __esm(() => {
|
|
53704
53672
|
init_zod();
|
|
53705
|
-
|
|
53673
|
+
BillingModel$zodSchema = _enum([
|
|
53706
53674
|
"FLAT_FEE",
|
|
53707
53675
|
"PACKAGE",
|
|
53708
53676
|
"TIERED"
|
|
53709
53677
|
]);
|
|
53710
53678
|
});
|
|
53711
53679
|
|
|
53712
|
-
// src/models/
|
|
53713
|
-
var
|
|
53714
|
-
var
|
|
53680
|
+
// src/models/billingtier.ts
|
|
53681
|
+
var BillingTier$zodSchema;
|
|
53682
|
+
var init_billingtier = __esm(() => {
|
|
53715
53683
|
init_zod();
|
|
53716
|
-
|
|
53684
|
+
BillingTier$zodSchema = _enum([
|
|
53717
53685
|
"VOLUME",
|
|
53718
53686
|
"SLAB"
|
|
53719
53687
|
]);
|
|
53720
53688
|
});
|
|
53721
53689
|
|
|
53722
|
-
// src/models/
|
|
53723
|
-
var
|
|
53724
|
-
var
|
|
53690
|
+
// src/models/invoicecadence.ts
|
|
53691
|
+
var InvoiceCadence$zodSchema;
|
|
53692
|
+
var init_invoicecadence = __esm(() => {
|
|
53725
53693
|
init_zod();
|
|
53726
|
-
|
|
53694
|
+
InvoiceCadence$zodSchema = _enum([
|
|
53727
53695
|
"ARREAR",
|
|
53728
53696
|
"ADVANCE"
|
|
53729
53697
|
]);
|
|
53730
53698
|
});
|
|
53731
53699
|
|
|
53732
|
-
// src/models/
|
|
53733
|
-
var
|
|
53734
|
-
var
|
|
53700
|
+
// src/models/priceentitytype.ts
|
|
53701
|
+
var PriceEntityType$zodSchema;
|
|
53702
|
+
var init_priceentitytype = __esm(() => {
|
|
53735
53703
|
init_zod();
|
|
53736
|
-
|
|
53704
|
+
PriceEntityType$zodSchema = _enum([
|
|
53737
53705
|
"PLAN",
|
|
53738
53706
|
"SUBSCRIPTION",
|
|
53739
53707
|
"ADDON",
|
|
@@ -53742,21 +53710,53 @@ var init_typespriceentitytype = __esm(() => {
|
|
|
53742
53710
|
]);
|
|
53743
53711
|
});
|
|
53744
53712
|
|
|
53745
|
-
// src/models/
|
|
53746
|
-
var
|
|
53747
|
-
var
|
|
53713
|
+
// src/models/roundtype.ts
|
|
53714
|
+
var RoundType$zodSchema;
|
|
53715
|
+
var init_roundtype = __esm(() => {
|
|
53716
|
+
init_zod();
|
|
53717
|
+
RoundType$zodSchema = _enum([
|
|
53718
|
+
"up",
|
|
53719
|
+
"down"
|
|
53720
|
+
]);
|
|
53721
|
+
});
|
|
53722
|
+
|
|
53723
|
+
// src/models/pricejsonbtransformquantity.ts
|
|
53724
|
+
var PriceJSONBTransformQuantity$zodSchema;
|
|
53725
|
+
var init_pricejsonbtransformquantity = __esm(() => {
|
|
53726
|
+
init_zod();
|
|
53727
|
+
init_roundtype();
|
|
53728
|
+
PriceJSONBTransformQuantity$zodSchema = object({
|
|
53729
|
+
divide_by: int().optional(),
|
|
53730
|
+
round: RoundType$zodSchema.optional()
|
|
53731
|
+
});
|
|
53732
|
+
});
|
|
53733
|
+
|
|
53734
|
+
// src/models/pricepricetier.ts
|
|
53735
|
+
var PricePriceTier$zodSchema;
|
|
53736
|
+
var init_pricepricetier = __esm(() => {
|
|
53737
|
+
init_zod();
|
|
53738
|
+
PricePriceTier$zodSchema = object({
|
|
53739
|
+
flat_amount: string2().optional(),
|
|
53740
|
+
unit_amount: string2().optional(),
|
|
53741
|
+
up_to: int().optional()
|
|
53742
|
+
});
|
|
53743
|
+
});
|
|
53744
|
+
|
|
53745
|
+
// src/models/pricetype.ts
|
|
53746
|
+
var PriceType$zodSchema;
|
|
53747
|
+
var init_pricetype = __esm(() => {
|
|
53748
53748
|
init_zod();
|
|
53749
|
-
|
|
53749
|
+
PriceType$zodSchema = _enum([
|
|
53750
53750
|
"USAGE",
|
|
53751
53751
|
"FIXED"
|
|
53752
53752
|
]);
|
|
53753
53753
|
});
|
|
53754
53754
|
|
|
53755
|
-
// src/models/
|
|
53756
|
-
var
|
|
53757
|
-
var
|
|
53755
|
+
// src/models/priceunittype.ts
|
|
53756
|
+
var PriceUnitType$zodSchema;
|
|
53757
|
+
var init_priceunittype = __esm(() => {
|
|
53758
53758
|
init_zod();
|
|
53759
|
-
|
|
53759
|
+
PriceUnitType$zodSchema = _enum([
|
|
53760
53760
|
"FIAT",
|
|
53761
53761
|
"CUSTOM"
|
|
53762
53762
|
]);
|
|
@@ -53766,22 +53766,22 @@ var init_typespriceunittype = __esm(() => {
|
|
|
53766
53766
|
var PricePrice$zodSchema;
|
|
53767
53767
|
var init_priceprice = __esm(() => {
|
|
53768
53768
|
init_zod();
|
|
53769
|
+
init_billingcadence();
|
|
53770
|
+
init_billingmodel();
|
|
53771
|
+
init_billingperiod();
|
|
53772
|
+
init_billingtier();
|
|
53773
|
+
init_invoicecadence();
|
|
53774
|
+
init_priceentitytype();
|
|
53769
53775
|
init_pricejsonbtransformquantity();
|
|
53770
53776
|
init_pricepricetier();
|
|
53771
|
-
|
|
53772
|
-
|
|
53773
|
-
|
|
53774
|
-
init_typesbillingtier();
|
|
53775
|
-
init_typesinvoicecadence();
|
|
53776
|
-
init_typespriceentitytype();
|
|
53777
|
-
init_typespricetype();
|
|
53778
|
-
init_typespriceunittype();
|
|
53779
|
-
init_typesstatus();
|
|
53777
|
+
init_pricetype();
|
|
53778
|
+
init_priceunittype();
|
|
53779
|
+
init_status();
|
|
53780
53780
|
PricePrice$zodSchema = object({
|
|
53781
53781
|
amount: string2().optional(),
|
|
53782
|
-
billing_cadence:
|
|
53783
|
-
billing_model:
|
|
53784
|
-
billing_period:
|
|
53782
|
+
billing_cadence: BillingCadence$zodSchema.optional(),
|
|
53783
|
+
billing_model: BillingModel$zodSchema.optional(),
|
|
53784
|
+
billing_period: BillingPeriod$zodSchema.optional(),
|
|
53785
53785
|
billing_period_count: int().optional(),
|
|
53786
53786
|
conversion_rate: string2().optional(),
|
|
53787
53787
|
created_at: string2().optional(),
|
|
@@ -53793,11 +53793,11 @@ var init_priceprice = __esm(() => {
|
|
|
53793
53793
|
display_price_unit_amount: string2().optional(),
|
|
53794
53794
|
end_date: string2().optional(),
|
|
53795
53795
|
entity_id: string2().optional(),
|
|
53796
|
-
entity_type:
|
|
53796
|
+
entity_type: PriceEntityType$zodSchema.optional(),
|
|
53797
53797
|
environment_id: string2().optional(),
|
|
53798
53798
|
group_id: string2().optional(),
|
|
53799
53799
|
id: string2().optional(),
|
|
53800
|
-
invoice_cadence:
|
|
53800
|
+
invoice_cadence: InvoiceCadence$zodSchema.optional(),
|
|
53801
53801
|
lookup_key: string2().optional(),
|
|
53802
53802
|
metadata: record(string2(), string2()).optional(),
|
|
53803
53803
|
meter_id: string2().optional(),
|
|
@@ -53807,15 +53807,15 @@ var init_priceprice = __esm(() => {
|
|
|
53807
53807
|
price_unit_amount: string2().optional(),
|
|
53808
53808
|
price_unit_id: string2().optional(),
|
|
53809
53809
|
price_unit_tiers: array(PricePriceTier$zodSchema).optional(),
|
|
53810
|
-
price_unit_type:
|
|
53810
|
+
price_unit_type: PriceUnitType$zodSchema.optional(),
|
|
53811
53811
|
start_date: string2().optional(),
|
|
53812
|
-
status:
|
|
53812
|
+
status: Status$zodSchema.optional(),
|
|
53813
53813
|
tenant_id: string2().optional(),
|
|
53814
|
-
tier_mode:
|
|
53814
|
+
tier_mode: BillingTier$zodSchema.optional(),
|
|
53815
53815
|
tiers: array(PricePriceTier$zodSchema).optional(),
|
|
53816
53816
|
transform_quantity: PriceJSONBTransformQuantity$zodSchema.optional(),
|
|
53817
53817
|
trial_period: int().optional(),
|
|
53818
|
-
type:
|
|
53818
|
+
type: PriceType$zodSchema.optional(),
|
|
53819
53819
|
updated_at: string2().optional(),
|
|
53820
53820
|
updated_by: string2().optional()
|
|
53821
53821
|
});
|
|
@@ -53838,31 +53838,31 @@ var init_dtomatchedprice = __esm(() => {
|
|
|
53838
53838
|
var DtoPriceLookupResult$zodSchema;
|
|
53839
53839
|
var init_dtopricelookupresult = __esm(() => {
|
|
53840
53840
|
init_zod();
|
|
53841
|
+
init_debugtrackerstatus();
|
|
53841
53842
|
init_dtomatchedprice();
|
|
53842
53843
|
init_errorserrorresponse();
|
|
53843
|
-
init_typesdebugtrackerstatus();
|
|
53844
53844
|
DtoPriceLookupResult$zodSchema = object({
|
|
53845
53845
|
error: ErrorsErrorResponse$zodSchema.optional(),
|
|
53846
53846
|
matched_prices: array(DtoMatchedPrice$zodSchema).optional(),
|
|
53847
|
-
status:
|
|
53847
|
+
status: DebugTrackerStatus$zodSchema.optional()
|
|
53848
53848
|
});
|
|
53849
53849
|
});
|
|
53850
53850
|
|
|
53851
|
-
// src/models/
|
|
53852
|
-
var
|
|
53853
|
-
var
|
|
53851
|
+
// src/models/commitmenttype.ts
|
|
53852
|
+
var CommitmentType$zodSchema;
|
|
53853
|
+
var init_commitmenttype = __esm(() => {
|
|
53854
53854
|
init_zod();
|
|
53855
|
-
|
|
53855
|
+
CommitmentType$zodSchema = _enum([
|
|
53856
53856
|
"amount",
|
|
53857
53857
|
"quantity"
|
|
53858
53858
|
]);
|
|
53859
53859
|
});
|
|
53860
53860
|
|
|
53861
|
-
// src/models/
|
|
53862
|
-
var
|
|
53863
|
-
var
|
|
53861
|
+
// src/models/subscriptionlineitementitytype.ts
|
|
53862
|
+
var SubscriptionLineItemEntityType$zodSchema;
|
|
53863
|
+
var init_subscriptionlineitementitytype = __esm(() => {
|
|
53864
53864
|
init_zod();
|
|
53865
|
-
|
|
53865
|
+
SubscriptionLineItemEntityType$zodSchema = _enum([
|
|
53866
53866
|
"plan",
|
|
53867
53867
|
"addon",
|
|
53868
53868
|
"subscription"
|
|
@@ -53873,22 +53873,22 @@ var init_typessubscriptionlineitementitytype = __esm(() => {
|
|
|
53873
53873
|
var SubscriptionSubscriptionLineItem$zodSchema;
|
|
53874
53874
|
var init_subscriptionsubscriptionlineitem = __esm(() => {
|
|
53875
53875
|
init_zod();
|
|
53876
|
+
init_billingperiod();
|
|
53877
|
+
init_commitmenttype();
|
|
53878
|
+
init_invoicecadence();
|
|
53876
53879
|
init_priceprice();
|
|
53877
|
-
|
|
53878
|
-
|
|
53879
|
-
|
|
53880
|
-
init_typespricetype();
|
|
53881
|
-
init_typesstatus();
|
|
53882
|
-
init_typessubscriptionlineitementitytype();
|
|
53880
|
+
init_pricetype();
|
|
53881
|
+
init_status();
|
|
53882
|
+
init_subscriptionlineitementitytype();
|
|
53883
53883
|
SubscriptionSubscriptionLineItem$zodSchema = object({
|
|
53884
|
-
billing_period:
|
|
53884
|
+
billing_period: BillingPeriod$zodSchema.optional(),
|
|
53885
53885
|
billing_period_count: int().optional(),
|
|
53886
53886
|
commitment_amount: string2().optional(),
|
|
53887
|
-
commitment_duration:
|
|
53887
|
+
commitment_duration: BillingPeriod$zodSchema.optional(),
|
|
53888
53888
|
commitment_overage_factor: string2().optional(),
|
|
53889
53889
|
commitment_quantity: string2().optional(),
|
|
53890
53890
|
commitment_true_up_enabled: boolean2().optional(),
|
|
53891
|
-
commitment_type:
|
|
53891
|
+
commitment_type: CommitmentType$zodSchema.optional(),
|
|
53892
53892
|
commitment_windowed: boolean2().optional(),
|
|
53893
53893
|
created_at: string2().optional(),
|
|
53894
53894
|
created_by: string2().optional(),
|
|
@@ -53897,22 +53897,22 @@ var init_subscriptionsubscriptionlineitem = __esm(() => {
|
|
|
53897
53897
|
display_name: string2().optional(),
|
|
53898
53898
|
end_date: string2().optional(),
|
|
53899
53899
|
entity_id: string2().optional(),
|
|
53900
|
-
entity_type:
|
|
53900
|
+
entity_type: SubscriptionLineItemEntityType$zodSchema.optional(),
|
|
53901
53901
|
environment_id: string2().optional(),
|
|
53902
53902
|
id: string2().optional(),
|
|
53903
|
-
invoice_cadence:
|
|
53903
|
+
invoice_cadence: InvoiceCadence$zodSchema.optional(),
|
|
53904
53904
|
metadata: record(string2(), string2()).optional(),
|
|
53905
53905
|
meter_display_name: string2().optional(),
|
|
53906
53906
|
meter_id: string2().optional(),
|
|
53907
53907
|
plan_display_name: string2().optional(),
|
|
53908
53908
|
price: PricePrice$zodSchema.optional(),
|
|
53909
53909
|
price_id: string2().optional(),
|
|
53910
|
-
price_type:
|
|
53910
|
+
price_type: PriceType$zodSchema.optional(),
|
|
53911
53911
|
price_unit: string2().optional(),
|
|
53912
53912
|
price_unit_id: string2().optional(),
|
|
53913
53913
|
quantity: string2().optional(),
|
|
53914
53914
|
start_date: string2().optional(),
|
|
53915
|
-
status:
|
|
53915
|
+
status: Status$zodSchema.optional(),
|
|
53916
53916
|
subscription_id: string2().optional(),
|
|
53917
53917
|
subscription_phase_id: string2().optional(),
|
|
53918
53918
|
tenant_id: string2().optional(),
|
|
@@ -53943,21 +53943,21 @@ var init_dtomatchedsubscriptionlineitem = __esm(() => {
|
|
|
53943
53943
|
var DtoSubscriptionLineItemLookupResult$zodSchema;
|
|
53944
53944
|
var init_dtosubscriptionlineitemlookupresult = __esm(() => {
|
|
53945
53945
|
init_zod();
|
|
53946
|
+
init_debugtrackerstatus();
|
|
53946
53947
|
init_dtomatchedsubscriptionlineitem();
|
|
53947
53948
|
init_errorserrorresponse();
|
|
53948
|
-
init_typesdebugtrackerstatus();
|
|
53949
53949
|
DtoSubscriptionLineItemLookupResult$zodSchema = object({
|
|
53950
53950
|
error: ErrorsErrorResponse$zodSchema.optional(),
|
|
53951
53951
|
matched_line_items: array(DtoMatchedSubscriptionLineItem$zodSchema).optional(),
|
|
53952
|
-
status:
|
|
53952
|
+
status: DebugTrackerStatus$zodSchema.optional()
|
|
53953
53953
|
});
|
|
53954
53954
|
});
|
|
53955
53955
|
|
|
53956
|
-
// src/models/
|
|
53957
|
-
var
|
|
53958
|
-
var
|
|
53956
|
+
// src/models/failurepointtype.ts
|
|
53957
|
+
var FailurePointType$zodSchema;
|
|
53958
|
+
var init_failurepointtype = __esm(() => {
|
|
53959
53959
|
init_zod();
|
|
53960
|
-
|
|
53960
|
+
FailurePointType$zodSchema = _enum([
|
|
53961
53961
|
"customer_lookup",
|
|
53962
53962
|
"meter_lookup",
|
|
53963
53963
|
"price_lookup",
|
|
@@ -53965,15 +53965,15 @@ var init_typesfailurepointtype = __esm(() => {
|
|
|
53965
53965
|
]);
|
|
53966
53966
|
});
|
|
53967
53967
|
|
|
53968
|
-
// src/models/
|
|
53969
|
-
var
|
|
53970
|
-
var
|
|
53968
|
+
// src/models/failurepoint.ts
|
|
53969
|
+
var FailurePoint$zodSchema;
|
|
53970
|
+
var init_failurepoint = __esm(() => {
|
|
53971
53971
|
init_zod();
|
|
53972
53972
|
init_errorserrorresponse();
|
|
53973
|
-
|
|
53974
|
-
|
|
53973
|
+
init_failurepointtype();
|
|
53974
|
+
FailurePoint$zodSchema = object({
|
|
53975
53975
|
error: ErrorsErrorResponse$zodSchema.optional(),
|
|
53976
|
-
failure_point_type:
|
|
53976
|
+
failure_point_type: FailurePointType$zodSchema.optional()
|
|
53977
53977
|
});
|
|
53978
53978
|
});
|
|
53979
53979
|
|
|
@@ -53985,10 +53985,10 @@ var init_dtodebugtracker = __esm(() => {
|
|
|
53985
53985
|
init_dtometermatchingresult();
|
|
53986
53986
|
init_dtopricelookupresult();
|
|
53987
53987
|
init_dtosubscriptionlineitemlookupresult();
|
|
53988
|
-
|
|
53988
|
+
init_failurepoint();
|
|
53989
53989
|
DtoDebugTracker$zodSchema = object({
|
|
53990
53990
|
customer_lookup: DtoCustomerLookupResult$zodSchema.optional(),
|
|
53991
|
-
failure_point:
|
|
53991
|
+
failure_point: FailurePoint$zodSchema.optional(),
|
|
53992
53992
|
meter_matching: DtoMeterMatchingResult$zodSchema.optional(),
|
|
53993
53993
|
price_lookup: DtoPriceLookupResult$zodSchema.optional(),
|
|
53994
53994
|
subscription_line_item_lookup: DtoSubscriptionLineItemLookupResult$zodSchema.optional()
|
|
@@ -54027,11 +54027,11 @@ var init_dtofeatureusageinfo = __esm(() => {
|
|
|
54027
54027
|
});
|
|
54028
54028
|
});
|
|
54029
54029
|
|
|
54030
|
-
// src/models/
|
|
54031
|
-
var
|
|
54032
|
-
var
|
|
54030
|
+
// src/models/eventprocessingstatustype.ts
|
|
54031
|
+
var EventProcessingStatusType$zodSchema;
|
|
54032
|
+
var init_eventprocessingstatustype = __esm(() => {
|
|
54033
54033
|
init_zod();
|
|
54034
|
-
|
|
54034
|
+
EventProcessingStatusType$zodSchema = _enum([
|
|
54035
54035
|
"processed",
|
|
54036
54036
|
"processing",
|
|
54037
54037
|
"failed"
|
|
@@ -54045,12 +54045,12 @@ var init_dtogeteventbyidresponse = __esm(() => {
|
|
|
54045
54045
|
init_dtodebugtracker();
|
|
54046
54046
|
init_dtoevent();
|
|
54047
54047
|
init_dtofeatureusageinfo();
|
|
54048
|
-
|
|
54048
|
+
init_eventprocessingstatustype();
|
|
54049
54049
|
DtoGetEventByIDResponse$zodSchema = object({
|
|
54050
54050
|
debug_tracker: DtoDebugTracker$zodSchema.optional(),
|
|
54051
54051
|
event: DtoEvent$zodSchema.optional(),
|
|
54052
54052
|
processed_events: array(DtoFeatureUsageInfo$zodSchema).optional(),
|
|
54053
|
-
status:
|
|
54053
|
+
status: EventProcessingStatusType$zodSchema.optional()
|
|
54054
54054
|
});
|
|
54055
54055
|
});
|
|
54056
54056
|
|
|
@@ -54278,7 +54278,7 @@ Use when fetching Hugging Face inference usage or billing data (e.g. for HF-spec
|
|
|
54278
54278
|
var DtoGetUsageAnalyticsRequest$zodSchema;
|
|
54279
54279
|
var init_dtogetusageanalyticsrequest = __esm(() => {
|
|
54280
54280
|
init_zod();
|
|
54281
|
-
|
|
54281
|
+
init_windowsize();
|
|
54282
54282
|
DtoGetUsageAnalyticsRequest$zodSchema = object({
|
|
54283
54283
|
end_time: string2().optional(),
|
|
54284
54284
|
expand: array(string2()).optional(),
|
|
@@ -54288,7 +54288,7 @@ var init_dtogetusageanalyticsrequest = __esm(() => {
|
|
|
54288
54288
|
property_filters: record(string2(), array(string2())).optional(),
|
|
54289
54289
|
sources: array(string2()).optional(),
|
|
54290
54290
|
start_time: string2().optional(),
|
|
54291
|
-
window_size:
|
|
54291
|
+
window_size: WindowSize$zodSchema.optional()
|
|
54292
54292
|
});
|
|
54293
54293
|
});
|
|
54294
54294
|
|
|
@@ -54404,17 +54404,17 @@ Use when building analytics views (e.g. usage by feature or customer over time).
|
|
|
54404
54404
|
var DtoGetUsageByMeterRequest$zodSchema;
|
|
54405
54405
|
var init_dtogetusagebymeterrequest = __esm(() => {
|
|
54406
54406
|
init_zod();
|
|
54407
|
-
|
|
54407
|
+
init_windowsize();
|
|
54408
54408
|
DtoGetUsageByMeterRequest$zodSchema = object({
|
|
54409
54409
|
billing_anchor: string2().optional(),
|
|
54410
|
-
bucket_size:
|
|
54410
|
+
bucket_size: WindowSize$zodSchema.optional(),
|
|
54411
54411
|
customer_id: string2().optional(),
|
|
54412
54412
|
end_time: string2().optional(),
|
|
54413
54413
|
external_customer_id: string2().optional(),
|
|
54414
54414
|
filters: record(string2(), array(string2())).optional(),
|
|
54415
54415
|
meter_id: string2(),
|
|
54416
54416
|
start_time: string2().optional(),
|
|
54417
|
-
window_size:
|
|
54417
|
+
window_size: WindowSize$zodSchema.optional()
|
|
54418
54418
|
});
|
|
54419
54419
|
});
|
|
54420
54420
|
|
|
@@ -54530,12 +54530,12 @@ Use when showing usage for a specific meter (e.g. dashboard or overage check). S
|
|
|
54530
54530
|
var DtoGetUsageRequest$zodSchema;
|
|
54531
54531
|
var init_dtogetusagerequest = __esm(() => {
|
|
54532
54532
|
init_zod();
|
|
54533
|
-
|
|
54534
|
-
|
|
54533
|
+
init_aggregationtype();
|
|
54534
|
+
init_windowsize();
|
|
54535
54535
|
DtoGetUsageRequest$zodSchema = object({
|
|
54536
|
-
aggregation_type:
|
|
54536
|
+
aggregation_type: AggregationType$zodSchema,
|
|
54537
54537
|
billing_anchor: string2().optional(),
|
|
54538
|
-
bucket_size:
|
|
54538
|
+
bucket_size: WindowSize$zodSchema.optional(),
|
|
54539
54539
|
customer_id: string2().optional(),
|
|
54540
54540
|
end_time: string2().optional(),
|
|
54541
54541
|
event_name: string2(),
|
|
@@ -54545,7 +54545,7 @@ var init_dtogetusagerequest = __esm(() => {
|
|
|
54545
54545
|
multiplier: string2().optional(),
|
|
54546
54546
|
property_name: string2().optional(),
|
|
54547
54547
|
start_time: string2().optional(),
|
|
54548
|
-
window_size:
|
|
54548
|
+
window_size: WindowSize$zodSchema.optional()
|
|
54549
54549
|
});
|
|
54550
54550
|
});
|
|
54551
54551
|
|
|
@@ -55164,23 +55164,23 @@ Use when paying an invoice with the customer's wallet balance (e.g. prepaid cred
|
|
|
55164
55164
|
};
|
|
55165
55165
|
});
|
|
55166
55166
|
|
|
55167
|
-
// src/models/
|
|
55168
|
-
var
|
|
55169
|
-
var
|
|
55167
|
+
// src/models/commitmentinfo.ts
|
|
55168
|
+
var CommitmentInfo$zodSchema;
|
|
55169
|
+
var init_commitmentinfo = __esm(() => {
|
|
55170
55170
|
init_zod();
|
|
55171
|
-
|
|
55172
|
-
|
|
55173
|
-
|
|
55171
|
+
init_billingperiod();
|
|
55172
|
+
init_commitmenttype();
|
|
55173
|
+
CommitmentInfo$zodSchema = object({
|
|
55174
55174
|
amount: string2().optional(),
|
|
55175
55175
|
computed_commitment_utilized_amount: string2().optional(),
|
|
55176
55176
|
computed_overage_amount: string2().optional(),
|
|
55177
55177
|
computed_true_up_amount: string2().optional(),
|
|
55178
|
-
duration:
|
|
55178
|
+
duration: BillingPeriod$zodSchema.optional(),
|
|
55179
55179
|
is_windowed: boolean2().optional(),
|
|
55180
55180
|
overage_factor: string2().optional(),
|
|
55181
55181
|
quantity: string2().optional(),
|
|
55182
55182
|
true_up_enabled: boolean2().optional(),
|
|
55183
|
-
type:
|
|
55183
|
+
type: CommitmentType$zodSchema.optional()
|
|
55184
55184
|
});
|
|
55185
55185
|
});
|
|
55186
55186
|
|
|
@@ -55188,10 +55188,10 @@ var init_typescommitmentinfo = __esm(() => {
|
|
|
55188
55188
|
var DtoCreateInvoiceLineItemRequest$zodSchema;
|
|
55189
55189
|
var init_dtocreateinvoicelineitemrequest = __esm(() => {
|
|
55190
55190
|
init_zod();
|
|
55191
|
-
|
|
55191
|
+
init_commitmentinfo();
|
|
55192
55192
|
DtoCreateInvoiceLineItemRequest$zodSchema = object({
|
|
55193
55193
|
amount: string2(),
|
|
55194
|
-
commitment_info:
|
|
55194
|
+
commitment_info: CommitmentInfo$zodSchema.optional(),
|
|
55195
55195
|
display_name: string2().optional(),
|
|
55196
55196
|
entity_id: string2().optional(),
|
|
55197
55197
|
entity_type: string2().optional(),
|
|
@@ -55234,32 +55234,32 @@ var init_dtoinvoicelineitemcoupon = __esm(() => {
|
|
|
55234
55234
|
});
|
|
55235
55235
|
});
|
|
55236
55236
|
|
|
55237
|
-
// src/models/
|
|
55238
|
-
var
|
|
55239
|
-
var
|
|
55237
|
+
// src/models/taxratescope.ts
|
|
55238
|
+
var TaxRateScope$zodSchema;
|
|
55239
|
+
var init_taxratescope = __esm(() => {
|
|
55240
55240
|
init_zod();
|
|
55241
|
-
|
|
55241
|
+
TaxRateScope$zodSchema = _enum([
|
|
55242
55242
|
"INTERNAL",
|
|
55243
55243
|
"EXTERNAL",
|
|
55244
55244
|
"ONETIME"
|
|
55245
55245
|
]);
|
|
55246
55246
|
});
|
|
55247
55247
|
|
|
55248
|
-
// src/models/
|
|
55249
|
-
var
|
|
55250
|
-
var
|
|
55248
|
+
// src/models/taxratestatus.ts
|
|
55249
|
+
var TaxRateStatus$zodSchema;
|
|
55250
|
+
var init_taxratestatus = __esm(() => {
|
|
55251
55251
|
init_zod();
|
|
55252
|
-
|
|
55252
|
+
TaxRateStatus$zodSchema = _enum([
|
|
55253
55253
|
"ACTIVE",
|
|
55254
55254
|
"INACTIVE"
|
|
55255
55255
|
]);
|
|
55256
55256
|
});
|
|
55257
55257
|
|
|
55258
|
-
// src/models/
|
|
55259
|
-
var
|
|
55260
|
-
var
|
|
55258
|
+
// src/models/taxratetype.ts
|
|
55259
|
+
var TaxRateType$zodSchema;
|
|
55260
|
+
var init_taxratetype = __esm(() => {
|
|
55261
55261
|
init_zod();
|
|
55262
|
-
|
|
55262
|
+
TaxRateType$zodSchema = _enum([
|
|
55263
55263
|
"percentage",
|
|
55264
55264
|
"fixed"
|
|
55265
55265
|
]);
|
|
@@ -55269,10 +55269,10 @@ var init_typestaxratetype = __esm(() => {
|
|
|
55269
55269
|
var DtoTaxRateResponse$zodSchema;
|
|
55270
55270
|
var init_dtotaxrateresponse = __esm(() => {
|
|
55271
55271
|
init_zod();
|
|
55272
|
-
|
|
55273
|
-
|
|
55274
|
-
|
|
55275
|
-
|
|
55272
|
+
init_status();
|
|
55273
|
+
init_taxratescope();
|
|
55274
|
+
init_taxratestatus();
|
|
55275
|
+
init_taxratetype();
|
|
55276
55276
|
DtoTaxRateResponse$zodSchema = object({
|
|
55277
55277
|
code: string2().optional(),
|
|
55278
55278
|
created_at: string2().optional(),
|
|
@@ -55284,21 +55284,21 @@ var init_dtotaxrateresponse = __esm(() => {
|
|
|
55284
55284
|
metadata: record(string2(), string2()).optional(),
|
|
55285
55285
|
name: string2().optional(),
|
|
55286
55286
|
percentage_value: string2().optional(),
|
|
55287
|
-
scope:
|
|
55288
|
-
status:
|
|
55289
|
-
tax_rate_status:
|
|
55290
|
-
tax_rate_type:
|
|
55287
|
+
scope: TaxRateScope$zodSchema.optional(),
|
|
55288
|
+
status: Status$zodSchema.optional(),
|
|
55289
|
+
tax_rate_status: TaxRateStatus$zodSchema.optional(),
|
|
55290
|
+
tax_rate_type: TaxRateType$zodSchema.optional(),
|
|
55291
55291
|
tenant_id: string2().optional(),
|
|
55292
55292
|
updated_at: string2().optional(),
|
|
55293
55293
|
updated_by: string2().optional()
|
|
55294
55294
|
});
|
|
55295
55295
|
});
|
|
55296
55296
|
|
|
55297
|
-
// src/models/
|
|
55298
|
-
var
|
|
55299
|
-
var
|
|
55297
|
+
// src/models/invoicebillingreason.ts
|
|
55298
|
+
var InvoiceBillingReason$zodSchema;
|
|
55299
|
+
var init_invoicebillingreason = __esm(() => {
|
|
55300
55300
|
init_zod();
|
|
55301
|
-
|
|
55301
|
+
InvoiceBillingReason$zodSchema = _enum([
|
|
55302
55302
|
"SUBSCRIPTION_CREATE",
|
|
55303
55303
|
"SUBSCRIPTION_CYCLE",
|
|
55304
55304
|
"SUBSCRIPTION_UPDATE",
|
|
@@ -55307,33 +55307,33 @@ var init_typesinvoicebillingreason = __esm(() => {
|
|
|
55307
55307
|
]);
|
|
55308
55308
|
});
|
|
55309
55309
|
|
|
55310
|
-
// src/models/
|
|
55311
|
-
var
|
|
55312
|
-
var
|
|
55310
|
+
// src/models/invoicestatus.ts
|
|
55311
|
+
var InvoiceStatus$zodSchema;
|
|
55312
|
+
var init_invoicestatus = __esm(() => {
|
|
55313
55313
|
init_zod();
|
|
55314
|
-
|
|
55314
|
+
InvoiceStatus$zodSchema = _enum([
|
|
55315
55315
|
"DRAFT",
|
|
55316
55316
|
"FINALIZED",
|
|
55317
55317
|
"VOIDED"
|
|
55318
55318
|
]);
|
|
55319
55319
|
});
|
|
55320
55320
|
|
|
55321
|
-
// src/models/
|
|
55322
|
-
var
|
|
55323
|
-
var
|
|
55321
|
+
// src/models/invoicetype.ts
|
|
55322
|
+
var InvoiceType$zodSchema;
|
|
55323
|
+
var init_invoicetype = __esm(() => {
|
|
55324
55324
|
init_zod();
|
|
55325
|
-
|
|
55325
|
+
InvoiceType$zodSchema = _enum([
|
|
55326
55326
|
"SUBSCRIPTION",
|
|
55327
55327
|
"ONE_OFF",
|
|
55328
55328
|
"CREDIT"
|
|
55329
55329
|
]);
|
|
55330
55330
|
});
|
|
55331
55331
|
|
|
55332
|
-
// src/models/
|
|
55333
|
-
var
|
|
55334
|
-
var
|
|
55332
|
+
// src/models/paymentstatus.ts
|
|
55333
|
+
var PaymentStatus$zodSchema;
|
|
55334
|
+
var init_paymentstatus = __esm(() => {
|
|
55335
55335
|
init_zod();
|
|
55336
|
-
|
|
55336
|
+
PaymentStatus$zodSchema = _enum([
|
|
55337
55337
|
"INITIATED",
|
|
55338
55338
|
"PENDING",
|
|
55339
55339
|
"PROCESSING",
|
|
@@ -55354,15 +55354,15 @@ var init_dtocreateinvoicerequest = __esm(() => {
|
|
|
55354
55354
|
init_dtoinvoicelineitemcoupon();
|
|
55355
55355
|
init_dtotaxrateoverride();
|
|
55356
55356
|
init_dtotaxrateresponse();
|
|
55357
|
-
|
|
55358
|
-
|
|
55359
|
-
|
|
55360
|
-
|
|
55357
|
+
init_invoicebillingreason();
|
|
55358
|
+
init_invoicestatus();
|
|
55359
|
+
init_invoicetype();
|
|
55360
|
+
init_paymentstatus();
|
|
55361
55361
|
DtoCreateInvoiceRequest$zodSchema = object({
|
|
55362
55362
|
amount_due: string2(),
|
|
55363
55363
|
amount_paid: string2().optional(),
|
|
55364
55364
|
billing_period: string2().optional(),
|
|
55365
|
-
billing_reason:
|
|
55365
|
+
billing_reason: InvoiceBillingReason$zodSchema.optional(),
|
|
55366
55366
|
coupons: array(string2()).optional(),
|
|
55367
55367
|
currency: string2(),
|
|
55368
55368
|
customer_id: string2(),
|
|
@@ -55372,12 +55372,12 @@ var init_dtocreateinvoicerequest = __esm(() => {
|
|
|
55372
55372
|
invoice_coupons: array(DtoInvoiceCoupon$zodSchema).optional(),
|
|
55373
55373
|
invoice_number: string2().optional(),
|
|
55374
55374
|
invoice_pdf_url: string2().optional(),
|
|
55375
|
-
invoice_status:
|
|
55376
|
-
invoice_type:
|
|
55375
|
+
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
55376
|
+
invoice_type: InvoiceType$zodSchema.optional(),
|
|
55377
55377
|
line_item_coupons: array(DtoInvoiceLineItemCoupon$zodSchema).optional(),
|
|
55378
55378
|
line_items: array(DtoCreateInvoiceLineItemRequest$zodSchema).optional(),
|
|
55379
55379
|
metadata: record(string2(), string2()).optional(),
|
|
55380
|
-
payment_status:
|
|
55380
|
+
payment_status: PaymentStatus$zodSchema.optional(),
|
|
55381
55381
|
period_end: string2().optional(),
|
|
55382
55382
|
period_start: string2().optional(),
|
|
55383
55383
|
prepared_tax_rates: array(DtoTaxRateResponse$zodSchema).optional(),
|
|
@@ -55784,11 +55784,11 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
|
|
|
55784
55784
|
};
|
|
55785
55785
|
});
|
|
55786
55786
|
|
|
55787
|
-
// src/models/
|
|
55788
|
-
var
|
|
55789
|
-
var
|
|
55787
|
+
// src/models/coupontype.ts
|
|
55788
|
+
var CouponType$zodSchema;
|
|
55789
|
+
var init_coupontype = __esm(() => {
|
|
55790
55790
|
init_zod();
|
|
55791
|
-
|
|
55791
|
+
CouponType$zodSchema = _enum([
|
|
55792
55792
|
"fixed",
|
|
55793
55793
|
"percentage"
|
|
55794
55794
|
]);
|
|
@@ -55798,8 +55798,8 @@ var init_typescoupontype = __esm(() => {
|
|
|
55798
55798
|
var DtoCouponApplicationResponse$zodSchema;
|
|
55799
55799
|
var init_dtocouponapplicationresponse = __esm(() => {
|
|
55800
55800
|
init_zod();
|
|
55801
|
-
|
|
55802
|
-
|
|
55801
|
+
init_coupontype();
|
|
55802
|
+
init_status();
|
|
55803
55803
|
DtoCouponApplicationResponse$zodSchema = object({
|
|
55804
55804
|
applied_at: string2().optional(),
|
|
55805
55805
|
coupon_association_id: string2().optional(),
|
|
@@ -55809,7 +55809,7 @@ var init_dtocouponapplicationresponse = __esm(() => {
|
|
|
55809
55809
|
created_by: string2().optional(),
|
|
55810
55810
|
currency: string2().optional(),
|
|
55811
55811
|
discount_percentage: string2().optional(),
|
|
55812
|
-
discount_type:
|
|
55812
|
+
discount_type: CouponType$zodSchema.optional(),
|
|
55813
55813
|
discounted_amount: string2().optional(),
|
|
55814
55814
|
environment_id: string2().optional(),
|
|
55815
55815
|
final_price: string2().optional(),
|
|
@@ -55818,7 +55818,7 @@ var init_dtocouponapplicationresponse = __esm(() => {
|
|
|
55818
55818
|
invoice_line_item_id: string2().optional(),
|
|
55819
55819
|
metadata: record(string2(), string2()).optional(),
|
|
55820
55820
|
original_price: string2().optional(),
|
|
55821
|
-
status:
|
|
55821
|
+
status: Status$zodSchema.optional(),
|
|
55822
55822
|
subscription_id: string2().optional(),
|
|
55823
55823
|
tenant_id: string2().optional(),
|
|
55824
55824
|
updated_at: string2().optional(),
|
|
@@ -55856,13 +55856,13 @@ var init_dtousagebreakdownitem = __esm(() => {
|
|
|
55856
55856
|
var DtoInvoiceLineItemResponse$zodSchema;
|
|
55857
55857
|
var init_dtoinvoicelineitemresponse = __esm(() => {
|
|
55858
55858
|
init_zod();
|
|
55859
|
+
init_commitmentinfo();
|
|
55859
55860
|
init_dtosourceusageitem();
|
|
55860
55861
|
init_dtousagebreakdownitem();
|
|
55861
|
-
|
|
55862
|
-
init_typesstatus();
|
|
55862
|
+
init_status();
|
|
55863
55863
|
DtoInvoiceLineItemResponse$zodSchema = object({
|
|
55864
55864
|
amount: string2().optional(),
|
|
55865
|
-
commitment_info:
|
|
55865
|
+
commitment_info: CommitmentInfo$zodSchema.optional(),
|
|
55866
55866
|
created_at: string2().optional(),
|
|
55867
55867
|
created_by: string2().optional(),
|
|
55868
55868
|
currency: string2().optional(),
|
|
@@ -55888,7 +55888,7 @@ var init_dtoinvoicelineitemresponse = __esm(() => {
|
|
|
55888
55888
|
price_unit_amount: string2().optional(),
|
|
55889
55889
|
price_unit_id: string2().optional(),
|
|
55890
55890
|
quantity: string2().optional(),
|
|
55891
|
-
status:
|
|
55891
|
+
status: Status$zodSchema.optional(),
|
|
55892
55892
|
subscription_id: string2().optional(),
|
|
55893
55893
|
tenant_id: string2().optional(),
|
|
55894
55894
|
updated_at: string2().optional(),
|
|
@@ -55898,11 +55898,21 @@ var init_dtoinvoicelineitemresponse = __esm(() => {
|
|
|
55898
55898
|
});
|
|
55899
55899
|
});
|
|
55900
55900
|
|
|
55901
|
-
// src/models/
|
|
55902
|
-
var
|
|
55903
|
-
var
|
|
55901
|
+
// src/models/billingcycle.ts
|
|
55902
|
+
var BillingCycle$zodSchema;
|
|
55903
|
+
var init_billingcycle = __esm(() => {
|
|
55904
|
+
init_zod();
|
|
55905
|
+
BillingCycle$zodSchema = _enum([
|
|
55906
|
+
"anniversary",
|
|
55907
|
+
"calendar"
|
|
55908
|
+
]);
|
|
55909
|
+
});
|
|
55910
|
+
|
|
55911
|
+
// src/models/couponcadence.ts
|
|
55912
|
+
var CouponCadence$zodSchema;
|
|
55913
|
+
var init_couponcadence = __esm(() => {
|
|
55904
55914
|
init_zod();
|
|
55905
|
-
|
|
55915
|
+
CouponCadence$zodSchema = _enum([
|
|
55906
55916
|
"once",
|
|
55907
55917
|
"repeated",
|
|
55908
55918
|
"forever"
|
|
@@ -55913,12 +55923,12 @@ var init_typescouponcadence = __esm(() => {
|
|
|
55913
55923
|
var GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema;
|
|
55914
55924
|
var init_githubcomflexpriceflexpriceinternaldomaincouponcoupon = __esm(() => {
|
|
55915
55925
|
init_zod();
|
|
55916
|
-
|
|
55917
|
-
|
|
55918
|
-
|
|
55926
|
+
init_couponcadence();
|
|
55927
|
+
init_coupontype();
|
|
55928
|
+
init_status();
|
|
55919
55929
|
GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema = object({
|
|
55920
55930
|
amount_off: string2().optional(),
|
|
55921
|
-
cadence:
|
|
55931
|
+
cadence: CouponCadence$zodSchema.optional(),
|
|
55922
55932
|
created_at: string2().optional(),
|
|
55923
55933
|
created_by: string2().optional(),
|
|
55924
55934
|
currency: string2().optional(),
|
|
@@ -55932,10 +55942,10 @@ var init_githubcomflexpriceflexpriceinternaldomaincouponcoupon = __esm(() => {
|
|
|
55932
55942
|
redeem_after: string2().optional(),
|
|
55933
55943
|
redeem_before: string2().optional(),
|
|
55934
55944
|
rules: record(string2(), any()).optional(),
|
|
55935
|
-
status:
|
|
55945
|
+
status: Status$zodSchema.optional(),
|
|
55936
55946
|
tenant_id: string2().optional(),
|
|
55937
55947
|
total_redemptions: int().optional(),
|
|
55938
|
-
type:
|
|
55948
|
+
type: CouponType$zodSchema.optional(),
|
|
55939
55949
|
updated_at: string2().optional(),
|
|
55940
55950
|
updated_by: string2().optional()
|
|
55941
55951
|
});
|
|
@@ -55946,7 +55956,7 @@ var DtoCouponAssociationResponse$zodSchema;
|
|
|
55946
55956
|
var init_dtocouponassociationresponse = __esm(() => {
|
|
55947
55957
|
init_zod();
|
|
55948
55958
|
init_githubcomflexpriceflexpriceinternaldomaincouponcoupon();
|
|
55949
|
-
|
|
55959
|
+
init_status();
|
|
55950
55960
|
DtoCouponAssociationResponse$zodSchema = object({
|
|
55951
55961
|
coupon: GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema.optional(),
|
|
55952
55962
|
coupon_id: string2().optional(),
|
|
@@ -55957,7 +55967,7 @@ var init_dtocouponassociationresponse = __esm(() => {
|
|
|
55957
55967
|
id: string2().optional(),
|
|
55958
55968
|
metadata: record(string2(), string2()).optional(),
|
|
55959
55969
|
start_date: string2().optional(),
|
|
55960
|
-
status:
|
|
55970
|
+
status: Status$zodSchema.optional(),
|
|
55961
55971
|
subscription_id: string2().optional(),
|
|
55962
55972
|
subscription_line_item_id: string2().optional(),
|
|
55963
55973
|
subscription_phase_id: string2().optional(),
|
|
@@ -55967,21 +55977,21 @@ var init_dtocouponassociationresponse = __esm(() => {
|
|
|
55967
55977
|
});
|
|
55968
55978
|
});
|
|
55969
55979
|
|
|
55970
|
-
// src/models/
|
|
55971
|
-
var
|
|
55972
|
-
var
|
|
55980
|
+
// src/models/creditgrantcadence.ts
|
|
55981
|
+
var CreditGrantCadence$zodSchema;
|
|
55982
|
+
var init_creditgrantcadence = __esm(() => {
|
|
55973
55983
|
init_zod();
|
|
55974
|
-
|
|
55984
|
+
CreditGrantCadence$zodSchema = _enum([
|
|
55975
55985
|
"ONETIME",
|
|
55976
55986
|
"RECURRING"
|
|
55977
55987
|
]);
|
|
55978
55988
|
});
|
|
55979
55989
|
|
|
55980
|
-
// src/models/
|
|
55981
|
-
var
|
|
55982
|
-
var
|
|
55990
|
+
// src/models/creditgrantexpirydurationunit.ts
|
|
55991
|
+
var CreditGrantExpiryDurationUnit$zodSchema;
|
|
55992
|
+
var init_creditgrantexpirydurationunit = __esm(() => {
|
|
55983
55993
|
init_zod();
|
|
55984
|
-
|
|
55994
|
+
CreditGrantExpiryDurationUnit$zodSchema = _enum([
|
|
55985
55995
|
"DAY",
|
|
55986
55996
|
"WEEK",
|
|
55987
55997
|
"MONTH",
|
|
@@ -55989,22 +55999,22 @@ var init_typescreditgrantexpirydurationunit = __esm(() => {
|
|
|
55989
55999
|
]);
|
|
55990
56000
|
});
|
|
55991
56001
|
|
|
55992
|
-
// src/models/
|
|
55993
|
-
var
|
|
55994
|
-
var
|
|
56002
|
+
// src/models/creditgrantexpirytype.ts
|
|
56003
|
+
var CreditGrantExpiryType$zodSchema;
|
|
56004
|
+
var init_creditgrantexpirytype = __esm(() => {
|
|
55995
56005
|
init_zod();
|
|
55996
|
-
|
|
56006
|
+
CreditGrantExpiryType$zodSchema = _enum([
|
|
55997
56007
|
"NEVER",
|
|
55998
56008
|
"DURATION",
|
|
55999
56009
|
"BILLING_CYCLE"
|
|
56000
56010
|
]);
|
|
56001
56011
|
});
|
|
56002
56012
|
|
|
56003
|
-
// src/models/
|
|
56004
|
-
var
|
|
56005
|
-
var
|
|
56013
|
+
// src/models/creditgrantperiod.ts
|
|
56014
|
+
var CreditGrantPeriod$zodSchema;
|
|
56015
|
+
var init_creditgrantperiod = __esm(() => {
|
|
56006
56016
|
init_zod();
|
|
56007
|
-
|
|
56017
|
+
CreditGrantPeriod$zodSchema = _enum([
|
|
56008
56018
|
"DAILY",
|
|
56009
56019
|
"WEEKLY",
|
|
56010
56020
|
"MONTHLY",
|
|
@@ -56014,11 +56024,11 @@ var init_typescreditgrantperiod = __esm(() => {
|
|
|
56014
56024
|
]);
|
|
56015
56025
|
});
|
|
56016
56026
|
|
|
56017
|
-
// src/models/
|
|
56018
|
-
var
|
|
56019
|
-
var
|
|
56027
|
+
// src/models/creditgrantscope.ts
|
|
56028
|
+
var CreditGrantScope$zodSchema;
|
|
56029
|
+
var init_creditgrantscope = __esm(() => {
|
|
56020
56030
|
init_zod();
|
|
56021
|
-
|
|
56031
|
+
CreditGrantScope$zodSchema = _enum([
|
|
56022
56032
|
"PLAN",
|
|
56023
56033
|
"SUBSCRIPTION"
|
|
56024
56034
|
]);
|
|
@@ -56028,14 +56038,14 @@ var init_typescreditgrantscope = __esm(() => {
|
|
|
56028
56038
|
var DtoCreditGrantResponse$zodSchema;
|
|
56029
56039
|
var init_dtocreditgrantresponse = __esm(() => {
|
|
56030
56040
|
init_zod();
|
|
56031
|
-
|
|
56032
|
-
|
|
56033
|
-
|
|
56034
|
-
|
|
56035
|
-
|
|
56036
|
-
|
|
56041
|
+
init_creditgrantcadence();
|
|
56042
|
+
init_creditgrantexpirydurationunit();
|
|
56043
|
+
init_creditgrantexpirytype();
|
|
56044
|
+
init_creditgrantperiod();
|
|
56045
|
+
init_creditgrantscope();
|
|
56046
|
+
init_status();
|
|
56037
56047
|
DtoCreditGrantResponse$zodSchema = object({
|
|
56038
|
-
cadence:
|
|
56048
|
+
cadence: CreditGrantCadence$zodSchema.optional(),
|
|
56039
56049
|
conversion_rate: string2().optional(),
|
|
56040
56050
|
created_at: string2().optional(),
|
|
56041
56051
|
created_by: string2().optional(),
|
|
@@ -56044,18 +56054,18 @@ var init_dtocreditgrantresponse = __esm(() => {
|
|
|
56044
56054
|
end_date: string2().optional(),
|
|
56045
56055
|
environment_id: string2().optional(),
|
|
56046
56056
|
expiration_duration: int().optional(),
|
|
56047
|
-
expiration_duration_unit:
|
|
56048
|
-
expiration_type:
|
|
56057
|
+
expiration_duration_unit: CreditGrantExpiryDurationUnit$zodSchema.optional(),
|
|
56058
|
+
expiration_type: CreditGrantExpiryType$zodSchema.optional(),
|
|
56049
56059
|
id: string2().optional(),
|
|
56050
56060
|
metadata: record(string2(), string2()).optional(),
|
|
56051
56061
|
name: string2().optional(),
|
|
56052
|
-
period:
|
|
56062
|
+
period: CreditGrantPeriod$zodSchema.optional(),
|
|
56053
56063
|
period_count: int().optional(),
|
|
56054
56064
|
plan_id: string2().optional(),
|
|
56055
56065
|
priority: int().optional(),
|
|
56056
|
-
scope:
|
|
56066
|
+
scope: CreditGrantScope$zodSchema.optional(),
|
|
56057
56067
|
start_date: string2().optional(),
|
|
56058
|
-
status:
|
|
56068
|
+
status: Status$zodSchema.optional(),
|
|
56059
56069
|
subscription_id: string2().optional(),
|
|
56060
56070
|
tenant_id: string2().optional(),
|
|
56061
56071
|
topup_conversion_rate: string2().optional(),
|
|
@@ -56064,6 +56074,16 @@ var init_dtocreditgrantresponse = __esm(() => {
|
|
|
56064
56074
|
});
|
|
56065
56075
|
});
|
|
56066
56076
|
|
|
56077
|
+
// src/models/addontype.ts
|
|
56078
|
+
var AddonType$zodSchema;
|
|
56079
|
+
var init_addontype = __esm(() => {
|
|
56080
|
+
init_zod();
|
|
56081
|
+
AddonType$zodSchema = _enum([
|
|
56082
|
+
"onetime",
|
|
56083
|
+
"multiple_instance"
|
|
56084
|
+
]);
|
|
56085
|
+
});
|
|
56086
|
+
|
|
56067
56087
|
// src/models/dtogroupresponse.ts
|
|
56068
56088
|
var DtoGroupResponse$zodSchema;
|
|
56069
56089
|
var init_dtogroupresponse = __esm(() => {
|
|
@@ -56085,7 +56105,7 @@ var init_dtogroupresponse = __esm(() => {
|
|
|
56085
56105
|
var DtoPriceUnitResponse$zodSchema;
|
|
56086
56106
|
var init_dtopriceunitresponse = __esm(() => {
|
|
56087
56107
|
init_zod();
|
|
56088
|
-
|
|
56108
|
+
init_status();
|
|
56089
56109
|
DtoPriceUnitResponse$zodSchema = object({
|
|
56090
56110
|
base_currency: string2().optional(),
|
|
56091
56111
|
code: string2().optional(),
|
|
@@ -56096,7 +56116,7 @@ var init_dtopriceunitresponse = __esm(() => {
|
|
|
56096
56116
|
id: string2().optional(),
|
|
56097
56117
|
metadata: record(string2(), string2()).optional(),
|
|
56098
56118
|
name: string2().optional(),
|
|
56099
|
-
status:
|
|
56119
|
+
status: Status$zodSchema.optional(),
|
|
56100
56120
|
symbol: string2().optional(),
|
|
56101
56121
|
tenant_id: string2().optional(),
|
|
56102
56122
|
updated_at: string2().optional(),
|
|
@@ -56108,28 +56128,28 @@ var init_dtopriceunitresponse = __esm(() => {
|
|
|
56108
56128
|
var DtoPriceResponse$zodSchema;
|
|
56109
56129
|
var init_dtopriceresponse = __esm(() => {
|
|
56110
56130
|
init_zod();
|
|
56131
|
+
init_billingcadence();
|
|
56132
|
+
init_billingmodel();
|
|
56133
|
+
init_billingperiod();
|
|
56134
|
+
init_billingtier();
|
|
56111
56135
|
init_dtoaddonresponse();
|
|
56112
56136
|
init_dtogroupresponse();
|
|
56113
56137
|
init_dtometerresponse();
|
|
56114
56138
|
init_dtoplanresponse();
|
|
56115
56139
|
init_dtopriceunitresponse();
|
|
56140
|
+
init_invoicecadence();
|
|
56141
|
+
init_priceentitytype();
|
|
56116
56142
|
init_pricejsonbtransformquantity();
|
|
56117
56143
|
init_pricepricetier();
|
|
56118
|
-
|
|
56119
|
-
|
|
56120
|
-
|
|
56121
|
-
init_typesbillingtier();
|
|
56122
|
-
init_typesinvoicecadence();
|
|
56123
|
-
init_typespriceentitytype();
|
|
56124
|
-
init_typespricetype();
|
|
56125
|
-
init_typespriceunittype();
|
|
56126
|
-
init_typesstatus();
|
|
56144
|
+
init_pricetype();
|
|
56145
|
+
init_priceunittype();
|
|
56146
|
+
init_status();
|
|
56127
56147
|
DtoPriceResponse$zodSchema = object({
|
|
56128
56148
|
addon: lazy(() => DtoAddonResponse$zodSchema).optional(),
|
|
56129
56149
|
amount: string2().optional(),
|
|
56130
|
-
billing_cadence:
|
|
56131
|
-
billing_model:
|
|
56132
|
-
billing_period:
|
|
56150
|
+
billing_cadence: BillingCadence$zodSchema.optional(),
|
|
56151
|
+
billing_model: BillingModel$zodSchema.optional(),
|
|
56152
|
+
billing_period: BillingPeriod$zodSchema.optional(),
|
|
56133
56153
|
billing_period_count: int().optional(),
|
|
56134
56154
|
conversion_rate: string2().optional(),
|
|
56135
56155
|
created_at: string2().optional(),
|
|
@@ -56141,12 +56161,12 @@ var init_dtopriceresponse = __esm(() => {
|
|
|
56141
56161
|
display_price_unit_amount: string2().optional(),
|
|
56142
56162
|
end_date: string2().optional(),
|
|
56143
56163
|
entity_id: string2().optional(),
|
|
56144
|
-
entity_type:
|
|
56164
|
+
entity_type: PriceEntityType$zodSchema.optional(),
|
|
56145
56165
|
environment_id: string2().optional(),
|
|
56146
56166
|
group: DtoGroupResponse$zodSchema.optional(),
|
|
56147
56167
|
group_id: string2().optional(),
|
|
56148
56168
|
id: string2().optional(),
|
|
56149
|
-
invoice_cadence:
|
|
56169
|
+
invoice_cadence: InvoiceCadence$zodSchema.optional(),
|
|
56150
56170
|
lookup_key: string2().optional(),
|
|
56151
56171
|
metadata: record(string2(), string2()).optional(),
|
|
56152
56172
|
meter: DtoMeterResponse$zodSchema.optional(),
|
|
@@ -56158,39 +56178,29 @@ var init_dtopriceresponse = __esm(() => {
|
|
|
56158
56178
|
price_unit_amount: string2().optional(),
|
|
56159
56179
|
price_unit_id: string2().optional(),
|
|
56160
56180
|
price_unit_tiers: array(PricePriceTier$zodSchema).optional(),
|
|
56161
|
-
price_unit_type:
|
|
56181
|
+
price_unit_type: PriceUnitType$zodSchema.optional(),
|
|
56162
56182
|
pricing_unit: DtoPriceUnitResponse$zodSchema.optional(),
|
|
56163
56183
|
start_date: string2().optional(),
|
|
56164
|
-
status:
|
|
56184
|
+
status: Status$zodSchema.optional(),
|
|
56165
56185
|
tenant_id: string2().optional(),
|
|
56166
|
-
tier_mode:
|
|
56186
|
+
tier_mode: BillingTier$zodSchema.optional(),
|
|
56167
56187
|
tiers: array(PricePriceTier$zodSchema).optional(),
|
|
56168
56188
|
transform_quantity: PriceJSONBTransformQuantity$zodSchema.optional(),
|
|
56169
56189
|
trial_period: int().optional(),
|
|
56170
|
-
type:
|
|
56190
|
+
type: PriceType$zodSchema.optional(),
|
|
56171
56191
|
updated_at: string2().optional(),
|
|
56172
56192
|
updated_by: string2().optional()
|
|
56173
56193
|
});
|
|
56174
56194
|
});
|
|
56175
56195
|
|
|
56176
|
-
// src/models/typesaddontype.ts
|
|
56177
|
-
var TypesAddonType$zodSchema;
|
|
56178
|
-
var init_typesaddontype = __esm(() => {
|
|
56179
|
-
init_zod();
|
|
56180
|
-
TypesAddonType$zodSchema = _enum([
|
|
56181
|
-
"onetime",
|
|
56182
|
-
"multiple_instance"
|
|
56183
|
-
]);
|
|
56184
|
-
});
|
|
56185
|
-
|
|
56186
56196
|
// src/models/dtoaddonresponse.ts
|
|
56187
56197
|
var DtoAddonResponse$zodSchema;
|
|
56188
56198
|
var init_dtoaddonresponse = __esm(() => {
|
|
56189
56199
|
init_zod();
|
|
56200
|
+
init_addontype();
|
|
56190
56201
|
init_dtoentitlementresponse();
|
|
56191
56202
|
init_dtopriceresponse();
|
|
56192
|
-
|
|
56193
|
-
init_typesstatus();
|
|
56203
|
+
init_status();
|
|
56194
56204
|
DtoAddonResponse$zodSchema = object({
|
|
56195
56205
|
created_at: string2().optional(),
|
|
56196
56206
|
created_by: string2().optional(),
|
|
@@ -56202,19 +56212,19 @@ var init_dtoaddonresponse = __esm(() => {
|
|
|
56202
56212
|
metadata: record(string2(), any()).optional(),
|
|
56203
56213
|
name: string2().optional(),
|
|
56204
56214
|
prices: array(lazy(() => DtoPriceResponse$zodSchema)).optional(),
|
|
56205
|
-
status:
|
|
56215
|
+
status: Status$zodSchema.optional(),
|
|
56206
56216
|
tenant_id: string2().optional(),
|
|
56207
|
-
type:
|
|
56217
|
+
type: AddonType$zodSchema.optional(),
|
|
56208
56218
|
updated_at: string2().optional(),
|
|
56209
56219
|
updated_by: string2().optional()
|
|
56210
56220
|
});
|
|
56211
56221
|
});
|
|
56212
56222
|
|
|
56213
|
-
// src/models/
|
|
56214
|
-
var
|
|
56215
|
-
var
|
|
56223
|
+
// src/models/entitlemententitytype.ts
|
|
56224
|
+
var EntitlementEntityType$zodSchema;
|
|
56225
|
+
var init_entitlemententitytype = __esm(() => {
|
|
56216
56226
|
init_zod();
|
|
56217
|
-
|
|
56227
|
+
EntitlementEntityType$zodSchema = _enum([
|
|
56218
56228
|
"PLAN",
|
|
56219
56229
|
"SUBSCRIPTION",
|
|
56220
56230
|
"ADDON"
|
|
@@ -56228,10 +56238,10 @@ var init_dtoentitlementresponse = __esm(() => {
|
|
|
56228
56238
|
init_dtoaddonresponse();
|
|
56229
56239
|
init_dtofeatureresponse();
|
|
56230
56240
|
init_dtoplanresponse();
|
|
56231
|
-
|
|
56232
|
-
|
|
56233
|
-
|
|
56234
|
-
|
|
56241
|
+
init_entitlemententitytype();
|
|
56242
|
+
init_entitlementusageresetperiod();
|
|
56243
|
+
init_featuretype();
|
|
56244
|
+
init_status();
|
|
56235
56245
|
DtoEntitlementResponse$zodSchema = object({
|
|
56236
56246
|
addon: lazy(() => DtoAddonResponse$zodSchema).optional(),
|
|
56237
56247
|
created_at: string2().optional(),
|
|
@@ -56239,11 +56249,11 @@ var init_dtoentitlementresponse = __esm(() => {
|
|
|
56239
56249
|
display_order: int().optional(),
|
|
56240
56250
|
end_date: string2().optional(),
|
|
56241
56251
|
entity_id: string2().optional(),
|
|
56242
|
-
entity_type:
|
|
56252
|
+
entity_type: EntitlementEntityType$zodSchema.optional(),
|
|
56243
56253
|
environment_id: string2().optional(),
|
|
56244
56254
|
feature: DtoFeatureResponse$zodSchema.optional(),
|
|
56245
56255
|
feature_id: string2().optional(),
|
|
56246
|
-
feature_type:
|
|
56256
|
+
feature_type: FeatureType$zodSchema.optional(),
|
|
56247
56257
|
id: string2().optional(),
|
|
56248
56258
|
is_enabled: boolean2().optional(),
|
|
56249
56259
|
is_soft_limit: boolean2().optional(),
|
|
@@ -56252,12 +56262,12 @@ var init_dtoentitlementresponse = __esm(() => {
|
|
|
56252
56262
|
plan_id: string2().optional(),
|
|
56253
56263
|
start_date: string2().optional(),
|
|
56254
56264
|
static_value: string2().optional(),
|
|
56255
|
-
status:
|
|
56265
|
+
status: Status$zodSchema.optional(),
|
|
56256
56266
|
tenant_id: string2().optional(),
|
|
56257
56267
|
updated_at: string2().optional(),
|
|
56258
56268
|
updated_by: string2().optional(),
|
|
56259
56269
|
usage_limit: int().optional(),
|
|
56260
|
-
usage_reset_period:
|
|
56270
|
+
usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional()
|
|
56261
56271
|
});
|
|
56262
56272
|
});
|
|
56263
56273
|
|
|
@@ -56268,7 +56278,7 @@ var init_dtoplanresponse = __esm(() => {
|
|
|
56268
56278
|
init_dtocreditgrantresponse();
|
|
56269
56279
|
init_dtoentitlementresponse();
|
|
56270
56280
|
init_dtopriceresponse();
|
|
56271
|
-
|
|
56281
|
+
init_status();
|
|
56272
56282
|
DtoPlanResponse$zodSchema = object({
|
|
56273
56283
|
created_at: string2().optional(),
|
|
56274
56284
|
created_by: string2().optional(),
|
|
@@ -56282,7 +56292,7 @@ var init_dtoplanresponse = __esm(() => {
|
|
|
56282
56292
|
metadata: record(string2(), string2()).optional(),
|
|
56283
56293
|
name: string2().optional(),
|
|
56284
56294
|
prices: array(lazy(() => DtoPriceResponse$zodSchema)).optional(),
|
|
56285
|
-
status:
|
|
56295
|
+
status: Status$zodSchema.optional(),
|
|
56286
56296
|
tenant_id: string2().optional(),
|
|
56287
56297
|
updated_at: string2().optional(),
|
|
56288
56298
|
updated_by: string2().optional()
|
|
@@ -56293,7 +56303,7 @@ var init_dtoplanresponse = __esm(() => {
|
|
|
56293
56303
|
var DtoSubscriptionPhaseResponse$zodSchema;
|
|
56294
56304
|
var init_dtosubscriptionphaseresponse = __esm(() => {
|
|
56295
56305
|
init_zod();
|
|
56296
|
-
|
|
56306
|
+
init_status();
|
|
56297
56307
|
DtoSubscriptionPhaseResponse$zodSchema = object({
|
|
56298
56308
|
created_at: string2().optional(),
|
|
56299
56309
|
created_by: string2().optional(),
|
|
@@ -56302,7 +56312,7 @@ var init_dtosubscriptionphaseresponse = __esm(() => {
|
|
|
56302
56312
|
id: string2().optional(),
|
|
56303
56313
|
metadata: record(string2(), string2()).optional(),
|
|
56304
56314
|
start_date: string2().optional(),
|
|
56305
|
-
status:
|
|
56315
|
+
status: Status$zodSchema.optional(),
|
|
56306
56316
|
subscription_id: string2().optional(),
|
|
56307
56317
|
tenant_id: string2().optional(),
|
|
56308
56318
|
updated_at: string2().optional(),
|
|
@@ -56310,35 +56320,59 @@ var init_dtosubscriptionphaseresponse = __esm(() => {
|
|
|
56310
56320
|
});
|
|
56311
56321
|
});
|
|
56312
56322
|
|
|
56313
|
-
// src/models/
|
|
56314
|
-
var
|
|
56315
|
-
var
|
|
56323
|
+
// src/models/pausestatus.ts
|
|
56324
|
+
var PauseStatus$zodSchema;
|
|
56325
|
+
var init_pausestatus = __esm(() => {
|
|
56316
56326
|
init_zod();
|
|
56317
|
-
|
|
56318
|
-
"
|
|
56327
|
+
PauseStatus$zodSchema = _enum([
|
|
56328
|
+
"none",
|
|
56329
|
+
"active",
|
|
56319
56330
|
"scheduled",
|
|
56320
|
-
"
|
|
56331
|
+
"completed",
|
|
56332
|
+
"cancelled"
|
|
56321
56333
|
]);
|
|
56322
56334
|
});
|
|
56323
56335
|
|
|
56324
|
-
// src/models/
|
|
56325
|
-
var
|
|
56326
|
-
var
|
|
56336
|
+
// src/models/paymentterms.ts
|
|
56337
|
+
var PaymentTerms$zodSchema;
|
|
56338
|
+
var init_paymentterms = __esm(() => {
|
|
56327
56339
|
init_zod();
|
|
56328
|
-
|
|
56329
|
-
"
|
|
56330
|
-
"
|
|
56340
|
+
PaymentTerms$zodSchema = _enum([
|
|
56341
|
+
"15 NET",
|
|
56342
|
+
"30 NET",
|
|
56343
|
+
"45 NET",
|
|
56344
|
+
"60 NET",
|
|
56345
|
+
"75 NET",
|
|
56346
|
+
"90 NET"
|
|
56347
|
+
]);
|
|
56348
|
+
});
|
|
56349
|
+
|
|
56350
|
+
// src/models/prorationbehavior.ts
|
|
56351
|
+
var ProrationBehavior$zodSchema;
|
|
56352
|
+
var init_prorationbehavior = __esm(() => {
|
|
56353
|
+
init_zod();
|
|
56354
|
+
ProrationBehavior$zodSchema = _enum([
|
|
56355
|
+
"create_prorations",
|
|
56356
|
+
"none"
|
|
56357
|
+
]);
|
|
56358
|
+
});
|
|
56359
|
+
|
|
56360
|
+
// src/models/pausemode.ts
|
|
56361
|
+
var PauseMode$zodSchema;
|
|
56362
|
+
var init_pausemode = __esm(() => {
|
|
56363
|
+
init_zod();
|
|
56364
|
+
PauseMode$zodSchema = _enum([
|
|
56365
|
+
"immediate",
|
|
56331
56366
|
"scheduled",
|
|
56332
|
-
"
|
|
56333
|
-
"cancelled"
|
|
56367
|
+
"period_end"
|
|
56334
56368
|
]);
|
|
56335
56369
|
});
|
|
56336
56370
|
|
|
56337
|
-
// src/models/
|
|
56338
|
-
var
|
|
56339
|
-
var
|
|
56371
|
+
// src/models/resumemode.ts
|
|
56372
|
+
var ResumeMode$zodSchema;
|
|
56373
|
+
var init_resumemode = __esm(() => {
|
|
56340
56374
|
init_zod();
|
|
56341
|
-
|
|
56375
|
+
ResumeMode$zodSchema = _enum([
|
|
56342
56376
|
"immediate",
|
|
56343
56377
|
"scheduled",
|
|
56344
56378
|
"auto"
|
|
@@ -56349,10 +56383,10 @@ var init_typesresumemode = __esm(() => {
|
|
|
56349
56383
|
var SubscriptionSubscriptionPause$zodSchema;
|
|
56350
56384
|
var init_subscriptionsubscriptionpause = __esm(() => {
|
|
56351
56385
|
init_zod();
|
|
56352
|
-
|
|
56353
|
-
|
|
56354
|
-
|
|
56355
|
-
|
|
56386
|
+
init_pausemode();
|
|
56387
|
+
init_pausestatus();
|
|
56388
|
+
init_resumemode();
|
|
56389
|
+
init_status();
|
|
56356
56390
|
SubscriptionSubscriptionPause$zodSchema = object({
|
|
56357
56391
|
created_at: string2().optional(),
|
|
56358
56392
|
created_by: string2().optional(),
|
|
@@ -56362,13 +56396,13 @@ var init_subscriptionsubscriptionpause = __esm(() => {
|
|
|
56362
56396
|
original_period_end: string2().optional(),
|
|
56363
56397
|
original_period_start: string2().optional(),
|
|
56364
56398
|
pause_end: string2().optional(),
|
|
56365
|
-
pause_mode:
|
|
56399
|
+
pause_mode: PauseMode$zodSchema.optional(),
|
|
56366
56400
|
pause_start: string2().optional(),
|
|
56367
|
-
pause_status:
|
|
56401
|
+
pause_status: PauseStatus$zodSchema.optional(),
|
|
56368
56402
|
reason: string2().optional(),
|
|
56369
|
-
resume_mode:
|
|
56403
|
+
resume_mode: ResumeMode$zodSchema.optional(),
|
|
56370
56404
|
resumed_at: string2().optional(),
|
|
56371
|
-
status:
|
|
56405
|
+
status: Status$zodSchema.optional(),
|
|
56372
56406
|
subscription_id: string2().optional(),
|
|
56373
56407
|
tenant_id: string2().optional(),
|
|
56374
56408
|
updated_at: string2().optional(),
|
|
@@ -56376,73 +56410,39 @@ var init_subscriptionsubscriptionpause = __esm(() => {
|
|
|
56376
56410
|
});
|
|
56377
56411
|
});
|
|
56378
56412
|
|
|
56379
|
-
// src/models/typesbillingcycle.ts
|
|
56380
|
-
var TypesBillingCycle$zodSchema;
|
|
56381
|
-
var init_typesbillingcycle = __esm(() => {
|
|
56382
|
-
init_zod();
|
|
56383
|
-
TypesBillingCycle$zodSchema = _enum([
|
|
56384
|
-
"anniversary",
|
|
56385
|
-
"calendar"
|
|
56386
|
-
]);
|
|
56387
|
-
});
|
|
56388
|
-
|
|
56389
|
-
// src/models/typespaymentterms.ts
|
|
56390
|
-
var TypesPaymentTerms$zodSchema;
|
|
56391
|
-
var init_typespaymentterms = __esm(() => {
|
|
56392
|
-
init_zod();
|
|
56393
|
-
TypesPaymentTerms$zodSchema = _enum([
|
|
56394
|
-
"15 NET",
|
|
56395
|
-
"30 NET",
|
|
56396
|
-
"45 NET",
|
|
56397
|
-
"60 NET",
|
|
56398
|
-
"75 NET",
|
|
56399
|
-
"90 NET"
|
|
56400
|
-
]);
|
|
56401
|
-
});
|
|
56402
|
-
|
|
56403
|
-
// src/models/typesprorationbehavior.ts
|
|
56404
|
-
var TypesProrationBehavior$zodSchema;
|
|
56405
|
-
var init_typesprorationbehavior = __esm(() => {
|
|
56406
|
-
init_zod();
|
|
56407
|
-
TypesProrationBehavior$zodSchema = _enum([
|
|
56408
|
-
"create_prorations",
|
|
56409
|
-
"none"
|
|
56410
|
-
]);
|
|
56411
|
-
});
|
|
56412
|
-
|
|
56413
56413
|
// src/models/dtosubscriptionresponse.ts
|
|
56414
56414
|
var DtoSubscriptionResponse$zodSchema;
|
|
56415
56415
|
var init_dtosubscriptionresponse = __esm(() => {
|
|
56416
56416
|
init_zod();
|
|
56417
|
+
init_billingcadence();
|
|
56418
|
+
init_billingcycle();
|
|
56419
|
+
init_billingperiod();
|
|
56417
56420
|
init_dtocouponassociationresponse();
|
|
56418
56421
|
init_dtocreditgrantresponse();
|
|
56419
56422
|
init_dtocustomerresponse();
|
|
56420
56423
|
init_dtoinvoiceresponse();
|
|
56421
56424
|
init_dtoplanresponse();
|
|
56422
56425
|
init_dtosubscriptionphaseresponse();
|
|
56426
|
+
init_pausestatus();
|
|
56427
|
+
init_paymentterms();
|
|
56428
|
+
init_prorationbehavior();
|
|
56429
|
+
init_status();
|
|
56430
|
+
init_subscriptionstatus();
|
|
56423
56431
|
init_subscriptionsubscriptionlineitem();
|
|
56424
56432
|
init_subscriptionsubscriptionpause();
|
|
56425
|
-
init_typesbillingcadence();
|
|
56426
|
-
init_typesbillingcycle();
|
|
56427
|
-
init_typesbillingperiod();
|
|
56428
|
-
init_typespausestatus();
|
|
56429
|
-
init_typespaymentterms();
|
|
56430
|
-
init_typesprorationbehavior();
|
|
56431
|
-
init_typesstatus();
|
|
56432
|
-
init_typessubscriptionstatus();
|
|
56433
56433
|
DtoSubscriptionResponse$zodSchema = object({
|
|
56434
56434
|
active_pause_id: string2().optional(),
|
|
56435
56435
|
billing_anchor: string2().optional(),
|
|
56436
|
-
billing_cadence:
|
|
56437
|
-
billing_cycle:
|
|
56438
|
-
billing_period:
|
|
56436
|
+
billing_cadence: BillingCadence$zodSchema.optional(),
|
|
56437
|
+
billing_cycle: BillingCycle$zodSchema.optional(),
|
|
56438
|
+
billing_period: BillingPeriod$zodSchema.optional(),
|
|
56439
56439
|
billing_period_count: int().optional(),
|
|
56440
56440
|
cancel_at: string2().optional(),
|
|
56441
56441
|
cancel_at_period_end: boolean2().optional(),
|
|
56442
56442
|
cancelled_at: string2().optional(),
|
|
56443
56443
|
collection_method: string2().optional(),
|
|
56444
56444
|
commitment_amount: string2().optional(),
|
|
56445
|
-
commitment_duration:
|
|
56445
|
+
commitment_duration: BillingPeriod$zodSchema.optional(),
|
|
56446
56446
|
coupon_associations: array(DtoCouponAssociationResponse$zodSchema).optional(),
|
|
56447
56447
|
created_at: string2().optional(),
|
|
56448
56448
|
created_by: string2().optional(),
|
|
@@ -56465,17 +56465,17 @@ var init_dtosubscriptionresponse = __esm(() => {
|
|
|
56465
56465
|
metadata: record(string2(), string2()).optional(),
|
|
56466
56466
|
overage_factor: string2().optional(),
|
|
56467
56467
|
parent_subscription_id: string2().optional(),
|
|
56468
|
-
pause_status:
|
|
56468
|
+
pause_status: PauseStatus$zodSchema.optional(),
|
|
56469
56469
|
pauses: array(SubscriptionSubscriptionPause$zodSchema).optional(),
|
|
56470
56470
|
payment_behavior: string2().optional(),
|
|
56471
|
-
payment_terms:
|
|
56471
|
+
payment_terms: PaymentTerms$zodSchema.optional(),
|
|
56472
56472
|
phases: array(DtoSubscriptionPhaseResponse$zodSchema).optional(),
|
|
56473
56473
|
plan: DtoPlanResponse$zodSchema.optional(),
|
|
56474
56474
|
plan_id: string2().optional(),
|
|
56475
|
-
proration_behavior:
|
|
56475
|
+
proration_behavior: ProrationBehavior$zodSchema.optional(),
|
|
56476
56476
|
start_date: string2().optional(),
|
|
56477
|
-
status:
|
|
56478
|
-
subscription_status:
|
|
56477
|
+
status: Status$zodSchema.optional(),
|
|
56478
|
+
subscription_status: SubscriptionStatus$zodSchema.optional(),
|
|
56479
56479
|
tenant_id: string2().optional(),
|
|
56480
56480
|
trial_end: string2().optional(),
|
|
56481
56481
|
trial_start: string2().optional(),
|
|
@@ -56485,11 +56485,11 @@ var init_dtosubscriptionresponse = __esm(() => {
|
|
|
56485
56485
|
});
|
|
56486
56486
|
});
|
|
56487
56487
|
|
|
56488
|
-
// src/models/
|
|
56489
|
-
var
|
|
56490
|
-
var
|
|
56488
|
+
// src/models/taxrateentitytype.ts
|
|
56489
|
+
var TaxRateEntityType$zodSchema;
|
|
56490
|
+
var init_taxrateentitytype = __esm(() => {
|
|
56491
56491
|
init_zod();
|
|
56492
|
-
|
|
56492
|
+
TaxRateEntityType$zodSchema = _enum([
|
|
56493
56493
|
"customer",
|
|
56494
56494
|
"subscription",
|
|
56495
56495
|
"invoice",
|
|
@@ -56502,20 +56502,20 @@ var DtoTaxAppliedResponse$zodSchema;
|
|
|
56502
56502
|
var init_dtotaxappliedresponse = __esm(() => {
|
|
56503
56503
|
init_zod();
|
|
56504
56504
|
init_dtotaxrateresponse();
|
|
56505
|
-
|
|
56506
|
-
|
|
56505
|
+
init_status();
|
|
56506
|
+
init_taxrateentitytype();
|
|
56507
56507
|
DtoTaxAppliedResponse$zodSchema = object({
|
|
56508
56508
|
applied_at: string2().optional(),
|
|
56509
56509
|
created_at: string2().optional(),
|
|
56510
56510
|
created_by: string2().optional(),
|
|
56511
56511
|
currency: string2().optional(),
|
|
56512
56512
|
entity_id: string2().optional(),
|
|
56513
|
-
entity_type:
|
|
56513
|
+
entity_type: TaxRateEntityType$zodSchema.optional(),
|
|
56514
56514
|
environment_id: string2().optional(),
|
|
56515
56515
|
id: string2().optional(),
|
|
56516
56516
|
idempotency_key: string2().optional(),
|
|
56517
56517
|
metadata: record(string2(), string2()).optional(),
|
|
56518
|
-
status:
|
|
56518
|
+
status: Status$zodSchema.optional(),
|
|
56519
56519
|
tax_amount: string2().optional(),
|
|
56520
56520
|
tax_association_id: string2().optional(),
|
|
56521
56521
|
tax_rate: DtoTaxRateResponse$zodSchema.optional(),
|
|
@@ -56536,10 +56536,10 @@ var init_dtoinvoiceresponse = __esm(() => {
|
|
|
56536
56536
|
init_dtoinvoicelineitemresponse();
|
|
56537
56537
|
init_dtosubscriptionresponse();
|
|
56538
56538
|
init_dtotaxappliedresponse();
|
|
56539
|
-
|
|
56540
|
-
|
|
56541
|
-
|
|
56542
|
-
|
|
56539
|
+
init_invoicestatus();
|
|
56540
|
+
init_invoicetype();
|
|
56541
|
+
init_paymentstatus();
|
|
56542
|
+
init_status();
|
|
56543
56543
|
DtoInvoiceResponse$zodSchema = object({
|
|
56544
56544
|
adjustment_amount: string2().optional(),
|
|
56545
56545
|
amount_due: string2().optional(),
|
|
@@ -56562,17 +56562,17 @@ var init_dtoinvoiceresponse = __esm(() => {
|
|
|
56562
56562
|
idempotency_key: string2().optional(),
|
|
56563
56563
|
invoice_number: string2().optional(),
|
|
56564
56564
|
invoice_pdf_url: string2().optional(),
|
|
56565
|
-
invoice_status:
|
|
56566
|
-
invoice_type:
|
|
56565
|
+
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
56566
|
+
invoice_type: InvoiceType$zodSchema.optional(),
|
|
56567
56567
|
line_items: array(DtoInvoiceLineItemResponse$zodSchema).optional(),
|
|
56568
56568
|
metadata: record(string2(), string2()).optional(),
|
|
56569
56569
|
overpaid_amount: string2().optional(),
|
|
56570
56570
|
paid_at: string2().optional(),
|
|
56571
|
-
payment_status:
|
|
56571
|
+
payment_status: PaymentStatus$zodSchema.optional(),
|
|
56572
56572
|
period_end: string2().optional(),
|
|
56573
56573
|
period_start: string2().optional(),
|
|
56574
56574
|
refunded_amount: string2().optional(),
|
|
56575
|
-
status:
|
|
56575
|
+
status: Status$zodSchema.optional(),
|
|
56576
56576
|
subscription: lazy(() => DtoSubscriptionResponse$zodSchema).optional(),
|
|
56577
56577
|
subscription_id: string2().optional(),
|
|
56578
56578
|
subtotal: string2().optional(),
|
|
@@ -56976,43 +56976,43 @@ Use when showing a customer what they will be charged (e.g. preview before check
|
|
|
56976
56976
|
};
|
|
56977
56977
|
});
|
|
56978
56978
|
|
|
56979
|
-
// src/models/
|
|
56980
|
-
var
|
|
56981
|
-
var
|
|
56979
|
+
// src/models/invoicefilter.ts
|
|
56980
|
+
var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
|
|
56981
|
+
var init_invoicefilter = __esm(() => {
|
|
56982
56982
|
init_zod();
|
|
56983
|
-
|
|
56984
|
-
|
|
56985
|
-
|
|
56986
|
-
|
|
56987
|
-
|
|
56988
|
-
|
|
56989
|
-
|
|
56983
|
+
init_filtercondition();
|
|
56984
|
+
init_invoicestatus();
|
|
56985
|
+
init_invoicetype();
|
|
56986
|
+
init_paymentstatus();
|
|
56987
|
+
init_sortcondition();
|
|
56988
|
+
init_status();
|
|
56989
|
+
InvoiceFilterOrder$zodSchema = _enum([
|
|
56990
56990
|
"asc",
|
|
56991
56991
|
"desc"
|
|
56992
56992
|
]);
|
|
56993
|
-
|
|
56993
|
+
InvoiceFilter$zodSchema = object({
|
|
56994
56994
|
amount_due_gt: number2().optional(),
|
|
56995
56995
|
amount_remaining_gt: number2().optional(),
|
|
56996
56996
|
customer_id: string2().optional(),
|
|
56997
56997
|
end_time: string2().optional(),
|
|
56998
56998
|
expand: string2().optional(),
|
|
56999
56999
|
external_customer_id: string2().optional(),
|
|
57000
|
-
filters: array(
|
|
57000
|
+
filters: array(FilterCondition$zodSchema).optional(),
|
|
57001
57001
|
invoice_ids: array(string2()).optional(),
|
|
57002
|
-
invoice_status: array(
|
|
57003
|
-
invoice_type:
|
|
57002
|
+
invoice_status: array(InvoiceStatus$zodSchema).optional(),
|
|
57003
|
+
invoice_type: InvoiceType$zodSchema.optional(),
|
|
57004
57004
|
limit: int().optional(),
|
|
57005
57005
|
offset: int().optional(),
|
|
57006
|
-
order:
|
|
57007
|
-
payment_status: array(
|
|
57006
|
+
order: InvoiceFilterOrder$zodSchema.optional(),
|
|
57007
|
+
payment_status: array(PaymentStatus$zodSchema).optional(),
|
|
57008
57008
|
period_end_gte: string2().optional(),
|
|
57009
57009
|
period_end_lte: string2().optional(),
|
|
57010
57010
|
period_start_gte: string2().optional(),
|
|
57011
57011
|
period_start_lte: string2().optional(),
|
|
57012
57012
|
skip_line_items: boolean2().optional(),
|
|
57013
|
-
sort: array(
|
|
57013
|
+
sort: array(SortCondition$zodSchema).optional(),
|
|
57014
57014
|
start_time: string2().optional(),
|
|
57015
|
-
status:
|
|
57015
|
+
status: Status$zodSchema.optional(),
|
|
57016
57016
|
subscription_id: string2().optional()
|
|
57017
57017
|
});
|
|
57018
57018
|
});
|
|
@@ -57022,7 +57022,7 @@ function invoicesQueryInvoice(client$, request, options) {
|
|
|
57022
57022
|
return new APIPromise($do25(client$, request, options));
|
|
57023
57023
|
}
|
|
57024
57024
|
async function $do25(client$, request, options) {
|
|
57025
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
57025
|
+
const parsed$ = safeParse4(request, (value$) => InvoiceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
57026
57026
|
if (!parsed$.ok) {
|
|
57027
57027
|
return [parsed$, { status: "invalid" }];
|
|
57028
57028
|
}
|
|
@@ -57086,7 +57086,7 @@ var init_invoicesQueryInvoice = __esm(() => {
|
|
|
57086
57086
|
init_schemas4();
|
|
57087
57087
|
init_security();
|
|
57088
57088
|
init_url();
|
|
57089
|
-
|
|
57089
|
+
init_invoicefilter();
|
|
57090
57090
|
init_async();
|
|
57091
57091
|
});
|
|
57092
57092
|
|
|
@@ -57094,10 +57094,10 @@ var init_invoicesQueryInvoice = __esm(() => {
|
|
|
57094
57094
|
var args24, tool$invoicesQueryInvoice;
|
|
57095
57095
|
var init_invoicesQueryInvoice2 = __esm(() => {
|
|
57096
57096
|
init_invoicesQueryInvoice();
|
|
57097
|
-
|
|
57097
|
+
init_invoicefilter();
|
|
57098
57098
|
init_tools();
|
|
57099
57099
|
args24 = {
|
|
57100
|
-
request:
|
|
57100
|
+
request: InvoiceFilter$zodSchema
|
|
57101
57101
|
};
|
|
57102
57102
|
tool$invoicesQueryInvoice = {
|
|
57103
57103
|
name: "query-invoice",
|
|
@@ -57532,10 +57532,10 @@ Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For pa
|
|
|
57532
57532
|
var DtoUpdatePaymentStatusRequest$zodSchema;
|
|
57533
57533
|
var init_dtoupdatepaymentstatusrequest = __esm(() => {
|
|
57534
57534
|
init_zod();
|
|
57535
|
-
|
|
57535
|
+
init_paymentstatus();
|
|
57536
57536
|
DtoUpdatePaymentStatusRequest$zodSchema = object({
|
|
57537
57537
|
amount: string2().optional(),
|
|
57538
|
-
payment_status:
|
|
57538
|
+
payment_status: PaymentStatus$zodSchema
|
|
57539
57539
|
});
|
|
57540
57540
|
});
|
|
57541
57541
|
|
|
@@ -57798,37 +57798,1973 @@ Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid
|
|
|
57798
57798
|
};
|
|
57799
57799
|
});
|
|
57800
57800
|
|
|
57801
|
-
// src/
|
|
57802
|
-
|
|
57803
|
-
|
|
57804
|
-
|
|
57805
|
-
|
|
57801
|
+
// src/models/dtocreateplanrequest.ts
|
|
57802
|
+
var DtoCreatePlanRequest$zodSchema;
|
|
57803
|
+
var init_dtocreateplanrequest = __esm(() => {
|
|
57804
|
+
init_zod();
|
|
57805
|
+
DtoCreatePlanRequest$zodSchema = object({
|
|
57806
|
+
description: string2().optional(),
|
|
57807
|
+
display_order: int().optional(),
|
|
57808
|
+
lookup_key: string2().optional(),
|
|
57809
|
+
metadata: record(string2(), string2()).optional(),
|
|
57810
|
+
name: string2()
|
|
57806
57811
|
});
|
|
57807
|
-
|
|
57808
|
-
|
|
57809
|
-
|
|
57810
|
-
|
|
57811
|
-
|
|
57812
|
-
|
|
57813
|
-
|
|
57814
|
-
|
|
57815
|
-
|
|
57812
|
+
});
|
|
57813
|
+
|
|
57814
|
+
// src/funcs/plansCreatePlan.ts
|
|
57815
|
+
function plansCreatePlan(client$, request, options) {
|
|
57816
|
+
return new APIPromise($do31(client$, request, options));
|
|
57817
|
+
}
|
|
57818
|
+
async function $do31(client$, request, options) {
|
|
57819
|
+
const parsed$ = safeParse4(request, (value$) => DtoCreatePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57820
|
+
if (!parsed$.ok) {
|
|
57821
|
+
return [parsed$, { status: "invalid" }];
|
|
57822
|
+
}
|
|
57823
|
+
const payload$ = parsed$.value;
|
|
57824
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
57825
|
+
const path$ = pathToFunc("/plans")();
|
|
57826
|
+
const headers$ = new Headers(compactMap({
|
|
57827
|
+
"Content-Type": "application/json",
|
|
57828
|
+
Accept: "application/json"
|
|
57816
57829
|
}));
|
|
57817
|
-
const
|
|
57818
|
-
const
|
|
57819
|
-
const
|
|
57820
|
-
|
|
57821
|
-
|
|
57822
|
-
|
|
57823
|
-
|
|
57824
|
-
|
|
57825
|
-
|
|
57826
|
-
|
|
57827
|
-
|
|
57828
|
-
|
|
57829
|
-
|
|
57830
|
-
|
|
57831
|
-
|
|
57830
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57831
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57832
|
+
const context = {
|
|
57833
|
+
options: client$._options,
|
|
57834
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57835
|
+
operationID: "createPlan",
|
|
57836
|
+
oAuth2Scopes: null,
|
|
57837
|
+
resolvedSecurity: requestSecurity,
|
|
57838
|
+
securitySource: client$._options.security,
|
|
57839
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57840
|
+
retryCodes: options?.retryCodes || [
|
|
57841
|
+
"429",
|
|
57842
|
+
"500",
|
|
57843
|
+
"502",
|
|
57844
|
+
"503",
|
|
57845
|
+
"504"
|
|
57846
|
+
]
|
|
57847
|
+
};
|
|
57848
|
+
const requestRes = client$._createRequest(context, {
|
|
57849
|
+
security: requestSecurity,
|
|
57850
|
+
method: "POST",
|
|
57851
|
+
baseURL: options?.serverURL,
|
|
57852
|
+
path: path$,
|
|
57853
|
+
headers: headers$,
|
|
57854
|
+
body: body$,
|
|
57855
|
+
userAgent: client$._options.userAgent,
|
|
57856
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57857
|
+
}, options);
|
|
57858
|
+
if (!requestRes.ok) {
|
|
57859
|
+
return [requestRes, { status: "invalid" }];
|
|
57860
|
+
}
|
|
57861
|
+
const req$ = requestRes.value;
|
|
57862
|
+
const doResult = await client$._do(req$, {
|
|
57863
|
+
context,
|
|
57864
|
+
errorCodes: [],
|
|
57865
|
+
retryConfig: context.retryConfig,
|
|
57866
|
+
retryCodes: context.retryCodes
|
|
57867
|
+
});
|
|
57868
|
+
if (!doResult.ok) {
|
|
57869
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57870
|
+
}
|
|
57871
|
+
return [doResult, {
|
|
57872
|
+
status: "complete",
|
|
57873
|
+
request: req$,
|
|
57874
|
+
response: doResult.value
|
|
57875
|
+
}];
|
|
57876
|
+
}
|
|
57877
|
+
var init_plansCreatePlan = __esm(() => {
|
|
57878
|
+
init_encodings();
|
|
57879
|
+
init_primitives();
|
|
57880
|
+
init_schemas4();
|
|
57881
|
+
init_security();
|
|
57882
|
+
init_url();
|
|
57883
|
+
init_dtocreateplanrequest();
|
|
57884
|
+
init_async();
|
|
57885
|
+
});
|
|
57886
|
+
|
|
57887
|
+
// src/mcp-server/tools/plansCreatePlan.ts
|
|
57888
|
+
var args30, tool$plansCreatePlan;
|
|
57889
|
+
var init_plansCreatePlan2 = __esm(() => {
|
|
57890
|
+
init_plansCreatePlan();
|
|
57891
|
+
init_dtocreateplanrequest();
|
|
57892
|
+
init_tools();
|
|
57893
|
+
args30 = {
|
|
57894
|
+
request: DtoCreatePlanRequest$zodSchema
|
|
57895
|
+
};
|
|
57896
|
+
tool$plansCreatePlan = {
|
|
57897
|
+
name: "create-plan",
|
|
57898
|
+
description: `Create plan
|
|
57899
|
+
|
|
57900
|
+
Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices and entitlements; customers subscribe to plans.`,
|
|
57901
|
+
annotations: {
|
|
57902
|
+
title: "",
|
|
57903
|
+
destructiveHint: false,
|
|
57904
|
+
idempotentHint: false,
|
|
57905
|
+
openWorldHint: false,
|
|
57906
|
+
readOnlyHint: false
|
|
57907
|
+
},
|
|
57908
|
+
args: args30,
|
|
57909
|
+
tool: async (client, args31, ctx) => {
|
|
57910
|
+
const [result] = await plansCreatePlan(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57911
|
+
if (!result.ok) {
|
|
57912
|
+
return {
|
|
57913
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57914
|
+
isError: true
|
|
57915
|
+
};
|
|
57916
|
+
}
|
|
57917
|
+
return formatResult(result.value);
|
|
57918
|
+
}
|
|
57919
|
+
};
|
|
57920
|
+
});
|
|
57921
|
+
|
|
57922
|
+
// src/models/deleteplanop.ts
|
|
57923
|
+
var DeletePlanRequest$zodSchema, DeletePlanResponse$zodSchema;
|
|
57924
|
+
var init_deleteplanop = __esm(() => {
|
|
57925
|
+
init_zod();
|
|
57926
|
+
init_dtosuccessresponse();
|
|
57927
|
+
init_errorserrorresponse();
|
|
57928
|
+
DeletePlanRequest$zodSchema = object({
|
|
57929
|
+
id: string2().describe("Plan ID")
|
|
57930
|
+
});
|
|
57931
|
+
DeletePlanResponse$zodSchema = union([
|
|
57932
|
+
DtoSuccessResponse$zodSchema,
|
|
57933
|
+
ErrorsErrorResponse$zodSchema
|
|
57934
|
+
]);
|
|
57935
|
+
});
|
|
57936
|
+
|
|
57937
|
+
// src/funcs/plansDeletePlan.ts
|
|
57938
|
+
function plansDeletePlan(client$, request, options) {
|
|
57939
|
+
return new APIPromise($do32(client$, request, options));
|
|
57940
|
+
}
|
|
57941
|
+
async function $do32(client$, request, options) {
|
|
57942
|
+
const parsed$ = safeParse4(request, (value$) => DeletePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57943
|
+
if (!parsed$.ok) {
|
|
57944
|
+
return [parsed$, { status: "invalid" }];
|
|
57945
|
+
}
|
|
57946
|
+
const payload$ = parsed$.value;
|
|
57947
|
+
const body$ = null;
|
|
57948
|
+
const pathParams$ = {
|
|
57949
|
+
id: encodeSimple("id", payload$.id, {
|
|
57950
|
+
explode: false,
|
|
57951
|
+
charEncoding: "percent"
|
|
57952
|
+
})
|
|
57953
|
+
};
|
|
57954
|
+
const path$ = pathToFunc("/plans/{id}")(pathParams$);
|
|
57955
|
+
const headers$ = new Headers(compactMap({
|
|
57956
|
+
Accept: "application/json"
|
|
57957
|
+
}));
|
|
57958
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57959
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57960
|
+
const context = {
|
|
57961
|
+
options: client$._options,
|
|
57962
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57963
|
+
operationID: "deletePlan",
|
|
57964
|
+
oAuth2Scopes: null,
|
|
57965
|
+
resolvedSecurity: requestSecurity,
|
|
57966
|
+
securitySource: client$._options.security,
|
|
57967
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57968
|
+
retryCodes: options?.retryCodes || [
|
|
57969
|
+
"429",
|
|
57970
|
+
"500",
|
|
57971
|
+
"502",
|
|
57972
|
+
"503",
|
|
57973
|
+
"504"
|
|
57974
|
+
]
|
|
57975
|
+
};
|
|
57976
|
+
const requestRes = client$._createRequest(context, {
|
|
57977
|
+
security: requestSecurity,
|
|
57978
|
+
method: "DELETE",
|
|
57979
|
+
baseURL: options?.serverURL,
|
|
57980
|
+
path: path$,
|
|
57981
|
+
headers: headers$,
|
|
57982
|
+
body: body$,
|
|
57983
|
+
userAgent: client$._options.userAgent,
|
|
57984
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57985
|
+
}, options);
|
|
57986
|
+
if (!requestRes.ok) {
|
|
57987
|
+
return [requestRes, { status: "invalid" }];
|
|
57988
|
+
}
|
|
57989
|
+
const req$ = requestRes.value;
|
|
57990
|
+
const doResult = await client$._do(req$, {
|
|
57991
|
+
context,
|
|
57992
|
+
errorCodes: [],
|
|
57993
|
+
retryConfig: context.retryConfig,
|
|
57994
|
+
retryCodes: context.retryCodes
|
|
57995
|
+
});
|
|
57996
|
+
if (!doResult.ok) {
|
|
57997
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57998
|
+
}
|
|
57999
|
+
return [doResult, {
|
|
58000
|
+
status: "complete",
|
|
58001
|
+
request: req$,
|
|
58002
|
+
response: doResult.value
|
|
58003
|
+
}];
|
|
58004
|
+
}
|
|
58005
|
+
var init_plansDeletePlan = __esm(() => {
|
|
58006
|
+
init_encodings();
|
|
58007
|
+
init_primitives();
|
|
58008
|
+
init_schemas4();
|
|
58009
|
+
init_security();
|
|
58010
|
+
init_url();
|
|
58011
|
+
init_deleteplanop();
|
|
58012
|
+
init_async();
|
|
58013
|
+
});
|
|
58014
|
+
|
|
58015
|
+
// src/mcp-server/tools/plansDeletePlan.ts
|
|
58016
|
+
var args31, tool$plansDeletePlan;
|
|
58017
|
+
var init_plansDeletePlan2 = __esm(() => {
|
|
58018
|
+
init_plansDeletePlan();
|
|
58019
|
+
init_deleteplanop();
|
|
58020
|
+
init_tools();
|
|
58021
|
+
args31 = {
|
|
58022
|
+
request: DeletePlanRequest$zodSchema
|
|
58023
|
+
};
|
|
58024
|
+
tool$plansDeletePlan = {
|
|
58025
|
+
name: "delete-plan",
|
|
58026
|
+
description: `Delete plan
|
|
58027
|
+
|
|
58028
|
+
Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message.`,
|
|
58029
|
+
annotations: {
|
|
58030
|
+
title: "",
|
|
58031
|
+
destructiveHint: false,
|
|
58032
|
+
idempotentHint: false,
|
|
58033
|
+
openWorldHint: false,
|
|
58034
|
+
readOnlyHint: false
|
|
58035
|
+
},
|
|
58036
|
+
args: args31,
|
|
58037
|
+
tool: async (client, args32, ctx) => {
|
|
58038
|
+
const [result] = await plansDeletePlan(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58039
|
+
if (!result.ok) {
|
|
58040
|
+
return {
|
|
58041
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58042
|
+
isError: true
|
|
58043
|
+
};
|
|
58044
|
+
}
|
|
58045
|
+
return formatResult(result.value);
|
|
58046
|
+
}
|
|
58047
|
+
};
|
|
58048
|
+
});
|
|
58049
|
+
|
|
58050
|
+
// src/models/getplanop.ts
|
|
58051
|
+
var GetPlanRequest$zodSchema, GetPlanResponse$zodSchema;
|
|
58052
|
+
var init_getplanop = __esm(() => {
|
|
58053
|
+
init_zod();
|
|
58054
|
+
init_dtoplanresponse();
|
|
58055
|
+
init_errorserrorresponse();
|
|
58056
|
+
GetPlanRequest$zodSchema = object({
|
|
58057
|
+
id: string2().describe("Plan ID")
|
|
58058
|
+
});
|
|
58059
|
+
GetPlanResponse$zodSchema = union([
|
|
58060
|
+
DtoPlanResponse$zodSchema,
|
|
58061
|
+
ErrorsErrorResponse$zodSchema
|
|
58062
|
+
]);
|
|
58063
|
+
});
|
|
58064
|
+
|
|
58065
|
+
// src/funcs/plansGetPlan.ts
|
|
58066
|
+
function plansGetPlan(client$, request, options) {
|
|
58067
|
+
return new APIPromise($do33(client$, request, options));
|
|
58068
|
+
}
|
|
58069
|
+
async function $do33(client$, request, options) {
|
|
58070
|
+
const parsed$ = safeParse4(request, (value$) => GetPlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58071
|
+
if (!parsed$.ok) {
|
|
58072
|
+
return [parsed$, { status: "invalid" }];
|
|
58073
|
+
}
|
|
58074
|
+
const payload$ = parsed$.value;
|
|
58075
|
+
const body$ = null;
|
|
58076
|
+
const pathParams$ = {
|
|
58077
|
+
id: encodeSimple("id", payload$.id, {
|
|
58078
|
+
explode: false,
|
|
58079
|
+
charEncoding: "percent"
|
|
58080
|
+
})
|
|
58081
|
+
};
|
|
58082
|
+
const path$ = pathToFunc("/plans/{id}")(pathParams$);
|
|
58083
|
+
const headers$ = new Headers(compactMap({
|
|
58084
|
+
Accept: "application/json"
|
|
58085
|
+
}));
|
|
58086
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58087
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58088
|
+
const context = {
|
|
58089
|
+
options: client$._options,
|
|
58090
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58091
|
+
operationID: "getPlan",
|
|
58092
|
+
oAuth2Scopes: null,
|
|
58093
|
+
resolvedSecurity: requestSecurity,
|
|
58094
|
+
securitySource: client$._options.security,
|
|
58095
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58096
|
+
retryCodes: options?.retryCodes || [
|
|
58097
|
+
"429",
|
|
58098
|
+
"500",
|
|
58099
|
+
"502",
|
|
58100
|
+
"503",
|
|
58101
|
+
"504"
|
|
58102
|
+
]
|
|
58103
|
+
};
|
|
58104
|
+
const requestRes = client$._createRequest(context, {
|
|
58105
|
+
security: requestSecurity,
|
|
58106
|
+
method: "GET",
|
|
58107
|
+
baseURL: options?.serverURL,
|
|
58108
|
+
path: path$,
|
|
58109
|
+
headers: headers$,
|
|
58110
|
+
body: body$,
|
|
58111
|
+
userAgent: client$._options.userAgent,
|
|
58112
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58113
|
+
}, options);
|
|
58114
|
+
if (!requestRes.ok) {
|
|
58115
|
+
return [requestRes, { status: "invalid" }];
|
|
58116
|
+
}
|
|
58117
|
+
const req$ = requestRes.value;
|
|
58118
|
+
const doResult = await client$._do(req$, {
|
|
58119
|
+
context,
|
|
58120
|
+
errorCodes: [],
|
|
58121
|
+
retryConfig: context.retryConfig,
|
|
58122
|
+
retryCodes: context.retryCodes
|
|
58123
|
+
});
|
|
58124
|
+
if (!doResult.ok) {
|
|
58125
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58126
|
+
}
|
|
58127
|
+
return [doResult, {
|
|
58128
|
+
status: "complete",
|
|
58129
|
+
request: req$,
|
|
58130
|
+
response: doResult.value
|
|
58131
|
+
}];
|
|
58132
|
+
}
|
|
58133
|
+
var init_plansGetPlan = __esm(() => {
|
|
58134
|
+
init_encodings();
|
|
58135
|
+
init_primitives();
|
|
58136
|
+
init_schemas4();
|
|
58137
|
+
init_security();
|
|
58138
|
+
init_url();
|
|
58139
|
+
init_getplanop();
|
|
58140
|
+
init_async();
|
|
58141
|
+
});
|
|
58142
|
+
|
|
58143
|
+
// src/mcp-server/tools/plansGetPlan.ts
|
|
58144
|
+
var args32, tool$plansGetPlan;
|
|
58145
|
+
var init_plansGetPlan2 = __esm(() => {
|
|
58146
|
+
init_plansGetPlan();
|
|
58147
|
+
init_getplanop();
|
|
58148
|
+
init_tools();
|
|
58149
|
+
args32 = {
|
|
58150
|
+
request: GetPlanRequest$zodSchema
|
|
58151
|
+
};
|
|
58152
|
+
tool$plansGetPlan = {
|
|
58153
|
+
name: "get-plan",
|
|
58154
|
+
description: `Get plan
|
|
58155
|
+
|
|
58156
|
+
Use when you need to load a single plan (e.g. for display or to create a subscription).`,
|
|
58157
|
+
annotations: {
|
|
58158
|
+
title: "",
|
|
58159
|
+
destructiveHint: false,
|
|
58160
|
+
idempotentHint: false,
|
|
58161
|
+
openWorldHint: false,
|
|
58162
|
+
readOnlyHint: false
|
|
58163
|
+
},
|
|
58164
|
+
args: args32,
|
|
58165
|
+
tool: async (client, args33, ctx) => {
|
|
58166
|
+
const [result] = await plansGetPlan(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58167
|
+
if (!result.ok) {
|
|
58168
|
+
return {
|
|
58169
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58170
|
+
isError: true
|
|
58171
|
+
};
|
|
58172
|
+
}
|
|
58173
|
+
return formatResult(result.value);
|
|
58174
|
+
}
|
|
58175
|
+
};
|
|
58176
|
+
});
|
|
58177
|
+
|
|
58178
|
+
// src/models/dtocloneplanrequest.ts
|
|
58179
|
+
var DtoClonePlanRequest$zodSchema;
|
|
58180
|
+
var init_dtocloneplanrequest = __esm(() => {
|
|
58181
|
+
init_zod();
|
|
58182
|
+
DtoClonePlanRequest$zodSchema = object({
|
|
58183
|
+
description: string2().optional(),
|
|
58184
|
+
display_order: int().optional(),
|
|
58185
|
+
lookup_key: string2().optional(),
|
|
58186
|
+
metadata: record(string2(), string2()).optional(),
|
|
58187
|
+
name: string2().optional()
|
|
58188
|
+
});
|
|
58189
|
+
});
|
|
58190
|
+
|
|
58191
|
+
// src/models/postplansidcloneop.ts
|
|
58192
|
+
var PostPlansIdCloneRequest$zodSchema, PostPlansIdCloneResponse$zodSchema;
|
|
58193
|
+
var init_postplansidcloneop = __esm(() => {
|
|
58194
|
+
init_zod();
|
|
58195
|
+
init_dtocloneplanrequest();
|
|
58196
|
+
init_dtoplanresponse();
|
|
58197
|
+
init_errorserrorresponse();
|
|
58198
|
+
PostPlansIdCloneRequest$zodSchema = object({
|
|
58199
|
+
body: DtoClonePlanRequest$zodSchema,
|
|
58200
|
+
id: string2().describe("Source Plan ID")
|
|
58201
|
+
});
|
|
58202
|
+
PostPlansIdCloneResponse$zodSchema = union([
|
|
58203
|
+
DtoPlanResponse$zodSchema,
|
|
58204
|
+
ErrorsErrorResponse$zodSchema
|
|
58205
|
+
]);
|
|
58206
|
+
});
|
|
58207
|
+
|
|
58208
|
+
// src/funcs/plansPostPlansIdClone.ts
|
|
58209
|
+
function plansPostPlansIdClone(client$, request, options) {
|
|
58210
|
+
return new APIPromise($do34(client$, request, options));
|
|
58211
|
+
}
|
|
58212
|
+
async function $do34(client$, request, options) {
|
|
58213
|
+
const parsed$ = safeParse4(request, (value$) => PostPlansIdCloneRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58214
|
+
if (!parsed$.ok) {
|
|
58215
|
+
return [parsed$, { status: "invalid" }];
|
|
58216
|
+
}
|
|
58217
|
+
const payload$ = parsed$.value;
|
|
58218
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
58219
|
+
const pathParams$ = {
|
|
58220
|
+
id: encodeSimple("id", payload$.id, {
|
|
58221
|
+
explode: false,
|
|
58222
|
+
charEncoding: "percent"
|
|
58223
|
+
})
|
|
58224
|
+
};
|
|
58225
|
+
const path$ = pathToFunc("/plans/{id}/clone")(pathParams$);
|
|
58226
|
+
const headers$ = new Headers(compactMap({
|
|
58227
|
+
"Content-Type": "application/json",
|
|
58228
|
+
Accept: "application/json"
|
|
58229
|
+
}));
|
|
58230
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58231
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58232
|
+
const context = {
|
|
58233
|
+
options: client$._options,
|
|
58234
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58235
|
+
operationID: "post_/plans/{id}/clone",
|
|
58236
|
+
oAuth2Scopes: null,
|
|
58237
|
+
resolvedSecurity: requestSecurity,
|
|
58238
|
+
securitySource: client$._options.security,
|
|
58239
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58240
|
+
retryCodes: options?.retryCodes || [
|
|
58241
|
+
"429",
|
|
58242
|
+
"500",
|
|
58243
|
+
"502",
|
|
58244
|
+
"503",
|
|
58245
|
+
"504"
|
|
58246
|
+
]
|
|
58247
|
+
};
|
|
58248
|
+
const requestRes = client$._createRequest(context, {
|
|
58249
|
+
security: requestSecurity,
|
|
58250
|
+
method: "POST",
|
|
58251
|
+
baseURL: options?.serverURL,
|
|
58252
|
+
path: path$,
|
|
58253
|
+
headers: headers$,
|
|
58254
|
+
body: body$,
|
|
58255
|
+
userAgent: client$._options.userAgent,
|
|
58256
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58257
|
+
}, options);
|
|
58258
|
+
if (!requestRes.ok) {
|
|
58259
|
+
return [requestRes, { status: "invalid" }];
|
|
58260
|
+
}
|
|
58261
|
+
const req$ = requestRes.value;
|
|
58262
|
+
const doResult = await client$._do(req$, {
|
|
58263
|
+
context,
|
|
58264
|
+
errorCodes: [],
|
|
58265
|
+
retryConfig: context.retryConfig,
|
|
58266
|
+
retryCodes: context.retryCodes
|
|
58267
|
+
});
|
|
58268
|
+
if (!doResult.ok) {
|
|
58269
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58270
|
+
}
|
|
58271
|
+
return [doResult, {
|
|
58272
|
+
status: "complete",
|
|
58273
|
+
request: req$,
|
|
58274
|
+
response: doResult.value
|
|
58275
|
+
}];
|
|
58276
|
+
}
|
|
58277
|
+
var init_plansPostPlansIdClone = __esm(() => {
|
|
58278
|
+
init_encodings();
|
|
58279
|
+
init_primitives();
|
|
58280
|
+
init_schemas4();
|
|
58281
|
+
init_security();
|
|
58282
|
+
init_url();
|
|
58283
|
+
init_postplansidcloneop();
|
|
58284
|
+
init_async();
|
|
58285
|
+
});
|
|
58286
|
+
|
|
58287
|
+
// src/mcp-server/tools/plansPostPlansIdClone.ts
|
|
58288
|
+
var args33, tool$plansPostPlansIdClone;
|
|
58289
|
+
var init_plansPostPlansIdClone2 = __esm(() => {
|
|
58290
|
+
init_plansPostPlansIdClone();
|
|
58291
|
+
init_postplansidcloneop();
|
|
58292
|
+
init_tools();
|
|
58293
|
+
args33 = {
|
|
58294
|
+
request: PostPlansIdCloneRequest$zodSchema
|
|
58295
|
+
};
|
|
58296
|
+
tool$plansPostPlansIdClone = {
|
|
58297
|
+
name: "plans-post-plans-id-clone",
|
|
58298
|
+
description: `Clone a plan
|
|
58299
|
+
|
|
58300
|
+
Clone an existing plan, copying its active prices, published entitlements, and published credit grants`,
|
|
58301
|
+
annotations: {
|
|
58302
|
+
title: "",
|
|
58303
|
+
destructiveHint: false,
|
|
58304
|
+
idempotentHint: false,
|
|
58305
|
+
openWorldHint: false,
|
|
58306
|
+
readOnlyHint: false
|
|
58307
|
+
},
|
|
58308
|
+
args: args33,
|
|
58309
|
+
tool: async (client, args34, ctx) => {
|
|
58310
|
+
const [result] = await plansPostPlansIdClone(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58311
|
+
if (!result.ok) {
|
|
58312
|
+
return {
|
|
58313
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58314
|
+
isError: true
|
|
58315
|
+
};
|
|
58316
|
+
}
|
|
58317
|
+
return formatResult(result.value);
|
|
58318
|
+
}
|
|
58319
|
+
};
|
|
58320
|
+
});
|
|
58321
|
+
|
|
58322
|
+
// src/models/planfilter.ts
|
|
58323
|
+
var PlanFilterOrder$zodSchema, PlanFilter$zodSchema;
|
|
58324
|
+
var init_planfilter = __esm(() => {
|
|
58325
|
+
init_zod();
|
|
58326
|
+
init_filtercondition();
|
|
58327
|
+
init_sortcondition();
|
|
58328
|
+
init_status();
|
|
58329
|
+
PlanFilterOrder$zodSchema = _enum([
|
|
58330
|
+
"asc",
|
|
58331
|
+
"desc"
|
|
58332
|
+
]);
|
|
58333
|
+
PlanFilter$zodSchema = object({
|
|
58334
|
+
end_time: string2().optional(),
|
|
58335
|
+
expand: string2().optional(),
|
|
58336
|
+
filters: array(FilterCondition$zodSchema).optional(),
|
|
58337
|
+
limit: int().optional(),
|
|
58338
|
+
lookup_key: string2().optional(),
|
|
58339
|
+
offset: int().optional(),
|
|
58340
|
+
order: PlanFilterOrder$zodSchema.optional(),
|
|
58341
|
+
plan_ids: array(string2()).optional(),
|
|
58342
|
+
sort: array(SortCondition$zodSchema).optional(),
|
|
58343
|
+
start_time: string2().optional(),
|
|
58344
|
+
status: Status$zodSchema.optional()
|
|
58345
|
+
});
|
|
58346
|
+
});
|
|
58347
|
+
|
|
58348
|
+
// src/funcs/plansQueryPlan.ts
|
|
58349
|
+
function plansQueryPlan(client$, request, options) {
|
|
58350
|
+
return new APIPromise($do35(client$, request, options));
|
|
58351
|
+
}
|
|
58352
|
+
async function $do35(client$, request, options) {
|
|
58353
|
+
const parsed$ = safeParse4(request, (value$) => PlanFilter$zodSchema.parse(value$), "Input validation failed");
|
|
58354
|
+
if (!parsed$.ok) {
|
|
58355
|
+
return [parsed$, { status: "invalid" }];
|
|
58356
|
+
}
|
|
58357
|
+
const payload$ = parsed$.value;
|
|
58358
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
58359
|
+
const path$ = pathToFunc("/plans/search")();
|
|
58360
|
+
const headers$ = new Headers(compactMap({
|
|
58361
|
+
"Content-Type": "application/json",
|
|
58362
|
+
Accept: "application/json"
|
|
58363
|
+
}));
|
|
58364
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58365
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58366
|
+
const context = {
|
|
58367
|
+
options: client$._options,
|
|
58368
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58369
|
+
operationID: "queryPlan",
|
|
58370
|
+
oAuth2Scopes: null,
|
|
58371
|
+
resolvedSecurity: requestSecurity,
|
|
58372
|
+
securitySource: client$._options.security,
|
|
58373
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58374
|
+
retryCodes: options?.retryCodes || [
|
|
58375
|
+
"429",
|
|
58376
|
+
"500",
|
|
58377
|
+
"502",
|
|
58378
|
+
"503",
|
|
58379
|
+
"504"
|
|
58380
|
+
]
|
|
58381
|
+
};
|
|
58382
|
+
const requestRes = client$._createRequest(context, {
|
|
58383
|
+
security: requestSecurity,
|
|
58384
|
+
method: "POST",
|
|
58385
|
+
baseURL: options?.serverURL,
|
|
58386
|
+
path: path$,
|
|
58387
|
+
headers: headers$,
|
|
58388
|
+
body: body$,
|
|
58389
|
+
userAgent: client$._options.userAgent,
|
|
58390
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58391
|
+
}, options);
|
|
58392
|
+
if (!requestRes.ok) {
|
|
58393
|
+
return [requestRes, { status: "invalid" }];
|
|
58394
|
+
}
|
|
58395
|
+
const req$ = requestRes.value;
|
|
58396
|
+
const doResult = await client$._do(req$, {
|
|
58397
|
+
context,
|
|
58398
|
+
errorCodes: [],
|
|
58399
|
+
retryConfig: context.retryConfig,
|
|
58400
|
+
retryCodes: context.retryCodes
|
|
58401
|
+
});
|
|
58402
|
+
if (!doResult.ok) {
|
|
58403
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58404
|
+
}
|
|
58405
|
+
return [doResult, {
|
|
58406
|
+
status: "complete",
|
|
58407
|
+
request: req$,
|
|
58408
|
+
response: doResult.value
|
|
58409
|
+
}];
|
|
58410
|
+
}
|
|
58411
|
+
var init_plansQueryPlan = __esm(() => {
|
|
58412
|
+
init_encodings();
|
|
58413
|
+
init_primitives();
|
|
58414
|
+
init_schemas4();
|
|
58415
|
+
init_security();
|
|
58416
|
+
init_url();
|
|
58417
|
+
init_planfilter();
|
|
58418
|
+
init_async();
|
|
58419
|
+
});
|
|
58420
|
+
|
|
58421
|
+
// src/mcp-server/tools/plansQueryPlan.ts
|
|
58422
|
+
var args34, tool$plansQueryPlan;
|
|
58423
|
+
var init_plansQueryPlan2 = __esm(() => {
|
|
58424
|
+
init_plansQueryPlan();
|
|
58425
|
+
init_planfilter();
|
|
58426
|
+
init_tools();
|
|
58427
|
+
args34 = {
|
|
58428
|
+
request: PlanFilter$zodSchema
|
|
58429
|
+
};
|
|
58430
|
+
tool$plansQueryPlan = {
|
|
58431
|
+
name: "query-plan",
|
|
58432
|
+
description: `Query plans
|
|
58433
|
+
|
|
58434
|
+
Use when listing or searching plans (e.g. plan picker or admin catalog). Returns a paginated list; supports filtering and sorting.`,
|
|
58435
|
+
annotations: {
|
|
58436
|
+
title: "",
|
|
58437
|
+
destructiveHint: false,
|
|
58438
|
+
idempotentHint: false,
|
|
58439
|
+
openWorldHint: false,
|
|
58440
|
+
readOnlyHint: false
|
|
58441
|
+
},
|
|
58442
|
+
args: args34,
|
|
58443
|
+
tool: async (client, args35, ctx) => {
|
|
58444
|
+
const [result] = await plansQueryPlan(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58445
|
+
if (!result.ok) {
|
|
58446
|
+
return {
|
|
58447
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58448
|
+
isError: true
|
|
58449
|
+
};
|
|
58450
|
+
}
|
|
58451
|
+
return formatResult(result.value);
|
|
58452
|
+
}
|
|
58453
|
+
};
|
|
58454
|
+
});
|
|
58455
|
+
|
|
58456
|
+
// src/models/modelstemporalworkflowresult.ts
|
|
58457
|
+
var ModelsTemporalWorkflowResult$zodSchema;
|
|
58458
|
+
var init_modelstemporalworkflowresult = __esm(() => {
|
|
58459
|
+
init_zod();
|
|
58460
|
+
ModelsTemporalWorkflowResult$zodSchema = object({
|
|
58461
|
+
message: string2().optional(),
|
|
58462
|
+
run_id: string2().optional(),
|
|
58463
|
+
workflow_id: string2().optional()
|
|
58464
|
+
});
|
|
58465
|
+
});
|
|
58466
|
+
|
|
58467
|
+
// src/models/syncplanpricesop.ts
|
|
58468
|
+
var SyncPlanPricesRequest$zodSchema, SyncPlanPricesResponse$zodSchema;
|
|
58469
|
+
var init_syncplanpricesop = __esm(() => {
|
|
58470
|
+
init_zod();
|
|
58471
|
+
init_errorserrorresponse();
|
|
58472
|
+
init_modelstemporalworkflowresult();
|
|
58473
|
+
SyncPlanPricesRequest$zodSchema = object({
|
|
58474
|
+
id: string2().describe("Plan ID")
|
|
58475
|
+
});
|
|
58476
|
+
SyncPlanPricesResponse$zodSchema = union([
|
|
58477
|
+
ModelsTemporalWorkflowResult$zodSchema,
|
|
58478
|
+
ErrorsErrorResponse$zodSchema
|
|
58479
|
+
]);
|
|
58480
|
+
});
|
|
58481
|
+
|
|
58482
|
+
// src/funcs/plansSyncPlanPrices.ts
|
|
58483
|
+
function plansSyncPlanPrices(client$, request, options) {
|
|
58484
|
+
return new APIPromise($do36(client$, request, options));
|
|
58485
|
+
}
|
|
58486
|
+
async function $do36(client$, request, options) {
|
|
58487
|
+
const parsed$ = safeParse4(request, (value$) => SyncPlanPricesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58488
|
+
if (!parsed$.ok) {
|
|
58489
|
+
return [parsed$, { status: "invalid" }];
|
|
58490
|
+
}
|
|
58491
|
+
const payload$ = parsed$.value;
|
|
58492
|
+
const body$ = null;
|
|
58493
|
+
const pathParams$ = {
|
|
58494
|
+
id: encodeSimple("id", payload$.id, {
|
|
58495
|
+
explode: false,
|
|
58496
|
+
charEncoding: "percent"
|
|
58497
|
+
})
|
|
58498
|
+
};
|
|
58499
|
+
const path$ = pathToFunc("/plans/{id}/sync/subscriptions")(pathParams$);
|
|
58500
|
+
const headers$ = new Headers(compactMap({
|
|
58501
|
+
Accept: "application/json"
|
|
58502
|
+
}));
|
|
58503
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58504
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58505
|
+
const context = {
|
|
58506
|
+
options: client$._options,
|
|
58507
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58508
|
+
operationID: "syncPlanPrices",
|
|
58509
|
+
oAuth2Scopes: null,
|
|
58510
|
+
resolvedSecurity: requestSecurity,
|
|
58511
|
+
securitySource: client$._options.security,
|
|
58512
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58513
|
+
retryCodes: options?.retryCodes || [
|
|
58514
|
+
"429",
|
|
58515
|
+
"500",
|
|
58516
|
+
"502",
|
|
58517
|
+
"503",
|
|
58518
|
+
"504"
|
|
58519
|
+
]
|
|
58520
|
+
};
|
|
58521
|
+
const requestRes = client$._createRequest(context, {
|
|
58522
|
+
security: requestSecurity,
|
|
58523
|
+
method: "POST",
|
|
58524
|
+
baseURL: options?.serverURL,
|
|
58525
|
+
path: path$,
|
|
58526
|
+
headers: headers$,
|
|
58527
|
+
body: body$,
|
|
58528
|
+
userAgent: client$._options.userAgent,
|
|
58529
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58530
|
+
}, options);
|
|
58531
|
+
if (!requestRes.ok) {
|
|
58532
|
+
return [requestRes, { status: "invalid" }];
|
|
58533
|
+
}
|
|
58534
|
+
const req$ = requestRes.value;
|
|
58535
|
+
const doResult = await client$._do(req$, {
|
|
58536
|
+
context,
|
|
58537
|
+
errorCodes: [],
|
|
58538
|
+
retryConfig: context.retryConfig,
|
|
58539
|
+
retryCodes: context.retryCodes
|
|
58540
|
+
});
|
|
58541
|
+
if (!doResult.ok) {
|
|
58542
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58543
|
+
}
|
|
58544
|
+
return [doResult, {
|
|
58545
|
+
status: "complete",
|
|
58546
|
+
request: req$,
|
|
58547
|
+
response: doResult.value
|
|
58548
|
+
}];
|
|
58549
|
+
}
|
|
58550
|
+
var init_plansSyncPlanPrices = __esm(() => {
|
|
58551
|
+
init_encodings();
|
|
58552
|
+
init_primitives();
|
|
58553
|
+
init_schemas4();
|
|
58554
|
+
init_security();
|
|
58555
|
+
init_url();
|
|
58556
|
+
init_syncplanpricesop();
|
|
58557
|
+
init_async();
|
|
58558
|
+
});
|
|
58559
|
+
|
|
58560
|
+
// src/mcp-server/tools/plansSyncPlanPrices.ts
|
|
58561
|
+
var args35, tool$plansSyncPlanPrices;
|
|
58562
|
+
var init_plansSyncPlanPrices2 = __esm(() => {
|
|
58563
|
+
init_plansSyncPlanPrices();
|
|
58564
|
+
init_syncplanpricesop();
|
|
58565
|
+
init_tools();
|
|
58566
|
+
args35 = {
|
|
58567
|
+
request: SyncPlanPricesRequest$zodSchema
|
|
58568
|
+
};
|
|
58569
|
+
tool$plansSyncPlanPrices = {
|
|
58570
|
+
name: "sync-plan-prices",
|
|
58571
|
+
description: `Synchronize plan prices
|
|
58572
|
+
|
|
58573
|
+
Use when you have changed plan prices and need to push them to all active subscriptions (e.g. global price update). Returns workflow ID.`,
|
|
58574
|
+
annotations: {
|
|
58575
|
+
title: "",
|
|
58576
|
+
destructiveHint: false,
|
|
58577
|
+
idempotentHint: false,
|
|
58578
|
+
openWorldHint: false,
|
|
58579
|
+
readOnlyHint: false
|
|
58580
|
+
},
|
|
58581
|
+
args: args35,
|
|
58582
|
+
tool: async (client, args36, ctx) => {
|
|
58583
|
+
const [result] = await plansSyncPlanPrices(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58584
|
+
if (!result.ok) {
|
|
58585
|
+
return {
|
|
58586
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58587
|
+
isError: true
|
|
58588
|
+
};
|
|
58589
|
+
}
|
|
58590
|
+
return formatResult(result.value);
|
|
58591
|
+
}
|
|
58592
|
+
};
|
|
58593
|
+
});
|
|
58594
|
+
|
|
58595
|
+
// src/models/dtoupdateplanrequest.ts
|
|
58596
|
+
var DtoUpdatePlanRequest$zodSchema;
|
|
58597
|
+
var init_dtoupdateplanrequest = __esm(() => {
|
|
58598
|
+
init_zod();
|
|
58599
|
+
DtoUpdatePlanRequest$zodSchema = object({
|
|
58600
|
+
description: string2().optional(),
|
|
58601
|
+
display_order: int().optional(),
|
|
58602
|
+
lookup_key: string2().optional(),
|
|
58603
|
+
metadata: record(string2(), string2()).optional(),
|
|
58604
|
+
name: string2().optional()
|
|
58605
|
+
});
|
|
58606
|
+
});
|
|
58607
|
+
|
|
58608
|
+
// src/models/updateplanop.ts
|
|
58609
|
+
var UpdatePlanRequest$zodSchema, UpdatePlanResponse$zodSchema;
|
|
58610
|
+
var init_updateplanop = __esm(() => {
|
|
58611
|
+
init_zod();
|
|
58612
|
+
init_dtoplanresponse();
|
|
58613
|
+
init_dtoupdateplanrequest();
|
|
58614
|
+
init_errorserrorresponse();
|
|
58615
|
+
UpdatePlanRequest$zodSchema = object({
|
|
58616
|
+
body: DtoUpdatePlanRequest$zodSchema,
|
|
58617
|
+
id: string2().describe("Plan ID")
|
|
58618
|
+
});
|
|
58619
|
+
UpdatePlanResponse$zodSchema = union([
|
|
58620
|
+
DtoPlanResponse$zodSchema,
|
|
58621
|
+
ErrorsErrorResponse$zodSchema
|
|
58622
|
+
]);
|
|
58623
|
+
});
|
|
58624
|
+
|
|
58625
|
+
// src/funcs/plansUpdatePlan.ts
|
|
58626
|
+
function plansUpdatePlan(client$, request, options) {
|
|
58627
|
+
return new APIPromise($do37(client$, request, options));
|
|
58628
|
+
}
|
|
58629
|
+
async function $do37(client$, request, options) {
|
|
58630
|
+
const parsed$ = safeParse4(request, (value$) => UpdatePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58631
|
+
if (!parsed$.ok) {
|
|
58632
|
+
return [parsed$, { status: "invalid" }];
|
|
58633
|
+
}
|
|
58634
|
+
const payload$ = parsed$.value;
|
|
58635
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
58636
|
+
const pathParams$ = {
|
|
58637
|
+
id: encodeSimple("id", payload$.id, {
|
|
58638
|
+
explode: false,
|
|
58639
|
+
charEncoding: "percent"
|
|
58640
|
+
})
|
|
58641
|
+
};
|
|
58642
|
+
const path$ = pathToFunc("/plans/{id}")(pathParams$);
|
|
58643
|
+
const headers$ = new Headers(compactMap({
|
|
58644
|
+
"Content-Type": "application/json",
|
|
58645
|
+
Accept: "application/json"
|
|
58646
|
+
}));
|
|
58647
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58648
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58649
|
+
const context = {
|
|
58650
|
+
options: client$._options,
|
|
58651
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58652
|
+
operationID: "updatePlan",
|
|
58653
|
+
oAuth2Scopes: null,
|
|
58654
|
+
resolvedSecurity: requestSecurity,
|
|
58655
|
+
securitySource: client$._options.security,
|
|
58656
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58657
|
+
retryCodes: options?.retryCodes || [
|
|
58658
|
+
"429",
|
|
58659
|
+
"500",
|
|
58660
|
+
"502",
|
|
58661
|
+
"503",
|
|
58662
|
+
"504"
|
|
58663
|
+
]
|
|
58664
|
+
};
|
|
58665
|
+
const requestRes = client$._createRequest(context, {
|
|
58666
|
+
security: requestSecurity,
|
|
58667
|
+
method: "PUT",
|
|
58668
|
+
baseURL: options?.serverURL,
|
|
58669
|
+
path: path$,
|
|
58670
|
+
headers: headers$,
|
|
58671
|
+
body: body$,
|
|
58672
|
+
userAgent: client$._options.userAgent,
|
|
58673
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58674
|
+
}, options);
|
|
58675
|
+
if (!requestRes.ok) {
|
|
58676
|
+
return [requestRes, { status: "invalid" }];
|
|
58677
|
+
}
|
|
58678
|
+
const req$ = requestRes.value;
|
|
58679
|
+
const doResult = await client$._do(req$, {
|
|
58680
|
+
context,
|
|
58681
|
+
errorCodes: [],
|
|
58682
|
+
retryConfig: context.retryConfig,
|
|
58683
|
+
retryCodes: context.retryCodes
|
|
58684
|
+
});
|
|
58685
|
+
if (!doResult.ok) {
|
|
58686
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58687
|
+
}
|
|
58688
|
+
return [doResult, {
|
|
58689
|
+
status: "complete",
|
|
58690
|
+
request: req$,
|
|
58691
|
+
response: doResult.value
|
|
58692
|
+
}];
|
|
58693
|
+
}
|
|
58694
|
+
var init_plansUpdatePlan = __esm(() => {
|
|
58695
|
+
init_encodings();
|
|
58696
|
+
init_primitives();
|
|
58697
|
+
init_schemas4();
|
|
58698
|
+
init_security();
|
|
58699
|
+
init_url();
|
|
58700
|
+
init_updateplanop();
|
|
58701
|
+
init_async();
|
|
58702
|
+
});
|
|
58703
|
+
|
|
58704
|
+
// src/mcp-server/tools/plansUpdatePlan.ts
|
|
58705
|
+
var args36, tool$plansUpdatePlan;
|
|
58706
|
+
var init_plansUpdatePlan2 = __esm(() => {
|
|
58707
|
+
init_plansUpdatePlan();
|
|
58708
|
+
init_updateplanop();
|
|
58709
|
+
init_tools();
|
|
58710
|
+
args36 = {
|
|
58711
|
+
request: UpdatePlanRequest$zodSchema
|
|
58712
|
+
};
|
|
58713
|
+
tool$plansUpdatePlan = {
|
|
58714
|
+
name: "update-plan",
|
|
58715
|
+
description: `Update plan
|
|
58716
|
+
|
|
58717
|
+
Use when changing plan details (e.g. name, interval, or metadata). Partial update supported.`,
|
|
58718
|
+
annotations: {
|
|
58719
|
+
title: "",
|
|
58720
|
+
destructiveHint: false,
|
|
58721
|
+
idempotentHint: false,
|
|
58722
|
+
openWorldHint: false,
|
|
58723
|
+
readOnlyHint: false
|
|
58724
|
+
},
|
|
58725
|
+
args: args36,
|
|
58726
|
+
tool: async (client, args37, ctx) => {
|
|
58727
|
+
const [result] = await plansUpdatePlan(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58728
|
+
if (!result.ok) {
|
|
58729
|
+
return {
|
|
58730
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58731
|
+
isError: true
|
|
58732
|
+
};
|
|
58733
|
+
}
|
|
58734
|
+
return formatResult(result.value);
|
|
58735
|
+
}
|
|
58736
|
+
};
|
|
58737
|
+
});
|
|
58738
|
+
|
|
58739
|
+
// src/models/dtocreatepricetier.ts
|
|
58740
|
+
var DtoCreatePriceTier$zodSchema;
|
|
58741
|
+
var init_dtocreatepricetier = __esm(() => {
|
|
58742
|
+
init_zod();
|
|
58743
|
+
DtoCreatePriceTier$zodSchema = object({
|
|
58744
|
+
flat_amount: string2().optional(),
|
|
58745
|
+
unit_amount: string2(),
|
|
58746
|
+
up_to: int().optional()
|
|
58747
|
+
});
|
|
58748
|
+
});
|
|
58749
|
+
|
|
58750
|
+
// src/models/dtopriceunitconfig.ts
|
|
58751
|
+
var DtoPriceUnitConfig$zodSchema;
|
|
58752
|
+
var init_dtopriceunitconfig = __esm(() => {
|
|
58753
|
+
init_zod();
|
|
58754
|
+
init_dtocreatepricetier();
|
|
58755
|
+
DtoPriceUnitConfig$zodSchema = object({
|
|
58756
|
+
amount: string2().optional(),
|
|
58757
|
+
price_unit: string2(),
|
|
58758
|
+
price_unit_tiers: array(DtoCreatePriceTier$zodSchema).optional()
|
|
58759
|
+
});
|
|
58760
|
+
});
|
|
58761
|
+
|
|
58762
|
+
// src/models/pricetransformquantity.ts
|
|
58763
|
+
var PriceTransformQuantity$zodSchema;
|
|
58764
|
+
var init_pricetransformquantity = __esm(() => {
|
|
58765
|
+
init_zod();
|
|
58766
|
+
init_roundtype();
|
|
58767
|
+
PriceTransformQuantity$zodSchema = object({
|
|
58768
|
+
divide_by: int().optional(),
|
|
58769
|
+
round: RoundType$zodSchema.optional()
|
|
58770
|
+
});
|
|
58771
|
+
});
|
|
58772
|
+
|
|
58773
|
+
// src/models/dtocreatepricerequest.ts
|
|
58774
|
+
var DtoCreatePriceRequest$zodSchema;
|
|
58775
|
+
var init_dtocreatepricerequest = __esm(() => {
|
|
58776
|
+
init_zod();
|
|
58777
|
+
init_billingcadence();
|
|
58778
|
+
init_billingmodel();
|
|
58779
|
+
init_billingperiod();
|
|
58780
|
+
init_billingtier();
|
|
58781
|
+
init_dtocreatepricetier();
|
|
58782
|
+
init_dtopriceunitconfig();
|
|
58783
|
+
init_invoicecadence();
|
|
58784
|
+
init_priceentitytype();
|
|
58785
|
+
init_pricetransformquantity();
|
|
58786
|
+
init_pricetype();
|
|
58787
|
+
init_priceunittype();
|
|
58788
|
+
DtoCreatePriceRequest$zodSchema = object({
|
|
58789
|
+
amount: string2().optional(),
|
|
58790
|
+
billing_cadence: BillingCadence$zodSchema,
|
|
58791
|
+
billing_model: BillingModel$zodSchema,
|
|
58792
|
+
billing_period: BillingPeriod$zodSchema,
|
|
58793
|
+
billing_period_count: int().optional(),
|
|
58794
|
+
currency: string2(),
|
|
58795
|
+
description: string2().optional(),
|
|
58796
|
+
display_name: string2().optional(),
|
|
58797
|
+
end_date: string2().optional(),
|
|
58798
|
+
entity_id: string2(),
|
|
58799
|
+
entity_type: PriceEntityType$zodSchema,
|
|
58800
|
+
filter_values: record(string2(), array(string2())).optional(),
|
|
58801
|
+
group_id: string2().optional(),
|
|
58802
|
+
invoice_cadence: InvoiceCadence$zodSchema,
|
|
58803
|
+
lookup_key: string2().optional(),
|
|
58804
|
+
metadata: record(string2(), string2()).optional(),
|
|
58805
|
+
meter_id: string2().optional(),
|
|
58806
|
+
min_quantity: int().optional(),
|
|
58807
|
+
price_unit_config: DtoPriceUnitConfig$zodSchema.optional(),
|
|
58808
|
+
price_unit_type: PriceUnitType$zodSchema,
|
|
58809
|
+
start_date: string2().optional(),
|
|
58810
|
+
tier_mode: BillingTier$zodSchema.optional(),
|
|
58811
|
+
tiers: array(DtoCreatePriceTier$zodSchema).optional(),
|
|
58812
|
+
transform_quantity: PriceTransformQuantity$zodSchema.optional(),
|
|
58813
|
+
trial_period: int().optional(),
|
|
58814
|
+
type: PriceType$zodSchema
|
|
58815
|
+
});
|
|
58816
|
+
});
|
|
58817
|
+
|
|
58818
|
+
// src/funcs/pricesCreatePrice.ts
|
|
58819
|
+
function pricesCreatePrice(client$, request, options) {
|
|
58820
|
+
return new APIPromise($do38(client$, request, options));
|
|
58821
|
+
}
|
|
58822
|
+
async function $do38(client$, request, options) {
|
|
58823
|
+
const parsed$ = safeParse4(request, (value$) => DtoCreatePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58824
|
+
if (!parsed$.ok) {
|
|
58825
|
+
return [parsed$, { status: "invalid" }];
|
|
58826
|
+
}
|
|
58827
|
+
const payload$ = parsed$.value;
|
|
58828
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
58829
|
+
const path$ = pathToFunc("/prices")();
|
|
58830
|
+
const headers$ = new Headers(compactMap({
|
|
58831
|
+
"Content-Type": "application/json",
|
|
58832
|
+
Accept: "application/json"
|
|
58833
|
+
}));
|
|
58834
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58835
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58836
|
+
const context = {
|
|
58837
|
+
options: client$._options,
|
|
58838
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58839
|
+
operationID: "createPrice",
|
|
58840
|
+
oAuth2Scopes: null,
|
|
58841
|
+
resolvedSecurity: requestSecurity,
|
|
58842
|
+
securitySource: client$._options.security,
|
|
58843
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58844
|
+
retryCodes: options?.retryCodes || [
|
|
58845
|
+
"429",
|
|
58846
|
+
"500",
|
|
58847
|
+
"502",
|
|
58848
|
+
"503",
|
|
58849
|
+
"504"
|
|
58850
|
+
]
|
|
58851
|
+
};
|
|
58852
|
+
const requestRes = client$._createRequest(context, {
|
|
58853
|
+
security: requestSecurity,
|
|
58854
|
+
method: "POST",
|
|
58855
|
+
baseURL: options?.serverURL,
|
|
58856
|
+
path: path$,
|
|
58857
|
+
headers: headers$,
|
|
58858
|
+
body: body$,
|
|
58859
|
+
userAgent: client$._options.userAgent,
|
|
58860
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58861
|
+
}, options);
|
|
58862
|
+
if (!requestRes.ok) {
|
|
58863
|
+
return [requestRes, { status: "invalid" }];
|
|
58864
|
+
}
|
|
58865
|
+
const req$ = requestRes.value;
|
|
58866
|
+
const doResult = await client$._do(req$, {
|
|
58867
|
+
context,
|
|
58868
|
+
errorCodes: [],
|
|
58869
|
+
retryConfig: context.retryConfig,
|
|
58870
|
+
retryCodes: context.retryCodes
|
|
58871
|
+
});
|
|
58872
|
+
if (!doResult.ok) {
|
|
58873
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58874
|
+
}
|
|
58875
|
+
return [doResult, {
|
|
58876
|
+
status: "complete",
|
|
58877
|
+
request: req$,
|
|
58878
|
+
response: doResult.value
|
|
58879
|
+
}];
|
|
58880
|
+
}
|
|
58881
|
+
var init_pricesCreatePrice = __esm(() => {
|
|
58882
|
+
init_encodings();
|
|
58883
|
+
init_primitives();
|
|
58884
|
+
init_schemas4();
|
|
58885
|
+
init_security();
|
|
58886
|
+
init_url();
|
|
58887
|
+
init_dtocreatepricerequest();
|
|
58888
|
+
init_async();
|
|
58889
|
+
});
|
|
58890
|
+
|
|
58891
|
+
// src/mcp-server/tools/pricesCreatePrice.ts
|
|
58892
|
+
var args37, tool$pricesCreatePrice;
|
|
58893
|
+
var init_pricesCreatePrice2 = __esm(() => {
|
|
58894
|
+
init_pricesCreatePrice();
|
|
58895
|
+
init_dtocreatepricerequest();
|
|
58896
|
+
init_tools();
|
|
58897
|
+
args37 = {
|
|
58898
|
+
request: DtoCreatePriceRequest$zodSchema
|
|
58899
|
+
};
|
|
58900
|
+
tool$pricesCreatePrice = {
|
|
58901
|
+
name: "create-price",
|
|
58902
|
+
description: `Create price
|
|
58903
|
+
|
|
58904
|
+
Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metered). Ideal for both simple and usage-based pricing.`,
|
|
58905
|
+
annotations: {
|
|
58906
|
+
title: "",
|
|
58907
|
+
destructiveHint: false,
|
|
58908
|
+
idempotentHint: false,
|
|
58909
|
+
openWorldHint: false,
|
|
58910
|
+
readOnlyHint: false
|
|
58911
|
+
},
|
|
58912
|
+
args: args37,
|
|
58913
|
+
tool: async (client, args38, ctx) => {
|
|
58914
|
+
const [result] = await pricesCreatePrice(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58915
|
+
if (!result.ok) {
|
|
58916
|
+
return {
|
|
58917
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58918
|
+
isError: true
|
|
58919
|
+
};
|
|
58920
|
+
}
|
|
58921
|
+
return formatResult(result.value);
|
|
58922
|
+
}
|
|
58923
|
+
};
|
|
58924
|
+
});
|
|
58925
|
+
|
|
58926
|
+
// src/models/dtocreatebulkpricerequest.ts
|
|
58927
|
+
var DtoCreateBulkPriceRequest$zodSchema;
|
|
58928
|
+
var init_dtocreatebulkpricerequest = __esm(() => {
|
|
58929
|
+
init_zod();
|
|
58930
|
+
init_dtocreatepricerequest();
|
|
58931
|
+
DtoCreateBulkPriceRequest$zodSchema = object({
|
|
58932
|
+
items: array(DtoCreatePriceRequest$zodSchema)
|
|
58933
|
+
});
|
|
58934
|
+
});
|
|
58935
|
+
|
|
58936
|
+
// src/funcs/pricesCreatePricesBulk.ts
|
|
58937
|
+
function pricesCreatePricesBulk(client$, request, options) {
|
|
58938
|
+
return new APIPromise($do39(client$, request, options));
|
|
58939
|
+
}
|
|
58940
|
+
async function $do39(client$, request, options) {
|
|
58941
|
+
const parsed$ = safeParse4(request, (value$) => DtoCreateBulkPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58942
|
+
if (!parsed$.ok) {
|
|
58943
|
+
return [parsed$, { status: "invalid" }];
|
|
58944
|
+
}
|
|
58945
|
+
const payload$ = parsed$.value;
|
|
58946
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
58947
|
+
const path$ = pathToFunc("/prices/bulk")();
|
|
58948
|
+
const headers$ = new Headers(compactMap({
|
|
58949
|
+
"Content-Type": "application/json",
|
|
58950
|
+
Accept: "application/json"
|
|
58951
|
+
}));
|
|
58952
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
58953
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
58954
|
+
const context = {
|
|
58955
|
+
options: client$._options,
|
|
58956
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
58957
|
+
operationID: "createPricesBulk",
|
|
58958
|
+
oAuth2Scopes: null,
|
|
58959
|
+
resolvedSecurity: requestSecurity,
|
|
58960
|
+
securitySource: client$._options.security,
|
|
58961
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
58962
|
+
retryCodes: options?.retryCodes || [
|
|
58963
|
+
"429",
|
|
58964
|
+
"500",
|
|
58965
|
+
"502",
|
|
58966
|
+
"503",
|
|
58967
|
+
"504"
|
|
58968
|
+
]
|
|
58969
|
+
};
|
|
58970
|
+
const requestRes = client$._createRequest(context, {
|
|
58971
|
+
security: requestSecurity,
|
|
58972
|
+
method: "POST",
|
|
58973
|
+
baseURL: options?.serverURL,
|
|
58974
|
+
path: path$,
|
|
58975
|
+
headers: headers$,
|
|
58976
|
+
body: body$,
|
|
58977
|
+
userAgent: client$._options.userAgent,
|
|
58978
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
58979
|
+
}, options);
|
|
58980
|
+
if (!requestRes.ok) {
|
|
58981
|
+
return [requestRes, { status: "invalid" }];
|
|
58982
|
+
}
|
|
58983
|
+
const req$ = requestRes.value;
|
|
58984
|
+
const doResult = await client$._do(req$, {
|
|
58985
|
+
context,
|
|
58986
|
+
errorCodes: [],
|
|
58987
|
+
retryConfig: context.retryConfig,
|
|
58988
|
+
retryCodes: context.retryCodes
|
|
58989
|
+
});
|
|
58990
|
+
if (!doResult.ok) {
|
|
58991
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58992
|
+
}
|
|
58993
|
+
return [doResult, {
|
|
58994
|
+
status: "complete",
|
|
58995
|
+
request: req$,
|
|
58996
|
+
response: doResult.value
|
|
58997
|
+
}];
|
|
58998
|
+
}
|
|
58999
|
+
var init_pricesCreatePricesBulk = __esm(() => {
|
|
59000
|
+
init_encodings();
|
|
59001
|
+
init_primitives();
|
|
59002
|
+
init_schemas4();
|
|
59003
|
+
init_security();
|
|
59004
|
+
init_url();
|
|
59005
|
+
init_dtocreatebulkpricerequest();
|
|
59006
|
+
init_async();
|
|
59007
|
+
});
|
|
59008
|
+
|
|
59009
|
+
// src/mcp-server/tools/pricesCreatePricesBulk.ts
|
|
59010
|
+
var args38, tool$pricesCreatePricesBulk;
|
|
59011
|
+
var init_pricesCreatePricesBulk2 = __esm(() => {
|
|
59012
|
+
init_pricesCreatePricesBulk();
|
|
59013
|
+
init_dtocreatebulkpricerequest();
|
|
59014
|
+
init_tools();
|
|
59015
|
+
args38 = {
|
|
59016
|
+
request: DtoCreateBulkPriceRequest$zodSchema
|
|
59017
|
+
};
|
|
59018
|
+
tool$pricesCreatePricesBulk = {
|
|
59019
|
+
name: "create-prices-bulk",
|
|
59020
|
+
description: `Create prices in bulk
|
|
59021
|
+
|
|
59022
|
+
Use when creating many prices at once (e.g. importing a catalog or setting up a plan with multiple tiers).`,
|
|
59023
|
+
annotations: {
|
|
59024
|
+
title: "",
|
|
59025
|
+
destructiveHint: false,
|
|
59026
|
+
idempotentHint: false,
|
|
59027
|
+
openWorldHint: false,
|
|
59028
|
+
readOnlyHint: false
|
|
59029
|
+
},
|
|
59030
|
+
args: args38,
|
|
59031
|
+
tool: async (client, args39, ctx) => {
|
|
59032
|
+
const [result] = await pricesCreatePricesBulk(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59033
|
+
if (!result.ok) {
|
|
59034
|
+
return {
|
|
59035
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59036
|
+
isError: true
|
|
59037
|
+
};
|
|
59038
|
+
}
|
|
59039
|
+
return formatResult(result.value);
|
|
59040
|
+
}
|
|
59041
|
+
};
|
|
59042
|
+
});
|
|
59043
|
+
|
|
59044
|
+
// src/models/dtodeletepricerequest.ts
|
|
59045
|
+
var DtoDeletePriceRequest$zodSchema;
|
|
59046
|
+
var init_dtodeletepricerequest = __esm(() => {
|
|
59047
|
+
init_zod();
|
|
59048
|
+
DtoDeletePriceRequest$zodSchema = object({
|
|
59049
|
+
end_date: string2().optional()
|
|
59050
|
+
});
|
|
59051
|
+
});
|
|
59052
|
+
|
|
59053
|
+
// src/models/deletepriceop.ts
|
|
59054
|
+
var DeletePriceRequest$zodSchema, DeletePriceResponse$zodSchema;
|
|
59055
|
+
var init_deletepriceop = __esm(() => {
|
|
59056
|
+
init_zod();
|
|
59057
|
+
init_dtodeletepricerequest();
|
|
59058
|
+
init_dtosuccessresponse();
|
|
59059
|
+
init_errorserrorresponse();
|
|
59060
|
+
DeletePriceRequest$zodSchema = object({
|
|
59061
|
+
body: DtoDeletePriceRequest$zodSchema,
|
|
59062
|
+
id: string2().describe("Price ID")
|
|
59063
|
+
});
|
|
59064
|
+
DeletePriceResponse$zodSchema = union([
|
|
59065
|
+
DtoSuccessResponse$zodSchema,
|
|
59066
|
+
ErrorsErrorResponse$zodSchema
|
|
59067
|
+
]);
|
|
59068
|
+
});
|
|
59069
|
+
|
|
59070
|
+
// src/funcs/pricesDeletePrice.ts
|
|
59071
|
+
function pricesDeletePrice(client$, request, options) {
|
|
59072
|
+
return new APIPromise($do40(client$, request, options));
|
|
59073
|
+
}
|
|
59074
|
+
async function $do40(client$, request, options) {
|
|
59075
|
+
const parsed$ = safeParse4(request, (value$) => DeletePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59076
|
+
if (!parsed$.ok) {
|
|
59077
|
+
return [parsed$, { status: "invalid" }];
|
|
59078
|
+
}
|
|
59079
|
+
const payload$ = parsed$.value;
|
|
59080
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
59081
|
+
const pathParams$ = {
|
|
59082
|
+
id: encodeSimple("id", payload$.id, {
|
|
59083
|
+
explode: false,
|
|
59084
|
+
charEncoding: "percent"
|
|
59085
|
+
})
|
|
59086
|
+
};
|
|
59087
|
+
const path$ = pathToFunc("/prices/{id}")(pathParams$);
|
|
59088
|
+
const headers$ = new Headers(compactMap({
|
|
59089
|
+
"Content-Type": "application/json",
|
|
59090
|
+
Accept: "application/json"
|
|
59091
|
+
}));
|
|
59092
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59093
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59094
|
+
const context = {
|
|
59095
|
+
options: client$._options,
|
|
59096
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59097
|
+
operationID: "deletePrice",
|
|
59098
|
+
oAuth2Scopes: null,
|
|
59099
|
+
resolvedSecurity: requestSecurity,
|
|
59100
|
+
securitySource: client$._options.security,
|
|
59101
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59102
|
+
retryCodes: options?.retryCodes || [
|
|
59103
|
+
"429",
|
|
59104
|
+
"500",
|
|
59105
|
+
"502",
|
|
59106
|
+
"503",
|
|
59107
|
+
"504"
|
|
59108
|
+
]
|
|
59109
|
+
};
|
|
59110
|
+
const requestRes = client$._createRequest(context, {
|
|
59111
|
+
security: requestSecurity,
|
|
59112
|
+
method: "DELETE",
|
|
59113
|
+
baseURL: options?.serverURL,
|
|
59114
|
+
path: path$,
|
|
59115
|
+
headers: headers$,
|
|
59116
|
+
body: body$,
|
|
59117
|
+
userAgent: client$._options.userAgent,
|
|
59118
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59119
|
+
}, options);
|
|
59120
|
+
if (!requestRes.ok) {
|
|
59121
|
+
return [requestRes, { status: "invalid" }];
|
|
59122
|
+
}
|
|
59123
|
+
const req$ = requestRes.value;
|
|
59124
|
+
const doResult = await client$._do(req$, {
|
|
59125
|
+
context,
|
|
59126
|
+
errorCodes: [],
|
|
59127
|
+
retryConfig: context.retryConfig,
|
|
59128
|
+
retryCodes: context.retryCodes
|
|
59129
|
+
});
|
|
59130
|
+
if (!doResult.ok) {
|
|
59131
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59132
|
+
}
|
|
59133
|
+
return [doResult, {
|
|
59134
|
+
status: "complete",
|
|
59135
|
+
request: req$,
|
|
59136
|
+
response: doResult.value
|
|
59137
|
+
}];
|
|
59138
|
+
}
|
|
59139
|
+
var init_pricesDeletePrice = __esm(() => {
|
|
59140
|
+
init_encodings();
|
|
59141
|
+
init_primitives();
|
|
59142
|
+
init_schemas4();
|
|
59143
|
+
init_security();
|
|
59144
|
+
init_url();
|
|
59145
|
+
init_deletepriceop();
|
|
59146
|
+
init_async();
|
|
59147
|
+
});
|
|
59148
|
+
|
|
59149
|
+
// src/mcp-server/tools/pricesDeletePrice.ts
|
|
59150
|
+
var args39, tool$pricesDeletePrice;
|
|
59151
|
+
var init_pricesDeletePrice2 = __esm(() => {
|
|
59152
|
+
init_pricesDeletePrice();
|
|
59153
|
+
init_deletepriceop();
|
|
59154
|
+
init_tools();
|
|
59155
|
+
args39 = {
|
|
59156
|
+
request: DeletePriceRequest$zodSchema
|
|
59157
|
+
};
|
|
59158
|
+
tool$pricesDeletePrice = {
|
|
59159
|
+
name: "delete-price",
|
|
59160
|
+
description: `Delete price
|
|
59161
|
+
|
|
59162
|
+
Use when retiring a price (e.g. end-of-life or replacement). Optional effective date or cascade for subscriptions.`,
|
|
59163
|
+
annotations: {
|
|
59164
|
+
title: "",
|
|
59165
|
+
destructiveHint: false,
|
|
59166
|
+
idempotentHint: false,
|
|
59167
|
+
openWorldHint: false,
|
|
59168
|
+
readOnlyHint: false
|
|
59169
|
+
},
|
|
59170
|
+
args: args39,
|
|
59171
|
+
tool: async (client, args40, ctx) => {
|
|
59172
|
+
const [result] = await pricesDeletePrice(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59173
|
+
if (!result.ok) {
|
|
59174
|
+
return {
|
|
59175
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59176
|
+
isError: true
|
|
59177
|
+
};
|
|
59178
|
+
}
|
|
59179
|
+
return formatResult(result.value);
|
|
59180
|
+
}
|
|
59181
|
+
};
|
|
59182
|
+
});
|
|
59183
|
+
|
|
59184
|
+
// src/models/getpriceop.ts
|
|
59185
|
+
var GetPriceRequest$zodSchema, GetPriceResponse$zodSchema;
|
|
59186
|
+
var init_getpriceop = __esm(() => {
|
|
59187
|
+
init_zod();
|
|
59188
|
+
init_dtopriceresponse();
|
|
59189
|
+
init_errorserrorresponse();
|
|
59190
|
+
GetPriceRequest$zodSchema = object({
|
|
59191
|
+
id: string2().describe("Price ID")
|
|
59192
|
+
});
|
|
59193
|
+
GetPriceResponse$zodSchema = union([
|
|
59194
|
+
DtoPriceResponse$zodSchema,
|
|
59195
|
+
ErrorsErrorResponse$zodSchema
|
|
59196
|
+
]);
|
|
59197
|
+
});
|
|
59198
|
+
|
|
59199
|
+
// src/funcs/pricesGetPrice.ts
|
|
59200
|
+
function pricesGetPrice(client$, request, options) {
|
|
59201
|
+
return new APIPromise($do41(client$, request, options));
|
|
59202
|
+
}
|
|
59203
|
+
async function $do41(client$, request, options) {
|
|
59204
|
+
const parsed$ = safeParse4(request, (value$) => GetPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59205
|
+
if (!parsed$.ok) {
|
|
59206
|
+
return [parsed$, { status: "invalid" }];
|
|
59207
|
+
}
|
|
59208
|
+
const payload$ = parsed$.value;
|
|
59209
|
+
const body$ = null;
|
|
59210
|
+
const pathParams$ = {
|
|
59211
|
+
id: encodeSimple("id", payload$.id, {
|
|
59212
|
+
explode: false,
|
|
59213
|
+
charEncoding: "percent"
|
|
59214
|
+
})
|
|
59215
|
+
};
|
|
59216
|
+
const path$ = pathToFunc("/prices/{id}")(pathParams$);
|
|
59217
|
+
const headers$ = new Headers(compactMap({
|
|
59218
|
+
Accept: "application/json"
|
|
59219
|
+
}));
|
|
59220
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59221
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59222
|
+
const context = {
|
|
59223
|
+
options: client$._options,
|
|
59224
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59225
|
+
operationID: "getPrice",
|
|
59226
|
+
oAuth2Scopes: null,
|
|
59227
|
+
resolvedSecurity: requestSecurity,
|
|
59228
|
+
securitySource: client$._options.security,
|
|
59229
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59230
|
+
retryCodes: options?.retryCodes || [
|
|
59231
|
+
"429",
|
|
59232
|
+
"500",
|
|
59233
|
+
"502",
|
|
59234
|
+
"503",
|
|
59235
|
+
"504"
|
|
59236
|
+
]
|
|
59237
|
+
};
|
|
59238
|
+
const requestRes = client$._createRequest(context, {
|
|
59239
|
+
security: requestSecurity,
|
|
59240
|
+
method: "GET",
|
|
59241
|
+
baseURL: options?.serverURL,
|
|
59242
|
+
path: path$,
|
|
59243
|
+
headers: headers$,
|
|
59244
|
+
body: body$,
|
|
59245
|
+
userAgent: client$._options.userAgent,
|
|
59246
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59247
|
+
}, options);
|
|
59248
|
+
if (!requestRes.ok) {
|
|
59249
|
+
return [requestRes, { status: "invalid" }];
|
|
59250
|
+
}
|
|
59251
|
+
const req$ = requestRes.value;
|
|
59252
|
+
const doResult = await client$._do(req$, {
|
|
59253
|
+
context,
|
|
59254
|
+
errorCodes: [],
|
|
59255
|
+
retryConfig: context.retryConfig,
|
|
59256
|
+
retryCodes: context.retryCodes
|
|
59257
|
+
});
|
|
59258
|
+
if (!doResult.ok) {
|
|
59259
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59260
|
+
}
|
|
59261
|
+
return [doResult, {
|
|
59262
|
+
status: "complete",
|
|
59263
|
+
request: req$,
|
|
59264
|
+
response: doResult.value
|
|
59265
|
+
}];
|
|
59266
|
+
}
|
|
59267
|
+
var init_pricesGetPrice = __esm(() => {
|
|
59268
|
+
init_encodings();
|
|
59269
|
+
init_primitives();
|
|
59270
|
+
init_schemas4();
|
|
59271
|
+
init_security();
|
|
59272
|
+
init_url();
|
|
59273
|
+
init_getpriceop();
|
|
59274
|
+
init_async();
|
|
59275
|
+
});
|
|
59276
|
+
|
|
59277
|
+
// src/mcp-server/tools/pricesGetPrice.ts
|
|
59278
|
+
var args40, tool$pricesGetPrice;
|
|
59279
|
+
var init_pricesGetPrice2 = __esm(() => {
|
|
59280
|
+
init_pricesGetPrice();
|
|
59281
|
+
init_getpriceop();
|
|
59282
|
+
init_tools();
|
|
59283
|
+
args40 = {
|
|
59284
|
+
request: GetPriceRequest$zodSchema
|
|
59285
|
+
};
|
|
59286
|
+
tool$pricesGetPrice = {
|
|
59287
|
+
name: "get-price",
|
|
59288
|
+
description: `Get price
|
|
59289
|
+
|
|
59290
|
+
Use when you need to load a single price (e.g. for display or editing). Response includes expanded meter and price unit when applicable.`,
|
|
59291
|
+
annotations: {
|
|
59292
|
+
title: "",
|
|
59293
|
+
destructiveHint: false,
|
|
59294
|
+
idempotentHint: false,
|
|
59295
|
+
openWorldHint: false,
|
|
59296
|
+
readOnlyHint: false
|
|
59297
|
+
},
|
|
59298
|
+
args: args40,
|
|
59299
|
+
tool: async (client, args41, ctx) => {
|
|
59300
|
+
const [result] = await pricesGetPrice(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59301
|
+
if (!result.ok) {
|
|
59302
|
+
return {
|
|
59303
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59304
|
+
isError: true
|
|
59305
|
+
};
|
|
59306
|
+
}
|
|
59307
|
+
return formatResult(result.value);
|
|
59308
|
+
}
|
|
59309
|
+
};
|
|
59310
|
+
});
|
|
59311
|
+
|
|
59312
|
+
// src/models/getpricebylookupkeyop.ts
|
|
59313
|
+
var GetPriceByLookupKeyRequest$zodSchema, GetPriceByLookupKeyResponse$zodSchema;
|
|
59314
|
+
var init_getpricebylookupkeyop = __esm(() => {
|
|
59315
|
+
init_zod();
|
|
59316
|
+
init_dtopriceresponse();
|
|
59317
|
+
init_errorserrorresponse();
|
|
59318
|
+
GetPriceByLookupKeyRequest$zodSchema = object({
|
|
59319
|
+
lookup_key: string2().describe("Lookup key")
|
|
59320
|
+
});
|
|
59321
|
+
GetPriceByLookupKeyResponse$zodSchema = union([
|
|
59322
|
+
DtoPriceResponse$zodSchema,
|
|
59323
|
+
ErrorsErrorResponse$zodSchema
|
|
59324
|
+
]);
|
|
59325
|
+
});
|
|
59326
|
+
|
|
59327
|
+
// src/funcs/pricesGetPriceByLookupKey.ts
|
|
59328
|
+
function pricesGetPriceByLookupKey(client$, request, options) {
|
|
59329
|
+
return new APIPromise($do42(client$, request, options));
|
|
59330
|
+
}
|
|
59331
|
+
async function $do42(client$, request, options) {
|
|
59332
|
+
const parsed$ = safeParse4(request, (value$) => GetPriceByLookupKeyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59333
|
+
if (!parsed$.ok) {
|
|
59334
|
+
return [parsed$, { status: "invalid" }];
|
|
59335
|
+
}
|
|
59336
|
+
const payload$ = parsed$.value;
|
|
59337
|
+
const body$ = null;
|
|
59338
|
+
const pathParams$ = {
|
|
59339
|
+
lookup_key: encodeSimple("lookup_key", payload$.lookup_key, {
|
|
59340
|
+
explode: false,
|
|
59341
|
+
charEncoding: "percent"
|
|
59342
|
+
})
|
|
59343
|
+
};
|
|
59344
|
+
const path$ = pathToFunc("/prices/lookup/{lookup_key}")(pathParams$);
|
|
59345
|
+
const headers$ = new Headers(compactMap({
|
|
59346
|
+
Accept: "application/json"
|
|
59347
|
+
}));
|
|
59348
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59349
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59350
|
+
const context = {
|
|
59351
|
+
options: client$._options,
|
|
59352
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59353
|
+
operationID: "getPriceByLookupKey",
|
|
59354
|
+
oAuth2Scopes: null,
|
|
59355
|
+
resolvedSecurity: requestSecurity,
|
|
59356
|
+
securitySource: client$._options.security,
|
|
59357
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59358
|
+
retryCodes: options?.retryCodes || [
|
|
59359
|
+
"429",
|
|
59360
|
+
"500",
|
|
59361
|
+
"502",
|
|
59362
|
+
"503",
|
|
59363
|
+
"504"
|
|
59364
|
+
]
|
|
59365
|
+
};
|
|
59366
|
+
const requestRes = client$._createRequest(context, {
|
|
59367
|
+
security: requestSecurity,
|
|
59368
|
+
method: "GET",
|
|
59369
|
+
baseURL: options?.serverURL,
|
|
59370
|
+
path: path$,
|
|
59371
|
+
headers: headers$,
|
|
59372
|
+
body: body$,
|
|
59373
|
+
userAgent: client$._options.userAgent,
|
|
59374
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59375
|
+
}, options);
|
|
59376
|
+
if (!requestRes.ok) {
|
|
59377
|
+
return [requestRes, { status: "invalid" }];
|
|
59378
|
+
}
|
|
59379
|
+
const req$ = requestRes.value;
|
|
59380
|
+
const doResult = await client$._do(req$, {
|
|
59381
|
+
context,
|
|
59382
|
+
errorCodes: [],
|
|
59383
|
+
retryConfig: context.retryConfig,
|
|
59384
|
+
retryCodes: context.retryCodes
|
|
59385
|
+
});
|
|
59386
|
+
if (!doResult.ok) {
|
|
59387
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59388
|
+
}
|
|
59389
|
+
return [doResult, {
|
|
59390
|
+
status: "complete",
|
|
59391
|
+
request: req$,
|
|
59392
|
+
response: doResult.value
|
|
59393
|
+
}];
|
|
59394
|
+
}
|
|
59395
|
+
var init_pricesGetPriceByLookupKey = __esm(() => {
|
|
59396
|
+
init_encodings();
|
|
59397
|
+
init_primitives();
|
|
59398
|
+
init_schemas4();
|
|
59399
|
+
init_security();
|
|
59400
|
+
init_url();
|
|
59401
|
+
init_getpricebylookupkeyop();
|
|
59402
|
+
init_async();
|
|
59403
|
+
});
|
|
59404
|
+
|
|
59405
|
+
// src/mcp-server/tools/pricesGetPriceByLookupKey.ts
|
|
59406
|
+
var args41, tool$pricesGetPriceByLookupKey;
|
|
59407
|
+
var init_pricesGetPriceByLookupKey2 = __esm(() => {
|
|
59408
|
+
init_pricesGetPriceByLookupKey();
|
|
59409
|
+
init_getpricebylookupkeyop();
|
|
59410
|
+
init_tools();
|
|
59411
|
+
args41 = {
|
|
59412
|
+
request: GetPriceByLookupKeyRequest$zodSchema
|
|
59413
|
+
};
|
|
59414
|
+
tool$pricesGetPriceByLookupKey = {
|
|
59415
|
+
name: "get-price-by-lookup-key",
|
|
59416
|
+
description: `Get price by lookup key
|
|
59417
|
+
|
|
59418
|
+
Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal for integrations.`,
|
|
59419
|
+
annotations: {
|
|
59420
|
+
title: "",
|
|
59421
|
+
destructiveHint: false,
|
|
59422
|
+
idempotentHint: false,
|
|
59423
|
+
openWorldHint: false,
|
|
59424
|
+
readOnlyHint: false
|
|
59425
|
+
},
|
|
59426
|
+
args: args41,
|
|
59427
|
+
tool: async (client, args42, ctx) => {
|
|
59428
|
+
const [result] = await pricesGetPriceByLookupKey(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59429
|
+
if (!result.ok) {
|
|
59430
|
+
return {
|
|
59431
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59432
|
+
isError: true
|
|
59433
|
+
};
|
|
59434
|
+
}
|
|
59435
|
+
return formatResult(result.value);
|
|
59436
|
+
}
|
|
59437
|
+
};
|
|
59438
|
+
});
|
|
59439
|
+
|
|
59440
|
+
// src/models/pricefilter.ts
|
|
59441
|
+
var PriceFilterOrder$zodSchema, PriceFilter$zodSchema;
|
|
59442
|
+
var init_pricefilter = __esm(() => {
|
|
59443
|
+
init_zod();
|
|
59444
|
+
init_filtercondition();
|
|
59445
|
+
init_priceentitytype();
|
|
59446
|
+
init_status();
|
|
59447
|
+
PriceFilterOrder$zodSchema = _enum([
|
|
59448
|
+
"asc",
|
|
59449
|
+
"desc"
|
|
59450
|
+
]);
|
|
59451
|
+
PriceFilter$zodSchema = object({
|
|
59452
|
+
allow_expired_prices: boolean2().default(false),
|
|
59453
|
+
end_time: string2().optional(),
|
|
59454
|
+
entity_ids: array(string2()).optional(),
|
|
59455
|
+
entity_type: PriceEntityType$zodSchema.optional(),
|
|
59456
|
+
expand: string2().optional(),
|
|
59457
|
+
filters: array(FilterCondition$zodSchema).optional(),
|
|
59458
|
+
limit: int().optional(),
|
|
59459
|
+
meter_ids: array(string2()).optional(),
|
|
59460
|
+
offset: int().optional(),
|
|
59461
|
+
order: PriceFilterOrder$zodSchema.optional(),
|
|
59462
|
+
parent_price_id: string2().optional(),
|
|
59463
|
+
plan_ids: array(string2()).optional(),
|
|
59464
|
+
price_ids: array(string2()).optional(),
|
|
59465
|
+
sort: string2().optional(),
|
|
59466
|
+
start_date_lt: string2().optional(),
|
|
59467
|
+
start_time: string2().optional(),
|
|
59468
|
+
status: Status$zodSchema.optional(),
|
|
59469
|
+
subscription_id: string2().optional()
|
|
59470
|
+
});
|
|
59471
|
+
});
|
|
59472
|
+
|
|
59473
|
+
// src/funcs/pricesQueryPrice.ts
|
|
59474
|
+
function pricesQueryPrice(client$, request, options) {
|
|
59475
|
+
return new APIPromise($do43(client$, request, options));
|
|
59476
|
+
}
|
|
59477
|
+
async function $do43(client$, request, options) {
|
|
59478
|
+
const parsed$ = safeParse4(request, (value$) => PriceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
59479
|
+
if (!parsed$.ok) {
|
|
59480
|
+
return [parsed$, { status: "invalid" }];
|
|
59481
|
+
}
|
|
59482
|
+
const payload$ = parsed$.value;
|
|
59483
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
59484
|
+
const path$ = pathToFunc("/prices/search")();
|
|
59485
|
+
const headers$ = new Headers(compactMap({
|
|
59486
|
+
"Content-Type": "application/json",
|
|
59487
|
+
Accept: "application/json"
|
|
59488
|
+
}));
|
|
59489
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59490
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59491
|
+
const context = {
|
|
59492
|
+
options: client$._options,
|
|
59493
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59494
|
+
operationID: "queryPrice",
|
|
59495
|
+
oAuth2Scopes: null,
|
|
59496
|
+
resolvedSecurity: requestSecurity,
|
|
59497
|
+
securitySource: client$._options.security,
|
|
59498
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59499
|
+
retryCodes: options?.retryCodes || [
|
|
59500
|
+
"429",
|
|
59501
|
+
"500",
|
|
59502
|
+
"502",
|
|
59503
|
+
"503",
|
|
59504
|
+
"504"
|
|
59505
|
+
]
|
|
59506
|
+
};
|
|
59507
|
+
const requestRes = client$._createRequest(context, {
|
|
59508
|
+
security: requestSecurity,
|
|
59509
|
+
method: "POST",
|
|
59510
|
+
baseURL: options?.serverURL,
|
|
59511
|
+
path: path$,
|
|
59512
|
+
headers: headers$,
|
|
59513
|
+
body: body$,
|
|
59514
|
+
userAgent: client$._options.userAgent,
|
|
59515
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59516
|
+
}, options);
|
|
59517
|
+
if (!requestRes.ok) {
|
|
59518
|
+
return [requestRes, { status: "invalid" }];
|
|
59519
|
+
}
|
|
59520
|
+
const req$ = requestRes.value;
|
|
59521
|
+
const doResult = await client$._do(req$, {
|
|
59522
|
+
context,
|
|
59523
|
+
errorCodes: [],
|
|
59524
|
+
retryConfig: context.retryConfig,
|
|
59525
|
+
retryCodes: context.retryCodes
|
|
59526
|
+
});
|
|
59527
|
+
if (!doResult.ok) {
|
|
59528
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59529
|
+
}
|
|
59530
|
+
return [doResult, {
|
|
59531
|
+
status: "complete",
|
|
59532
|
+
request: req$,
|
|
59533
|
+
response: doResult.value
|
|
59534
|
+
}];
|
|
59535
|
+
}
|
|
59536
|
+
var init_pricesQueryPrice = __esm(() => {
|
|
59537
|
+
init_encodings();
|
|
59538
|
+
init_primitives();
|
|
59539
|
+
init_schemas4();
|
|
59540
|
+
init_security();
|
|
59541
|
+
init_url();
|
|
59542
|
+
init_pricefilter();
|
|
59543
|
+
init_async();
|
|
59544
|
+
});
|
|
59545
|
+
|
|
59546
|
+
// src/mcp-server/tools/pricesQueryPrice.ts
|
|
59547
|
+
var args42, tool$pricesQueryPrice;
|
|
59548
|
+
var init_pricesQueryPrice2 = __esm(() => {
|
|
59549
|
+
init_pricesQueryPrice();
|
|
59550
|
+
init_pricefilter();
|
|
59551
|
+
init_tools();
|
|
59552
|
+
args42 = {
|
|
59553
|
+
request: PriceFilter$zodSchema
|
|
59554
|
+
};
|
|
59555
|
+
tool$pricesQueryPrice = {
|
|
59556
|
+
name: "query-price",
|
|
59557
|
+
description: `Query prices
|
|
59558
|
+
|
|
59559
|
+
Use when listing or searching prices (e.g. plan builder or catalog). Returns a paginated list; supports filtering and sorting.`,
|
|
59560
|
+
annotations: {
|
|
59561
|
+
title: "",
|
|
59562
|
+
destructiveHint: false,
|
|
59563
|
+
idempotentHint: false,
|
|
59564
|
+
openWorldHint: false,
|
|
59565
|
+
readOnlyHint: false
|
|
59566
|
+
},
|
|
59567
|
+
args: args42,
|
|
59568
|
+
tool: async (client, args43, ctx) => {
|
|
59569
|
+
const [result] = await pricesQueryPrice(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59570
|
+
if (!result.ok) {
|
|
59571
|
+
return {
|
|
59572
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59573
|
+
isError: true
|
|
59574
|
+
};
|
|
59575
|
+
}
|
|
59576
|
+
return formatResult(result.value);
|
|
59577
|
+
}
|
|
59578
|
+
};
|
|
59579
|
+
});
|
|
59580
|
+
|
|
59581
|
+
// src/models/dtoupdatepricerequest.ts
|
|
59582
|
+
var DtoUpdatePriceRequest$zodSchema;
|
|
59583
|
+
var init_dtoupdatepricerequest = __esm(() => {
|
|
59584
|
+
init_zod();
|
|
59585
|
+
init_billingmodel();
|
|
59586
|
+
init_billingtier();
|
|
59587
|
+
init_dtocreatepricetier();
|
|
59588
|
+
init_pricetransformquantity();
|
|
59589
|
+
DtoUpdatePriceRequest$zodSchema = object({
|
|
59590
|
+
amount: string2().optional(),
|
|
59591
|
+
billing_model: BillingModel$zodSchema.optional(),
|
|
59592
|
+
description: string2().optional(),
|
|
59593
|
+
display_name: string2().optional(),
|
|
59594
|
+
effective_from: string2().optional(),
|
|
59595
|
+
group_id: string2().optional(),
|
|
59596
|
+
lookup_key: string2().optional(),
|
|
59597
|
+
metadata: record(string2(), string2()).optional(),
|
|
59598
|
+
price_unit_amount: string2().optional(),
|
|
59599
|
+
price_unit_tiers: array(DtoCreatePriceTier$zodSchema).optional(),
|
|
59600
|
+
tier_mode: BillingTier$zodSchema.optional(),
|
|
59601
|
+
tiers: array(DtoCreatePriceTier$zodSchema).optional(),
|
|
59602
|
+
transform_quantity: PriceTransformQuantity$zodSchema.optional()
|
|
59603
|
+
});
|
|
59604
|
+
});
|
|
59605
|
+
|
|
59606
|
+
// src/models/updatepriceop.ts
|
|
59607
|
+
var UpdatePriceRequest$zodSchema, UpdatePriceResponse$zodSchema;
|
|
59608
|
+
var init_updatepriceop = __esm(() => {
|
|
59609
|
+
init_zod();
|
|
59610
|
+
init_dtopriceresponse();
|
|
59611
|
+
init_dtoupdatepricerequest();
|
|
59612
|
+
init_errorserrorresponse();
|
|
59613
|
+
UpdatePriceRequest$zodSchema = object({
|
|
59614
|
+
body: DtoUpdatePriceRequest$zodSchema,
|
|
59615
|
+
id: string2().describe("Price ID")
|
|
59616
|
+
});
|
|
59617
|
+
UpdatePriceResponse$zodSchema = union([
|
|
59618
|
+
DtoPriceResponse$zodSchema,
|
|
59619
|
+
ErrorsErrorResponse$zodSchema
|
|
59620
|
+
]);
|
|
59621
|
+
});
|
|
59622
|
+
|
|
59623
|
+
// src/funcs/pricesUpdatePrice.ts
|
|
59624
|
+
function pricesUpdatePrice(client$, request, options) {
|
|
59625
|
+
return new APIPromise($do44(client$, request, options));
|
|
59626
|
+
}
|
|
59627
|
+
async function $do44(client$, request, options) {
|
|
59628
|
+
const parsed$ = safeParse4(request, (value$) => UpdatePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59629
|
+
if (!parsed$.ok) {
|
|
59630
|
+
return [parsed$, { status: "invalid" }];
|
|
59631
|
+
}
|
|
59632
|
+
const payload$ = parsed$.value;
|
|
59633
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
59634
|
+
const pathParams$ = {
|
|
59635
|
+
id: encodeSimple("id", payload$.id, {
|
|
59636
|
+
explode: false,
|
|
59637
|
+
charEncoding: "percent"
|
|
59638
|
+
})
|
|
59639
|
+
};
|
|
59640
|
+
const path$ = pathToFunc("/prices/{id}")(pathParams$);
|
|
59641
|
+
const headers$ = new Headers(compactMap({
|
|
59642
|
+
"Content-Type": "application/json",
|
|
59643
|
+
Accept: "application/json"
|
|
59644
|
+
}));
|
|
59645
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59646
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59647
|
+
const context = {
|
|
59648
|
+
options: client$._options,
|
|
59649
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59650
|
+
operationID: "updatePrice",
|
|
59651
|
+
oAuth2Scopes: null,
|
|
59652
|
+
resolvedSecurity: requestSecurity,
|
|
59653
|
+
securitySource: client$._options.security,
|
|
59654
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59655
|
+
retryCodes: options?.retryCodes || [
|
|
59656
|
+
"429",
|
|
59657
|
+
"500",
|
|
59658
|
+
"502",
|
|
59659
|
+
"503",
|
|
59660
|
+
"504"
|
|
59661
|
+
]
|
|
59662
|
+
};
|
|
59663
|
+
const requestRes = client$._createRequest(context, {
|
|
59664
|
+
security: requestSecurity,
|
|
59665
|
+
method: "PUT",
|
|
59666
|
+
baseURL: options?.serverURL,
|
|
59667
|
+
path: path$,
|
|
59668
|
+
headers: headers$,
|
|
59669
|
+
body: body$,
|
|
59670
|
+
userAgent: client$._options.userAgent,
|
|
59671
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59672
|
+
}, options);
|
|
59673
|
+
if (!requestRes.ok) {
|
|
59674
|
+
return [requestRes, { status: "invalid" }];
|
|
59675
|
+
}
|
|
59676
|
+
const req$ = requestRes.value;
|
|
59677
|
+
const doResult = await client$._do(req$, {
|
|
59678
|
+
context,
|
|
59679
|
+
errorCodes: [],
|
|
59680
|
+
retryConfig: context.retryConfig,
|
|
59681
|
+
retryCodes: context.retryCodes
|
|
59682
|
+
});
|
|
59683
|
+
if (!doResult.ok) {
|
|
59684
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59685
|
+
}
|
|
59686
|
+
return [doResult, {
|
|
59687
|
+
status: "complete",
|
|
59688
|
+
request: req$,
|
|
59689
|
+
response: doResult.value
|
|
59690
|
+
}];
|
|
59691
|
+
}
|
|
59692
|
+
var init_pricesUpdatePrice = __esm(() => {
|
|
59693
|
+
init_encodings();
|
|
59694
|
+
init_primitives();
|
|
59695
|
+
init_schemas4();
|
|
59696
|
+
init_security();
|
|
59697
|
+
init_url();
|
|
59698
|
+
init_updatepriceop();
|
|
59699
|
+
init_async();
|
|
59700
|
+
});
|
|
59701
|
+
|
|
59702
|
+
// src/mcp-server/tools/pricesUpdatePrice.ts
|
|
59703
|
+
var args43, tool$pricesUpdatePrice;
|
|
59704
|
+
var init_pricesUpdatePrice2 = __esm(() => {
|
|
59705
|
+
init_pricesUpdatePrice();
|
|
59706
|
+
init_updatepriceop();
|
|
59707
|
+
init_tools();
|
|
59708
|
+
args43 = {
|
|
59709
|
+
request: UpdatePriceRequest$zodSchema
|
|
59710
|
+
};
|
|
59711
|
+
tool$pricesUpdatePrice = {
|
|
59712
|
+
name: "update-price",
|
|
59713
|
+
description: `Update price
|
|
59714
|
+
|
|
59715
|
+
Use when changing price configuration (e.g. amount, billing scheme, or metadata).`,
|
|
59716
|
+
annotations: {
|
|
59717
|
+
title: "",
|
|
59718
|
+
destructiveHint: false,
|
|
59719
|
+
idempotentHint: false,
|
|
59720
|
+
openWorldHint: false,
|
|
59721
|
+
readOnlyHint: false
|
|
59722
|
+
},
|
|
59723
|
+
args: args43,
|
|
59724
|
+
tool: async (client, args44, ctx) => {
|
|
59725
|
+
const [result] = await pricesUpdatePrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59726
|
+
if (!result.ok) {
|
|
59727
|
+
return {
|
|
59728
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59729
|
+
isError: true
|
|
59730
|
+
};
|
|
59731
|
+
}
|
|
59732
|
+
return formatResult(result.value);
|
|
59733
|
+
}
|
|
59734
|
+
};
|
|
59735
|
+
});
|
|
59736
|
+
|
|
59737
|
+
// src/mcp-server/server.ts
|
|
59738
|
+
function createMCPServer(deps) {
|
|
59739
|
+
const server = new McpServer({
|
|
59740
|
+
name: "Flexprice",
|
|
59741
|
+
version: "0.0.52"
|
|
59742
|
+
});
|
|
59743
|
+
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
59744
|
+
security: deps.security,
|
|
59745
|
+
serverURL: deps.serverURL,
|
|
59746
|
+
serverIdx: deps.serverIdx,
|
|
59747
|
+
debugLogger: deps.logger.level === "debug" ? {
|
|
59748
|
+
log: (...args44) => console.log(...args44),
|
|
59749
|
+
group: (...args44) => console.group(...args44),
|
|
59750
|
+
groupEnd: (...args44) => console.groupEnd(...args44)
|
|
59751
|
+
} : undefined
|
|
59752
|
+
}));
|
|
59753
|
+
const scopes = new Set(deps.scopes);
|
|
59754
|
+
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
59755
|
+
const [tool, tools, toolMap] = createRegisterTool(deps.logger, server, getClient, scopes, allowedTools, deps.dynamic);
|
|
59756
|
+
const resource = createRegisterResource(deps.logger, server, getClient, scopes);
|
|
59757
|
+
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, getClient, scopes);
|
|
59758
|
+
const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
|
|
59759
|
+
const register = { tool, resource, resourceTemplate, prompt };
|
|
59760
|
+
tool(tool$customersUpdateCustomer);
|
|
59761
|
+
tool(tool$customersCreateCustomer);
|
|
59762
|
+
tool(tool$customersGetCustomerByExternalId);
|
|
59763
|
+
tool(tool$customersQueryCustomer);
|
|
59764
|
+
tool(tool$customersGetCustomerUsageSummary);
|
|
59765
|
+
tool(tool$customersGetCustomer);
|
|
59766
|
+
tool(tool$customersDeleteCustomer);
|
|
59767
|
+
tool(tool$customersGetCustomerEntitlements);
|
|
57832
59768
|
tool(tool$customersGetCustomerUpcomingGrants);
|
|
57833
59769
|
tool(tool$invoicesGetCustomerInvoiceSummary);
|
|
57834
59770
|
tool(tool$invoicesCreateInvoice);
|
|
@@ -57851,6 +59787,20 @@ function createMCPServer(deps) {
|
|
|
57851
59787
|
tool(tool$eventsGetUsageStatistics);
|
|
57852
59788
|
tool(tool$eventsGetUsageByMeter);
|
|
57853
59789
|
tool(tool$eventsGetEvent);
|
|
59790
|
+
tool(tool$plansCreatePlan);
|
|
59791
|
+
tool(tool$plansQueryPlan);
|
|
59792
|
+
tool(tool$plansGetPlan);
|
|
59793
|
+
tool(tool$plansUpdatePlan);
|
|
59794
|
+
tool(tool$plansDeletePlan);
|
|
59795
|
+
tool(tool$plansPostPlansIdClone);
|
|
59796
|
+
tool(tool$plansSyncPlanPrices);
|
|
59797
|
+
tool(tool$pricesCreatePrice);
|
|
59798
|
+
tool(tool$pricesCreatePricesBulk);
|
|
59799
|
+
tool(tool$pricesGetPriceByLookupKey);
|
|
59800
|
+
tool(tool$pricesQueryPrice);
|
|
59801
|
+
tool(tool$pricesGetPrice);
|
|
59802
|
+
tool(tool$pricesUpdatePrice);
|
|
59803
|
+
tool(tool$pricesDeletePrice);
|
|
57854
59804
|
if (deps.dynamic) {
|
|
57855
59805
|
registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
|
|
57856
59806
|
}
|
|
@@ -57891,6 +59841,20 @@ var init_server2 = __esm(() => {
|
|
|
57891
59841
|
init_invoicesUpdateInvoice2();
|
|
57892
59842
|
init_invoicesUpdateInvoicePaymentStatus2();
|
|
57893
59843
|
init_invoicesVoidInvoice2();
|
|
59844
|
+
init_plansCreatePlan2();
|
|
59845
|
+
init_plansDeletePlan2();
|
|
59846
|
+
init_plansGetPlan2();
|
|
59847
|
+
init_plansPostPlansIdClone2();
|
|
59848
|
+
init_plansQueryPlan2();
|
|
59849
|
+
init_plansSyncPlanPrices2();
|
|
59850
|
+
init_plansUpdatePlan2();
|
|
59851
|
+
init_pricesCreatePrice2();
|
|
59852
|
+
init_pricesCreatePricesBulk2();
|
|
59853
|
+
init_pricesDeletePrice2();
|
|
59854
|
+
init_pricesGetPrice2();
|
|
59855
|
+
init_pricesGetPriceByLookupKey2();
|
|
59856
|
+
init_pricesQueryPrice2();
|
|
59857
|
+
init_pricesUpdatePrice2();
|
|
57894
59858
|
});
|
|
57895
59859
|
|
|
57896
59860
|
// src/tool-names.ts
|
|
@@ -58076,6 +60040,90 @@ Use when showing usage for a specific meter (e.g. dashboard or overage check). S
|
|
|
58076
60040
|
description: `Get event
|
|
58077
60041
|
|
|
58078
60042
|
Use when debugging a specific event (e.g. why it failed or how it was aggregated). Includes processing status and debug info.`
|
|
60043
|
+
},
|
|
60044
|
+
{
|
|
60045
|
+
name: "create-plan",
|
|
60046
|
+
description: `Create plan
|
|
60047
|
+
|
|
60048
|
+
Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices and entitlements; customers subscribe to plans.`
|
|
60049
|
+
},
|
|
60050
|
+
{
|
|
60051
|
+
name: "query-plan",
|
|
60052
|
+
description: `Query plans
|
|
60053
|
+
|
|
60054
|
+
Use when listing or searching plans (e.g. plan picker or admin catalog). Returns a paginated list; supports filtering and sorting.`
|
|
60055
|
+
},
|
|
60056
|
+
{
|
|
60057
|
+
name: "get-plan",
|
|
60058
|
+
description: `Get plan
|
|
60059
|
+
|
|
60060
|
+
Use when you need to load a single plan (e.g. for display or to create a subscription).`
|
|
60061
|
+
},
|
|
60062
|
+
{
|
|
60063
|
+
name: "update-plan",
|
|
60064
|
+
description: `Update plan
|
|
60065
|
+
|
|
60066
|
+
Use when changing plan details (e.g. name, interval, or metadata). Partial update supported.`
|
|
60067
|
+
},
|
|
60068
|
+
{
|
|
60069
|
+
name: "delete-plan",
|
|
60070
|
+
description: `Delete plan
|
|
60071
|
+
|
|
60072
|
+
Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message.`
|
|
60073
|
+
},
|
|
60074
|
+
{
|
|
60075
|
+
name: "plans-post-plans-id-clone",
|
|
60076
|
+
description: `Clone a plan
|
|
60077
|
+
|
|
60078
|
+
Clone an existing plan, copying its active prices, published entitlements, and published credit grants`
|
|
60079
|
+
},
|
|
60080
|
+
{
|
|
60081
|
+
name: "sync-plan-prices",
|
|
60082
|
+
description: `Synchronize plan prices
|
|
60083
|
+
|
|
60084
|
+
Use when you have changed plan prices and need to push them to all active subscriptions (e.g. global price update). Returns workflow ID.`
|
|
60085
|
+
},
|
|
60086
|
+
{
|
|
60087
|
+
name: "create-price",
|
|
60088
|
+
description: `Create price
|
|
60089
|
+
|
|
60090
|
+
Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metered). Ideal for both simple and usage-based pricing.`
|
|
60091
|
+
},
|
|
60092
|
+
{
|
|
60093
|
+
name: "create-prices-bulk",
|
|
60094
|
+
description: `Create prices in bulk
|
|
60095
|
+
|
|
60096
|
+
Use when creating many prices at once (e.g. importing a catalog or setting up a plan with multiple tiers).`
|
|
60097
|
+
},
|
|
60098
|
+
{
|
|
60099
|
+
name: "get-price-by-lookup-key",
|
|
60100
|
+
description: `Get price by lookup key
|
|
60101
|
+
|
|
60102
|
+
Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal for integrations.`
|
|
60103
|
+
},
|
|
60104
|
+
{
|
|
60105
|
+
name: "query-price",
|
|
60106
|
+
description: `Query prices
|
|
60107
|
+
|
|
60108
|
+
Use when listing or searching prices (e.g. plan builder or catalog). Returns a paginated list; supports filtering and sorting.`
|
|
60109
|
+
},
|
|
60110
|
+
{
|
|
60111
|
+
name: "get-price",
|
|
60112
|
+
description: `Get price
|
|
60113
|
+
|
|
60114
|
+
Use when you need to load a single price (e.g. for display or editing). Response includes expanded meter and price unit when applicable.`
|
|
60115
|
+
},
|
|
60116
|
+
{
|
|
60117
|
+
name: "update-price",
|
|
60118
|
+
description: `Update price
|
|
60119
|
+
|
|
60120
|
+
Use when changing price configuration (e.g. amount, billing scheme, or metadata).`
|
|
60121
|
+
},
|
|
60122
|
+
{
|
|
60123
|
+
name: "delete-price",
|
|
60124
|
+
description: `Delete price
|
|
60125
|
+
|
|
60126
|
+
Use when retiring a price (e.g. end-of-life or replacement). Optional effective date or cascade for subscriptions.`
|
|
58079
60127
|
}
|
|
58080
60128
|
];
|
|
58081
60129
|
});
|
|
@@ -61585,7 +63633,7 @@ var routes = buildRouteMap({
|
|
|
61585
63633
|
var app = buildApplication(routes, {
|
|
61586
63634
|
name: "mcp",
|
|
61587
63635
|
versionInfo: {
|
|
61588
|
-
currentVersion: "0.0.
|
|
63636
|
+
currentVersion: "0.0.52"
|
|
61589
63637
|
}
|
|
61590
63638
|
});
|
|
61591
63639
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -61593,5 +63641,5 @@ export {
|
|
|
61593
63641
|
app
|
|
61594
63642
|
};
|
|
61595
63643
|
|
|
61596
|
-
//# debugId=
|
|
63644
|
+
//# debugId=02DBB7651406351764756E2164756E21
|
|
61597
63645
|
//# sourceMappingURL=mcp-server.js.map
|