@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
@@ -22,6 +22,7 @@ import { tool$customersDeleteCustomer } from "./tools/customersDeleteCustomer.js
22
22
  import { tool$customersGetCustomer } from "./tools/customersGetCustomer.js";
23
23
  import { tool$customersGetCustomerByExternalId } from "./tools/customersGetCustomerByExternalId.js";
24
24
  import { tool$customersGetCustomerEntitlements } from "./tools/customersGetCustomerEntitlements.js";
25
+ import { tool$customersGetCustomerEntitlementsByExternalID } from "./tools/customersGetCustomerEntitlementsByExternalID.js";
25
26
  import { tool$customersGetCustomerUpcomingGrants } from "./tools/customersGetCustomerUpcomingGrants.js";
26
27
  import { tool$customersGetCustomerUsageSummary } from "./tools/customersGetCustomerUsageSummary.js";
27
28
  import { tool$customersQueryCustomer } from "./tools/customersQueryCustomer.js";
@@ -48,10 +49,10 @@ import { tool$invoicesTriggerInvoiceCommsWebhook } from "./tools/invoicesTrigger
48
49
  import { tool$invoicesUpdateInvoice } from "./tools/invoicesUpdateInvoice.js";
49
50
  import { tool$invoicesUpdateInvoicePaymentStatus } from "./tools/invoicesUpdateInvoicePaymentStatus.js";
50
51
  import { tool$invoicesVoidInvoice } from "./tools/invoicesVoidInvoice.js";
52
+ import { tool$plansClonePlan } from "./tools/plansClonePlan.js";
51
53
  import { tool$plansCreatePlan } from "./tools/plansCreatePlan.js";
52
54
  import { tool$plansDeletePlan } from "./tools/plansDeletePlan.js";
53
55
  import { tool$plansGetPlan } from "./tools/plansGetPlan.js";
54
- import { tool$plansPostPlansIdClone } from "./tools/plansPostPlansIdClone.js";
55
56
  import { tool$plansQueryPlan } from "./tools/plansQueryPlan.js";
56
57
  import { tool$plansSyncPlanPrices } from "./tools/plansSyncPlanPrices.js";
57
58
  import { tool$plansUpdatePlan } from "./tools/plansUpdatePlan.js";
@@ -79,13 +80,12 @@ import { tool$subscriptionsGetSubscriptionUpcomingGrants } from "./tools/subscri
79
80
  import { tool$subscriptionsGetSubscriptionUsage } from "./tools/subscriptionsGetSubscriptionUsage.js";
80
81
  import { tool$subscriptionsGetSubscriptionV2 } from "./tools/subscriptionsGetSubscriptionV2.js";
81
82
  import { tool$subscriptionsListAllSubscriptionSchedules } from "./tools/subscriptionsListAllSubscriptionSchedules.js";
82
- import { tool$subscriptionsListSubscriptionPauses } from "./tools/subscriptionsListSubscriptionPauses.js";
83
83
  import { tool$subscriptionsListSubscriptionSchedules } from "./tools/subscriptionsListSubscriptionSchedules.js";
84
- import { tool$subscriptionsPauseSubscription } from "./tools/subscriptionsPauseSubscription.js";
85
84
  import { tool$subscriptionsPreviewSubscriptionChange } from "./tools/subscriptionsPreviewSubscriptionChange.js";
85
+ import { tool$subscriptionsPreviewSubscriptionModify } from "./tools/subscriptionsPreviewSubscriptionModify.js";
86
86
  import { tool$subscriptionsQuerySubscription } from "./tools/subscriptionsQuerySubscription.js";
87
+ import { tool$subscriptionsQuerySubscriptionLineItems } from "./tools/subscriptionsQuerySubscriptionLineItems.js";
87
88
  import { tool$subscriptionsRemoveSubscriptionAddon } from "./tools/subscriptionsRemoveSubscriptionAddon.js";
88
- import { tool$subscriptionsResumeSubscription } from "./tools/subscriptionsResumeSubscription.js";
89
89
  import { tool$subscriptionsUpdateSubscription } from "./tools/subscriptionsUpdateSubscription.js";
90
90
  import { tool$subscriptionsUpdateSubscriptionLineItem } from "./tools/subscriptionsUpdateSubscriptionLineItem.js";
91
91
 
@@ -102,7 +102,7 @@ export function createMCPServer(deps: {
102
102
  }) {
103
103
  const server = new McpServer({
104
104
  name: "Flexprice",
105
- version: "2.0.20",
105
+ version: "2.0.21",
106
106
  });
107
107
 
108
108
  const getClient = deps.getSDK || (() =>
@@ -150,6 +150,7 @@ export function createMCPServer(deps: {
150
150
  tool(tool$customersUpdateCustomer);
151
151
  tool(tool$customersCreateCustomer);
152
152
  tool(tool$customersGetCustomerByExternalId);
153
+ tool(tool$customersGetCustomerEntitlementsByExternalID);
153
154
  tool(tool$customersQueryCustomer);
154
155
  tool(tool$customersGetCustomerUsageSummary);
155
156
  tool(tool$customersGetCustomer);
@@ -183,7 +184,7 @@ export function createMCPServer(deps: {
183
184
  tool(tool$plansGetPlan);
184
185
  tool(tool$plansUpdatePlan);
185
186
  tool(tool$plansDeletePlan);
186
- tool(tool$plansPostPlansIdClone);
187
+ tool(tool$plansClonePlan);
187
188
  tool(tool$plansSyncPlanPrices);
188
189
  tool(tool$pricesCreatePrice);
189
190
  tool(tool$pricesCreatePricesBulk);
@@ -195,6 +196,7 @@ export function createMCPServer(deps: {
195
196
  tool(tool$subscriptionsCreateSubscription);
196
197
  tool(tool$subscriptionsAddSubscriptionAddon);
197
198
  tool(tool$subscriptionsRemoveSubscriptionAddon);
199
+ tool(tool$subscriptionsQuerySubscriptionLineItems);
198
200
  tool(tool$subscriptionsUpdateSubscriptionLineItem);
199
201
  tool(tool$subscriptionsDeleteSubscriptionLineItem);
200
202
  tool(tool$subscriptionsQuerySubscription);
@@ -210,9 +212,7 @@ export function createMCPServer(deps: {
210
212
  tool(tool$subscriptionsGetSubscriptionUpcomingGrants);
211
213
  tool(tool$subscriptionsCreateSubscriptionLineItem);
212
214
  tool(tool$subscriptionsExecuteSubscriptionModify);
213
- tool(tool$subscriptionsPauseSubscription);
214
- tool(tool$subscriptionsListSubscriptionPauses);
215
- tool(tool$subscriptionsResumeSubscription);
215
+ tool(tool$subscriptionsPreviewSubscriptionModify);
216
216
  tool(tool$subscriptionsGetSubscriptionV2);
217
217
  tool(tool$subscriptionsListAllSubscriptionSchedules);
218
218
  tool(tool$subscriptionsGetSubscriptionSchedule);
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { customersGetCustomerEntitlementsByExternalID } from "../../funcs/customersGetCustomerEntitlementsByExternalID.js";
6
+ import { GetCustomerEntitlementsByExternalIDRequest$zodSchema } from "../../models/getcustomerentitlementsbyexternalidop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: GetCustomerEntitlementsByExternalIDRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$customersGetCustomerEntitlementsByExternalID: ToolDefinition<
14
+ typeof args
15
+ > = {
16
+ name: "get-customer-entitlements-by-external-i-d",
17
+ description: `Get customer entitlements by external ID
18
+
19
+ Use when checking entitlements by your app's customer id (e.g. feature gating at the edge). Supports optional filters (feature_ids, subscription_ids).`,
20
+ scopes: ["read"],
21
+ annotations: {
22
+ "title": "",
23
+ "destructiveHint": false,
24
+ "idempotentHint": false,
25
+ "openWorldHint": false,
26
+ "readOnlyHint": true,
27
+ },
28
+ args,
29
+ tool: async (client, args, ctx) => {
30
+ const [result] = await customersGetCustomerEntitlementsByExternalID(
31
+ client,
32
+ args.request,
33
+ { fetchOptions: { signal: ctx.signal } },
34
+ ).$inspect();
35
+
36
+ if (!result.ok) {
37
+ return {
38
+ content: [{ type: "text", text: result.error.message }],
39
+ isError: true,
40
+ };
41
+ }
42
+
43
+ return formatResult(result.value);
44
+ },
45
+ };
@@ -2,16 +2,16 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { plansPostPlansIdClone } from "../../funcs/plansPostPlansIdClone.js";
6
- import { PostPlansIdCloneRequest$zodSchema } from "../../models/postplansidcloneop.js";
5
+ import { plansClonePlan } from "../../funcs/plansClonePlan.js";
6
+ import { ClonePlanRequestRequest$zodSchema } from "../../models/cloneplanop.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: PostPlansIdCloneRequest$zodSchema,
10
+ request: ClonePlanRequestRequest$zodSchema,
11
11
  };
12
12
 
13
- export const tool$plansPostPlansIdClone: ToolDefinition<typeof args> = {
14
- name: "plans-post-plans-id-clone",
13
+ export const tool$plansClonePlan: ToolDefinition<typeof args> = {
14
+ name: "clone-plan",
15
15
  description: `Clone a plan
16
16
 
17
17
  Clone an existing plan, copying its active prices, published entitlements, and published credit grants`,
@@ -25,7 +25,7 @@ Clone an existing plan, copying its active prices, published entitlements, and p
25
25
  },
26
26
  args,
27
27
  tool: async (client, args, ctx) => {
28
- const [result] = await plansPostPlansIdClone(
28
+ const [result] = await plansClonePlan(
29
29
  client,
30
30
  args.request,
31
31
  { fetchOptions: { signal: ctx.signal } },
@@ -3,20 +3,20 @@
3
3
  */
4
4
 
5
5
  import { subscriptionsExecuteSubscriptionModify } from "../../funcs/subscriptionsExecuteSubscriptionModify.js";
6
- import { ExecuteSubscriptionModifyRequest$zodSchema } from "../../models/executesubscriptionmodifyop.js";
6
+ import { ExecuteSubscriptionModifyRequestRequest$zodSchema } from "../../models/executesubscriptionmodifyop.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: ExecuteSubscriptionModifyRequest$zodSchema,
10
+ request: ExecuteSubscriptionModifyRequestRequest$zodSchema,
11
11
  };
12
12
 
13
13
  export const tool$subscriptionsExecuteSubscriptionModify: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "execute-subscription-modify",
17
- description: `Add customers to subscription inheritance
17
+ description: `Execute subscription modification
18
18
 
19
- 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.`,
19
+ Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax).`,
20
20
  scopes: ["write"],
21
21
  annotations: {
22
22
  "title": "",
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { subscriptionsPreviewSubscriptionModify } from "../../funcs/subscriptionsPreviewSubscriptionModify.js";
6
+ import { PreviewSubscriptionModifyRequest$zodSchema } from "../../models/previewsubscriptionmodifyop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: PreviewSubscriptionModifyRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$subscriptionsPreviewSubscriptionModify: ToolDefinition<
14
+ typeof args
15
+ > = {
16
+ name: "preview-subscription-modify",
17
+ description: `Preview subscription modification
18
+
19
+ Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, or tax) without committing changes.`,
20
+ scopes: ["read"],
21
+ annotations: {
22
+ "title": "",
23
+ "destructiveHint": false,
24
+ "idempotentHint": false,
25
+ "openWorldHint": false,
26
+ "readOnlyHint": true,
27
+ },
28
+ args,
29
+ tool: async (client, args, ctx) => {
30
+ const [result] = await subscriptionsPreviewSubscriptionModify(
31
+ client,
32
+ args.request,
33
+ { fetchOptions: { signal: ctx.signal } },
34
+ ).$inspect();
35
+
36
+ if (!result.ok) {
37
+ return {
38
+ content: [{ type: "text", text: result.error.message }],
39
+ isError: true,
40
+ };
41
+ }
42
+
43
+ return formatResult(result.value);
44
+ },
45
+ };
@@ -2,21 +2,21 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { subscriptionsListSubscriptionPauses } from "../../funcs/subscriptionsListSubscriptionPauses.js";
6
- import { ListSubscriptionPausesRequest$zodSchema } from "../../models/listsubscriptionpausesop.js";
5
+ import { subscriptionsQuerySubscriptionLineItems } from "../../funcs/subscriptionsQuerySubscriptionLineItems.js";
6
+ import { SubscriptionLineItemFilter$zodSchema } from "../../models/subscriptionlineitemfilter.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: ListSubscriptionPausesRequest$zodSchema,
10
+ request: SubscriptionLineItemFilter$zodSchema.describe(`Filter`),
11
11
  };
12
12
 
13
- export const tool$subscriptionsListSubscriptionPauses: ToolDefinition<
13
+ export const tool$subscriptionsQuerySubscriptionLineItems: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
- name: "list-subscription-pauses",
17
- description: `List all pauses for a subscription
16
+ name: "query-subscription-line-items",
17
+ description: `Search subscription line items
18
18
 
19
- Use when showing pause history for a subscription (e.g. support or audit). Returns all past and future pauses.`,
19
+ List subscription line items with a JSON filter (subscription, customer, price, pagination, expand=prices, etc.).`,
20
20
  scopes: ["read"],
21
21
  annotations: {
22
22
  "title": "",
@@ -27,7 +27,7 @@ Use when showing pause history for a subscription (e.g. support or audit). Retur
27
27
  },
28
28
  args,
29
29
  tool: async (client, args, ctx) => {
30
- const [result] = await subscriptionsListSubscriptionPauses(
30
+ const [result] = await subscriptionsQuerySubscriptionLineItems(
31
31
  client,
32
32
  args.request,
33
33
  { fetchOptions: { signal: ctx.signal } },
@@ -343,6 +343,8 @@ export function registerDynamicTools(
343
343
  if (def.args) {
344
344
  const jsonSchema = z.toJSONSchema(z.object(def.args), {
345
345
  target: "draft-2020-12",
346
+ io: "input",
347
+ unrepresentable: "any",
346
348
  });
347
349
  schemaText += JSON.stringify(jsonSchema, null, 2);
348
350
  } else {
@@ -358,16 +360,16 @@ export function registerDynamicTools(
358
360
 
359
361
  return { content: [{ type: "text", text: parts.join("\n\n") }] };
360
362
  });
361
- logger.debug("Registered dynamic meta-tool", { name: "describe_tool" });
363
+ logger.debug("Registered dynamic meta-tool", { name: "describe_tool_input" });
362
364
 
363
365
  // 3. execute_tool
364
366
  server.registerTool("execute_tool", {
365
367
  description:
366
- "Execute a tool by name with the provided input parameters. If executing a given tool for the first time, it is recommended to call describe_tool_input first to understand the expected input schema.",
368
+ "Execute a tool by name with its arguments. If executing a given tool for the first time, it is recommended to call describe_tool_input first to understand the expected `arguments` shape.",
367
369
  inputSchema: {
368
- tool_name: z.string().describe("The name of the tool to execute"),
369
- input: z.record(z.string(), z.unknown()).optional().describe(
370
- "Input parameters for the tool as a JSON object",
370
+ name: z.string().describe("The name of the tool to execute"),
371
+ arguments: z.looseObject({}).optional().describe(
372
+ "Arguments for the target tool as a JSON object, matching the schema returned by describe_tool_input.",
371
373
  ),
372
374
  },
373
375
  annotations: {
@@ -378,17 +380,17 @@ export function registerDynamicTools(
378
380
  openWorldHint: true,
379
381
  },
380
382
  }, async (args, ctx) => {
381
- const def = toolMap.get(args.tool_name);
383
+ const def = toolMap.get(args.name);
382
384
  if (!def) {
383
385
  return {
384
- content: [{ type: "text", text: `Unknown tool: ${args.tool_name}` }],
386
+ content: [{ type: "text", text: `Unknown tool: ${args.name}` }],
385
387
  isError: true,
386
388
  };
387
389
  }
388
390
 
389
391
  let validatedInput: Record<string, unknown> = {};
390
392
  if (def.args) {
391
- const vres = z.object(def.args).safeParse(args.input ?? {});
393
+ const vres = z.object(def.args).safeParse(args.arguments ?? {});
392
394
  if (vres.success) {
393
395
  validatedInput = vres.data;
394
396
  } else {
@@ -398,7 +400,7 @@ export function registerDynamicTools(
398
400
  content: [{
399
401
  type: "text",
400
402
  text:
401
- `Invalid input for tool ${args.tool_name}:\n<issues>\n${issues}\n</issues>`,
403
+ `Invalid input for tool ${args.name}:\n<issues>\n${issues}\n</issues>`,
402
404
  }],
403
405
  isError: true,
404
406
  };
@@ -416,7 +418,7 @@ export function registerDynamicTools(
416
418
  return {
417
419
  content: [{
418
420
  type: "text",
419
- text: `Error executing tool ${args.tool_name}: ${message}`,
421
+ text: `Error executing tool ${args.name}: ${message}`,
420
422
  }],
421
423
  isError: true,
422
424
  };
@@ -3,21 +3,29 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
+ import { AddonCadence, AddonCadence$zodSchema } from "./addoncadence.js";
6
7
  import {
7
8
  LineItemCommitmentConfig,
8
9
  LineItemCommitmentConfig$zodSchema,
9
10
  } from "./lineitemcommitmentconfig.js";
11
+ import {
12
+ ProrationBehavior,
13
+ ProrationBehavior$zodSchema,
14
+ } from "./prorationbehavior.js";
10
15
 
11
16
  export type AddAddonRequest = {
12
17
  addon_id: string;
18
+ cadence?: AddonCadence | undefined;
13
19
  line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
14
20
  metadata?: { [k: string]: any } | undefined;
21
+ proration_behavior?: ProrationBehavior | undefined;
15
22
  start_date?: string | undefined;
16
23
  subscription_id: string;
17
24
  };
18
25
 
19
26
  export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
20
27
  addon_id: z.string(),
28
+ cadence: AddonCadence$zodSchema.optional(),
21
29
  line_item_commitments: z.record(
22
30
  z.string(),
23
31
  LineItemCommitmentConfig$zodSchema,
@@ -25,6 +33,7 @@ export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
25
33
  "LineItemCommitments allows setting commitment configuration per addon line item (keyed by price_id)",
26
34
  ),
27
35
  metadata: z.record(z.string(), z.any()).optional(),
36
+ proration_behavior: ProrationBehavior$zodSchema.optional(),
28
37
  start_date: z.iso.datetime({ offset: true }).optional(),
29
38
  subscription_id: z.string(),
30
39
  });
@@ -3,15 +3,22 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
+ import { AddonCadence, AddonCadence$zodSchema } from "./addoncadence.js";
6
7
  import {
7
8
  LineItemCommitmentConfig,
8
9
  LineItemCommitmentConfig$zodSchema,
9
10
  } from "./lineitemcommitmentconfig.js";
11
+ import {
12
+ ProrationBehavior,
13
+ ProrationBehavior$zodSchema,
14
+ } from "./prorationbehavior.js";
10
15
 
11
16
  export type AddAddonToSubscriptionRequest = {
12
17
  addon_id: string;
18
+ cadence?: AddonCadence | undefined;
13
19
  line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
14
20
  metadata?: { [k: string]: any } | undefined;
21
+ proration_behavior?: ProrationBehavior | undefined;
15
22
  start_date?: string | undefined;
16
23
  };
17
24
 
@@ -19,6 +26,7 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
19
26
  AddAddonToSubscriptionRequest
20
27
  > = z.object({
21
28
  addon_id: z.string(),
29
+ cadence: AddonCadence$zodSchema.optional(),
22
30
  line_item_commitments: z.record(
23
31
  z.string(),
24
32
  LineItemCommitmentConfig$zodSchema,
@@ -26,5 +34,6 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
26
34
  "LineItemCommitments allows setting commitment configuration per addon line item (keyed by price_id)",
27
35
  ),
28
36
  metadata: z.record(z.string(), z.any()).optional(),
37
+ proration_behavior: ProrationBehavior$zodSchema.optional(),
29
38
  start_date: z.iso.datetime({ offset: true }).optional(),
30
39
  });
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { AddonType, AddonType$zodSchema } from "./addontype.js";
7
6
  import { Status, Status$zodSchema } from "./status.js";
8
7
 
9
8
  export type Addon = {
@@ -17,7 +16,6 @@ export type Addon = {
17
16
  name?: string | undefined;
18
17
  status?: Status | undefined;
19
18
  tenant_id?: string | undefined;
20
- type?: AddonType | undefined;
21
19
  updated_at?: string | undefined;
22
20
  updated_by?: string | undefined;
23
21
  };
@@ -33,7 +31,6 @@ export const Addon$zodSchema: z.ZodType<Addon> = z.object({
33
31
  name: z.string().optional(),
34
32
  status: Status$zodSchema.optional(),
35
33
  tenant_id: z.string().optional(),
36
- type: AddonType$zodSchema.optional(),
37
34
  updated_at: z.iso.datetime({ offset: true }).optional(),
38
35
  updated_by: z.string().optional(),
39
36
  });
@@ -5,13 +5,13 @@
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
- export const AddonType = {
8
+ export const AddonCadence = {
9
9
  Onetime: "onetime",
10
- MultipleInstance: "multiple_instance",
10
+ Recurring: "recurring",
11
11
  } as const;
12
- export type AddonType = ClosedEnum<typeof AddonType>;
12
+ export type AddonCadence = ClosedEnum<typeof AddonCadence>;
13
13
 
14
- export const AddonType$zodSchema = z.enum([
14
+ export const AddonCadence$zodSchema = z.enum([
15
15
  "onetime",
16
- "multiple_instance",
16
+ "recurring",
17
17
  ]);
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { AddonType, AddonType$zodSchema } from "./addontype.js";
7
6
  import {
8
7
  EntitlementResponse,
9
8
  EntitlementResponse$zodSchema,
@@ -24,7 +23,6 @@ export type AddonResponse = {
24
23
  prices?: Array<PriceResponse> | undefined;
25
24
  status?: Status | undefined;
26
25
  tenant_id?: string | undefined;
27
- type?: AddonType | undefined;
28
26
  updated_at?: string | undefined;
29
27
  updated_by?: string | undefined;
30
28
  };
@@ -44,7 +42,6 @@ export const AddonResponse$zodSchema: z.ZodType<AddonResponse> = z.object({
44
42
  ),
45
43
  status: Status$zodSchema.optional(),
46
44
  tenant_id: z.string().optional(),
47
- type: AddonType$zodSchema.optional(),
48
45
  updated_at: z.iso.datetime({ offset: true }).optional(),
49
46
  updated_by: z.string().optional(),
50
47
  });
@@ -8,12 +8,12 @@ import { ClosedEnum } from "../types/enums.js";
8
8
  export const AddonStatus = {
9
9
  Active: "active",
10
10
  Cancelled: "cancelled",
11
- Paused: "paused",
11
+ Pending: "pending",
12
12
  } as const;
13
13
  export type AddonStatus = ClosedEnum<typeof AddonStatus>;
14
14
 
15
15
  export const AddonStatus$zodSchema = z.enum([
16
16
  "active",
17
17
  "cancelled",
18
- "paused",
18
+ "pending",
19
19
  ]);
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type Address = {
8
+ address_city?: string | undefined;
9
+ address_country?: string | undefined;
10
+ address_line1?: string | undefined;
11
+ address_line2?: string | undefined;
12
+ address_postal_code?: string | undefined;
13
+ address_state?: string | undefined;
14
+ };
15
+
16
+ export const Address$zodSchema: z.ZodType<Address> = z.object({
17
+ address_city: z.string().optional(),
18
+ address_country: z.string().optional(),
19
+ address_line1: z.string().optional(),
20
+ address_line2: z.string().optional(),
21
+ address_postal_code: z.string().optional(),
22
+ address_state: z.string().optional(),
23
+ });
@@ -8,7 +8,12 @@ import {
8
8
  EntitlementUsageResetPeriod$zodSchema,
9
9
  } from "./entitlementusageresetperiod.js";
10
10
 
11
+ export type ConfigValue = {};
12
+
13
+ export const ConfigValue$zodSchema: z.ZodType<ConfigValue> = z.object({});
14
+
11
15
  export type AggregatedEntitlement = {
16
+ config_values?: Array<{ [k: string]: ConfigValue }> | undefined;
12
17
  is_enabled?: boolean | undefined;
13
18
  is_soft_limit?: boolean | undefined;
14
19
  static_values?: Array<string> | undefined;
@@ -18,11 +23,12 @@ export type AggregatedEntitlement = {
18
23
 
19
24
  export const AggregatedEntitlement$zodSchema: z.ZodType<AggregatedEntitlement> =
20
25
  z.object({
26
+ config_values: z.array(
27
+ z.record(z.string(), z.lazy(() => ConfigValue$zodSchema)),
28
+ ).optional(),
21
29
  is_enabled: z.boolean().optional(),
22
30
  is_soft_limit: z.boolean().optional(),
23
- static_values: z.array(z.string()).optional().describe(
24
- "For static/SLA features",
25
- ),
31
+ static_values: z.array(z.string()).optional(),
26
32
  usage_limit: z.int().optional(),
27
33
  usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional(),
28
34
  });
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../types/enums.js";
7
+
8
+ export const AlertState = {
9
+ Ok: "ok",
10
+ Info: "info",
11
+ Warning: "warning",
12
+ InAlarm: "in_alarm",
13
+ } as const;
14
+ export type AlertState = ClosedEnum<typeof AlertState>;
15
+
16
+ export const AlertState$zodSchema = z.enum([
17
+ "ok",
18
+ "info",
19
+ "warning",
20
+ "in_alarm",
21
+ ]);
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ DebugTrackerStatus,
8
+ DebugTrackerStatus$zodSchema,
9
+ } from "./debugtrackerstatus.js";
10
+ import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
11
+ import {
12
+ MeterUsageAttribution,
13
+ MeterUsageAttribution$zodSchema,
14
+ } from "./meterusageattribution.js";
15
+
16
+ export type AttributedToCustomerResult = {
17
+ error?: ErrorResponse | undefined;
18
+ meter_usage?: MeterUsageAttribution | undefined;
19
+ status?: DebugTrackerStatus | undefined;
20
+ };
21
+
22
+ export const AttributedToCustomerResult$zodSchema: z.ZodType<
23
+ AttributedToCustomerResult
24
+ > = z.object({
25
+ error: ErrorResponse$zodSchema.optional(),
26
+ meter_usage: MeterUsageAttribution$zodSchema.optional(),
27
+ status: DebugTrackerStatus$zodSchema.optional(),
28
+ });
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type AutoTopup = {
8
+ amount?: number | undefined;
9
+ enabled?: boolean | undefined;
10
+ invoicing?: boolean | undefined;
11
+ threshold?: number | undefined;
12
+ };
13
+
14
+ export const AutoTopup$zodSchema: z.ZodType<AutoTopup> = z.object({
15
+ amount: z.number().optional(),
16
+ enabled: z.boolean().optional(),
17
+ invoicing: z.boolean().optional(),
18
+ threshold: z.number().optional(),
19
+ });
@@ -7,11 +7,9 @@ import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const BillingCadence = {
9
9
  Recurring: "RECURRING",
10
- Onetime: "ONETIME",
11
10
  } as const;
12
11
  export type BillingCadence = ClosedEnum<typeof BillingCadence>;
13
12
 
14
13
  export const BillingCadence$zodSchema = z.enum([
15
14
  "RECURRING",
16
- "ONETIME",
17
15
  ]);
@@ -12,6 +12,7 @@ export const BillingPeriod = {
12
12
  Daily: "DAILY",
13
13
  Quarterly: "QUARTERLY",
14
14
  HalfYearly: "HALF_YEARLY",
15
+ Onetime: "ONETIME",
15
16
  } as const;
16
17
  export type BillingPeriod = ClosedEnum<typeof BillingPeriod>;
17
18
 
@@ -22,4 +23,5 @@ export const BillingPeriod$zodSchema = z.enum([
22
23
  "DAILY",
23
24
  "QUARTERLY",
24
25
  "HALF_YEARLY",
26
+ "ONETIME",
25
27
  ]);
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type Bucket = { hour?: number | undefined; minute?: number | undefined };
8
+
9
+ export const Bucket$zodSchema: z.ZodType<Bucket> = z.object({
10
+ hour: z.int().optional(),
11
+ minute: z.int().optional(),
12
+ });