@flexprice/mcp-server 2.1.25 → 2.1.30

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 (413) hide show
  1. package/bin/mcp-server.js +6117 -4614
  2. package/bin/mcp-server.js.map +128 -107
  3. package/bun.lock +50 -56
  4. package/esm/funcs/invoicesExecuteInvoiceModify.d.ts +16 -0
  5. package/esm/funcs/invoicesExecuteInvoiceModify.d.ts.map +1 -0
  6. package/esm/funcs/invoicesExecuteInvoiceModify.js +88 -0
  7. package/esm/funcs/invoicesExecuteInvoiceModify.js.map +1 -0
  8. package/esm/funcs/subscriptionsCancelSubscriptionSchedule.js +1 -1
  9. package/esm/funcs/subscriptionsCancelSubscriptionSchedule.js.map +1 -1
  10. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +3 -1
  11. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -1
  12. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js +3 -1
  13. package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -1
  14. package/esm/funcs/subscriptionsGetSubscriptionSchedule.js +2 -2
  15. package/esm/funcs/subscriptionsGetSubscriptionSchedule.js.map +1 -1
  16. package/esm/funcs/subscriptionsListAllSubscriptionSchedules.js +1 -1
  17. package/esm/funcs/subscriptionsListAllSubscriptionSchedules.js.map +1 -1
  18. package/esm/funcs/subscriptionsListSubscriptionSchedules.js +2 -2
  19. package/esm/funcs/subscriptionsListSubscriptionSchedules.js.map +1 -1
  20. package/esm/lib/config.d.ts +3 -3
  21. package/esm/lib/config.js +3 -3
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +7 -5
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.d.ts +7 -0
  27. package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.d.ts.map +1 -0
  28. package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.js +35 -0
  29. package/esm/mcp-server/tools/invoicesExecuteInvoiceModify.js.map +1 -0
  30. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -1
  31. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js +3 -1
  32. package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -1
  33. package/esm/models/addlineitemrequest.d.ts +11 -0
  34. package/esm/models/addlineitemrequest.d.ts.map +1 -0
  35. package/esm/models/addlineitemrequest.js +14 -0
  36. package/esm/models/addlineitemrequest.js.map +1 -0
  37. package/esm/models/alertsettings.d.ts +2 -0
  38. package/esm/models/alertsettings.d.ts.map +1 -1
  39. package/esm/models/alertsettings.js +2 -0
  40. package/esm/models/alertsettings.js.map +1 -1
  41. package/esm/models/alertthresholdtype.d.ts +12 -0
  42. package/esm/models/alertthresholdtype.d.ts.map +1 -0
  43. package/esm/models/alertthresholdtype.js +13 -0
  44. package/esm/models/alertthresholdtype.js.map +1 -0
  45. package/esm/models/billingperiodbehaviour.d.ts +14 -0
  46. package/esm/models/billingperiodbehaviour.d.ts.map +1 -0
  47. package/esm/models/billingperiodbehaviour.js +15 -0
  48. package/esm/models/billingperiodbehaviour.js.map +1 -0
  49. package/esm/models/billingperiodconfig.d.ts +11 -0
  50. package/esm/models/billingperiodconfig.d.ts.map +1 -0
  51. package/esm/models/billingperiodconfig.js +14 -0
  52. package/esm/models/billingperiodconfig.js.map +1 -0
  53. package/esm/models/changedinvoice.d.ts.map +1 -1
  54. package/esm/models/changedinvoice.js +1 -1
  55. package/esm/models/changedinvoice.js.map +1 -1
  56. package/esm/models/changedinvoicestatus.d.ts +0 -6
  57. package/esm/models/changedinvoicestatus.d.ts.map +1 -1
  58. package/esm/models/changedinvoicestatus.js +1 -4
  59. package/esm/models/changedinvoicestatus.js.map +1 -1
  60. package/esm/models/checkoutpaymentblock.d.ts +9 -0
  61. package/esm/models/checkoutpaymentblock.d.ts.map +1 -0
  62. package/esm/models/checkoutpaymentblock.js +12 -0
  63. package/esm/models/checkoutpaymentblock.js.map +1 -0
  64. package/esm/models/checkoutpaymentprovider.d.ts +2 -0
  65. package/esm/models/checkoutpaymentprovider.d.ts.map +1 -1
  66. package/esm/models/checkoutpaymentprovider.js +2 -0
  67. package/esm/models/checkoutpaymentprovider.js.map +1 -1
  68. package/esm/models/checkoutpaymentproviderconfig.d.ts +1 -0
  69. package/esm/models/checkoutpaymentproviderconfig.d.ts.map +1 -1
  70. package/esm/models/checkoutpaymentproviderconfig.js +1 -0
  71. package/esm/models/checkoutpaymentproviderconfig.js.map +1 -1
  72. package/esm/models/checkoutsessionresponse.d.ts +5 -14
  73. package/esm/models/checkoutsessionresponse.d.ts.map +1 -1
  74. package/esm/models/checkoutsessionresponse.js +10 -20
  75. package/esm/models/checkoutsessionresponse.js.map +1 -1
  76. package/esm/models/createcustomerrequest.d.ts +2 -0
  77. package/esm/models/createcustomerrequest.d.ts.map +1 -1
  78. package/esm/models/createcustomerrequest.js +2 -0
  79. package/esm/models/createcustomerrequest.js.map +1 -1
  80. package/esm/models/createinvoicerequest.d.ts +0 -2
  81. package/esm/models/createinvoicerequest.d.ts.map +1 -1
  82. package/esm/models/createinvoicerequest.js +0 -2
  83. package/esm/models/createinvoicerequest.js.map +1 -1
  84. package/esm/models/createpricerequest.d.ts +2 -0
  85. package/esm/models/createpricerequest.d.ts.map +1 -1
  86. package/esm/models/createpricerequest.js +2 -0
  87. package/esm/models/createpricerequest.js.map +1 -1
  88. package/esm/models/createsubscriptionrequest.d.ts +1 -0
  89. package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
  90. package/esm/models/createsubscriptionrequest.js +1 -0
  91. package/esm/models/createsubscriptionrequest.js.map +1 -1
  92. package/esm/models/creditgrantapplicationresponse.d.ts +1 -1
  93. package/esm/models/creditgrantapplicationresponse.js +1 -1
  94. package/esm/models/customcurrency.d.ts +13 -0
  95. package/esm/models/customcurrency.d.ts.map +1 -0
  96. package/esm/models/customcurrency.js +15 -0
  97. package/esm/models/customcurrency.js.map +1 -0
  98. package/esm/models/customcurrencylineitem.d.ts +9 -0
  99. package/esm/models/customcurrencylineitem.d.ts.map +1 -0
  100. package/esm/models/customcurrencylineitem.js +11 -0
  101. package/esm/models/customcurrencylineitem.js.map +1 -0
  102. package/esm/models/customer.d.ts +2 -0
  103. package/esm/models/customer.d.ts.map +1 -1
  104. package/esm/models/customer.js +2 -0
  105. package/esm/models/customer.js.map +1 -1
  106. package/esm/models/customerresponse.d.ts +2 -0
  107. package/esm/models/customerresponse.d.ts.map +1 -1
  108. package/esm/models/customerresponse.js +2 -0
  109. package/esm/models/customerresponse.js.map +1 -1
  110. package/esm/models/entitlementresponse.d.ts +1 -1
  111. package/esm/models/entitlementresponse.js +1 -1
  112. package/esm/models/entitychangebehaviour.d.ts +2 -0
  113. package/esm/models/entitychangebehaviour.d.ts.map +1 -1
  114. package/esm/models/entitychangebehaviour.js +2 -0
  115. package/esm/models/entitychangebehaviour.js.map +1 -1
  116. package/esm/models/entitychangepolicy.js +1 -1
  117. package/esm/models/entitychangepolicy.js.map +1 -1
  118. package/esm/models/entitychangeresult.d.ts +2 -2
  119. package/esm/models/entitychangeresult.d.ts.map +1 -1
  120. package/esm/models/entitychangeresult.js +2 -2
  121. package/esm/models/entitychangeresult.js.map +1 -1
  122. package/esm/models/executeinvoicemodifyop.d.ts +12 -0
  123. package/esm/models/executeinvoicemodifyop.d.ts.map +1 -0
  124. package/esm/models/executeinvoicemodifyop.js +16 -0
  125. package/esm/models/executeinvoicemodifyop.js.map +1 -0
  126. package/esm/models/executeinvoicemodifyrequest.d.ts +9 -0
  127. package/esm/models/executeinvoicemodifyrequest.d.ts.map +1 -0
  128. package/esm/models/executeinvoicemodifyrequest.js +11 -0
  129. package/esm/models/executeinvoicemodifyrequest.js.map +1 -0
  130. package/esm/models/getsubscriptionaddonassociationsop.d.ts +2 -2
  131. package/esm/models/getsubscriptionaddonassociationsop.d.ts.map +1 -1
  132. package/esm/models/getsubscriptionaddonassociationsop.js +2 -2
  133. package/esm/models/getsubscriptionaddonassociationsop.js.map +1 -1
  134. package/esm/models/getsubscriptionscheduleop.d.ts +1 -1
  135. package/esm/models/getsubscriptionscheduleop.d.ts.map +1 -1
  136. package/esm/models/getsubscriptionscheduleop.js +1 -1
  137. package/esm/models/getsubscriptionscheduleop.js.map +1 -1
  138. package/esm/models/invoicelineitemresponse.d.ts +2 -0
  139. package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
  140. package/esm/models/invoicelineitemresponse.js +2 -0
  141. package/esm/models/invoicelineitemresponse.js.map +1 -1
  142. package/esm/models/invoicemodifylineitemaction.d.ts +14 -0
  143. package/esm/models/invoicemodifylineitemaction.d.ts.map +1 -0
  144. package/esm/models/invoicemodifylineitemaction.js +15 -0
  145. package/esm/models/invoicemodifylineitemaction.js.map +1 -0
  146. package/esm/models/invoicemodifylineitemparams.d.ts +13 -0
  147. package/esm/models/invoicemodifylineitemparams.d.ts.map +1 -0
  148. package/esm/models/invoicemodifylineitemparams.js +15 -0
  149. package/esm/models/invoicemodifylineitemparams.js.map +1 -0
  150. package/esm/models/invoicemodifyresponse.d.ts +7 -0
  151. package/esm/models/invoicemodifyresponse.d.ts.map +1 -0
  152. package/esm/models/invoicemodifyresponse.js +9 -0
  153. package/esm/models/invoicemodifyresponse.js.map +1 -0
  154. package/esm/models/invoicemodifytype.d.ts +10 -0
  155. package/esm/models/invoicemodifytype.d.ts.map +1 -0
  156. package/esm/models/invoicemodifytype.js +11 -0
  157. package/esm/models/invoicemodifytype.js.map +1 -0
  158. package/esm/models/invoiceresponse.d.ts +6 -0
  159. package/esm/models/invoiceresponse.d.ts.map +1 -1
  160. package/esm/models/invoiceresponse.js +6 -0
  161. package/esm/models/invoiceresponse.js.map +1 -1
  162. package/esm/models/invoicestatus.d.ts +1 -1
  163. package/esm/models/listaddonassociationsresponse.d.ts +9 -0
  164. package/esm/models/listaddonassociationsresponse.d.ts.map +1 -0
  165. package/esm/models/listaddonassociationsresponse.js +11 -0
  166. package/esm/models/listaddonassociationsresponse.js.map +1 -0
  167. package/esm/models/listsubscriptionschedulesop.d.ts +1 -1
  168. package/esm/models/listsubscriptionschedulesop.d.ts.map +1 -1
  169. package/esm/models/listsubscriptionschedulesop.js +1 -1
  170. package/esm/models/listsubscriptionschedulesop.js.map +1 -1
  171. package/esm/models/meteraggregation.js +1 -1
  172. package/esm/models/meteraggregation.js.map +1 -1
  173. package/esm/models/onpendingschedulepolicy.d.ts +12 -0
  174. package/esm/models/onpendingschedulepolicy.d.ts.map +1 -0
  175. package/esm/models/onpendingschedulepolicy.js +13 -0
  176. package/esm/models/onpendingschedulepolicy.js.map +1 -0
  177. package/esm/models/overridelineitemrequest.d.ts +2 -0
  178. package/esm/models/overridelineitemrequest.d.ts.map +1 -1
  179. package/esm/models/overridelineitemrequest.js +2 -0
  180. package/esm/models/overridelineitemrequest.js.map +1 -1
  181. package/esm/models/paymentstatus.d.ts +1 -1
  182. package/esm/models/planpricesyncstatusresponse.d.ts +8 -0
  183. package/esm/models/planpricesyncstatusresponse.d.ts.map +1 -0
  184. package/esm/models/planpricesyncstatusresponse.js +10 -0
  185. package/esm/models/planpricesyncstatusresponse.js.map +1 -0
  186. package/esm/models/planresponse.d.ts +2 -0
  187. package/esm/models/planresponse.d.ts.map +1 -1
  188. package/esm/models/planresponse.js +2 -0
  189. package/esm/models/planresponse.js.map +1 -1
  190. package/esm/models/pricefeatureresponse.d.ts +7 -0
  191. package/esm/models/pricefeatureresponse.d.ts.map +1 -0
  192. package/esm/models/pricefeatureresponse.js +10 -0
  193. package/esm/models/pricefeatureresponse.js.map +1 -0
  194. package/esm/models/priceprice.d.ts +2 -0
  195. package/esm/models/priceprice.d.ts.map +1 -1
  196. package/esm/models/priceprice.js +2 -0
  197. package/esm/models/priceprice.js.map +1 -1
  198. package/esm/models/priceresponse.d.ts +4 -0
  199. package/esm/models/priceresponse.d.ts.map +1 -1
  200. package/esm/models/priceresponse.js +4 -0
  201. package/esm/models/priceresponse.js.map +1 -1
  202. package/esm/models/subscriptionchangebillingperiodresult.d.ts +10 -0
  203. package/esm/models/subscriptionchangebillingperiodresult.d.ts.map +1 -0
  204. package/esm/models/subscriptionchangebillingperiodresult.js +12 -0
  205. package/esm/models/subscriptionchangebillingperiodresult.js.map +1 -0
  206. package/esm/models/subscriptionchangeconflictpolicies.d.ts +7 -0
  207. package/esm/models/subscriptionchangeconflictpolicies.d.ts.map +1 -0
  208. package/esm/models/subscriptionchangeconflictpolicies.js +9 -0
  209. package/esm/models/subscriptionchangeconflictpolicies.js.map +1 -0
  210. package/esm/models/subscriptionchangeentitytype.d.ts +18 -0
  211. package/esm/models/subscriptionchangeentitytype.d.ts.map +1 -0
  212. package/esm/models/subscriptionchangeentitytype.js +19 -0
  213. package/esm/models/subscriptionchangeentitytype.js.map +1 -0
  214. package/esm/models/subscriptionchangev2request.d.ts +6 -0
  215. package/esm/models/subscriptionchangev2request.d.ts.map +1 -1
  216. package/esm/models/subscriptionchangev2request.js +6 -0
  217. package/esm/models/subscriptionchangev2request.js.map +1 -1
  218. package/esm/models/subscriptionchangev2response.d.ts +3 -0
  219. package/esm/models/subscriptionchangev2response.d.ts.map +1 -1
  220. package/esm/models/subscriptionchangev2response.js +3 -0
  221. package/esm/models/subscriptionchangev2response.js.map +1 -1
  222. package/esm/models/subscriptionpricecreaterequest.d.ts +2 -0
  223. package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
  224. package/esm/models/subscriptionpricecreaterequest.js +2 -0
  225. package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
  226. package/esm/models/taxappliedresponse.d.ts +2 -0
  227. package/esm/models/taxappliedresponse.d.ts.map +1 -1
  228. package/esm/models/taxappliedresponse.js +2 -0
  229. package/esm/models/taxappliedresponse.js.map +1 -1
  230. package/esm/models/taxbehavior.d.ts +12 -0
  231. package/esm/models/taxbehavior.d.ts.map +1 -0
  232. package/esm/models/taxbehavior.js +13 -0
  233. package/esm/models/taxbehavior.js.map +1 -0
  234. package/esm/models/taxexemptionreasoncode.d.ts +12 -0
  235. package/esm/models/taxexemptionreasoncode.d.ts.map +1 -0
  236. package/esm/models/taxexemptionreasoncode.js +13 -0
  237. package/esm/models/taxexemptionreasoncode.js.map +1 -0
  238. package/esm/models/taxexemptionsummary.d.ts +8 -0
  239. package/esm/models/taxexemptionsummary.d.ts.map +1 -0
  240. package/esm/models/taxexemptionsummary.js +11 -0
  241. package/esm/models/taxexemptionsummary.js.map +1 -0
  242. package/esm/models/taxrateoverride.d.ts +2 -0
  243. package/esm/models/taxrateoverride.d.ts.map +1 -1
  244. package/esm/models/taxrateoverride.js +2 -0
  245. package/esm/models/taxrateoverride.js.map +1 -1
  246. package/esm/models/taxrateresponse.d.ts +0 -1
  247. package/esm/models/taxrateresponse.d.ts.map +1 -1
  248. package/esm/models/taxrateresponse.js +0 -1
  249. package/esm/models/taxrateresponse.js.map +1 -1
  250. package/esm/models/taxratetype.d.ts +0 -2
  251. package/esm/models/taxratetype.d.ts.map +1 -1
  252. package/esm/models/taxratetype.js +0 -2
  253. package/esm/models/taxratetype.js.map +1 -1
  254. package/esm/models/taxsummary.d.ts +10 -0
  255. package/esm/models/taxsummary.d.ts.map +1 -0
  256. package/esm/models/taxsummary.js +12 -0
  257. package/esm/models/taxsummary.js.map +1 -0
  258. package/esm/models/taxtreatment.d.ts +12 -0
  259. package/esm/models/taxtreatment.d.ts.map +1 -0
  260. package/esm/models/taxtreatment.js +13 -0
  261. package/esm/models/taxtreatment.js.map +1 -0
  262. package/esm/models/updatecustomerrequest.d.ts +2 -0
  263. package/esm/models/updatecustomerrequest.d.ts.map +1 -1
  264. package/esm/models/updatecustomerrequest.js +2 -0
  265. package/esm/models/updatecustomerrequest.js.map +1 -1
  266. package/esm/models/updatelineitemrequest.d.ts +11 -0
  267. package/esm/models/updatelineitemrequest.d.ts.map +1 -0
  268. package/esm/models/updatelineitemrequest.js +13 -0
  269. package/esm/models/updatelineitemrequest.js.map +1 -0
  270. package/esm/models/updatepricerequest.d.ts +2 -0
  271. package/esm/models/updatepricerequest.d.ts.map +1 -1
  272. package/esm/models/updatepricerequest.js +2 -0
  273. package/esm/models/updatepricerequest.js.map +1 -1
  274. package/esm/models/updatesubscriptionlineitemrequest.d.ts +2 -0
  275. package/esm/models/updatesubscriptionlineitemrequest.d.ts.map +1 -1
  276. package/esm/models/updatesubscriptionlineitemrequest.js +2 -0
  277. package/esm/models/updatesubscriptionlineitemrequest.js.map +1 -1
  278. package/esm/tool-names.d.ts.map +1 -1
  279. package/esm/tool-names.js +21 -17
  280. package/esm/tool-names.js.map +1 -1
  281. package/esm/tsconfig.tsbuildinfo +1 -1
  282. package/manifest.json +22 -18
  283. package/package.json +1 -1
  284. package/src/funcs/invoicesExecuteInvoiceModify.ts +153 -0
  285. package/src/funcs/subscriptionsCancelSubscriptionSchedule.ts +1 -1
  286. package/src/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.ts +3 -1
  287. package/src/funcs/subscriptionsGetSubscriptionSchedule.ts +2 -2
  288. package/src/funcs/subscriptionsListAllSubscriptionSchedules.ts +1 -1
  289. package/src/funcs/subscriptionsListSubscriptionSchedules.ts +2 -2
  290. package/src/lib/config.ts +3 -3
  291. package/src/mcp-server/mcp-server.ts +1 -1
  292. package/src/mcp-server/server.ts +7 -5
  293. package/src/mcp-server/tools/invoicesExecuteInvoiceModify.ts +43 -0
  294. package/src/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.ts +3 -1
  295. package/src/models/addlineitemrequest.ts +24 -0
  296. package/src/models/alertsettings.ts +6 -0
  297. package/src/models/alertthresholdtype.ts +17 -0
  298. package/src/models/billingperiodbehaviour.ts +19 -0
  299. package/src/models/billingperiodconfig.ts +22 -0
  300. package/src/models/changedinvoice.ts +1 -3
  301. package/src/models/changedinvoicestatus.ts +1 -9
  302. package/src/models/checkoutpaymentblock.ts +19 -0
  303. package/src/models/checkoutpaymentprovider.ts +2 -0
  304. package/src/models/checkoutpaymentproviderconfig.ts +4 -0
  305. package/src/models/checkoutsessionresponse.ts +21 -51
  306. package/src/models/createcustomerrequest.ts +3 -0
  307. package/src/models/createinvoicerequest.ts +0 -8
  308. package/src/models/createpricerequest.ts +3 -0
  309. package/src/models/createsubscriptionrequest.ts +4 -0
  310. package/src/models/creditgrantapplicationresponse.ts +2 -2
  311. package/src/models/customcurrency.ts +29 -0
  312. package/src/models/customcurrencylineitem.ts +21 -0
  313. package/src/models/customer.ts +3 -0
  314. package/src/models/customerresponse.ts +3 -0
  315. package/src/models/entitlementresponse.ts +2 -2
  316. package/src/models/entitychangebehaviour.ts +2 -0
  317. package/src/models/entitychangepolicy.ts +1 -1
  318. package/src/models/entitychangeresult.ts +5 -5
  319. package/src/models/executeinvoicemodifyop.ts +37 -0
  320. package/src/models/executeinvoicemodifyrequest.ts +25 -0
  321. package/src/models/getsubscriptionaddonassociationsop.ts +6 -6
  322. package/src/models/getsubscriptionscheduleop.ts +2 -2
  323. package/src/models/invoicelineitemresponse.ts +6 -0
  324. package/src/models/invoicemodifylineitemaction.ts +21 -0
  325. package/src/models/invoicemodifylineitemparams.ts +41 -0
  326. package/src/models/invoicemodifyresponse.ts +16 -0
  327. package/src/models/invoicemodifytype.ts +15 -0
  328. package/src/models/invoiceresponse.ts +12 -0
  329. package/src/models/listaddonassociationsresponse.ts +25 -0
  330. package/src/models/listsubscriptionschedulesop.ts +2 -2
  331. package/src/models/meteraggregation.ts +1 -1
  332. package/src/models/onpendingschedulepolicy.ts +19 -0
  333. package/src/models/overridelineitemrequest.ts +3 -0
  334. package/src/models/planpricesyncstatusresponse.ts +19 -0
  335. package/src/models/planresponse.ts +6 -0
  336. package/src/models/pricefeatureresponse.ts +15 -0
  337. package/src/models/priceprice.ts +3 -0
  338. package/src/models/priceresponse.ts +9 -0
  339. package/src/models/subscriptionchangebillingperiodresult.ts +25 -0
  340. package/src/models/subscriptionchangeconflictpolicies.ts +19 -0
  341. package/src/models/subscriptionchangeentitytype.ts +25 -0
  342. package/src/models/subscriptionchangev2request.ts +18 -0
  343. package/src/models/subscriptionchangev2response.ts +10 -0
  344. package/src/models/subscriptionpricecreaterequest.ts +3 -0
  345. package/src/models/taxappliedresponse.ts +3 -0
  346. package/src/models/taxbehavior.ts +17 -0
  347. package/src/models/taxexemptionreasoncode.ts +17 -0
  348. package/src/models/taxexemptionsummary.ts +20 -0
  349. package/src/models/taxrateoverride.ts +3 -0
  350. package/src/models/taxrateresponse.ts +0 -2
  351. package/src/models/taxratetype.ts +0 -2
  352. package/src/models/taxsummary.ts +23 -0
  353. package/src/models/taxtreatment.ts +17 -0
  354. package/src/models/updatecustomerrequest.ts +3 -0
  355. package/src/models/updatelineitemrequest.ts +24 -0
  356. package/src/models/updatepricerequest.ts +3 -0
  357. package/src/models/updatesubscriptionlineitemrequest.ts +3 -0
  358. package/src/tool-names.ts +21 -17
  359. package/esm/models/addaddonparams.d.ts +0 -8
  360. package/esm/models/addaddonparams.d.ts.map +0 -1
  361. package/esm/models/addaddonparams.js +0 -10
  362. package/esm/models/addaddonparams.js.map +0 -1
  363. package/esm/models/addaddonref.d.ts +0 -12
  364. package/esm/models/addaddonref.d.ts.map +0 -1
  365. package/esm/models/addaddonref.js +0 -14
  366. package/esm/models/addaddonref.js.map +0 -1
  367. package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts +0 -13
  368. package/esm/models/checkoutjsonbcheckoutconfiguration.d.ts.map +0 -1
  369. package/esm/models/checkoutjsonbcheckoutconfiguration.js +0 -15
  370. package/esm/models/checkoutjsonbcheckoutconfiguration.js.map +0 -1
  371. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts +0 -10
  372. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.d.ts.map +0 -1
  373. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js +0 -12
  374. package/esm/models/checkoutjsonbcheckoutpaymentproviderconfig.js.map +0 -1
  375. package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts +0 -13
  376. package/esm/models/checkoutjsonbcheckoutproviderresult.d.ts.map +0 -1
  377. package/esm/models/checkoutjsonbcheckoutproviderresult.js +0 -13
  378. package/esm/models/checkoutjsonbcheckoutproviderresult.js.map +0 -1
  379. package/esm/models/checkoutjsonbcheckoutresult.d.ts +0 -7
  380. package/esm/models/checkoutjsonbcheckoutresult.d.ts.map +0 -1
  381. package/esm/models/checkoutjsonbcheckoutresult.js +0 -9
  382. package/esm/models/checkoutjsonbcheckoutresult.js.map +0 -1
  383. package/esm/models/createsubscriptionparams.d.ts +0 -16
  384. package/esm/models/createsubscriptionparams.d.ts.map +0 -1
  385. package/esm/models/createsubscriptionparams.js +0 -16
  386. package/esm/models/createsubscriptionparams.js.map +0 -1
  387. package/esm/models/createsubscriptionresult.d.ts +0 -8
  388. package/esm/models/createsubscriptionresult.d.ts.map +0 -1
  389. package/esm/models/createsubscriptionresult.js +0 -10
  390. package/esm/models/createsubscriptionresult.js.map +0 -1
  391. package/esm/models/modifysubscriptionlineitem.d.ts +0 -8
  392. package/esm/models/modifysubscriptionlineitem.d.ts.map +0 -1
  393. package/esm/models/modifysubscriptionlineitem.js +0 -10
  394. package/esm/models/modifysubscriptionlineitem.js.map +0 -1
  395. package/esm/models/modifysubscriptionparams.d.ts +0 -8
  396. package/esm/models/modifysubscriptionparams.d.ts.map +0 -1
  397. package/esm/models/modifysubscriptionparams.js +0 -11
  398. package/esm/models/modifysubscriptionparams.js.map +0 -1
  399. package/esm/models/wallettopupparams.d.ts +0 -7
  400. package/esm/models/wallettopupparams.d.ts.map +0 -1
  401. package/esm/models/wallettopupparams.js +0 -10
  402. package/esm/models/wallettopupparams.js.map +0 -1
  403. package/src/models/addaddonparams.ts +0 -16
  404. package/src/models/addaddonref.ts +0 -26
  405. package/src/models/checkoutjsonbcheckoutconfiguration.ts +0 -34
  406. package/src/models/checkoutjsonbcheckoutpaymentproviderconfig.ts +0 -27
  407. package/src/models/checkoutjsonbcheckoutproviderresult.ts +0 -32
  408. package/src/models/checkoutjsonbcheckoutresult.ts +0 -19
  409. package/src/models/createsubscriptionparams.ts +0 -30
  410. package/src/models/createsubscriptionresult.ts +0 -19
  411. package/src/models/modifysubscriptionlineitem.ts +0 -19
  412. package/src/models/modifysubscriptionparams.ts +0 -22
  413. package/src/models/wallettopupparams.ts +0 -16
@@ -5,28 +5,15 @@
5
5
  import * as z from "zod";
6
6
  import { CheckoutAction, CheckoutAction$zodSchema } from "./checkoutaction.js";
7
7
  import {
8
- CheckoutJSONBCheckoutConfiguration,
9
- CheckoutJSONBCheckoutConfiguration$zodSchema,
10
- } from "./checkoutjsonbcheckoutconfiguration.js";
11
- import {
12
- CheckoutJSONBCheckoutPaymentProviderConfig,
13
- CheckoutJSONBCheckoutPaymentProviderConfig$zodSchema,
14
- } from "./checkoutjsonbcheckoutpaymentproviderconfig.js";
15
- import {
16
- CheckoutJSONBCheckoutProviderResult,
17
- CheckoutJSONBCheckoutProviderResult$zodSchema,
18
- } from "./checkoutjsonbcheckoutproviderresult.js";
19
- import {
20
- CheckoutJSONBCheckoutResult,
21
- CheckoutJSONBCheckoutResult$zodSchema,
22
- } from "./checkoutjsonbcheckoutresult.js";
8
+ CheckoutPaymentBlock,
9
+ CheckoutPaymentBlock$zodSchema,
10
+ } from "./checkoutpaymentblock.js";
23
11
  import {
24
12
  CheckoutPaymentProvider,
25
13
  CheckoutPaymentProvider$zodSchema,
26
14
  } from "./checkoutpaymentprovider.js";
27
15
  import { CheckoutStatus, CheckoutStatus$zodSchema } from "./checkoutstatus.js";
28
16
  import { PaymentAction, PaymentAction$zodSchema } from "./paymentaction.js";
29
- import { Status, Status$zodSchema } from "./status.js";
30
17
 
31
18
  export type CheckoutSessionResponse = {
32
19
  action?: CheckoutAction | undefined;
@@ -36,29 +23,22 @@ export type CheckoutSessionResponse = {
36
23
  checkout_payment_id?: string | undefined;
37
24
  checkout_status?: CheckoutStatus | undefined;
38
25
  completed_at?: string | undefined;
39
- configuration?: CheckoutJSONBCheckoutConfiguration | undefined;
40
26
  created_at?: string | undefined;
41
- created_by?: string | undefined;
42
27
  customer_id?: string | undefined;
43
- environment_id?: string | undefined;
44
28
  expires_at?: string | undefined;
45
29
  failure_reason?: string | undefined;
46
30
  failure_url?: string | undefined;
47
31
  id?: string | undefined;
48
32
  idempotency_key?: string | undefined;
49
33
  metadata?: { [k: string]: string } | undefined;
34
+ next_poll_after_ms?: number | undefined;
35
+ payment?: CheckoutPaymentBlock | undefined;
50
36
  payment_action?: PaymentAction | undefined;
51
37
  payment_provider?: CheckoutPaymentProvider | undefined;
52
- payment_provider_config?:
53
- | CheckoutJSONBCheckoutPaymentProviderConfig
54
- | undefined;
55
- provider_result?: CheckoutJSONBCheckoutProviderResult | undefined;
56
- result?: CheckoutJSONBCheckoutResult | undefined;
57
- status?: Status | undefined;
38
+ stale?: boolean | undefined;
58
39
  success_url?: string | undefined;
59
- tenant_id?: string | undefined;
40
+ terminal?: boolean | undefined;
60
41
  updated_at?: string | undefined;
61
- updated_by?: string | undefined;
62
42
  };
63
43
 
64
44
  export const CheckoutSessionResponse$zodSchema: z.ZodType<
@@ -67,40 +47,30 @@ export const CheckoutSessionResponse$zodSchema: z.ZodType<
67
47
  action: CheckoutAction$zodSchema.optional(),
68
48
  cancel_url: z.string().optional(),
69
49
  cancelled_at: z.iso.datetime({ offset: true }).optional(),
70
- checkout_invoice_id: z.string().optional().describe(
71
- "CheckoutInvoiceID and CheckoutPaymentID are set once the apply step\ncreates the corresponding Flexprice entities (completed sessions only).",
72
- ),
50
+ checkout_invoice_id: z.string().optional(),
73
51
  checkout_payment_id: z.string().optional(),
74
52
  checkout_status: CheckoutStatus$zodSchema.optional(),
75
53
  completed_at: z.iso.datetime({ offset: true }).optional(),
76
- configuration: CheckoutJSONBCheckoutConfiguration$zodSchema.optional(),
77
54
  created_at: z.iso.datetime({ offset: true }).optional(),
78
- created_by: z.string().optional(),
79
55
  customer_id: z.string().optional(),
80
- environment_id: z.string().optional(),
81
- expires_at: z.iso.datetime({ offset: true }).optional().describe(
82
- "ExpiresAt is required. A Temporal timer fires at this time for any\nsession still in initiated|pending, marking it expired. The caller\nmust create a new session after expiry (expire-and-restart model).",
83
- ),
84
- failure_reason: z.string().optional().describe(
85
- "FailureReason is a human-readable string set on failed sessions.",
86
- ),
56
+ expires_at: z.iso.datetime({ offset: true }).optional(),
57
+ failure_reason: z.string().optional(),
87
58
  failure_url: z.string().optional(),
88
59
  id: z.string().optional(),
89
- idempotency_key: z.string().optional().describe(
90
- "IdempotencyKey is caller-supplied. It is unique only while the session\nis active (initiated|pending). The same key may be reused once the\nsession reaches a terminal state (completed|failed|expired).",
91
- ),
60
+ idempotency_key: z.string().optional(),
92
61
  metadata: z.record(z.string(), z.string()).optional(),
62
+ next_poll_after_ms: z.int().optional().describe(
63
+ "NextPollAfterMs is how long a client should wait before reading again.\nZero means stop — either the session is terminal, or this response did not\ncome from a polling read.",
64
+ ),
65
+ payment: CheckoutPaymentBlock$zodSchema.optional(),
93
66
  payment_action: PaymentAction$zodSchema.optional(),
94
67
  payment_provider: CheckoutPaymentProvider$zodSchema.optional(),
95
- payment_provider_config: CheckoutJSONBCheckoutPaymentProviderConfig$zodSchema
96
- .optional(),
97
- provider_result: CheckoutJSONBCheckoutProviderResult$zodSchema.optional(),
98
- result: CheckoutJSONBCheckoutResult$zodSchema.optional(),
99
- status: Status$zodSchema.optional(),
100
- success_url: z.string().optional().describe(
101
- "Redirect URLs sent to the payment provider. The provider redirects the\nuser browser to the appropriate URL after the payment flow completes.",
68
+ stale: z.boolean().optional().describe(
69
+ "Stale reports that this response is stored state that was not checked against\nthe payment provider on this request — the read was debounced, or the gateway\ndid not answer. A UI should say \"still checking\" rather than presenting a\nstale answer as fact.",
70
+ ),
71
+ success_url: z.string().optional(),
72
+ terminal: z.boolean().optional().describe(
73
+ "Terminal reports whether the session has finished. Clients poll until this is\ntrue rather than hardcoding the status set, which would go stale if a status\nis ever added.",
102
74
  ),
103
- tenant_id: z.string().optional(),
104
75
  updated_at: z.iso.datetime({ offset: true }).optional(),
105
- updated_by: z.string().optional(),
106
76
  });
@@ -11,6 +11,7 @@ import {
11
11
  TaxRateOverride,
12
12
  TaxRateOverride$zodSchema,
13
13
  } from "./taxrateoverride.js";
14
+ import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
14
15
 
15
16
  /**
16
17
  * Request object for creating a new customer in the system
@@ -33,6 +34,7 @@ export type CreateCustomerRequest = {
33
34
  onboarding_workflow_name?: string | undefined;
34
35
  skip_onboarding_workflow?: boolean | undefined;
35
36
  tax_rate_overrides?: Array<TaxRateOverride> | undefined;
37
+ tax_treatment?: TaxTreatment | undefined;
36
38
  timezone?: string | undefined;
37
39
  };
38
40
 
@@ -85,6 +87,7 @@ export const CreateCustomerRequest$zodSchema: z.ZodType<CreateCustomerRequest> =
85
87
  tax_rate_overrides: z.array(TaxRateOverride$zodSchema).optional().describe(
86
88
  "tax_rate_overrides contains tax rate configurations to be linked to this customer",
87
89
  ),
90
+ tax_treatment: TaxTreatment$zodSchema.optional(),
88
91
  timezone: z.string().optional().describe(
89
92
  "timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\", \"America/New_York\")\nDefaults to \"UTC\" if not provided",
90
93
  ),
@@ -23,10 +23,6 @@ import {
23
23
  TaxRateOverride,
24
24
  TaxRateOverride$zodSchema,
25
25
  } from "./taxrateoverride.js";
26
- import {
27
- TaxRateResponse,
28
- TaxRateResponse$zodSchema,
29
- } from "./taxrateresponse.js";
30
26
 
31
27
  export type CreateInvoiceRequest = {
32
28
  amount_due: string;
@@ -52,7 +48,6 @@ export type CreateInvoiceRequest = {
52
48
  payment_status?: PaymentStatus | undefined;
53
49
  period_end?: string | undefined;
54
50
  period_start?: string | undefined;
55
- prepared_tax_rates?: Array<TaxRateResponse> | undefined;
56
51
  subscription_id?: string | undefined;
57
52
  subtotal: string;
58
53
  tax_rate_overrides?: Array<TaxRateOverride> | undefined;
@@ -120,9 +115,6 @@ export const CreateInvoiceRequest$zodSchema: z.ZodType<CreateInvoiceRequest> = z
120
115
  period_start: z.iso.datetime({ offset: true }).optional().describe(
121
116
  "period_start is the start date of the billing period",
122
117
  ),
123
- prepared_tax_rates: z.array(TaxRateResponse$zodSchema).optional().describe(
124
- "prepared_tax_rates contains the tax rates pre-resolved by the caller (e.g., billing service)",
125
- ),
126
118
  subscription_id: z.string().optional().describe(
127
119
  "subscription_id is the optional unique identifier of the subscription associated with this invoice",
128
120
  ),
@@ -25,12 +25,14 @@ import {
25
25
  PriceUnitConfig$zodSchema,
26
26
  } from "./priceunitconfig.js";
27
27
  import { PriceUnitType, PriceUnitType$zodSchema } from "./priceunittype.js";
28
+ import { WindowSize, WindowSize$zodSchema } from "./windowsize.js";
28
29
 
29
30
  export type CreatePriceRequest = {
30
31
  amount?: string | undefined;
31
32
  billing_model: BillingModel;
32
33
  billing_period: BillingPeriod;
33
34
  billing_period_count?: number | undefined;
35
+ bucket_size?: WindowSize | undefined;
34
36
  currency: string;
35
37
  description?: string | undefined;
36
38
  display_name?: string | undefined;
@@ -60,6 +62,7 @@ export const CreatePriceRequest$zodSchema: z.ZodType<CreatePriceRequest> = z
60
62
  billing_model: BillingModel$zodSchema,
61
63
  billing_period: BillingPeriod$zodSchema,
62
64
  billing_period_count: z.int().optional(),
65
+ bucket_size: WindowSize$zodSchema.optional(),
63
66
  currency: z.string(),
64
67
  description: z.string().optional(),
65
68
  display_name: z.string().optional(),
@@ -83,6 +83,7 @@ export type CreateSubscriptionRequest = {
83
83
  end_date?: string | undefined;
84
84
  external_customer_id?: string | undefined;
85
85
  gateway_payment_method_id?: string | undefined;
86
+ include_price_ids?: Array<string> | undefined;
86
87
  inheritance?: SubscriptionInheritanceConfig | undefined;
87
88
  line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
88
89
  line_item_coupons?: { [k: string]: Array<string> } | undefined;
@@ -134,6 +135,9 @@ export const CreateSubscriptionRequest$zodSchema: z.ZodType<
134
135
  end_date: z.iso.datetime({ offset: true }).optional(),
135
136
  external_customer_id: z.string().optional(),
136
137
  gateway_payment_method_id: z.string().optional(),
138
+ include_price_ids: z.array(z.string()).optional().describe(
139
+ "IncludePriceIDs selects which plan prices to attach. Nil/omitted attaches matching-cadence\nprices plus ONETIME; [] attaches none (LineItems extras still apply); a non-empty list\nattaches only those IDs. Each listed ID must belong to the plan, match the subscription\ncurrency, and have a cadence that equals or strictly divides the subscription cadence.\nPointer-slice distinguishes nil from [].\nNOTE: no `dive,required` on this tag — swaggo misinterprets `required`\ninside `dive` as marking the whole field required, which then shows up\nin the OpenAPI schema and breaks callers that omit the field. Per-element\nnon-emptiness is enforced explicitly in Validate() below.",
140
+ ),
137
141
  inheritance: SubscriptionInheritanceConfig$zodSchema.optional(),
138
142
  line_item_commitments: z.record(
139
143
  z.string(),
@@ -24,7 +24,7 @@ export type CreditGrantApplicationResponse = {
24
24
  created_at?: string | undefined;
25
25
  created_by?: string | undefined;
26
26
  credit_grant_id?: string | undefined;
27
- credits?: number | undefined;
27
+ credits?: string | undefined;
28
28
  environment_id?: string | undefined;
29
29
  failure_reason?: string | undefined;
30
30
  id?: string | undefined;
@@ -51,7 +51,7 @@ export const CreditGrantApplicationResponse$zodSchema: z.ZodType<
51
51
  created_at: z.iso.datetime({ offset: true }).optional(),
52
52
  created_by: z.string().optional(),
53
53
  credit_grant_id: z.string().optional(),
54
- credits: z.number().optional(),
54
+ credits: z.string().optional(),
55
55
  environment_id: z.string().optional(),
56
56
  failure_reason: z.string().optional(),
57
57
  id: z.string().optional(),
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type CustomCurrency = {
8
+ amount_due?: string | undefined;
9
+ code?: string | undefined;
10
+ rate?: string | undefined;
11
+ subtotal?: string | undefined;
12
+ total?: string | undefined;
13
+ total_discount?: string | undefined;
14
+ total_prepaid_credits_applied?: string | undefined;
15
+ total_tax?: string | undefined;
16
+ };
17
+
18
+ export const CustomCurrency$zodSchema: z.ZodType<CustomCurrency> = z.object({
19
+ amount_due: z.string().optional(),
20
+ code: z.string().optional(),
21
+ rate: z.string().optional().describe(
22
+ "fiat per 1 unit of Code; the live factor while draft, frozen at finalization",
23
+ ),
24
+ subtotal: z.string().optional(),
25
+ total: z.string().optional(),
26
+ total_discount: z.string().optional(),
27
+ total_prepaid_credits_applied: z.string().optional(),
28
+ total_tax: z.string().optional(),
29
+ });
@@ -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
+
7
+ export type CustomCurrencyLineItem = {
8
+ amount?: string | undefined;
9
+ invoice_level_discount?: string | undefined;
10
+ line_item_discount?: string | undefined;
11
+ prepaid_credits_applied?: string | undefined;
12
+ };
13
+
14
+ export const CustomCurrencyLineItem$zodSchema: z.ZodType<
15
+ CustomCurrencyLineItem
16
+ > = z.object({
17
+ amount: z.string().optional(),
18
+ invoice_level_discount: z.string().optional(),
19
+ line_item_discount: z.string().optional(),
20
+ prepaid_credits_applied: z.string().optional(),
21
+ });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { Status, Status$zodSchema } from "./status.js";
7
+ import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
7
8
 
8
9
  export type Customer = {
9
10
  address_city?: string | undefined;
@@ -22,6 +23,7 @@ export type Customer = {
22
23
  metadata?: { [k: string]: string } | undefined;
23
24
  name?: string | undefined;
24
25
  status?: Status | undefined;
26
+ tax_treatment?: TaxTreatment | undefined;
25
27
  tenant_id?: string | undefined;
26
28
  timezone?: string | undefined;
27
29
  updated_at?: string | undefined;
@@ -65,6 +67,7 @@ export const Customer$zodSchema: z.ZodType<Customer> = z.object({
65
67
  metadata: z.record(z.string(), z.string()).optional().describe("Metadata"),
66
68
  name: z.string().optional().describe("Name is the name of the customer"),
67
69
  status: Status$zodSchema.optional(),
70
+ tax_treatment: TaxTreatment$zodSchema.optional(),
68
71
  tenant_id: z.string().optional(),
69
72
  timezone: z.string().optional().describe(
70
73
  "Timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\").\nDefaults to \"UTC\". Inherited by subscriptions at creation time.",
@@ -8,6 +8,7 @@ import {
8
8
  EntityIntegrationMappingResponse$zodSchema,
9
9
  } from "./entityintegrationmappingresponse.js";
10
10
  import { Status, Status$zodSchema } from "./status.js";
11
+ import { TaxTreatment, TaxTreatment$zodSchema } from "./taxtreatment.js";
11
12
 
12
13
  /**
13
14
  * Customer response object containing all customer information
@@ -30,6 +31,7 @@ export type CustomerResponse = {
30
31
  metadata?: { [k: string]: string } | undefined;
31
32
  name?: string | undefined;
32
33
  status?: Status | undefined;
34
+ tax_treatment?: TaxTreatment | undefined;
33
35
  tenant_id?: string | undefined;
34
36
  timezone?: string | undefined;
35
37
  updated_at?: string | undefined;
@@ -76,6 +78,7 @@ export const CustomerResponse$zodSchema: z.ZodType<CustomerResponse> = z.object(
76
78
  metadata: z.record(z.string(), z.string()).optional().describe("Metadata"),
77
79
  name: z.string().optional().describe("Name is the name of the customer"),
78
80
  status: Status$zodSchema.optional(),
81
+ tax_treatment: TaxTreatment$zodSchema.optional(),
79
82
  tenant_id: z.string().optional(),
80
83
  timezone: z.string().optional().describe(
81
84
  "Timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\").\nDefaults to \"UTC\". Inherited by subscriptions at creation time.",
@@ -54,7 +54,7 @@ export type EntitlementResponse = {
54
54
  grant_duration_unit?: EntitlementGrantDurationUnit | undefined;
55
55
  grant_duration_value?: number | undefined;
56
56
  grant_measure?: EntitlementGrantMeasure | undefined;
57
- grant_quota?: number | undefined;
57
+ grant_quota?: string | undefined;
58
58
  id?: string | undefined;
59
59
  is_enabled?: boolean | undefined;
60
60
  is_soft_limit?: boolean | undefined;
@@ -91,7 +91,7 @@ export const EntitlementResponse$zodSchema: z.ZodType<EntitlementResponse> = z
91
91
  grant_duration_unit: EntitlementGrantDurationUnit$zodSchema.optional(),
92
92
  grant_duration_value: z.int().optional(),
93
93
  grant_measure: EntitlementGrantMeasure$zodSchema.optional(),
94
- grant_quota: z.number().optional(),
94
+ grant_quota: z.string().optional(),
95
95
  id: z.string().optional(),
96
96
  is_enabled: z.boolean().optional(),
97
97
  is_soft_limit: z.boolean().optional(),
@@ -8,10 +8,12 @@ import { ClosedEnum } from "../types/enums.js";
8
8
  export const EntityChangeBehaviour = {
9
9
  Carry: "carry",
10
10
  Drop: "drop",
11
+ Add: "add",
11
12
  } as const;
12
13
  export type EntityChangeBehaviour = ClosedEnum<typeof EntityChangeBehaviour>;
13
14
 
14
15
  export const EntityChangeBehaviour$zodSchema = z.enum([
15
16
  "carry",
16
17
  "drop",
18
+ "add",
17
19
  ]);
@@ -18,6 +18,6 @@ export const EntityChangePolicy$zodSchema: z.ZodType<EntityChangePolicy> = z
18
18
  default_behaviour: EntityChangeBehaviour$zodSchema.optional(),
19
19
  overrides: z.record(z.string(), EntityChangeBehaviour$zodSchema).optional()
20
20
  .describe(
21
- "Overrides is keyed by addon_associations.id (instance), not catalogue addon_id.",
21
+ "Overrides is keyed by addon_associations.id (instance), not catalogue addon_id.\nThat is the id an EntityChangeResult reports as EntityID.",
22
22
  ),
23
23
  });
@@ -8,14 +8,14 @@ import {
8
8
  EntityChangeBehaviour$zodSchema,
9
9
  } from "./entitychangebehaviour.js";
10
10
  import {
11
- SubscriptionLineItemEntityType,
12
- SubscriptionLineItemEntityType$zodSchema,
13
- } from "./subscriptionlineitementitytype.js";
11
+ SubscriptionChangeEntityType,
12
+ SubscriptionChangeEntityType$zodSchema,
13
+ } from "./subscriptionchangeentitytype.js";
14
14
 
15
15
  export type EntityChangeResult = {
16
16
  behaviour?: EntityChangeBehaviour | undefined;
17
17
  entity_id?: string | undefined;
18
- entity_type?: SubscriptionLineItemEntityType | undefined;
18
+ entity_type?: SubscriptionChangeEntityType | undefined;
19
19
  reference_id?: string | undefined;
20
20
  };
21
21
 
@@ -23,6 +23,6 @@ export const EntityChangeResult$zodSchema: z.ZodType<EntityChangeResult> = z
23
23
  .object({
24
24
  behaviour: EntityChangeBehaviour$zodSchema.optional(),
25
25
  entity_id: z.string().optional(),
26
- entity_type: SubscriptionLineItemEntityType$zodSchema.optional(),
26
+ entity_type: SubscriptionChangeEntityType$zodSchema.optional(),
27
27
  reference_id: z.string().optional(),
28
28
  });
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
7
+ import {
8
+ ExecuteInvoiceModifyRequest,
9
+ ExecuteInvoiceModifyRequest$zodSchema,
10
+ } from "./executeinvoicemodifyrequest.js";
11
+ import {
12
+ InvoiceModifyResponse,
13
+ InvoiceModifyResponse$zodSchema,
14
+ } from "./invoicemodifyresponse.js";
15
+
16
+ export type ExecuteInvoiceModifyRequestRequest = {
17
+ id: string;
18
+ body: ExecuteInvoiceModifyRequest;
19
+ };
20
+
21
+ export const ExecuteInvoiceModifyRequestRequest$zodSchema: z.ZodType<
22
+ ExecuteInvoiceModifyRequestRequest
23
+ > = z.object({
24
+ body: ExecuteInvoiceModifyRequest$zodSchema.describe("Modification request"),
25
+ id: z.string().describe("Invoice ID"),
26
+ });
27
+
28
+ export type ExecuteInvoiceModifyResponse =
29
+ | InvoiceModifyResponse
30
+ | ErrorResponse;
31
+
32
+ export const ExecuteInvoiceModifyResponse$zodSchema: z.ZodType<
33
+ ExecuteInvoiceModifyResponse
34
+ > = z.union([
35
+ InvoiceModifyResponse$zodSchema,
36
+ ErrorResponse$zodSchema,
37
+ ]);
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ InvoiceModifyLineItemParams,
8
+ InvoiceModifyLineItemParams$zodSchema,
9
+ } from "./invoicemodifylineitemparams.js";
10
+ import {
11
+ InvoiceModifyType,
12
+ InvoiceModifyType$zodSchema,
13
+ } from "./invoicemodifytype.js";
14
+
15
+ export type ExecuteInvoiceModifyRequest = {
16
+ line_item_params?: InvoiceModifyLineItemParams | undefined;
17
+ type: InvoiceModifyType;
18
+ };
19
+
20
+ export const ExecuteInvoiceModifyRequest$zodSchema: z.ZodType<
21
+ ExecuteInvoiceModifyRequest
22
+ > = z.object({
23
+ line_item_params: InvoiceModifyLineItemParams$zodSchema.optional(),
24
+ type: InvoiceModifyType$zodSchema,
25
+ });
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import {
7
- AddonAssociationResponse,
8
- AddonAssociationResponse$zodSchema,
9
- } from "./addonassociationresponse.js";
10
6
  import { ErrorResponse, ErrorResponse$zodSchema } from "./errorresponse.js";
7
+ import {
8
+ ListAddonAssociationsResponse,
9
+ ListAddonAssociationsResponse$zodSchema,
10
+ } from "./listaddonassociationsresponse.js";
11
11
 
12
12
  export type GetSubscriptionAddonAssociationsRequest = { id: string };
13
13
 
@@ -18,12 +18,12 @@ export const GetSubscriptionAddonAssociationsRequest$zodSchema: z.ZodType<
18
18
  });
19
19
 
20
20
  export type GetSubscriptionAddonAssociationsResponse =
21
- | Array<AddonAssociationResponse>
21
+ | ListAddonAssociationsResponse
22
22
  | ErrorResponse;
23
23
 
24
24
  export const GetSubscriptionAddonAssociationsResponse$zodSchema: z.ZodType<
25
25
  GetSubscriptionAddonAssociationsResponse
26
26
  > = z.union([
27
- z.array(AddonAssociationResponse$zodSchema).describe("OK"),
27
+ ListAddonAssociationsResponse$zodSchema,
28
28
  ErrorResponse$zodSchema,
29
29
  ]);
@@ -4,10 +4,10 @@
4
4
 
5
5
  import * as z from "zod";
6
6
 
7
- export type GetSubscriptionScheduleRequest = { id: string };
7
+ export type GetSubscriptionScheduleRequest = { schedule_id: string };
8
8
 
9
9
  export const GetSubscriptionScheduleRequest$zodSchema: z.ZodType<
10
10
  GetSubscriptionScheduleRequest
11
11
  > = z.object({
12
- id: z.string().describe("Schedule ID"),
12
+ schedule_id: z.string().describe("Schedule ID"),
13
13
  });
@@ -4,6 +4,10 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { CommitmentInfo, CommitmentInfo$zodSchema } from "./commitmentinfo.js";
7
+ import {
8
+ CustomCurrencyLineItem,
9
+ CustomCurrencyLineItem$zodSchema,
10
+ } from "./customcurrencylineitem.js";
7
11
  import {
8
12
  SourceUsageItem,
9
13
  SourceUsageItem$zodSchema,
@@ -21,6 +25,7 @@ export type InvoiceLineItemResponse = {
21
25
  created_at?: string | undefined;
22
26
  created_by?: string | undefined;
23
27
  currency?: string | undefined;
28
+ custom_currency?: CustomCurrencyLineItem | undefined;
24
29
  customer_id?: string | undefined;
25
30
  display_name?: string | undefined;
26
31
  entity_id?: string | undefined;
@@ -65,6 +70,7 @@ export const InvoiceLineItemResponse$zodSchema: z.ZodType<
65
70
  created_at: z.iso.datetime({ offset: true }).optional(),
66
71
  created_by: z.string().optional(),
67
72
  currency: z.string().optional(),
73
+ custom_currency: CustomCurrencyLineItem$zodSchema.optional(),
68
74
  customer_id: z.string().optional(),
69
75
  display_name: z.string().optional(),
70
76
  entity_id: z.string().optional(),
@@ -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 InvoiceModifyLineItemAction = {
9
+ Add: "add",
10
+ Update: "update",
11
+ Remove: "remove",
12
+ } as const;
13
+ export type InvoiceModifyLineItemAction = ClosedEnum<
14
+ typeof InvoiceModifyLineItemAction
15
+ >;
16
+
17
+ export const InvoiceModifyLineItemAction$zodSchema = z.enum([
18
+ "add",
19
+ "update",
20
+ "remove",
21
+ ]);
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ AddLineItemRequest,
8
+ AddLineItemRequest$zodSchema,
9
+ } from "./addlineitemrequest.js";
10
+ import {
11
+ InvoiceModifyLineItemAction,
12
+ InvoiceModifyLineItemAction$zodSchema,
13
+ } from "./invoicemodifylineitemaction.js";
14
+ import {
15
+ UpdateLineItemRequest,
16
+ UpdateLineItemRequest$zodSchema,
17
+ } from "./updatelineitemrequest.js";
18
+
19
+ export type InvoiceModifyLineItemParams = {
20
+ action: InvoiceModifyLineItemAction;
21
+ items?: Array<AddLineItemRequest> | undefined;
22
+ line_item_id?: string | undefined;
23
+ line_item_ids?: Array<string> | undefined;
24
+ update?: UpdateLineItemRequest | undefined;
25
+ };
26
+
27
+ export const InvoiceModifyLineItemParams$zodSchema: z.ZodType<
28
+ InvoiceModifyLineItemParams
29
+ > = z.object({
30
+ action: InvoiceModifyLineItemAction$zodSchema,
31
+ items: z.array(AddLineItemRequest$zodSchema).optional().describe(
32
+ "Required for action 'add'. Must contain at least one line item.",
33
+ ),
34
+ line_item_id: z.string().optional().describe(
35
+ "Required for action 'update' (one line item per call; edits are versioned, so the id changes).",
36
+ ),
37
+ line_item_ids: z.array(z.string()).optional().describe(
38
+ "Required for action 'remove'. Must contain at least one line item ID.",
39
+ ),
40
+ update: UpdateLineItemRequest$zodSchema.optional(),
41
+ });
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ InvoiceResponse,
8
+ InvoiceResponse$zodSchema,
9
+ } from "./invoiceresponse.js";
10
+
11
+ export type InvoiceModifyResponse = { invoice?: InvoiceResponse | undefined };
12
+
13
+ export const InvoiceModifyResponse$zodSchema: z.ZodType<InvoiceModifyResponse> =
14
+ z.object({
15
+ invoice: InvoiceResponse$zodSchema.optional(),
16
+ });
@@ -0,0 +1,15 @@
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 InvoiceModifyType = {
9
+ LineItem: "line_item",
10
+ } as const;
11
+ export type InvoiceModifyType = ClosedEnum<typeof InvoiceModifyType>;
12
+
13
+ export const InvoiceModifyType$zodSchema = z.enum([
14
+ "line_item",
15
+ ]);