@flexprice/mcp-server 2.0.20 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (788) hide show
  1. package/bin/mcp-server.js +6007 -4324
  2. package/bin/mcp-server.js.map +221 -177
  3. package/bun.lock +79 -63
  4. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts +16 -0
  5. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
  6. package/esm/funcs/{subscriptionsListSubscriptionPauses.js → customersGetCustomerEntitlementsByExternalID.js} +9 -9
  7. package/esm/funcs/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
  8. package/esm/funcs/{plansPostPlansIdClone.d.ts → plansClonePlan.d.ts} +3 -3
  9. package/esm/funcs/plansClonePlan.d.ts.map +1 -0
  10. package/esm/funcs/{plansPostPlansIdClone.js → plansClonePlan.js} +5 -5
  11. package/esm/funcs/plansClonePlan.js.map +1 -0
  12. package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +4 -4
  13. package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts.map +1 -1
  14. package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +4 -4
  15. package/esm/funcs/subscriptionsExecuteSubscriptionModify.js.map +1 -1
  16. package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +16 -0
  17. package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
  18. package/esm/funcs/{subscriptionsResumeSubscription.js → subscriptionsPreviewSubscriptionModify.js} +8 -8
  19. package/esm/funcs/subscriptionsPreviewSubscriptionModify.js.map +1 -0
  20. package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts +16 -0
  21. package/esm/funcs/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
  22. package/esm/funcs/{subscriptionsPauseSubscription.js → subscriptionsQuerySubscriptionLineItems.js} +10 -16
  23. package/esm/funcs/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
  24. package/esm/landing-page.d.ts.map +1 -1
  25. package/esm/landing-page.js +8 -2
  26. package/esm/landing-page.js.map +1 -1
  27. package/esm/lib/config.d.ts +3 -3
  28. package/esm/lib/config.js +3 -3
  29. package/esm/lib/encodings.d.ts +1 -0
  30. package/esm/lib/encodings.d.ts.map +1 -1
  31. package/esm/lib/encodings.js +7 -1
  32. package/esm/lib/encodings.js.map +1 -1
  33. package/esm/lib/primitives.d.ts +1 -0
  34. package/esm/lib/primitives.d.ts.map +1 -1
  35. package/esm/lib/primitives.js +17 -0
  36. package/esm/lib/primitives.js.map +1 -1
  37. package/esm/lib/retries.js +7 -0
  38. package/esm/lib/retries.js.map +1 -1
  39. package/esm/lib/sdks.js +0 -2
  40. package/esm/lib/sdks.js.map +1 -1
  41. package/esm/mcp-server/cli/serve/command.js +1 -1
  42. package/esm/mcp-server/cli/serve/command.js.map +1 -1
  43. package/esm/mcp-server/cli/serve/impl.js +1 -1
  44. package/esm/mcp-server/cli/serve/impl.js.map +1 -1
  45. package/esm/mcp-server/cli/start/command.js +1 -1
  46. package/esm/mcp-server/cli/start/command.js.map +1 -1
  47. package/esm/mcp-server/mcp-server.js +1 -1
  48. package/esm/mcp-server/server.js +9 -9
  49. package/esm/mcp-server/server.js.map +1 -1
  50. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts +7 -0
  51. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.d.ts.map +1 -0
  52. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js +35 -0
  53. package/esm/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.js.map +1 -0
  54. package/esm/mcp-server/tools/plansClonePlan.d.ts +7 -0
  55. package/esm/mcp-server/tools/plansClonePlan.d.ts.map +1 -0
  56. package/esm/mcp-server/tools/{plansPostPlansIdClone.js → plansClonePlan.js} +7 -7
  57. package/esm/mcp-server/tools/plansClonePlan.js.map +1 -0
  58. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
  59. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +4 -4
  60. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
  61. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts +7 -0
  62. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
  63. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +35 -0
  64. package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -0
  65. package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts +7 -0
  66. package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.d.ts.map +1 -0
  67. package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js +35 -0
  68. package/esm/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.js.map +1 -0
  69. package/esm/mcp-server/tools.d.ts.map +1 -1
  70. package/esm/mcp-server/tools.js +11 -9
  71. package/esm/mcp-server/tools.js.map +1 -1
  72. package/esm/models/addaddonrequest.d.ts +4 -0
  73. package/esm/models/addaddonrequest.d.ts.map +1 -1
  74. package/esm/models/addaddonrequest.js +4 -0
  75. package/esm/models/addaddonrequest.js.map +1 -1
  76. package/esm/models/addaddontosubscriptionrequest.d.ts +4 -0
  77. package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
  78. package/esm/models/addaddontosubscriptionrequest.js +4 -0
  79. package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
  80. package/esm/models/addon.d.ts +0 -2
  81. package/esm/models/addon.d.ts.map +1 -1
  82. package/esm/models/addon.js +0 -2
  83. package/esm/models/addon.js.map +1 -1
  84. package/esm/models/addoncadence.d.ts +12 -0
  85. package/esm/models/addoncadence.d.ts.map +1 -0
  86. package/esm/models/addoncadence.js +13 -0
  87. package/esm/models/addoncadence.js.map +1 -0
  88. package/esm/models/addonresponse.d.ts +0 -2
  89. package/esm/models/addonresponse.d.ts.map +1 -1
  90. package/esm/models/addonresponse.js +0 -2
  91. package/esm/models/addonresponse.js.map +1 -1
  92. package/esm/models/addonstatus.d.ts +3 -3
  93. package/esm/models/addonstatus.js +2 -2
  94. package/esm/models/addonstatus.js.map +1 -1
  95. package/esm/models/address.d.ts +11 -0
  96. package/esm/models/address.d.ts.map +1 -0
  97. package/esm/models/address.js +13 -0
  98. package/esm/models/address.js.map +1 -0
  99. package/esm/models/aggregatedentitlement.d.ts +5 -0
  100. package/esm/models/aggregatedentitlement.d.ts.map +1 -1
  101. package/esm/models/aggregatedentitlement.js +3 -1
  102. package/esm/models/aggregatedentitlement.js.map +1 -1
  103. package/esm/models/alertstate.d.ts +16 -0
  104. package/esm/models/alertstate.d.ts.map +1 -0
  105. package/esm/models/alertstate.js +17 -0
  106. package/esm/models/alertstate.js.map +1 -0
  107. package/esm/models/applicationstatus.d.ts +1 -1
  108. package/esm/models/attributedtocustomerresult.d.ts +11 -0
  109. package/esm/models/attributedtocustomerresult.d.ts.map +1 -0
  110. package/esm/models/attributedtocustomerresult.js +13 -0
  111. package/esm/models/attributedtocustomerresult.js.map +1 -0
  112. package/esm/models/autotopup.d.ts +9 -0
  113. package/esm/models/autotopup.d.ts.map +1 -0
  114. package/esm/models/autotopup.js +11 -0
  115. package/esm/models/autotopup.js.map +1 -0
  116. package/esm/models/billingcadence.d.ts +0 -2
  117. package/esm/models/billingcadence.d.ts.map +1 -1
  118. package/esm/models/billingcadence.js +0 -2
  119. package/esm/models/billingcadence.js.map +1 -1
  120. package/esm/models/billingperiod.d.ts +2 -0
  121. package/esm/models/billingperiod.d.ts.map +1 -1
  122. package/esm/models/billingperiod.js +2 -0
  123. package/esm/models/billingperiod.js.map +1 -1
  124. package/esm/models/bucket.d.ts +7 -0
  125. package/esm/models/bucket.d.ts.map +1 -0
  126. package/esm/models/bucket.js +9 -0
  127. package/esm/models/bucket.js.map +1 -0
  128. package/esm/models/bucketsummary.d.ts +18 -0
  129. package/esm/models/bucketsummary.d.ts.map +1 -0
  130. package/esm/models/bucketsummary.js +20 -0
  131. package/esm/models/bucketsummary.js.map +1 -0
  132. package/esm/models/cancelsubscriptionrequest.d.ts.map +1 -1
  133. package/esm/models/cancelsubscriptionrequest.js +1 -1
  134. package/esm/models/cancelsubscriptionrequest.js.map +1 -1
  135. package/esm/models/changedinvoice.d.ts +14 -0
  136. package/esm/models/changedinvoice.d.ts.map +1 -0
  137. package/esm/models/changedinvoice.js +16 -0
  138. package/esm/models/changedinvoice.js.map +1 -0
  139. package/esm/models/changedinvoiceaction.d.ts +18 -0
  140. package/esm/models/changedinvoiceaction.d.ts.map +1 -0
  141. package/esm/models/changedinvoiceaction.js +16 -0
  142. package/esm/models/changedinvoiceaction.js.map +1 -0
  143. package/esm/models/changedinvoicestatus.d.ts +18 -0
  144. package/esm/models/changedinvoicestatus.d.ts.map +1 -0
  145. package/esm/models/changedinvoicestatus.js +16 -0
  146. package/esm/models/changedinvoicestatus.js.map +1 -0
  147. package/esm/models/changedlineitem.d.ts +12 -0
  148. package/esm/models/changedlineitem.d.ts.map +1 -0
  149. package/esm/models/changedlineitem.js +14 -0
  150. package/esm/models/changedlineitem.js.map +1 -0
  151. package/esm/models/changedlineitemaction.d.ts +20 -0
  152. package/esm/models/changedlineitemaction.d.ts.map +1 -0
  153. package/esm/models/changedlineitemaction.js +18 -0
  154. package/esm/models/changedlineitemaction.js.map +1 -0
  155. package/esm/models/changedresources.d.ts +11 -0
  156. package/esm/models/changedresources.d.ts.map +1 -0
  157. package/esm/models/changedresources.js +13 -0
  158. package/esm/models/changedresources.js.map +1 -0
  159. package/esm/models/changedsubscription.d.ts +12 -0
  160. package/esm/models/changedsubscription.d.ts.map +1 -0
  161. package/esm/models/changedsubscription.js +15 -0
  162. package/esm/models/changedsubscription.js.map +1 -0
  163. package/esm/models/changedsubscriptionaction.d.ts +18 -0
  164. package/esm/models/changedsubscriptionaction.d.ts.map +1 -0
  165. package/esm/models/changedsubscriptionaction.js +16 -0
  166. package/esm/models/changedsubscriptionaction.js.map +1 -0
  167. package/esm/models/cloneplanop.d.ts +12 -0
  168. package/esm/models/cloneplanop.d.ts.map +1 -0
  169. package/esm/models/{postplansidcloneop.js → cloneplanop.js} +4 -3
  170. package/esm/models/cloneplanop.js.map +1 -0
  171. package/esm/models/commitmentbucketrequest.d.ts +16 -0
  172. package/esm/models/commitmentbucketrequest.d.ts.map +1 -0
  173. package/esm/models/commitmentbucketrequest.js +18 -0
  174. package/esm/models/commitmentbucketrequest.js.map +1 -0
  175. package/esm/models/couponassociationresponse.d.ts +4 -2
  176. package/esm/models/couponassociationresponse.d.ts.map +1 -1
  177. package/esm/models/couponassociationresponse.js +4 -2
  178. package/esm/models/couponassociationresponse.js.map +1 -1
  179. package/esm/models/{coupon.d.ts → couponresponse.d.ts} +4 -3
  180. package/esm/models/couponresponse.d.ts.map +1 -0
  181. package/esm/models/{coupon.js → couponresponse.js} +3 -2
  182. package/esm/models/couponresponse.js.map +1 -0
  183. package/esm/models/createcustomerrequest.d.ts +1 -0
  184. package/esm/models/createcustomerrequest.d.ts.map +1 -1
  185. package/esm/models/createcustomerrequest.js +1 -0
  186. package/esm/models/createcustomerrequest.js.map +1 -1
  187. package/esm/models/createinvoicelineitemrequest.d.ts +3 -0
  188. package/esm/models/createinvoicelineitemrequest.d.ts.map +1 -1
  189. package/esm/models/createinvoicelineitemrequest.js +3 -0
  190. package/esm/models/createinvoicelineitemrequest.js.map +1 -1
  191. package/esm/models/createinvoicerequest.d.ts +1 -0
  192. package/esm/models/createinvoicerequest.d.ts.map +1 -1
  193. package/esm/models/createinvoicerequest.js +1 -0
  194. package/esm/models/createinvoicerequest.js.map +1 -1
  195. package/esm/models/createpricerequest.d.ts +1 -3
  196. package/esm/models/createpricerequest.d.ts.map +1 -1
  197. package/esm/models/createpricerequest.js +1 -3
  198. package/esm/models/createpricerequest.js.map +1 -1
  199. package/esm/models/createsubscriptionlineitemrequest.d.ts +4 -0
  200. package/esm/models/createsubscriptionlineitemrequest.d.ts.map +1 -1
  201. package/esm/models/createsubscriptionlineitemrequest.js +5 -0
  202. package/esm/models/createsubscriptionlineitemrequest.js.map +1 -1
  203. package/esm/models/createsubscriptionrequest.d.ts +6 -5
  204. package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
  205. package/esm/models/createsubscriptionrequest.js +10 -7
  206. package/esm/models/createsubscriptionrequest.js.map +1 -1
  207. package/esm/models/creditbreakdown.d.ts +7 -0
  208. package/esm/models/creditbreakdown.d.ts.map +1 -0
  209. package/esm/models/creditbreakdown.js +9 -0
  210. package/esm/models/creditbreakdown.js.map +1 -0
  211. package/esm/models/creditgrantcadence.d.ts +1 -1
  212. package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
  213. package/esm/models/customer.d.ts +1 -0
  214. package/esm/models/customer.d.ts.map +1 -1
  215. package/esm/models/customer.js +1 -0
  216. package/esm/models/customer.js.map +1 -1
  217. package/esm/models/customerentitlementsresponse.d.ts +2 -0
  218. package/esm/models/customerentitlementsresponse.d.ts.map +1 -1
  219. package/esm/models/customerentitlementsresponse.js +2 -0
  220. package/esm/models/customerentitlementsresponse.js.map +1 -1
  221. package/esm/models/customerfilter.d.ts +3 -0
  222. package/esm/models/customerfilter.d.ts.map +1 -1
  223. package/esm/models/customerfilter.js +1 -0
  224. package/esm/models/customerfilter.js.map +1 -1
  225. package/esm/models/customerresponse.d.ts +1 -0
  226. package/esm/models/customerresponse.d.ts.map +1 -1
  227. package/esm/models/customerresponse.js +1 -0
  228. package/esm/models/customerresponse.js.map +1 -1
  229. package/esm/models/debugtracker.d.ts +2 -0
  230. package/esm/models/debugtracker.d.ts.map +1 -1
  231. package/esm/models/debugtracker.js +2 -0
  232. package/esm/models/debugtracker.js.map +1 -1
  233. package/esm/models/debugtrackerstatus.d.ts +4 -0
  234. package/esm/models/debugtrackerstatus.d.ts.map +1 -1
  235. package/esm/models/debugtrackerstatus.js +4 -0
  236. package/esm/models/debugtrackerstatus.js.map +1 -1
  237. package/esm/models/deletesubscriptionlineitemrequest.d.ts +2 -0
  238. package/esm/models/deletesubscriptionlineitemrequest.d.ts.map +1 -1
  239. package/esm/models/deletesubscriptionlineitemrequest.js +2 -0
  240. package/esm/models/deletesubscriptionlineitemrequest.js.map +1 -1
  241. package/esm/models/entitlementresponse.d.ts +3 -0
  242. package/esm/models/entitlementresponse.d.ts.map +1 -1
  243. package/esm/models/entitlementresponse.js +1 -0
  244. package/esm/models/entitlementresponse.js.map +1 -1
  245. package/esm/models/entitlementsource.d.ts +3 -0
  246. package/esm/models/entitlementsource.d.ts.map +1 -1
  247. package/esm/models/entitlementsource.js +1 -0
  248. package/esm/models/entitlementsource.js.map +1 -1
  249. package/esm/models/entityintegrationmappingresponse.d.ts +3 -0
  250. package/esm/models/entityintegrationmappingresponse.d.ts.map +1 -1
  251. package/esm/models/entityintegrationmappingresponse.js +1 -0
  252. package/esm/models/entityintegrationmappingresponse.js.map +1 -1
  253. package/esm/models/errorcode.d.ts +32 -0
  254. package/esm/models/errorcode.d.ts.map +1 -0
  255. package/esm/models/errorcode.js +33 -0
  256. package/esm/models/errorcode.js.map +1 -0
  257. package/esm/models/errorresponse.d.ts +2 -34
  258. package/esm/models/errorresponse.d.ts.map +1 -1
  259. package/esm/models/errorresponse.js +2 -29
  260. package/esm/models/errorresponse.js.map +1 -1
  261. package/esm/models/eventprocessingstatustype.d.ts +1 -1
  262. package/esm/models/executesubscriptionmodifyop.d.ts +6 -6
  263. package/esm/models/executesubscriptionmodifyop.d.ts.map +1 -1
  264. package/esm/models/executesubscriptionmodifyop.js +5 -5
  265. package/esm/models/executesubscriptionmodifyop.js.map +1 -1
  266. package/esm/models/executesubscriptionmodifyrequest.d.ts +19 -0
  267. package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -0
  268. package/esm/models/executesubscriptionmodifyrequest.js +22 -0
  269. package/esm/models/executesubscriptionmodifyrequest.js.map +1 -0
  270. package/esm/models/failurepointtype.d.ts +2 -0
  271. package/esm/models/failurepointtype.d.ts.map +1 -1
  272. package/esm/models/failurepointtype.js +2 -0
  273. package/esm/models/failurepointtype.js.map +1 -1
  274. package/esm/models/featuretype.d.ts +2 -0
  275. package/esm/models/featuretype.d.ts.map +1 -1
  276. package/esm/models/featuretype.js +2 -0
  277. package/esm/models/featuretype.js.map +1 -1
  278. package/esm/models/getcustomerentitlementsbyexternalidop.d.ts +10 -0
  279. package/esm/models/getcustomerentitlementsbyexternalidop.d.ts.map +1 -0
  280. package/esm/models/getcustomerentitlementsbyexternalidop.js +14 -0
  281. package/esm/models/getcustomerentitlementsbyexternalidop.js.map +1 -0
  282. package/esm/models/getusageanalyticsrequest.d.ts +1 -0
  283. package/esm/models/getusageanalyticsrequest.d.ts.map +1 -1
  284. package/esm/models/getusageanalyticsrequest.js +1 -0
  285. package/esm/models/getusageanalyticsrequest.js.map +1 -1
  286. package/esm/models/getusageanalyticsresponse.d.ts +2 -0
  287. package/esm/models/getusageanalyticsresponse.d.ts.map +1 -1
  288. package/esm/models/getusageanalyticsresponse.js +3 -1
  289. package/esm/models/getusageanalyticsresponse.js.map +1 -1
  290. package/esm/models/getusagebymeterrequest.d.ts +1 -0
  291. package/esm/models/getusagebymeterrequest.d.ts.map +1 -1
  292. package/esm/models/getusagebymeterrequest.js +1 -0
  293. package/esm/models/getusagebymeterrequest.js.map +1 -1
  294. package/esm/models/getusagerequest.d.ts +2 -0
  295. package/esm/models/getusagerequest.d.ts.map +1 -1
  296. package/esm/models/getusagerequest.js +3 -1
  297. package/esm/models/getusagerequest.js.map +1 -1
  298. package/esm/models/groupedinvoicingaction.d.ts +12 -0
  299. package/esm/models/groupedinvoicingaction.d.ts.map +1 -0
  300. package/esm/models/groupedinvoicingaction.js +13 -0
  301. package/esm/models/groupedinvoicingaction.js.map +1 -0
  302. package/esm/models/inheritanceaction.d.ts +12 -0
  303. package/esm/models/inheritanceaction.d.ts.map +1 -0
  304. package/esm/models/inheritanceaction.js +13 -0
  305. package/esm/models/inheritanceaction.js.map +1 -0
  306. package/esm/models/invoicebillingreason.d.ts +8 -0
  307. package/esm/models/invoicebillingreason.d.ts.map +1 -1
  308. package/esm/models/invoicebillingreason.js +8 -0
  309. package/esm/models/invoicebillingreason.js.map +1 -1
  310. package/esm/models/invoicefilter.d.ts +4 -0
  311. package/esm/models/invoicefilter.d.ts.map +1 -1
  312. package/esm/models/invoicefilter.js +4 -0
  313. package/esm/models/invoicefilter.js.map +1 -1
  314. package/esm/models/invoicelineitemresponse.d.ts +2 -0
  315. package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
  316. package/esm/models/invoicelineitemresponse.js +2 -0
  317. package/esm/models/invoicelineitemresponse.js.map +1 -1
  318. package/esm/models/invoiceresponse.d.ts +2 -0
  319. package/esm/models/invoiceresponse.d.ts.map +1 -1
  320. package/esm/models/invoiceresponse.js +2 -0
  321. package/esm/models/invoiceresponse.js.map +1 -1
  322. package/esm/models/lineitemcommitmentconfig.d.ts +2 -0
  323. package/esm/models/lineitemcommitmentconfig.d.ts.map +1 -1
  324. package/esm/models/lineitemcommitmentconfig.js +3 -0
  325. package/esm/models/lineitemcommitmentconfig.js.map +1 -1
  326. package/esm/models/lineitemquantitychange.d.ts +8 -0
  327. package/esm/models/lineitemquantitychange.d.ts.map +1 -0
  328. package/esm/models/lineitemquantitychange.js +10 -0
  329. package/esm/models/lineitemquantitychange.js.map +1 -0
  330. package/esm/models/listsubscriptionlineitemsresponse.d.ts +9 -0
  331. package/esm/models/listsubscriptionlineitemsresponse.d.ts.map +1 -0
  332. package/esm/models/listsubscriptionlineitemsresponse.js +11 -0
  333. package/esm/models/listsubscriptionlineitemsresponse.js.map +1 -0
  334. package/esm/models/meterusageattribution.d.ts +8 -0
  335. package/esm/models/meterusageattribution.d.ts.map +1 -0
  336. package/esm/models/meterusageattribution.js +10 -0
  337. package/esm/models/meterusageattribution.js.map +1 -0
  338. package/esm/models/overrideentitlementrequest.d.ts +3 -0
  339. package/esm/models/overrideentitlementrequest.d.ts.map +1 -1
  340. package/esm/models/overrideentitlementrequest.js +1 -0
  341. package/esm/models/overrideentitlementrequest.js.map +1 -1
  342. package/esm/models/pausestatus.d.ts +1 -1
  343. package/esm/models/paymentstatus.d.ts +2 -0
  344. package/esm/models/paymentstatus.d.ts.map +1 -1
  345. package/esm/models/paymentstatus.js +2 -0
  346. package/esm/models/paymentstatus.js.map +1 -1
  347. package/esm/models/planfilter.d.ts +3 -0
  348. package/esm/models/planfilter.d.ts.map +1 -1
  349. package/esm/models/planfilter.js +1 -0
  350. package/esm/models/planfilter.js.map +1 -1
  351. package/esm/models/pointbucket.d.ts +7 -0
  352. package/esm/models/pointbucket.d.ts.map +1 -0
  353. package/esm/models/pointbucket.js +9 -0
  354. package/esm/models/pointbucket.js.map +1 -0
  355. package/esm/models/previewsubscriptionmodifyop.d.ts +12 -0
  356. package/esm/models/previewsubscriptionmodifyop.d.ts.map +1 -0
  357. package/esm/models/previewsubscriptionmodifyop.js +16 -0
  358. package/esm/models/previewsubscriptionmodifyop.js.map +1 -0
  359. package/esm/models/pricefilter.d.ts +2 -0
  360. package/esm/models/pricefilter.d.ts.map +1 -1
  361. package/esm/models/pricefilter.js +2 -0
  362. package/esm/models/pricefilter.js.map +1 -1
  363. package/esm/models/priceprice.d.ts +2 -1
  364. package/esm/models/priceprice.d.ts.map +1 -1
  365. package/esm/models/priceprice.js +2 -1
  366. package/esm/models/priceprice.js.map +1 -1
  367. package/esm/models/priceresponse.d.ts +2 -1
  368. package/esm/models/priceresponse.d.ts.map +1 -1
  369. package/esm/models/priceresponse.js +2 -1
  370. package/esm/models/priceresponse.js.map +1 -1
  371. package/esm/models/querysubscriptionlineitemsop.d.ts +6 -0
  372. package/esm/models/querysubscriptionlineitemsop.d.ts.map +1 -0
  373. package/esm/models/querysubscriptionlineitemsop.js +11 -0
  374. package/esm/models/querysubscriptionlineitemsop.js.map +1 -0
  375. package/esm/models/removeaddonrequest.d.ts +3 -0
  376. package/esm/models/removeaddonrequest.d.ts.map +1 -1
  377. package/esm/models/removeaddonrequest.js +3 -0
  378. package/esm/models/removeaddonrequest.js.map +1 -1
  379. package/esm/models/schedulestatus.d.ts +1 -1
  380. package/esm/models/submodifycouponaction.d.ts +12 -0
  381. package/esm/models/submodifycouponaction.d.ts.map +1 -0
  382. package/esm/models/submodifycouponaction.js +13 -0
  383. package/esm/models/submodifycouponaction.js.map +1 -0
  384. package/esm/models/submodifycouponparams.d.ts +13 -0
  385. package/esm/models/submodifycouponparams.d.ts.map +1 -0
  386. package/esm/models/submodifycouponparams.js +15 -0
  387. package/esm/models/submodifycouponparams.js.map +1 -0
  388. package/esm/models/submodifygroupedinvoicingparams.d.ts +9 -0
  389. package/esm/models/submodifygroupedinvoicingparams.d.ts.map +1 -0
  390. package/esm/models/submodifygroupedinvoicingparams.js +11 -0
  391. package/esm/models/submodifygroupedinvoicingparams.js.map +1 -0
  392. package/esm/models/submodifyinheritancerequest.d.ts +9 -0
  393. package/esm/models/submodifyinheritancerequest.d.ts.map +1 -0
  394. package/esm/models/submodifyinheritancerequest.js +12 -0
  395. package/esm/models/submodifyinheritancerequest.js.map +1 -0
  396. package/esm/models/submodifyquantitychangerequest.d.ts +7 -0
  397. package/esm/models/submodifyquantitychangerequest.d.ts.map +1 -0
  398. package/esm/models/submodifyquantitychangerequest.js +9 -0
  399. package/esm/models/submodifyquantitychangerequest.js.map +1 -0
  400. package/esm/models/submodifytaxaction.d.ts +12 -0
  401. package/esm/models/submodifytaxaction.d.ts.map +1 -0
  402. package/esm/models/submodifytaxaction.js +13 -0
  403. package/esm/models/submodifytaxaction.js.map +1 -0
  404. package/esm/models/submodifytaxparams.d.ts +10 -0
  405. package/esm/models/submodifytaxparams.d.ts.map +1 -0
  406. package/esm/models/submodifytaxparams.js +13 -0
  407. package/esm/models/submodifytaxparams.js.map +1 -0
  408. package/esm/models/submodifytrialendrequest.d.ts +8 -0
  409. package/esm/models/submodifytrialendrequest.d.ts.map +1 -0
  410. package/esm/models/submodifytrialendrequest.js +10 -0
  411. package/esm/models/submodifytrialendrequest.js.map +1 -0
  412. package/esm/models/subscriptioncouponinput.d.ts +9 -0
  413. package/esm/models/subscriptioncouponinput.d.ts.map +1 -0
  414. package/esm/models/subscriptioncouponinput.js +11 -0
  415. package/esm/models/subscriptioncouponinput.js.map +1 -0
  416. package/esm/models/subscriptionfilter.d.ts +1 -0
  417. package/esm/models/subscriptionfilter.d.ts.map +1 -1
  418. package/esm/models/subscriptionfilter.js +1 -0
  419. package/esm/models/subscriptionfilter.js.map +1 -1
  420. package/esm/models/subscriptioninheritanceconfig.d.ts +1 -0
  421. package/esm/models/subscriptioninheritanceconfig.d.ts.map +1 -1
  422. package/esm/models/subscriptioninheritanceconfig.js +6 -3
  423. package/esm/models/subscriptioninheritanceconfig.js.map +1 -1
  424. package/esm/models/subscriptionlineitemfilter.d.ts +40 -0
  425. package/esm/models/subscriptionlineitemfilter.d.ts.map +1 -0
  426. package/esm/models/subscriptionlineitemfilter.js +40 -0
  427. package/esm/models/subscriptionlineitemfilter.js.map +1 -0
  428. package/esm/models/subscriptionlineitemresponse.d.ts +3 -1
  429. package/esm/models/subscriptionlineitemresponse.d.ts.map +1 -1
  430. package/esm/models/subscriptionlineitemresponse.js +3 -1
  431. package/esm/models/subscriptionlineitemresponse.js.map +1 -1
  432. package/esm/models/subscriptionmodifyresponse.d.ts +9 -0
  433. package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -0
  434. package/esm/models/subscriptionmodifyresponse.js +11 -0
  435. package/esm/models/subscriptionmodifyresponse.js.map +1 -0
  436. package/esm/models/subscriptionmodifytype.d.ts +20 -0
  437. package/esm/models/subscriptionmodifytype.d.ts.map +1 -0
  438. package/esm/models/subscriptionmodifytype.js +21 -0
  439. package/esm/models/subscriptionmodifytype.js.map +1 -0
  440. package/esm/models/subscriptionphasecreaterequest.d.ts +4 -0
  441. package/esm/models/subscriptionphasecreaterequest.d.ts.map +1 -1
  442. package/esm/models/subscriptionphasecreaterequest.js +8 -2
  443. package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
  444. package/esm/models/subscriptionpricecreaterequest.d.ts +1 -3
  445. package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
  446. package/esm/models/subscriptionpricecreaterequest.js +1 -3
  447. package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
  448. package/esm/models/subscriptionresponse.d.ts +3 -1
  449. package/esm/models/subscriptionresponse.d.ts.map +1 -1
  450. package/esm/models/subscriptionresponse.js +3 -1
  451. package/esm/models/subscriptionresponse.js.map +1 -1
  452. package/esm/models/subscriptionresponsev2.d.ts +4 -1
  453. package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
  454. package/esm/models/subscriptionresponsev2.js +4 -1
  455. package/esm/models/subscriptionresponsev2.js.map +1 -1
  456. package/esm/models/subscriptionstatus.d.ts +1 -1
  457. package/esm/models/subscriptionsubscriptionlineitem.d.ts +3 -1
  458. package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
  459. package/esm/models/subscriptionsubscriptionlineitem.js +3 -1
  460. package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
  461. package/esm/models/subscriptiontype.d.ts +4 -0
  462. package/esm/models/subscriptiontype.d.ts.map +1 -1
  463. package/esm/models/subscriptiontype.js +4 -0
  464. package/esm/models/subscriptiontype.js.map +1 -1
  465. package/esm/models/tenantbillingdetails.d.ts +10 -0
  466. package/esm/models/tenantbillingdetails.d.ts.map +1 -0
  467. package/esm/models/tenantbillingdetails.js +13 -0
  468. package/esm/models/tenantbillingdetails.js.map +1 -0
  469. package/esm/models/tenantresponse.d.ts +15 -0
  470. package/esm/models/tenantresponse.d.ts.map +1 -0
  471. package/esm/models/tenantresponse.js +15 -0
  472. package/esm/models/tenantresponse.js.map +1 -0
  473. package/esm/models/timeofdaybucket.d.ts +15 -0
  474. package/esm/models/timeofdaybucket.d.ts.map +1 -0
  475. package/esm/models/timeofdaybucket.js +17 -0
  476. package/esm/models/timeofdaybucket.js.map +1 -0
  477. package/esm/models/transactionreason.d.ts +30 -0
  478. package/esm/models/transactionreason.d.ts.map +1 -0
  479. package/esm/models/transactionreason.js +31 -0
  480. package/esm/models/transactionreason.js.map +1 -0
  481. package/esm/models/transactionstatus.d.ts +14 -0
  482. package/esm/models/transactionstatus.d.ts.map +1 -0
  483. package/esm/models/transactionstatus.js +15 -0
  484. package/esm/models/transactionstatus.js.map +1 -0
  485. package/esm/models/transactiontype.d.ts +12 -0
  486. package/esm/models/transactiontype.d.ts.map +1 -0
  487. package/esm/models/transactiontype.js +13 -0
  488. package/esm/models/transactiontype.js.map +1 -0
  489. package/esm/models/trialendaction.d.ts +12 -0
  490. package/esm/models/trialendaction.d.ts.map +1 -0
  491. package/esm/models/trialendaction.js +13 -0
  492. package/esm/models/trialendaction.js.map +1 -0
  493. package/esm/models/updatecustomerrequest.d.ts +1 -0
  494. package/esm/models/updatecustomerrequest.d.ts.map +1 -1
  495. package/esm/models/updatecustomerrequest.js +1 -0
  496. package/esm/models/updatecustomerrequest.js.map +1 -1
  497. package/esm/models/updatesubscriptionlineitemrequest.d.ts +2 -0
  498. package/esm/models/updatesubscriptionlineitemrequest.d.ts.map +1 -1
  499. package/esm/models/updatesubscriptionlineitemrequest.js +3 -0
  500. package/esm/models/updatesubscriptionlineitemrequest.js.map +1 -1
  501. package/esm/models/usageanalyticitem.d.ts +4 -0
  502. package/esm/models/usageanalyticitem.d.ts.map +1 -1
  503. package/esm/models/usageanalyticitem.js +5 -1
  504. package/esm/models/usageanalyticitem.js.map +1 -1
  505. package/esm/models/usageanalyticpoint.d.ts +4 -0
  506. package/esm/models/usageanalyticpoint.d.ts.map +1 -1
  507. package/esm/models/usageanalyticpoint.js +5 -1
  508. package/esm/models/usageanalyticpoint.js.map +1 -1
  509. package/esm/models/userresponse.d.ts +16 -0
  510. package/esm/models/userresponse.d.ts.map +1 -0
  511. package/esm/models/userresponse.js +16 -0
  512. package/esm/models/userresponse.js.map +1 -0
  513. package/esm/models/usertype.d.ts +12 -0
  514. package/esm/models/usertype.d.ts.map +1 -0
  515. package/esm/models/usertype.js +13 -0
  516. package/esm/models/usertype.js.map +1 -0
  517. package/esm/models/walletconfig.d.ts +7 -0
  518. package/esm/models/walletconfig.d.ts.map +1 -0
  519. package/esm/models/walletconfig.js +10 -0
  520. package/esm/models/walletconfig.js.map +1 -0
  521. package/esm/models/walletconfigpricetype.d.ts +14 -0
  522. package/esm/models/walletconfigpricetype.d.ts.map +1 -0
  523. package/esm/models/walletconfigpricetype.js +15 -0
  524. package/esm/models/walletconfigpricetype.js.map +1 -0
  525. package/esm/models/walletresponse.d.ts +39 -0
  526. package/esm/models/walletresponse.d.ts.map +1 -0
  527. package/esm/models/walletresponse.js +39 -0
  528. package/esm/models/walletresponse.js.map +1 -0
  529. package/esm/models/walletstatus.d.ts +14 -0
  530. package/esm/models/walletstatus.d.ts.map +1 -0
  531. package/esm/models/walletstatus.js +15 -0
  532. package/esm/models/walletstatus.js.map +1 -0
  533. package/esm/models/wallettransactionresponse.d.ts +46 -0
  534. package/esm/models/wallettransactionresponse.d.ts.map +1 -0
  535. package/esm/models/wallettransactionresponse.js +46 -0
  536. package/esm/models/wallettransactionresponse.js.map +1 -0
  537. package/esm/models/wallettxreferencetype.d.ts +16 -0
  538. package/esm/models/wallettxreferencetype.d.ts.map +1 -0
  539. package/esm/models/wallettxreferencetype.js +17 -0
  540. package/esm/models/wallettxreferencetype.js.map +1 -0
  541. package/esm/models/wallettype.d.ts +12 -0
  542. package/esm/models/wallettype.d.ts.map +1 -0
  543. package/esm/models/wallettype.js +13 -0
  544. package/esm/models/wallettype.js.map +1 -0
  545. package/esm/models/windowsize.d.ts +2 -2
  546. package/esm/models/windowsize.js +2 -2
  547. package/esm/models/windowsize.js.map +1 -1
  548. package/esm/tool-names.js +12 -12
  549. package/esm/tool-names.js.map +1 -1
  550. package/esm/tsconfig.tsbuildinfo +1 -1
  551. package/esm/types/async.d.ts.map +1 -1
  552. package/esm/types/async.js +6 -6
  553. package/esm/types/async.js.map +1 -1
  554. package/esm/types/bigint.d.ts.map +1 -1
  555. package/esm/types/bigint.js +4 -3
  556. package/esm/types/bigint.js.map +1 -1
  557. package/manifest.json +13 -13
  558. package/package.json +4 -2
  559. package/src/funcs/{subscriptionsListSubscriptionPauses.ts → customersGetCustomerEntitlementsByExternalID.ts} +13 -12
  560. package/src/funcs/{plansPostPlansIdClone.ts → plansClonePlan.ts} +9 -9
  561. package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +7 -7
  562. package/src/funcs/{subscriptionsResumeSubscription.ts → subscriptionsPreviewSubscriptionModify.ts} +11 -11
  563. package/src/funcs/{subscriptionsPauseSubscription.ts → subscriptionsQuerySubscriptionLineItems.ts} +13 -22
  564. package/src/landing-page.ts +8 -2
  565. package/src/lib/config.ts +3 -3
  566. package/src/lib/encodings.ts +10 -1
  567. package/src/lib/primitives.ts +16 -0
  568. package/src/lib/retries.ts +8 -0
  569. package/src/lib/sdks.ts +0 -2
  570. package/src/mcp-server/cli/serve/command.ts +1 -1
  571. package/src/mcp-server/cli/serve/impl.ts +1 -1
  572. package/src/mcp-server/cli/start/command.ts +1 -1
  573. package/src/mcp-server/mcp-server.ts +1 -1
  574. package/src/mcp-server/server.ts +9 -9
  575. package/src/mcp-server/tools/customersGetCustomerEntitlementsByExternalID.ts +45 -0
  576. package/src/mcp-server/tools/{plansPostPlansIdClone.ts → plansClonePlan.ts} +6 -6
  577. package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +4 -4
  578. package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +45 -0
  579. package/src/mcp-server/tools/{subscriptionsListSubscriptionPauses.ts → subscriptionsQuerySubscriptionLineItems.ts} +8 -8
  580. package/src/mcp-server/tools.ts +12 -10
  581. package/src/models/addaddonrequest.ts +9 -0
  582. package/src/models/addaddontosubscriptionrequest.ts +9 -0
  583. package/src/models/addon.ts +0 -3
  584. package/src/models/{addontype.ts → addoncadence.ts} +5 -5
  585. package/src/models/addonresponse.ts +0 -3
  586. package/src/models/addonstatus.ts +2 -2
  587. package/src/models/address.ts +23 -0
  588. package/src/models/aggregatedentitlement.ts +9 -3
  589. package/src/models/alertstate.ts +21 -0
  590. package/src/models/attributedtocustomerresult.ts +28 -0
  591. package/src/models/autotopup.ts +19 -0
  592. package/src/models/billingcadence.ts +0 -2
  593. package/src/models/billingperiod.ts +2 -0
  594. package/src/models/bucket.ts +12 -0
  595. package/src/models/bucketsummary.ts +40 -0
  596. package/src/models/cancelsubscriptionrequest.ts +3 -1
  597. package/src/models/changedinvoice.ts +41 -0
  598. package/src/models/changedinvoiceaction.ts +23 -0
  599. package/src/models/changedinvoicestatus.ts +25 -0
  600. package/src/models/changedlineitem.ts +29 -0
  601. package/src/models/changedlineitemaction.ts +25 -0
  602. package/src/models/changedresources.ts +28 -0
  603. package/src/models/changedsubscription.ts +32 -0
  604. package/src/models/changedsubscriptionaction.ts +25 -0
  605. package/src/models/{postplansidcloneop.ts → cloneplanop.ts} +9 -10
  606. package/src/models/commitmentbucketrequest.ts +35 -0
  607. package/src/models/couponassociationresponse.ts +9 -3
  608. package/src/models/{coupon.ts → couponresponse.ts} +4 -2
  609. package/src/models/createcustomerrequest.ts +4 -0
  610. package/src/models/createinvoicelineitemrequest.ts +12 -0
  611. package/src/models/createinvoicerequest.ts +4 -0
  612. package/src/models/createpricerequest.ts +2 -5
  613. package/src/models/createsubscriptionlineitemrequest.ts +13 -0
  614. package/src/models/createsubscriptionrequest.ts +30 -13
  615. package/src/models/creditbreakdown.ts +15 -0
  616. package/src/models/customer.ts +4 -0
  617. package/src/models/customerentitlementsresponse.ts +6 -0
  618. package/src/models/customerfilter.ts +2 -0
  619. package/src/models/customerresponse.ts +4 -0
  620. package/src/models/debugtracker.ts +6 -0
  621. package/src/models/debugtrackerstatus.ts +4 -0
  622. package/src/models/deletesubscriptionlineitemrequest.ts +6 -0
  623. package/src/models/entitlementresponse.ts +2 -0
  624. package/src/models/entitlementsource.ts +2 -0
  625. package/src/models/entityintegrationmappingresponse.ts +2 -0
  626. package/src/models/errorcode.ts +37 -0
  627. package/src/models/errorresponse.ts +3 -38
  628. package/src/models/executesubscriptionmodifyop.ts +14 -14
  629. package/src/models/executesubscriptionmodifyrequest.ts +56 -0
  630. package/src/models/failurepointtype.ts +2 -0
  631. package/src/models/featuretype.ts +2 -0
  632. package/src/models/getcustomerentitlementsbyexternalidop.ts +31 -0
  633. package/src/models/getusageanalyticsrequest.ts +4 -0
  634. package/src/models/getusageanalyticsresponse.ts +7 -1
  635. package/src/models/getusagebymeterrequest.ts +2 -0
  636. package/src/models/getusagerequest.ts +7 -1
  637. package/src/models/groupedinvoicingaction.ts +17 -0
  638. package/src/models/inheritanceaction.ts +17 -0
  639. package/src/models/invoicebillingreason.ts +8 -0
  640. package/src/models/invoicefilter.ts +14 -0
  641. package/src/models/invoicelineitemresponse.ts +8 -0
  642. package/src/models/invoiceresponse.ts +8 -0
  643. package/src/models/lineitemcommitmentconfig.ts +9 -0
  644. package/src/models/lineitemquantitychange.ts +21 -0
  645. package/src/models/listsubscriptionlineitemsresponse.ts +25 -0
  646. package/src/models/meterusageattribution.ts +18 -0
  647. package/src/models/overrideentitlementrequest.ts +4 -0
  648. package/src/models/paymentstatus.ts +2 -0
  649. package/src/models/planfilter.ts +2 -0
  650. package/src/models/pointbucket.ts +15 -0
  651. package/src/models/previewsubscriptionmodifyop.ts +39 -0
  652. package/src/models/pricefilter.ts +3 -0
  653. package/src/models/priceprice.ts +7 -3
  654. package/src/models/priceresponse.ts +7 -3
  655. package/src/models/querysubscriptionlineitemsop.ts +21 -0
  656. package/src/models/removeaddonrequest.ts +10 -0
  657. package/src/models/submodifycouponaction.ts +17 -0
  658. package/src/models/submodifycouponparams.ts +42 -0
  659. package/src/models/submodifygroupedinvoicingparams.ts +25 -0
  660. package/src/models/submodifyinheritancerequest.ts +28 -0
  661. package/src/models/submodifyquantitychangerequest.ts +19 -0
  662. package/src/models/submodifytaxaction.ts +17 -0
  663. package/src/models/submodifytaxparams.ts +30 -0
  664. package/src/models/submodifytrialendrequest.ts +20 -0
  665. package/src/models/subscriptioncouponinput.ts +29 -0
  666. package/src/models/subscriptionfilter.ts +4 -0
  667. package/src/models/subscriptioninheritanceconfig.ts +15 -3
  668. package/src/models/subscriptionlineitemfilter.ts +81 -0
  669. package/src/models/subscriptionlineitemresponse.ts +8 -2
  670. package/src/models/subscriptionmodifyresponse.ts +25 -0
  671. package/src/models/subscriptionmodifytype.ts +25 -0
  672. package/src/models/subscriptionphasecreaterequest.ts +18 -2
  673. package/src/models/subscriptionpricecreaterequest.ts +2 -5
  674. package/src/models/subscriptionresponse.ts +10 -2
  675. package/src/models/subscriptionresponsev2.ts +14 -2
  676. package/src/models/subscriptionsubscriptionlineitem.ts +8 -2
  677. package/src/models/subscriptiontype.ts +4 -0
  678. package/src/models/tenantbillingdetails.ts +21 -0
  679. package/src/models/tenantresponse.ts +29 -0
  680. package/src/models/timeofdaybucket.ts +33 -0
  681. package/src/models/transactionreason.ts +35 -0
  682. package/src/models/transactionstatus.ts +19 -0
  683. package/src/models/transactiontype.ts +17 -0
  684. package/src/models/trialendaction.ts +17 -0
  685. package/src/models/updatecustomerrequest.ts +4 -0
  686. package/src/models/updatesubscriptionlineitemrequest.ts +9 -0
  687. package/src/models/usageanalyticitem.ts +12 -1
  688. package/src/models/usageanalyticpoint.ts +12 -1
  689. package/src/models/userresponse.ts +27 -0
  690. package/src/models/usertype.ts +17 -0
  691. package/src/models/walletconfig.ts +20 -0
  692. package/src/models/walletconfigpricetype.ts +19 -0
  693. package/src/models/walletresponse.ts +74 -0
  694. package/src/models/walletstatus.ts +19 -0
  695. package/src/models/wallettransactionresponse.ts +104 -0
  696. package/src/models/wallettxreferencetype.ts +21 -0
  697. package/src/models/wallettype.ts +17 -0
  698. package/src/models/windowsize.ts +2 -2
  699. package/src/tool-names.ts +12 -12
  700. package/src/types/async.ts +8 -7
  701. package/src/types/bigint.ts +18 -17
  702. package/esm/funcs/plansPostPlansIdClone.d.ts.map +0 -1
  703. package/esm/funcs/plansPostPlansIdClone.js.map +0 -1
  704. package/esm/funcs/subscriptionsListSubscriptionPauses.d.ts +0 -16
  705. package/esm/funcs/subscriptionsListSubscriptionPauses.d.ts.map +0 -1
  706. package/esm/funcs/subscriptionsListSubscriptionPauses.js.map +0 -1
  707. package/esm/funcs/subscriptionsPauseSubscription.d.ts +0 -16
  708. package/esm/funcs/subscriptionsPauseSubscription.d.ts.map +0 -1
  709. package/esm/funcs/subscriptionsPauseSubscription.js.map +0 -1
  710. package/esm/funcs/subscriptionsResumeSubscription.d.ts +0 -16
  711. package/esm/funcs/subscriptionsResumeSubscription.d.ts.map +0 -1
  712. package/esm/funcs/subscriptionsResumeSubscription.js.map +0 -1
  713. package/esm/lib/dlv.d.ts +0 -14
  714. package/esm/lib/dlv.d.ts.map +0 -1
  715. package/esm/lib/dlv.js +0 -46
  716. package/esm/lib/dlv.js.map +0 -1
  717. package/esm/lib/is-plain-object.d.ts +0 -2
  718. package/esm/lib/is-plain-object.d.ts.map +0 -1
  719. package/esm/lib/is-plain-object.js +0 -38
  720. package/esm/lib/is-plain-object.js.map +0 -1
  721. package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts +0 -7
  722. package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts.map +0 -1
  723. package/esm/mcp-server/tools/plansPostPlansIdClone.js.map +0 -1
  724. package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.d.ts +0 -7
  725. package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.d.ts.map +0 -1
  726. package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.js +0 -35
  727. package/esm/mcp-server/tools/subscriptionsListSubscriptionPauses.js.map +0 -1
  728. package/esm/mcp-server/tools/subscriptionsPauseSubscription.d.ts +0 -7
  729. package/esm/mcp-server/tools/subscriptionsPauseSubscription.d.ts.map +0 -1
  730. package/esm/mcp-server/tools/subscriptionsPauseSubscription.js +0 -35
  731. package/esm/mcp-server/tools/subscriptionsPauseSubscription.js.map +0 -1
  732. package/esm/mcp-server/tools/subscriptionsResumeSubscription.d.ts +0 -7
  733. package/esm/mcp-server/tools/subscriptionsResumeSubscription.d.ts.map +0 -1
  734. package/esm/mcp-server/tools/subscriptionsResumeSubscription.js +0 -35
  735. package/esm/mcp-server/tools/subscriptionsResumeSubscription.js.map +0 -1
  736. package/esm/models/addontype.d.ts +0 -12
  737. package/esm/models/addontype.d.ts.map +0 -1
  738. package/esm/models/addontype.js +0 -13
  739. package/esm/models/addontype.js.map +0 -1
  740. package/esm/models/coupon.d.ts.map +0 -1
  741. package/esm/models/coupon.js.map +0 -1
  742. package/esm/models/executesubscriptioninheritancerequest.d.ts +0 -6
  743. package/esm/models/executesubscriptioninheritancerequest.d.ts.map +0 -1
  744. package/esm/models/executesubscriptioninheritancerequest.js +0 -8
  745. package/esm/models/executesubscriptioninheritancerequest.js.map +0 -1
  746. package/esm/models/listsubscriptionpausesop.d.ts +0 -10
  747. package/esm/models/listsubscriptionpausesop.d.ts.map +0 -1
  748. package/esm/models/listsubscriptionpausesop.js +0 -14
  749. package/esm/models/listsubscriptionpausesop.js.map +0 -1
  750. package/esm/models/listsubscriptionpausesresponse.d.ts +0 -11
  751. package/esm/models/listsubscriptionpausesresponse.d.ts.map +0 -1
  752. package/esm/models/listsubscriptionpausesresponse.js +0 -10
  753. package/esm/models/listsubscriptionpausesresponse.js.map +0 -1
  754. package/esm/models/pausesubscriptionop.d.ts +0 -12
  755. package/esm/models/pausesubscriptionop.d.ts.map +0 -1
  756. package/esm/models/pausesubscriptionop.js +0 -16
  757. package/esm/models/pausesubscriptionop.js.map +0 -1
  758. package/esm/models/pausesubscriptionrequest.d.ts +0 -18
  759. package/esm/models/pausesubscriptionrequest.d.ts.map +0 -1
  760. package/esm/models/pausesubscriptionrequest.js +0 -15
  761. package/esm/models/pausesubscriptionrequest.js.map +0 -1
  762. package/esm/models/postplansidcloneop.d.ts +0 -12
  763. package/esm/models/postplansidcloneop.d.ts.map +0 -1
  764. package/esm/models/postplansidcloneop.js.map +0 -1
  765. package/esm/models/resumesubscriptionop.d.ts +0 -12
  766. package/esm/models/resumesubscriptionop.d.ts.map +0 -1
  767. package/esm/models/resumesubscriptionop.js +0 -16
  768. package/esm/models/resumesubscriptionop.js.map +0 -1
  769. package/esm/models/resumesubscriptionrequest.d.ts +0 -14
  770. package/esm/models/resumesubscriptionrequest.d.ts.map +0 -1
  771. package/esm/models/resumesubscriptionrequest.js +0 -11
  772. package/esm/models/resumesubscriptionrequest.js.map +0 -1
  773. package/esm/models/subscriptionpauseresponse.d.ts +0 -33
  774. package/esm/models/subscriptionpauseresponse.d.ts.map +0 -1
  775. package/esm/models/subscriptionpauseresponse.js +0 -30
  776. package/esm/models/subscriptionpauseresponse.js.map +0 -1
  777. package/src/lib/dlv.ts +0 -53
  778. package/src/lib/is-plain-object.ts +0 -43
  779. package/src/mcp-server/tools/subscriptionsPauseSubscription.ts +0 -44
  780. package/src/mcp-server/tools/subscriptionsResumeSubscription.ts +0 -44
  781. package/src/models/executesubscriptioninheritancerequest.ts +0 -15
  782. package/src/models/listsubscriptionpausesop.ts +0 -29
  783. package/src/models/listsubscriptionpausesresponse.ts +0 -28
  784. package/src/models/pausesubscriptionop.ts +0 -39
  785. package/src/models/pausesubscriptionrequest.ts +0 -45
  786. package/src/models/resumesubscriptionop.ts +0 -39
  787. package/src/models/resumesubscriptionrequest.ts +0 -27
  788. package/src/models/subscriptionpauseresponse.ts +0 -74
@@ -1 +1 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB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CAAC,CAAC;CAGlC"}
@@ -7,19 +7,19 @@ export class APIPromise {
7
7
  [Symbol.toStringTag] = "APIPromise";
8
8
  constructor(p) {
9
9
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
10
- this.#unwrapped =
11
- p instanceof Promise
12
- ? this.#promise.then(([value]) => value)
13
- : Promise.resolve(p[0]);
10
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
11
+ }
12
+ #getUnwrapped() {
13
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
14
14
  }
15
15
  then(onfulfilled, onrejected) {
16
16
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
17
17
  }
18
18
  catch(onrejected) {
19
- return this.#unwrapped.catch(onrejected);
19
+ return this.#getUnwrapped().catch(onrejected);
20
20
  }
21
21
  finally(onfinally) {
22
- return this.#unwrapped.finally(onfinally);
22
+ return this.#getUnwrapped().finally(onfinally);
23
23
  }
24
24
  $inspect() {
25
25
  return this.#promise;
@@ -1 +1 @@
1
- {"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmBH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAwB;IAChC,UAAU,CAAa;IAEvB,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,YAAY,CAAC;IAE7C,YAAY,CAAuC;QACjD,IAAI,CAAC,QAAQ,GAAG,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU;YACb,CAAC,YAAY,OAAO;gBAClB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC;gBACxC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9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QAEb,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAiBnD;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAkBvE;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAkBlE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAqBpE"}
1
+ {"version":3,"file":"bigint.d.ts","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAiBnD;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAmBvE;AAED,wBAAgB,cAAc,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAkBlE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAqBpE"}
@@ -22,7 +22,8 @@ export function bigint() {
22
22
  ]);
23
23
  }
24
24
  export function bigintOptional() {
25
- return z.union([
25
+ return z
26
+ .union([
26
27
  z.bigint().transform((v) => String(v)),
27
28
  z.string().transform((v, ctx) => {
28
29
  try {
@@ -37,9 +38,9 @@ export function bigintOptional() {
37
38
  }
38
39
  }),
39
40
  z.number().transform((v) => BigInt(Math.trunc(v))),
40
- z.undefined(),
41
41
  z.null().transform(() => undefined),
42
- ]);
42
+ ])
43
+ .optional();
43
44
  }
44
45
  export function bigintNullable() {
45
46
  return z.union([
@@ -1 +1 @@
1
- {"version":3,"file":"bigint.js","sourceRoot":"","sources":["../../src/types/bigint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,UAAU,MAAM;IACpB,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,CAAC;gBACP,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,sBAAsB;iBA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,KAAK,EAAE;KAClC,CAAC;SACD,SAAS,CAAC,GAAG,EAAE,CAAC,KAAU,CAAC,CAAC;AACjC,CAAC"}
package/manifest.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "sensitive": true
49
49
  }
50
50
  },
51
- "version": "2.0.20",
51
+ "version": "2.0.21",
52
52
  "tools": [
53
53
  {
54
54
  "name": "update-customer",
@@ -62,6 +62,10 @@
62
62
  "name": "get-customer-by-external-id",
63
63
  "description": "Get customer by external ID\n\nUse when resolving a customer by your app's id (e.g. from your user table). Ideal for integrations that key by external id."
64
64
  },
65
+ {
66
+ "name": "get-customer-entitlements-by-external-i-d",
67
+ "description": "Get customer entitlements by external ID\n\nUse when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids)."
68
+ },
65
69
  {
66
70
  "name": "query-customer",
67
71
  "description": "Query customers\n\nUse when listing or searching customers (e.g. admin CRM or reporting). Returns a paginated list; supports filtering and sorting."
@@ -195,7 +199,7 @@
195
199
  "description": "Delete plan\n\nUse when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message."
196
200
  },
197
201
  {
198
- "name": "plans-post-plans-id-clone",
202
+ "name": "clone-plan",
199
203
  "description": "Clone a plan\n\nClone an existing plan, copying its active prices, published entitlements, and published credit grants"
200
204
  },
201
205
  {
@@ -242,6 +246,10 @@
242
246
  "name": "remove-subscription-addon",
243
247
  "description": "Remove addon from subscription\n\nUse when removing an add-on from a subscription (e.g. downgrade or opt-out)."
244
248
  },
249
+ {
250
+ "name": "query-subscription-line-items",
251
+ "description": "Search subscription line items\n\nList subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.)."
252
+ },
245
253
  {
246
254
  "name": "update-subscription-line-item",
247
255
  "description": "Update subscription line item\n\nUse when changing a subscription line item (e.g. quantity or price). Implemented by ending the current line and creating a new one for clean billing."
@@ -300,19 +308,11 @@
300
308
  },
301
309
  {
302
310
  "name": "execute-subscription-modify",
303
- "description": "Add customers to subscription inheritance\n\nAttach additional child customers (by external ID) to an active standalone or parent subscription; creates inherited skeleton subscriptions for each. The subscription must be active."
304
- },
305
- {
306
- "name": "pause-subscription",
307
- "description": "Pause a subscription\n\nUse when temporarily stopping a subscription (e.g. customer hold or seasonal pause). Billing and access pause; resume when ready."
308
- },
309
- {
310
- "name": "list-subscription-pauses",
311
- "description": "List all pauses for a subscription\n\nUse when showing pause history for a subscription (e.g. support or audit). Returns all past and future pauses."
311
+ "description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax)."
312
312
  },
313
313
  {
314
- "name": "resume-subscription",
315
- "description": "Resume a paused subscription\n\nUse when reactivating a paused subscription (e.g. end of hold). Billing and access resume from the resume date."
314
+ "name": "preview-subscription-modify",
315
+ "description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes."
316
316
  },
317
317
  {
318
318
  "name": "get-subscription-v2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexprice/mcp-server",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "author": "flexprice",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -22,7 +22,9 @@
22
22
  "zod": "^4.0.0"
23
23
  },
24
24
  "overrides": {
25
- "@modelcontextprotocol/sdk": "1.26.0"
25
+ "@modelcontextprotocol/sdk": "1.26.0",
26
+ "hono": ">=4.12.25",
27
+ "fast-uri": ">=3.1.2"
26
28
  },
27
29
  "devDependencies": {
28
30
  "@anthropic-ai/mcpb": "^1.2.0",
@@ -19,21 +19,21 @@ import {
19
19
  } from "../models/errors/httpclienterrors.js";
20
20
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
21
  import {
22
- ListSubscriptionPausesRequest,
23
- ListSubscriptionPausesRequest$zodSchema,
24
- } from "../models/listsubscriptionpausesop.js";
22
+ GetCustomerEntitlementsByExternalIDRequest,
23
+ GetCustomerEntitlementsByExternalIDRequest$zodSchema,
24
+ } from "../models/getcustomerentitlementsbyexternalidop.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * List all pauses for a subscription
29
+ * Get customer entitlements by external ID
30
30
  *
31
31
  * @remarks
32
- * Use when showing pause history for a subscription (e.g. support or audit). Returns all past and future pauses.
32
+ * Use when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids).
33
33
  */
34
- export function subscriptionsListSubscriptionPauses(
34
+ export function customersGetCustomerEntitlementsByExternalID(
35
35
  client$: FlexpriceCore,
36
- request: ListSubscriptionPausesRequest,
36
+ request: GetCustomerEntitlementsByExternalIDRequest,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -56,7 +56,7 @@ export function subscriptionsListSubscriptionPauses(
56
56
 
57
57
  async function $do(
58
58
  client$: FlexpriceCore,
59
- request: ListSubscriptionPausesRequest,
59
+ request: GetCustomerEntitlementsByExternalIDRequest,
60
60
  options?: RequestOptions,
61
61
  ): Promise<
62
62
  [
@@ -75,7 +75,8 @@ async function $do(
75
75
  > {
76
76
  const parsed$ = safeParse(
77
77
  request,
78
- (value$) => ListSubscriptionPausesRequest$zodSchema.parse(value$),
78
+ (value$) =>
79
+ GetCustomerEntitlementsByExternalIDRequest$zodSchema.parse(value$),
79
80
  "Input validation failed",
80
81
  );
81
82
  if (!parsed$.ok) {
@@ -85,12 +86,12 @@ async function $do(
85
86
  const body$ = null;
86
87
 
87
88
  const pathParams$ = {
88
- id: encodeSimple("id", payload$.id, {
89
+ external_id: encodeSimple("external_id", payload$.external_id, {
89
90
  explode: false,
90
91
  charEncoding: "percent",
91
92
  }),
92
93
  };
93
- const path$ = pathToFunc("/subscriptions/{id}/pauses")(
94
+ const path$ = pathToFunc("/customers/external/{external_id}/entitlements")(
94
95
  pathParams$,
95
96
  );
96
97
 
@@ -103,7 +104,7 @@ async function $do(
103
104
  const context = {
104
105
  options: client$._options,
105
106
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
106
- operationID: "listSubscriptionPauses",
107
+ operationID: "getCustomerEntitlementsByExternalID",
107
108
  oAuth2Scopes: null,
108
109
  resolvedSecurity: requestSecurity,
109
110
  securitySource: client$._options.security,
@@ -9,6 +9,10 @@ import { safeParse } from "../lib/schemas.js";
9
9
  import { RequestOptions } from "../lib/sdks.js";
10
10
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
11
  import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ClonePlanRequestRequest,
14
+ ClonePlanRequestRequest$zodSchema,
15
+ } from "../models/cloneplanop.js";
12
16
  import { APIError } from "../models/errors/apierror.js";
13
17
  import {
14
18
  ConnectionError,
@@ -18,10 +22,6 @@ import {
18
22
  UnexpectedClientError,
19
23
  } from "../models/errors/httpclienterrors.js";
20
24
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
- import {
22
- PostPlansIdCloneRequest,
23
- PostPlansIdCloneRequest$zodSchema,
24
- } from "../models/postplansidcloneop.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
@@ -31,9 +31,9 @@ import { Result } from "../types/fp.js";
31
31
  * @remarks
32
32
  * Clone an existing plan, copying its active prices, published entitlements, and published credit grants
33
33
  */
34
- export function plansPostPlansIdClone(
34
+ export function plansClonePlan(
35
35
  client$: FlexpriceCore,
36
- request: PostPlansIdCloneRequest,
36
+ request: ClonePlanRequestRequest,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -56,7 +56,7 @@ export function plansPostPlansIdClone(
56
56
 
57
57
  async function $do(
58
58
  client$: FlexpriceCore,
59
- request: PostPlansIdCloneRequest,
59
+ request: ClonePlanRequestRequest,
60
60
  options?: RequestOptions,
61
61
  ): Promise<
62
62
  [
@@ -75,7 +75,7 @@ async function $do(
75
75
  > {
76
76
  const parsed$ = safeParse(
77
77
  request,
78
- (value$) => PostPlansIdCloneRequest$zodSchema.parse(value$),
78
+ (value$) => ClonePlanRequestRequest$zodSchema.parse(value$),
79
79
  "Input validation failed",
80
80
  );
81
81
  if (!parsed$.ok) {
@@ -104,7 +104,7 @@ async function $do(
104
104
  const context = {
105
105
  options: client$._options,
106
106
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
107
- operationID: "post_/plans/{id}/clone",
107
+ operationID: "clonePlan",
108
108
  oAuth2Scopes: null,
109
109
  resolvedSecurity: requestSecurity,
110
110
  securitySource: client$._options.security,
@@ -19,21 +19,21 @@ import {
19
19
  } from "../models/errors/httpclienterrors.js";
20
20
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
21
  import {
22
- ExecuteSubscriptionModifyRequest,
23
- ExecuteSubscriptionModifyRequest$zodSchema,
22
+ ExecuteSubscriptionModifyRequestRequest,
23
+ ExecuteSubscriptionModifyRequestRequest$zodSchema,
24
24
  } from "../models/executesubscriptionmodifyop.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Add customers to subscription inheritance
29
+ * Execute subscription modification
30
30
  *
31
31
  * @remarks
32
- * Attach additional child customers (by external ID) to an active standalone or parent subscription; creates inherited skeleton subscriptions for each. The subscription must be active.
32
+ * Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax).
33
33
  */
34
34
  export function subscriptionsExecuteSubscriptionModify(
35
35
  client$: FlexpriceCore,
36
- request: ExecuteSubscriptionModifyRequest,
36
+ request: ExecuteSubscriptionModifyRequestRequest,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -56,7 +56,7 @@ export function subscriptionsExecuteSubscriptionModify(
56
56
 
57
57
  async function $do(
58
58
  client$: FlexpriceCore,
59
- request: ExecuteSubscriptionModifyRequest,
59
+ request: ExecuteSubscriptionModifyRequestRequest,
60
60
  options?: RequestOptions,
61
61
  ): Promise<
62
62
  [
@@ -75,7 +75,7 @@ async function $do(
75
75
  > {
76
76
  const parsed$ = safeParse(
77
77
  request,
78
- (value$) => ExecuteSubscriptionModifyRequest$zodSchema.parse(value$),
78
+ (value$) => ExecuteSubscriptionModifyRequestRequest$zodSchema.parse(value$),
79
79
  "Input validation failed",
80
80
  );
81
81
  if (!parsed$.ok) {
@@ -19,21 +19,21 @@ import {
19
19
  } from "../models/errors/httpclienterrors.js";
20
20
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
21
  import {
22
- ResumeSubscriptionRequestRequest,
23
- ResumeSubscriptionRequestRequest$zodSchema,
24
- } from "../models/resumesubscriptionop.js";
22
+ PreviewSubscriptionModifyRequest,
23
+ PreviewSubscriptionModifyRequest$zodSchema,
24
+ } from "../models/previewsubscriptionmodifyop.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Resume a paused subscription
29
+ * Preview subscription modification
30
30
  *
31
31
  * @remarks
32
- * Use when reactivating a paused subscription (e.g. end of hold). Billing and access resume from the resume date.
32
+ * Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes.
33
33
  */
34
- export function subscriptionsResumeSubscription(
34
+ export function subscriptionsPreviewSubscriptionModify(
35
35
  client$: FlexpriceCore,
36
- request: ResumeSubscriptionRequestRequest,
36
+ request: PreviewSubscriptionModifyRequest,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -56,7 +56,7 @@ export function subscriptionsResumeSubscription(
56
56
 
57
57
  async function $do(
58
58
  client$: FlexpriceCore,
59
- request: ResumeSubscriptionRequestRequest,
59
+ request: PreviewSubscriptionModifyRequest,
60
60
  options?: RequestOptions,
61
61
  ): Promise<
62
62
  [
@@ -75,7 +75,7 @@ async function $do(
75
75
  > {
76
76
  const parsed$ = safeParse(
77
77
  request,
78
- (value$) => ResumeSubscriptionRequestRequest$zodSchema.parse(value$),
78
+ (value$) => PreviewSubscriptionModifyRequest$zodSchema.parse(value$),
79
79
  "Input validation failed",
80
80
  );
81
81
  if (!parsed$.ok) {
@@ -90,7 +90,7 @@ async function $do(
90
90
  charEncoding: "percent",
91
91
  }),
92
92
  };
93
- const path$ = pathToFunc("/subscriptions/{id}/resume")(
93
+ const path$ = pathToFunc("/subscriptions/{id}/modify/preview")(
94
94
  pathParams$,
95
95
  );
96
96
 
@@ -104,7 +104,7 @@ async function $do(
104
104
  const context = {
105
105
  options: client$._options,
106
106
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
107
- operationID: "resumeSubscription",
107
+ operationID: "previewSubscriptionModify",
108
108
  oAuth2Scopes: null,
109
109
  resolvedSecurity: requestSecurity,
110
110
  securitySource: client$._options.security,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { FlexpriceCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
7
  import { compactMap } from "../lib/primitives.js";
8
8
  import { safeParse } from "../lib/schemas.js";
9
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -19,21 +19,21 @@ import {
19
19
  } from "../models/errors/httpclienterrors.js";
20
20
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
21
  import {
22
- PauseSubscriptionRequestRequest,
23
- PauseSubscriptionRequestRequest$zodSchema,
24
- } from "../models/pausesubscriptionop.js";
22
+ SubscriptionLineItemFilter,
23
+ SubscriptionLineItemFilter$zodSchema,
24
+ } from "../models/subscriptionlineitemfilter.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Pause a subscription
29
+ * Search subscription line items
30
30
  *
31
31
  * @remarks
32
- * Use when temporarily stopping a subscription (e.g. customer hold or seasonal pause). Billing and access pause; resume when ready.
32
+ * List subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.).
33
33
  */
34
- export function subscriptionsPauseSubscription(
34
+ export function subscriptionsQuerySubscriptionLineItems(
35
35
  client$: FlexpriceCore,
36
- request: PauseSubscriptionRequestRequest,
36
+ request: SubscriptionLineItemFilter,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -56,7 +56,7 @@ export function subscriptionsPauseSubscription(
56
56
 
57
57
  async function $do(
58
58
  client$: FlexpriceCore,
59
- request: PauseSubscriptionRequestRequest,
59
+ request: SubscriptionLineItemFilter,
60
60
  options?: RequestOptions,
61
61
  ): Promise<
62
62
  [
@@ -75,24 +75,15 @@ async function $do(
75
75
  > {
76
76
  const parsed$ = safeParse(
77
77
  request,
78
- (value$) => PauseSubscriptionRequestRequest$zodSchema.parse(value$),
78
+ (value$) => SubscriptionLineItemFilter$zodSchema.parse(value$),
79
79
  "Input validation failed",
80
80
  );
81
81
  if (!parsed$.ok) {
82
82
  return [parsed$, { status: "invalid" }];
83
83
  }
84
84
  const payload$ = parsed$.value;
85
- const body$ = encodeJSON("body", payload$.body, { explode: true });
86
-
87
- const pathParams$ = {
88
- id: encodeSimple("id", payload$.id, {
89
- explode: false,
90
- charEncoding: "percent",
91
- }),
92
- };
93
- const path$ = pathToFunc("/subscriptions/{id}/pause")(
94
- pathParams$,
95
- );
85
+ const body$ = encodeJSON("body", payload$, { explode: true });
86
+ const path$ = pathToFunc("/subscriptions/lineitems/search")();
96
87
 
97
88
  const headers$ = new Headers(compactMap({
98
89
  "Content-Type": "application/json",
@@ -104,7 +95,7 @@ async function $do(
104
95
  const context = {
105
96
  options: client$._options,
106
97
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
107
- operationID: "pauseSubscription",
98
+ operationID: "querySubscriptionLineItems",
108
99
  oAuth2Scopes: null,
109
100
  resolvedSecurity: requestSecurity,
110
101
  securitySource: client$._options.security,
@@ -18,8 +18,14 @@ export function landingPage(req: Request): Response {
18
18
 
19
19
  // express wrapper
20
20
  export function landingPageExpress(req: ExpressRequest, res: ExpressResponse) {
21
- const origin = new URL(req.host).href;
22
- res.type("html").send(landingPageHTML(origin));
21
+ const proto = req.get("x-forwarded-proto")?.split(",")[0]?.trim()
22
+ || req.protocol;
23
+ const host = req.get("host");
24
+ if (!host) {
25
+ res.status(400).send("Missing Host header");
26
+ return;
27
+ }
28
+ res.type("html").send(landingPageHTML(`${proto}://${host}`));
23
29
  }
24
30
 
25
31
  export function landingPageHTML(origin: string): string {
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "1.0",
72
- sdkVersion: "2.0.20",
73
- genVersion: "2.879.6",
72
+ sdkVersion: "2.0.21",
73
+ genVersion: "2.915.1",
74
74
  userAgent:
75
- "speakeasy-sdk/mcp-typescript 2.0.20 2.879.6 1.0 @flexprice/mcp-server",
75
+ "speakeasy-sdk/mcp-typescript 2.0.21 2.915.1 1.0 @flexprice/mcp-server",
76
76
  } as const;
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { bytesToBase64 } from "./base64.js";
6
- import { isPlainObject } from "./is-plain-object.js";
6
+ import { isPlainObject } from "./primitives.js";
7
7
 
8
8
  export class EncodingError extends Error {
9
9
  constructor(message: string) {
@@ -513,3 +513,12 @@ export function appendForm(
513
513
  fd.append(key, String(value));
514
514
  }
515
515
  }
516
+
517
+ export async function normalizeBlob(
518
+ value: Pick<Blob, "arrayBuffer" | "type">,
519
+ ): Promise<Blob> {
520
+ if (value instanceof Blob) {
521
+ return value;
522
+ }
523
+ return new Blob([await value.arrayBuffer()], { type: value.type });
524
+ }
@@ -111,3 +111,19 @@ export function invariant(
111
111
  throw new InvariantError(message);
112
112
  }
113
113
  }
114
+
115
+ export function isPlainObject(
116
+ value: unknown,
117
+ ): value is Record<string, unknown> {
118
+ if (value === null || typeof value !== "object") return false;
119
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
120
+ const proto = Object.getPrototypeOf(value);
121
+ if (proto === null || proto === Object.prototype) return true;
122
+ // cross-realm plain objects (vm contexts, iframes) inherit from a
123
+ // different realm's Object.prototype, which itself has a null prototype
124
+ try {
125
+ return Object.getPrototypeOf(proto) === null;
126
+ } catch {
127
+ return false;
128
+ }
129
+ }
@@ -194,6 +194,14 @@ async function retryBackoff(
194
194
  }
195
195
 
196
196
  function retryIntervalFromResponse(res: Response): number {
197
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
198
+ if (retryAfterMsVal) {
199
+ const parsedMs = Number(retryAfterMsVal);
200
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
201
+ return parsedMs;
202
+ }
203
+ }
204
+
197
205
  const retryVal = res.headers.get("retry-after") || "";
198
206
  if (!retryVal) {
199
207
  return 0;
package/src/lib/sdks.ts CHANGED
@@ -379,8 +379,6 @@ async function logResponse(
379
379
  break;
380
380
  case matchContentType(res, "application/jsonl")
381
381
  || jsonlLikeContentTypeRE.test(ct):
382
- logger.log(await res.clone().text());
383
- break;
384
382
  case matchContentType(res, "text/event-stream"):
385
383
  logger.log(`<${contentType}>`);
386
384
  break;
@@ -40,7 +40,7 @@ export const serveCommand = buildCommand({
40
40
  mode: {
41
41
  kind: "enum",
42
42
  brief:
43
- "Server mode (dynamic: expose list_tools, describe_tool, and execute_tool instead of individual tools)",
43
+ "Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
44
44
  values: ["dynamic"],
45
45
  optional: true,
46
46
  },
@@ -40,7 +40,7 @@ async function startStreamableHTTP(cliFlags: ServeCommandFlags) {
40
40
  app.use((req, res, next) => {
41
41
  res.header("Access-Control-Allow-Origin", "*");
42
42
  res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
43
- res.header("Access-Control-Allow-Headers", "Content-Type, *");
43
+ res.header("Access-Control-Allow-Headers", "*");
44
44
  if (req.method === "OPTIONS") {
45
45
  res.sendStatus(204);
46
46
  return;
@@ -40,7 +40,7 @@ export const startCommand = buildCommand({
40
40
  mode: {
41
41
  kind: "enum",
42
42
  brief:
43
- "Server mode (dynamic: expose list_tools, describe_tool, and execute_tool instead of individual tools)",
43
+ "Server mode (dynamic: expose list_tools, describe_tool_input, and execute_tool instead of individual tools)",
44
44
  values: ["dynamic"],
45
45
  optional: true,
46
46
  },
@@ -21,7 +21,7 @@ const routes = buildRouteMap({
21
21
  export const app = buildApplication(routes, {
22
22
  name: "mcp",
23
23
  versionInfo: {
24
- currentVersion: "2.0.20",
24
+ currentVersion: "2.0.21",
25
25
  },
26
26
  });
27
27