@flexprice/mcp-server 2.1.19 → 2.1.24

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.
Files changed (622) hide show
  1. package/bin/mcp-server.js +5440 -3801
  2. package/bin/mcp-server.js.map +190 -142
  3. package/bun.lock +47 -40
  4. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts +16 -0
  5. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
  6. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js +87 -0
  7. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
  8. package/esm/funcs/customersGetSubscriptionsForCustomer.d.ts +16 -0
  9. package/esm/funcs/customersGetSubscriptionsForCustomer.d.ts.map +1 -0
  10. package/esm/funcs/customersGetSubscriptionsForCustomer.js +91 -0
  11. package/esm/funcs/customersGetSubscriptionsForCustomer.js.map +1 -0
  12. package/esm/funcs/eventsGetEvent.d.ts +1 -1
  13. package/esm/funcs/eventsGetEvent.js +7 -9
  14. package/esm/funcs/eventsGetEvent.js.map +1 -1
  15. package/esm/funcs/eventsGetHuggingfaceInferenceData.d.ts +3 -2
  16. package/esm/funcs/eventsGetHuggingfaceInferenceData.d.ts.map +1 -1
  17. package/esm/funcs/eventsGetHuggingfaceInferenceData.js +15 -4
  18. package/esm/funcs/eventsGetHuggingfaceInferenceData.js.map +1 -1
  19. package/esm/funcs/invoicesGetInvoice.js +1 -0
  20. package/esm/funcs/invoicesGetInvoice.js.map +1 -1
  21. package/esm/funcs/invoicesUpdateInvoice.d.ts +1 -1
  22. package/esm/funcs/invoicesUpdateInvoice.js +1 -1
  23. package/esm/funcs/subscriptionsAddSubscriptionAddon.d.ts +3 -0
  24. package/esm/funcs/subscriptionsAddSubscriptionAddon.d.ts.map +1 -1
  25. package/esm/funcs/subscriptionsAddSubscriptionAddon.js +3 -0
  26. package/esm/funcs/subscriptionsAddSubscriptionAddon.js.map +1 -1
  27. package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
  28. package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +1 -1
  29. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +16 -0
  30. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -0
  31. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js +88 -0
  32. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -0
  33. package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +1 -1
  34. package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +1 -1
  35. package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts +16 -0
  36. package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts.map +1 -0
  37. package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.js +88 -0
  38. package/esm/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.js.map +1 -0
  39. package/esm/funcs/subscriptionsRemoveSubscriptionAddon.d.ts +3 -0
  40. package/esm/funcs/subscriptionsRemoveSubscriptionAddon.d.ts.map +1 -1
  41. package/esm/funcs/subscriptionsRemoveSubscriptionAddon.js +3 -0
  42. package/esm/funcs/subscriptionsRemoveSubscriptionAddon.js.map +1 -1
  43. package/esm/lib/config.d.ts +3 -3
  44. package/esm/lib/config.js +3 -3
  45. package/esm/lib/http.d.ts +1 -1
  46. package/esm/lib/http.d.ts.map +1 -1
  47. package/esm/lib/http.js +1 -1
  48. package/esm/lib/http.js.map +1 -1
  49. package/esm/lib/retries.js +7 -0
  50. package/esm/lib/retries.js.map +1 -1
  51. package/esm/lib/security.d.ts +5 -4
  52. package/esm/lib/security.d.ts.map +1 -1
  53. package/esm/lib/security.js +4 -5
  54. package/esm/lib/security.js.map +1 -1
  55. package/esm/mcp-server/mcp-server.js +1 -1
  56. package/esm/mcp-server/server.d.ts.map +1 -1
  57. package/esm/mcp-server/server.js +10 -2
  58. package/esm/mcp-server/server.js.map +1 -1
  59. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts +7 -0
  60. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
  61. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js +35 -0
  62. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
  63. package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.d.ts +7 -0
  64. package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.d.ts.map +1 -0
  65. package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.js +35 -0
  66. package/esm/mcp-server/tools/customersGetSubscriptionsForCustomer.js.map +1 -0
  67. package/esm/mcp-server/tools/eventsGetEvent.js +1 -1
  68. package/esm/mcp-server/tools/eventsGetEvent.js.map +1 -1
  69. package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.d.ts +5 -1
  70. package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.d.ts.map +1 -1
  71. package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js +8 -3
  72. package/esm/mcp-server/tools/eventsGetHuggingfaceInferenceData.js.map +1 -1
  73. package/esm/mcp-server/tools/invoicesUpdateInvoice.js +1 -1
  74. package/esm/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -1
  75. package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.d.ts.map +1 -1
  76. package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.js +1 -0
  77. package/esm/mcp-server/tools/subscriptionsAddSubscriptionAddon.js.map +1 -1
  78. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +1 -1
  79. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
  80. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +7 -0
  81. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -0
  82. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js +35 -0
  83. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -0
  84. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +1 -1
  85. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -1
  86. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts +7 -0
  87. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.d.ts.map +1 -0
  88. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.js +35 -0
  89. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.js.map +1 -0
  90. package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.d.ts.map +1 -1
  91. package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.js +1 -0
  92. package/esm/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.js.map +1 -1
  93. package/esm/mcp-server/tools.d.ts.map +1 -1
  94. package/esm/mcp-server/tools.js +2 -0
  95. package/esm/mcp-server/tools.js.map +1 -1
  96. package/esm/models/addaddonparams.d.ts +8 -0
  97. package/esm/models/addaddonparams.d.ts.map +1 -0
  98. package/esm/models/addaddonparams.js +10 -0
  99. package/esm/models/addaddonparams.js.map +1 -0
  100. package/esm/models/addaddonref.d.ts +12 -0
  101. package/esm/models/addaddonref.d.ts.map +1 -0
  102. package/esm/models/addaddonref.js +14 -0
  103. package/esm/models/addaddonref.js.map +1 -0
  104. package/esm/models/addaddonrequest.d.ts +4 -0
  105. package/esm/models/addaddonrequest.d.ts.map +1 -1
  106. package/esm/models/addaddonrequest.js +5 -0
  107. package/esm/models/addaddonrequest.js.map +1 -1
  108. package/esm/models/addaddontosubscriptionrequest.d.ts +2 -0
  109. package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
  110. package/esm/models/addaddontosubscriptionrequest.js +3 -0
  111. package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
  112. package/esm/models/addaddontosubscriptionresponse.d.ts +31 -0
  113. package/esm/models/addaddontosubscriptionresponse.d.ts.map +1 -0
  114. package/esm/models/addaddontosubscriptionresponse.js +31 -0
  115. package/esm/models/addaddontosubscriptionresponse.js.map +1 -0
  116. package/esm/models/addonresponse.d.ts +2 -0
  117. package/esm/models/addonresponse.d.ts.map +1 -1
  118. package/esm/models/addonresponse.js +2 -0
  119. package/esm/models/addonresponse.js.map +1 -1
  120. package/esm/models/addonstatus.d.ts +1 -1
  121. package/esm/models/addsubscriptionaddonop.d.ts +2 -2
  122. package/esm/models/addsubscriptionaddonop.d.ts.map +1 -1
  123. package/esm/models/addsubscriptionaddonop.js +2 -2
  124. package/esm/models/addsubscriptionaddonop.js.map +1 -1
  125. package/esm/models/aggregatedentitlement.d.ts +9 -0
  126. package/esm/models/aggregatedentitlement.d.ts.map +1 -1
  127. package/esm/models/aggregatedentitlement.js +7 -1
  128. package/esm/models/aggregatedentitlement.js.map +1 -1
  129. package/esm/models/aggregatedentitlementbucket.d.ts +14 -0
  130. package/esm/models/aggregatedentitlementbucket.d.ts.map +1 -0
  131. package/esm/models/aggregatedentitlementbucket.js +16 -0
  132. package/esm/models/aggregatedentitlementbucket.js.map +1 -0
  133. package/esm/models/alertthreshold.d.ts +1 -1
  134. package/esm/models/alertthreshold.js +1 -1
  135. package/esm/models/applicationstatus.d.ts +3 -3
  136. package/esm/models/autotopup.d.ts +7 -0
  137. package/esm/models/autotopup.d.ts.map +1 -1
  138. package/esm/models/autotopup.js +7 -0
  139. package/esm/models/autotopup.js.map +1 -1
  140. package/esm/models/checkoutaction.d.ts +16 -0
  141. package/esm/models/checkoutaction.d.ts.map +1 -0
  142. package/esm/models/checkoutaction.js +17 -0
  143. package/esm/models/checkoutaction.js.map +1 -0
  144. package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts +13 -0
  145. package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts.map +1 -0
  146. package/esm/models/checkoutjsonbcheckoutconfiguration.js +15 -0
  147. package/esm/models/checkoutjsonbcheckoutconfiguration.js.map +1 -0
  148. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts +10 -0
  149. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts.map +1 -0
  150. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js +12 -0
  151. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js.map +1 -0
  152. package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts +13 -0
  153. package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts.map +1 -0
  154. package/esm/models/checkoutjsonbcheckoutproviderresult.js +13 -0
  155. package/esm/models/checkoutjsonbcheckoutproviderresult.js.map +1 -0
  156. package/esm/models/checkoutjsonbcheckoutresult.d.ts +7 -0
  157. package/esm/models/checkoutjsonbcheckoutresult.d.ts.map +1 -0
  158. package/esm/models/checkoutjsonbcheckoutresult.js +9 -0
  159. package/esm/models/checkoutjsonbcheckoutresult.js.map +1 -0
  160. package/esm/models/checkoutparams.d.ts +16 -0
  161. package/esm/models/checkoutparams.d.ts.map +1 -0
  162. package/esm/models/checkoutparams.js +16 -0
  163. package/esm/models/checkoutparams.js.map +1 -0
  164. package/esm/models/checkoutpaymentprovider.d.ts +10 -0
  165. package/esm/models/checkoutpaymentprovider.d.ts.map +1 -0
  166. package/esm/models/checkoutpaymentprovider.js +11 -0
  167. package/esm/models/checkoutpaymentprovider.js.map +1 -0
  168. package/esm/models/checkoutpaymentproviderconfig.d.ts +10 -0
  169. package/esm/models/checkoutpaymentproviderconfig.d.ts.map +1 -0
  170. package/esm/models/checkoutpaymentproviderconfig.js +12 -0
  171. package/esm/models/checkoutpaymentproviderconfig.js.map +1 -0
  172. package/esm/models/checkoutsessionresponse.d.ts +44 -0
  173. package/esm/models/checkoutsessionresponse.d.ts.map +1 -0
  174. package/esm/models/checkoutsessionresponse.js +45 -0
  175. package/esm/models/checkoutsessionresponse.js.map +1 -0
  176. package/esm/models/checkoutstatus.d.ts +18 -0
  177. package/esm/models/checkoutstatus.d.ts.map +1 -0
  178. package/esm/models/checkoutstatus.js +19 -0
  179. package/esm/models/checkoutstatus.js.map +1 -0
  180. package/esm/models/couponassociationresponse.d.ts +4 -2
  181. package/esm/models/couponassociationresponse.d.ts.map +1 -1
  182. package/esm/models/couponassociationresponse.js +4 -2
  183. package/esm/models/couponassociationresponse.js.map +1 -1
  184. package/esm/models/{coupon.d.ts → couponresponse.d.ts} +3 -3
  185. package/esm/models/couponresponse.d.ts.map +1 -0
  186. package/esm/models/{coupon.js → couponresponse.js} +2 -2
  187. package/esm/models/couponresponse.js.map +1 -0
  188. package/esm/models/createcreditgrantrequest.d.ts +1 -0
  189. package/esm/models/createcreditgrantrequest.d.ts.map +1 -1
  190. package/esm/models/createcreditgrantrequest.js +1 -0
  191. package/esm/models/createcreditgrantrequest.js.map +1 -1
  192. package/esm/models/createcustomerrequest.d.ts +4 -1
  193. package/esm/models/createcustomerrequest.d.ts.map +1 -1
  194. package/esm/models/createcustomerrequest.js +4 -1
  195. package/esm/models/createcustomerrequest.js.map +1 -1
  196. package/esm/models/createinvoicerequest.d.ts +1 -0
  197. package/esm/models/createinvoicerequest.d.ts.map +1 -1
  198. package/esm/models/createinvoicerequest.js +1 -0
  199. package/esm/models/createinvoicerequest.js.map +1 -1
  200. package/esm/models/createsubscriptionparams.d.ts +16 -0
  201. package/esm/models/createsubscriptionparams.d.ts.map +1 -0
  202. package/esm/models/createsubscriptionparams.js +16 -0
  203. package/esm/models/createsubscriptionparams.js.map +1 -0
  204. package/esm/models/createsubscriptionrequest.d.ts +3 -1
  205. package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
  206. package/esm/models/createsubscriptionrequest.js +19 -18
  207. package/esm/models/createsubscriptionrequest.js.map +1 -1
  208. package/esm/models/createsubscriptionresult.d.ts +8 -0
  209. package/esm/models/createsubscriptionresult.d.ts.map +1 -0
  210. package/esm/models/createsubscriptionresult.js +10 -0
  211. package/esm/models/createsubscriptionresult.js.map +1 -0
  212. package/esm/models/creditgrantresponse.d.ts +1 -0
  213. package/esm/models/creditgrantresponse.d.ts.map +1 -1
  214. package/esm/models/creditgrantresponse.js +1 -0
  215. package/esm/models/creditgrantresponse.js.map +1 -1
  216. package/esm/models/creditgrantscope.d.ts +2 -0
  217. package/esm/models/creditgrantscope.d.ts.map +1 -1
  218. package/esm/models/creditgrantscope.js +2 -0
  219. package/esm/models/creditgrantscope.js.map +1 -1
  220. package/esm/models/customer.d.ts +2 -0
  221. package/esm/models/customer.d.ts.map +1 -1
  222. package/esm/models/customer.js +2 -0
  223. package/esm/models/customer.js.map +1 -1
  224. package/esm/models/customerentitlementsresponse.d.ts +2 -0
  225. package/esm/models/customerentitlementsresponse.d.ts.map +1 -1
  226. package/esm/models/customerentitlementsresponse.js +2 -0
  227. package/esm/models/customerentitlementsresponse.js.map +1 -1
  228. package/esm/models/customerresponse.d.ts +2 -0
  229. package/esm/models/customerresponse.d.ts.map +1 -1
  230. package/esm/models/customerresponse.js +2 -0
  231. package/esm/models/customerresponse.js.map +1 -1
  232. package/esm/models/durationunit.d.ts +16 -0
  233. package/esm/models/durationunit.d.ts.map +1 -0
  234. package/esm/models/durationunit.js +17 -0
  235. package/esm/models/durationunit.js.map +1 -0
  236. package/esm/models/entitlementaggregationmode.d.ts +12 -0
  237. package/esm/models/entitlementaggregationmode.d.ts.map +1 -0
  238. package/esm/models/entitlementaggregationmode.js +13 -0
  239. package/esm/models/entitlementaggregationmode.js.map +1 -0
  240. package/esm/models/entitlementgrantdurationunit.d.ts +14 -0
  241. package/esm/models/entitlementgrantdurationunit.d.ts.map +1 -0
  242. package/esm/models/entitlementgrantdurationunit.js +15 -0
  243. package/esm/models/entitlementgrantdurationunit.js.map +1 -0
  244. package/esm/models/entitlementgrantmeasure.d.ts +12 -0
  245. package/esm/models/entitlementgrantmeasure.d.ts.map +1 -0
  246. package/esm/models/entitlementgrantmeasure.js +13 -0
  247. package/esm/models/entitlementgrantmeasure.js.map +1 -0
  248. package/esm/models/entitlementresponse.d.ts +11 -0
  249. package/esm/models/entitlementresponse.d.ts.map +1 -1
  250. package/esm/models/entitlementresponse.js +9 -0
  251. package/esm/models/entitlementresponse.js.map +1 -1
  252. package/esm/models/entitlementsource.d.ts +3 -0
  253. package/esm/models/entitlementsource.d.ts.map +1 -1
  254. package/esm/models/entitlementsource.js +1 -0
  255. package/esm/models/entitlementsource.js.map +1 -1
  256. package/esm/models/entitychangebehaviour.d.ts +12 -0
  257. package/esm/models/entitychangebehaviour.d.ts.map +1 -0
  258. package/esm/models/entitychangebehaviour.js +13 -0
  259. package/esm/models/entitychangebehaviour.js.map +1 -0
  260. package/esm/models/entitychangepolicy.d.ts +10 -0
  261. package/esm/models/entitychangepolicy.d.ts.map +1 -0
  262. package/esm/models/entitychangepolicy.js +12 -0
  263. package/esm/models/entitychangepolicy.js.map +1 -0
  264. package/esm/models/entitychangeresult.d.ts +11 -0
  265. package/esm/models/entitychangeresult.d.ts.map +1 -0
  266. package/esm/models/entitychangeresult.js +14 -0
  267. package/esm/models/entitychangeresult.js.map +1 -0
  268. package/esm/models/errorcode.d.ts +2 -0
  269. package/esm/models/errorcode.d.ts.map +1 -1
  270. package/esm/models/errorcode.js +2 -0
  271. package/esm/models/errorcode.js.map +1 -1
  272. package/esm/models/executesubscriptionmodifyrequest.d.ts +4 -0
  273. package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
  274. package/esm/models/executesubscriptionmodifyrequest.js +4 -0
  275. package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
  276. package/esm/models/executesubscriptionplanchangev2op.d.ts +12 -0
  277. package/esm/models/executesubscriptionplanchangev2op.d.ts.map +1 -0
  278. package/esm/models/executesubscriptionplanchangev2op.js +16 -0
  279. package/esm/models/executesubscriptionplanchangev2op.js.map +1 -0
  280. package/esm/models/featuretype.d.ts +2 -0
  281. package/esm/models/featuretype.d.ts.map +1 -1
  282. package/esm/models/featuretype.js +2 -0
  283. package/esm/models/featuretype.js.map +1 -1
  284. package/esm/models/filteroperatortype.d.ts +2 -0
  285. package/esm/models/filteroperatortype.d.ts.map +1 -1
  286. package/esm/models/filteroperatortype.js +2 -0
  287. package/esm/models/filteroperatortype.js.map +1 -1
  288. package/esm/models/getcustomerentitlementsbyexternalidop.d.ts +10 -0
  289. package/esm/models/getcustomerentitlementsbyexternalidop.d.ts.map +1 -0
  290. package/esm/models/getcustomerentitlementsbyexternalidop.js +14 -0
  291. package/esm/models/getcustomerentitlementsbyexternalidop.js.map +1 -0
  292. package/esm/models/gethuggingfacebillingdatarequest.d.ts +6 -0
  293. package/esm/models/gethuggingfacebillingdatarequest.d.ts.map +1 -0
  294. package/esm/models/gethuggingfacebillingdatarequest.js +8 -0
  295. package/esm/models/gethuggingfacebillingdatarequest.js.map +1 -0
  296. package/esm/models/getinvoiceop.d.ts +1 -0
  297. package/esm/models/getinvoiceop.d.ts.map +1 -1
  298. package/esm/models/getinvoiceop.js +1 -0
  299. package/esm/models/getinvoiceop.js.map +1 -1
  300. package/esm/models/getsubscriptionsforcustomerop.d.ts +11 -0
  301. package/esm/models/getsubscriptionsforcustomerop.d.ts.map +1 -0
  302. package/esm/models/getsubscriptionsforcustomerop.js +15 -0
  303. package/esm/models/getsubscriptionsforcustomerop.js.map +1 -0
  304. package/esm/models/getusageanalyticsresponse.d.ts +2 -0
  305. package/esm/models/getusageanalyticsresponse.d.ts.map +1 -1
  306. package/esm/models/getusageanalyticsresponse.js +3 -1
  307. package/esm/models/getusageanalyticsresponse.js.map +1 -1
  308. package/esm/models/getusagebymeterrequest.d.ts +1 -0
  309. package/esm/models/getusagebymeterrequest.d.ts.map +1 -1
  310. package/esm/models/getusagebymeterrequest.js +1 -0
  311. package/esm/models/getusagebymeterrequest.js.map +1 -1
  312. package/esm/models/getusagerequest.d.ts +2 -0
  313. package/esm/models/getusagerequest.d.ts.map +1 -1
  314. package/esm/models/getusagerequest.js +3 -1
  315. package/esm/models/getusagerequest.js.map +1 -1
  316. package/esm/models/groupedinvoicingchildrequest.d.ts +37 -0
  317. package/esm/models/groupedinvoicingchildrequest.d.ts.map +1 -0
  318. package/esm/models/groupedinvoicingchildrequest.js +40 -0
  319. package/esm/models/groupedinvoicingchildrequest.js.map +1 -0
  320. package/esm/models/integrationentitytype.d.ts +2 -0
  321. package/esm/models/integrationentitytype.d.ts.map +1 -1
  322. package/esm/models/integrationentitytype.js +2 -0
  323. package/esm/models/integrationentitytype.js.map +1 -1
  324. package/esm/models/invoicelineitemcoupon.d.ts +1 -0
  325. package/esm/models/invoicelineitemcoupon.d.ts.map +1 -1
  326. package/esm/models/invoicelineitemcoupon.js +1 -0
  327. package/esm/models/invoicelineitemcoupon.js.map +1 -1
  328. package/esm/models/invoicelineitemresponse.d.ts +1 -0
  329. package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
  330. package/esm/models/invoicelineitemresponse.js +1 -0
  331. package/esm/models/invoicelineitemresponse.js.map +1 -1
  332. package/esm/models/invoiceresponse.d.ts +1 -0
  333. package/esm/models/invoiceresponse.d.ts.map +1 -1
  334. package/esm/models/invoiceresponse.js +1 -0
  335. package/esm/models/invoiceresponse.js.map +1 -1
  336. package/esm/models/lineitemcommitmentconfig.d.ts.map +1 -1
  337. package/esm/models/lineitemcommitmentconfig.js +6 -6
  338. package/esm/models/lineitemcommitmentconfig.js.map +1 -1
  339. package/esm/models/lineitemquantitychange.d.ts +1 -1
  340. package/esm/models/lineitemquantitychange.d.ts.map +1 -1
  341. package/esm/models/lineitemquantitychange.js +1 -1
  342. package/esm/models/lineitemquantitychange.js.map +1 -1
  343. package/esm/models/modifysubscriptionlineitem.d.ts +8 -0
  344. package/esm/models/modifysubscriptionlineitem.d.ts.map +1 -0
  345. package/esm/models/modifysubscriptionlineitem.js +10 -0
  346. package/esm/models/modifysubscriptionlineitem.js.map +1 -0
  347. package/esm/models/modifysubscriptionparams.d.ts +8 -0
  348. package/esm/models/modifysubscriptionparams.d.ts.map +1 -0
  349. package/esm/models/modifysubscriptionparams.js +11 -0
  350. package/esm/models/modifysubscriptionparams.js.map +1 -0
  351. package/esm/models/overrideentitlementrequest.d.ts +3 -0
  352. package/esm/models/overrideentitlementrequest.d.ts.map +1 -1
  353. package/esm/models/overrideentitlementrequest.js +1 -0
  354. package/esm/models/overrideentitlementrequest.js.map +1 -1
  355. package/esm/models/pausestatus.d.ts +2 -2
  356. package/esm/models/paymentaction.d.ts +8 -0
  357. package/esm/models/paymentaction.d.ts.map +1 -0
  358. package/esm/models/paymentaction.js +10 -0
  359. package/esm/models/paymentaction.js.map +1 -0
  360. package/esm/models/paymentactiontype.d.ts +12 -0
  361. package/esm/models/paymentactiontype.d.ts.map +1 -0
  362. package/esm/models/paymentactiontype.js +13 -0
  363. package/esm/models/paymentactiontype.js.map +1 -0
  364. package/esm/models/paymentmethodtype.d.ts +20 -0
  365. package/esm/models/paymentmethodtype.d.ts.map +1 -0
  366. package/esm/models/paymentmethodtype.js +21 -0
  367. package/esm/models/paymentmethodtype.js.map +1 -0
  368. package/esm/models/paymentstatus.d.ts +2 -0
  369. package/esm/models/paymentstatus.d.ts.map +1 -1
  370. package/esm/models/paymentstatus.js +2 -0
  371. package/esm/models/paymentstatus.js.map +1 -1
  372. package/esm/models/pointbucket.d.ts +7 -0
  373. package/esm/models/pointbucket.d.ts.map +1 -0
  374. package/esm/models/pointbucket.js +9 -0
  375. package/esm/models/pointbucket.js.map +1 -0
  376. package/esm/models/previewsubscriptionplanchangev2op.d.ts +12 -0
  377. package/esm/models/previewsubscriptionplanchangev2op.d.ts.map +1 -0
  378. package/esm/models/previewsubscriptionplanchangev2op.js +16 -0
  379. package/esm/models/previewsubscriptionplanchangev2op.js.map +1 -0
  380. package/esm/models/removeaddonrequest.js +1 -1
  381. package/esm/models/removeaddonrequest.js.map +1 -1
  382. package/esm/models/schedulestatus.d.ts +1 -1
  383. package/esm/models/submodifyaddonparams.d.ts +11 -0
  384. package/esm/models/submodifyaddonparams.d.ts.map +1 -0
  385. package/esm/models/submodifyaddonparams.js +14 -0
  386. package/esm/models/submodifyaddonparams.js.map +1 -0
  387. package/esm/models/submodifycouponparams.d.ts +1 -1
  388. package/esm/models/submodifycouponparams.d.ts.map +1 -1
  389. package/esm/models/submodifycouponparams.js +1 -1
  390. package/esm/models/submodifycouponparams.js.map +1 -1
  391. package/esm/models/submodifytaxparams.d.ts +1 -1
  392. package/esm/models/submodifytaxparams.d.ts.map +1 -1
  393. package/esm/models/submodifytaxparams.js +1 -1
  394. package/esm/models/submodifytaxparams.js.map +1 -1
  395. package/esm/models/subscriptionchangeentitypolicies.d.ts +7 -0
  396. package/esm/models/subscriptionchangeentitypolicies.d.ts.map +1 -0
  397. package/esm/models/subscriptionchangeentitypolicies.js +9 -0
  398. package/esm/models/subscriptionchangeentitypolicies.js.map +1 -0
  399. package/esm/models/subscriptionchangev2request.d.ts +14 -0
  400. package/esm/models/subscriptionchangev2request.d.ts.map +1 -0
  401. package/esm/models/subscriptionchangev2request.js +14 -0
  402. package/esm/models/subscriptionchangev2request.js.map +1 -0
  403. package/esm/models/subscriptionchangev2response.d.ts +21 -0
  404. package/esm/models/subscriptionchangev2response.d.ts.map +1 -0
  405. package/esm/models/subscriptionchangev2response.js +21 -0
  406. package/esm/models/subscriptionchangev2response.js.map +1 -0
  407. package/esm/models/subscriptioncouponinput.d.ts.map +1 -1
  408. package/esm/models/subscriptioncouponinput.js +4 -4
  409. package/esm/models/subscriptioncouponinput.js.map +1 -1
  410. package/esm/models/subscriptionfilter.d.ts +1 -0
  411. package/esm/models/subscriptionfilter.d.ts.map +1 -1
  412. package/esm/models/subscriptionfilter.js +2 -1
  413. package/esm/models/subscriptionfilter.js.map +1 -1
  414. package/esm/models/subscriptioninheritanceconfig.d.ts +2 -0
  415. package/esm/models/subscriptioninheritanceconfig.d.ts.map +1 -1
  416. package/esm/models/subscriptioninheritanceconfig.js +6 -4
  417. package/esm/models/subscriptioninheritanceconfig.js.map +1 -1
  418. package/esm/models/subscriptionlineitemfilter.d.ts +1 -0
  419. package/esm/models/subscriptionlineitemfilter.d.ts.map +1 -1
  420. package/esm/models/subscriptionlineitemfilter.js +2 -1
  421. package/esm/models/subscriptionlineitemfilter.js.map +1 -1
  422. package/esm/models/subscriptionlineitemresponse.d.ts +2 -0
  423. package/esm/models/subscriptionlineitemresponse.d.ts.map +1 -1
  424. package/esm/models/subscriptionlineitemresponse.js +2 -0
  425. package/esm/models/subscriptionlineitemresponse.js.map +1 -1
  426. package/esm/models/subscriptionmodificationaction.d.ts +12 -0
  427. package/esm/models/subscriptionmodificationaction.d.ts.map +1 -0
  428. package/esm/models/subscriptionmodificationaction.js +13 -0
  429. package/esm/models/subscriptionmodificationaction.js.map +1 -0
  430. package/esm/models/subscriptionmodifyresponse.d.ts +2 -0
  431. package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -1
  432. package/esm/models/subscriptionmodifyresponse.js +2 -0
  433. package/esm/models/subscriptionmodifyresponse.js.map +1 -1
  434. package/esm/models/subscriptionmodifytype.d.ts +2 -0
  435. package/esm/models/subscriptionmodifytype.d.ts.map +1 -1
  436. package/esm/models/subscriptionmodifytype.js +2 -0
  437. package/esm/models/subscriptionmodifytype.js.map +1 -1
  438. package/esm/models/subscriptionphasecreaterequest.js +2 -2
  439. package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
  440. package/esm/models/subscriptionresponse.d.ts +5 -1
  441. package/esm/models/subscriptionresponse.d.ts.map +1 -1
  442. package/esm/models/subscriptionresponse.js +5 -1
  443. package/esm/models/subscriptionresponse.js.map +1 -1
  444. package/esm/models/subscriptionresponsev2.d.ts +1 -1
  445. package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
  446. package/esm/models/subscriptionresponsev2.js +1 -1
  447. package/esm/models/subscriptionresponsev2.js.map +1 -1
  448. package/esm/models/subscriptionstatus.d.ts +1 -1
  449. package/esm/models/subscriptionsubscriptionlineitem.d.ts +2 -0
  450. package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
  451. package/esm/models/subscriptionsubscriptionlineitem.js +2 -0
  452. package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
  453. package/esm/models/transactionreason.d.ts +2 -0
  454. package/esm/models/transactionreason.d.ts.map +1 -1
  455. package/esm/models/transactionreason.js +2 -0
  456. package/esm/models/transactionreason.js.map +1 -1
  457. package/esm/models/transactionstatus.d.ts +1 -1
  458. package/esm/models/updatecustomerrequest.d.ts +2 -0
  459. package/esm/models/updatecustomerrequest.d.ts.map +1 -1
  460. package/esm/models/updatecustomerrequest.js +2 -0
  461. package/esm/models/updatecustomerrequest.js.map +1 -1
  462. package/esm/models/updateinvoicerequest.d.ts +1 -0
  463. package/esm/models/updateinvoicerequest.d.ts.map +1 -1
  464. package/esm/models/updateinvoicerequest.js +1 -0
  465. package/esm/models/updateinvoicerequest.js.map +1 -1
  466. package/esm/models/usageanalyticitem.d.ts +2 -0
  467. package/esm/models/usageanalyticitem.d.ts.map +1 -1
  468. package/esm/models/usageanalyticitem.js +3 -1
  469. package/esm/models/usageanalyticitem.js.map +1 -1
  470. package/esm/models/usageanalyticpoint.d.ts +4 -2
  471. package/esm/models/usageanalyticpoint.d.ts.map +1 -1
  472. package/esm/models/usageanalyticpoint.js +5 -3
  473. package/esm/models/usageanalyticpoint.js.map +1 -1
  474. package/esm/models/walletresponse.d.ts +2 -0
  475. package/esm/models/walletresponse.d.ts.map +1 -1
  476. package/esm/models/walletresponse.js +2 -0
  477. package/esm/models/walletresponse.js.map +1 -1
  478. package/esm/models/wallettopupparams.d.ts +7 -0
  479. package/esm/models/wallettopupparams.d.ts.map +1 -0
  480. package/esm/models/wallettopupparams.js +10 -0
  481. package/esm/models/wallettopupparams.js.map +1 -0
  482. package/esm/models/wallettransactionresponse.d.ts +1 -0
  483. package/esm/models/wallettransactionresponse.d.ts.map +1 -1
  484. package/esm/models/wallettransactionresponse.js +1 -0
  485. package/esm/models/wallettransactionresponse.js.map +1 -1
  486. package/esm/tool-names.d.ts.map +1 -1
  487. package/esm/tool-names.js +26 -10
  488. package/esm/tool-names.js.map +1 -1
  489. package/esm/tsconfig.tsbuildinfo +1 -1
  490. package/manifest.json +27 -11
  491. package/package.json +9 -2
  492. package/src/funcs/customersGetCustomerEntitlementsByExternalID.ts +153 -0
  493. package/src/funcs/customersGetSubscriptionsForCustomer.ts +156 -0
  494. package/src/funcs/eventsGetEvent.ts +7 -12
  495. package/src/funcs/eventsGetHuggingfaceInferenceData.ts +22 -1
  496. package/src/funcs/invoicesGetInvoice.ts +1 -0
  497. package/src/funcs/invoicesUpdateInvoice.ts +1 -1
  498. package/src/funcs/subscriptionsAddSubscriptionAddon.ts +3 -0
  499. package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +1 -1
  500. package/src/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.ts +153 -0
  501. package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +1 -1
  502. package/src/funcs/subscriptionsPreviewSubscriptionPlanChangeV2.ts +153 -0
  503. package/src/funcs/subscriptionsRemoveSubscriptionAddon.ts +3 -0
  504. package/src/lib/config.ts +3 -3
  505. package/src/lib/http.ts +3 -1
  506. package/src/lib/retries.ts +8 -0
  507. package/src/lib/security.ts +10 -5
  508. package/src/mcp-server/mcp-server.ts +1 -1
  509. package/src/mcp-server/server.ts +10 -2
  510. package/src/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.ts +45 -0
  511. package/src/mcp-server/tools/customersGetSubscriptionsForCustomer.ts +45 -0
  512. package/src/mcp-server/tools/eventsGetEvent.ts +1 -1
  513. package/src/mcp-server/tools/eventsGetHuggingfaceInferenceData.ts +12 -3
  514. package/src/mcp-server/tools/invoicesUpdateInvoice.ts +1 -1
  515. package/src/mcp-server/tools/subscriptionsAddSubscriptionAddon.ts +1 -0
  516. package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +1 -1
  517. package/src/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.ts +45 -0
  518. package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +1 -1
  519. package/src/mcp-server/tools/subscriptionsPreviewSubscriptionPlanChangeV2.ts +45 -0
  520. package/src/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.ts +1 -0
  521. package/src/mcp-server/tools.ts +2 -0
  522. package/src/models/addaddonparams.ts +16 -0
  523. package/src/models/addaddonref.ts +26 -0
  524. package/src/models/addaddonrequest.ts +12 -0
  525. package/src/models/addaddontosubscriptionrequest.ts +9 -0
  526. package/src/models/addaddontosubscriptionresponse.ts +65 -0
  527. package/src/models/addonresponse.ts +6 -0
  528. package/src/models/addsubscriptionaddonop.ts +5 -5
  529. package/src/models/aggregatedentitlement.ts +21 -3
  530. package/src/models/aggregatedentitlementbucket.ts +35 -0
  531. package/src/models/alertthreshold.ts +2 -2
  532. package/src/models/autotopup.ts +14 -0
  533. package/src/models/checkoutaction.ts +21 -0
  534. package/src/models/checkoutjsonbcheckoutconfiguration.ts +34 -0
  535. package/src/models/checkoutjsonbcheckoutpaymentproviderconfig.ts +27 -0
  536. package/src/models/checkoutjsonbcheckoutproviderresult.ts +32 -0
  537. package/src/models/checkoutjsonbcheckoutresult.ts +19 -0
  538. package/src/models/checkoutparams.ts +33 -0
  539. package/src/models/checkoutpaymentprovider.ts +17 -0
  540. package/src/models/checkoutpaymentproviderconfig.ts +27 -0
  541. package/src/models/checkoutsessionresponse.ts +106 -0
  542. package/src/models/checkoutstatus.ts +23 -0
  543. package/src/models/couponassociationresponse.ts +9 -3
  544. package/src/models/{coupon.ts → couponresponse.ts} +2 -2
  545. package/src/models/createcreditgrantrequest.ts +2 -0
  546. package/src/models/createcustomerrequest.ts +14 -2
  547. package/src/models/createinvoicerequest.ts +4 -0
  548. package/src/models/createsubscriptionparams.ts +30 -0
  549. package/src/models/createsubscriptionrequest.ts +21 -39
  550. package/src/models/createsubscriptionresult.ts +19 -0
  551. package/src/models/creditgrantresponse.ts +2 -0
  552. package/src/models/creditgrantscope.ts +2 -0
  553. package/src/models/customer.ts +8 -0
  554. package/src/models/customerentitlementsresponse.ts +6 -0
  555. package/src/models/customerresponse.ts +8 -0
  556. package/src/models/durationunit.ts +21 -0
  557. package/src/models/entitlementaggregationmode.ts +19 -0
  558. package/src/models/entitlementgrantdurationunit.ts +21 -0
  559. package/src/models/entitlementgrantmeasure.ts +19 -0
  560. package/src/models/entitlementresponse.ts +24 -0
  561. package/src/models/entitlementsource.ts +2 -0
  562. package/src/models/entitychangebehaviour.ts +17 -0
  563. package/src/models/entitychangepolicy.ts +23 -0
  564. package/src/models/entitychangeresult.ts +28 -0
  565. package/src/models/errorcode.ts +2 -0
  566. package/src/models/executesubscriptionmodifyrequest.ts +9 -0
  567. package/src/models/executesubscriptionplanchangev2op.ts +37 -0
  568. package/src/models/featuretype.ts +2 -0
  569. package/src/models/filteroperatortype.ts +2 -0
  570. package/src/models/getcustomerentitlementsbyexternalidop.ts +31 -0
  571. package/src/models/gethuggingfacebillingdatarequest.ts +13 -0
  572. package/src/models/getinvoiceop.ts +4 -0
  573. package/src/models/getsubscriptionsforcustomerop.ts +35 -0
  574. package/src/models/getusageanalyticsresponse.ts +7 -1
  575. package/src/models/getusagebymeterrequest.ts +2 -0
  576. package/src/models/getusagerequest.ts +7 -1
  577. package/src/models/groupedinvoicingchildrequest.ts +104 -0
  578. package/src/models/integrationentitytype.ts +2 -0
  579. package/src/models/invoicelineitemcoupon.ts +2 -0
  580. package/src/models/invoicelineitemresponse.ts +4 -0
  581. package/src/models/invoiceresponse.ts +4 -0
  582. package/src/models/lineitemcommitmentconfig.ts +6 -10
  583. package/src/models/lineitemquantitychange.ts +2 -2
  584. package/src/models/modifysubscriptionlineitem.ts +19 -0
  585. package/src/models/modifysubscriptionparams.ts +22 -0
  586. package/src/models/overrideentitlementrequest.ts +4 -0
  587. package/src/models/paymentaction.ts +19 -0
  588. package/src/models/paymentactiontype.ts +17 -0
  589. package/src/models/paymentmethodtype.ts +25 -0
  590. package/src/models/paymentstatus.ts +2 -0
  591. package/src/models/pointbucket.ts +15 -0
  592. package/src/models/previewsubscriptionplanchangev2op.ts +37 -0
  593. package/src/models/removeaddonrequest.ts +1 -1
  594. package/src/models/submodifyaddonparams.ts +30 -0
  595. package/src/models/submodifycouponparams.ts +2 -2
  596. package/src/models/submodifytaxparams.ts +4 -4
  597. package/src/models/subscriptionchangeentitypolicies.ts +19 -0
  598. package/src/models/subscriptionchangev2request.ts +31 -0
  599. package/src/models/subscriptionchangev2response.ts +48 -0
  600. package/src/models/subscriptioncouponinput.ts +4 -12
  601. package/src/models/subscriptionfilter.ts +5 -1
  602. package/src/models/subscriptioninheritanceconfig.ts +14 -4
  603. package/src/models/subscriptionlineitemfilter.ts +5 -1
  604. package/src/models/subscriptionlineitemresponse.ts +3 -0
  605. package/src/models/subscriptionmodificationaction.ts +19 -0
  606. package/src/models/subscriptionmodifyresponse.ts +6 -0
  607. package/src/models/subscriptionmodifytype.ts +2 -0
  608. package/src/models/subscriptionphasecreaterequest.ts +2 -2
  609. package/src/models/subscriptionresponse.ts +16 -2
  610. package/src/models/subscriptionresponsev2.ts +2 -2
  611. package/src/models/subscriptionsubscriptionlineitem.ts +3 -0
  612. package/src/models/transactionreason.ts +2 -0
  613. package/src/models/updatecustomerrequest.ts +8 -0
  614. package/src/models/updateinvoicerequest.ts +4 -0
  615. package/src/models/usageanalyticitem.ts +7 -1
  616. package/src/models/usageanalyticpoint.ts +11 -6
  617. package/src/models/walletresponse.ts +4 -0
  618. package/src/models/wallettopupparams.ts +16 -0
  619. package/src/models/wallettransactionresponse.ts +4 -0
  620. package/src/tool-names.ts +26 -10
  621. package/esm/models/coupon.d.ts.map +0 -1
  622. 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.19",
51
+ "version": "2.1.24",
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). For paid invoices only safe fields can be updated."
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."
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 tax)."
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 tax) without committing changes."
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.19",
3
+ "version": "2.1.24",
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 { encodeSimple } from "../lib/encodings.js";
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). Includes processing status and debug info.
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 pathParams$ = {
88
- id: encodeSimple("id", payload$.id, {
89
- explode: false,
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,
@@ -98,6 +98,7 @@ async function $do(
98
98
  "group_by": payload$.group_by,
99
99
  }, { explode: false }),
100
100
  encodeFormQuery({
101
+ "expand": payload$.expand,
101
102
  "expand_by_source": payload$.expand_by_source,
102
103
  }),
103
104
  );
@@ -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). For paid invoices only safe fields can be updated.
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 tax).
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,