@flexprice/mcp-server 2.1.20 → 2.1.25
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 +5454 -3805
- package/bin/mcp-server.js.map +188 -139
- package/bun.lock +46 -39
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts +16 -0
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js +87 -0
- package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
- package/esm/funcs/customersGetSubscriptionsForCustomer.d.ts +16 -0
- package/esm/funcs/customersGetSubscriptionsForCustomer.d.ts.map +1 -0
- package/esm/funcs/customersGetSubscriptionsForCustomer.js +91 -0
- package/esm/funcs/customersGetSubscriptionsForCustomer.js.map +1 -0
- package/esm/funcs/eventsGetEvent.d.ts +1 -1
- package/esm/funcs/eventsGetEvent.js +7 -9
- package/esm/funcs/eventsGetEvent.js.map +1 -1
- package/esm/funcs/eventsGetHuggingfaceInferenceData.d.ts +3 -2
- package/esm/funcs/eventsGetHuggingfaceInferenceData.d.ts.map +1 -1
- package/esm/funcs/eventsGetHuggingfaceInferenceData.js +15 -4
- package/esm/funcs/eventsGetHuggingfaceInferenceData.js.map +1 -1
- package/esm/funcs/invoicesGetInvoice.js +1 -0
- package/esm/funcs/invoicesGetInvoice.js.map +1 -1
- package/esm/funcs/invoicesUpdateInvoice.d.ts +1 -1
- package/esm/funcs/invoicesUpdateInvoice.js +1 -1
- package/esm/funcs/subscriptionsAddSubscriptionAddon.d.ts +3 -0
- package/esm/funcs/subscriptionsAddSubscriptionAddon.d.ts.map +1 -1
- package/esm/funcs/subscriptionsAddSubscriptionAddon.js +3 -0
- package/esm/funcs/subscriptionsAddSubscriptionAddon.js.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +22 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js +94 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts +16 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts.map +1 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.js +88 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.js.map +1 -0
- package/esm/funcs/subscriptionsRemoveSubscriptionAddon.d.ts +3 -0
- package/esm/funcs/subscriptionsRemoveSubscriptionAddon.d.ts.map +1 -1
- package/esm/funcs/subscriptionsRemoveSubscriptionAddon.js +3 -0
- package/esm/funcs/subscriptionsRemoveSubscriptionAddon.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/http.d.ts +1 -1
- package/esm/lib/http.d.ts.map +1 -1
- package/esm/lib/http.js +1 -1
- package/esm/lib/http.js.map +1 -1
- package/esm/lib/security.d.ts +5 -4
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +4 -5
- package/esm/lib/security.js.map +1 -1
- 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 +10 -2
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts +7 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js +35 -0
- package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
- package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.d.ts +7 -0
- package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.js +35 -0
- package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.js.map +1 -0
- package/esm/mcp-server/tools/eventsGetEvent.js +1 -1
- package/esm/mcp-server/tools/eventsGetEvent.js.map +1 -1
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.d.ts +5 -1
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.d.ts.map +1 -1
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js +8 -3
- package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js.map +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoice.js +1 -1
- package/esm/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.d.ts.map +1 -1
- package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.js +1 -0
- package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js +41 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.js +35 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.d.ts.map +1 -1
- package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.js +1 -0
- package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.js.map +1 -1
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +2 -0
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/addaddonparams.d.ts +8 -0
- package/esm/models/addaddonparams.d.ts.map +1 -0
- package/esm/models/addaddonparams.js +10 -0
- package/esm/models/addaddonparams.js.map +1 -0
- package/esm/models/addaddonref.d.ts +12 -0
- package/esm/models/addaddonref.d.ts.map +1 -0
- package/esm/models/addaddonref.js +14 -0
- package/esm/models/addaddonref.js.map +1 -0
- package/esm/models/addaddonrequest.d.ts +4 -0
- package/esm/models/addaddonrequest.d.ts.map +1 -1
- package/esm/models/addaddonrequest.js +5 -0
- package/esm/models/addaddonrequest.js.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.d.ts +2 -0
- package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.js +3 -0
- package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
- package/esm/models/addaddontosubscriptionresponse.d.ts +31 -0
- package/esm/models/addaddontosubscriptionresponse.d.ts.map +1 -0
- package/esm/models/addaddontosubscriptionresponse.js +31 -0
- package/esm/models/addaddontosubscriptionresponse.js.map +1 -0
- package/esm/models/addonresponse.d.ts +2 -0
- package/esm/models/addonresponse.d.ts.map +1 -1
- package/esm/models/addonresponse.js +2 -0
- package/esm/models/addonresponse.js.map +1 -1
- package/esm/models/addonstatus.d.ts +1 -1
- package/esm/models/addsubscriptionaddonop.d.ts +2 -2
- package/esm/models/addsubscriptionaddonop.d.ts.map +1 -1
- package/esm/models/addsubscriptionaddonop.js +2 -2
- package/esm/models/addsubscriptionaddonop.js.map +1 -1
- package/esm/models/aggregatedentitlement.d.ts +9 -0
- package/esm/models/aggregatedentitlement.d.ts.map +1 -1
- package/esm/models/aggregatedentitlement.js +7 -1
- package/esm/models/aggregatedentitlement.js.map +1 -1
- package/esm/models/aggregatedentitlementbucket.d.ts +14 -0
- package/esm/models/aggregatedentitlementbucket.d.ts.map +1 -0
- package/esm/models/aggregatedentitlementbucket.js +16 -0
- package/esm/models/aggregatedentitlementbucket.js.map +1 -0
- package/esm/models/alertthreshold.d.ts +1 -1
- package/esm/models/alertthreshold.js +1 -1
- package/esm/models/applicationstatus.d.ts +3 -3
- package/esm/models/autotopup.d.ts +7 -0
- package/esm/models/autotopup.d.ts.map +1 -1
- package/esm/models/autotopup.js +7 -0
- package/esm/models/autotopup.js.map +1 -1
- package/esm/models/checkoutaction.d.ts +16 -0
- package/esm/models/checkoutaction.d.ts.map +1 -0
- package/esm/models/checkoutaction.js +17 -0
- package/esm/models/checkoutaction.js.map +1 -0
- package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts +13 -0
- package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts.map +1 -0
- package/esm/models/checkoutjsonbcheckoutconfiguration.js +15 -0
- package/esm/models/checkoutjsonbcheckoutconfiguration.js.map +1 -0
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts +10 -0
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts.map +1 -0
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js +12 -0
- package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js.map +1 -0
- package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts +13 -0
- package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts.map +1 -0
- package/esm/models/checkoutjsonbcheckoutproviderresult.js +13 -0
- package/esm/models/checkoutjsonbcheckoutproviderresult.js.map +1 -0
- package/esm/models/checkoutjsonbcheckoutresult.d.ts +7 -0
- package/esm/models/checkoutjsonbcheckoutresult.d.ts.map +1 -0
- package/esm/models/checkoutjsonbcheckoutresult.js +9 -0
- package/esm/models/checkoutjsonbcheckoutresult.js.map +1 -0
- package/esm/models/checkoutparams.d.ts +16 -0
- package/esm/models/checkoutparams.d.ts.map +1 -0
- package/esm/models/checkoutparams.js +16 -0
- package/esm/models/checkoutparams.js.map +1 -0
- package/esm/models/checkoutpaymentprovider.d.ts +10 -0
- package/esm/models/checkoutpaymentprovider.d.ts.map +1 -0
- package/esm/models/checkoutpaymentprovider.js +11 -0
- package/esm/models/checkoutpaymentprovider.js.map +1 -0
- package/esm/models/checkoutpaymentproviderconfig.d.ts +10 -0
- package/esm/models/checkoutpaymentproviderconfig.d.ts.map +1 -0
- package/esm/models/checkoutpaymentproviderconfig.js +12 -0
- package/esm/models/checkoutpaymentproviderconfig.js.map +1 -0
- package/esm/models/checkoutsessionresponse.d.ts +44 -0
- package/esm/models/checkoutsessionresponse.d.ts.map +1 -0
- package/esm/models/checkoutsessionresponse.js +45 -0
- package/esm/models/checkoutsessionresponse.js.map +1 -0
- package/esm/models/checkoutstatus.d.ts +18 -0
- package/esm/models/checkoutstatus.d.ts.map +1 -0
- package/esm/models/checkoutstatus.js +19 -0
- package/esm/models/checkoutstatus.js.map +1 -0
- package/esm/models/couponassociationresponse.d.ts +4 -2
- package/esm/models/couponassociationresponse.d.ts.map +1 -1
- package/esm/models/couponassociationresponse.js +4 -2
- package/esm/models/couponassociationresponse.js.map +1 -1
- package/esm/models/{coupon.d.ts → couponresponse.d.ts} +3 -3
- package/esm/models/couponresponse.d.ts.map +1 -0
- package/esm/models/{coupon.js → couponresponse.js} +2 -2
- package/esm/models/couponresponse.js.map +1 -0
- package/esm/models/createcreditgrantrequest.d.ts +1 -0
- package/esm/models/createcreditgrantrequest.d.ts.map +1 -1
- package/esm/models/createcreditgrantrequest.js +1 -0
- package/esm/models/createcreditgrantrequest.js.map +1 -1
- package/esm/models/createcustomerrequest.d.ts +4 -1
- package/esm/models/createcustomerrequest.d.ts.map +1 -1
- package/esm/models/createcustomerrequest.js +4 -1
- package/esm/models/createcustomerrequest.js.map +1 -1
- package/esm/models/createinvoicerequest.d.ts +1 -0
- package/esm/models/createinvoicerequest.d.ts.map +1 -1
- package/esm/models/createinvoicerequest.js +1 -0
- package/esm/models/createinvoicerequest.js.map +1 -1
- package/esm/models/createsubscriptionparams.d.ts +16 -0
- package/esm/models/createsubscriptionparams.d.ts.map +1 -0
- package/esm/models/createsubscriptionparams.js +16 -0
- package/esm/models/createsubscriptionparams.js.map +1 -0
- package/esm/models/createsubscriptionrequest.d.ts +3 -1
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +19 -18
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/createsubscriptionresult.d.ts +8 -0
- package/esm/models/createsubscriptionresult.d.ts.map +1 -0
- package/esm/models/createsubscriptionresult.js +10 -0
- package/esm/models/createsubscriptionresult.js.map +1 -0
- package/esm/models/creditgrantresponse.d.ts +1 -0
- package/esm/models/creditgrantresponse.d.ts.map +1 -1
- package/esm/models/creditgrantresponse.js +1 -0
- package/esm/models/creditgrantresponse.js.map +1 -1
- package/esm/models/creditgrantscope.d.ts +2 -0
- package/esm/models/creditgrantscope.d.ts.map +1 -1
- package/esm/models/creditgrantscope.js +2 -0
- package/esm/models/creditgrantscope.js.map +1 -1
- package/esm/models/customer.d.ts +2 -0
- package/esm/models/customer.d.ts.map +1 -1
- package/esm/models/customer.js +2 -0
- package/esm/models/customer.js.map +1 -1
- package/esm/models/customerentitlementsresponse.d.ts +2 -0
- package/esm/models/customerentitlementsresponse.d.ts.map +1 -1
- package/esm/models/customerentitlementsresponse.js +2 -0
- package/esm/models/customerentitlementsresponse.js.map +1 -1
- package/esm/models/customerresponse.d.ts +2 -0
- package/esm/models/customerresponse.d.ts.map +1 -1
- package/esm/models/customerresponse.js +2 -0
- package/esm/models/customerresponse.js.map +1 -1
- package/esm/models/durationunit.d.ts +16 -0
- package/esm/models/durationunit.d.ts.map +1 -0
- package/esm/models/durationunit.js +17 -0
- package/esm/models/durationunit.js.map +1 -0
- package/esm/models/entitlementaggregationmode.d.ts +12 -0
- package/esm/models/entitlementaggregationmode.d.ts.map +1 -0
- package/esm/models/entitlementaggregationmode.js +13 -0
- package/esm/models/entitlementaggregationmode.js.map +1 -0
- package/esm/models/entitlementgrantallocationbehavior.d.ts +12 -0
- package/esm/models/entitlementgrantallocationbehavior.d.ts.map +1 -0
- package/esm/models/entitlementgrantallocationbehavior.js +13 -0
- package/esm/models/entitlementgrantallocationbehavior.js.map +1 -0
- package/esm/models/entitlementgrantdurationunit.d.ts +16 -0
- package/esm/models/entitlementgrantdurationunit.d.ts.map +1 -0
- package/esm/models/entitlementgrantdurationunit.js +17 -0
- package/esm/models/entitlementgrantdurationunit.js.map +1 -0
- package/esm/models/entitlementgrantmeasure.d.ts +12 -0
- package/esm/models/entitlementgrantmeasure.d.ts.map +1 -0
- package/esm/models/entitlementgrantmeasure.js +13 -0
- package/esm/models/entitlementgrantmeasure.js.map +1 -0
- package/esm/models/entitlementresponse.d.ts +13 -0
- package/esm/models/entitlementresponse.d.ts.map +1 -1
- package/esm/models/entitlementresponse.js +12 -0
- package/esm/models/entitlementresponse.js.map +1 -1
- package/esm/models/entitlementsource.d.ts +3 -0
- package/esm/models/entitlementsource.d.ts.map +1 -1
- package/esm/models/entitlementsource.js +1 -0
- package/esm/models/entitlementsource.js.map +1 -1
- package/esm/models/entitychangebehaviour.d.ts +12 -0
- package/esm/models/entitychangebehaviour.d.ts.map +1 -0
- package/esm/models/entitychangebehaviour.js +13 -0
- package/esm/models/entitychangebehaviour.js.map +1 -0
- package/esm/models/entitychangepolicy.d.ts +10 -0
- package/esm/models/entitychangepolicy.d.ts.map +1 -0
- package/esm/models/entitychangepolicy.js +12 -0
- package/esm/models/entitychangepolicy.js.map +1 -0
- package/esm/models/entitychangeresult.d.ts +11 -0
- package/esm/models/entitychangeresult.d.ts.map +1 -0
- package/esm/models/entitychangeresult.js +14 -0
- package/esm/models/entitychangeresult.js.map +1 -0
- package/esm/models/errorcode.d.ts +2 -0
- package/esm/models/errorcode.d.ts.map +1 -1
- package/esm/models/errorcode.js +2 -0
- package/esm/models/errorcode.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +4 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.js +4 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
- package/esm/models/executesubscriptionplanchangev2op.d.ts +12 -0
- package/esm/models/executesubscriptionplanchangev2op.d.ts.map +1 -0
- package/esm/models/executesubscriptionplanchangev2op.js +16 -0
- package/esm/models/executesubscriptionplanchangev2op.js.map +1 -0
- package/esm/models/featuretype.d.ts +2 -0
- package/esm/models/featuretype.d.ts.map +1 -1
- package/esm/models/featuretype.js +2 -0
- package/esm/models/featuretype.js.map +1 -1
- package/esm/models/filteroperatortype.d.ts +2 -0
- package/esm/models/filteroperatortype.d.ts.map +1 -1
- package/esm/models/filteroperatortype.js +2 -0
- package/esm/models/filteroperatortype.js.map +1 -1
- package/esm/models/getcustomerentitlementsbyexternalidop.d.ts +10 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.d.ts.map +1 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.js +14 -0
- package/esm/models/getcustomerentitlementsbyexternalidop.js.map +1 -0
- package/esm/models/gethuggingfacebillingdatarequest.d.ts +6 -0
- package/esm/models/gethuggingfacebillingdatarequest.d.ts.map +1 -0
- package/esm/models/gethuggingfacebillingdatarequest.js +8 -0
- package/esm/models/gethuggingfacebillingdatarequest.js.map +1 -0
- package/esm/models/getinvoiceop.d.ts +1 -0
- package/esm/models/getinvoiceop.d.ts.map +1 -1
- package/esm/models/getinvoiceop.js +1 -0
- package/esm/models/getinvoiceop.js.map +1 -1
- package/esm/models/getsubscriptionsforcustomerop.d.ts +11 -0
- package/esm/models/getsubscriptionsforcustomerop.d.ts.map +1 -0
- package/esm/models/getsubscriptionsforcustomerop.js +15 -0
- package/esm/models/getsubscriptionsforcustomerop.js.map +1 -0
- package/esm/models/getusageanalyticsresponse.d.ts +2 -0
- package/esm/models/getusageanalyticsresponse.d.ts.map +1 -1
- package/esm/models/getusageanalyticsresponse.js +3 -1
- package/esm/models/getusageanalyticsresponse.js.map +1 -1
- package/esm/models/getusagebymeterrequest.d.ts +1 -0
- package/esm/models/getusagebymeterrequest.d.ts.map +1 -1
- package/esm/models/getusagebymeterrequest.js +1 -0
- package/esm/models/getusagebymeterrequest.js.map +1 -1
- package/esm/models/getusagerequest.d.ts +1 -0
- package/esm/models/getusagerequest.d.ts.map +1 -1
- package/esm/models/getusagerequest.js +1 -0
- package/esm/models/getusagerequest.js.map +1 -1
- package/esm/models/groupedinvoicingchildrequest.d.ts +37 -0
- package/esm/models/groupedinvoicingchildrequest.d.ts.map +1 -0
- package/esm/models/groupedinvoicingchildrequest.js +40 -0
- package/esm/models/groupedinvoicingchildrequest.js.map +1 -0
- package/esm/models/integrationentitytype.d.ts +4 -0
- package/esm/models/integrationentitytype.d.ts.map +1 -1
- package/esm/models/integrationentitytype.js +4 -0
- package/esm/models/integrationentitytype.js.map +1 -1
- package/esm/models/invoicelineitemcoupon.d.ts +1 -0
- package/esm/models/invoicelineitemcoupon.d.ts.map +1 -1
- package/esm/models/invoicelineitemcoupon.js +1 -0
- package/esm/models/invoicelineitemcoupon.js.map +1 -1
- package/esm/models/invoicelineitemresponse.d.ts +1 -0
- package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
- package/esm/models/invoicelineitemresponse.js +1 -0
- package/esm/models/invoicelineitemresponse.js.map +1 -1
- package/esm/models/invoiceresponse.d.ts +1 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +1 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/lineitemcommitmentconfig.d.ts.map +1 -1
- package/esm/models/lineitemcommitmentconfig.js +6 -6
- package/esm/models/lineitemcommitmentconfig.js.map +1 -1
- package/esm/models/lineitemquantitychange.d.ts +1 -1
- package/esm/models/lineitemquantitychange.d.ts.map +1 -1
- package/esm/models/lineitemquantitychange.js +1 -1
- package/esm/models/lineitemquantitychange.js.map +1 -1
- package/esm/models/modifysubscriptionlineitem.d.ts +8 -0
- package/esm/models/modifysubscriptionlineitem.d.ts.map +1 -0
- package/esm/models/modifysubscriptionlineitem.js +10 -0
- package/esm/models/modifysubscriptionlineitem.js.map +1 -0
- package/esm/models/modifysubscriptionparams.d.ts +8 -0
- package/esm/models/modifysubscriptionparams.d.ts.map +1 -0
- package/esm/models/modifysubscriptionparams.js +11 -0
- package/esm/models/modifysubscriptionparams.js.map +1 -0
- package/esm/models/overrideentitlementrequest.d.ts +3 -0
- package/esm/models/overrideentitlementrequest.d.ts.map +1 -1
- package/esm/models/overrideentitlementrequest.js +1 -0
- package/esm/models/overrideentitlementrequest.js.map +1 -1
- package/esm/models/pausestatus.d.ts +2 -2
- package/esm/models/paymentaction.d.ts +8 -0
- package/esm/models/paymentaction.d.ts.map +1 -0
- package/esm/models/paymentaction.js +10 -0
- package/esm/models/paymentaction.js.map +1 -0
- package/esm/models/paymentactiontype.d.ts +12 -0
- package/esm/models/paymentactiontype.d.ts.map +1 -0
- package/esm/models/paymentactiontype.js +13 -0
- package/esm/models/paymentactiontype.js.map +1 -0
- package/esm/models/paymentmethodtype.d.ts +20 -0
- package/esm/models/paymentmethodtype.d.ts.map +1 -0
- package/esm/models/paymentmethodtype.js +21 -0
- package/esm/models/paymentmethodtype.js.map +1 -0
- package/esm/models/paymentstatus.d.ts +2 -0
- package/esm/models/paymentstatus.d.ts.map +1 -1
- package/esm/models/paymentstatus.js +2 -0
- package/esm/models/paymentstatus.js.map +1 -1
- package/esm/models/previewsubscriptionplanchangev2op.d.ts +12 -0
- package/esm/models/previewsubscriptionplanchangev2op.d.ts.map +1 -0
- package/esm/models/previewsubscriptionplanchangev2op.js +16 -0
- package/esm/models/previewsubscriptionplanchangev2op.js.map +1 -0
- package/esm/models/removeaddonrequest.js +1 -1
- package/esm/models/removeaddonrequest.js.map +1 -1
- package/esm/models/schedulestatus.d.ts +1 -1
- package/esm/models/submodifyaddonparams.d.ts +11 -0
- package/esm/models/submodifyaddonparams.d.ts.map +1 -0
- package/esm/models/submodifyaddonparams.js +14 -0
- package/esm/models/submodifyaddonparams.js.map +1 -0
- package/esm/models/subscriptionchangeentitypolicies.d.ts +7 -0
- package/esm/models/subscriptionchangeentitypolicies.d.ts.map +1 -0
- package/esm/models/subscriptionchangeentitypolicies.js +9 -0
- package/esm/models/subscriptionchangeentitypolicies.js.map +1 -0
- package/esm/models/subscriptionchangev2request.d.ts +16 -0
- package/esm/models/subscriptionchangev2request.d.ts.map +1 -0
- package/esm/models/subscriptionchangev2request.js +16 -0
- package/esm/models/subscriptionchangev2request.js.map +1 -0
- package/esm/models/subscriptionchangev2response.d.ts +24 -0
- package/esm/models/subscriptionchangev2response.d.ts.map +1 -0
- package/esm/models/subscriptionchangev2response.js +24 -0
- package/esm/models/subscriptionchangev2response.js.map +1 -0
- package/esm/models/subscriptioncouponinput.d.ts.map +1 -1
- package/esm/models/subscriptioncouponinput.js +4 -4
- package/esm/models/subscriptioncouponinput.js.map +1 -1
- package/esm/models/subscriptionfilter.d.ts +1 -0
- package/esm/models/subscriptionfilter.d.ts.map +1 -1
- package/esm/models/subscriptionfilter.js +2 -1
- package/esm/models/subscriptionfilter.js.map +1 -1
- package/esm/models/subscriptioninheritanceconfig.d.ts +2 -0
- package/esm/models/subscriptioninheritanceconfig.d.ts.map +1 -1
- package/esm/models/subscriptioninheritanceconfig.js +6 -4
- package/esm/models/subscriptioninheritanceconfig.js.map +1 -1
- package/esm/models/subscriptionlineitemfilter.d.ts +1 -0
- package/esm/models/subscriptionlineitemfilter.d.ts.map +1 -1
- package/esm/models/subscriptionlineitemfilter.js +2 -1
- package/esm/models/subscriptionlineitemfilter.js.map +1 -1
- package/esm/models/subscriptionlineitemresponse.d.ts +2 -0
- package/esm/models/subscriptionlineitemresponse.d.ts.map +1 -1
- package/esm/models/subscriptionlineitemresponse.js +2 -0
- package/esm/models/subscriptionlineitemresponse.js.map +1 -1
- package/esm/models/subscriptionmodificationaction.d.ts +12 -0
- package/esm/models/subscriptionmodificationaction.d.ts.map +1 -0
- package/esm/models/subscriptionmodificationaction.js +13 -0
- package/esm/models/subscriptionmodificationaction.js.map +1 -0
- package/esm/models/subscriptionmodifyresponse.d.ts +2 -0
- package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -1
- package/esm/models/subscriptionmodifyresponse.js +2 -0
- package/esm/models/subscriptionmodifyresponse.js.map +1 -1
- package/esm/models/subscriptionmodifytype.d.ts +2 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -1
- package/esm/models/subscriptionmodifytype.js +2 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -1
- package/esm/models/subscriptionphasecreaterequest.js +2 -2
- package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
- package/esm/models/subscriptionresponse.d.ts +5 -1
- package/esm/models/subscriptionresponse.d.ts.map +1 -1
- package/esm/models/subscriptionresponse.js +5 -1
- package/esm/models/subscriptionresponse.js.map +1 -1
- package/esm/models/subscriptionresponsev2.d.ts +1 -1
- package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
- package/esm/models/subscriptionresponsev2.js +1 -1
- package/esm/models/subscriptionresponsev2.js.map +1 -1
- package/esm/models/subscriptionstatus.d.ts +1 -1
- package/esm/models/subscriptionsubscriptionlineitem.d.ts +2 -0
- package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
- package/esm/models/subscriptionsubscriptionlineitem.js +2 -0
- package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
- package/esm/models/transactionreason.d.ts +2 -0
- package/esm/models/transactionreason.d.ts.map +1 -1
- package/esm/models/transactionreason.js +2 -0
- package/esm/models/transactionreason.js.map +1 -1
- package/esm/models/transactionstatus.d.ts +1 -1
- package/esm/models/updatecustomerrequest.d.ts +2 -0
- package/esm/models/updatecustomerrequest.d.ts.map +1 -1
- package/esm/models/updatecustomerrequest.js +2 -0
- package/esm/models/updatecustomerrequest.js.map +1 -1
- package/esm/models/updateinvoicerequest.d.ts +1 -0
- package/esm/models/updateinvoicerequest.d.ts.map +1 -1
- package/esm/models/updateinvoicerequest.js +1 -0
- package/esm/models/updateinvoicerequest.js.map +1 -1
- package/esm/models/usageanalyticitem.d.ts +2 -0
- package/esm/models/usageanalyticitem.d.ts.map +1 -1
- package/esm/models/usageanalyticitem.js +3 -1
- package/esm/models/usageanalyticitem.js.map +1 -1
- package/esm/models/usageanalyticpoint.d.ts +2 -0
- package/esm/models/usageanalyticpoint.d.ts.map +1 -1
- package/esm/models/usageanalyticpoint.js +3 -1
- package/esm/models/usageanalyticpoint.js.map +1 -1
- package/esm/models/walletresponse.d.ts +2 -0
- package/esm/models/walletresponse.d.ts.map +1 -1
- package/esm/models/walletresponse.js +2 -0
- package/esm/models/walletresponse.js.map +1 -1
- package/esm/models/wallettopupparams.d.ts +7 -0
- package/esm/models/wallettopupparams.d.ts.map +1 -0
- package/esm/models/wallettopupparams.js +10 -0
- package/esm/models/wallettopupparams.js.map +1 -0
- package/esm/models/wallettransactionresponse.d.ts +1 -0
- package/esm/models/wallettransactionresponse.d.ts.map +1 -1
- package/esm/models/wallettransactionresponse.js +1 -0
- package/esm/models/wallettransactionresponse.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +26 -10
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +27 -11
- package/package.json +9 -2
- package/src/funcs/customersGetCustomerEntitlementsByExternalID.ts +153 -0
- package/src/funcs/customersGetSubscriptionsForCustomer.ts +156 -0
- package/src/funcs/eventsGetEvent.ts +7 -12
- package/src/funcs/eventsGetHuggingfaceInferenceData.ts +22 -1
- package/src/funcs/invoicesGetInvoice.ts +1 -0
- package/src/funcs/invoicesUpdateInvoice.ts +1 -1
- package/src/funcs/subscriptionsAddSubscriptionAddon.ts +3 -0
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.ts +159 -0
- package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +1 -1
- package/src/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.ts +153 -0
- package/src/funcs/subscriptionsRemoveSubscriptionAddon.ts +3 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +10 -2
- package/src/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.ts +45 -0
- package/src/mcp-server/tools/customersGetSubscriptionsForCustomer.ts +45 -0
- package/src/mcp-server/tools/eventsGetEvent.ts +1 -1
- package/src/mcp-server/tools/eventsGetHuggingfaceInferenceData.ts +12 -3
- package/src/mcp-server/tools/invoicesUpdateInvoice.ts +1 -1
- package/src/mcp-server/tools/subscriptionsAddSubscriptionAddon.ts +1 -0
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.ts +51 -0
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +1 -1
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.ts +45 -0
- package/src/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.ts +1 -0
- package/src/mcp-server/tools.ts +2 -0
- package/src/models/addaddonparams.ts +16 -0
- package/src/models/addaddonref.ts +26 -0
- package/src/models/addaddonrequest.ts +12 -0
- package/src/models/addaddontosubscriptionrequest.ts +9 -0
- package/src/models/addaddontosubscriptionresponse.ts +65 -0
- package/src/models/addonresponse.ts +6 -0
- package/src/models/addsubscriptionaddonop.ts +5 -5
- package/src/models/aggregatedentitlement.ts +21 -3
- package/src/models/aggregatedentitlementbucket.ts +35 -0
- package/src/models/alertthreshold.ts +2 -2
- package/src/models/autotopup.ts +14 -0
- package/src/models/checkoutaction.ts +21 -0
- package/src/models/checkoutjsonbcheckoutconfiguration.ts +34 -0
- package/src/models/checkoutjsonbcheckoutpaymentproviderconfig.ts +27 -0
- package/src/models/checkoutjsonbcheckoutproviderresult.ts +32 -0
- package/src/models/checkoutjsonbcheckoutresult.ts +19 -0
- package/src/models/checkoutparams.ts +33 -0
- package/src/models/checkoutpaymentprovider.ts +17 -0
- package/src/models/checkoutpaymentproviderconfig.ts +27 -0
- package/src/models/checkoutsessionresponse.ts +106 -0
- package/src/models/checkoutstatus.ts +23 -0
- package/src/models/couponassociationresponse.ts +9 -3
- package/src/models/{coupon.ts → couponresponse.ts} +2 -2
- package/src/models/createcreditgrantrequest.ts +2 -0
- package/src/models/createcustomerrequest.ts +14 -2
- package/src/models/createinvoicerequest.ts +4 -0
- package/src/models/createsubscriptionparams.ts +30 -0
- package/src/models/createsubscriptionrequest.ts +21 -39
- package/src/models/createsubscriptionresult.ts +19 -0
- package/src/models/creditgrantresponse.ts +2 -0
- package/src/models/creditgrantscope.ts +2 -0
- package/src/models/customer.ts +8 -0
- package/src/models/customerentitlementsresponse.ts +6 -0
- package/src/models/customerresponse.ts +8 -0
- package/src/models/durationunit.ts +21 -0
- package/src/models/entitlementaggregationmode.ts +19 -0
- package/src/models/entitlementgrantallocationbehavior.ts +19 -0
- package/src/models/entitlementgrantdurationunit.ts +23 -0
- package/src/models/entitlementgrantmeasure.ts +19 -0
- package/src/models/entitlementresponse.ts +31 -0
- package/src/models/entitlementsource.ts +2 -0
- package/src/models/entitychangebehaviour.ts +17 -0
- package/src/models/entitychangepolicy.ts +23 -0
- package/src/models/entitychangeresult.ts +28 -0
- package/src/models/errorcode.ts +2 -0
- package/src/models/executesubscriptionmodifyrequest.ts +9 -0
- package/src/models/executesubscriptionplanchangev2op.ts +37 -0
- package/src/models/featuretype.ts +2 -0
- package/src/models/filteroperatortype.ts +2 -0
- package/src/models/getcustomerentitlementsbyexternalidop.ts +31 -0
- package/src/models/gethuggingfacebillingdatarequest.ts +13 -0
- package/src/models/getinvoiceop.ts +4 -0
- package/src/models/getsubscriptionsforcustomerop.ts +35 -0
- package/src/models/getusageanalyticsresponse.ts +7 -1
- package/src/models/getusagebymeterrequest.ts +2 -0
- package/src/models/getusagerequest.ts +2 -0
- package/src/models/groupedinvoicingchildrequest.ts +104 -0
- package/src/models/integrationentitytype.ts +4 -0
- package/src/models/invoicelineitemcoupon.ts +2 -0
- package/src/models/invoicelineitemresponse.ts +4 -0
- package/src/models/invoiceresponse.ts +4 -0
- package/src/models/lineitemcommitmentconfig.ts +6 -10
- package/src/models/lineitemquantitychange.ts +2 -2
- package/src/models/modifysubscriptionlineitem.ts +19 -0
- package/src/models/modifysubscriptionparams.ts +22 -0
- package/src/models/overrideentitlementrequest.ts +4 -0
- package/src/models/paymentaction.ts +19 -0
- package/src/models/paymentactiontype.ts +17 -0
- package/src/models/paymentmethodtype.ts +25 -0
- package/src/models/paymentstatus.ts +2 -0
- package/src/models/previewsubscriptionplanchangev2op.ts +37 -0
- package/src/models/removeaddonrequest.ts +1 -1
- package/src/models/submodifyaddonparams.ts +30 -0
- package/src/models/subscriptionchangeentitypolicies.ts +19 -0
- package/src/models/subscriptionchangev2request.ts +34 -0
- package/src/models/subscriptionchangev2response.ts +56 -0
- package/src/models/subscriptioncouponinput.ts +4 -12
- package/src/models/subscriptionfilter.ts +5 -1
- package/src/models/subscriptioninheritanceconfig.ts +14 -4
- package/src/models/subscriptionlineitemfilter.ts +5 -1
- package/src/models/subscriptionlineitemresponse.ts +3 -0
- package/src/models/subscriptionmodificationaction.ts +19 -0
- package/src/models/subscriptionmodifyresponse.ts +6 -0
- package/src/models/subscriptionmodifytype.ts +2 -0
- package/src/models/subscriptionphasecreaterequest.ts +2 -2
- package/src/models/subscriptionresponse.ts +16 -2
- package/src/models/subscriptionresponsev2.ts +2 -2
- package/src/models/subscriptionsubscriptionlineitem.ts +3 -0
- package/src/models/transactionreason.ts +2 -0
- package/src/models/updatecustomerrequest.ts +8 -0
- package/src/models/updateinvoicerequest.ts +4 -0
- package/src/models/usageanalyticitem.ts +7 -1
- package/src/models/usageanalyticpoint.ts +7 -1
- package/src/models/walletresponse.ts +4 -0
- package/src/models/wallettopupparams.ts +16 -0
- package/src/models/wallettransactionresponse.ts +4 -0
- package/src/tool-names.ts +26 -10
- package/esm/models/coupon.d.ts.map +0 -1
- package/esm/models/coupon.js.map +0 -1
package/manifest.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sensitive": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "2.1.
|
|
51
|
+
"version": "2.1.25",
|
|
52
52
|
"tools": [
|
|
53
53
|
{
|
|
54
54
|
"name": "update-customer",
|
|
@@ -62,6 +62,14 @@
|
|
|
62
62
|
"name": "get-customer-by-external-id",
|
|
63
63
|
"description": "Get customer by external ID\n\nUse when resolving a customer by your app's id (e.g. from your user table). Ideal for integrations that key by external id."
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"name": "get-customer-entitlements-by-external-i-d",
|
|
67
|
+
"description": "Get customer entitlements by external ID\n\nUse when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids)."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "get-subscriptions-for-customer",
|
|
71
|
+
"description": "Get subscriptions for customer by external ID\n\nReturns all subscriptions for a customer looked up by external_id, with line-item meters and entitlements attached (no pagination)."
|
|
72
|
+
},
|
|
65
73
|
{
|
|
66
74
|
"name": "query-customer",
|
|
67
75
|
"description": "Query customers\n\nUse when listing or searching customers (e.g. admin CRM or reporting). Returns a paginated list; supports filtering and sorting."
|
|
@@ -108,7 +116,7 @@
|
|
|
108
116
|
},
|
|
109
117
|
{
|
|
110
118
|
"name": "update-invoice",
|
|
111
|
-
"description": "Update invoice\n\nUse when updating invoice metadata or due date (e.g. PDF URL, net terms).
|
|
119
|
+
"description": "Update invoice\n\nUse when updating invoice metadata or due date (e.g. PDF URL, net terms), or when recalculating this draft invoice's discount from its current standing coupon associations via apply_discount:true (idempotent, does not attach a new coupon). Allowed for invoices in draft or finalized status."
|
|
112
120
|
},
|
|
113
121
|
{
|
|
114
122
|
"name": "trigger-invoice-comms-webhook",
|
|
@@ -156,7 +164,11 @@
|
|
|
156
164
|
},
|
|
157
165
|
{
|
|
158
166
|
"name": "get-huggingface-inference-data",
|
|
159
|
-
"description": "Get Hugging Face inference data\n\nUse when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation)."
|
|
167
|
+
"description": "Get Hugging Face inference data\n\nUse when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation). Reads the meter-usage pipeline."
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "get-event",
|
|
171
|
+
"description": "Get event\n\nUse when debugging a specific event (e.g. why it failed or how it was aggregated). Reads the meter-usage pipeline; includes processing status and step-by-step debug tracker when unprocessed. Uses ?id= query param because event IDs can contain \"/\"."
|
|
160
172
|
},
|
|
161
173
|
{
|
|
162
174
|
"name": "list-raw-events",
|
|
@@ -170,10 +182,6 @@
|
|
|
170
182
|
"name": "get-usage-by-meter",
|
|
171
183
|
"description": "Get usage by meter\n\nUse when showing usage for a specific meter (e.g. dashboard or overage check). Supports time range, filters, and grouping by customer or subscription."
|
|
172
184
|
},
|
|
173
|
-
{
|
|
174
|
-
"name": "get-event",
|
|
175
|
-
"description": "Get event\n\nUse when debugging a specific event (e.g. why it failed or how it was aggregated). Includes processing status and debug info."
|
|
176
|
-
},
|
|
177
185
|
{
|
|
178
186
|
"name": "create-plan",
|
|
179
187
|
"description": "Create plan\n\nUse when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices and entitlements; customers subscribe to plans."
|
|
@@ -236,11 +244,11 @@
|
|
|
236
244
|
},
|
|
237
245
|
{
|
|
238
246
|
"name": "add-subscription-addon",
|
|
239
|
-
"description": "Add addon to subscription\n\nUse when adding an optional product or add-on to an existing subscription (e.g. extra storage or support tier)."
|
|
247
|
+
"description": "Add addon to subscription\n\nDeprecated: use POST /subscriptions/{id}/modify/execute with type \"addon\" and action \"add\", which also supports previewing the proration charge first.\nUse when adding an optional product or add-on to an existing subscription (e.g. extra storage or support tier)."
|
|
240
248
|
},
|
|
241
249
|
{
|
|
242
250
|
"name": "remove-subscription-addon",
|
|
243
|
-
"description": "Remove addon from subscription\n\nUse when removing an add-on from a subscription (e.g. downgrade or opt-out)."
|
|
251
|
+
"description": "Remove addon from subscription\n\nDeprecated: use POST /subscriptions/{id}/modify/execute with type \"addon\" and action \"remove\", which also supports previewing the proration credit first.\nUse when removing an add-on from a subscription (e.g. downgrade or opt-out)."
|
|
244
252
|
},
|
|
245
253
|
{
|
|
246
254
|
"name": "query-subscription-line-items",
|
|
@@ -290,6 +298,14 @@
|
|
|
290
298
|
"name": "preview-subscription-change",
|
|
291
299
|
"description": "Preview subscription plan change\n\nUse when showing a customer the cost of a plan change before they confirm (e.g. upgrade/downgrade preview with proration)."
|
|
292
300
|
},
|
|
301
|
+
{
|
|
302
|
+
"name": "execute-subscription-plan-change-v2",
|
|
303
|
+
"description": "Execute a plan change (v2, swap in place)\n\nChange a subscription's plan in place. Subscription id, billing anchor and period bounds are preserved; line items are sliced and settled in one transaction.\n\nchange_at controls timing. Omitted or 'immediate' applies the change now. 'end_of_period' records a pending schedule that executes at the subscription's current period end: the response returns is_scheduled, schedule_id and scheduled_at instead of a completed change, and nothing is swapped or billed until the boundary.\n\nscheduled_at is resolved from the subscription's current period end at request time. If that period end is already in the past (a backdated start date, a resumed pause, or worker downtime can all leave a subscription behind), the change is due immediately and fires on the next billing scan rather than a period away — inspect scheduled_at to see this.\n\nOnly one plan change may be pending per subscription; request a second one and this returns 400. Cancel the existing schedule via POST /subscriptions/schedules/{schedule_id}/cancel first. Pending schedules are listable via GET /subscriptions/{id}/schedules."
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "preview-subscription-plan-change-v2",
|
|
307
|
+
"description": "Preview a plan change (v2, swap in place)\n\nPreview a subscription plan change without writing. Swap-in-place: subscription id, billing anchor and period bounds are preserved."
|
|
308
|
+
},
|
|
293
309
|
{
|
|
294
310
|
"name": "get-subscription-entitlements",
|
|
295
311
|
"description": "Get subscription entitlements\n\nUse when checking what features or limits a subscription has (e.g. entitlement checks or feature gating). Optional feature_ids to filter."
|
|
@@ -304,11 +320,11 @@
|
|
|
304
320
|
},
|
|
305
321
|
{
|
|
306
322
|
"name": "execute-subscription-modify",
|
|
307
|
-
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or
|
|
323
|
+
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, or addon add/remove)."
|
|
308
324
|
},
|
|
309
325
|
{
|
|
310
326
|
"name": "preview-subscription-modify",
|
|
311
|
-
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or
|
|
327
|
+
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, or addon add/remove) without committing changes."
|
|
312
328
|
},
|
|
313
329
|
{
|
|
314
330
|
"name": "get-subscription-v2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flexprice/mcp-server",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.25",
|
|
4
4
|
"author": "flexprice",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
"zod": "^4.0.0"
|
|
23
23
|
},
|
|
24
24
|
"overrides": {
|
|
25
|
-
"@modelcontextprotocol/sdk": "1.26.0"
|
|
25
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
26
|
+
"hono": ">=4.12.34",
|
|
27
|
+
"fast-uri": ">=4.1.2 <5.0.0",
|
|
28
|
+
"js-yaml": ">=4.3.1 <5.0.0",
|
|
29
|
+
"ip-address": ">=10.3.1 <11.0.0",
|
|
30
|
+
"nanoid@^5.0.0": ">=5.1.16 <6.0.0",
|
|
31
|
+
"brace-expansion@^2.0.0": ">=2.1.4 <3.0.0",
|
|
32
|
+
"body-parser": ">=2.3.0 <3.0.0"
|
|
26
33
|
},
|
|
27
34
|
"devDependencies": {
|
|
28
35
|
"@anthropic-ai/mcpb": "^1.2.0",
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { FlexpriceCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
GetCustomerEntitlementsByExternalIDRequest,
|
|
23
|
+
GetCustomerEntitlementsByExternalIDRequest$zodSchema,
|
|
24
|
+
} from "../models/getcustomerentitlementsbyexternalidop.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get customer entitlements by external ID
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Use when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids).
|
|
33
|
+
*/
|
|
34
|
+
export function customersGetCustomerEntitlementsByExternalID(
|
|
35
|
+
client$: FlexpriceCore,
|
|
36
|
+
request: GetCustomerEntitlementsByExternalIDRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
Response,
|
|
41
|
+
| APIError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client$,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client$: FlexpriceCore,
|
|
59
|
+
request: GetCustomerEntitlementsByExternalIDRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
Response,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed$ = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value$) =>
|
|
79
|
+
GetCustomerEntitlementsByExternalIDRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = null;
|
|
87
|
+
|
|
88
|
+
const pathParams$ = {
|
|
89
|
+
external_id: encodeSimple("external_id", payload$.external_id, {
|
|
90
|
+
explode: false,
|
|
91
|
+
charEncoding: "percent",
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
const path$ = pathToFunc("/customers/external/{external_id}/entitlements")(
|
|
95
|
+
pathParams$,
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const headers$ = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
}));
|
|
101
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client$._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
+
operationID: "getCustomerEntitlementsByExternalID",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
securitySource: client$._options.security,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client$._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || [
|
|
115
|
+
"429",
|
|
116
|
+
"500",
|
|
117
|
+
"502",
|
|
118
|
+
"503",
|
|
119
|
+
"504",
|
|
120
|
+
],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client$._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "GET",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path$,
|
|
128
|
+
headers: headers$,
|
|
129
|
+
body: body$,
|
|
130
|
+
userAgent: client$._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
132
|
+
|| -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req$ = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client$._do(req$, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: [],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
147
|
+
}
|
|
148
|
+
return [doResult, {
|
|
149
|
+
status: "complete",
|
|
150
|
+
"request": req$,
|
|
151
|
+
response: doResult.value,
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { FlexpriceCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
GetSubscriptionsForCustomerRequest,
|
|
23
|
+
GetSubscriptionsForCustomerRequest$zodSchema,
|
|
24
|
+
} from "../models/getsubscriptionsforcustomerop.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get subscriptions for customer by external ID
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Returns all subscriptions for a customer looked up by external_id, with line-item meters and entitlements attached (no pagination).
|
|
33
|
+
*/
|
|
34
|
+
export function customersGetSubscriptionsForCustomer(
|
|
35
|
+
client$: FlexpriceCore,
|
|
36
|
+
request: GetSubscriptionsForCustomerRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
Response,
|
|
41
|
+
| APIError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client$,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client$: FlexpriceCore,
|
|
59
|
+
request: GetSubscriptionsForCustomerRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
Response,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed$ = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value$) => GetSubscriptionsForCustomerRequest$zodSchema.parse(value$),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed$.ok) {
|
|
82
|
+
return [parsed$, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload$ = parsed$.value;
|
|
85
|
+
const body$ = null;
|
|
86
|
+
|
|
87
|
+
const pathParams$ = {
|
|
88
|
+
external_id: encodeSimple("external_id", payload$.external_id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
const path$ = pathToFunc("/customers/external/{external_id}/subscriptions")(
|
|
94
|
+
pathParams$,
|
|
95
|
+
);
|
|
96
|
+
const query$ = encodeFormQuery({
|
|
97
|
+
"expand": payload$.expand,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const headers$ = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
104
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
|
+
|
|
106
|
+
const context = {
|
|
107
|
+
options: client$._options,
|
|
108
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
109
|
+
operationID: "getSubscriptionsForCustomer",
|
|
110
|
+
oAuth2Scopes: null,
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
securitySource: client$._options.security,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client$._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || [
|
|
117
|
+
"429",
|
|
118
|
+
"500",
|
|
119
|
+
"502",
|
|
120
|
+
"503",
|
|
121
|
+
"504",
|
|
122
|
+
],
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const requestRes = client$._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
127
|
+
method: "GET",
|
|
128
|
+
baseURL: options?.serverURL,
|
|
129
|
+
path: path$,
|
|
130
|
+
headers: headers$,
|
|
131
|
+
query: query$,
|
|
132
|
+
body: body$,
|
|
133
|
+
userAgent: client$._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
135
|
+
|| -1,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req$ = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client$._do(req$, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: [],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
150
|
+
}
|
|
151
|
+
return [doResult, {
|
|
152
|
+
status: "complete",
|
|
153
|
+
"request": req$,
|
|
154
|
+
response: doResult.value,
|
|
155
|
+
}];
|
|
156
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FlexpriceCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Get event
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Use when debugging a specific event (e.g. why it failed or how it was aggregated).
|
|
32
|
+
* Use when debugging a specific event (e.g. why it failed or how it was aggregated). Reads the meter-usage pipeline; includes processing status and step-by-step debug tracker when unprocessed. Uses ?id= query param because event IDs can contain "/".
|
|
33
33
|
*/
|
|
34
34
|
export function eventsGetEvent(
|
|
35
35
|
client$: FlexpriceCore,
|
|
@@ -83,16 +83,10 @@ async function $do(
|
|
|
83
83
|
}
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
85
|
const body$ = null;
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
charEncoding: "percent",
|
|
91
|
-
}),
|
|
92
|
-
};
|
|
93
|
-
const path$ = pathToFunc("/events/{id}")(
|
|
94
|
-
pathParams$,
|
|
95
|
-
);
|
|
86
|
+
const path$ = pathToFunc("/events/lookup")();
|
|
87
|
+
const query$ = encodeFormQuery({
|
|
88
|
+
"id": payload$.id,
|
|
89
|
+
});
|
|
96
90
|
|
|
97
91
|
const headers$ = new Headers(compactMap({
|
|
98
92
|
Accept: "application/json",
|
|
@@ -125,6 +119,7 @@ async function $do(
|
|
|
125
119
|
baseURL: options?.serverURL,
|
|
126
120
|
path: path$,
|
|
127
121
|
headers: headers$,
|
|
122
|
+
query: query$,
|
|
128
123
|
body: body$,
|
|
129
124
|
userAgent: client$._options.userAgent,
|
|
130
125
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FlexpriceCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
6
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
8
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -16,6 +18,10 @@ import {
|
|
|
16
18
|
UnexpectedClientError,
|
|
17
19
|
} from "../models/errors/httpclienterrors.js";
|
|
18
20
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
GetHuggingFaceBillingDataRequest,
|
|
23
|
+
GetHuggingFaceBillingDataRequest$zodSchema,
|
|
24
|
+
} from "../models/gethuggingfacebillingdatarequest.js";
|
|
19
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
20
26
|
import { Result } from "../types/fp.js";
|
|
21
27
|
|
|
@@ -23,10 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
23
29
|
* Get Hugging Face inference data
|
|
24
30
|
*
|
|
25
31
|
* @remarks
|
|
26
|
-
* Use when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation).
|
|
32
|
+
* Use when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation). Reads the meter-usage pipeline.
|
|
27
33
|
*/
|
|
28
34
|
export function eventsGetHuggingfaceInferenceData(
|
|
29
35
|
client$: FlexpriceCore,
|
|
36
|
+
request: GetHuggingFaceBillingDataRequest,
|
|
30
37
|
options?: RequestOptions,
|
|
31
38
|
): APIPromise<
|
|
32
39
|
Result<
|
|
@@ -42,12 +49,14 @@ export function eventsGetHuggingfaceInferenceData(
|
|
|
42
49
|
> {
|
|
43
50
|
return new APIPromise($do(
|
|
44
51
|
client$,
|
|
52
|
+
request,
|
|
45
53
|
options,
|
|
46
54
|
));
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
async function $do(
|
|
50
58
|
client$: FlexpriceCore,
|
|
59
|
+
request: GetHuggingFaceBillingDataRequest,
|
|
51
60
|
options?: RequestOptions,
|
|
52
61
|
): Promise<
|
|
53
62
|
[
|
|
@@ -64,9 +73,20 @@ async function $do(
|
|
|
64
73
|
APICall,
|
|
65
74
|
]
|
|
66
75
|
> {
|
|
76
|
+
const parsed$ = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value$) => GetHuggingFaceBillingDataRequest$zodSchema.parse(value$),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed$.ok) {
|
|
82
|
+
return [parsed$, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload$ = parsed$.value;
|
|
85
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
67
86
|
const path$ = pathToFunc("/events/huggingface-inference")();
|
|
68
87
|
|
|
69
88
|
const headers$ = new Headers(compactMap({
|
|
89
|
+
"Content-Type": "application/json",
|
|
70
90
|
Accept: "application/json",
|
|
71
91
|
}));
|
|
72
92
|
const securityInput = await extractSecurity(client$._options.security);
|
|
@@ -97,6 +117,7 @@ async function $do(
|
|
|
97
117
|
baseURL: options?.serverURL,
|
|
98
118
|
path: path$,
|
|
99
119
|
headers: headers$,
|
|
120
|
+
body: body$,
|
|
100
121
|
userAgent: client$._options.userAgent,
|
|
101
122
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
102
123
|
|| -1,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Update invoice
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Use when updating invoice metadata or due date (e.g. PDF URL, net terms).
|
|
32
|
+
* Use when updating invoice metadata or due date (e.g. PDF URL, net terms), or when recalculating this draft invoice's discount from its current standing coupon associations via apply_discount:true (idempotent, does not attach a new coupon). Allowed for invoices in draft or finalized status.
|
|
33
33
|
*/
|
|
34
34
|
export function invoicesUpdateInvoice(
|
|
35
35
|
client$: FlexpriceCore,
|
|
@@ -29,7 +29,10 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Add addon to subscription
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
+
* Deprecated: use POST /subscriptions/{id}/modify/execute with type "addon" and action "add", which also supports previewing the proration charge first.
|
|
32
33
|
* Use when adding an optional product or add-on to an existing subscription (e.g. extra storage or support tier).
|
|
34
|
+
*
|
|
35
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
33
36
|
*/
|
|
34
37
|
export function subscriptionsAddSubscriptionAddon(
|
|
35
38
|
client$: FlexpriceCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Execute subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or
|
|
32
|
+
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, or addon add/remove).
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsExecuteSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|