@omkar273/mcp-temp 0.0.47 → 0.0.52

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 (1162) hide show
  1. package/bin/mcp-server.js +2685 -637
  2. package/bin/mcp-server.js.map +162 -112
  3. package/bun.lock +1 -1
  4. package/esm/funcs/customersQueryCustomer.d.ts +2 -2
  5. package/esm/funcs/customersQueryCustomer.d.ts.map +1 -1
  6. package/esm/funcs/customersQueryCustomer.js +2 -2
  7. package/esm/funcs/customersQueryCustomer.js.map +1 -1
  8. package/esm/funcs/invoicesQueryInvoice.d.ts +2 -2
  9. package/esm/funcs/invoicesQueryInvoice.d.ts.map +1 -1
  10. package/esm/funcs/invoicesQueryInvoice.js +2 -2
  11. package/esm/funcs/invoicesQueryInvoice.js.map +1 -1
  12. package/esm/funcs/plansCreatePlan.d.ts +16 -0
  13. package/esm/funcs/plansCreatePlan.d.ts.map +1 -0
  14. package/esm/funcs/plansCreatePlan.js +82 -0
  15. package/esm/funcs/plansCreatePlan.js.map +1 -0
  16. package/esm/funcs/plansDeletePlan.d.ts +16 -0
  17. package/esm/funcs/plansDeletePlan.d.ts.map +1 -0
  18. package/esm/funcs/plansDeletePlan.js +87 -0
  19. package/esm/funcs/plansDeletePlan.js.map +1 -0
  20. package/esm/funcs/plansGetPlan.d.ts +16 -0
  21. package/esm/funcs/plansGetPlan.d.ts.map +1 -0
  22. package/esm/funcs/plansGetPlan.js +87 -0
  23. package/esm/funcs/plansGetPlan.js.map +1 -0
  24. package/esm/funcs/plansPostPlansIdClone.d.ts +16 -0
  25. package/esm/funcs/plansPostPlansIdClone.d.ts.map +1 -0
  26. package/esm/funcs/plansPostPlansIdClone.js +88 -0
  27. package/esm/funcs/plansPostPlansIdClone.js.map +1 -0
  28. package/esm/funcs/plansQueryPlan.d.ts +16 -0
  29. package/esm/funcs/plansQueryPlan.d.ts.map +1 -0
  30. package/esm/funcs/plansQueryPlan.js +82 -0
  31. package/esm/funcs/plansQueryPlan.js.map +1 -0
  32. package/esm/funcs/plansSyncPlanPrices.d.ts +16 -0
  33. package/esm/funcs/plansSyncPlanPrices.d.ts.map +1 -0
  34. package/esm/funcs/plansSyncPlanPrices.js +87 -0
  35. package/esm/funcs/plansSyncPlanPrices.js.map +1 -0
  36. package/esm/funcs/plansUpdatePlan.d.ts +16 -0
  37. package/esm/funcs/plansUpdatePlan.d.ts.map +1 -0
  38. package/esm/funcs/plansUpdatePlan.js +88 -0
  39. package/esm/funcs/plansUpdatePlan.js.map +1 -0
  40. package/esm/funcs/pricesCreatePrice.d.ts +16 -0
  41. package/esm/funcs/pricesCreatePrice.d.ts.map +1 -0
  42. package/esm/funcs/pricesCreatePrice.js +82 -0
  43. package/esm/funcs/pricesCreatePrice.js.map +1 -0
  44. package/esm/funcs/pricesCreatePricesBulk.d.ts +16 -0
  45. package/esm/funcs/pricesCreatePricesBulk.d.ts.map +1 -0
  46. package/esm/funcs/pricesCreatePricesBulk.js +82 -0
  47. package/esm/funcs/pricesCreatePricesBulk.js.map +1 -0
  48. package/esm/funcs/pricesDeletePrice.d.ts +16 -0
  49. package/esm/funcs/pricesDeletePrice.d.ts.map +1 -0
  50. package/esm/funcs/pricesDeletePrice.js +88 -0
  51. package/esm/funcs/pricesDeletePrice.js.map +1 -0
  52. package/esm/funcs/pricesGetPrice.d.ts +16 -0
  53. package/esm/funcs/pricesGetPrice.d.ts.map +1 -0
  54. package/esm/funcs/pricesGetPrice.js +87 -0
  55. package/esm/funcs/pricesGetPrice.js.map +1 -0
  56. package/esm/funcs/pricesGetPriceByLookupKey.d.ts +16 -0
  57. package/esm/funcs/pricesGetPriceByLookupKey.d.ts.map +1 -0
  58. package/esm/funcs/pricesGetPriceByLookupKey.js +87 -0
  59. package/esm/funcs/pricesGetPriceByLookupKey.js.map +1 -0
  60. package/esm/funcs/pricesQueryPrice.d.ts +16 -0
  61. package/esm/funcs/pricesQueryPrice.d.ts.map +1 -0
  62. package/esm/funcs/pricesQueryPrice.js +82 -0
  63. package/esm/funcs/pricesQueryPrice.js.map +1 -0
  64. package/esm/funcs/pricesUpdatePrice.d.ts +16 -0
  65. package/esm/funcs/pricesUpdatePrice.d.ts.map +1 -0
  66. package/esm/funcs/pricesUpdatePrice.js +88 -0
  67. package/esm/funcs/pricesUpdatePrice.js.map +1 -0
  68. package/esm/lib/config.d.ts +3 -3
  69. package/esm/lib/config.js +3 -3
  70. package/esm/mcp-server/mcp-server.js +1 -1
  71. package/esm/mcp-server/server.d.ts.map +1 -1
  72. package/esm/mcp-server/server.js +29 -1
  73. package/esm/mcp-server/server.js.map +1 -1
  74. package/esm/mcp-server/tools/customersQueryCustomer.d.ts +1 -1
  75. package/esm/mcp-server/tools/customersQueryCustomer.js +2 -2
  76. package/esm/mcp-server/tools/customersQueryCustomer.js.map +1 -1
  77. package/esm/mcp-server/tools/invoicesQueryInvoice.d.ts +1 -1
  78. package/esm/mcp-server/tools/invoicesQueryInvoice.js +2 -2
  79. package/esm/mcp-server/tools/invoicesQueryInvoice.js.map +1 -1
  80. package/esm/mcp-server/tools/plansCreatePlan.d.ts +7 -0
  81. package/esm/mcp-server/tools/plansCreatePlan.d.ts.map +1 -0
  82. package/esm/mcp-server/tools/plansCreatePlan.js +34 -0
  83. package/esm/mcp-server/tools/plansCreatePlan.js.map +1 -0
  84. package/esm/mcp-server/tools/plansDeletePlan.d.ts +7 -0
  85. package/esm/mcp-server/tools/plansDeletePlan.d.ts.map +1 -0
  86. package/esm/mcp-server/tools/plansDeletePlan.js +34 -0
  87. package/esm/mcp-server/tools/plansDeletePlan.js.map +1 -0
  88. package/esm/mcp-server/tools/plansGetPlan.d.ts +7 -0
  89. package/esm/mcp-server/tools/plansGetPlan.d.ts.map +1 -0
  90. package/esm/mcp-server/tools/plansGetPlan.js +34 -0
  91. package/esm/mcp-server/tools/plansGetPlan.js.map +1 -0
  92. package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts +7 -0
  93. package/esm/mcp-server/tools/plansPostPlansIdClone.d.ts.map +1 -0
  94. package/esm/mcp-server/tools/plansPostPlansIdClone.js +34 -0
  95. package/esm/mcp-server/tools/plansPostPlansIdClone.js.map +1 -0
  96. package/esm/mcp-server/tools/plansQueryPlan.d.ts +7 -0
  97. package/esm/mcp-server/tools/plansQueryPlan.d.ts.map +1 -0
  98. package/esm/mcp-server/tools/plansQueryPlan.js +34 -0
  99. package/esm/mcp-server/tools/plansQueryPlan.js.map +1 -0
  100. package/esm/mcp-server/tools/plansSyncPlanPrices.d.ts +7 -0
  101. package/esm/mcp-server/tools/plansSyncPlanPrices.d.ts.map +1 -0
  102. package/esm/mcp-server/tools/plansSyncPlanPrices.js +34 -0
  103. package/esm/mcp-server/tools/plansSyncPlanPrices.js.map +1 -0
  104. package/esm/mcp-server/tools/plansUpdatePlan.d.ts +7 -0
  105. package/esm/mcp-server/tools/plansUpdatePlan.d.ts.map +1 -0
  106. package/esm/mcp-server/tools/plansUpdatePlan.js +34 -0
  107. package/esm/mcp-server/tools/plansUpdatePlan.js.map +1 -0
  108. package/esm/mcp-server/tools/pricesCreatePrice.d.ts +7 -0
  109. package/esm/mcp-server/tools/pricesCreatePrice.d.ts.map +1 -0
  110. package/esm/mcp-server/tools/pricesCreatePrice.js +34 -0
  111. package/esm/mcp-server/tools/pricesCreatePrice.js.map +1 -0
  112. package/esm/mcp-server/tools/pricesCreatePricesBulk.d.ts +7 -0
  113. package/esm/mcp-server/tools/pricesCreatePricesBulk.d.ts.map +1 -0
  114. package/esm/mcp-server/tools/pricesCreatePricesBulk.js +34 -0
  115. package/esm/mcp-server/tools/pricesCreatePricesBulk.js.map +1 -0
  116. package/esm/mcp-server/tools/pricesDeletePrice.d.ts +7 -0
  117. package/esm/mcp-server/tools/pricesDeletePrice.d.ts.map +1 -0
  118. package/esm/mcp-server/tools/pricesDeletePrice.js +34 -0
  119. package/esm/mcp-server/tools/pricesDeletePrice.js.map +1 -0
  120. package/esm/mcp-server/tools/pricesGetPrice.d.ts +7 -0
  121. package/esm/mcp-server/tools/pricesGetPrice.d.ts.map +1 -0
  122. package/esm/mcp-server/tools/pricesGetPrice.js +34 -0
  123. package/esm/mcp-server/tools/pricesGetPrice.js.map +1 -0
  124. package/esm/mcp-server/tools/pricesGetPriceByLookupKey.d.ts +7 -0
  125. package/esm/mcp-server/tools/pricesGetPriceByLookupKey.d.ts.map +1 -0
  126. package/esm/mcp-server/tools/pricesGetPriceByLookupKey.js +34 -0
  127. package/esm/mcp-server/tools/pricesGetPriceByLookupKey.js.map +1 -0
  128. package/esm/mcp-server/tools/pricesQueryPrice.d.ts +7 -0
  129. package/esm/mcp-server/tools/pricesQueryPrice.d.ts.map +1 -0
  130. package/esm/mcp-server/tools/pricesQueryPrice.js +34 -0
  131. package/esm/mcp-server/tools/pricesQueryPrice.js.map +1 -0
  132. package/esm/mcp-server/tools/pricesUpdatePrice.d.ts +7 -0
  133. package/esm/mcp-server/tools/pricesUpdatePrice.d.ts.map +1 -0
  134. package/esm/mcp-server/tools/pricesUpdatePrice.js +34 -0
  135. package/esm/mcp-server/tools/pricesUpdatePrice.js.map +1 -0
  136. package/esm/models/addontype.d.ts +12 -0
  137. package/esm/models/addontype.d.ts.map +1 -0
  138. package/esm/models/addontype.js +13 -0
  139. package/esm/models/addontype.js.map +1 -0
  140. package/esm/models/aggregationtype.d.ts +24 -0
  141. package/esm/models/aggregationtype.d.ts.map +1 -0
  142. package/esm/models/aggregationtype.js +25 -0
  143. package/esm/models/aggregationtype.js.map +1 -0
  144. package/esm/models/alertcondition.d.ts +12 -0
  145. package/esm/models/alertcondition.d.ts.map +1 -0
  146. package/esm/models/alertcondition.js +13 -0
  147. package/esm/models/alertcondition.js.map +1 -0
  148. package/esm/models/alertsettings.d.ts +10 -0
  149. package/esm/models/alertsettings.d.ts.map +1 -0
  150. package/esm/models/alertsettings.js +12 -0
  151. package/esm/models/alertsettings.js.map +1 -0
  152. package/esm/models/alertthreshold.d.ts +8 -0
  153. package/esm/models/alertthreshold.d.ts.map +1 -0
  154. package/esm/models/alertthreshold.js +10 -0
  155. package/esm/models/alertthreshold.js.map +1 -0
  156. package/esm/models/applicationstatus.d.ts +18 -0
  157. package/esm/models/applicationstatus.d.ts.map +1 -0
  158. package/esm/models/applicationstatus.js +19 -0
  159. package/esm/models/applicationstatus.js.map +1 -0
  160. package/esm/models/billingcadence.d.ts +12 -0
  161. package/esm/models/billingcadence.d.ts.map +1 -0
  162. package/esm/models/billingcadence.js +13 -0
  163. package/esm/models/billingcadence.js.map +1 -0
  164. package/esm/models/billingcycle.d.ts +12 -0
  165. package/esm/models/billingcycle.d.ts.map +1 -0
  166. package/esm/models/billingcycle.js +13 -0
  167. package/esm/models/billingcycle.js.map +1 -0
  168. package/esm/models/billingmodel.d.ts +14 -0
  169. package/esm/models/billingmodel.d.ts.map +1 -0
  170. package/esm/models/billingmodel.js +15 -0
  171. package/esm/models/billingmodel.js.map +1 -0
  172. package/esm/models/billingperiod.d.ts +20 -0
  173. package/esm/models/billingperiod.d.ts.map +1 -0
  174. package/esm/models/billingperiod.js +21 -0
  175. package/esm/models/billingperiod.js.map +1 -0
  176. package/esm/models/billingtier.d.ts +12 -0
  177. package/esm/models/billingtier.d.ts.map +1 -0
  178. package/esm/models/billingtier.js +13 -0
  179. package/esm/models/billingtier.js.map +1 -0
  180. package/esm/models/commitmentinfo.d.ts +17 -0
  181. package/esm/models/commitmentinfo.d.ts.map +1 -0
  182. package/esm/models/commitmentinfo.js +19 -0
  183. package/esm/models/commitmentinfo.js.map +1 -0
  184. package/esm/models/commitmenttype.d.ts +12 -0
  185. package/esm/models/commitmenttype.d.ts.map +1 -0
  186. package/esm/models/commitmenttype.js +13 -0
  187. package/esm/models/commitmenttype.js.map +1 -0
  188. package/esm/models/couponcadence.d.ts +14 -0
  189. package/esm/models/couponcadence.d.ts.map +1 -0
  190. package/esm/models/couponcadence.js +15 -0
  191. package/esm/models/couponcadence.js.map +1 -0
  192. package/esm/models/coupontype.d.ts +12 -0
  193. package/esm/models/coupontype.d.ts.map +1 -0
  194. package/esm/models/coupontype.js +13 -0
  195. package/esm/models/coupontype.js.map +1 -0
  196. package/esm/models/createplanop.d.ts +6 -0
  197. package/esm/models/createplanop.d.ts.map +1 -0
  198. package/esm/models/createplanop.js +12 -0
  199. package/esm/models/createplanop.js.map +1 -0
  200. package/esm/models/createpriceop.d.ts +6 -0
  201. package/esm/models/createpriceop.d.ts.map +1 -0
  202. package/esm/models/createpriceop.js +12 -0
  203. package/esm/models/createpriceop.js.map +1 -0
  204. package/esm/models/createpricesbulkop.d.ts +6 -0
  205. package/esm/models/createpricesbulkop.d.ts.map +1 -0
  206. package/esm/models/createpricesbulkop.js +11 -0
  207. package/esm/models/createpricesbulkop.js.map +1 -0
  208. package/esm/models/creditgrantapplicationreason.d.ts +14 -0
  209. package/esm/models/creditgrantapplicationreason.d.ts.map +1 -0
  210. package/esm/models/creditgrantapplicationreason.js +15 -0
  211. package/esm/models/creditgrantapplicationreason.js.map +1 -0
  212. package/esm/models/creditgrantcadence.d.ts +12 -0
  213. package/esm/models/creditgrantcadence.d.ts.map +1 -0
  214. package/esm/models/creditgrantcadence.js +13 -0
  215. package/esm/models/creditgrantcadence.js.map +1 -0
  216. package/esm/models/creditgrantexpirydurationunit.d.ts +16 -0
  217. package/esm/models/creditgrantexpirydurationunit.d.ts.map +1 -0
  218. package/esm/models/creditgrantexpirydurationunit.js +17 -0
  219. package/esm/models/creditgrantexpirydurationunit.js.map +1 -0
  220. package/esm/models/creditgrantexpirytype.d.ts +14 -0
  221. package/esm/models/creditgrantexpirytype.d.ts.map +1 -0
  222. package/esm/models/creditgrantexpirytype.js +15 -0
  223. package/esm/models/creditgrantexpirytype.js.map +1 -0
  224. package/esm/models/creditgrantperiod.d.ts +20 -0
  225. package/esm/models/creditgrantperiod.d.ts.map +1 -0
  226. package/esm/models/creditgrantperiod.js +21 -0
  227. package/esm/models/creditgrantperiod.js.map +1 -0
  228. package/esm/models/creditgrantscope.d.ts +12 -0
  229. package/esm/models/creditgrantscope.d.ts.map +1 -0
  230. package/esm/models/creditgrantscope.js +13 -0
  231. package/esm/models/creditgrantscope.js.map +1 -0
  232. package/esm/models/customerfilter.d.ts +32 -0
  233. package/esm/models/customerfilter.d.ts.map +1 -0
  234. package/esm/models/customerfilter.js +32 -0
  235. package/esm/models/customerfilter.js.map +1 -0
  236. package/esm/models/datatype.d.ts +16 -0
  237. package/esm/models/datatype.d.ts.map +1 -0
  238. package/esm/models/datatype.js +17 -0
  239. package/esm/models/datatype.js.map +1 -0
  240. package/esm/models/debugtrackerstatus.d.ts +16 -0
  241. package/esm/models/debugtrackerstatus.d.ts.map +1 -0
  242. package/esm/models/debugtrackerstatus.js +17 -0
  243. package/esm/models/debugtrackerstatus.js.map +1 -0
  244. package/esm/models/deleteplanop.d.ts +10 -0
  245. package/esm/models/deleteplanop.d.ts.map +1 -0
  246. package/esm/models/deleteplanop.js +16 -0
  247. package/esm/models/deleteplanop.js.map +1 -0
  248. package/esm/models/deletepriceop.d.ts +12 -0
  249. package/esm/models/deletepriceop.d.ts.map +1 -0
  250. package/esm/models/deletepriceop.js +18 -0
  251. package/esm/models/deletepriceop.js.map +1 -0
  252. package/esm/models/dtoaddonresponse.d.ts +4 -4
  253. package/esm/models/dtoaddonresponse.d.ts.map +1 -1
  254. package/esm/models/dtoaddonresponse.js +4 -4
  255. package/esm/models/dtoaddonresponse.js.map +1 -1
  256. package/esm/models/dtoaggregatedentitlement.d.ts +2 -2
  257. package/esm/models/dtoaggregatedentitlement.d.ts.map +1 -1
  258. package/esm/models/dtoaggregatedentitlement.js +2 -2
  259. package/esm/models/dtoaggregatedentitlement.js.map +1 -1
  260. package/esm/models/dtocloneplanrequest.d.ts +12 -0
  261. package/esm/models/dtocloneplanrequest.d.ts.map +1 -0
  262. package/esm/models/dtocloneplanrequest.js +13 -0
  263. package/esm/models/dtocloneplanrequest.js.map +1 -0
  264. package/esm/models/dtocouponapplicationresponse.d.ts +4 -4
  265. package/esm/models/dtocouponapplicationresponse.d.ts.map +1 -1
  266. package/esm/models/dtocouponapplicationresponse.js +4 -4
  267. package/esm/models/dtocouponapplicationresponse.js.map +1 -1
  268. package/esm/models/dtocouponassociationresponse.d.ts +2 -2
  269. package/esm/models/dtocouponassociationresponse.d.ts.map +1 -1
  270. package/esm/models/dtocouponassociationresponse.js +2 -2
  271. package/esm/models/dtocouponassociationresponse.js.map +1 -1
  272. package/esm/models/dtocreatebulkpricerequest.d.ts +7 -0
  273. package/esm/models/dtocreatebulkpricerequest.d.ts.map +1 -0
  274. package/esm/models/dtocreatebulkpricerequest.js +9 -0
  275. package/esm/models/dtocreatebulkpricerequest.js.map +1 -0
  276. package/esm/models/dtocreatebulkpriceresponse.d.ts +7 -0
  277. package/esm/models/dtocreatebulkpriceresponse.d.ts.map +1 -0
  278. package/esm/models/dtocreatebulkpriceresponse.js +9 -0
  279. package/esm/models/dtocreatebulkpriceresponse.js.map +1 -0
  280. package/esm/models/dtocreateinvoicelineitemrequest.d.ts +2 -2
  281. package/esm/models/dtocreateinvoicelineitemrequest.d.ts.map +1 -1
  282. package/esm/models/dtocreateinvoicelineitemrequest.js +2 -2
  283. package/esm/models/dtocreateinvoicelineitemrequest.js.map +1 -1
  284. package/esm/models/dtocreateinvoicerequest.d.ts +8 -8
  285. package/esm/models/dtocreateinvoicerequest.d.ts.map +1 -1
  286. package/esm/models/dtocreateinvoicerequest.js +8 -8
  287. package/esm/models/dtocreateinvoicerequest.js.map +1 -1
  288. package/esm/models/dtocreateplanrequest.d.ts +12 -0
  289. package/esm/models/dtocreateplanrequest.d.ts.map +1 -0
  290. package/esm/models/dtocreateplanrequest.js +13 -0
  291. package/esm/models/dtocreateplanrequest.js.map +1 -0
  292. package/esm/models/dtocreatepricerequest.d.ts +46 -0
  293. package/esm/models/dtocreatepricerequest.d.ts.map +1 -0
  294. package/esm/models/dtocreatepricerequest.js +44 -0
  295. package/esm/models/dtocreatepricerequest.js.map +1 -0
  296. package/esm/models/dtocreatepricetier.d.ts +8 -0
  297. package/esm/models/dtocreatepricetier.d.ts.map +1 -0
  298. package/esm/models/dtocreatepricetier.js +11 -0
  299. package/esm/models/dtocreatepricetier.js.map +1 -0
  300. package/esm/models/dtocreditgrantapplicationresponse.d.ts +8 -8
  301. package/esm/models/dtocreditgrantapplicationresponse.d.ts.map +1 -1
  302. package/esm/models/dtocreditgrantapplicationresponse.js +8 -9
  303. package/esm/models/dtocreditgrantapplicationresponse.js.map +1 -1
  304. package/esm/models/dtocreditgrantresponse.d.ts +12 -12
  305. package/esm/models/dtocreditgrantresponse.d.ts.map +1 -1
  306. package/esm/models/dtocreditgrantresponse.js +12 -13
  307. package/esm/models/dtocreditgrantresponse.js.map +1 -1
  308. package/esm/models/dtocustomerlookupresult.d.ts +2 -2
  309. package/esm/models/dtocustomerlookupresult.d.ts.map +1 -1
  310. package/esm/models/dtocustomerlookupresult.js +2 -2
  311. package/esm/models/dtocustomerlookupresult.js.map +1 -1
  312. package/esm/models/dtocustomerresponse.d.ts +2 -2
  313. package/esm/models/dtocustomerresponse.d.ts.map +1 -1
  314. package/esm/models/dtocustomerresponse.js +2 -2
  315. package/esm/models/dtocustomerresponse.js.map +1 -1
  316. package/esm/models/dtocustomerusagesummaryresponse.d.ts +2 -2
  317. package/esm/models/dtocustomerusagesummaryresponse.d.ts.map +1 -1
  318. package/esm/models/dtocustomerusagesummaryresponse.js +2 -2
  319. package/esm/models/dtocustomerusagesummaryresponse.js.map +1 -1
  320. package/esm/models/dtodebugtracker.d.ts +2 -2
  321. package/esm/models/dtodebugtracker.d.ts.map +1 -1
  322. package/esm/models/dtodebugtracker.js +2 -2
  323. package/esm/models/dtodebugtracker.js.map +1 -1
  324. package/esm/models/dtodeletepricerequest.d.ts +6 -0
  325. package/esm/models/dtodeletepricerequest.d.ts.map +1 -0
  326. package/esm/models/dtodeletepricerequest.js +8 -0
  327. package/esm/models/dtodeletepricerequest.js.map +1 -0
  328. package/esm/models/dtoentitlementresponse.d.ts +8 -8
  329. package/esm/models/dtoentitlementresponse.d.ts.map +1 -1
  330. package/esm/models/dtoentitlementresponse.js +8 -8
  331. package/esm/models/dtoentitlementresponse.js.map +1 -1
  332. package/esm/models/dtoentitlementsource.d.ts +2 -2
  333. package/esm/models/dtoentitlementsource.d.ts.map +1 -1
  334. package/esm/models/dtoentitlementsource.js +2 -2
  335. package/esm/models/dtoentitlementsource.js.map +1 -1
  336. package/esm/models/dtofeatureresponse.d.ts +6 -6
  337. package/esm/models/dtofeatureresponse.d.ts.map +1 -1
  338. package/esm/models/dtofeatureresponse.js +6 -6
  339. package/esm/models/dtofeatureresponse.js.map +1 -1
  340. package/esm/models/dtogeteventbyidresponse.d.ts +2 -2
  341. package/esm/models/dtogeteventbyidresponse.d.ts.map +1 -1
  342. package/esm/models/dtogeteventbyidresponse.js +2 -2
  343. package/esm/models/dtogeteventbyidresponse.js.map +1 -1
  344. package/esm/models/dtogetusageanalyticsrequest.d.ts +2 -2
  345. package/esm/models/dtogetusageanalyticsrequest.d.ts.map +1 -1
  346. package/esm/models/dtogetusageanalyticsrequest.js +2 -2
  347. package/esm/models/dtogetusageanalyticsrequest.js.map +1 -1
  348. package/esm/models/dtogetusagebymeterrequest.d.ts +3 -3
  349. package/esm/models/dtogetusagebymeterrequest.d.ts.map +1 -1
  350. package/esm/models/dtogetusagebymeterrequest.js +3 -3
  351. package/esm/models/dtogetusagebymeterrequest.js.map +1 -1
  352. package/esm/models/dtogetusagerequest.d.ts +5 -5
  353. package/esm/models/dtogetusagerequest.d.ts.map +1 -1
  354. package/esm/models/dtogetusagerequest.js +5 -5
  355. package/esm/models/dtogetusagerequest.js.map +1 -1
  356. package/esm/models/dtogetusageresponse.d.ts +2 -2
  357. package/esm/models/dtogetusageresponse.d.ts.map +1 -1
  358. package/esm/models/dtogetusageresponse.js +2 -2
  359. package/esm/models/dtogetusageresponse.js.map +1 -1
  360. package/esm/models/dtoinvoicelineitemresponse.d.ts +4 -4
  361. package/esm/models/dtoinvoicelineitemresponse.d.ts.map +1 -1
  362. package/esm/models/dtoinvoicelineitemresponse.js +4 -4
  363. package/esm/models/dtoinvoicelineitemresponse.js.map +1 -1
  364. package/esm/models/dtoinvoiceresponse.d.ts +8 -8
  365. package/esm/models/dtoinvoiceresponse.d.ts.map +1 -1
  366. package/esm/models/dtoinvoiceresponse.js +8 -8
  367. package/esm/models/dtoinvoiceresponse.js.map +1 -1
  368. package/esm/models/dtolistcreditgrantapplicationsresponse.d.ts +2 -2
  369. package/esm/models/dtolistcreditgrantapplicationsresponse.d.ts.map +1 -1
  370. package/esm/models/dtolistcreditgrantapplicationsresponse.js +2 -2
  371. package/esm/models/dtolistcreditgrantapplicationsresponse.js.map +1 -1
  372. package/esm/models/dtolistcustomersresponse.d.ts +2 -2
  373. package/esm/models/dtolistcustomersresponse.d.ts.map +1 -1
  374. package/esm/models/dtolistcustomersresponse.js +2 -2
  375. package/esm/models/dtolistcustomersresponse.js.map +1 -1
  376. package/esm/models/dtolistinvoicesresponse.d.ts +2 -2
  377. package/esm/models/dtolistinvoicesresponse.d.ts.map +1 -1
  378. package/esm/models/dtolistinvoicesresponse.js +2 -2
  379. package/esm/models/dtolistinvoicesresponse.js.map +1 -1
  380. package/esm/models/dtolistplansresponse.d.ts +9 -0
  381. package/esm/models/dtolistplansresponse.d.ts.map +1 -0
  382. package/esm/models/dtolistplansresponse.js +12 -0
  383. package/esm/models/dtolistplansresponse.js.map +1 -0
  384. package/esm/models/dtolistpricesresponse.d.ts +9 -0
  385. package/esm/models/dtolistpricesresponse.d.ts.map +1 -0
  386. package/esm/models/dtolistpricesresponse.js +11 -0
  387. package/esm/models/dtolistpricesresponse.js.map +1 -0
  388. package/esm/models/dtometermatchingresult.d.ts +2 -2
  389. package/esm/models/dtometermatchingresult.d.ts.map +1 -1
  390. package/esm/models/dtometermatchingresult.js +2 -2
  391. package/esm/models/dtometermatchingresult.js.map +1 -1
  392. package/esm/models/dtometerresponse.d.ts +2 -2
  393. package/esm/models/dtometerresponse.d.ts.map +1 -1
  394. package/esm/models/dtometerresponse.js +2 -2
  395. package/esm/models/dtometerresponse.js.map +1 -1
  396. package/esm/models/dtoplanresponse.d.ts +2 -2
  397. package/esm/models/dtoplanresponse.d.ts.map +1 -1
  398. package/esm/models/dtoplanresponse.js +2 -2
  399. package/esm/models/dtoplanresponse.js.map +1 -1
  400. package/esm/models/dtopricelookupresult.d.ts +2 -2
  401. package/esm/models/dtopricelookupresult.d.ts.map +1 -1
  402. package/esm/models/dtopricelookupresult.js +2 -2
  403. package/esm/models/dtopricelookupresult.js.map +1 -1
  404. package/esm/models/dtopriceresponse.d.ts +18 -18
  405. package/esm/models/dtopriceresponse.d.ts.map +1 -1
  406. package/esm/models/dtopriceresponse.js +18 -18
  407. package/esm/models/dtopriceresponse.js.map +1 -1
  408. package/esm/models/dtopriceunitconfig.d.ts +9 -0
  409. package/esm/models/dtopriceunitconfig.d.ts.map +1 -0
  410. package/esm/models/dtopriceunitconfig.js +12 -0
  411. package/esm/models/dtopriceunitconfig.js.map +1 -0
  412. package/esm/models/dtopriceunitresponse.d.ts +2 -2
  413. package/esm/models/dtopriceunitresponse.d.ts.map +1 -1
  414. package/esm/models/dtopriceunitresponse.js +2 -2
  415. package/esm/models/dtopriceunitresponse.js.map +1 -1
  416. package/esm/models/dtosubscriptionlineitemlookupresult.d.ts +2 -2
  417. package/esm/models/dtosubscriptionlineitemlookupresult.d.ts.map +1 -1
  418. package/esm/models/dtosubscriptionlineitemlookupresult.js +2 -2
  419. package/esm/models/dtosubscriptionlineitemlookupresult.js.map +1 -1
  420. package/esm/models/dtosubscriptionphaseresponse.d.ts +2 -2
  421. package/esm/models/dtosubscriptionphaseresponse.d.ts.map +1 -1
  422. package/esm/models/dtosubscriptionphaseresponse.js +2 -2
  423. package/esm/models/dtosubscriptionphaseresponse.js.map +1 -1
  424. package/esm/models/dtosubscriptionresponse.d.ts +17 -17
  425. package/esm/models/dtosubscriptionresponse.d.ts.map +1 -1
  426. package/esm/models/dtosubscriptionresponse.js +17 -17
  427. package/esm/models/dtosubscriptionresponse.js.map +1 -1
  428. package/esm/models/dtotaxappliedresponse.d.ts +4 -4
  429. package/esm/models/dtotaxappliedresponse.d.ts.map +1 -1
  430. package/esm/models/dtotaxappliedresponse.js +4 -4
  431. package/esm/models/dtotaxappliedresponse.js.map +1 -1
  432. package/esm/models/dtotaxrateresponse.d.ts +8 -8
  433. package/esm/models/dtotaxrateresponse.d.ts.map +1 -1
  434. package/esm/models/dtotaxrateresponse.js +8 -8
  435. package/esm/models/dtotaxrateresponse.js.map +1 -1
  436. package/esm/models/dtoupdatepaymentstatusrequest.d.ts +2 -2
  437. package/esm/models/dtoupdatepaymentstatusrequest.d.ts.map +1 -1
  438. package/esm/models/dtoupdatepaymentstatusrequest.js +2 -2
  439. package/esm/models/dtoupdatepaymentstatusrequest.js.map +1 -1
  440. package/esm/models/dtoupdateplanrequest.d.ts +12 -0
  441. package/esm/models/dtoupdateplanrequest.d.ts.map +1 -0
  442. package/esm/models/dtoupdateplanrequest.js +13 -0
  443. package/esm/models/dtoupdateplanrequest.js.map +1 -0
  444. package/esm/models/dtoupdatepricerequest.d.ts +24 -0
  445. package/esm/models/dtoupdatepricerequest.d.ts.map +1 -0
  446. package/esm/models/dtoupdatepricerequest.js +24 -0
  447. package/esm/models/dtoupdatepricerequest.js.map +1 -0
  448. package/esm/models/dtousageanalyticitem.d.ts +6 -6
  449. package/esm/models/dtousageanalyticitem.d.ts.map +1 -1
  450. package/esm/models/dtousageanalyticitem.js +6 -6
  451. package/esm/models/dtousageanalyticitem.js.map +1 -1
  452. package/esm/models/entitlemententitytype.d.ts +14 -0
  453. package/esm/models/entitlemententitytype.d.ts.map +1 -0
  454. package/esm/models/entitlemententitytype.js +15 -0
  455. package/esm/models/entitlemententitytype.js.map +1 -0
  456. package/esm/models/entitlementusageresetperiod.d.ts +22 -0
  457. package/esm/models/entitlementusageresetperiod.d.ts.map +1 -0
  458. package/esm/models/entitlementusageresetperiod.js +23 -0
  459. package/esm/models/entitlementusageresetperiod.js.map +1 -0
  460. package/esm/models/eventprocessingstatustype.d.ts +14 -0
  461. package/esm/models/eventprocessingstatustype.d.ts.map +1 -0
  462. package/esm/models/eventprocessingstatustype.js +15 -0
  463. package/esm/models/eventprocessingstatustype.js.map +1 -0
  464. package/esm/models/failurepoint.d.ts +9 -0
  465. package/esm/models/failurepoint.d.ts.map +1 -0
  466. package/esm/models/failurepoint.js +11 -0
  467. package/esm/models/failurepoint.js.map +1 -0
  468. package/esm/models/failurepointtype.d.ts +16 -0
  469. package/esm/models/failurepointtype.d.ts.map +1 -0
  470. package/esm/models/failurepointtype.js +17 -0
  471. package/esm/models/failurepointtype.js.map +1 -0
  472. package/esm/models/featuretype.d.ts +14 -0
  473. package/esm/models/featuretype.d.ts.map +1 -0
  474. package/esm/models/featuretype.js +15 -0
  475. package/esm/models/featuretype.js.map +1 -0
  476. package/esm/models/filtercondition.d.ts +12 -0
  477. package/esm/models/filtercondition.d.ts.map +1 -0
  478. package/esm/models/filtercondition.js +14 -0
  479. package/esm/models/filtercondition.js.map +1 -0
  480. package/esm/models/filteroperatortype.d.ts +26 -0
  481. package/esm/models/filteroperatortype.d.ts.map +1 -0
  482. package/esm/models/filteroperatortype.js +27 -0
  483. package/esm/models/filteroperatortype.js.map +1 -0
  484. package/esm/models/getplanop.d.ts +10 -0
  485. package/esm/models/getplanop.d.ts.map +1 -0
  486. package/esm/models/getplanop.js +14 -0
  487. package/esm/models/getplanop.js.map +1 -0
  488. package/esm/models/getpricebylookupkeyop.d.ts +10 -0
  489. package/esm/models/getpricebylookupkeyop.d.ts.map +1 -0
  490. package/esm/models/getpricebylookupkeyop.js +14 -0
  491. package/esm/models/getpricebylookupkeyop.js.map +1 -0
  492. package/esm/models/getpriceop.d.ts +10 -0
  493. package/esm/models/getpriceop.d.ts.map +1 -0
  494. package/esm/models/getpriceop.js +14 -0
  495. package/esm/models/getpriceop.js.map +1 -0
  496. package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.d.ts +4 -4
  497. package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.d.ts.map +1 -1
  498. package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.js +4 -4
  499. package/esm/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.js.map +1 -1
  500. package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.d.ts +6 -6
  501. package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.d.ts.map +1 -1
  502. package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.js +6 -6
  503. package/esm/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.js.map +1 -1
  504. package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.d.ts +2 -2
  505. package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.d.ts.map +1 -1
  506. package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.js +2 -2
  507. package/esm/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.js.map +1 -1
  508. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts +6 -6
  509. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts.map +1 -1
  510. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js +6 -6
  511. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js.map +1 -1
  512. package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.d.ts +2 -2
  513. package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.d.ts.map +1 -1
  514. package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.js +2 -2
  515. package/esm/models/githubcomflexpriceflexpriceinternaldomainplanplan.js.map +1 -1
  516. package/esm/models/invoicebillingreason.d.ts +18 -0
  517. package/esm/models/invoicebillingreason.d.ts.map +1 -0
  518. package/esm/models/invoicebillingreason.js +19 -0
  519. package/esm/models/invoicebillingreason.js.map +1 -0
  520. package/esm/models/invoicecadence.d.ts +12 -0
  521. package/esm/models/invoicecadence.d.ts.map +1 -0
  522. package/esm/models/invoicecadence.js +13 -0
  523. package/esm/models/invoicecadence.js.map +1 -0
  524. package/esm/models/invoicefilter.d.ts +44 -0
  525. package/esm/models/invoicefilter.d.ts.map +1 -0
  526. package/esm/models/invoicefilter.js +44 -0
  527. package/esm/models/invoicefilter.js.map +1 -0
  528. package/esm/models/invoicestatus.d.ts +14 -0
  529. package/esm/models/invoicestatus.d.ts.map +1 -0
  530. package/esm/models/invoicestatus.js +15 -0
  531. package/esm/models/invoicestatus.js.map +1 -0
  532. package/esm/models/invoicetype.d.ts +14 -0
  533. package/esm/models/invoicetype.d.ts.map +1 -0
  534. package/esm/models/invoicetype.js +15 -0
  535. package/esm/models/invoicetype.js.map +1 -0
  536. package/esm/models/meteraggregation.d.ts +4 -4
  537. package/esm/models/meteraggregation.d.ts.map +1 -1
  538. package/esm/models/meteraggregation.js +4 -4
  539. package/esm/models/meteraggregation.js.map +1 -1
  540. package/esm/models/metermeter.d.ts +4 -4
  541. package/esm/models/metermeter.d.ts.map +1 -1
  542. package/esm/models/metermeter.js +4 -4
  543. package/esm/models/metermeter.js.map +1 -1
  544. package/esm/models/modelstemporalworkflowresult.d.ts +8 -0
  545. package/esm/models/modelstemporalworkflowresult.d.ts.map +1 -0
  546. package/esm/models/modelstemporalworkflowresult.js +10 -0
  547. package/esm/models/modelstemporalworkflowresult.js.map +1 -0
  548. package/esm/models/paginationresponse.d.ts +8 -0
  549. package/esm/models/paginationresponse.d.ts.map +1 -0
  550. package/esm/models/paginationresponse.js +11 -0
  551. package/esm/models/paginationresponse.js.map +1 -0
  552. package/esm/models/pausemode.d.ts +14 -0
  553. package/esm/models/pausemode.d.ts.map +1 -0
  554. package/esm/models/pausemode.js +15 -0
  555. package/esm/models/pausemode.js.map +1 -0
  556. package/esm/models/pausestatus.d.ts +18 -0
  557. package/esm/models/pausestatus.d.ts.map +1 -0
  558. package/esm/models/pausestatus.js +19 -0
  559. package/esm/models/pausestatus.js.map +1 -0
  560. package/esm/models/paymentstatus.d.ts +24 -0
  561. package/esm/models/paymentstatus.d.ts.map +1 -0
  562. package/esm/models/paymentstatus.js +25 -0
  563. package/esm/models/paymentstatus.js.map +1 -0
  564. package/esm/models/paymentterms.d.ts +20 -0
  565. package/esm/models/paymentterms.d.ts.map +1 -0
  566. package/esm/models/paymentterms.js +21 -0
  567. package/esm/models/paymentterms.js.map +1 -0
  568. package/esm/models/planfilter.d.ts +29 -0
  569. package/esm/models/planfilter.d.ts.map +1 -0
  570. package/esm/models/planfilter.js +29 -0
  571. package/esm/models/planfilter.js.map +1 -0
  572. package/esm/models/postplansidcloneop.d.ts +12 -0
  573. package/esm/models/postplansidcloneop.d.ts.map +1 -0
  574. package/esm/models/postplansidcloneop.js +16 -0
  575. package/esm/models/postplansidcloneop.js.map +1 -0
  576. package/esm/models/priceentitytype.d.ts +18 -0
  577. package/esm/models/priceentitytype.d.ts.map +1 -0
  578. package/esm/models/priceentitytype.js +19 -0
  579. package/esm/models/priceentitytype.js.map +1 -0
  580. package/esm/models/pricefilter.d.ts +36 -0
  581. package/esm/models/pricefilter.d.ts.map +1 -0
  582. package/esm/models/pricefilter.js +36 -0
  583. package/esm/models/pricefilter.js.map +1 -0
  584. package/esm/models/pricejsonbtransformquantity.d.ts +2 -2
  585. package/esm/models/pricejsonbtransformquantity.d.ts.map +1 -1
  586. package/esm/models/pricejsonbtransformquantity.js +2 -2
  587. package/esm/models/pricejsonbtransformquantity.js.map +1 -1
  588. package/esm/models/priceprice.d.ts +18 -18
  589. package/esm/models/priceprice.d.ts.map +1 -1
  590. package/esm/models/priceprice.js +18 -18
  591. package/esm/models/priceprice.js.map +1 -1
  592. package/esm/models/pricetransformquantity.d.ts +8 -0
  593. package/esm/models/pricetransformquantity.d.ts.map +1 -0
  594. package/esm/models/pricetransformquantity.js +10 -0
  595. package/esm/models/pricetransformquantity.js.map +1 -0
  596. package/esm/models/pricetype.d.ts +12 -0
  597. package/esm/models/pricetype.d.ts.map +1 -0
  598. package/esm/models/pricetype.js +13 -0
  599. package/esm/models/pricetype.js.map +1 -0
  600. package/esm/models/priceunittype.d.ts +12 -0
  601. package/esm/models/priceunittype.d.ts.map +1 -0
  602. package/esm/models/priceunittype.js +13 -0
  603. package/esm/models/priceunittype.js.map +1 -0
  604. package/esm/models/prorationbehavior.d.ts +12 -0
  605. package/esm/models/prorationbehavior.d.ts.map +1 -0
  606. package/esm/models/prorationbehavior.js +13 -0
  607. package/esm/models/prorationbehavior.js.map +1 -0
  608. package/esm/models/queryplanop.d.ts +6 -0
  609. package/esm/models/queryplanop.d.ts.map +1 -0
  610. package/esm/models/queryplanop.js +12 -0
  611. package/esm/models/queryplanop.js.map +1 -0
  612. package/esm/models/querypriceop.d.ts +6 -0
  613. package/esm/models/querypriceop.d.ts.map +1 -0
  614. package/esm/models/querypriceop.js +12 -0
  615. package/esm/models/querypriceop.js.map +1 -0
  616. package/esm/models/resetusage.d.ts +12 -0
  617. package/esm/models/resetusage.d.ts.map +1 -0
  618. package/esm/models/resetusage.js +13 -0
  619. package/esm/models/resetusage.js.map +1 -0
  620. package/esm/models/resumemode.d.ts +14 -0
  621. package/esm/models/resumemode.d.ts.map +1 -0
  622. package/esm/models/resumemode.js +15 -0
  623. package/esm/models/resumemode.js.map +1 -0
  624. package/esm/models/roundtype.d.ts +12 -0
  625. package/esm/models/roundtype.d.ts.map +1 -0
  626. package/esm/models/roundtype.js +13 -0
  627. package/esm/models/roundtype.js.map +1 -0
  628. package/esm/models/sortcondition.d.ts +8 -0
  629. package/esm/models/sortcondition.d.ts.map +1 -0
  630. package/esm/models/sortcondition.js +10 -0
  631. package/esm/models/sortcondition.js.map +1 -0
  632. package/esm/models/sortdirection.d.ts +12 -0
  633. package/esm/models/sortdirection.d.ts.map +1 -0
  634. package/esm/models/sortdirection.js +13 -0
  635. package/esm/models/sortdirection.js.map +1 -0
  636. package/esm/models/status.d.ts +14 -0
  637. package/esm/models/status.d.ts.map +1 -0
  638. package/esm/models/status.js +15 -0
  639. package/esm/models/status.js.map +1 -0
  640. package/esm/models/subscriptionlineitementitytype.d.ts +14 -0
  641. package/esm/models/subscriptionlineitementitytype.d.ts.map +1 -0
  642. package/esm/models/subscriptionlineitementitytype.js +15 -0
  643. package/esm/models/subscriptionlineitementitytype.js.map +1 -0
  644. package/esm/models/subscriptionstatus.d.ts +20 -0
  645. package/esm/models/subscriptionstatus.d.ts.map +1 -0
  646. package/esm/models/subscriptionstatus.js +21 -0
  647. package/esm/models/subscriptionstatus.js.map +1 -0
  648. package/esm/models/subscriptionsubscriptionlineitem.d.ts +13 -13
  649. package/esm/models/subscriptionsubscriptionlineitem.d.ts.map +1 -1
  650. package/esm/models/subscriptionsubscriptionlineitem.js +13 -13
  651. package/esm/models/subscriptionsubscriptionlineitem.js.map +1 -1
  652. package/esm/models/subscriptionsubscriptionpause.d.ts +8 -8
  653. package/esm/models/subscriptionsubscriptionpause.d.ts.map +1 -1
  654. package/esm/models/subscriptionsubscriptionpause.js +8 -8
  655. package/esm/models/subscriptionsubscriptionpause.js.map +1 -1
  656. package/esm/models/syncplanpricesop.d.ts +10 -0
  657. package/esm/models/syncplanpricesop.d.ts.map +1 -0
  658. package/esm/models/syncplanpricesop.js +14 -0
  659. package/esm/models/syncplanpricesop.js.map +1 -0
  660. package/esm/models/taxrateentitytype.d.ts +16 -0
  661. package/esm/models/taxrateentitytype.d.ts.map +1 -0
  662. package/esm/models/taxrateentitytype.js +17 -0
  663. package/esm/models/taxrateentitytype.js.map +1 -0
  664. package/esm/models/taxratescope.d.ts +14 -0
  665. package/esm/models/taxratescope.d.ts.map +1 -0
  666. package/esm/models/taxratescope.js +15 -0
  667. package/esm/models/taxratescope.js.map +1 -0
  668. package/esm/models/taxratestatus.d.ts +12 -0
  669. package/esm/models/taxratestatus.d.ts.map +1 -0
  670. package/esm/models/taxratestatus.js +13 -0
  671. package/esm/models/taxratestatus.js.map +1 -0
  672. package/esm/models/taxratetype.d.ts +12 -0
  673. package/esm/models/taxratetype.d.ts.map +1 -0
  674. package/esm/models/taxratetype.js +13 -0
  675. package/esm/models/taxratetype.js.map +1 -0
  676. package/esm/models/updateplanop.d.ts +12 -0
  677. package/esm/models/updateplanop.d.ts.map +1 -0
  678. package/esm/models/updateplanop.js +18 -0
  679. package/esm/models/updateplanop.js.map +1 -0
  680. package/esm/models/updatepriceop.d.ts +12 -0
  681. package/esm/models/updatepriceop.d.ts.map +1 -0
  682. package/esm/models/updatepriceop.js +18 -0
  683. package/esm/models/updatepriceop.js.map +1 -0
  684. package/esm/models/windowsize.d.ts +28 -0
  685. package/esm/models/windowsize.d.ts.map +1 -0
  686. package/esm/models/windowsize.js +29 -0
  687. package/esm/models/windowsize.js.map +1 -0
  688. package/esm/tool-names.d.ts.map +1 -1
  689. package/esm/tool-names.js +56 -0
  690. package/esm/tool-names.js.map +1 -1
  691. package/esm/tsconfig.tsbuildinfo +1 -1
  692. package/manifest.json +57 -1
  693. package/package.json +1 -1
  694. package/src/funcs/customersQueryCustomer.ts +7 -7
  695. package/src/funcs/invoicesQueryInvoice.ts +6 -6
  696. package/src/funcs/plansCreatePlan.ts +144 -0
  697. package/src/funcs/plansDeletePlan.ts +152 -0
  698. package/src/funcs/plansGetPlan.ts +152 -0
  699. package/src/funcs/plansPostPlansIdClone.ts +153 -0
  700. package/src/funcs/plansQueryPlan.ts +141 -0
  701. package/src/funcs/plansSyncPlanPrices.ts +152 -0
  702. package/src/funcs/plansUpdatePlan.ts +153 -0
  703. package/src/funcs/pricesCreatePrice.ts +144 -0
  704. package/src/funcs/pricesCreatePricesBulk.ts +144 -0
  705. package/src/funcs/pricesDeletePrice.ts +153 -0
  706. package/src/funcs/pricesGetPrice.ts +152 -0
  707. package/src/funcs/pricesGetPriceByLookupKey.ts +152 -0
  708. package/src/funcs/pricesQueryPrice.ts +141 -0
  709. package/src/funcs/pricesUpdatePrice.ts +153 -0
  710. package/src/lib/config.ts +3 -3
  711. package/src/mcp-server/mcp-server.ts +1 -1
  712. package/src/mcp-server/server.ts +29 -1
  713. package/src/mcp-server/tools/customersQueryCustomer.ts +2 -2
  714. package/src/mcp-server/tools/invoicesQueryInvoice.ts +2 -2
  715. package/src/mcp-server/tools/plansCreatePlan.ts +42 -0
  716. package/src/mcp-server/tools/plansDeletePlan.ts +42 -0
  717. package/src/mcp-server/tools/plansGetPlan.ts +42 -0
  718. package/src/mcp-server/tools/plansPostPlansIdClone.ts +42 -0
  719. package/src/mcp-server/tools/plansQueryPlan.ts +42 -0
  720. package/src/mcp-server/tools/plansSyncPlanPrices.ts +42 -0
  721. package/src/mcp-server/tools/plansUpdatePlan.ts +42 -0
  722. package/src/mcp-server/tools/pricesCreatePrice.ts +42 -0
  723. package/src/mcp-server/tools/pricesCreatePricesBulk.ts +42 -0
  724. package/src/mcp-server/tools/pricesDeletePrice.ts +42 -0
  725. package/src/mcp-server/tools/pricesGetPrice.ts +42 -0
  726. package/src/mcp-server/tools/pricesGetPriceByLookupKey.ts +42 -0
  727. package/src/mcp-server/tools/pricesQueryPrice.ts +42 -0
  728. package/src/mcp-server/tools/pricesUpdatePrice.ts +42 -0
  729. package/src/models/addontype.ts +17 -0
  730. package/src/models/aggregationtype.ts +29 -0
  731. package/src/models/alertcondition.ts +17 -0
  732. package/src/models/alertsettings.ts +20 -0
  733. package/src/models/alertthreshold.ts +16 -0
  734. package/src/models/applicationstatus.ts +23 -0
  735. package/src/models/billingcadence.ts +17 -0
  736. package/src/models/billingcycle.ts +17 -0
  737. package/src/models/billingmodel.ts +19 -0
  738. package/src/models/billingperiod.ts +25 -0
  739. package/src/models/billingtier.ts +17 -0
  740. package/src/models/commitmentinfo.ts +33 -0
  741. package/src/models/commitmenttype.ts +17 -0
  742. package/src/models/couponcadence.ts +19 -0
  743. package/src/models/coupontype.ts +17 -0
  744. package/src/models/createplanop.ts +21 -0
  745. package/src/models/createpriceop.ts +21 -0
  746. package/src/models/createpricesbulkop.ts +24 -0
  747. package/src/models/creditgrantapplicationreason.ts +21 -0
  748. package/src/models/creditgrantcadence.ts +17 -0
  749. package/src/models/creditgrantexpirydurationunit.ts +23 -0
  750. package/src/models/creditgrantexpirytype.ts +19 -0
  751. package/src/models/creditgrantperiod.ts +25 -0
  752. package/src/models/creditgrantscope.ts +17 -0
  753. package/src/models/customerfilter.ts +57 -0
  754. package/src/models/datatype.ts +21 -0
  755. package/src/models/debugtrackerstatus.ts +21 -0
  756. package/src/models/deleteplanop.ts +28 -0
  757. package/src/models/deletepriceop.ts +33 -0
  758. package/src/models/dtoaddonresponse.ts +6 -6
  759. package/src/models/dtoaggregatedentitlement.ts +5 -5
  760. package/src/models/dtocloneplanrequest.ts +22 -0
  761. package/src/models/dtocouponapplicationresponse.ts +6 -9
  762. package/src/models/dtocouponassociationresponse.ts +3 -3
  763. package/src/models/dtocreatebulkpricerequest.ts +17 -0
  764. package/src/models/dtocreatebulkpriceresponse.ts +19 -0
  765. package/src/models/dtocreateinvoicelineitemrequest.ts +3 -6
  766. package/src/models/dtocreateinvoicerequest.ts +14 -23
  767. package/src/models/dtocreateplanrequest.ts +22 -0
  768. package/src/models/dtocreatepricerequest.ts +87 -0
  769. package/src/models/dtocreatepricetier.ts +18 -0
  770. package/src/models/dtocreditgrantapplicationresponse.ts +18 -19
  771. package/src/models/dtocreditgrantresponse.ts +28 -29
  772. package/src/models/dtocustomerlookupresult.ts +6 -6
  773. package/src/models/dtocustomerresponse.ts +3 -3
  774. package/src/models/dtocustomerusagesummaryresponse.ts +5 -5
  775. package/src/models/dtodebugtracker.ts +3 -6
  776. package/src/models/dtodeletepricerequest.ts +12 -0
  777. package/src/models/dtoentitlementresponse.ts +16 -19
  778. package/src/models/dtoentitlementsource.ts +3 -6
  779. package/src/models/dtofeatureresponse.ts +9 -15
  780. package/src/models/dtogeteventbyidresponse.ts +5 -5
  781. package/src/models/dtogetusageanalyticsrequest.ts +3 -6
  782. package/src/models/dtogetusagebymeterrequest.ts +5 -8
  783. package/src/models/dtogetusagerequest.ts +10 -13
  784. package/src/models/dtogetusageresponse.ts +6 -6
  785. package/src/models/dtoinvoicelineitemresponse.ts +6 -9
  786. package/src/models/dtoinvoiceresponse.ts +12 -21
  787. package/src/models/dtolistcreditgrantapplicationsresponse.ts +5 -5
  788. package/src/models/dtolistcustomersresponse.ts +5 -5
  789. package/src/models/dtolistinvoicesresponse.ts +5 -5
  790. package/src/models/dtolistplansresponse.ts +24 -0
  791. package/src/models/dtolistpricesresponse.ts +24 -0
  792. package/src/models/dtometermatchingresult.ts +6 -6
  793. package/src/models/dtometerresponse.ts +3 -6
  794. package/src/models/dtoplanresponse.ts +3 -3
  795. package/src/models/dtopricelookupresult.ts +6 -6
  796. package/src/models/dtopriceresponse.ts +30 -48
  797. package/src/models/dtopriceunitconfig.ts +22 -0
  798. package/src/models/dtopriceunitresponse.ts +3 -3
  799. package/src/models/dtosubscriptionlineitemlookupresult.ts +6 -6
  800. package/src/models/dtosubscriptionphaseresponse.ts +3 -3
  801. package/src/models/dtosubscriptionresponse.ts +32 -47
  802. package/src/models/dtotaxappliedresponse.ts +8 -8
  803. package/src/models/dtotaxrateresponse.ts +12 -21
  804. package/src/models/dtoupdatepaymentstatusrequest.ts +3 -6
  805. package/src/models/dtoupdateplanrequest.ts +22 -0
  806. package/src/models/dtoupdatepricerequest.ts +48 -0
  807. package/src/models/dtousageanalyticitem.ts +12 -18
  808. package/src/models/entitlemententitytype.ts +19 -0
  809. package/src/models/entitlementusageresetperiod.ts +29 -0
  810. package/src/models/eventprocessingstatustype.ts +21 -0
  811. package/src/models/failurepoint.ts +23 -0
  812. package/src/models/failurepointtype.ts +21 -0
  813. package/src/models/featuretype.ts +19 -0
  814. package/src/models/filtercondition.ts +28 -0
  815. package/src/models/filteroperatortype.ts +31 -0
  816. package/src/models/getplanop.ts +26 -0
  817. package/src/models/getpricebylookupkeyop.ts +32 -0
  818. package/src/models/getpriceop.ts +26 -0
  819. package/src/models/githubcomflexpriceflexpriceinternaldomainaddonaddon.ts +6 -6
  820. package/src/models/githubcomflexpriceflexpriceinternaldomaincouponcoupon.ts +9 -15
  821. package/src/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.ts +3 -3
  822. package/src/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.ts +9 -15
  823. package/src/models/githubcomflexpriceflexpriceinternaldomainplanplan.ts +3 -3
  824. package/src/models/invoicebillingreason.ts +23 -0
  825. package/src/models/invoicecadence.ts +17 -0
  826. package/src/models/invoicefilter.ts +78 -0
  827. package/src/models/invoicestatus.ts +19 -0
  828. package/src/models/invoicetype.ts +19 -0
  829. package/src/models/meteraggregation.ts +8 -11
  830. package/src/models/metermeter.ts +6 -9
  831. package/src/models/modelstemporalworkflowresult.ts +19 -0
  832. package/src/models/paginationresponse.ts +18 -0
  833. package/src/models/pausemode.ts +19 -0
  834. package/src/models/pausestatus.ts +23 -0
  835. package/src/models/paymentstatus.ts +29 -0
  836. package/src/models/paymentterms.ts +25 -0
  837. package/src/models/planfilter.ts +51 -0
  838. package/src/models/postplansidcloneop.ts +35 -0
  839. package/src/models/priceentitytype.ts +23 -0
  840. package/src/models/pricefilter.ts +68 -0
  841. package/src/models/pricejsonbtransformquantity.ts +3 -3
  842. package/src/models/priceprice.ts +30 -48
  843. package/src/models/pricetransformquantity.ts +18 -0
  844. package/src/models/pricetype.ts +17 -0
  845. package/src/models/priceunittype.ts +17 -0
  846. package/src/models/prorationbehavior.ts +17 -0
  847. package/src/models/queryplanop.ts +21 -0
  848. package/src/models/querypriceop.ts +21 -0
  849. package/src/models/resetusage.ts +17 -0
  850. package/src/models/resumemode.ts +19 -0
  851. package/src/models/roundtype.ts +17 -0
  852. package/src/models/sortcondition.ts +16 -0
  853. package/src/models/sortdirection.ts +17 -0
  854. package/src/models/status.ts +19 -0
  855. package/src/models/subscriptionlineitementitytype.ts +21 -0
  856. package/src/models/subscriptionstatus.ts +25 -0
  857. package/src/models/subscriptionsubscriptionlineitem.ts +22 -31
  858. package/src/models/subscriptionsubscriptionpause.ts +12 -18
  859. package/src/models/syncplanpricesop.ts +31 -0
  860. package/src/models/taxrateentitytype.ts +21 -0
  861. package/src/models/taxratescope.ts +19 -0
  862. package/src/models/taxratestatus.ts +17 -0
  863. package/src/models/taxratetype.ts +17 -0
  864. package/src/models/updateplanop.ts +33 -0
  865. package/src/models/updatepriceop.ts +33 -0
  866. package/src/models/windowsize.ts +33 -0
  867. package/src/tool-names.ts +56 -0
  868. package/esm/models/typesaddontype.d.ts +0 -12
  869. package/esm/models/typesaddontype.d.ts.map +0 -1
  870. package/esm/models/typesaddontype.js +0 -13
  871. package/esm/models/typesaddontype.js.map +0 -1
  872. package/esm/models/typesaggregationtype.d.ts +0 -24
  873. package/esm/models/typesaggregationtype.d.ts.map +0 -1
  874. package/esm/models/typesaggregationtype.js +0 -25
  875. package/esm/models/typesaggregationtype.js.map +0 -1
  876. package/esm/models/typesalertcondition.d.ts +0 -12
  877. package/esm/models/typesalertcondition.d.ts.map +0 -1
  878. package/esm/models/typesalertcondition.js +0 -13
  879. package/esm/models/typesalertcondition.js.map +0 -1
  880. package/esm/models/typesalertsettings.d.ts +0 -10
  881. package/esm/models/typesalertsettings.d.ts.map +0 -1
  882. package/esm/models/typesalertsettings.js +0 -13
  883. package/esm/models/typesalertsettings.js.map +0 -1
  884. package/esm/models/typesalertthreshold.d.ts +0 -8
  885. package/esm/models/typesalertthreshold.d.ts.map +0 -1
  886. package/esm/models/typesalertthreshold.js +0 -11
  887. package/esm/models/typesalertthreshold.js.map +0 -1
  888. package/esm/models/typesapplicationstatus.d.ts +0 -18
  889. package/esm/models/typesapplicationstatus.d.ts.map +0 -1
  890. package/esm/models/typesapplicationstatus.js +0 -19
  891. package/esm/models/typesapplicationstatus.js.map +0 -1
  892. package/esm/models/typesbillingcadence.d.ts +0 -12
  893. package/esm/models/typesbillingcadence.d.ts.map +0 -1
  894. package/esm/models/typesbillingcadence.js +0 -13
  895. package/esm/models/typesbillingcadence.js.map +0 -1
  896. package/esm/models/typesbillingcycle.d.ts +0 -12
  897. package/esm/models/typesbillingcycle.d.ts.map +0 -1
  898. package/esm/models/typesbillingcycle.js +0 -13
  899. package/esm/models/typesbillingcycle.js.map +0 -1
  900. package/esm/models/typesbillingmodel.d.ts +0 -14
  901. package/esm/models/typesbillingmodel.d.ts.map +0 -1
  902. package/esm/models/typesbillingmodel.js +0 -15
  903. package/esm/models/typesbillingmodel.js.map +0 -1
  904. package/esm/models/typesbillingperiod.d.ts +0 -20
  905. package/esm/models/typesbillingperiod.d.ts.map +0 -1
  906. package/esm/models/typesbillingperiod.js +0 -21
  907. package/esm/models/typesbillingperiod.js.map +0 -1
  908. package/esm/models/typesbillingtier.d.ts +0 -12
  909. package/esm/models/typesbillingtier.d.ts.map +0 -1
  910. package/esm/models/typesbillingtier.js +0 -13
  911. package/esm/models/typesbillingtier.js.map +0 -1
  912. package/esm/models/typescommitmentinfo.d.ts +0 -17
  913. package/esm/models/typescommitmentinfo.d.ts.map +0 -1
  914. package/esm/models/typescommitmentinfo.js +0 -20
  915. package/esm/models/typescommitmentinfo.js.map +0 -1
  916. package/esm/models/typescommitmenttype.d.ts +0 -12
  917. package/esm/models/typescommitmenttype.d.ts.map +0 -1
  918. package/esm/models/typescommitmenttype.js +0 -13
  919. package/esm/models/typescommitmenttype.js.map +0 -1
  920. package/esm/models/typescouponcadence.d.ts +0 -14
  921. package/esm/models/typescouponcadence.d.ts.map +0 -1
  922. package/esm/models/typescouponcadence.js +0 -15
  923. package/esm/models/typescouponcadence.js.map +0 -1
  924. package/esm/models/typescoupontype.d.ts +0 -12
  925. package/esm/models/typescoupontype.d.ts.map +0 -1
  926. package/esm/models/typescoupontype.js +0 -13
  927. package/esm/models/typescoupontype.js.map +0 -1
  928. package/esm/models/typescreditgrantapplicationreason.d.ts +0 -14
  929. package/esm/models/typescreditgrantapplicationreason.d.ts.map +0 -1
  930. package/esm/models/typescreditgrantapplicationreason.js +0 -15
  931. package/esm/models/typescreditgrantapplicationreason.js.map +0 -1
  932. package/esm/models/typescreditgrantcadence.d.ts +0 -12
  933. package/esm/models/typescreditgrantcadence.d.ts.map +0 -1
  934. package/esm/models/typescreditgrantcadence.js +0 -13
  935. package/esm/models/typescreditgrantcadence.js.map +0 -1
  936. package/esm/models/typescreditgrantexpirydurationunit.d.ts +0 -16
  937. package/esm/models/typescreditgrantexpirydurationunit.d.ts.map +0 -1
  938. package/esm/models/typescreditgrantexpirydurationunit.js +0 -17
  939. package/esm/models/typescreditgrantexpirydurationunit.js.map +0 -1
  940. package/esm/models/typescreditgrantexpirytype.d.ts +0 -14
  941. package/esm/models/typescreditgrantexpirytype.d.ts.map +0 -1
  942. package/esm/models/typescreditgrantexpirytype.js +0 -15
  943. package/esm/models/typescreditgrantexpirytype.js.map +0 -1
  944. package/esm/models/typescreditgrantperiod.d.ts +0 -20
  945. package/esm/models/typescreditgrantperiod.d.ts.map +0 -1
  946. package/esm/models/typescreditgrantperiod.js +0 -21
  947. package/esm/models/typescreditgrantperiod.js.map +0 -1
  948. package/esm/models/typescreditgrantscope.d.ts +0 -12
  949. package/esm/models/typescreditgrantscope.d.ts.map +0 -1
  950. package/esm/models/typescreditgrantscope.js +0 -13
  951. package/esm/models/typescreditgrantscope.js.map +0 -1
  952. package/esm/models/typescustomerfilter.d.ts +0 -32
  953. package/esm/models/typescustomerfilter.d.ts.map +0 -1
  954. package/esm/models/typescustomerfilter.js +0 -33
  955. package/esm/models/typescustomerfilter.js.map +0 -1
  956. package/esm/models/typesdatatype.d.ts +0 -16
  957. package/esm/models/typesdatatype.d.ts.map +0 -1
  958. package/esm/models/typesdatatype.js +0 -17
  959. package/esm/models/typesdatatype.js.map +0 -1
  960. package/esm/models/typesdebugtrackerstatus.d.ts +0 -16
  961. package/esm/models/typesdebugtrackerstatus.d.ts.map +0 -1
  962. package/esm/models/typesdebugtrackerstatus.js +0 -17
  963. package/esm/models/typesdebugtrackerstatus.js.map +0 -1
  964. package/esm/models/typesentitlemententitytype.d.ts +0 -14
  965. package/esm/models/typesentitlemententitytype.d.ts.map +0 -1
  966. package/esm/models/typesentitlemententitytype.js +0 -15
  967. package/esm/models/typesentitlemententitytype.js.map +0 -1
  968. package/esm/models/typesentitlementusageresetperiod.d.ts +0 -22
  969. package/esm/models/typesentitlementusageresetperiod.d.ts.map +0 -1
  970. package/esm/models/typesentitlementusageresetperiod.js +0 -23
  971. package/esm/models/typesentitlementusageresetperiod.js.map +0 -1
  972. package/esm/models/typeseventprocessingstatustype.d.ts +0 -14
  973. package/esm/models/typeseventprocessingstatustype.d.ts.map +0 -1
  974. package/esm/models/typeseventprocessingstatustype.js +0 -15
  975. package/esm/models/typeseventprocessingstatustype.js.map +0 -1
  976. package/esm/models/typesfailurepoint.d.ts +0 -9
  977. package/esm/models/typesfailurepoint.d.ts.map +0 -1
  978. package/esm/models/typesfailurepoint.js +0 -12
  979. package/esm/models/typesfailurepoint.js.map +0 -1
  980. package/esm/models/typesfailurepointtype.d.ts +0 -16
  981. package/esm/models/typesfailurepointtype.d.ts.map +0 -1
  982. package/esm/models/typesfailurepointtype.js +0 -17
  983. package/esm/models/typesfailurepointtype.js.map +0 -1
  984. package/esm/models/typesfeaturetype.d.ts +0 -14
  985. package/esm/models/typesfeaturetype.d.ts.map +0 -1
  986. package/esm/models/typesfeaturetype.js +0 -15
  987. package/esm/models/typesfeaturetype.js.map +0 -1
  988. package/esm/models/typesfiltercondition.d.ts +0 -12
  989. package/esm/models/typesfiltercondition.d.ts.map +0 -1
  990. package/esm/models/typesfiltercondition.js +0 -15
  991. package/esm/models/typesfiltercondition.js.map +0 -1
  992. package/esm/models/typesfilteroperatortype.d.ts +0 -26
  993. package/esm/models/typesfilteroperatortype.d.ts.map +0 -1
  994. package/esm/models/typesfilteroperatortype.js +0 -27
  995. package/esm/models/typesfilteroperatortype.js.map +0 -1
  996. package/esm/models/typesinvoicebillingreason.d.ts +0 -18
  997. package/esm/models/typesinvoicebillingreason.d.ts.map +0 -1
  998. package/esm/models/typesinvoicebillingreason.js +0 -19
  999. package/esm/models/typesinvoicebillingreason.js.map +0 -1
  1000. package/esm/models/typesinvoicecadence.d.ts +0 -12
  1001. package/esm/models/typesinvoicecadence.d.ts.map +0 -1
  1002. package/esm/models/typesinvoicecadence.js +0 -13
  1003. package/esm/models/typesinvoicecadence.js.map +0 -1
  1004. package/esm/models/typesinvoicefilter.d.ts +0 -44
  1005. package/esm/models/typesinvoicefilter.d.ts.map +0 -1
  1006. package/esm/models/typesinvoicefilter.js +0 -45
  1007. package/esm/models/typesinvoicefilter.js.map +0 -1
  1008. package/esm/models/typesinvoicestatus.d.ts +0 -14
  1009. package/esm/models/typesinvoicestatus.d.ts.map +0 -1
  1010. package/esm/models/typesinvoicestatus.js +0 -15
  1011. package/esm/models/typesinvoicestatus.js.map +0 -1
  1012. package/esm/models/typesinvoicetype.d.ts +0 -14
  1013. package/esm/models/typesinvoicetype.d.ts.map +0 -1
  1014. package/esm/models/typesinvoicetype.js +0 -15
  1015. package/esm/models/typesinvoicetype.js.map +0 -1
  1016. package/esm/models/typespaginationresponse.d.ts +0 -8
  1017. package/esm/models/typespaginationresponse.d.ts.map +0 -1
  1018. package/esm/models/typespaginationresponse.js +0 -10
  1019. package/esm/models/typespaginationresponse.js.map +0 -1
  1020. package/esm/models/typespausemode.d.ts +0 -14
  1021. package/esm/models/typespausemode.d.ts.map +0 -1
  1022. package/esm/models/typespausemode.js +0 -15
  1023. package/esm/models/typespausemode.js.map +0 -1
  1024. package/esm/models/typespausestatus.d.ts +0 -18
  1025. package/esm/models/typespausestatus.d.ts.map +0 -1
  1026. package/esm/models/typespausestatus.js +0 -19
  1027. package/esm/models/typespausestatus.js.map +0 -1
  1028. package/esm/models/typespaymentstatus.d.ts +0 -24
  1029. package/esm/models/typespaymentstatus.d.ts.map +0 -1
  1030. package/esm/models/typespaymentstatus.js +0 -25
  1031. package/esm/models/typespaymentstatus.js.map +0 -1
  1032. package/esm/models/typespaymentterms.d.ts +0 -20
  1033. package/esm/models/typespaymentterms.d.ts.map +0 -1
  1034. package/esm/models/typespaymentterms.js +0 -21
  1035. package/esm/models/typespaymentterms.js.map +0 -1
  1036. package/esm/models/typespriceentitytype.d.ts +0 -18
  1037. package/esm/models/typespriceentitytype.d.ts.map +0 -1
  1038. package/esm/models/typespriceentitytype.js +0 -19
  1039. package/esm/models/typespriceentitytype.js.map +0 -1
  1040. package/esm/models/typespricetype.d.ts +0 -12
  1041. package/esm/models/typespricetype.d.ts.map +0 -1
  1042. package/esm/models/typespricetype.js +0 -13
  1043. package/esm/models/typespricetype.js.map +0 -1
  1044. package/esm/models/typespriceunittype.d.ts +0 -12
  1045. package/esm/models/typespriceunittype.d.ts.map +0 -1
  1046. package/esm/models/typespriceunittype.js +0 -13
  1047. package/esm/models/typespriceunittype.js.map +0 -1
  1048. package/esm/models/typesprorationbehavior.d.ts +0 -12
  1049. package/esm/models/typesprorationbehavior.d.ts.map +0 -1
  1050. package/esm/models/typesprorationbehavior.js +0 -13
  1051. package/esm/models/typesprorationbehavior.js.map +0 -1
  1052. package/esm/models/typesresetusage.d.ts +0 -12
  1053. package/esm/models/typesresetusage.d.ts.map +0 -1
  1054. package/esm/models/typesresetusage.js +0 -13
  1055. package/esm/models/typesresetusage.js.map +0 -1
  1056. package/esm/models/typesresumemode.d.ts +0 -14
  1057. package/esm/models/typesresumemode.d.ts.map +0 -1
  1058. package/esm/models/typesresumemode.js +0 -15
  1059. package/esm/models/typesresumemode.js.map +0 -1
  1060. package/esm/models/typesroundtype.d.ts +0 -12
  1061. package/esm/models/typesroundtype.d.ts.map +0 -1
  1062. package/esm/models/typesroundtype.js +0 -13
  1063. package/esm/models/typesroundtype.js.map +0 -1
  1064. package/esm/models/typessortcondition.d.ts +0 -8
  1065. package/esm/models/typessortcondition.d.ts.map +0 -1
  1066. package/esm/models/typessortcondition.js +0 -11
  1067. package/esm/models/typessortcondition.js.map +0 -1
  1068. package/esm/models/typessortdirection.d.ts +0 -12
  1069. package/esm/models/typessortdirection.d.ts.map +0 -1
  1070. package/esm/models/typessortdirection.js +0 -13
  1071. package/esm/models/typessortdirection.js.map +0 -1
  1072. package/esm/models/typesstatus.d.ts +0 -14
  1073. package/esm/models/typesstatus.d.ts.map +0 -1
  1074. package/esm/models/typesstatus.js +0 -15
  1075. package/esm/models/typesstatus.js.map +0 -1
  1076. package/esm/models/typessubscriptionlineitementitytype.d.ts +0 -14
  1077. package/esm/models/typessubscriptionlineitementitytype.d.ts.map +0 -1
  1078. package/esm/models/typessubscriptionlineitementitytype.js +0 -15
  1079. package/esm/models/typessubscriptionlineitementitytype.js.map +0 -1
  1080. package/esm/models/typessubscriptionstatus.d.ts +0 -20
  1081. package/esm/models/typessubscriptionstatus.d.ts.map +0 -1
  1082. package/esm/models/typessubscriptionstatus.js +0 -21
  1083. package/esm/models/typessubscriptionstatus.js.map +0 -1
  1084. package/esm/models/typestaxrateentitytype.d.ts +0 -16
  1085. package/esm/models/typestaxrateentitytype.d.ts.map +0 -1
  1086. package/esm/models/typestaxrateentitytype.js +0 -17
  1087. package/esm/models/typestaxrateentitytype.js.map +0 -1
  1088. package/esm/models/typestaxratescope.d.ts +0 -14
  1089. package/esm/models/typestaxratescope.d.ts.map +0 -1
  1090. package/esm/models/typestaxratescope.js +0 -15
  1091. package/esm/models/typestaxratescope.js.map +0 -1
  1092. package/esm/models/typestaxratestatus.d.ts +0 -12
  1093. package/esm/models/typestaxratestatus.d.ts.map +0 -1
  1094. package/esm/models/typestaxratestatus.js +0 -13
  1095. package/esm/models/typestaxratestatus.js.map +0 -1
  1096. package/esm/models/typestaxratetype.d.ts +0 -12
  1097. package/esm/models/typestaxratetype.d.ts.map +0 -1
  1098. package/esm/models/typestaxratetype.js +0 -13
  1099. package/esm/models/typestaxratetype.js.map +0 -1
  1100. package/esm/models/typeswindowsize.d.ts +0 -28
  1101. package/esm/models/typeswindowsize.d.ts.map +0 -1
  1102. package/esm/models/typeswindowsize.js +0 -29
  1103. package/esm/models/typeswindowsize.js.map +0 -1
  1104. package/src/models/typesaddontype.ts +0 -17
  1105. package/src/models/typesaggregationtype.ts +0 -29
  1106. package/src/models/typesalertcondition.ts +0 -17
  1107. package/src/models/typesalertsettings.ts +0 -24
  1108. package/src/models/typesalertthreshold.ts +0 -20
  1109. package/src/models/typesapplicationstatus.ts +0 -23
  1110. package/src/models/typesbillingcadence.ts +0 -17
  1111. package/src/models/typesbillingcycle.ts +0 -17
  1112. package/src/models/typesbillingmodel.ts +0 -19
  1113. package/src/models/typesbillingperiod.ts +0 -25
  1114. package/src/models/typesbillingtier.ts +0 -17
  1115. package/src/models/typescommitmentinfo.ts +0 -40
  1116. package/src/models/typescommitmenttype.ts +0 -17
  1117. package/src/models/typescouponcadence.ts +0 -19
  1118. package/src/models/typescoupontype.ts +0 -17
  1119. package/src/models/typescreditgrantapplicationreason.ts +0 -21
  1120. package/src/models/typescreditgrantcadence.ts +0 -19
  1121. package/src/models/typescreditgrantexpirydurationunit.ts +0 -23
  1122. package/src/models/typescreditgrantexpirytype.ts +0 -21
  1123. package/src/models/typescreditgrantperiod.ts +0 -25
  1124. package/src/models/typescreditgrantscope.ts +0 -17
  1125. package/src/models/typescustomerfilter.ts +0 -63
  1126. package/src/models/typesdatatype.ts +0 -21
  1127. package/src/models/typesdebugtrackerstatus.ts +0 -23
  1128. package/src/models/typesentitlemententitytype.ts +0 -21
  1129. package/src/models/typesentitlementusageresetperiod.ts +0 -29
  1130. package/src/models/typeseventprocessingstatustype.ts +0 -21
  1131. package/src/models/typesfailurepoint.ts +0 -24
  1132. package/src/models/typesfailurepointtype.ts +0 -21
  1133. package/src/models/typesfeaturetype.ts +0 -19
  1134. package/src/models/typesfiltercondition.ts +0 -29
  1135. package/src/models/typesfilteroperatortype.ts +0 -33
  1136. package/src/models/typesinvoicebillingreason.ts +0 -25
  1137. package/src/models/typesinvoicecadence.ts +0 -17
  1138. package/src/models/typesinvoicefilter.ts +0 -93
  1139. package/src/models/typesinvoicestatus.ts +0 -19
  1140. package/src/models/typesinvoicetype.ts +0 -19
  1141. package/src/models/typespaginationresponse.ts +0 -19
  1142. package/src/models/typespausemode.ts +0 -19
  1143. package/src/models/typespausestatus.ts +0 -23
  1144. package/src/models/typespaymentstatus.ts +0 -29
  1145. package/src/models/typespaymentterms.ts +0 -25
  1146. package/src/models/typespriceentitytype.ts +0 -23
  1147. package/src/models/typespricetype.ts +0 -17
  1148. package/src/models/typespriceunittype.ts +0 -17
  1149. package/src/models/typesprorationbehavior.ts +0 -17
  1150. package/src/models/typesresetusage.ts +0 -17
  1151. package/src/models/typesresumemode.ts +0 -19
  1152. package/src/models/typesroundtype.ts +0 -17
  1153. package/src/models/typessortcondition.ts +0 -20
  1154. package/src/models/typessortdirection.ts +0 -17
  1155. package/src/models/typesstatus.ts +0 -19
  1156. package/src/models/typessubscriptionlineitementitytype.ts +0 -21
  1157. package/src/models/typessubscriptionstatus.ts +0 -27
  1158. package/src/models/typestaxrateentitytype.ts +0 -21
  1159. package/src/models/typestaxratescope.ts +0 -19
  1160. package/src/models/typestaxratestatus.ts +0 -17
  1161. package/src/models/typestaxratetype.ts +0 -17
  1162. package/src/models/typeswindowsize.ts +0 -33
package/bin/mcp-server.js CHANGED
@@ -50418,9 +50418,9 @@ var init_config = __esm(() => {
50418
50418
  SDK_METADATA = {
50419
50419
  language: "typescript",
50420
50420
  openapiDocVersion: "1.0",
50421
- sdkVersion: "0.0.47",
50422
- genVersion: "2.845.1",
50423
- userAgent: "speakeasy-sdk/mcp-typescript 0.0.47 2.845.1 1.0 @omkar273/mcp-temp"
50421
+ sdkVersion: "0.0.52",
50422
+ genVersion: "2.845.5",
50423
+ userAgent: "speakeasy-sdk/mcp-typescript 0.0.52 2.845.5 1.0 @omkar273/mcp-temp"
50424
50424
  };
50425
50425
  });
50426
50426
 
@@ -52071,11 +52071,11 @@ Use when removing a customer (e.g. GDPR or churn). Returns 204 No Content on suc
52071
52071
  };
52072
52072
  });
52073
52073
 
52074
- // src/models/typesstatus.ts
52075
- var TypesStatus$zodSchema;
52076
- var init_typesstatus = __esm(() => {
52074
+ // src/models/status.ts
52075
+ var Status$zodSchema;
52076
+ var init_status = __esm(() => {
52077
52077
  init_zod();
52078
- TypesStatus$zodSchema = _enum([
52078
+ Status$zodSchema = _enum([
52079
52079
  "published",
52080
52080
  "deleted",
52081
52081
  "archived"
@@ -52086,7 +52086,7 @@ var init_typesstatus = __esm(() => {
52086
52086
  var DtoCustomerResponse$zodSchema;
52087
52087
  var init_dtocustomerresponse = __esm(() => {
52088
52088
  init_zod();
52089
- init_typesstatus();
52089
+ init_status();
52090
52090
  DtoCustomerResponse$zodSchema = object({
52091
52091
  address_city: string2().optional(),
52092
52092
  address_country: string2().optional(),
@@ -52104,7 +52104,7 @@ var init_dtocustomerresponse = __esm(() => {
52104
52104
  name: string2().optional(),
52105
52105
  parent_customer: lazy(() => DtoCustomerResponse$zodSchema).optional(),
52106
52106
  parent_customer_id: string2().optional(),
52107
- status: TypesStatus$zodSchema.optional(),
52107
+ status: Status$zodSchema.optional(),
52108
52108
  tenant_id: string2().optional(),
52109
52109
  updated_at: string2().optional(),
52110
52110
  updated_by: string2().optional()
@@ -52388,11 +52388,11 @@ Use when resolving a customer by your app's id (e.g. from your user table). Idea
52388
52388
  };
52389
52389
  });
52390
52390
 
52391
- // src/models/typesentitlementusageresetperiod.ts
52392
- var TypesEntitlementUsageResetPeriod$zodSchema;
52393
- var init_typesentitlementusageresetperiod = __esm(() => {
52391
+ // src/models/entitlementusageresetperiod.ts
52392
+ var EntitlementUsageResetPeriod$zodSchema;
52393
+ var init_entitlementusageresetperiod = __esm(() => {
52394
52394
  init_zod();
52395
- TypesEntitlementUsageResetPeriod$zodSchema = _enum([
52395
+ EntitlementUsageResetPeriod$zodSchema = _enum([
52396
52396
  "MONTHLY",
52397
52397
  "ANNUAL",
52398
52398
  "WEEKLY",
@@ -52407,16 +52407,30 @@ var init_typesentitlementusageresetperiod = __esm(() => {
52407
52407
  var DtoAggregatedEntitlement$zodSchema;
52408
52408
  var init_dtoaggregatedentitlement = __esm(() => {
52409
52409
  init_zod();
52410
- init_typesentitlementusageresetperiod();
52410
+ init_entitlementusageresetperiod();
52411
52411
  DtoAggregatedEntitlement$zodSchema = object({
52412
52412
  is_enabled: boolean2().optional(),
52413
52413
  is_soft_limit: boolean2().optional(),
52414
52414
  static_values: array(string2()).optional(),
52415
52415
  usage_limit: int().optional(),
52416
- usage_reset_period: TypesEntitlementUsageResetPeriod$zodSchema.optional()
52416
+ usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional()
52417
52417
  });
52418
52418
  });
52419
52419
 
52420
+ // src/models/billingperiod.ts
52421
+ var BillingPeriod$zodSchema;
52422
+ var init_billingperiod = __esm(() => {
52423
+ init_zod();
52424
+ BillingPeriod$zodSchema = _enum([
52425
+ "MONTHLY",
52426
+ "ANNUAL",
52427
+ "WEEKLY",
52428
+ "DAILY",
52429
+ "QUARTERLY",
52430
+ "HALF_YEARLY"
52431
+ ]);
52432
+ });
52433
+
52420
52434
  // src/models/dtoentitlementsourceentitytype.ts
52421
52435
  var DtoEntitlementSourceEntityType$zodSchema;
52422
52436
  var init_dtoentitlementsourceentitytype = __esm(() => {
@@ -52428,26 +52442,12 @@ var init_dtoentitlementsourceentitytype = __esm(() => {
52428
52442
  ]);
52429
52443
  });
52430
52444
 
52431
- // src/models/typesbillingperiod.ts
52432
- var TypesBillingPeriod$zodSchema;
52433
- var init_typesbillingperiod = __esm(() => {
52434
- init_zod();
52435
- TypesBillingPeriod$zodSchema = _enum([
52436
- "MONTHLY",
52437
- "ANNUAL",
52438
- "WEEKLY",
52439
- "DAILY",
52440
- "QUARTERLY",
52441
- "HALF_YEARLY"
52442
- ]);
52443
- });
52444
-
52445
52445
  // src/models/dtoentitlementsource.ts
52446
52446
  var DtoEntitlementSource$zodSchema;
52447
52447
  var init_dtoentitlementsource = __esm(() => {
52448
52448
  init_zod();
52449
+ init_billingperiod();
52449
52450
  init_dtoentitlementsourceentitytype();
52450
- init_typesbillingperiod();
52451
52451
  DtoEntitlementSource$zodSchema = object({
52452
52452
  entitlement_id: string2().optional(),
52453
52453
  entity_id: string2().optional(),
@@ -52458,15 +52458,49 @@ var init_dtoentitlementsource = __esm(() => {
52458
52458
  static_value: string2().optional(),
52459
52459
  subscription_id: string2().optional(),
52460
52460
  usage_limit: int().optional(),
52461
- usage_reset_period: TypesBillingPeriod$zodSchema.optional()
52461
+ usage_reset_period: BillingPeriod$zodSchema.optional()
52462
+ });
52463
+ });
52464
+
52465
+ // src/models/alertcondition.ts
52466
+ var AlertCondition$zodSchema;
52467
+ var init_alertcondition = __esm(() => {
52468
+ init_zod();
52469
+ AlertCondition$zodSchema = _enum([
52470
+ "above",
52471
+ "below"
52472
+ ]);
52473
+ });
52474
+
52475
+ // src/models/alertthreshold.ts
52476
+ var AlertThreshold$zodSchema;
52477
+ var init_alertthreshold = __esm(() => {
52478
+ init_zod();
52479
+ init_alertcondition();
52480
+ AlertThreshold$zodSchema = object({
52481
+ condition: AlertCondition$zodSchema.optional(),
52482
+ threshold: number2().optional()
52483
+ });
52484
+ });
52485
+
52486
+ // src/models/alertsettings.ts
52487
+ var AlertSettings$zodSchema;
52488
+ var init_alertsettings = __esm(() => {
52489
+ init_zod();
52490
+ init_alertthreshold();
52491
+ AlertSettings$zodSchema = object({
52492
+ alert_enabled: boolean2().optional(),
52493
+ critical: AlertThreshold$zodSchema.optional(),
52494
+ info: AlertThreshold$zodSchema.optional(),
52495
+ warning: AlertThreshold$zodSchema.optional()
52462
52496
  });
52463
52497
  });
52464
52498
 
52465
- // src/models/typesaggregationtype.ts
52466
- var TypesAggregationType$zodSchema;
52467
- var init_typesaggregationtype = __esm(() => {
52499
+ // src/models/aggregationtype.ts
52500
+ var AggregationType$zodSchema;
52501
+ var init_aggregationtype = __esm(() => {
52468
52502
  init_zod();
52469
- TypesAggregationType$zodSchema = _enum([
52503
+ AggregationType$zodSchema = _enum([
52470
52504
  "COUNT",
52471
52505
  "SUM",
52472
52506
  "AVG",
@@ -52478,11 +52512,11 @@ var init_typesaggregationtype = __esm(() => {
52478
52512
  ]);
52479
52513
  });
52480
52514
 
52481
- // src/models/typeswindowsize.ts
52482
- var TypesWindowSize$zodSchema;
52483
- var init_typeswindowsize = __esm(() => {
52515
+ // src/models/windowsize.ts
52516
+ var WindowSize$zodSchema;
52517
+ var init_windowsize = __esm(() => {
52484
52518
  init_zod();
52485
- TypesWindowSize$zodSchema = _enum([
52519
+ WindowSize$zodSchema = _enum([
52486
52520
  "MINUTE",
52487
52521
  "15MIN",
52488
52522
  "30MIN",
@@ -52500,14 +52534,14 @@ var init_typeswindowsize = __esm(() => {
52500
52534
  var MeterAggregation$zodSchema;
52501
52535
  var init_meteraggregation = __esm(() => {
52502
52536
  init_zod();
52503
- init_typesaggregationtype();
52504
- init_typeswindowsize();
52537
+ init_aggregationtype();
52538
+ init_windowsize();
52505
52539
  MeterAggregation$zodSchema = object({
52506
- bucket_size: TypesWindowSize$zodSchema.optional(),
52540
+ bucket_size: WindowSize$zodSchema.optional(),
52507
52541
  field: string2().optional(),
52508
52542
  group_by: string2().optional(),
52509
52543
  multiplier: string2().optional(),
52510
- type: TypesAggregationType$zodSchema.optional()
52544
+ type: AggregationType$zodSchema.optional()
52511
52545
  });
52512
52546
  });
52513
52547
 
@@ -52521,11 +52555,11 @@ var init_meterfilter = __esm(() => {
52521
52555
  });
52522
52556
  });
52523
52557
 
52524
- // src/models/typesresetusage.ts
52525
- var TypesResetUsage$zodSchema;
52526
- var init_typesresetusage = __esm(() => {
52558
+ // src/models/resetusage.ts
52559
+ var ResetUsage$zodSchema;
52560
+ var init_resetusage = __esm(() => {
52527
52561
  init_zod();
52528
- TypesResetUsage$zodSchema = _enum([
52562
+ ResetUsage$zodSchema = _enum([
52529
52563
  "BILLING_PERIOD",
52530
52564
  "NEVER"
52531
52565
  ]);
@@ -52537,7 +52571,7 @@ var init_dtometerresponse = __esm(() => {
52537
52571
  init_zod();
52538
52572
  init_meteraggregation();
52539
52573
  init_meterfilter();
52540
- init_typesresetusage();
52574
+ init_resetusage();
52541
52575
  DtoMeterResponse$zodSchema = object({
52542
52576
  aggregation: MeterAggregation$zodSchema.optional(),
52543
52577
  created_at: string2().optional(),
@@ -52545,52 +52579,18 @@ var init_dtometerresponse = __esm(() => {
52545
52579
  filters: array(MeterFilter$zodSchema).optional(),
52546
52580
  id: string2().optional(),
52547
52581
  name: string2().optional(),
52548
- reset_usage: TypesResetUsage$zodSchema.optional(),
52582
+ reset_usage: ResetUsage$zodSchema.optional(),
52549
52583
  status: string2().optional(),
52550
52584
  tenant_id: string2().optional(),
52551
52585
  updated_at: string2().optional()
52552
52586
  });
52553
52587
  });
52554
52588
 
52555
- // src/models/typesalertcondition.ts
52556
- var TypesAlertCondition$zodSchema;
52557
- var init_typesalertcondition = __esm(() => {
52558
- init_zod();
52559
- TypesAlertCondition$zodSchema = _enum([
52560
- "above",
52561
- "below"
52562
- ]);
52563
- });
52564
-
52565
- // src/models/typesalertthreshold.ts
52566
- var TypesAlertThreshold$zodSchema;
52567
- var init_typesalertthreshold = __esm(() => {
52568
- init_zod();
52569
- init_typesalertcondition();
52570
- TypesAlertThreshold$zodSchema = object({
52571
- condition: TypesAlertCondition$zodSchema.optional(),
52572
- threshold: number2().optional()
52573
- });
52574
- });
52575
-
52576
- // src/models/typesalertsettings.ts
52577
- var TypesAlertSettings$zodSchema;
52578
- var init_typesalertsettings = __esm(() => {
52579
- init_zod();
52580
- init_typesalertthreshold();
52581
- TypesAlertSettings$zodSchema = object({
52582
- alert_enabled: boolean2().optional(),
52583
- critical: TypesAlertThreshold$zodSchema.optional(),
52584
- info: TypesAlertThreshold$zodSchema.optional(),
52585
- warning: TypesAlertThreshold$zodSchema.optional()
52586
- });
52587
- });
52588
-
52589
- // src/models/typesfeaturetype.ts
52590
- var TypesFeatureType$zodSchema;
52591
- var init_typesfeaturetype = __esm(() => {
52589
+ // src/models/featuretype.ts
52590
+ var FeatureType$zodSchema;
52591
+ var init_featuretype = __esm(() => {
52592
52592
  init_zod();
52593
- TypesFeatureType$zodSchema = _enum([
52593
+ FeatureType$zodSchema = _enum([
52594
52594
  "metered",
52595
52595
  "boolean",
52596
52596
  "static"
@@ -52601,12 +52601,12 @@ var init_typesfeaturetype = __esm(() => {
52601
52601
  var DtoFeatureResponse$zodSchema;
52602
52602
  var init_dtofeatureresponse = __esm(() => {
52603
52603
  init_zod();
52604
+ init_alertsettings();
52604
52605
  init_dtometerresponse();
52605
- init_typesalertsettings();
52606
- init_typesfeaturetype();
52607
- init_typesstatus();
52606
+ init_featuretype();
52607
+ init_status();
52608
52608
  DtoFeatureResponse$zodSchema = object({
52609
- alert_settings: TypesAlertSettings$zodSchema.optional(),
52609
+ alert_settings: AlertSettings$zodSchema.optional(),
52610
52610
  created_at: string2().optional(),
52611
52611
  created_by: string2().optional(),
52612
52612
  description: string2().optional(),
@@ -52617,9 +52617,9 @@ var init_dtofeatureresponse = __esm(() => {
52617
52617
  meter: DtoMeterResponse$zodSchema.optional(),
52618
52618
  meter_id: string2().optional(),
52619
52619
  name: string2().optional(),
52620
- status: TypesStatus$zodSchema.optional(),
52620
+ status: Status$zodSchema.optional(),
52621
52621
  tenant_id: string2().optional(),
52622
- type: TypesFeatureType$zodSchema.optional(),
52622
+ type: FeatureType$zodSchema.optional(),
52623
52623
  unit_plural: string2().optional(),
52624
52624
  unit_singular: string2().optional(),
52625
52625
  updated_at: string2().optional(),
@@ -52780,11 +52780,11 @@ Use when checking what a customer can access (e.g. feature gating or usage limit
52780
52780
  };
52781
52781
  });
52782
52782
 
52783
- // src/models/typesapplicationstatus.ts
52784
- var TypesApplicationStatus$zodSchema;
52785
- var init_typesapplicationstatus = __esm(() => {
52783
+ // src/models/applicationstatus.ts
52784
+ var ApplicationStatus$zodSchema;
52785
+ var init_applicationstatus = __esm(() => {
52786
52786
  init_zod();
52787
- TypesApplicationStatus$zodSchema = _enum([
52787
+ ApplicationStatus$zodSchema = _enum([
52788
52788
  "applied",
52789
52789
  "failed",
52790
52790
  "pending",
@@ -52793,22 +52793,22 @@ var init_typesapplicationstatus = __esm(() => {
52793
52793
  ]);
52794
52794
  });
52795
52795
 
52796
- // src/models/typescreditgrantapplicationreason.ts
52797
- var TypesCreditGrantApplicationReason$zodSchema;
52798
- var init_typescreditgrantapplicationreason = __esm(() => {
52796
+ // src/models/creditgrantapplicationreason.ts
52797
+ var CreditGrantApplicationReason$zodSchema;
52798
+ var init_creditgrantapplicationreason = __esm(() => {
52799
52799
  init_zod();
52800
- TypesCreditGrantApplicationReason$zodSchema = _enum([
52800
+ CreditGrantApplicationReason$zodSchema = _enum([
52801
52801
  "first_time_recurring_credit_grant",
52802
52802
  "recurring_credit_grant",
52803
52803
  "onetime_credit_grant"
52804
52804
  ]);
52805
52805
  });
52806
52806
 
52807
- // src/models/typessubscriptionstatus.ts
52808
- var TypesSubscriptionStatus$zodSchema;
52809
- var init_typessubscriptionstatus = __esm(() => {
52807
+ // src/models/subscriptionstatus.ts
52808
+ var SubscriptionStatus$zodSchema;
52809
+ var init_subscriptionstatus = __esm(() => {
52810
52810
  init_zod();
52811
- TypesSubscriptionStatus$zodSchema = _enum([
52811
+ SubscriptionStatus$zodSchema = _enum([
52812
52812
  "active",
52813
52813
  "paused",
52814
52814
  "cancelled",
@@ -52822,13 +52822,13 @@ var init_typessubscriptionstatus = __esm(() => {
52822
52822
  var DtoCreditGrantApplicationResponse$zodSchema;
52823
52823
  var init_dtocreditgrantapplicationresponse = __esm(() => {
52824
52824
  init_zod();
52825
- init_typesapplicationstatus();
52826
- init_typescreditgrantapplicationreason();
52827
- init_typesstatus();
52828
- init_typessubscriptionstatus();
52825
+ init_applicationstatus();
52826
+ init_creditgrantapplicationreason();
52827
+ init_status();
52828
+ init_subscriptionstatus();
52829
52829
  DtoCreditGrantApplicationResponse$zodSchema = object({
52830
- application_reason: TypesCreditGrantApplicationReason$zodSchema.optional(),
52831
- application_status: TypesApplicationStatus$zodSchema.optional(),
52830
+ application_reason: CreditGrantApplicationReason$zodSchema.optional(),
52831
+ application_status: ApplicationStatus$zodSchema.optional(),
52832
52832
  applied_at: string2().optional(),
52833
52833
  created_at: string2().optional(),
52834
52834
  created_by: string2().optional(),
@@ -52843,20 +52843,20 @@ var init_dtocreditgrantapplicationresponse = __esm(() => {
52843
52843
  period_start: string2().optional(),
52844
52844
  retry_count: int().optional(),
52845
52845
  scheduled_for: string2().optional(),
52846
- status: TypesStatus$zodSchema.optional(),
52846
+ status: Status$zodSchema.optional(),
52847
52847
  subscription_id: string2().optional(),
52848
- subscription_status_at_application: TypesSubscriptionStatus$zodSchema.optional(),
52848
+ subscription_status_at_application: SubscriptionStatus$zodSchema.optional(),
52849
52849
  tenant_id: string2().optional(),
52850
52850
  updated_at: string2().optional(),
52851
52851
  updated_by: string2().optional()
52852
52852
  });
52853
52853
  });
52854
52854
 
52855
- // src/models/typespaginationresponse.ts
52856
- var TypesPaginationResponse$zodSchema;
52857
- var init_typespaginationresponse = __esm(() => {
52855
+ // src/models/paginationresponse.ts
52856
+ var PaginationResponse$zodSchema;
52857
+ var init_paginationresponse = __esm(() => {
52858
52858
  init_zod();
52859
- TypesPaginationResponse$zodSchema = object({
52859
+ PaginationResponse$zodSchema = object({
52860
52860
  limit: int().optional(),
52861
52861
  offset: int().optional(),
52862
52862
  total: int().optional()
@@ -52868,10 +52868,10 @@ var DtoListCreditGrantApplicationsResponse$zodSchema;
52868
52868
  var init_dtolistcreditgrantapplicationsresponse = __esm(() => {
52869
52869
  init_zod();
52870
52870
  init_dtocreditgrantapplicationresponse();
52871
- init_typespaginationresponse();
52871
+ init_paginationresponse();
52872
52872
  DtoListCreditGrantApplicationsResponse$zodSchema = object({
52873
52873
  items: array(DtoCreditGrantApplicationResponse$zodSchema).optional(),
52874
- pagination: TypesPaginationResponse$zodSchema.optional()
52874
+ pagination: PaginationResponse$zodSchema.optional()
52875
52875
  });
52876
52876
  });
52877
52877
 
@@ -53039,11 +53039,11 @@ var init_dtocustomerusagesummaryresponse = __esm(() => {
53039
53039
  init_zod();
53040
53040
  init_dtobillingperiodinfo();
53041
53041
  init_dtofeatureusagesummary();
53042
- init_typespaginationresponse();
53042
+ init_paginationresponse();
53043
53043
  DtoCustomerUsageSummaryResponse$zodSchema = object({
53044
53044
  customer_id: string2().optional(),
53045
53045
  features: array(DtoFeatureUsageSummary$zodSchema).optional(),
53046
- pagination: TypesPaginationResponse$zodSchema.optional(),
53046
+ pagination: PaginationResponse$zodSchema.optional(),
53047
53047
  period: DtoBillingPeriodInfo$zodSchema.optional()
53048
53048
  });
53049
53049
  });
@@ -53183,24 +53183,11 @@ Use when showing a customer's usage (e.g. portal or overage alerts). Identify by
53183
53183
  };
53184
53184
  });
53185
53185
 
53186
- // src/models/githubcomflexpriceflexpriceinternaltypesvalue.ts
53187
- var GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema;
53188
- var init_githubcomflexpriceflexpriceinternaltypesvalue = __esm(() => {
53189
- init_zod();
53190
- GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema = object({
53191
- array: array(string2()).optional(),
53192
- boolean: boolean2().optional(),
53193
- date: string2().optional(),
53194
- number: number2().optional(),
53195
- string: string2().optional()
53196
- });
53197
- });
53198
-
53199
- // src/models/typesdatatype.ts
53200
- var TypesDataType$zodSchema;
53201
- var init_typesdatatype = __esm(() => {
53186
+ // src/models/datatype.ts
53187
+ var DataType$zodSchema;
53188
+ var init_datatype = __esm(() => {
53202
53189
  init_zod();
53203
- TypesDataType$zodSchema = _enum([
53190
+ DataType$zodSchema = _enum([
53204
53191
  "string",
53205
53192
  "number",
53206
53193
  "date",
@@ -53208,11 +53195,11 @@ var init_typesdatatype = __esm(() => {
53208
53195
  ]);
53209
53196
  });
53210
53197
 
53211
- // src/models/typesfilteroperatortype.ts
53212
- var TypesFilterOperatorType$zodSchema;
53213
- var init_typesfilteroperatortype = __esm(() => {
53198
+ // src/models/filteroperatortype.ts
53199
+ var FilterOperatorType$zodSchema;
53200
+ var init_filteroperatortype = __esm(() => {
53214
53201
  init_zod();
53215
- TypesFilterOperatorType$zodSchema = _enum([
53202
+ FilterOperatorType$zodSchema = _enum([
53216
53203
  "eq",
53217
53204
  "contains",
53218
53205
  "not_contains",
@@ -53225,68 +53212,81 @@ var init_typesfilteroperatortype = __esm(() => {
53225
53212
  ]);
53226
53213
  });
53227
53214
 
53228
- // src/models/typesfiltercondition.ts
53229
- var TypesFilterCondition$zodSchema;
53230
- var init_typesfiltercondition = __esm(() => {
53215
+ // src/models/githubcomflexpriceflexpriceinternaltypesvalue.ts
53216
+ var GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema;
53217
+ var init_githubcomflexpriceflexpriceinternaltypesvalue = __esm(() => {
53218
+ init_zod();
53219
+ GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema = object({
53220
+ array: array(string2()).optional(),
53221
+ boolean: boolean2().optional(),
53222
+ date: string2().optional(),
53223
+ number: number2().optional(),
53224
+ string: string2().optional()
53225
+ });
53226
+ });
53227
+
53228
+ // src/models/filtercondition.ts
53229
+ var FilterCondition$zodSchema;
53230
+ var init_filtercondition = __esm(() => {
53231
53231
  init_zod();
53232
+ init_datatype();
53233
+ init_filteroperatortype();
53232
53234
  init_githubcomflexpriceflexpriceinternaltypesvalue();
53233
- init_typesdatatype();
53234
- init_typesfilteroperatortype();
53235
- TypesFilterCondition$zodSchema = object({
53236
- data_type: TypesDataType$zodSchema.optional(),
53235
+ FilterCondition$zodSchema = object({
53236
+ data_type: DataType$zodSchema.optional(),
53237
53237
  field: string2().optional(),
53238
- operator: TypesFilterOperatorType$zodSchema.optional(),
53238
+ operator: FilterOperatorType$zodSchema.optional(),
53239
53239
  value: GithubComFlexpriceFlexpriceInternalTypesValue$zodSchema.optional()
53240
53240
  });
53241
53241
  });
53242
53242
 
53243
- // src/models/typessortdirection.ts
53244
- var TypesSortDirection$zodSchema;
53245
- var init_typessortdirection = __esm(() => {
53243
+ // src/models/sortdirection.ts
53244
+ var SortDirection$zodSchema;
53245
+ var init_sortdirection = __esm(() => {
53246
53246
  init_zod();
53247
- TypesSortDirection$zodSchema = _enum([
53247
+ SortDirection$zodSchema = _enum([
53248
53248
  "asc",
53249
53249
  "desc"
53250
53250
  ]);
53251
53251
  });
53252
53252
 
53253
- // src/models/typessortcondition.ts
53254
- var TypesSortCondition$zodSchema;
53255
- var init_typessortcondition = __esm(() => {
53253
+ // src/models/sortcondition.ts
53254
+ var SortCondition$zodSchema;
53255
+ var init_sortcondition = __esm(() => {
53256
53256
  init_zod();
53257
- init_typessortdirection();
53258
- TypesSortCondition$zodSchema = object({
53259
- direction: TypesSortDirection$zodSchema.optional(),
53257
+ init_sortdirection();
53258
+ SortCondition$zodSchema = object({
53259
+ direction: SortDirection$zodSchema.optional(),
53260
53260
  field: string2().optional()
53261
53261
  });
53262
53262
  });
53263
53263
 
53264
- // src/models/typescustomerfilter.ts
53265
- var TypesCustomerFilterOrder$zodSchema, TypesCustomerFilter$zodSchema;
53266
- var init_typescustomerfilter = __esm(() => {
53264
+ // src/models/customerfilter.ts
53265
+ var CustomerFilterOrder$zodSchema, CustomerFilter$zodSchema;
53266
+ var init_customerfilter = __esm(() => {
53267
53267
  init_zod();
53268
- init_typesfiltercondition();
53269
- init_typessortcondition();
53270
- init_typesstatus();
53271
- TypesCustomerFilterOrder$zodSchema = _enum([
53268
+ init_filtercondition();
53269
+ init_sortcondition();
53270
+ init_status();
53271
+ CustomerFilterOrder$zodSchema = _enum([
53272
53272
  "asc",
53273
53273
  "desc"
53274
53274
  ]);
53275
- TypesCustomerFilter$zodSchema = object({
53275
+ CustomerFilter$zodSchema = object({
53276
53276
  customer_ids: array(string2()).optional(),
53277
53277
  email: string2().optional(),
53278
53278
  end_time: string2().optional(),
53279
53279
  expand: string2().optional(),
53280
53280
  external_id: string2().optional(),
53281
53281
  external_ids: array(string2()).optional(),
53282
- filters: array(TypesFilterCondition$zodSchema).optional(),
53282
+ filters: array(FilterCondition$zodSchema).optional(),
53283
53283
  limit: int().optional(),
53284
53284
  offset: int().optional(),
53285
- order: TypesCustomerFilterOrder$zodSchema.optional(),
53285
+ order: CustomerFilterOrder$zodSchema.optional(),
53286
53286
  parent_customer_ids: array(string2()).optional(),
53287
- sort: array(TypesSortCondition$zodSchema).optional(),
53287
+ sort: array(SortCondition$zodSchema).optional(),
53288
53288
  start_time: string2().optional(),
53289
- status: TypesStatus$zodSchema.optional()
53289
+ status: Status$zodSchema.optional()
53290
53290
  });
53291
53291
  });
53292
53292
 
@@ -53295,7 +53295,7 @@ function customersQueryCustomer(client$, request, options) {
53295
53295
  return new APIPromise($do8(client$, request, options));
53296
53296
  }
53297
53297
  async function $do8(client$, request, options) {
53298
- const parsed$ = safeParse4(request, (value$) => TypesCustomerFilter$zodSchema.parse(value$), "Input validation failed");
53298
+ const parsed$ = safeParse4(request, (value$) => CustomerFilter$zodSchema.parse(value$), "Input validation failed");
53299
53299
  if (!parsed$.ok) {
53300
53300
  return [parsed$, { status: "invalid" }];
53301
53301
  }
@@ -53359,7 +53359,7 @@ var init_customersQueryCustomer = __esm(() => {
53359
53359
  init_schemas4();
53360
53360
  init_security();
53361
53361
  init_url();
53362
- init_typescustomerfilter();
53362
+ init_customerfilter();
53363
53363
  init_async();
53364
53364
  });
53365
53365
 
@@ -53367,10 +53367,10 @@ var init_customersQueryCustomer = __esm(() => {
53367
53367
  var args8, tool$customersQueryCustomer;
53368
53368
  var init_customersQueryCustomer2 = __esm(() => {
53369
53369
  init_customersQueryCustomer();
53370
- init_typescustomerfilter();
53370
+ init_customerfilter();
53371
53371
  init_tools();
53372
53372
  args8 = {
53373
- request: TypesCustomerFilter$zodSchema
53373
+ request: CustomerFilter$zodSchema
53374
53374
  };
53375
53375
  tool$customersQueryCustomer = {
53376
53376
  name: "query-customer",
@@ -53551,11 +53551,23 @@ Use when updating customer details (e.g. name, email, or metadata). Identify by
53551
53551
  };
53552
53552
  });
53553
53553
 
53554
+ // src/models/debugtrackerstatus.ts
53555
+ var DebugTrackerStatus$zodSchema;
53556
+ var init_debugtrackerstatus = __esm(() => {
53557
+ init_zod();
53558
+ DebugTrackerStatus$zodSchema = _enum([
53559
+ "unprocessed",
53560
+ "not_found",
53561
+ "found",
53562
+ "error"
53563
+ ]);
53564
+ });
53565
+
53554
53566
  // src/models/githubcomflexpriceflexpriceinternaldomaincustomercustomer.ts
53555
53567
  var GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema;
53556
53568
  var init_githubcomflexpriceflexpriceinternaldomaincustomercustomer = __esm(() => {
53557
53569
  init_zod();
53558
- init_typesstatus();
53570
+ init_status();
53559
53571
  GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema = object({
53560
53572
  address_city: string2().optional(),
53561
53573
  address_country: string2().optional(),
@@ -53572,36 +53584,24 @@ var init_githubcomflexpriceflexpriceinternaldomaincustomercustomer = __esm(() =>
53572
53584
  metadata: record(string2(), string2()).optional(),
53573
53585
  name: string2().optional(),
53574
53586
  parent_customer_id: string2().optional(),
53575
- status: TypesStatus$zodSchema.optional(),
53587
+ status: Status$zodSchema.optional(),
53576
53588
  tenant_id: string2().optional(),
53577
53589
  updated_at: string2().optional(),
53578
53590
  updated_by: string2().optional()
53579
53591
  });
53580
53592
  });
53581
53593
 
53582
- // src/models/typesdebugtrackerstatus.ts
53583
- var TypesDebugTrackerStatus$zodSchema;
53584
- var init_typesdebugtrackerstatus = __esm(() => {
53585
- init_zod();
53586
- TypesDebugTrackerStatus$zodSchema = _enum([
53587
- "unprocessed",
53588
- "not_found",
53589
- "found",
53590
- "error"
53591
- ]);
53592
- });
53593
-
53594
53594
  // src/models/dtocustomerlookupresult.ts
53595
53595
  var DtoCustomerLookupResult$zodSchema;
53596
53596
  var init_dtocustomerlookupresult = __esm(() => {
53597
53597
  init_zod();
53598
+ init_debugtrackerstatus();
53598
53599
  init_errorserrorresponse();
53599
53600
  init_githubcomflexpriceflexpriceinternaldomaincustomercustomer();
53600
- init_typesdebugtrackerstatus();
53601
53601
  DtoCustomerLookupResult$zodSchema = object({
53602
53602
  customer: GithubComFlexpriceFlexpriceInternalDomainCustomerCustomer$zodSchema.optional(),
53603
53603
  error: ErrorsErrorResponse$zodSchema.optional(),
53604
- status: TypesDebugTrackerStatus$zodSchema.optional()
53604
+ status: DebugTrackerStatus$zodSchema.optional()
53605
53605
  });
53606
53606
  });
53607
53607
 
@@ -53611,8 +53611,8 @@ var init_metermeter = __esm(() => {
53611
53611
  init_zod();
53612
53612
  init_meteraggregation();
53613
53613
  init_meterfilter();
53614
- init_typesresetusage();
53615
- init_typesstatus();
53614
+ init_resetusage();
53615
+ init_status();
53616
53616
  MeterMeter$zodSchema = object({
53617
53617
  aggregation: MeterAggregation$zodSchema.optional(),
53618
53618
  created_at: string2().optional(),
@@ -53622,8 +53622,8 @@ var init_metermeter = __esm(() => {
53622
53622
  filters: array(MeterFilter$zodSchema).optional(),
53623
53623
  id: string2().optional(),
53624
53624
  name: string2().optional(),
53625
- reset_usage: TypesResetUsage$zodSchema.optional(),
53626
- status: TypesStatus$zodSchema.optional(),
53625
+ reset_usage: ResetUsage$zodSchema.optional(),
53626
+ status: Status$zodSchema.optional(),
53627
53627
  tenant_id: string2().optional(),
53628
53628
  updated_at: string2().optional(),
53629
53629
  updated_by: string2().optional()
@@ -53646,94 +53646,62 @@ var init_dtomatchedmeter = __esm(() => {
53646
53646
  var DtoMeterMatchingResult$zodSchema;
53647
53647
  var init_dtometermatchingresult = __esm(() => {
53648
53648
  init_zod();
53649
+ init_debugtrackerstatus();
53649
53650
  init_dtomatchedmeter();
53650
53651
  init_errorserrorresponse();
53651
- init_typesdebugtrackerstatus();
53652
53652
  DtoMeterMatchingResult$zodSchema = object({
53653
53653
  error: ErrorsErrorResponse$zodSchema.optional(),
53654
53654
  matched_meters: array(DtoMatchedMeter$zodSchema).optional(),
53655
- status: TypesDebugTrackerStatus$zodSchema.optional()
53656
- });
53657
- });
53658
-
53659
- // src/models/typesroundtype.ts
53660
- var TypesRoundType$zodSchema;
53661
- var init_typesroundtype = __esm(() => {
53662
- init_zod();
53663
- TypesRoundType$zodSchema = _enum([
53664
- "up",
53665
- "down"
53666
- ]);
53667
- });
53668
-
53669
- // src/models/pricejsonbtransformquantity.ts
53670
- var PriceJSONBTransformQuantity$zodSchema;
53671
- var init_pricejsonbtransformquantity = __esm(() => {
53672
- init_zod();
53673
- init_typesroundtype();
53674
- PriceJSONBTransformQuantity$zodSchema = object({
53675
- divide_by: int().optional(),
53676
- round: TypesRoundType$zodSchema.optional()
53677
- });
53678
- });
53679
-
53680
- // src/models/pricepricetier.ts
53681
- var PricePriceTier$zodSchema;
53682
- var init_pricepricetier = __esm(() => {
53683
- init_zod();
53684
- PricePriceTier$zodSchema = object({
53685
- flat_amount: string2().optional(),
53686
- unit_amount: string2().optional(),
53687
- up_to: int().optional()
53655
+ status: DebugTrackerStatus$zodSchema.optional()
53688
53656
  });
53689
53657
  });
53690
53658
 
53691
- // src/models/typesbillingcadence.ts
53692
- var TypesBillingCadence$zodSchema;
53693
- var init_typesbillingcadence = __esm(() => {
53659
+ // src/models/billingcadence.ts
53660
+ var BillingCadence$zodSchema;
53661
+ var init_billingcadence = __esm(() => {
53694
53662
  init_zod();
53695
- TypesBillingCadence$zodSchema = _enum([
53663
+ BillingCadence$zodSchema = _enum([
53696
53664
  "RECURRING",
53697
53665
  "ONETIME"
53698
53666
  ]);
53699
53667
  });
53700
53668
 
53701
- // src/models/typesbillingmodel.ts
53702
- var TypesBillingModel$zodSchema;
53703
- var init_typesbillingmodel = __esm(() => {
53669
+ // src/models/billingmodel.ts
53670
+ var BillingModel$zodSchema;
53671
+ var init_billingmodel = __esm(() => {
53704
53672
  init_zod();
53705
- TypesBillingModel$zodSchema = _enum([
53673
+ BillingModel$zodSchema = _enum([
53706
53674
  "FLAT_FEE",
53707
53675
  "PACKAGE",
53708
53676
  "TIERED"
53709
53677
  ]);
53710
53678
  });
53711
53679
 
53712
- // src/models/typesbillingtier.ts
53713
- var TypesBillingTier$zodSchema;
53714
- var init_typesbillingtier = __esm(() => {
53680
+ // src/models/billingtier.ts
53681
+ var BillingTier$zodSchema;
53682
+ var init_billingtier = __esm(() => {
53715
53683
  init_zod();
53716
- TypesBillingTier$zodSchema = _enum([
53684
+ BillingTier$zodSchema = _enum([
53717
53685
  "VOLUME",
53718
53686
  "SLAB"
53719
53687
  ]);
53720
53688
  });
53721
53689
 
53722
- // src/models/typesinvoicecadence.ts
53723
- var TypesInvoiceCadence$zodSchema;
53724
- var init_typesinvoicecadence = __esm(() => {
53690
+ // src/models/invoicecadence.ts
53691
+ var InvoiceCadence$zodSchema;
53692
+ var init_invoicecadence = __esm(() => {
53725
53693
  init_zod();
53726
- TypesInvoiceCadence$zodSchema = _enum([
53694
+ InvoiceCadence$zodSchema = _enum([
53727
53695
  "ARREAR",
53728
53696
  "ADVANCE"
53729
53697
  ]);
53730
53698
  });
53731
53699
 
53732
- // src/models/typespriceentitytype.ts
53733
- var TypesPriceEntityType$zodSchema;
53734
- var init_typespriceentitytype = __esm(() => {
53700
+ // src/models/priceentitytype.ts
53701
+ var PriceEntityType$zodSchema;
53702
+ var init_priceentitytype = __esm(() => {
53735
53703
  init_zod();
53736
- TypesPriceEntityType$zodSchema = _enum([
53704
+ PriceEntityType$zodSchema = _enum([
53737
53705
  "PLAN",
53738
53706
  "SUBSCRIPTION",
53739
53707
  "ADDON",
@@ -53742,21 +53710,53 @@ var init_typespriceentitytype = __esm(() => {
53742
53710
  ]);
53743
53711
  });
53744
53712
 
53745
- // src/models/typespricetype.ts
53746
- var TypesPriceType$zodSchema;
53747
- var init_typespricetype = __esm(() => {
53713
+ // src/models/roundtype.ts
53714
+ var RoundType$zodSchema;
53715
+ var init_roundtype = __esm(() => {
53716
+ init_zod();
53717
+ RoundType$zodSchema = _enum([
53718
+ "up",
53719
+ "down"
53720
+ ]);
53721
+ });
53722
+
53723
+ // src/models/pricejsonbtransformquantity.ts
53724
+ var PriceJSONBTransformQuantity$zodSchema;
53725
+ var init_pricejsonbtransformquantity = __esm(() => {
53726
+ init_zod();
53727
+ init_roundtype();
53728
+ PriceJSONBTransformQuantity$zodSchema = object({
53729
+ divide_by: int().optional(),
53730
+ round: RoundType$zodSchema.optional()
53731
+ });
53732
+ });
53733
+
53734
+ // src/models/pricepricetier.ts
53735
+ var PricePriceTier$zodSchema;
53736
+ var init_pricepricetier = __esm(() => {
53737
+ init_zod();
53738
+ PricePriceTier$zodSchema = object({
53739
+ flat_amount: string2().optional(),
53740
+ unit_amount: string2().optional(),
53741
+ up_to: int().optional()
53742
+ });
53743
+ });
53744
+
53745
+ // src/models/pricetype.ts
53746
+ var PriceType$zodSchema;
53747
+ var init_pricetype = __esm(() => {
53748
53748
  init_zod();
53749
- TypesPriceType$zodSchema = _enum([
53749
+ PriceType$zodSchema = _enum([
53750
53750
  "USAGE",
53751
53751
  "FIXED"
53752
53752
  ]);
53753
53753
  });
53754
53754
 
53755
- // src/models/typespriceunittype.ts
53756
- var TypesPriceUnitType$zodSchema;
53757
- var init_typespriceunittype = __esm(() => {
53755
+ // src/models/priceunittype.ts
53756
+ var PriceUnitType$zodSchema;
53757
+ var init_priceunittype = __esm(() => {
53758
53758
  init_zod();
53759
- TypesPriceUnitType$zodSchema = _enum([
53759
+ PriceUnitType$zodSchema = _enum([
53760
53760
  "FIAT",
53761
53761
  "CUSTOM"
53762
53762
  ]);
@@ -53766,22 +53766,22 @@ var init_typespriceunittype = __esm(() => {
53766
53766
  var PricePrice$zodSchema;
53767
53767
  var init_priceprice = __esm(() => {
53768
53768
  init_zod();
53769
+ init_billingcadence();
53770
+ init_billingmodel();
53771
+ init_billingperiod();
53772
+ init_billingtier();
53773
+ init_invoicecadence();
53774
+ init_priceentitytype();
53769
53775
  init_pricejsonbtransformquantity();
53770
53776
  init_pricepricetier();
53771
- init_typesbillingcadence();
53772
- init_typesbillingmodel();
53773
- init_typesbillingperiod();
53774
- init_typesbillingtier();
53775
- init_typesinvoicecadence();
53776
- init_typespriceentitytype();
53777
- init_typespricetype();
53778
- init_typespriceunittype();
53779
- init_typesstatus();
53777
+ init_pricetype();
53778
+ init_priceunittype();
53779
+ init_status();
53780
53780
  PricePrice$zodSchema = object({
53781
53781
  amount: string2().optional(),
53782
- billing_cadence: TypesBillingCadence$zodSchema.optional(),
53783
- billing_model: TypesBillingModel$zodSchema.optional(),
53784
- billing_period: TypesBillingPeriod$zodSchema.optional(),
53782
+ billing_cadence: BillingCadence$zodSchema.optional(),
53783
+ billing_model: BillingModel$zodSchema.optional(),
53784
+ billing_period: BillingPeriod$zodSchema.optional(),
53785
53785
  billing_period_count: int().optional(),
53786
53786
  conversion_rate: string2().optional(),
53787
53787
  created_at: string2().optional(),
@@ -53793,11 +53793,11 @@ var init_priceprice = __esm(() => {
53793
53793
  display_price_unit_amount: string2().optional(),
53794
53794
  end_date: string2().optional(),
53795
53795
  entity_id: string2().optional(),
53796
- entity_type: TypesPriceEntityType$zodSchema.optional(),
53796
+ entity_type: PriceEntityType$zodSchema.optional(),
53797
53797
  environment_id: string2().optional(),
53798
53798
  group_id: string2().optional(),
53799
53799
  id: string2().optional(),
53800
- invoice_cadence: TypesInvoiceCadence$zodSchema.optional(),
53800
+ invoice_cadence: InvoiceCadence$zodSchema.optional(),
53801
53801
  lookup_key: string2().optional(),
53802
53802
  metadata: record(string2(), string2()).optional(),
53803
53803
  meter_id: string2().optional(),
@@ -53807,15 +53807,15 @@ var init_priceprice = __esm(() => {
53807
53807
  price_unit_amount: string2().optional(),
53808
53808
  price_unit_id: string2().optional(),
53809
53809
  price_unit_tiers: array(PricePriceTier$zodSchema).optional(),
53810
- price_unit_type: TypesPriceUnitType$zodSchema.optional(),
53810
+ price_unit_type: PriceUnitType$zodSchema.optional(),
53811
53811
  start_date: string2().optional(),
53812
- status: TypesStatus$zodSchema.optional(),
53812
+ status: Status$zodSchema.optional(),
53813
53813
  tenant_id: string2().optional(),
53814
- tier_mode: TypesBillingTier$zodSchema.optional(),
53814
+ tier_mode: BillingTier$zodSchema.optional(),
53815
53815
  tiers: array(PricePriceTier$zodSchema).optional(),
53816
53816
  transform_quantity: PriceJSONBTransformQuantity$zodSchema.optional(),
53817
53817
  trial_period: int().optional(),
53818
- type: TypesPriceType$zodSchema.optional(),
53818
+ type: PriceType$zodSchema.optional(),
53819
53819
  updated_at: string2().optional(),
53820
53820
  updated_by: string2().optional()
53821
53821
  });
@@ -53838,31 +53838,31 @@ var init_dtomatchedprice = __esm(() => {
53838
53838
  var DtoPriceLookupResult$zodSchema;
53839
53839
  var init_dtopricelookupresult = __esm(() => {
53840
53840
  init_zod();
53841
+ init_debugtrackerstatus();
53841
53842
  init_dtomatchedprice();
53842
53843
  init_errorserrorresponse();
53843
- init_typesdebugtrackerstatus();
53844
53844
  DtoPriceLookupResult$zodSchema = object({
53845
53845
  error: ErrorsErrorResponse$zodSchema.optional(),
53846
53846
  matched_prices: array(DtoMatchedPrice$zodSchema).optional(),
53847
- status: TypesDebugTrackerStatus$zodSchema.optional()
53847
+ status: DebugTrackerStatus$zodSchema.optional()
53848
53848
  });
53849
53849
  });
53850
53850
 
53851
- // src/models/typescommitmenttype.ts
53852
- var TypesCommitmentType$zodSchema;
53853
- var init_typescommitmenttype = __esm(() => {
53851
+ // src/models/commitmenttype.ts
53852
+ var CommitmentType$zodSchema;
53853
+ var init_commitmenttype = __esm(() => {
53854
53854
  init_zod();
53855
- TypesCommitmentType$zodSchema = _enum([
53855
+ CommitmentType$zodSchema = _enum([
53856
53856
  "amount",
53857
53857
  "quantity"
53858
53858
  ]);
53859
53859
  });
53860
53860
 
53861
- // src/models/typessubscriptionlineitementitytype.ts
53862
- var TypesSubscriptionLineItemEntityType$zodSchema;
53863
- var init_typessubscriptionlineitementitytype = __esm(() => {
53861
+ // src/models/subscriptionlineitementitytype.ts
53862
+ var SubscriptionLineItemEntityType$zodSchema;
53863
+ var init_subscriptionlineitementitytype = __esm(() => {
53864
53864
  init_zod();
53865
- TypesSubscriptionLineItemEntityType$zodSchema = _enum([
53865
+ SubscriptionLineItemEntityType$zodSchema = _enum([
53866
53866
  "plan",
53867
53867
  "addon",
53868
53868
  "subscription"
@@ -53873,22 +53873,22 @@ var init_typessubscriptionlineitementitytype = __esm(() => {
53873
53873
  var SubscriptionSubscriptionLineItem$zodSchema;
53874
53874
  var init_subscriptionsubscriptionlineitem = __esm(() => {
53875
53875
  init_zod();
53876
+ init_billingperiod();
53877
+ init_commitmenttype();
53878
+ init_invoicecadence();
53876
53879
  init_priceprice();
53877
- init_typesbillingperiod();
53878
- init_typescommitmenttype();
53879
- init_typesinvoicecadence();
53880
- init_typespricetype();
53881
- init_typesstatus();
53882
- init_typessubscriptionlineitementitytype();
53880
+ init_pricetype();
53881
+ init_status();
53882
+ init_subscriptionlineitementitytype();
53883
53883
  SubscriptionSubscriptionLineItem$zodSchema = object({
53884
- billing_period: TypesBillingPeriod$zodSchema.optional(),
53884
+ billing_period: BillingPeriod$zodSchema.optional(),
53885
53885
  billing_period_count: int().optional(),
53886
53886
  commitment_amount: string2().optional(),
53887
- commitment_duration: TypesBillingPeriod$zodSchema.optional(),
53887
+ commitment_duration: BillingPeriod$zodSchema.optional(),
53888
53888
  commitment_overage_factor: string2().optional(),
53889
53889
  commitment_quantity: string2().optional(),
53890
53890
  commitment_true_up_enabled: boolean2().optional(),
53891
- commitment_type: TypesCommitmentType$zodSchema.optional(),
53891
+ commitment_type: CommitmentType$zodSchema.optional(),
53892
53892
  commitment_windowed: boolean2().optional(),
53893
53893
  created_at: string2().optional(),
53894
53894
  created_by: string2().optional(),
@@ -53897,22 +53897,22 @@ var init_subscriptionsubscriptionlineitem = __esm(() => {
53897
53897
  display_name: string2().optional(),
53898
53898
  end_date: string2().optional(),
53899
53899
  entity_id: string2().optional(),
53900
- entity_type: TypesSubscriptionLineItemEntityType$zodSchema.optional(),
53900
+ entity_type: SubscriptionLineItemEntityType$zodSchema.optional(),
53901
53901
  environment_id: string2().optional(),
53902
53902
  id: string2().optional(),
53903
- invoice_cadence: TypesInvoiceCadence$zodSchema.optional(),
53903
+ invoice_cadence: InvoiceCadence$zodSchema.optional(),
53904
53904
  metadata: record(string2(), string2()).optional(),
53905
53905
  meter_display_name: string2().optional(),
53906
53906
  meter_id: string2().optional(),
53907
53907
  plan_display_name: string2().optional(),
53908
53908
  price: PricePrice$zodSchema.optional(),
53909
53909
  price_id: string2().optional(),
53910
- price_type: TypesPriceType$zodSchema.optional(),
53910
+ price_type: PriceType$zodSchema.optional(),
53911
53911
  price_unit: string2().optional(),
53912
53912
  price_unit_id: string2().optional(),
53913
53913
  quantity: string2().optional(),
53914
53914
  start_date: string2().optional(),
53915
- status: TypesStatus$zodSchema.optional(),
53915
+ status: Status$zodSchema.optional(),
53916
53916
  subscription_id: string2().optional(),
53917
53917
  subscription_phase_id: string2().optional(),
53918
53918
  tenant_id: string2().optional(),
@@ -53943,21 +53943,21 @@ var init_dtomatchedsubscriptionlineitem = __esm(() => {
53943
53943
  var DtoSubscriptionLineItemLookupResult$zodSchema;
53944
53944
  var init_dtosubscriptionlineitemlookupresult = __esm(() => {
53945
53945
  init_zod();
53946
+ init_debugtrackerstatus();
53946
53947
  init_dtomatchedsubscriptionlineitem();
53947
53948
  init_errorserrorresponse();
53948
- init_typesdebugtrackerstatus();
53949
53949
  DtoSubscriptionLineItemLookupResult$zodSchema = object({
53950
53950
  error: ErrorsErrorResponse$zodSchema.optional(),
53951
53951
  matched_line_items: array(DtoMatchedSubscriptionLineItem$zodSchema).optional(),
53952
- status: TypesDebugTrackerStatus$zodSchema.optional()
53952
+ status: DebugTrackerStatus$zodSchema.optional()
53953
53953
  });
53954
53954
  });
53955
53955
 
53956
- // src/models/typesfailurepointtype.ts
53957
- var TypesFailurePointType$zodSchema;
53958
- var init_typesfailurepointtype = __esm(() => {
53956
+ // src/models/failurepointtype.ts
53957
+ var FailurePointType$zodSchema;
53958
+ var init_failurepointtype = __esm(() => {
53959
53959
  init_zod();
53960
- TypesFailurePointType$zodSchema = _enum([
53960
+ FailurePointType$zodSchema = _enum([
53961
53961
  "customer_lookup",
53962
53962
  "meter_lookup",
53963
53963
  "price_lookup",
@@ -53965,15 +53965,15 @@ var init_typesfailurepointtype = __esm(() => {
53965
53965
  ]);
53966
53966
  });
53967
53967
 
53968
- // src/models/typesfailurepoint.ts
53969
- var TypesFailurePoint$zodSchema;
53970
- var init_typesfailurepoint = __esm(() => {
53968
+ // src/models/failurepoint.ts
53969
+ var FailurePoint$zodSchema;
53970
+ var init_failurepoint = __esm(() => {
53971
53971
  init_zod();
53972
53972
  init_errorserrorresponse();
53973
- init_typesfailurepointtype();
53974
- TypesFailurePoint$zodSchema = object({
53973
+ init_failurepointtype();
53974
+ FailurePoint$zodSchema = object({
53975
53975
  error: ErrorsErrorResponse$zodSchema.optional(),
53976
- failure_point_type: TypesFailurePointType$zodSchema.optional()
53976
+ failure_point_type: FailurePointType$zodSchema.optional()
53977
53977
  });
53978
53978
  });
53979
53979
 
@@ -53985,10 +53985,10 @@ var init_dtodebugtracker = __esm(() => {
53985
53985
  init_dtometermatchingresult();
53986
53986
  init_dtopricelookupresult();
53987
53987
  init_dtosubscriptionlineitemlookupresult();
53988
- init_typesfailurepoint();
53988
+ init_failurepoint();
53989
53989
  DtoDebugTracker$zodSchema = object({
53990
53990
  customer_lookup: DtoCustomerLookupResult$zodSchema.optional(),
53991
- failure_point: TypesFailurePoint$zodSchema.optional(),
53991
+ failure_point: FailurePoint$zodSchema.optional(),
53992
53992
  meter_matching: DtoMeterMatchingResult$zodSchema.optional(),
53993
53993
  price_lookup: DtoPriceLookupResult$zodSchema.optional(),
53994
53994
  subscription_line_item_lookup: DtoSubscriptionLineItemLookupResult$zodSchema.optional()
@@ -54027,11 +54027,11 @@ var init_dtofeatureusageinfo = __esm(() => {
54027
54027
  });
54028
54028
  });
54029
54029
 
54030
- // src/models/typeseventprocessingstatustype.ts
54031
- var TypesEventProcessingStatusType$zodSchema;
54032
- var init_typeseventprocessingstatustype = __esm(() => {
54030
+ // src/models/eventprocessingstatustype.ts
54031
+ var EventProcessingStatusType$zodSchema;
54032
+ var init_eventprocessingstatustype = __esm(() => {
54033
54033
  init_zod();
54034
- TypesEventProcessingStatusType$zodSchema = _enum([
54034
+ EventProcessingStatusType$zodSchema = _enum([
54035
54035
  "processed",
54036
54036
  "processing",
54037
54037
  "failed"
@@ -54045,12 +54045,12 @@ var init_dtogeteventbyidresponse = __esm(() => {
54045
54045
  init_dtodebugtracker();
54046
54046
  init_dtoevent();
54047
54047
  init_dtofeatureusageinfo();
54048
- init_typeseventprocessingstatustype();
54048
+ init_eventprocessingstatustype();
54049
54049
  DtoGetEventByIDResponse$zodSchema = object({
54050
54050
  debug_tracker: DtoDebugTracker$zodSchema.optional(),
54051
54051
  event: DtoEvent$zodSchema.optional(),
54052
54052
  processed_events: array(DtoFeatureUsageInfo$zodSchema).optional(),
54053
- status: TypesEventProcessingStatusType$zodSchema.optional()
54053
+ status: EventProcessingStatusType$zodSchema.optional()
54054
54054
  });
54055
54055
  });
54056
54056
 
@@ -54278,7 +54278,7 @@ Use when fetching Hugging Face inference usage or billing data (e.g. for HF-spec
54278
54278
  var DtoGetUsageAnalyticsRequest$zodSchema;
54279
54279
  var init_dtogetusageanalyticsrequest = __esm(() => {
54280
54280
  init_zod();
54281
- init_typeswindowsize();
54281
+ init_windowsize();
54282
54282
  DtoGetUsageAnalyticsRequest$zodSchema = object({
54283
54283
  end_time: string2().optional(),
54284
54284
  expand: array(string2()).optional(),
@@ -54288,7 +54288,7 @@ var init_dtogetusageanalyticsrequest = __esm(() => {
54288
54288
  property_filters: record(string2(), array(string2())).optional(),
54289
54289
  sources: array(string2()).optional(),
54290
54290
  start_time: string2().optional(),
54291
- window_size: TypesWindowSize$zodSchema.optional()
54291
+ window_size: WindowSize$zodSchema.optional()
54292
54292
  });
54293
54293
  });
54294
54294
 
@@ -54404,17 +54404,17 @@ Use when building analytics views (e.g. usage by feature or customer over time).
54404
54404
  var DtoGetUsageByMeterRequest$zodSchema;
54405
54405
  var init_dtogetusagebymeterrequest = __esm(() => {
54406
54406
  init_zod();
54407
- init_typeswindowsize();
54407
+ init_windowsize();
54408
54408
  DtoGetUsageByMeterRequest$zodSchema = object({
54409
54409
  billing_anchor: string2().optional(),
54410
- bucket_size: TypesWindowSize$zodSchema.optional(),
54410
+ bucket_size: WindowSize$zodSchema.optional(),
54411
54411
  customer_id: string2().optional(),
54412
54412
  end_time: string2().optional(),
54413
54413
  external_customer_id: string2().optional(),
54414
54414
  filters: record(string2(), array(string2())).optional(),
54415
54415
  meter_id: string2(),
54416
54416
  start_time: string2().optional(),
54417
- window_size: TypesWindowSize$zodSchema.optional()
54417
+ window_size: WindowSize$zodSchema.optional()
54418
54418
  });
54419
54419
  });
54420
54420
 
@@ -54530,12 +54530,12 @@ Use when showing usage for a specific meter (e.g. dashboard or overage check). S
54530
54530
  var DtoGetUsageRequest$zodSchema;
54531
54531
  var init_dtogetusagerequest = __esm(() => {
54532
54532
  init_zod();
54533
- init_typesaggregationtype();
54534
- init_typeswindowsize();
54533
+ init_aggregationtype();
54534
+ init_windowsize();
54535
54535
  DtoGetUsageRequest$zodSchema = object({
54536
- aggregation_type: TypesAggregationType$zodSchema,
54536
+ aggregation_type: AggregationType$zodSchema,
54537
54537
  billing_anchor: string2().optional(),
54538
- bucket_size: TypesWindowSize$zodSchema.optional(),
54538
+ bucket_size: WindowSize$zodSchema.optional(),
54539
54539
  customer_id: string2().optional(),
54540
54540
  end_time: string2().optional(),
54541
54541
  event_name: string2(),
@@ -54545,7 +54545,7 @@ var init_dtogetusagerequest = __esm(() => {
54545
54545
  multiplier: string2().optional(),
54546
54546
  property_name: string2().optional(),
54547
54547
  start_time: string2().optional(),
54548
- window_size: TypesWindowSize$zodSchema.optional()
54548
+ window_size: WindowSize$zodSchema.optional()
54549
54549
  });
54550
54550
  });
54551
54551
 
@@ -55164,23 +55164,23 @@ Use when paying an invoice with the customer's wallet balance (e.g. prepaid cred
55164
55164
  };
55165
55165
  });
55166
55166
 
55167
- // src/models/typescommitmentinfo.ts
55168
- var TypesCommitmentInfo$zodSchema;
55169
- var init_typescommitmentinfo = __esm(() => {
55167
+ // src/models/commitmentinfo.ts
55168
+ var CommitmentInfo$zodSchema;
55169
+ var init_commitmentinfo = __esm(() => {
55170
55170
  init_zod();
55171
- init_typesbillingperiod();
55172
- init_typescommitmenttype();
55173
- TypesCommitmentInfo$zodSchema = object({
55171
+ init_billingperiod();
55172
+ init_commitmenttype();
55173
+ CommitmentInfo$zodSchema = object({
55174
55174
  amount: string2().optional(),
55175
55175
  computed_commitment_utilized_amount: string2().optional(),
55176
55176
  computed_overage_amount: string2().optional(),
55177
55177
  computed_true_up_amount: string2().optional(),
55178
- duration: TypesBillingPeriod$zodSchema.optional(),
55178
+ duration: BillingPeriod$zodSchema.optional(),
55179
55179
  is_windowed: boolean2().optional(),
55180
55180
  overage_factor: string2().optional(),
55181
55181
  quantity: string2().optional(),
55182
55182
  true_up_enabled: boolean2().optional(),
55183
- type: TypesCommitmentType$zodSchema.optional()
55183
+ type: CommitmentType$zodSchema.optional()
55184
55184
  });
55185
55185
  });
55186
55186
 
@@ -55188,10 +55188,10 @@ var init_typescommitmentinfo = __esm(() => {
55188
55188
  var DtoCreateInvoiceLineItemRequest$zodSchema;
55189
55189
  var init_dtocreateinvoicelineitemrequest = __esm(() => {
55190
55190
  init_zod();
55191
- init_typescommitmentinfo();
55191
+ init_commitmentinfo();
55192
55192
  DtoCreateInvoiceLineItemRequest$zodSchema = object({
55193
55193
  amount: string2(),
55194
- commitment_info: TypesCommitmentInfo$zodSchema.optional(),
55194
+ commitment_info: CommitmentInfo$zodSchema.optional(),
55195
55195
  display_name: string2().optional(),
55196
55196
  entity_id: string2().optional(),
55197
55197
  entity_type: string2().optional(),
@@ -55234,32 +55234,32 @@ var init_dtoinvoicelineitemcoupon = __esm(() => {
55234
55234
  });
55235
55235
  });
55236
55236
 
55237
- // src/models/typestaxratescope.ts
55238
- var TypesTaxRateScope$zodSchema;
55239
- var init_typestaxratescope = __esm(() => {
55237
+ // src/models/taxratescope.ts
55238
+ var TaxRateScope$zodSchema;
55239
+ var init_taxratescope = __esm(() => {
55240
55240
  init_zod();
55241
- TypesTaxRateScope$zodSchema = _enum([
55241
+ TaxRateScope$zodSchema = _enum([
55242
55242
  "INTERNAL",
55243
55243
  "EXTERNAL",
55244
55244
  "ONETIME"
55245
55245
  ]);
55246
55246
  });
55247
55247
 
55248
- // src/models/typestaxratestatus.ts
55249
- var TypesTaxRateStatus$zodSchema;
55250
- var init_typestaxratestatus = __esm(() => {
55248
+ // src/models/taxratestatus.ts
55249
+ var TaxRateStatus$zodSchema;
55250
+ var init_taxratestatus = __esm(() => {
55251
55251
  init_zod();
55252
- TypesTaxRateStatus$zodSchema = _enum([
55252
+ TaxRateStatus$zodSchema = _enum([
55253
55253
  "ACTIVE",
55254
55254
  "INACTIVE"
55255
55255
  ]);
55256
55256
  });
55257
55257
 
55258
- // src/models/typestaxratetype.ts
55259
- var TypesTaxRateType$zodSchema;
55260
- var init_typestaxratetype = __esm(() => {
55258
+ // src/models/taxratetype.ts
55259
+ var TaxRateType$zodSchema;
55260
+ var init_taxratetype = __esm(() => {
55261
55261
  init_zod();
55262
- TypesTaxRateType$zodSchema = _enum([
55262
+ TaxRateType$zodSchema = _enum([
55263
55263
  "percentage",
55264
55264
  "fixed"
55265
55265
  ]);
@@ -55269,10 +55269,10 @@ var init_typestaxratetype = __esm(() => {
55269
55269
  var DtoTaxRateResponse$zodSchema;
55270
55270
  var init_dtotaxrateresponse = __esm(() => {
55271
55271
  init_zod();
55272
- init_typesstatus();
55273
- init_typestaxratescope();
55274
- init_typestaxratestatus();
55275
- init_typestaxratetype();
55272
+ init_status();
55273
+ init_taxratescope();
55274
+ init_taxratestatus();
55275
+ init_taxratetype();
55276
55276
  DtoTaxRateResponse$zodSchema = object({
55277
55277
  code: string2().optional(),
55278
55278
  created_at: string2().optional(),
@@ -55284,21 +55284,21 @@ var init_dtotaxrateresponse = __esm(() => {
55284
55284
  metadata: record(string2(), string2()).optional(),
55285
55285
  name: string2().optional(),
55286
55286
  percentage_value: string2().optional(),
55287
- scope: TypesTaxRateScope$zodSchema.optional(),
55288
- status: TypesStatus$zodSchema.optional(),
55289
- tax_rate_status: TypesTaxRateStatus$zodSchema.optional(),
55290
- tax_rate_type: TypesTaxRateType$zodSchema.optional(),
55287
+ scope: TaxRateScope$zodSchema.optional(),
55288
+ status: Status$zodSchema.optional(),
55289
+ tax_rate_status: TaxRateStatus$zodSchema.optional(),
55290
+ tax_rate_type: TaxRateType$zodSchema.optional(),
55291
55291
  tenant_id: string2().optional(),
55292
55292
  updated_at: string2().optional(),
55293
55293
  updated_by: string2().optional()
55294
55294
  });
55295
55295
  });
55296
55296
 
55297
- // src/models/typesinvoicebillingreason.ts
55298
- var TypesInvoiceBillingReason$zodSchema;
55299
- var init_typesinvoicebillingreason = __esm(() => {
55297
+ // src/models/invoicebillingreason.ts
55298
+ var InvoiceBillingReason$zodSchema;
55299
+ var init_invoicebillingreason = __esm(() => {
55300
55300
  init_zod();
55301
- TypesInvoiceBillingReason$zodSchema = _enum([
55301
+ InvoiceBillingReason$zodSchema = _enum([
55302
55302
  "SUBSCRIPTION_CREATE",
55303
55303
  "SUBSCRIPTION_CYCLE",
55304
55304
  "SUBSCRIPTION_UPDATE",
@@ -55307,33 +55307,33 @@ var init_typesinvoicebillingreason = __esm(() => {
55307
55307
  ]);
55308
55308
  });
55309
55309
 
55310
- // src/models/typesinvoicestatus.ts
55311
- var TypesInvoiceStatus$zodSchema;
55312
- var init_typesinvoicestatus = __esm(() => {
55310
+ // src/models/invoicestatus.ts
55311
+ var InvoiceStatus$zodSchema;
55312
+ var init_invoicestatus = __esm(() => {
55313
55313
  init_zod();
55314
- TypesInvoiceStatus$zodSchema = _enum([
55314
+ InvoiceStatus$zodSchema = _enum([
55315
55315
  "DRAFT",
55316
55316
  "FINALIZED",
55317
55317
  "VOIDED"
55318
55318
  ]);
55319
55319
  });
55320
55320
 
55321
- // src/models/typesinvoicetype.ts
55322
- var TypesInvoiceType$zodSchema;
55323
- var init_typesinvoicetype = __esm(() => {
55321
+ // src/models/invoicetype.ts
55322
+ var InvoiceType$zodSchema;
55323
+ var init_invoicetype = __esm(() => {
55324
55324
  init_zod();
55325
- TypesInvoiceType$zodSchema = _enum([
55325
+ InvoiceType$zodSchema = _enum([
55326
55326
  "SUBSCRIPTION",
55327
55327
  "ONE_OFF",
55328
55328
  "CREDIT"
55329
55329
  ]);
55330
55330
  });
55331
55331
 
55332
- // src/models/typespaymentstatus.ts
55333
- var TypesPaymentStatus$zodSchema;
55334
- var init_typespaymentstatus = __esm(() => {
55332
+ // src/models/paymentstatus.ts
55333
+ var PaymentStatus$zodSchema;
55334
+ var init_paymentstatus = __esm(() => {
55335
55335
  init_zod();
55336
- TypesPaymentStatus$zodSchema = _enum([
55336
+ PaymentStatus$zodSchema = _enum([
55337
55337
  "INITIATED",
55338
55338
  "PENDING",
55339
55339
  "PROCESSING",
@@ -55354,15 +55354,15 @@ var init_dtocreateinvoicerequest = __esm(() => {
55354
55354
  init_dtoinvoicelineitemcoupon();
55355
55355
  init_dtotaxrateoverride();
55356
55356
  init_dtotaxrateresponse();
55357
- init_typesinvoicebillingreason();
55358
- init_typesinvoicestatus();
55359
- init_typesinvoicetype();
55360
- init_typespaymentstatus();
55357
+ init_invoicebillingreason();
55358
+ init_invoicestatus();
55359
+ init_invoicetype();
55360
+ init_paymentstatus();
55361
55361
  DtoCreateInvoiceRequest$zodSchema = object({
55362
55362
  amount_due: string2(),
55363
55363
  amount_paid: string2().optional(),
55364
55364
  billing_period: string2().optional(),
55365
- billing_reason: TypesInvoiceBillingReason$zodSchema.optional(),
55365
+ billing_reason: InvoiceBillingReason$zodSchema.optional(),
55366
55366
  coupons: array(string2()).optional(),
55367
55367
  currency: string2(),
55368
55368
  customer_id: string2(),
@@ -55372,12 +55372,12 @@ var init_dtocreateinvoicerequest = __esm(() => {
55372
55372
  invoice_coupons: array(DtoInvoiceCoupon$zodSchema).optional(),
55373
55373
  invoice_number: string2().optional(),
55374
55374
  invoice_pdf_url: string2().optional(),
55375
- invoice_status: TypesInvoiceStatus$zodSchema.optional(),
55376
- invoice_type: TypesInvoiceType$zodSchema.optional(),
55375
+ invoice_status: InvoiceStatus$zodSchema.optional(),
55376
+ invoice_type: InvoiceType$zodSchema.optional(),
55377
55377
  line_item_coupons: array(DtoInvoiceLineItemCoupon$zodSchema).optional(),
55378
55378
  line_items: array(DtoCreateInvoiceLineItemRequest$zodSchema).optional(),
55379
55379
  metadata: record(string2(), string2()).optional(),
55380
- payment_status: TypesPaymentStatus$zodSchema.optional(),
55380
+ payment_status: PaymentStatus$zodSchema.optional(),
55381
55381
  period_end: string2().optional(),
55382
55382
  period_start: string2().optional(),
55383
55383
  prepared_tax_rates: array(DtoTaxRateResponse$zodSchema).optional(),
@@ -55784,11 +55784,11 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
55784
55784
  };
55785
55785
  });
55786
55786
 
55787
- // src/models/typescoupontype.ts
55788
- var TypesCouponType$zodSchema;
55789
- var init_typescoupontype = __esm(() => {
55787
+ // src/models/coupontype.ts
55788
+ var CouponType$zodSchema;
55789
+ var init_coupontype = __esm(() => {
55790
55790
  init_zod();
55791
- TypesCouponType$zodSchema = _enum([
55791
+ CouponType$zodSchema = _enum([
55792
55792
  "fixed",
55793
55793
  "percentage"
55794
55794
  ]);
@@ -55798,8 +55798,8 @@ var init_typescoupontype = __esm(() => {
55798
55798
  var DtoCouponApplicationResponse$zodSchema;
55799
55799
  var init_dtocouponapplicationresponse = __esm(() => {
55800
55800
  init_zod();
55801
- init_typescoupontype();
55802
- init_typesstatus();
55801
+ init_coupontype();
55802
+ init_status();
55803
55803
  DtoCouponApplicationResponse$zodSchema = object({
55804
55804
  applied_at: string2().optional(),
55805
55805
  coupon_association_id: string2().optional(),
@@ -55809,7 +55809,7 @@ var init_dtocouponapplicationresponse = __esm(() => {
55809
55809
  created_by: string2().optional(),
55810
55810
  currency: string2().optional(),
55811
55811
  discount_percentage: string2().optional(),
55812
- discount_type: TypesCouponType$zodSchema.optional(),
55812
+ discount_type: CouponType$zodSchema.optional(),
55813
55813
  discounted_amount: string2().optional(),
55814
55814
  environment_id: string2().optional(),
55815
55815
  final_price: string2().optional(),
@@ -55818,7 +55818,7 @@ var init_dtocouponapplicationresponse = __esm(() => {
55818
55818
  invoice_line_item_id: string2().optional(),
55819
55819
  metadata: record(string2(), string2()).optional(),
55820
55820
  original_price: string2().optional(),
55821
- status: TypesStatus$zodSchema.optional(),
55821
+ status: Status$zodSchema.optional(),
55822
55822
  subscription_id: string2().optional(),
55823
55823
  tenant_id: string2().optional(),
55824
55824
  updated_at: string2().optional(),
@@ -55856,13 +55856,13 @@ var init_dtousagebreakdownitem = __esm(() => {
55856
55856
  var DtoInvoiceLineItemResponse$zodSchema;
55857
55857
  var init_dtoinvoicelineitemresponse = __esm(() => {
55858
55858
  init_zod();
55859
+ init_commitmentinfo();
55859
55860
  init_dtosourceusageitem();
55860
55861
  init_dtousagebreakdownitem();
55861
- init_typescommitmentinfo();
55862
- init_typesstatus();
55862
+ init_status();
55863
55863
  DtoInvoiceLineItemResponse$zodSchema = object({
55864
55864
  amount: string2().optional(),
55865
- commitment_info: TypesCommitmentInfo$zodSchema.optional(),
55865
+ commitment_info: CommitmentInfo$zodSchema.optional(),
55866
55866
  created_at: string2().optional(),
55867
55867
  created_by: string2().optional(),
55868
55868
  currency: string2().optional(),
@@ -55888,7 +55888,7 @@ var init_dtoinvoicelineitemresponse = __esm(() => {
55888
55888
  price_unit_amount: string2().optional(),
55889
55889
  price_unit_id: string2().optional(),
55890
55890
  quantity: string2().optional(),
55891
- status: TypesStatus$zodSchema.optional(),
55891
+ status: Status$zodSchema.optional(),
55892
55892
  subscription_id: string2().optional(),
55893
55893
  tenant_id: string2().optional(),
55894
55894
  updated_at: string2().optional(),
@@ -55898,11 +55898,21 @@ var init_dtoinvoicelineitemresponse = __esm(() => {
55898
55898
  });
55899
55899
  });
55900
55900
 
55901
- // src/models/typescouponcadence.ts
55902
- var TypesCouponCadence$zodSchema;
55903
- var init_typescouponcadence = __esm(() => {
55901
+ // src/models/billingcycle.ts
55902
+ var BillingCycle$zodSchema;
55903
+ var init_billingcycle = __esm(() => {
55904
+ init_zod();
55905
+ BillingCycle$zodSchema = _enum([
55906
+ "anniversary",
55907
+ "calendar"
55908
+ ]);
55909
+ });
55910
+
55911
+ // src/models/couponcadence.ts
55912
+ var CouponCadence$zodSchema;
55913
+ var init_couponcadence = __esm(() => {
55904
55914
  init_zod();
55905
- TypesCouponCadence$zodSchema = _enum([
55915
+ CouponCadence$zodSchema = _enum([
55906
55916
  "once",
55907
55917
  "repeated",
55908
55918
  "forever"
@@ -55913,12 +55923,12 @@ var init_typescouponcadence = __esm(() => {
55913
55923
  var GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema;
55914
55924
  var init_githubcomflexpriceflexpriceinternaldomaincouponcoupon = __esm(() => {
55915
55925
  init_zod();
55916
- init_typescouponcadence();
55917
- init_typescoupontype();
55918
- init_typesstatus();
55926
+ init_couponcadence();
55927
+ init_coupontype();
55928
+ init_status();
55919
55929
  GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema = object({
55920
55930
  amount_off: string2().optional(),
55921
- cadence: TypesCouponCadence$zodSchema.optional(),
55931
+ cadence: CouponCadence$zodSchema.optional(),
55922
55932
  created_at: string2().optional(),
55923
55933
  created_by: string2().optional(),
55924
55934
  currency: string2().optional(),
@@ -55932,10 +55942,10 @@ var init_githubcomflexpriceflexpriceinternaldomaincouponcoupon = __esm(() => {
55932
55942
  redeem_after: string2().optional(),
55933
55943
  redeem_before: string2().optional(),
55934
55944
  rules: record(string2(), any()).optional(),
55935
- status: TypesStatus$zodSchema.optional(),
55945
+ status: Status$zodSchema.optional(),
55936
55946
  tenant_id: string2().optional(),
55937
55947
  total_redemptions: int().optional(),
55938
- type: TypesCouponType$zodSchema.optional(),
55948
+ type: CouponType$zodSchema.optional(),
55939
55949
  updated_at: string2().optional(),
55940
55950
  updated_by: string2().optional()
55941
55951
  });
@@ -55946,7 +55956,7 @@ var DtoCouponAssociationResponse$zodSchema;
55946
55956
  var init_dtocouponassociationresponse = __esm(() => {
55947
55957
  init_zod();
55948
55958
  init_githubcomflexpriceflexpriceinternaldomaincouponcoupon();
55949
- init_typesstatus();
55959
+ init_status();
55950
55960
  DtoCouponAssociationResponse$zodSchema = object({
55951
55961
  coupon: GithubComFlexpriceFlexpriceInternalDomainCouponCoupon$zodSchema.optional(),
55952
55962
  coupon_id: string2().optional(),
@@ -55957,7 +55967,7 @@ var init_dtocouponassociationresponse = __esm(() => {
55957
55967
  id: string2().optional(),
55958
55968
  metadata: record(string2(), string2()).optional(),
55959
55969
  start_date: string2().optional(),
55960
- status: TypesStatus$zodSchema.optional(),
55970
+ status: Status$zodSchema.optional(),
55961
55971
  subscription_id: string2().optional(),
55962
55972
  subscription_line_item_id: string2().optional(),
55963
55973
  subscription_phase_id: string2().optional(),
@@ -55967,21 +55977,21 @@ var init_dtocouponassociationresponse = __esm(() => {
55967
55977
  });
55968
55978
  });
55969
55979
 
55970
- // src/models/typescreditgrantcadence.ts
55971
- var TypesCreditGrantCadence$zodSchema;
55972
- var init_typescreditgrantcadence = __esm(() => {
55980
+ // src/models/creditgrantcadence.ts
55981
+ var CreditGrantCadence$zodSchema;
55982
+ var init_creditgrantcadence = __esm(() => {
55973
55983
  init_zod();
55974
- TypesCreditGrantCadence$zodSchema = _enum([
55984
+ CreditGrantCadence$zodSchema = _enum([
55975
55985
  "ONETIME",
55976
55986
  "RECURRING"
55977
55987
  ]);
55978
55988
  });
55979
55989
 
55980
- // src/models/typescreditgrantexpirydurationunit.ts
55981
- var TypesCreditGrantExpiryDurationUnit$zodSchema;
55982
- var init_typescreditgrantexpirydurationunit = __esm(() => {
55990
+ // src/models/creditgrantexpirydurationunit.ts
55991
+ var CreditGrantExpiryDurationUnit$zodSchema;
55992
+ var init_creditgrantexpirydurationunit = __esm(() => {
55983
55993
  init_zod();
55984
- TypesCreditGrantExpiryDurationUnit$zodSchema = _enum([
55994
+ CreditGrantExpiryDurationUnit$zodSchema = _enum([
55985
55995
  "DAY",
55986
55996
  "WEEK",
55987
55997
  "MONTH",
@@ -55989,22 +55999,22 @@ var init_typescreditgrantexpirydurationunit = __esm(() => {
55989
55999
  ]);
55990
56000
  });
55991
56001
 
55992
- // src/models/typescreditgrantexpirytype.ts
55993
- var TypesCreditGrantExpiryType$zodSchema;
55994
- var init_typescreditgrantexpirytype = __esm(() => {
56002
+ // src/models/creditgrantexpirytype.ts
56003
+ var CreditGrantExpiryType$zodSchema;
56004
+ var init_creditgrantexpirytype = __esm(() => {
55995
56005
  init_zod();
55996
- TypesCreditGrantExpiryType$zodSchema = _enum([
56006
+ CreditGrantExpiryType$zodSchema = _enum([
55997
56007
  "NEVER",
55998
56008
  "DURATION",
55999
56009
  "BILLING_CYCLE"
56000
56010
  ]);
56001
56011
  });
56002
56012
 
56003
- // src/models/typescreditgrantperiod.ts
56004
- var TypesCreditGrantPeriod$zodSchema;
56005
- var init_typescreditgrantperiod = __esm(() => {
56013
+ // src/models/creditgrantperiod.ts
56014
+ var CreditGrantPeriod$zodSchema;
56015
+ var init_creditgrantperiod = __esm(() => {
56006
56016
  init_zod();
56007
- TypesCreditGrantPeriod$zodSchema = _enum([
56017
+ CreditGrantPeriod$zodSchema = _enum([
56008
56018
  "DAILY",
56009
56019
  "WEEKLY",
56010
56020
  "MONTHLY",
@@ -56014,11 +56024,11 @@ var init_typescreditgrantperiod = __esm(() => {
56014
56024
  ]);
56015
56025
  });
56016
56026
 
56017
- // src/models/typescreditgrantscope.ts
56018
- var TypesCreditGrantScope$zodSchema;
56019
- var init_typescreditgrantscope = __esm(() => {
56027
+ // src/models/creditgrantscope.ts
56028
+ var CreditGrantScope$zodSchema;
56029
+ var init_creditgrantscope = __esm(() => {
56020
56030
  init_zod();
56021
- TypesCreditGrantScope$zodSchema = _enum([
56031
+ CreditGrantScope$zodSchema = _enum([
56022
56032
  "PLAN",
56023
56033
  "SUBSCRIPTION"
56024
56034
  ]);
@@ -56028,14 +56038,14 @@ var init_typescreditgrantscope = __esm(() => {
56028
56038
  var DtoCreditGrantResponse$zodSchema;
56029
56039
  var init_dtocreditgrantresponse = __esm(() => {
56030
56040
  init_zod();
56031
- init_typescreditgrantcadence();
56032
- init_typescreditgrantexpirydurationunit();
56033
- init_typescreditgrantexpirytype();
56034
- init_typescreditgrantperiod();
56035
- init_typescreditgrantscope();
56036
- init_typesstatus();
56041
+ init_creditgrantcadence();
56042
+ init_creditgrantexpirydurationunit();
56043
+ init_creditgrantexpirytype();
56044
+ init_creditgrantperiod();
56045
+ init_creditgrantscope();
56046
+ init_status();
56037
56047
  DtoCreditGrantResponse$zodSchema = object({
56038
- cadence: TypesCreditGrantCadence$zodSchema.optional(),
56048
+ cadence: CreditGrantCadence$zodSchema.optional(),
56039
56049
  conversion_rate: string2().optional(),
56040
56050
  created_at: string2().optional(),
56041
56051
  created_by: string2().optional(),
@@ -56044,18 +56054,18 @@ var init_dtocreditgrantresponse = __esm(() => {
56044
56054
  end_date: string2().optional(),
56045
56055
  environment_id: string2().optional(),
56046
56056
  expiration_duration: int().optional(),
56047
- expiration_duration_unit: TypesCreditGrantExpiryDurationUnit$zodSchema.optional(),
56048
- expiration_type: TypesCreditGrantExpiryType$zodSchema.optional(),
56057
+ expiration_duration_unit: CreditGrantExpiryDurationUnit$zodSchema.optional(),
56058
+ expiration_type: CreditGrantExpiryType$zodSchema.optional(),
56049
56059
  id: string2().optional(),
56050
56060
  metadata: record(string2(), string2()).optional(),
56051
56061
  name: string2().optional(),
56052
- period: TypesCreditGrantPeriod$zodSchema.optional(),
56062
+ period: CreditGrantPeriod$zodSchema.optional(),
56053
56063
  period_count: int().optional(),
56054
56064
  plan_id: string2().optional(),
56055
56065
  priority: int().optional(),
56056
- scope: TypesCreditGrantScope$zodSchema.optional(),
56066
+ scope: CreditGrantScope$zodSchema.optional(),
56057
56067
  start_date: string2().optional(),
56058
- status: TypesStatus$zodSchema.optional(),
56068
+ status: Status$zodSchema.optional(),
56059
56069
  subscription_id: string2().optional(),
56060
56070
  tenant_id: string2().optional(),
56061
56071
  topup_conversion_rate: string2().optional(),
@@ -56064,6 +56074,16 @@ var init_dtocreditgrantresponse = __esm(() => {
56064
56074
  });
56065
56075
  });
56066
56076
 
56077
+ // src/models/addontype.ts
56078
+ var AddonType$zodSchema;
56079
+ var init_addontype = __esm(() => {
56080
+ init_zod();
56081
+ AddonType$zodSchema = _enum([
56082
+ "onetime",
56083
+ "multiple_instance"
56084
+ ]);
56085
+ });
56086
+
56067
56087
  // src/models/dtogroupresponse.ts
56068
56088
  var DtoGroupResponse$zodSchema;
56069
56089
  var init_dtogroupresponse = __esm(() => {
@@ -56085,7 +56105,7 @@ var init_dtogroupresponse = __esm(() => {
56085
56105
  var DtoPriceUnitResponse$zodSchema;
56086
56106
  var init_dtopriceunitresponse = __esm(() => {
56087
56107
  init_zod();
56088
- init_typesstatus();
56108
+ init_status();
56089
56109
  DtoPriceUnitResponse$zodSchema = object({
56090
56110
  base_currency: string2().optional(),
56091
56111
  code: string2().optional(),
@@ -56096,7 +56116,7 @@ var init_dtopriceunitresponse = __esm(() => {
56096
56116
  id: string2().optional(),
56097
56117
  metadata: record(string2(), string2()).optional(),
56098
56118
  name: string2().optional(),
56099
- status: TypesStatus$zodSchema.optional(),
56119
+ status: Status$zodSchema.optional(),
56100
56120
  symbol: string2().optional(),
56101
56121
  tenant_id: string2().optional(),
56102
56122
  updated_at: string2().optional(),
@@ -56108,28 +56128,28 @@ var init_dtopriceunitresponse = __esm(() => {
56108
56128
  var DtoPriceResponse$zodSchema;
56109
56129
  var init_dtopriceresponse = __esm(() => {
56110
56130
  init_zod();
56131
+ init_billingcadence();
56132
+ init_billingmodel();
56133
+ init_billingperiod();
56134
+ init_billingtier();
56111
56135
  init_dtoaddonresponse();
56112
56136
  init_dtogroupresponse();
56113
56137
  init_dtometerresponse();
56114
56138
  init_dtoplanresponse();
56115
56139
  init_dtopriceunitresponse();
56140
+ init_invoicecadence();
56141
+ init_priceentitytype();
56116
56142
  init_pricejsonbtransformquantity();
56117
56143
  init_pricepricetier();
56118
- init_typesbillingcadence();
56119
- init_typesbillingmodel();
56120
- init_typesbillingperiod();
56121
- init_typesbillingtier();
56122
- init_typesinvoicecadence();
56123
- init_typespriceentitytype();
56124
- init_typespricetype();
56125
- init_typespriceunittype();
56126
- init_typesstatus();
56144
+ init_pricetype();
56145
+ init_priceunittype();
56146
+ init_status();
56127
56147
  DtoPriceResponse$zodSchema = object({
56128
56148
  addon: lazy(() => DtoAddonResponse$zodSchema).optional(),
56129
56149
  amount: string2().optional(),
56130
- billing_cadence: TypesBillingCadence$zodSchema.optional(),
56131
- billing_model: TypesBillingModel$zodSchema.optional(),
56132
- billing_period: TypesBillingPeriod$zodSchema.optional(),
56150
+ billing_cadence: BillingCadence$zodSchema.optional(),
56151
+ billing_model: BillingModel$zodSchema.optional(),
56152
+ billing_period: BillingPeriod$zodSchema.optional(),
56133
56153
  billing_period_count: int().optional(),
56134
56154
  conversion_rate: string2().optional(),
56135
56155
  created_at: string2().optional(),
@@ -56141,12 +56161,12 @@ var init_dtopriceresponse = __esm(() => {
56141
56161
  display_price_unit_amount: string2().optional(),
56142
56162
  end_date: string2().optional(),
56143
56163
  entity_id: string2().optional(),
56144
- entity_type: TypesPriceEntityType$zodSchema.optional(),
56164
+ entity_type: PriceEntityType$zodSchema.optional(),
56145
56165
  environment_id: string2().optional(),
56146
56166
  group: DtoGroupResponse$zodSchema.optional(),
56147
56167
  group_id: string2().optional(),
56148
56168
  id: string2().optional(),
56149
- invoice_cadence: TypesInvoiceCadence$zodSchema.optional(),
56169
+ invoice_cadence: InvoiceCadence$zodSchema.optional(),
56150
56170
  lookup_key: string2().optional(),
56151
56171
  metadata: record(string2(), string2()).optional(),
56152
56172
  meter: DtoMeterResponse$zodSchema.optional(),
@@ -56158,39 +56178,29 @@ var init_dtopriceresponse = __esm(() => {
56158
56178
  price_unit_amount: string2().optional(),
56159
56179
  price_unit_id: string2().optional(),
56160
56180
  price_unit_tiers: array(PricePriceTier$zodSchema).optional(),
56161
- price_unit_type: TypesPriceUnitType$zodSchema.optional(),
56181
+ price_unit_type: PriceUnitType$zodSchema.optional(),
56162
56182
  pricing_unit: DtoPriceUnitResponse$zodSchema.optional(),
56163
56183
  start_date: string2().optional(),
56164
- status: TypesStatus$zodSchema.optional(),
56184
+ status: Status$zodSchema.optional(),
56165
56185
  tenant_id: string2().optional(),
56166
- tier_mode: TypesBillingTier$zodSchema.optional(),
56186
+ tier_mode: BillingTier$zodSchema.optional(),
56167
56187
  tiers: array(PricePriceTier$zodSchema).optional(),
56168
56188
  transform_quantity: PriceJSONBTransformQuantity$zodSchema.optional(),
56169
56189
  trial_period: int().optional(),
56170
- type: TypesPriceType$zodSchema.optional(),
56190
+ type: PriceType$zodSchema.optional(),
56171
56191
  updated_at: string2().optional(),
56172
56192
  updated_by: string2().optional()
56173
56193
  });
56174
56194
  });
56175
56195
 
56176
- // src/models/typesaddontype.ts
56177
- var TypesAddonType$zodSchema;
56178
- var init_typesaddontype = __esm(() => {
56179
- init_zod();
56180
- TypesAddonType$zodSchema = _enum([
56181
- "onetime",
56182
- "multiple_instance"
56183
- ]);
56184
- });
56185
-
56186
56196
  // src/models/dtoaddonresponse.ts
56187
56197
  var DtoAddonResponse$zodSchema;
56188
56198
  var init_dtoaddonresponse = __esm(() => {
56189
56199
  init_zod();
56200
+ init_addontype();
56190
56201
  init_dtoentitlementresponse();
56191
56202
  init_dtopriceresponse();
56192
- init_typesaddontype();
56193
- init_typesstatus();
56203
+ init_status();
56194
56204
  DtoAddonResponse$zodSchema = object({
56195
56205
  created_at: string2().optional(),
56196
56206
  created_by: string2().optional(),
@@ -56202,19 +56212,19 @@ var init_dtoaddonresponse = __esm(() => {
56202
56212
  metadata: record(string2(), any()).optional(),
56203
56213
  name: string2().optional(),
56204
56214
  prices: array(lazy(() => DtoPriceResponse$zodSchema)).optional(),
56205
- status: TypesStatus$zodSchema.optional(),
56215
+ status: Status$zodSchema.optional(),
56206
56216
  tenant_id: string2().optional(),
56207
- type: TypesAddonType$zodSchema.optional(),
56217
+ type: AddonType$zodSchema.optional(),
56208
56218
  updated_at: string2().optional(),
56209
56219
  updated_by: string2().optional()
56210
56220
  });
56211
56221
  });
56212
56222
 
56213
- // src/models/typesentitlemententitytype.ts
56214
- var TypesEntitlementEntityType$zodSchema;
56215
- var init_typesentitlemententitytype = __esm(() => {
56223
+ // src/models/entitlemententitytype.ts
56224
+ var EntitlementEntityType$zodSchema;
56225
+ var init_entitlemententitytype = __esm(() => {
56216
56226
  init_zod();
56217
- TypesEntitlementEntityType$zodSchema = _enum([
56227
+ EntitlementEntityType$zodSchema = _enum([
56218
56228
  "PLAN",
56219
56229
  "SUBSCRIPTION",
56220
56230
  "ADDON"
@@ -56228,10 +56238,10 @@ var init_dtoentitlementresponse = __esm(() => {
56228
56238
  init_dtoaddonresponse();
56229
56239
  init_dtofeatureresponse();
56230
56240
  init_dtoplanresponse();
56231
- init_typesentitlemententitytype();
56232
- init_typesentitlementusageresetperiod();
56233
- init_typesfeaturetype();
56234
- init_typesstatus();
56241
+ init_entitlemententitytype();
56242
+ init_entitlementusageresetperiod();
56243
+ init_featuretype();
56244
+ init_status();
56235
56245
  DtoEntitlementResponse$zodSchema = object({
56236
56246
  addon: lazy(() => DtoAddonResponse$zodSchema).optional(),
56237
56247
  created_at: string2().optional(),
@@ -56239,11 +56249,11 @@ var init_dtoentitlementresponse = __esm(() => {
56239
56249
  display_order: int().optional(),
56240
56250
  end_date: string2().optional(),
56241
56251
  entity_id: string2().optional(),
56242
- entity_type: TypesEntitlementEntityType$zodSchema.optional(),
56252
+ entity_type: EntitlementEntityType$zodSchema.optional(),
56243
56253
  environment_id: string2().optional(),
56244
56254
  feature: DtoFeatureResponse$zodSchema.optional(),
56245
56255
  feature_id: string2().optional(),
56246
- feature_type: TypesFeatureType$zodSchema.optional(),
56256
+ feature_type: FeatureType$zodSchema.optional(),
56247
56257
  id: string2().optional(),
56248
56258
  is_enabled: boolean2().optional(),
56249
56259
  is_soft_limit: boolean2().optional(),
@@ -56252,12 +56262,12 @@ var init_dtoentitlementresponse = __esm(() => {
56252
56262
  plan_id: string2().optional(),
56253
56263
  start_date: string2().optional(),
56254
56264
  static_value: string2().optional(),
56255
- status: TypesStatus$zodSchema.optional(),
56265
+ status: Status$zodSchema.optional(),
56256
56266
  tenant_id: string2().optional(),
56257
56267
  updated_at: string2().optional(),
56258
56268
  updated_by: string2().optional(),
56259
56269
  usage_limit: int().optional(),
56260
- usage_reset_period: TypesEntitlementUsageResetPeriod$zodSchema.optional()
56270
+ usage_reset_period: EntitlementUsageResetPeriod$zodSchema.optional()
56261
56271
  });
56262
56272
  });
56263
56273
 
@@ -56268,7 +56278,7 @@ var init_dtoplanresponse = __esm(() => {
56268
56278
  init_dtocreditgrantresponse();
56269
56279
  init_dtoentitlementresponse();
56270
56280
  init_dtopriceresponse();
56271
- init_typesstatus();
56281
+ init_status();
56272
56282
  DtoPlanResponse$zodSchema = object({
56273
56283
  created_at: string2().optional(),
56274
56284
  created_by: string2().optional(),
@@ -56282,7 +56292,7 @@ var init_dtoplanresponse = __esm(() => {
56282
56292
  metadata: record(string2(), string2()).optional(),
56283
56293
  name: string2().optional(),
56284
56294
  prices: array(lazy(() => DtoPriceResponse$zodSchema)).optional(),
56285
- status: TypesStatus$zodSchema.optional(),
56295
+ status: Status$zodSchema.optional(),
56286
56296
  tenant_id: string2().optional(),
56287
56297
  updated_at: string2().optional(),
56288
56298
  updated_by: string2().optional()
@@ -56293,7 +56303,7 @@ var init_dtoplanresponse = __esm(() => {
56293
56303
  var DtoSubscriptionPhaseResponse$zodSchema;
56294
56304
  var init_dtosubscriptionphaseresponse = __esm(() => {
56295
56305
  init_zod();
56296
- init_typesstatus();
56306
+ init_status();
56297
56307
  DtoSubscriptionPhaseResponse$zodSchema = object({
56298
56308
  created_at: string2().optional(),
56299
56309
  created_by: string2().optional(),
@@ -56302,7 +56312,7 @@ var init_dtosubscriptionphaseresponse = __esm(() => {
56302
56312
  id: string2().optional(),
56303
56313
  metadata: record(string2(), string2()).optional(),
56304
56314
  start_date: string2().optional(),
56305
- status: TypesStatus$zodSchema.optional(),
56315
+ status: Status$zodSchema.optional(),
56306
56316
  subscription_id: string2().optional(),
56307
56317
  tenant_id: string2().optional(),
56308
56318
  updated_at: string2().optional(),
@@ -56310,35 +56320,59 @@ var init_dtosubscriptionphaseresponse = __esm(() => {
56310
56320
  });
56311
56321
  });
56312
56322
 
56313
- // src/models/typespausemode.ts
56314
- var TypesPauseMode$zodSchema;
56315
- var init_typespausemode = __esm(() => {
56323
+ // src/models/pausestatus.ts
56324
+ var PauseStatus$zodSchema;
56325
+ var init_pausestatus = __esm(() => {
56316
56326
  init_zod();
56317
- TypesPauseMode$zodSchema = _enum([
56318
- "immediate",
56327
+ PauseStatus$zodSchema = _enum([
56328
+ "none",
56329
+ "active",
56319
56330
  "scheduled",
56320
- "period_end"
56331
+ "completed",
56332
+ "cancelled"
56321
56333
  ]);
56322
56334
  });
56323
56335
 
56324
- // src/models/typespausestatus.ts
56325
- var TypesPauseStatus$zodSchema;
56326
- var init_typespausestatus = __esm(() => {
56336
+ // src/models/paymentterms.ts
56337
+ var PaymentTerms$zodSchema;
56338
+ var init_paymentterms = __esm(() => {
56327
56339
  init_zod();
56328
- TypesPauseStatus$zodSchema = _enum([
56329
- "none",
56330
- "active",
56340
+ PaymentTerms$zodSchema = _enum([
56341
+ "15 NET",
56342
+ "30 NET",
56343
+ "45 NET",
56344
+ "60 NET",
56345
+ "75 NET",
56346
+ "90 NET"
56347
+ ]);
56348
+ });
56349
+
56350
+ // src/models/prorationbehavior.ts
56351
+ var ProrationBehavior$zodSchema;
56352
+ var init_prorationbehavior = __esm(() => {
56353
+ init_zod();
56354
+ ProrationBehavior$zodSchema = _enum([
56355
+ "create_prorations",
56356
+ "none"
56357
+ ]);
56358
+ });
56359
+
56360
+ // src/models/pausemode.ts
56361
+ var PauseMode$zodSchema;
56362
+ var init_pausemode = __esm(() => {
56363
+ init_zod();
56364
+ PauseMode$zodSchema = _enum([
56365
+ "immediate",
56331
56366
  "scheduled",
56332
- "completed",
56333
- "cancelled"
56367
+ "period_end"
56334
56368
  ]);
56335
56369
  });
56336
56370
 
56337
- // src/models/typesresumemode.ts
56338
- var TypesResumeMode$zodSchema;
56339
- var init_typesresumemode = __esm(() => {
56371
+ // src/models/resumemode.ts
56372
+ var ResumeMode$zodSchema;
56373
+ var init_resumemode = __esm(() => {
56340
56374
  init_zod();
56341
- TypesResumeMode$zodSchema = _enum([
56375
+ ResumeMode$zodSchema = _enum([
56342
56376
  "immediate",
56343
56377
  "scheduled",
56344
56378
  "auto"
@@ -56349,10 +56383,10 @@ var init_typesresumemode = __esm(() => {
56349
56383
  var SubscriptionSubscriptionPause$zodSchema;
56350
56384
  var init_subscriptionsubscriptionpause = __esm(() => {
56351
56385
  init_zod();
56352
- init_typespausemode();
56353
- init_typespausestatus();
56354
- init_typesresumemode();
56355
- init_typesstatus();
56386
+ init_pausemode();
56387
+ init_pausestatus();
56388
+ init_resumemode();
56389
+ init_status();
56356
56390
  SubscriptionSubscriptionPause$zodSchema = object({
56357
56391
  created_at: string2().optional(),
56358
56392
  created_by: string2().optional(),
@@ -56362,13 +56396,13 @@ var init_subscriptionsubscriptionpause = __esm(() => {
56362
56396
  original_period_end: string2().optional(),
56363
56397
  original_period_start: string2().optional(),
56364
56398
  pause_end: string2().optional(),
56365
- pause_mode: TypesPauseMode$zodSchema.optional(),
56399
+ pause_mode: PauseMode$zodSchema.optional(),
56366
56400
  pause_start: string2().optional(),
56367
- pause_status: TypesPauseStatus$zodSchema.optional(),
56401
+ pause_status: PauseStatus$zodSchema.optional(),
56368
56402
  reason: string2().optional(),
56369
- resume_mode: TypesResumeMode$zodSchema.optional(),
56403
+ resume_mode: ResumeMode$zodSchema.optional(),
56370
56404
  resumed_at: string2().optional(),
56371
- status: TypesStatus$zodSchema.optional(),
56405
+ status: Status$zodSchema.optional(),
56372
56406
  subscription_id: string2().optional(),
56373
56407
  tenant_id: string2().optional(),
56374
56408
  updated_at: string2().optional(),
@@ -56376,73 +56410,39 @@ var init_subscriptionsubscriptionpause = __esm(() => {
56376
56410
  });
56377
56411
  });
56378
56412
 
56379
- // src/models/typesbillingcycle.ts
56380
- var TypesBillingCycle$zodSchema;
56381
- var init_typesbillingcycle = __esm(() => {
56382
- init_zod();
56383
- TypesBillingCycle$zodSchema = _enum([
56384
- "anniversary",
56385
- "calendar"
56386
- ]);
56387
- });
56388
-
56389
- // src/models/typespaymentterms.ts
56390
- var TypesPaymentTerms$zodSchema;
56391
- var init_typespaymentterms = __esm(() => {
56392
- init_zod();
56393
- TypesPaymentTerms$zodSchema = _enum([
56394
- "15 NET",
56395
- "30 NET",
56396
- "45 NET",
56397
- "60 NET",
56398
- "75 NET",
56399
- "90 NET"
56400
- ]);
56401
- });
56402
-
56403
- // src/models/typesprorationbehavior.ts
56404
- var TypesProrationBehavior$zodSchema;
56405
- var init_typesprorationbehavior = __esm(() => {
56406
- init_zod();
56407
- TypesProrationBehavior$zodSchema = _enum([
56408
- "create_prorations",
56409
- "none"
56410
- ]);
56411
- });
56412
-
56413
56413
  // src/models/dtosubscriptionresponse.ts
56414
56414
  var DtoSubscriptionResponse$zodSchema;
56415
56415
  var init_dtosubscriptionresponse = __esm(() => {
56416
56416
  init_zod();
56417
+ init_billingcadence();
56418
+ init_billingcycle();
56419
+ init_billingperiod();
56417
56420
  init_dtocouponassociationresponse();
56418
56421
  init_dtocreditgrantresponse();
56419
56422
  init_dtocustomerresponse();
56420
56423
  init_dtoinvoiceresponse();
56421
56424
  init_dtoplanresponse();
56422
56425
  init_dtosubscriptionphaseresponse();
56426
+ init_pausestatus();
56427
+ init_paymentterms();
56428
+ init_prorationbehavior();
56429
+ init_status();
56430
+ init_subscriptionstatus();
56423
56431
  init_subscriptionsubscriptionlineitem();
56424
56432
  init_subscriptionsubscriptionpause();
56425
- init_typesbillingcadence();
56426
- init_typesbillingcycle();
56427
- init_typesbillingperiod();
56428
- init_typespausestatus();
56429
- init_typespaymentterms();
56430
- init_typesprorationbehavior();
56431
- init_typesstatus();
56432
- init_typessubscriptionstatus();
56433
56433
  DtoSubscriptionResponse$zodSchema = object({
56434
56434
  active_pause_id: string2().optional(),
56435
56435
  billing_anchor: string2().optional(),
56436
- billing_cadence: TypesBillingCadence$zodSchema.optional(),
56437
- billing_cycle: TypesBillingCycle$zodSchema.optional(),
56438
- billing_period: TypesBillingPeriod$zodSchema.optional(),
56436
+ billing_cadence: BillingCadence$zodSchema.optional(),
56437
+ billing_cycle: BillingCycle$zodSchema.optional(),
56438
+ billing_period: BillingPeriod$zodSchema.optional(),
56439
56439
  billing_period_count: int().optional(),
56440
56440
  cancel_at: string2().optional(),
56441
56441
  cancel_at_period_end: boolean2().optional(),
56442
56442
  cancelled_at: string2().optional(),
56443
56443
  collection_method: string2().optional(),
56444
56444
  commitment_amount: string2().optional(),
56445
- commitment_duration: TypesBillingPeriod$zodSchema.optional(),
56445
+ commitment_duration: BillingPeriod$zodSchema.optional(),
56446
56446
  coupon_associations: array(DtoCouponAssociationResponse$zodSchema).optional(),
56447
56447
  created_at: string2().optional(),
56448
56448
  created_by: string2().optional(),
@@ -56465,17 +56465,17 @@ var init_dtosubscriptionresponse = __esm(() => {
56465
56465
  metadata: record(string2(), string2()).optional(),
56466
56466
  overage_factor: string2().optional(),
56467
56467
  parent_subscription_id: string2().optional(),
56468
- pause_status: TypesPauseStatus$zodSchema.optional(),
56468
+ pause_status: PauseStatus$zodSchema.optional(),
56469
56469
  pauses: array(SubscriptionSubscriptionPause$zodSchema).optional(),
56470
56470
  payment_behavior: string2().optional(),
56471
- payment_terms: TypesPaymentTerms$zodSchema.optional(),
56471
+ payment_terms: PaymentTerms$zodSchema.optional(),
56472
56472
  phases: array(DtoSubscriptionPhaseResponse$zodSchema).optional(),
56473
56473
  plan: DtoPlanResponse$zodSchema.optional(),
56474
56474
  plan_id: string2().optional(),
56475
- proration_behavior: TypesProrationBehavior$zodSchema.optional(),
56475
+ proration_behavior: ProrationBehavior$zodSchema.optional(),
56476
56476
  start_date: string2().optional(),
56477
- status: TypesStatus$zodSchema.optional(),
56478
- subscription_status: TypesSubscriptionStatus$zodSchema.optional(),
56477
+ status: Status$zodSchema.optional(),
56478
+ subscription_status: SubscriptionStatus$zodSchema.optional(),
56479
56479
  tenant_id: string2().optional(),
56480
56480
  trial_end: string2().optional(),
56481
56481
  trial_start: string2().optional(),
@@ -56485,11 +56485,11 @@ var init_dtosubscriptionresponse = __esm(() => {
56485
56485
  });
56486
56486
  });
56487
56487
 
56488
- // src/models/typestaxrateentitytype.ts
56489
- var TypesTaxRateEntityType$zodSchema;
56490
- var init_typestaxrateentitytype = __esm(() => {
56488
+ // src/models/taxrateentitytype.ts
56489
+ var TaxRateEntityType$zodSchema;
56490
+ var init_taxrateentitytype = __esm(() => {
56491
56491
  init_zod();
56492
- TypesTaxRateEntityType$zodSchema = _enum([
56492
+ TaxRateEntityType$zodSchema = _enum([
56493
56493
  "customer",
56494
56494
  "subscription",
56495
56495
  "invoice",
@@ -56502,20 +56502,20 @@ var DtoTaxAppliedResponse$zodSchema;
56502
56502
  var init_dtotaxappliedresponse = __esm(() => {
56503
56503
  init_zod();
56504
56504
  init_dtotaxrateresponse();
56505
- init_typesstatus();
56506
- init_typestaxrateentitytype();
56505
+ init_status();
56506
+ init_taxrateentitytype();
56507
56507
  DtoTaxAppliedResponse$zodSchema = object({
56508
56508
  applied_at: string2().optional(),
56509
56509
  created_at: string2().optional(),
56510
56510
  created_by: string2().optional(),
56511
56511
  currency: string2().optional(),
56512
56512
  entity_id: string2().optional(),
56513
- entity_type: TypesTaxRateEntityType$zodSchema.optional(),
56513
+ entity_type: TaxRateEntityType$zodSchema.optional(),
56514
56514
  environment_id: string2().optional(),
56515
56515
  id: string2().optional(),
56516
56516
  idempotency_key: string2().optional(),
56517
56517
  metadata: record(string2(), string2()).optional(),
56518
- status: TypesStatus$zodSchema.optional(),
56518
+ status: Status$zodSchema.optional(),
56519
56519
  tax_amount: string2().optional(),
56520
56520
  tax_association_id: string2().optional(),
56521
56521
  tax_rate: DtoTaxRateResponse$zodSchema.optional(),
@@ -56536,10 +56536,10 @@ var init_dtoinvoiceresponse = __esm(() => {
56536
56536
  init_dtoinvoicelineitemresponse();
56537
56537
  init_dtosubscriptionresponse();
56538
56538
  init_dtotaxappliedresponse();
56539
- init_typesinvoicestatus();
56540
- init_typesinvoicetype();
56541
- init_typespaymentstatus();
56542
- init_typesstatus();
56539
+ init_invoicestatus();
56540
+ init_invoicetype();
56541
+ init_paymentstatus();
56542
+ init_status();
56543
56543
  DtoInvoiceResponse$zodSchema = object({
56544
56544
  adjustment_amount: string2().optional(),
56545
56545
  amount_due: string2().optional(),
@@ -56562,17 +56562,17 @@ var init_dtoinvoiceresponse = __esm(() => {
56562
56562
  idempotency_key: string2().optional(),
56563
56563
  invoice_number: string2().optional(),
56564
56564
  invoice_pdf_url: string2().optional(),
56565
- invoice_status: TypesInvoiceStatus$zodSchema.optional(),
56566
- invoice_type: TypesInvoiceType$zodSchema.optional(),
56565
+ invoice_status: InvoiceStatus$zodSchema.optional(),
56566
+ invoice_type: InvoiceType$zodSchema.optional(),
56567
56567
  line_items: array(DtoInvoiceLineItemResponse$zodSchema).optional(),
56568
56568
  metadata: record(string2(), string2()).optional(),
56569
56569
  overpaid_amount: string2().optional(),
56570
56570
  paid_at: string2().optional(),
56571
- payment_status: TypesPaymentStatus$zodSchema.optional(),
56571
+ payment_status: PaymentStatus$zodSchema.optional(),
56572
56572
  period_end: string2().optional(),
56573
56573
  period_start: string2().optional(),
56574
56574
  refunded_amount: string2().optional(),
56575
- status: TypesStatus$zodSchema.optional(),
56575
+ status: Status$zodSchema.optional(),
56576
56576
  subscription: lazy(() => DtoSubscriptionResponse$zodSchema).optional(),
56577
56577
  subscription_id: string2().optional(),
56578
56578
  subtotal: string2().optional(),
@@ -56976,43 +56976,43 @@ Use when showing a customer what they will be charged (e.g. preview before check
56976
56976
  };
56977
56977
  });
56978
56978
 
56979
- // src/models/typesinvoicefilter.ts
56980
- var TypesInvoiceFilterOrder$zodSchema, TypesInvoiceFilter$zodSchema;
56981
- var init_typesinvoicefilter = __esm(() => {
56979
+ // src/models/invoicefilter.ts
56980
+ var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
56981
+ var init_invoicefilter = __esm(() => {
56982
56982
  init_zod();
56983
- init_typesfiltercondition();
56984
- init_typesinvoicestatus();
56985
- init_typesinvoicetype();
56986
- init_typespaymentstatus();
56987
- init_typessortcondition();
56988
- init_typesstatus();
56989
- TypesInvoiceFilterOrder$zodSchema = _enum([
56983
+ init_filtercondition();
56984
+ init_invoicestatus();
56985
+ init_invoicetype();
56986
+ init_paymentstatus();
56987
+ init_sortcondition();
56988
+ init_status();
56989
+ InvoiceFilterOrder$zodSchema = _enum([
56990
56990
  "asc",
56991
56991
  "desc"
56992
56992
  ]);
56993
- TypesInvoiceFilter$zodSchema = object({
56993
+ InvoiceFilter$zodSchema = object({
56994
56994
  amount_due_gt: number2().optional(),
56995
56995
  amount_remaining_gt: number2().optional(),
56996
56996
  customer_id: string2().optional(),
56997
56997
  end_time: string2().optional(),
56998
56998
  expand: string2().optional(),
56999
56999
  external_customer_id: string2().optional(),
57000
- filters: array(TypesFilterCondition$zodSchema).optional(),
57000
+ filters: array(FilterCondition$zodSchema).optional(),
57001
57001
  invoice_ids: array(string2()).optional(),
57002
- invoice_status: array(TypesInvoiceStatus$zodSchema).optional(),
57003
- invoice_type: TypesInvoiceType$zodSchema.optional(),
57002
+ invoice_status: array(InvoiceStatus$zodSchema).optional(),
57003
+ invoice_type: InvoiceType$zodSchema.optional(),
57004
57004
  limit: int().optional(),
57005
57005
  offset: int().optional(),
57006
- order: TypesInvoiceFilterOrder$zodSchema.optional(),
57007
- payment_status: array(TypesPaymentStatus$zodSchema).optional(),
57006
+ order: InvoiceFilterOrder$zodSchema.optional(),
57007
+ payment_status: array(PaymentStatus$zodSchema).optional(),
57008
57008
  period_end_gte: string2().optional(),
57009
57009
  period_end_lte: string2().optional(),
57010
57010
  period_start_gte: string2().optional(),
57011
57011
  period_start_lte: string2().optional(),
57012
57012
  skip_line_items: boolean2().optional(),
57013
- sort: array(TypesSortCondition$zodSchema).optional(),
57013
+ sort: array(SortCondition$zodSchema).optional(),
57014
57014
  start_time: string2().optional(),
57015
- status: TypesStatus$zodSchema.optional(),
57015
+ status: Status$zodSchema.optional(),
57016
57016
  subscription_id: string2().optional()
57017
57017
  });
57018
57018
  });
@@ -57022,7 +57022,7 @@ function invoicesQueryInvoice(client$, request, options) {
57022
57022
  return new APIPromise($do25(client$, request, options));
57023
57023
  }
57024
57024
  async function $do25(client$, request, options) {
57025
- const parsed$ = safeParse4(request, (value$) => TypesInvoiceFilter$zodSchema.parse(value$), "Input validation failed");
57025
+ const parsed$ = safeParse4(request, (value$) => InvoiceFilter$zodSchema.parse(value$), "Input validation failed");
57026
57026
  if (!parsed$.ok) {
57027
57027
  return [parsed$, { status: "invalid" }];
57028
57028
  }
@@ -57086,7 +57086,7 @@ var init_invoicesQueryInvoice = __esm(() => {
57086
57086
  init_schemas4();
57087
57087
  init_security();
57088
57088
  init_url();
57089
- init_typesinvoicefilter();
57089
+ init_invoicefilter();
57090
57090
  init_async();
57091
57091
  });
57092
57092
 
@@ -57094,10 +57094,10 @@ var init_invoicesQueryInvoice = __esm(() => {
57094
57094
  var args24, tool$invoicesQueryInvoice;
57095
57095
  var init_invoicesQueryInvoice2 = __esm(() => {
57096
57096
  init_invoicesQueryInvoice();
57097
- init_typesinvoicefilter();
57097
+ init_invoicefilter();
57098
57098
  init_tools();
57099
57099
  args24 = {
57100
- request: TypesInvoiceFilter$zodSchema
57100
+ request: InvoiceFilter$zodSchema
57101
57101
  };
57102
57102
  tool$invoicesQueryInvoice = {
57103
57103
  name: "query-invoice",
@@ -57532,10 +57532,10 @@ Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For pa
57532
57532
  var DtoUpdatePaymentStatusRequest$zodSchema;
57533
57533
  var init_dtoupdatepaymentstatusrequest = __esm(() => {
57534
57534
  init_zod();
57535
- init_typespaymentstatus();
57535
+ init_paymentstatus();
57536
57536
  DtoUpdatePaymentStatusRequest$zodSchema = object({
57537
57537
  amount: string2().optional(),
57538
- payment_status: TypesPaymentStatus$zodSchema
57538
+ payment_status: PaymentStatus$zodSchema
57539
57539
  });
57540
57540
  });
57541
57541
 
@@ -57798,37 +57798,1973 @@ Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid
57798
57798
  };
57799
57799
  });
57800
57800
 
57801
- // src/mcp-server/server.ts
57802
- function createMCPServer(deps) {
57803
- const server = new McpServer({
57804
- name: "Flexprice",
57805
- version: "0.0.47"
57801
+ // src/models/dtocreateplanrequest.ts
57802
+ var DtoCreatePlanRequest$zodSchema;
57803
+ var init_dtocreateplanrequest = __esm(() => {
57804
+ init_zod();
57805
+ DtoCreatePlanRequest$zodSchema = object({
57806
+ description: string2().optional(),
57807
+ display_order: int().optional(),
57808
+ lookup_key: string2().optional(),
57809
+ metadata: record(string2(), string2()).optional(),
57810
+ name: string2()
57806
57811
  });
57807
- const getClient = deps.getSDK || (() => new FlexpriceCore({
57808
- security: deps.security,
57809
- serverURL: deps.serverURL,
57810
- serverIdx: deps.serverIdx,
57811
- debugLogger: deps.logger.level === "debug" ? {
57812
- log: (...args30) => console.log(...args30),
57813
- group: (...args30) => console.group(...args30),
57814
- groupEnd: (...args30) => console.groupEnd(...args30)
57815
- } : undefined
57812
+ });
57813
+
57814
+ // src/funcs/plansCreatePlan.ts
57815
+ function plansCreatePlan(client$, request, options) {
57816
+ return new APIPromise($do31(client$, request, options));
57817
+ }
57818
+ async function $do31(client$, request, options) {
57819
+ const parsed$ = safeParse4(request, (value$) => DtoCreatePlanRequest$zodSchema.parse(value$), "Input validation failed");
57820
+ if (!parsed$.ok) {
57821
+ return [parsed$, { status: "invalid" }];
57822
+ }
57823
+ const payload$ = parsed$.value;
57824
+ const body$ = encodeJSON("body", payload$, { explode: true });
57825
+ const path$ = pathToFunc("/plans")();
57826
+ const headers$ = new Headers(compactMap({
57827
+ "Content-Type": "application/json",
57828
+ Accept: "application/json"
57816
57829
  }));
57817
- const scopes = new Set(deps.scopes);
57818
- const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
57819
- const [tool, tools, toolMap] = createRegisterTool(deps.logger, server, getClient, scopes, allowedTools, deps.dynamic);
57820
- const resource = createRegisterResource(deps.logger, server, getClient, scopes);
57821
- const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, getClient, scopes);
57822
- const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
57823
- const register = { tool, resource, resourceTemplate, prompt };
57824
- tool(tool$customersUpdateCustomer);
57825
- tool(tool$customersCreateCustomer);
57826
- tool(tool$customersGetCustomerByExternalId);
57827
- tool(tool$customersQueryCustomer);
57828
- tool(tool$customersGetCustomerUsageSummary);
57829
- tool(tool$customersGetCustomer);
57830
- tool(tool$customersDeleteCustomer);
57831
- tool(tool$customersGetCustomerEntitlements);
57830
+ const securityInput = await extractSecurity(client$._options.security);
57831
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57832
+ const context = {
57833
+ options: client$._options,
57834
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57835
+ operationID: "createPlan",
57836
+ oAuth2Scopes: null,
57837
+ resolvedSecurity: requestSecurity,
57838
+ securitySource: client$._options.security,
57839
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57840
+ retryCodes: options?.retryCodes || [
57841
+ "429",
57842
+ "500",
57843
+ "502",
57844
+ "503",
57845
+ "504"
57846
+ ]
57847
+ };
57848
+ const requestRes = client$._createRequest(context, {
57849
+ security: requestSecurity,
57850
+ method: "POST",
57851
+ baseURL: options?.serverURL,
57852
+ path: path$,
57853
+ headers: headers$,
57854
+ body: body$,
57855
+ userAgent: client$._options.userAgent,
57856
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57857
+ }, options);
57858
+ if (!requestRes.ok) {
57859
+ return [requestRes, { status: "invalid" }];
57860
+ }
57861
+ const req$ = requestRes.value;
57862
+ const doResult = await client$._do(req$, {
57863
+ context,
57864
+ errorCodes: [],
57865
+ retryConfig: context.retryConfig,
57866
+ retryCodes: context.retryCodes
57867
+ });
57868
+ if (!doResult.ok) {
57869
+ return [doResult, { status: "request-error", request: req$ }];
57870
+ }
57871
+ return [doResult, {
57872
+ status: "complete",
57873
+ request: req$,
57874
+ response: doResult.value
57875
+ }];
57876
+ }
57877
+ var init_plansCreatePlan = __esm(() => {
57878
+ init_encodings();
57879
+ init_primitives();
57880
+ init_schemas4();
57881
+ init_security();
57882
+ init_url();
57883
+ init_dtocreateplanrequest();
57884
+ init_async();
57885
+ });
57886
+
57887
+ // src/mcp-server/tools/plansCreatePlan.ts
57888
+ var args30, tool$plansCreatePlan;
57889
+ var init_plansCreatePlan2 = __esm(() => {
57890
+ init_plansCreatePlan();
57891
+ init_dtocreateplanrequest();
57892
+ init_tools();
57893
+ args30 = {
57894
+ request: DtoCreatePlanRequest$zodSchema
57895
+ };
57896
+ tool$plansCreatePlan = {
57897
+ name: "create-plan",
57898
+ description: `Create plan
57899
+
57900
+ Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices and entitlements; customers subscribe to plans.`,
57901
+ annotations: {
57902
+ title: "",
57903
+ destructiveHint: false,
57904
+ idempotentHint: false,
57905
+ openWorldHint: false,
57906
+ readOnlyHint: false
57907
+ },
57908
+ args: args30,
57909
+ tool: async (client, args31, ctx) => {
57910
+ const [result] = await plansCreatePlan(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57911
+ if (!result.ok) {
57912
+ return {
57913
+ content: [{ type: "text", text: result.error.message }],
57914
+ isError: true
57915
+ };
57916
+ }
57917
+ return formatResult(result.value);
57918
+ }
57919
+ };
57920
+ });
57921
+
57922
+ // src/models/deleteplanop.ts
57923
+ var DeletePlanRequest$zodSchema, DeletePlanResponse$zodSchema;
57924
+ var init_deleteplanop = __esm(() => {
57925
+ init_zod();
57926
+ init_dtosuccessresponse();
57927
+ init_errorserrorresponse();
57928
+ DeletePlanRequest$zodSchema = object({
57929
+ id: string2().describe("Plan ID")
57930
+ });
57931
+ DeletePlanResponse$zodSchema = union([
57932
+ DtoSuccessResponse$zodSchema,
57933
+ ErrorsErrorResponse$zodSchema
57934
+ ]);
57935
+ });
57936
+
57937
+ // src/funcs/plansDeletePlan.ts
57938
+ function plansDeletePlan(client$, request, options) {
57939
+ return new APIPromise($do32(client$, request, options));
57940
+ }
57941
+ async function $do32(client$, request, options) {
57942
+ const parsed$ = safeParse4(request, (value$) => DeletePlanRequest$zodSchema.parse(value$), "Input validation failed");
57943
+ if (!parsed$.ok) {
57944
+ return [parsed$, { status: "invalid" }];
57945
+ }
57946
+ const payload$ = parsed$.value;
57947
+ const body$ = null;
57948
+ const pathParams$ = {
57949
+ id: encodeSimple("id", payload$.id, {
57950
+ explode: false,
57951
+ charEncoding: "percent"
57952
+ })
57953
+ };
57954
+ const path$ = pathToFunc("/plans/{id}")(pathParams$);
57955
+ const headers$ = new Headers(compactMap({
57956
+ Accept: "application/json"
57957
+ }));
57958
+ const securityInput = await extractSecurity(client$._options.security);
57959
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57960
+ const context = {
57961
+ options: client$._options,
57962
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57963
+ operationID: "deletePlan",
57964
+ oAuth2Scopes: null,
57965
+ resolvedSecurity: requestSecurity,
57966
+ securitySource: client$._options.security,
57967
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57968
+ retryCodes: options?.retryCodes || [
57969
+ "429",
57970
+ "500",
57971
+ "502",
57972
+ "503",
57973
+ "504"
57974
+ ]
57975
+ };
57976
+ const requestRes = client$._createRequest(context, {
57977
+ security: requestSecurity,
57978
+ method: "DELETE",
57979
+ baseURL: options?.serverURL,
57980
+ path: path$,
57981
+ headers: headers$,
57982
+ body: body$,
57983
+ userAgent: client$._options.userAgent,
57984
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57985
+ }, options);
57986
+ if (!requestRes.ok) {
57987
+ return [requestRes, { status: "invalid" }];
57988
+ }
57989
+ const req$ = requestRes.value;
57990
+ const doResult = await client$._do(req$, {
57991
+ context,
57992
+ errorCodes: [],
57993
+ retryConfig: context.retryConfig,
57994
+ retryCodes: context.retryCodes
57995
+ });
57996
+ if (!doResult.ok) {
57997
+ return [doResult, { status: "request-error", request: req$ }];
57998
+ }
57999
+ return [doResult, {
58000
+ status: "complete",
58001
+ request: req$,
58002
+ response: doResult.value
58003
+ }];
58004
+ }
58005
+ var init_plansDeletePlan = __esm(() => {
58006
+ init_encodings();
58007
+ init_primitives();
58008
+ init_schemas4();
58009
+ init_security();
58010
+ init_url();
58011
+ init_deleteplanop();
58012
+ init_async();
58013
+ });
58014
+
58015
+ // src/mcp-server/tools/plansDeletePlan.ts
58016
+ var args31, tool$plansDeletePlan;
58017
+ var init_plansDeletePlan2 = __esm(() => {
58018
+ init_plansDeletePlan();
58019
+ init_deleteplanop();
58020
+ init_tools();
58021
+ args31 = {
58022
+ request: DeletePlanRequest$zodSchema
58023
+ };
58024
+ tool$plansDeletePlan = {
58025
+ name: "delete-plan",
58026
+ description: `Delete plan
58027
+
58028
+ Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message.`,
58029
+ annotations: {
58030
+ title: "",
58031
+ destructiveHint: false,
58032
+ idempotentHint: false,
58033
+ openWorldHint: false,
58034
+ readOnlyHint: false
58035
+ },
58036
+ args: args31,
58037
+ tool: async (client, args32, ctx) => {
58038
+ const [result] = await plansDeletePlan(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58039
+ if (!result.ok) {
58040
+ return {
58041
+ content: [{ type: "text", text: result.error.message }],
58042
+ isError: true
58043
+ };
58044
+ }
58045
+ return formatResult(result.value);
58046
+ }
58047
+ };
58048
+ });
58049
+
58050
+ // src/models/getplanop.ts
58051
+ var GetPlanRequest$zodSchema, GetPlanResponse$zodSchema;
58052
+ var init_getplanop = __esm(() => {
58053
+ init_zod();
58054
+ init_dtoplanresponse();
58055
+ init_errorserrorresponse();
58056
+ GetPlanRequest$zodSchema = object({
58057
+ id: string2().describe("Plan ID")
58058
+ });
58059
+ GetPlanResponse$zodSchema = union([
58060
+ DtoPlanResponse$zodSchema,
58061
+ ErrorsErrorResponse$zodSchema
58062
+ ]);
58063
+ });
58064
+
58065
+ // src/funcs/plansGetPlan.ts
58066
+ function plansGetPlan(client$, request, options) {
58067
+ return new APIPromise($do33(client$, request, options));
58068
+ }
58069
+ async function $do33(client$, request, options) {
58070
+ const parsed$ = safeParse4(request, (value$) => GetPlanRequest$zodSchema.parse(value$), "Input validation failed");
58071
+ if (!parsed$.ok) {
58072
+ return [parsed$, { status: "invalid" }];
58073
+ }
58074
+ const payload$ = parsed$.value;
58075
+ const body$ = null;
58076
+ const pathParams$ = {
58077
+ id: encodeSimple("id", payload$.id, {
58078
+ explode: false,
58079
+ charEncoding: "percent"
58080
+ })
58081
+ };
58082
+ const path$ = pathToFunc("/plans/{id}")(pathParams$);
58083
+ const headers$ = new Headers(compactMap({
58084
+ Accept: "application/json"
58085
+ }));
58086
+ const securityInput = await extractSecurity(client$._options.security);
58087
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58088
+ const context = {
58089
+ options: client$._options,
58090
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58091
+ operationID: "getPlan",
58092
+ oAuth2Scopes: null,
58093
+ resolvedSecurity: requestSecurity,
58094
+ securitySource: client$._options.security,
58095
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58096
+ retryCodes: options?.retryCodes || [
58097
+ "429",
58098
+ "500",
58099
+ "502",
58100
+ "503",
58101
+ "504"
58102
+ ]
58103
+ };
58104
+ const requestRes = client$._createRequest(context, {
58105
+ security: requestSecurity,
58106
+ method: "GET",
58107
+ baseURL: options?.serverURL,
58108
+ path: path$,
58109
+ headers: headers$,
58110
+ body: body$,
58111
+ userAgent: client$._options.userAgent,
58112
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58113
+ }, options);
58114
+ if (!requestRes.ok) {
58115
+ return [requestRes, { status: "invalid" }];
58116
+ }
58117
+ const req$ = requestRes.value;
58118
+ const doResult = await client$._do(req$, {
58119
+ context,
58120
+ errorCodes: [],
58121
+ retryConfig: context.retryConfig,
58122
+ retryCodes: context.retryCodes
58123
+ });
58124
+ if (!doResult.ok) {
58125
+ return [doResult, { status: "request-error", request: req$ }];
58126
+ }
58127
+ return [doResult, {
58128
+ status: "complete",
58129
+ request: req$,
58130
+ response: doResult.value
58131
+ }];
58132
+ }
58133
+ var init_plansGetPlan = __esm(() => {
58134
+ init_encodings();
58135
+ init_primitives();
58136
+ init_schemas4();
58137
+ init_security();
58138
+ init_url();
58139
+ init_getplanop();
58140
+ init_async();
58141
+ });
58142
+
58143
+ // src/mcp-server/tools/plansGetPlan.ts
58144
+ var args32, tool$plansGetPlan;
58145
+ var init_plansGetPlan2 = __esm(() => {
58146
+ init_plansGetPlan();
58147
+ init_getplanop();
58148
+ init_tools();
58149
+ args32 = {
58150
+ request: GetPlanRequest$zodSchema
58151
+ };
58152
+ tool$plansGetPlan = {
58153
+ name: "get-plan",
58154
+ description: `Get plan
58155
+
58156
+ Use when you need to load a single plan (e.g. for display or to create a subscription).`,
58157
+ annotations: {
58158
+ title: "",
58159
+ destructiveHint: false,
58160
+ idempotentHint: false,
58161
+ openWorldHint: false,
58162
+ readOnlyHint: false
58163
+ },
58164
+ args: args32,
58165
+ tool: async (client, args33, ctx) => {
58166
+ const [result] = await plansGetPlan(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58167
+ if (!result.ok) {
58168
+ return {
58169
+ content: [{ type: "text", text: result.error.message }],
58170
+ isError: true
58171
+ };
58172
+ }
58173
+ return formatResult(result.value);
58174
+ }
58175
+ };
58176
+ });
58177
+
58178
+ // src/models/dtocloneplanrequest.ts
58179
+ var DtoClonePlanRequest$zodSchema;
58180
+ var init_dtocloneplanrequest = __esm(() => {
58181
+ init_zod();
58182
+ DtoClonePlanRequest$zodSchema = object({
58183
+ description: string2().optional(),
58184
+ display_order: int().optional(),
58185
+ lookup_key: string2().optional(),
58186
+ metadata: record(string2(), string2()).optional(),
58187
+ name: string2().optional()
58188
+ });
58189
+ });
58190
+
58191
+ // src/models/postplansidcloneop.ts
58192
+ var PostPlansIdCloneRequest$zodSchema, PostPlansIdCloneResponse$zodSchema;
58193
+ var init_postplansidcloneop = __esm(() => {
58194
+ init_zod();
58195
+ init_dtocloneplanrequest();
58196
+ init_dtoplanresponse();
58197
+ init_errorserrorresponse();
58198
+ PostPlansIdCloneRequest$zodSchema = object({
58199
+ body: DtoClonePlanRequest$zodSchema,
58200
+ id: string2().describe("Source Plan ID")
58201
+ });
58202
+ PostPlansIdCloneResponse$zodSchema = union([
58203
+ DtoPlanResponse$zodSchema,
58204
+ ErrorsErrorResponse$zodSchema
58205
+ ]);
58206
+ });
58207
+
58208
+ // src/funcs/plansPostPlansIdClone.ts
58209
+ function plansPostPlansIdClone(client$, request, options) {
58210
+ return new APIPromise($do34(client$, request, options));
58211
+ }
58212
+ async function $do34(client$, request, options) {
58213
+ const parsed$ = safeParse4(request, (value$) => PostPlansIdCloneRequest$zodSchema.parse(value$), "Input validation failed");
58214
+ if (!parsed$.ok) {
58215
+ return [parsed$, { status: "invalid" }];
58216
+ }
58217
+ const payload$ = parsed$.value;
58218
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
58219
+ const pathParams$ = {
58220
+ id: encodeSimple("id", payload$.id, {
58221
+ explode: false,
58222
+ charEncoding: "percent"
58223
+ })
58224
+ };
58225
+ const path$ = pathToFunc("/plans/{id}/clone")(pathParams$);
58226
+ const headers$ = new Headers(compactMap({
58227
+ "Content-Type": "application/json",
58228
+ Accept: "application/json"
58229
+ }));
58230
+ const securityInput = await extractSecurity(client$._options.security);
58231
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58232
+ const context = {
58233
+ options: client$._options,
58234
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58235
+ operationID: "post_/plans/{id}/clone",
58236
+ oAuth2Scopes: null,
58237
+ resolvedSecurity: requestSecurity,
58238
+ securitySource: client$._options.security,
58239
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58240
+ retryCodes: options?.retryCodes || [
58241
+ "429",
58242
+ "500",
58243
+ "502",
58244
+ "503",
58245
+ "504"
58246
+ ]
58247
+ };
58248
+ const requestRes = client$._createRequest(context, {
58249
+ security: requestSecurity,
58250
+ method: "POST",
58251
+ baseURL: options?.serverURL,
58252
+ path: path$,
58253
+ headers: headers$,
58254
+ body: body$,
58255
+ userAgent: client$._options.userAgent,
58256
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58257
+ }, options);
58258
+ if (!requestRes.ok) {
58259
+ return [requestRes, { status: "invalid" }];
58260
+ }
58261
+ const req$ = requestRes.value;
58262
+ const doResult = await client$._do(req$, {
58263
+ context,
58264
+ errorCodes: [],
58265
+ retryConfig: context.retryConfig,
58266
+ retryCodes: context.retryCodes
58267
+ });
58268
+ if (!doResult.ok) {
58269
+ return [doResult, { status: "request-error", request: req$ }];
58270
+ }
58271
+ return [doResult, {
58272
+ status: "complete",
58273
+ request: req$,
58274
+ response: doResult.value
58275
+ }];
58276
+ }
58277
+ var init_plansPostPlansIdClone = __esm(() => {
58278
+ init_encodings();
58279
+ init_primitives();
58280
+ init_schemas4();
58281
+ init_security();
58282
+ init_url();
58283
+ init_postplansidcloneop();
58284
+ init_async();
58285
+ });
58286
+
58287
+ // src/mcp-server/tools/plansPostPlansIdClone.ts
58288
+ var args33, tool$plansPostPlansIdClone;
58289
+ var init_plansPostPlansIdClone2 = __esm(() => {
58290
+ init_plansPostPlansIdClone();
58291
+ init_postplansidcloneop();
58292
+ init_tools();
58293
+ args33 = {
58294
+ request: PostPlansIdCloneRequest$zodSchema
58295
+ };
58296
+ tool$plansPostPlansIdClone = {
58297
+ name: "plans-post-plans-id-clone",
58298
+ description: `Clone a plan
58299
+
58300
+ Clone an existing plan, copying its active prices, published entitlements, and published credit grants`,
58301
+ annotations: {
58302
+ title: "",
58303
+ destructiveHint: false,
58304
+ idempotentHint: false,
58305
+ openWorldHint: false,
58306
+ readOnlyHint: false
58307
+ },
58308
+ args: args33,
58309
+ tool: async (client, args34, ctx) => {
58310
+ const [result] = await plansPostPlansIdClone(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58311
+ if (!result.ok) {
58312
+ return {
58313
+ content: [{ type: "text", text: result.error.message }],
58314
+ isError: true
58315
+ };
58316
+ }
58317
+ return formatResult(result.value);
58318
+ }
58319
+ };
58320
+ });
58321
+
58322
+ // src/models/planfilter.ts
58323
+ var PlanFilterOrder$zodSchema, PlanFilter$zodSchema;
58324
+ var init_planfilter = __esm(() => {
58325
+ init_zod();
58326
+ init_filtercondition();
58327
+ init_sortcondition();
58328
+ init_status();
58329
+ PlanFilterOrder$zodSchema = _enum([
58330
+ "asc",
58331
+ "desc"
58332
+ ]);
58333
+ PlanFilter$zodSchema = object({
58334
+ end_time: string2().optional(),
58335
+ expand: string2().optional(),
58336
+ filters: array(FilterCondition$zodSchema).optional(),
58337
+ limit: int().optional(),
58338
+ lookup_key: string2().optional(),
58339
+ offset: int().optional(),
58340
+ order: PlanFilterOrder$zodSchema.optional(),
58341
+ plan_ids: array(string2()).optional(),
58342
+ sort: array(SortCondition$zodSchema).optional(),
58343
+ start_time: string2().optional(),
58344
+ status: Status$zodSchema.optional()
58345
+ });
58346
+ });
58347
+
58348
+ // src/funcs/plansQueryPlan.ts
58349
+ function plansQueryPlan(client$, request, options) {
58350
+ return new APIPromise($do35(client$, request, options));
58351
+ }
58352
+ async function $do35(client$, request, options) {
58353
+ const parsed$ = safeParse4(request, (value$) => PlanFilter$zodSchema.parse(value$), "Input validation failed");
58354
+ if (!parsed$.ok) {
58355
+ return [parsed$, { status: "invalid" }];
58356
+ }
58357
+ const payload$ = parsed$.value;
58358
+ const body$ = encodeJSON("body", payload$, { explode: true });
58359
+ const path$ = pathToFunc("/plans/search")();
58360
+ const headers$ = new Headers(compactMap({
58361
+ "Content-Type": "application/json",
58362
+ Accept: "application/json"
58363
+ }));
58364
+ const securityInput = await extractSecurity(client$._options.security);
58365
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58366
+ const context = {
58367
+ options: client$._options,
58368
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58369
+ operationID: "queryPlan",
58370
+ oAuth2Scopes: null,
58371
+ resolvedSecurity: requestSecurity,
58372
+ securitySource: client$._options.security,
58373
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58374
+ retryCodes: options?.retryCodes || [
58375
+ "429",
58376
+ "500",
58377
+ "502",
58378
+ "503",
58379
+ "504"
58380
+ ]
58381
+ };
58382
+ const requestRes = client$._createRequest(context, {
58383
+ security: requestSecurity,
58384
+ method: "POST",
58385
+ baseURL: options?.serverURL,
58386
+ path: path$,
58387
+ headers: headers$,
58388
+ body: body$,
58389
+ userAgent: client$._options.userAgent,
58390
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58391
+ }, options);
58392
+ if (!requestRes.ok) {
58393
+ return [requestRes, { status: "invalid" }];
58394
+ }
58395
+ const req$ = requestRes.value;
58396
+ const doResult = await client$._do(req$, {
58397
+ context,
58398
+ errorCodes: [],
58399
+ retryConfig: context.retryConfig,
58400
+ retryCodes: context.retryCodes
58401
+ });
58402
+ if (!doResult.ok) {
58403
+ return [doResult, { status: "request-error", request: req$ }];
58404
+ }
58405
+ return [doResult, {
58406
+ status: "complete",
58407
+ request: req$,
58408
+ response: doResult.value
58409
+ }];
58410
+ }
58411
+ var init_plansQueryPlan = __esm(() => {
58412
+ init_encodings();
58413
+ init_primitives();
58414
+ init_schemas4();
58415
+ init_security();
58416
+ init_url();
58417
+ init_planfilter();
58418
+ init_async();
58419
+ });
58420
+
58421
+ // src/mcp-server/tools/plansQueryPlan.ts
58422
+ var args34, tool$plansQueryPlan;
58423
+ var init_plansQueryPlan2 = __esm(() => {
58424
+ init_plansQueryPlan();
58425
+ init_planfilter();
58426
+ init_tools();
58427
+ args34 = {
58428
+ request: PlanFilter$zodSchema
58429
+ };
58430
+ tool$plansQueryPlan = {
58431
+ name: "query-plan",
58432
+ description: `Query plans
58433
+
58434
+ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns a paginated list; supports filtering and sorting.`,
58435
+ annotations: {
58436
+ title: "",
58437
+ destructiveHint: false,
58438
+ idempotentHint: false,
58439
+ openWorldHint: false,
58440
+ readOnlyHint: false
58441
+ },
58442
+ args: args34,
58443
+ tool: async (client, args35, ctx) => {
58444
+ const [result] = await plansQueryPlan(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58445
+ if (!result.ok) {
58446
+ return {
58447
+ content: [{ type: "text", text: result.error.message }],
58448
+ isError: true
58449
+ };
58450
+ }
58451
+ return formatResult(result.value);
58452
+ }
58453
+ };
58454
+ });
58455
+
58456
+ // src/models/modelstemporalworkflowresult.ts
58457
+ var ModelsTemporalWorkflowResult$zodSchema;
58458
+ var init_modelstemporalworkflowresult = __esm(() => {
58459
+ init_zod();
58460
+ ModelsTemporalWorkflowResult$zodSchema = object({
58461
+ message: string2().optional(),
58462
+ run_id: string2().optional(),
58463
+ workflow_id: string2().optional()
58464
+ });
58465
+ });
58466
+
58467
+ // src/models/syncplanpricesop.ts
58468
+ var SyncPlanPricesRequest$zodSchema, SyncPlanPricesResponse$zodSchema;
58469
+ var init_syncplanpricesop = __esm(() => {
58470
+ init_zod();
58471
+ init_errorserrorresponse();
58472
+ init_modelstemporalworkflowresult();
58473
+ SyncPlanPricesRequest$zodSchema = object({
58474
+ id: string2().describe("Plan ID")
58475
+ });
58476
+ SyncPlanPricesResponse$zodSchema = union([
58477
+ ModelsTemporalWorkflowResult$zodSchema,
58478
+ ErrorsErrorResponse$zodSchema
58479
+ ]);
58480
+ });
58481
+
58482
+ // src/funcs/plansSyncPlanPrices.ts
58483
+ function plansSyncPlanPrices(client$, request, options) {
58484
+ return new APIPromise($do36(client$, request, options));
58485
+ }
58486
+ async function $do36(client$, request, options) {
58487
+ const parsed$ = safeParse4(request, (value$) => SyncPlanPricesRequest$zodSchema.parse(value$), "Input validation failed");
58488
+ if (!parsed$.ok) {
58489
+ return [parsed$, { status: "invalid" }];
58490
+ }
58491
+ const payload$ = parsed$.value;
58492
+ const body$ = null;
58493
+ const pathParams$ = {
58494
+ id: encodeSimple("id", payload$.id, {
58495
+ explode: false,
58496
+ charEncoding: "percent"
58497
+ })
58498
+ };
58499
+ const path$ = pathToFunc("/plans/{id}/sync/subscriptions")(pathParams$);
58500
+ const headers$ = new Headers(compactMap({
58501
+ Accept: "application/json"
58502
+ }));
58503
+ const securityInput = await extractSecurity(client$._options.security);
58504
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58505
+ const context = {
58506
+ options: client$._options,
58507
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58508
+ operationID: "syncPlanPrices",
58509
+ oAuth2Scopes: null,
58510
+ resolvedSecurity: requestSecurity,
58511
+ securitySource: client$._options.security,
58512
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58513
+ retryCodes: options?.retryCodes || [
58514
+ "429",
58515
+ "500",
58516
+ "502",
58517
+ "503",
58518
+ "504"
58519
+ ]
58520
+ };
58521
+ const requestRes = client$._createRequest(context, {
58522
+ security: requestSecurity,
58523
+ method: "POST",
58524
+ baseURL: options?.serverURL,
58525
+ path: path$,
58526
+ headers: headers$,
58527
+ body: body$,
58528
+ userAgent: client$._options.userAgent,
58529
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58530
+ }, options);
58531
+ if (!requestRes.ok) {
58532
+ return [requestRes, { status: "invalid" }];
58533
+ }
58534
+ const req$ = requestRes.value;
58535
+ const doResult = await client$._do(req$, {
58536
+ context,
58537
+ errorCodes: [],
58538
+ retryConfig: context.retryConfig,
58539
+ retryCodes: context.retryCodes
58540
+ });
58541
+ if (!doResult.ok) {
58542
+ return [doResult, { status: "request-error", request: req$ }];
58543
+ }
58544
+ return [doResult, {
58545
+ status: "complete",
58546
+ request: req$,
58547
+ response: doResult.value
58548
+ }];
58549
+ }
58550
+ var init_plansSyncPlanPrices = __esm(() => {
58551
+ init_encodings();
58552
+ init_primitives();
58553
+ init_schemas4();
58554
+ init_security();
58555
+ init_url();
58556
+ init_syncplanpricesop();
58557
+ init_async();
58558
+ });
58559
+
58560
+ // src/mcp-server/tools/plansSyncPlanPrices.ts
58561
+ var args35, tool$plansSyncPlanPrices;
58562
+ var init_plansSyncPlanPrices2 = __esm(() => {
58563
+ init_plansSyncPlanPrices();
58564
+ init_syncplanpricesop();
58565
+ init_tools();
58566
+ args35 = {
58567
+ request: SyncPlanPricesRequest$zodSchema
58568
+ };
58569
+ tool$plansSyncPlanPrices = {
58570
+ name: "sync-plan-prices",
58571
+ description: `Synchronize plan prices
58572
+
58573
+ Use when you have changed plan prices and need to push them to all active subscriptions (e.g. global price update). Returns workflow ID.`,
58574
+ annotations: {
58575
+ title: "",
58576
+ destructiveHint: false,
58577
+ idempotentHint: false,
58578
+ openWorldHint: false,
58579
+ readOnlyHint: false
58580
+ },
58581
+ args: args35,
58582
+ tool: async (client, args36, ctx) => {
58583
+ const [result] = await plansSyncPlanPrices(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58584
+ if (!result.ok) {
58585
+ return {
58586
+ content: [{ type: "text", text: result.error.message }],
58587
+ isError: true
58588
+ };
58589
+ }
58590
+ return formatResult(result.value);
58591
+ }
58592
+ };
58593
+ });
58594
+
58595
+ // src/models/dtoupdateplanrequest.ts
58596
+ var DtoUpdatePlanRequest$zodSchema;
58597
+ var init_dtoupdateplanrequest = __esm(() => {
58598
+ init_zod();
58599
+ DtoUpdatePlanRequest$zodSchema = object({
58600
+ description: string2().optional(),
58601
+ display_order: int().optional(),
58602
+ lookup_key: string2().optional(),
58603
+ metadata: record(string2(), string2()).optional(),
58604
+ name: string2().optional()
58605
+ });
58606
+ });
58607
+
58608
+ // src/models/updateplanop.ts
58609
+ var UpdatePlanRequest$zodSchema, UpdatePlanResponse$zodSchema;
58610
+ var init_updateplanop = __esm(() => {
58611
+ init_zod();
58612
+ init_dtoplanresponse();
58613
+ init_dtoupdateplanrequest();
58614
+ init_errorserrorresponse();
58615
+ UpdatePlanRequest$zodSchema = object({
58616
+ body: DtoUpdatePlanRequest$zodSchema,
58617
+ id: string2().describe("Plan ID")
58618
+ });
58619
+ UpdatePlanResponse$zodSchema = union([
58620
+ DtoPlanResponse$zodSchema,
58621
+ ErrorsErrorResponse$zodSchema
58622
+ ]);
58623
+ });
58624
+
58625
+ // src/funcs/plansUpdatePlan.ts
58626
+ function plansUpdatePlan(client$, request, options) {
58627
+ return new APIPromise($do37(client$, request, options));
58628
+ }
58629
+ async function $do37(client$, request, options) {
58630
+ const parsed$ = safeParse4(request, (value$) => UpdatePlanRequest$zodSchema.parse(value$), "Input validation failed");
58631
+ if (!parsed$.ok) {
58632
+ return [parsed$, { status: "invalid" }];
58633
+ }
58634
+ const payload$ = parsed$.value;
58635
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
58636
+ const pathParams$ = {
58637
+ id: encodeSimple("id", payload$.id, {
58638
+ explode: false,
58639
+ charEncoding: "percent"
58640
+ })
58641
+ };
58642
+ const path$ = pathToFunc("/plans/{id}")(pathParams$);
58643
+ const headers$ = new Headers(compactMap({
58644
+ "Content-Type": "application/json",
58645
+ Accept: "application/json"
58646
+ }));
58647
+ const securityInput = await extractSecurity(client$._options.security);
58648
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58649
+ const context = {
58650
+ options: client$._options,
58651
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58652
+ operationID: "updatePlan",
58653
+ oAuth2Scopes: null,
58654
+ resolvedSecurity: requestSecurity,
58655
+ securitySource: client$._options.security,
58656
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58657
+ retryCodes: options?.retryCodes || [
58658
+ "429",
58659
+ "500",
58660
+ "502",
58661
+ "503",
58662
+ "504"
58663
+ ]
58664
+ };
58665
+ const requestRes = client$._createRequest(context, {
58666
+ security: requestSecurity,
58667
+ method: "PUT",
58668
+ baseURL: options?.serverURL,
58669
+ path: path$,
58670
+ headers: headers$,
58671
+ body: body$,
58672
+ userAgent: client$._options.userAgent,
58673
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58674
+ }, options);
58675
+ if (!requestRes.ok) {
58676
+ return [requestRes, { status: "invalid" }];
58677
+ }
58678
+ const req$ = requestRes.value;
58679
+ const doResult = await client$._do(req$, {
58680
+ context,
58681
+ errorCodes: [],
58682
+ retryConfig: context.retryConfig,
58683
+ retryCodes: context.retryCodes
58684
+ });
58685
+ if (!doResult.ok) {
58686
+ return [doResult, { status: "request-error", request: req$ }];
58687
+ }
58688
+ return [doResult, {
58689
+ status: "complete",
58690
+ request: req$,
58691
+ response: doResult.value
58692
+ }];
58693
+ }
58694
+ var init_plansUpdatePlan = __esm(() => {
58695
+ init_encodings();
58696
+ init_primitives();
58697
+ init_schemas4();
58698
+ init_security();
58699
+ init_url();
58700
+ init_updateplanop();
58701
+ init_async();
58702
+ });
58703
+
58704
+ // src/mcp-server/tools/plansUpdatePlan.ts
58705
+ var args36, tool$plansUpdatePlan;
58706
+ var init_plansUpdatePlan2 = __esm(() => {
58707
+ init_plansUpdatePlan();
58708
+ init_updateplanop();
58709
+ init_tools();
58710
+ args36 = {
58711
+ request: UpdatePlanRequest$zodSchema
58712
+ };
58713
+ tool$plansUpdatePlan = {
58714
+ name: "update-plan",
58715
+ description: `Update plan
58716
+
58717
+ Use when changing plan details (e.g. name, interval, or metadata). Partial update supported.`,
58718
+ annotations: {
58719
+ title: "",
58720
+ destructiveHint: false,
58721
+ idempotentHint: false,
58722
+ openWorldHint: false,
58723
+ readOnlyHint: false
58724
+ },
58725
+ args: args36,
58726
+ tool: async (client, args37, ctx) => {
58727
+ const [result] = await plansUpdatePlan(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58728
+ if (!result.ok) {
58729
+ return {
58730
+ content: [{ type: "text", text: result.error.message }],
58731
+ isError: true
58732
+ };
58733
+ }
58734
+ return formatResult(result.value);
58735
+ }
58736
+ };
58737
+ });
58738
+
58739
+ // src/models/dtocreatepricetier.ts
58740
+ var DtoCreatePriceTier$zodSchema;
58741
+ var init_dtocreatepricetier = __esm(() => {
58742
+ init_zod();
58743
+ DtoCreatePriceTier$zodSchema = object({
58744
+ flat_amount: string2().optional(),
58745
+ unit_amount: string2(),
58746
+ up_to: int().optional()
58747
+ });
58748
+ });
58749
+
58750
+ // src/models/dtopriceunitconfig.ts
58751
+ var DtoPriceUnitConfig$zodSchema;
58752
+ var init_dtopriceunitconfig = __esm(() => {
58753
+ init_zod();
58754
+ init_dtocreatepricetier();
58755
+ DtoPriceUnitConfig$zodSchema = object({
58756
+ amount: string2().optional(),
58757
+ price_unit: string2(),
58758
+ price_unit_tiers: array(DtoCreatePriceTier$zodSchema).optional()
58759
+ });
58760
+ });
58761
+
58762
+ // src/models/pricetransformquantity.ts
58763
+ var PriceTransformQuantity$zodSchema;
58764
+ var init_pricetransformquantity = __esm(() => {
58765
+ init_zod();
58766
+ init_roundtype();
58767
+ PriceTransformQuantity$zodSchema = object({
58768
+ divide_by: int().optional(),
58769
+ round: RoundType$zodSchema.optional()
58770
+ });
58771
+ });
58772
+
58773
+ // src/models/dtocreatepricerequest.ts
58774
+ var DtoCreatePriceRequest$zodSchema;
58775
+ var init_dtocreatepricerequest = __esm(() => {
58776
+ init_zod();
58777
+ init_billingcadence();
58778
+ init_billingmodel();
58779
+ init_billingperiod();
58780
+ init_billingtier();
58781
+ init_dtocreatepricetier();
58782
+ init_dtopriceunitconfig();
58783
+ init_invoicecadence();
58784
+ init_priceentitytype();
58785
+ init_pricetransformquantity();
58786
+ init_pricetype();
58787
+ init_priceunittype();
58788
+ DtoCreatePriceRequest$zodSchema = object({
58789
+ amount: string2().optional(),
58790
+ billing_cadence: BillingCadence$zodSchema,
58791
+ billing_model: BillingModel$zodSchema,
58792
+ billing_period: BillingPeriod$zodSchema,
58793
+ billing_period_count: int().optional(),
58794
+ currency: string2(),
58795
+ description: string2().optional(),
58796
+ display_name: string2().optional(),
58797
+ end_date: string2().optional(),
58798
+ entity_id: string2(),
58799
+ entity_type: PriceEntityType$zodSchema,
58800
+ filter_values: record(string2(), array(string2())).optional(),
58801
+ group_id: string2().optional(),
58802
+ invoice_cadence: InvoiceCadence$zodSchema,
58803
+ lookup_key: string2().optional(),
58804
+ metadata: record(string2(), string2()).optional(),
58805
+ meter_id: string2().optional(),
58806
+ min_quantity: int().optional(),
58807
+ price_unit_config: DtoPriceUnitConfig$zodSchema.optional(),
58808
+ price_unit_type: PriceUnitType$zodSchema,
58809
+ start_date: string2().optional(),
58810
+ tier_mode: BillingTier$zodSchema.optional(),
58811
+ tiers: array(DtoCreatePriceTier$zodSchema).optional(),
58812
+ transform_quantity: PriceTransformQuantity$zodSchema.optional(),
58813
+ trial_period: int().optional(),
58814
+ type: PriceType$zodSchema
58815
+ });
58816
+ });
58817
+
58818
+ // src/funcs/pricesCreatePrice.ts
58819
+ function pricesCreatePrice(client$, request, options) {
58820
+ return new APIPromise($do38(client$, request, options));
58821
+ }
58822
+ async function $do38(client$, request, options) {
58823
+ const parsed$ = safeParse4(request, (value$) => DtoCreatePriceRequest$zodSchema.parse(value$), "Input validation failed");
58824
+ if (!parsed$.ok) {
58825
+ return [parsed$, { status: "invalid" }];
58826
+ }
58827
+ const payload$ = parsed$.value;
58828
+ const body$ = encodeJSON("body", payload$, { explode: true });
58829
+ const path$ = pathToFunc("/prices")();
58830
+ const headers$ = new Headers(compactMap({
58831
+ "Content-Type": "application/json",
58832
+ Accept: "application/json"
58833
+ }));
58834
+ const securityInput = await extractSecurity(client$._options.security);
58835
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58836
+ const context = {
58837
+ options: client$._options,
58838
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58839
+ operationID: "createPrice",
58840
+ oAuth2Scopes: null,
58841
+ resolvedSecurity: requestSecurity,
58842
+ securitySource: client$._options.security,
58843
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58844
+ retryCodes: options?.retryCodes || [
58845
+ "429",
58846
+ "500",
58847
+ "502",
58848
+ "503",
58849
+ "504"
58850
+ ]
58851
+ };
58852
+ const requestRes = client$._createRequest(context, {
58853
+ security: requestSecurity,
58854
+ method: "POST",
58855
+ baseURL: options?.serverURL,
58856
+ path: path$,
58857
+ headers: headers$,
58858
+ body: body$,
58859
+ userAgent: client$._options.userAgent,
58860
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58861
+ }, options);
58862
+ if (!requestRes.ok) {
58863
+ return [requestRes, { status: "invalid" }];
58864
+ }
58865
+ const req$ = requestRes.value;
58866
+ const doResult = await client$._do(req$, {
58867
+ context,
58868
+ errorCodes: [],
58869
+ retryConfig: context.retryConfig,
58870
+ retryCodes: context.retryCodes
58871
+ });
58872
+ if (!doResult.ok) {
58873
+ return [doResult, { status: "request-error", request: req$ }];
58874
+ }
58875
+ return [doResult, {
58876
+ status: "complete",
58877
+ request: req$,
58878
+ response: doResult.value
58879
+ }];
58880
+ }
58881
+ var init_pricesCreatePrice = __esm(() => {
58882
+ init_encodings();
58883
+ init_primitives();
58884
+ init_schemas4();
58885
+ init_security();
58886
+ init_url();
58887
+ init_dtocreatepricerequest();
58888
+ init_async();
58889
+ });
58890
+
58891
+ // src/mcp-server/tools/pricesCreatePrice.ts
58892
+ var args37, tool$pricesCreatePrice;
58893
+ var init_pricesCreatePrice2 = __esm(() => {
58894
+ init_pricesCreatePrice();
58895
+ init_dtocreatepricerequest();
58896
+ init_tools();
58897
+ args37 = {
58898
+ request: DtoCreatePriceRequest$zodSchema
58899
+ };
58900
+ tool$pricesCreatePrice = {
58901
+ name: "create-price",
58902
+ description: `Create price
58903
+
58904
+ Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metered). Ideal for both simple and usage-based pricing.`,
58905
+ annotations: {
58906
+ title: "",
58907
+ destructiveHint: false,
58908
+ idempotentHint: false,
58909
+ openWorldHint: false,
58910
+ readOnlyHint: false
58911
+ },
58912
+ args: args37,
58913
+ tool: async (client, args38, ctx) => {
58914
+ const [result] = await pricesCreatePrice(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58915
+ if (!result.ok) {
58916
+ return {
58917
+ content: [{ type: "text", text: result.error.message }],
58918
+ isError: true
58919
+ };
58920
+ }
58921
+ return formatResult(result.value);
58922
+ }
58923
+ };
58924
+ });
58925
+
58926
+ // src/models/dtocreatebulkpricerequest.ts
58927
+ var DtoCreateBulkPriceRequest$zodSchema;
58928
+ var init_dtocreatebulkpricerequest = __esm(() => {
58929
+ init_zod();
58930
+ init_dtocreatepricerequest();
58931
+ DtoCreateBulkPriceRequest$zodSchema = object({
58932
+ items: array(DtoCreatePriceRequest$zodSchema)
58933
+ });
58934
+ });
58935
+
58936
+ // src/funcs/pricesCreatePricesBulk.ts
58937
+ function pricesCreatePricesBulk(client$, request, options) {
58938
+ return new APIPromise($do39(client$, request, options));
58939
+ }
58940
+ async function $do39(client$, request, options) {
58941
+ const parsed$ = safeParse4(request, (value$) => DtoCreateBulkPriceRequest$zodSchema.parse(value$), "Input validation failed");
58942
+ if (!parsed$.ok) {
58943
+ return [parsed$, { status: "invalid" }];
58944
+ }
58945
+ const payload$ = parsed$.value;
58946
+ const body$ = encodeJSON("body", payload$, { explode: true });
58947
+ const path$ = pathToFunc("/prices/bulk")();
58948
+ const headers$ = new Headers(compactMap({
58949
+ "Content-Type": "application/json",
58950
+ Accept: "application/json"
58951
+ }));
58952
+ const securityInput = await extractSecurity(client$._options.security);
58953
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58954
+ const context = {
58955
+ options: client$._options,
58956
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58957
+ operationID: "createPricesBulk",
58958
+ oAuth2Scopes: null,
58959
+ resolvedSecurity: requestSecurity,
58960
+ securitySource: client$._options.security,
58961
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58962
+ retryCodes: options?.retryCodes || [
58963
+ "429",
58964
+ "500",
58965
+ "502",
58966
+ "503",
58967
+ "504"
58968
+ ]
58969
+ };
58970
+ const requestRes = client$._createRequest(context, {
58971
+ security: requestSecurity,
58972
+ method: "POST",
58973
+ baseURL: options?.serverURL,
58974
+ path: path$,
58975
+ headers: headers$,
58976
+ body: body$,
58977
+ userAgent: client$._options.userAgent,
58978
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58979
+ }, options);
58980
+ if (!requestRes.ok) {
58981
+ return [requestRes, { status: "invalid" }];
58982
+ }
58983
+ const req$ = requestRes.value;
58984
+ const doResult = await client$._do(req$, {
58985
+ context,
58986
+ errorCodes: [],
58987
+ retryConfig: context.retryConfig,
58988
+ retryCodes: context.retryCodes
58989
+ });
58990
+ if (!doResult.ok) {
58991
+ return [doResult, { status: "request-error", request: req$ }];
58992
+ }
58993
+ return [doResult, {
58994
+ status: "complete",
58995
+ request: req$,
58996
+ response: doResult.value
58997
+ }];
58998
+ }
58999
+ var init_pricesCreatePricesBulk = __esm(() => {
59000
+ init_encodings();
59001
+ init_primitives();
59002
+ init_schemas4();
59003
+ init_security();
59004
+ init_url();
59005
+ init_dtocreatebulkpricerequest();
59006
+ init_async();
59007
+ });
59008
+
59009
+ // src/mcp-server/tools/pricesCreatePricesBulk.ts
59010
+ var args38, tool$pricesCreatePricesBulk;
59011
+ var init_pricesCreatePricesBulk2 = __esm(() => {
59012
+ init_pricesCreatePricesBulk();
59013
+ init_dtocreatebulkpricerequest();
59014
+ init_tools();
59015
+ args38 = {
59016
+ request: DtoCreateBulkPriceRequest$zodSchema
59017
+ };
59018
+ tool$pricesCreatePricesBulk = {
59019
+ name: "create-prices-bulk",
59020
+ description: `Create prices in bulk
59021
+
59022
+ Use when creating many prices at once (e.g. importing a catalog or setting up a plan with multiple tiers).`,
59023
+ annotations: {
59024
+ title: "",
59025
+ destructiveHint: false,
59026
+ idempotentHint: false,
59027
+ openWorldHint: false,
59028
+ readOnlyHint: false
59029
+ },
59030
+ args: args38,
59031
+ tool: async (client, args39, ctx) => {
59032
+ const [result] = await pricesCreatePricesBulk(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59033
+ if (!result.ok) {
59034
+ return {
59035
+ content: [{ type: "text", text: result.error.message }],
59036
+ isError: true
59037
+ };
59038
+ }
59039
+ return formatResult(result.value);
59040
+ }
59041
+ };
59042
+ });
59043
+
59044
+ // src/models/dtodeletepricerequest.ts
59045
+ var DtoDeletePriceRequest$zodSchema;
59046
+ var init_dtodeletepricerequest = __esm(() => {
59047
+ init_zod();
59048
+ DtoDeletePriceRequest$zodSchema = object({
59049
+ end_date: string2().optional()
59050
+ });
59051
+ });
59052
+
59053
+ // src/models/deletepriceop.ts
59054
+ var DeletePriceRequest$zodSchema, DeletePriceResponse$zodSchema;
59055
+ var init_deletepriceop = __esm(() => {
59056
+ init_zod();
59057
+ init_dtodeletepricerequest();
59058
+ init_dtosuccessresponse();
59059
+ init_errorserrorresponse();
59060
+ DeletePriceRequest$zodSchema = object({
59061
+ body: DtoDeletePriceRequest$zodSchema,
59062
+ id: string2().describe("Price ID")
59063
+ });
59064
+ DeletePriceResponse$zodSchema = union([
59065
+ DtoSuccessResponse$zodSchema,
59066
+ ErrorsErrorResponse$zodSchema
59067
+ ]);
59068
+ });
59069
+
59070
+ // src/funcs/pricesDeletePrice.ts
59071
+ function pricesDeletePrice(client$, request, options) {
59072
+ return new APIPromise($do40(client$, request, options));
59073
+ }
59074
+ async function $do40(client$, request, options) {
59075
+ const parsed$ = safeParse4(request, (value$) => DeletePriceRequest$zodSchema.parse(value$), "Input validation failed");
59076
+ if (!parsed$.ok) {
59077
+ return [parsed$, { status: "invalid" }];
59078
+ }
59079
+ const payload$ = parsed$.value;
59080
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
59081
+ const pathParams$ = {
59082
+ id: encodeSimple("id", payload$.id, {
59083
+ explode: false,
59084
+ charEncoding: "percent"
59085
+ })
59086
+ };
59087
+ const path$ = pathToFunc("/prices/{id}")(pathParams$);
59088
+ const headers$ = new Headers(compactMap({
59089
+ "Content-Type": "application/json",
59090
+ Accept: "application/json"
59091
+ }));
59092
+ const securityInput = await extractSecurity(client$._options.security);
59093
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59094
+ const context = {
59095
+ options: client$._options,
59096
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59097
+ operationID: "deletePrice",
59098
+ oAuth2Scopes: null,
59099
+ resolvedSecurity: requestSecurity,
59100
+ securitySource: client$._options.security,
59101
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59102
+ retryCodes: options?.retryCodes || [
59103
+ "429",
59104
+ "500",
59105
+ "502",
59106
+ "503",
59107
+ "504"
59108
+ ]
59109
+ };
59110
+ const requestRes = client$._createRequest(context, {
59111
+ security: requestSecurity,
59112
+ method: "DELETE",
59113
+ baseURL: options?.serverURL,
59114
+ path: path$,
59115
+ headers: headers$,
59116
+ body: body$,
59117
+ userAgent: client$._options.userAgent,
59118
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59119
+ }, options);
59120
+ if (!requestRes.ok) {
59121
+ return [requestRes, { status: "invalid" }];
59122
+ }
59123
+ const req$ = requestRes.value;
59124
+ const doResult = await client$._do(req$, {
59125
+ context,
59126
+ errorCodes: [],
59127
+ retryConfig: context.retryConfig,
59128
+ retryCodes: context.retryCodes
59129
+ });
59130
+ if (!doResult.ok) {
59131
+ return [doResult, { status: "request-error", request: req$ }];
59132
+ }
59133
+ return [doResult, {
59134
+ status: "complete",
59135
+ request: req$,
59136
+ response: doResult.value
59137
+ }];
59138
+ }
59139
+ var init_pricesDeletePrice = __esm(() => {
59140
+ init_encodings();
59141
+ init_primitives();
59142
+ init_schemas4();
59143
+ init_security();
59144
+ init_url();
59145
+ init_deletepriceop();
59146
+ init_async();
59147
+ });
59148
+
59149
+ // src/mcp-server/tools/pricesDeletePrice.ts
59150
+ var args39, tool$pricesDeletePrice;
59151
+ var init_pricesDeletePrice2 = __esm(() => {
59152
+ init_pricesDeletePrice();
59153
+ init_deletepriceop();
59154
+ init_tools();
59155
+ args39 = {
59156
+ request: DeletePriceRequest$zodSchema
59157
+ };
59158
+ tool$pricesDeletePrice = {
59159
+ name: "delete-price",
59160
+ description: `Delete price
59161
+
59162
+ Use when retiring a price (e.g. end-of-life or replacement). Optional effective date or cascade for subscriptions.`,
59163
+ annotations: {
59164
+ title: "",
59165
+ destructiveHint: false,
59166
+ idempotentHint: false,
59167
+ openWorldHint: false,
59168
+ readOnlyHint: false
59169
+ },
59170
+ args: args39,
59171
+ tool: async (client, args40, ctx) => {
59172
+ const [result] = await pricesDeletePrice(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59173
+ if (!result.ok) {
59174
+ return {
59175
+ content: [{ type: "text", text: result.error.message }],
59176
+ isError: true
59177
+ };
59178
+ }
59179
+ return formatResult(result.value);
59180
+ }
59181
+ };
59182
+ });
59183
+
59184
+ // src/models/getpriceop.ts
59185
+ var GetPriceRequest$zodSchema, GetPriceResponse$zodSchema;
59186
+ var init_getpriceop = __esm(() => {
59187
+ init_zod();
59188
+ init_dtopriceresponse();
59189
+ init_errorserrorresponse();
59190
+ GetPriceRequest$zodSchema = object({
59191
+ id: string2().describe("Price ID")
59192
+ });
59193
+ GetPriceResponse$zodSchema = union([
59194
+ DtoPriceResponse$zodSchema,
59195
+ ErrorsErrorResponse$zodSchema
59196
+ ]);
59197
+ });
59198
+
59199
+ // src/funcs/pricesGetPrice.ts
59200
+ function pricesGetPrice(client$, request, options) {
59201
+ return new APIPromise($do41(client$, request, options));
59202
+ }
59203
+ async function $do41(client$, request, options) {
59204
+ const parsed$ = safeParse4(request, (value$) => GetPriceRequest$zodSchema.parse(value$), "Input validation failed");
59205
+ if (!parsed$.ok) {
59206
+ return [parsed$, { status: "invalid" }];
59207
+ }
59208
+ const payload$ = parsed$.value;
59209
+ const body$ = null;
59210
+ const pathParams$ = {
59211
+ id: encodeSimple("id", payload$.id, {
59212
+ explode: false,
59213
+ charEncoding: "percent"
59214
+ })
59215
+ };
59216
+ const path$ = pathToFunc("/prices/{id}")(pathParams$);
59217
+ const headers$ = new Headers(compactMap({
59218
+ Accept: "application/json"
59219
+ }));
59220
+ const securityInput = await extractSecurity(client$._options.security);
59221
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59222
+ const context = {
59223
+ options: client$._options,
59224
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59225
+ operationID: "getPrice",
59226
+ oAuth2Scopes: null,
59227
+ resolvedSecurity: requestSecurity,
59228
+ securitySource: client$._options.security,
59229
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59230
+ retryCodes: options?.retryCodes || [
59231
+ "429",
59232
+ "500",
59233
+ "502",
59234
+ "503",
59235
+ "504"
59236
+ ]
59237
+ };
59238
+ const requestRes = client$._createRequest(context, {
59239
+ security: requestSecurity,
59240
+ method: "GET",
59241
+ baseURL: options?.serverURL,
59242
+ path: path$,
59243
+ headers: headers$,
59244
+ body: body$,
59245
+ userAgent: client$._options.userAgent,
59246
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59247
+ }, options);
59248
+ if (!requestRes.ok) {
59249
+ return [requestRes, { status: "invalid" }];
59250
+ }
59251
+ const req$ = requestRes.value;
59252
+ const doResult = await client$._do(req$, {
59253
+ context,
59254
+ errorCodes: [],
59255
+ retryConfig: context.retryConfig,
59256
+ retryCodes: context.retryCodes
59257
+ });
59258
+ if (!doResult.ok) {
59259
+ return [doResult, { status: "request-error", request: req$ }];
59260
+ }
59261
+ return [doResult, {
59262
+ status: "complete",
59263
+ request: req$,
59264
+ response: doResult.value
59265
+ }];
59266
+ }
59267
+ var init_pricesGetPrice = __esm(() => {
59268
+ init_encodings();
59269
+ init_primitives();
59270
+ init_schemas4();
59271
+ init_security();
59272
+ init_url();
59273
+ init_getpriceop();
59274
+ init_async();
59275
+ });
59276
+
59277
+ // src/mcp-server/tools/pricesGetPrice.ts
59278
+ var args40, tool$pricesGetPrice;
59279
+ var init_pricesGetPrice2 = __esm(() => {
59280
+ init_pricesGetPrice();
59281
+ init_getpriceop();
59282
+ init_tools();
59283
+ args40 = {
59284
+ request: GetPriceRequest$zodSchema
59285
+ };
59286
+ tool$pricesGetPrice = {
59287
+ name: "get-price",
59288
+ description: `Get price
59289
+
59290
+ Use when you need to load a single price (e.g. for display or editing). Response includes expanded meter and price unit when applicable.`,
59291
+ annotations: {
59292
+ title: "",
59293
+ destructiveHint: false,
59294
+ idempotentHint: false,
59295
+ openWorldHint: false,
59296
+ readOnlyHint: false
59297
+ },
59298
+ args: args40,
59299
+ tool: async (client, args41, ctx) => {
59300
+ const [result] = await pricesGetPrice(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59301
+ if (!result.ok) {
59302
+ return {
59303
+ content: [{ type: "text", text: result.error.message }],
59304
+ isError: true
59305
+ };
59306
+ }
59307
+ return formatResult(result.value);
59308
+ }
59309
+ };
59310
+ });
59311
+
59312
+ // src/models/getpricebylookupkeyop.ts
59313
+ var GetPriceByLookupKeyRequest$zodSchema, GetPriceByLookupKeyResponse$zodSchema;
59314
+ var init_getpricebylookupkeyop = __esm(() => {
59315
+ init_zod();
59316
+ init_dtopriceresponse();
59317
+ init_errorserrorresponse();
59318
+ GetPriceByLookupKeyRequest$zodSchema = object({
59319
+ lookup_key: string2().describe("Lookup key")
59320
+ });
59321
+ GetPriceByLookupKeyResponse$zodSchema = union([
59322
+ DtoPriceResponse$zodSchema,
59323
+ ErrorsErrorResponse$zodSchema
59324
+ ]);
59325
+ });
59326
+
59327
+ // src/funcs/pricesGetPriceByLookupKey.ts
59328
+ function pricesGetPriceByLookupKey(client$, request, options) {
59329
+ return new APIPromise($do42(client$, request, options));
59330
+ }
59331
+ async function $do42(client$, request, options) {
59332
+ const parsed$ = safeParse4(request, (value$) => GetPriceByLookupKeyRequest$zodSchema.parse(value$), "Input validation failed");
59333
+ if (!parsed$.ok) {
59334
+ return [parsed$, { status: "invalid" }];
59335
+ }
59336
+ const payload$ = parsed$.value;
59337
+ const body$ = null;
59338
+ const pathParams$ = {
59339
+ lookup_key: encodeSimple("lookup_key", payload$.lookup_key, {
59340
+ explode: false,
59341
+ charEncoding: "percent"
59342
+ })
59343
+ };
59344
+ const path$ = pathToFunc("/prices/lookup/{lookup_key}")(pathParams$);
59345
+ const headers$ = new Headers(compactMap({
59346
+ Accept: "application/json"
59347
+ }));
59348
+ const securityInput = await extractSecurity(client$._options.security);
59349
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59350
+ const context = {
59351
+ options: client$._options,
59352
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59353
+ operationID: "getPriceByLookupKey",
59354
+ oAuth2Scopes: null,
59355
+ resolvedSecurity: requestSecurity,
59356
+ securitySource: client$._options.security,
59357
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59358
+ retryCodes: options?.retryCodes || [
59359
+ "429",
59360
+ "500",
59361
+ "502",
59362
+ "503",
59363
+ "504"
59364
+ ]
59365
+ };
59366
+ const requestRes = client$._createRequest(context, {
59367
+ security: requestSecurity,
59368
+ method: "GET",
59369
+ baseURL: options?.serverURL,
59370
+ path: path$,
59371
+ headers: headers$,
59372
+ body: body$,
59373
+ userAgent: client$._options.userAgent,
59374
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59375
+ }, options);
59376
+ if (!requestRes.ok) {
59377
+ return [requestRes, { status: "invalid" }];
59378
+ }
59379
+ const req$ = requestRes.value;
59380
+ const doResult = await client$._do(req$, {
59381
+ context,
59382
+ errorCodes: [],
59383
+ retryConfig: context.retryConfig,
59384
+ retryCodes: context.retryCodes
59385
+ });
59386
+ if (!doResult.ok) {
59387
+ return [doResult, { status: "request-error", request: req$ }];
59388
+ }
59389
+ return [doResult, {
59390
+ status: "complete",
59391
+ request: req$,
59392
+ response: doResult.value
59393
+ }];
59394
+ }
59395
+ var init_pricesGetPriceByLookupKey = __esm(() => {
59396
+ init_encodings();
59397
+ init_primitives();
59398
+ init_schemas4();
59399
+ init_security();
59400
+ init_url();
59401
+ init_getpricebylookupkeyop();
59402
+ init_async();
59403
+ });
59404
+
59405
+ // src/mcp-server/tools/pricesGetPriceByLookupKey.ts
59406
+ var args41, tool$pricesGetPriceByLookupKey;
59407
+ var init_pricesGetPriceByLookupKey2 = __esm(() => {
59408
+ init_pricesGetPriceByLookupKey();
59409
+ init_getpricebylookupkeyop();
59410
+ init_tools();
59411
+ args41 = {
59412
+ request: GetPriceByLookupKeyRequest$zodSchema
59413
+ };
59414
+ tool$pricesGetPriceByLookupKey = {
59415
+ name: "get-price-by-lookup-key",
59416
+ description: `Get price by lookup key
59417
+
59418
+ Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal for integrations.`,
59419
+ annotations: {
59420
+ title: "",
59421
+ destructiveHint: false,
59422
+ idempotentHint: false,
59423
+ openWorldHint: false,
59424
+ readOnlyHint: false
59425
+ },
59426
+ args: args41,
59427
+ tool: async (client, args42, ctx) => {
59428
+ const [result] = await pricesGetPriceByLookupKey(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59429
+ if (!result.ok) {
59430
+ return {
59431
+ content: [{ type: "text", text: result.error.message }],
59432
+ isError: true
59433
+ };
59434
+ }
59435
+ return formatResult(result.value);
59436
+ }
59437
+ };
59438
+ });
59439
+
59440
+ // src/models/pricefilter.ts
59441
+ var PriceFilterOrder$zodSchema, PriceFilter$zodSchema;
59442
+ var init_pricefilter = __esm(() => {
59443
+ init_zod();
59444
+ init_filtercondition();
59445
+ init_priceentitytype();
59446
+ init_status();
59447
+ PriceFilterOrder$zodSchema = _enum([
59448
+ "asc",
59449
+ "desc"
59450
+ ]);
59451
+ PriceFilter$zodSchema = object({
59452
+ allow_expired_prices: boolean2().default(false),
59453
+ end_time: string2().optional(),
59454
+ entity_ids: array(string2()).optional(),
59455
+ entity_type: PriceEntityType$zodSchema.optional(),
59456
+ expand: string2().optional(),
59457
+ filters: array(FilterCondition$zodSchema).optional(),
59458
+ limit: int().optional(),
59459
+ meter_ids: array(string2()).optional(),
59460
+ offset: int().optional(),
59461
+ order: PriceFilterOrder$zodSchema.optional(),
59462
+ parent_price_id: string2().optional(),
59463
+ plan_ids: array(string2()).optional(),
59464
+ price_ids: array(string2()).optional(),
59465
+ sort: string2().optional(),
59466
+ start_date_lt: string2().optional(),
59467
+ start_time: string2().optional(),
59468
+ status: Status$zodSchema.optional(),
59469
+ subscription_id: string2().optional()
59470
+ });
59471
+ });
59472
+
59473
+ // src/funcs/pricesQueryPrice.ts
59474
+ function pricesQueryPrice(client$, request, options) {
59475
+ return new APIPromise($do43(client$, request, options));
59476
+ }
59477
+ async function $do43(client$, request, options) {
59478
+ const parsed$ = safeParse4(request, (value$) => PriceFilter$zodSchema.parse(value$), "Input validation failed");
59479
+ if (!parsed$.ok) {
59480
+ return [parsed$, { status: "invalid" }];
59481
+ }
59482
+ const payload$ = parsed$.value;
59483
+ const body$ = encodeJSON("body", payload$, { explode: true });
59484
+ const path$ = pathToFunc("/prices/search")();
59485
+ const headers$ = new Headers(compactMap({
59486
+ "Content-Type": "application/json",
59487
+ Accept: "application/json"
59488
+ }));
59489
+ const securityInput = await extractSecurity(client$._options.security);
59490
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59491
+ const context = {
59492
+ options: client$._options,
59493
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59494
+ operationID: "queryPrice",
59495
+ oAuth2Scopes: null,
59496
+ resolvedSecurity: requestSecurity,
59497
+ securitySource: client$._options.security,
59498
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59499
+ retryCodes: options?.retryCodes || [
59500
+ "429",
59501
+ "500",
59502
+ "502",
59503
+ "503",
59504
+ "504"
59505
+ ]
59506
+ };
59507
+ const requestRes = client$._createRequest(context, {
59508
+ security: requestSecurity,
59509
+ method: "POST",
59510
+ baseURL: options?.serverURL,
59511
+ path: path$,
59512
+ headers: headers$,
59513
+ body: body$,
59514
+ userAgent: client$._options.userAgent,
59515
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59516
+ }, options);
59517
+ if (!requestRes.ok) {
59518
+ return [requestRes, { status: "invalid" }];
59519
+ }
59520
+ const req$ = requestRes.value;
59521
+ const doResult = await client$._do(req$, {
59522
+ context,
59523
+ errorCodes: [],
59524
+ retryConfig: context.retryConfig,
59525
+ retryCodes: context.retryCodes
59526
+ });
59527
+ if (!doResult.ok) {
59528
+ return [doResult, { status: "request-error", request: req$ }];
59529
+ }
59530
+ return [doResult, {
59531
+ status: "complete",
59532
+ request: req$,
59533
+ response: doResult.value
59534
+ }];
59535
+ }
59536
+ var init_pricesQueryPrice = __esm(() => {
59537
+ init_encodings();
59538
+ init_primitives();
59539
+ init_schemas4();
59540
+ init_security();
59541
+ init_url();
59542
+ init_pricefilter();
59543
+ init_async();
59544
+ });
59545
+
59546
+ // src/mcp-server/tools/pricesQueryPrice.ts
59547
+ var args42, tool$pricesQueryPrice;
59548
+ var init_pricesQueryPrice2 = __esm(() => {
59549
+ init_pricesQueryPrice();
59550
+ init_pricefilter();
59551
+ init_tools();
59552
+ args42 = {
59553
+ request: PriceFilter$zodSchema
59554
+ };
59555
+ tool$pricesQueryPrice = {
59556
+ name: "query-price",
59557
+ description: `Query prices
59558
+
59559
+ Use when listing or searching prices (e.g. plan builder or catalog). Returns a paginated list; supports filtering and sorting.`,
59560
+ annotations: {
59561
+ title: "",
59562
+ destructiveHint: false,
59563
+ idempotentHint: false,
59564
+ openWorldHint: false,
59565
+ readOnlyHint: false
59566
+ },
59567
+ args: args42,
59568
+ tool: async (client, args43, ctx) => {
59569
+ const [result] = await pricesQueryPrice(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59570
+ if (!result.ok) {
59571
+ return {
59572
+ content: [{ type: "text", text: result.error.message }],
59573
+ isError: true
59574
+ };
59575
+ }
59576
+ return formatResult(result.value);
59577
+ }
59578
+ };
59579
+ });
59580
+
59581
+ // src/models/dtoupdatepricerequest.ts
59582
+ var DtoUpdatePriceRequest$zodSchema;
59583
+ var init_dtoupdatepricerequest = __esm(() => {
59584
+ init_zod();
59585
+ init_billingmodel();
59586
+ init_billingtier();
59587
+ init_dtocreatepricetier();
59588
+ init_pricetransformquantity();
59589
+ DtoUpdatePriceRequest$zodSchema = object({
59590
+ amount: string2().optional(),
59591
+ billing_model: BillingModel$zodSchema.optional(),
59592
+ description: string2().optional(),
59593
+ display_name: string2().optional(),
59594
+ effective_from: string2().optional(),
59595
+ group_id: string2().optional(),
59596
+ lookup_key: string2().optional(),
59597
+ metadata: record(string2(), string2()).optional(),
59598
+ price_unit_amount: string2().optional(),
59599
+ price_unit_tiers: array(DtoCreatePriceTier$zodSchema).optional(),
59600
+ tier_mode: BillingTier$zodSchema.optional(),
59601
+ tiers: array(DtoCreatePriceTier$zodSchema).optional(),
59602
+ transform_quantity: PriceTransformQuantity$zodSchema.optional()
59603
+ });
59604
+ });
59605
+
59606
+ // src/models/updatepriceop.ts
59607
+ var UpdatePriceRequest$zodSchema, UpdatePriceResponse$zodSchema;
59608
+ var init_updatepriceop = __esm(() => {
59609
+ init_zod();
59610
+ init_dtopriceresponse();
59611
+ init_dtoupdatepricerequest();
59612
+ init_errorserrorresponse();
59613
+ UpdatePriceRequest$zodSchema = object({
59614
+ body: DtoUpdatePriceRequest$zodSchema,
59615
+ id: string2().describe("Price ID")
59616
+ });
59617
+ UpdatePriceResponse$zodSchema = union([
59618
+ DtoPriceResponse$zodSchema,
59619
+ ErrorsErrorResponse$zodSchema
59620
+ ]);
59621
+ });
59622
+
59623
+ // src/funcs/pricesUpdatePrice.ts
59624
+ function pricesUpdatePrice(client$, request, options) {
59625
+ return new APIPromise($do44(client$, request, options));
59626
+ }
59627
+ async function $do44(client$, request, options) {
59628
+ const parsed$ = safeParse4(request, (value$) => UpdatePriceRequest$zodSchema.parse(value$), "Input validation failed");
59629
+ if (!parsed$.ok) {
59630
+ return [parsed$, { status: "invalid" }];
59631
+ }
59632
+ const payload$ = parsed$.value;
59633
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
59634
+ const pathParams$ = {
59635
+ id: encodeSimple("id", payload$.id, {
59636
+ explode: false,
59637
+ charEncoding: "percent"
59638
+ })
59639
+ };
59640
+ const path$ = pathToFunc("/prices/{id}")(pathParams$);
59641
+ const headers$ = new Headers(compactMap({
59642
+ "Content-Type": "application/json",
59643
+ Accept: "application/json"
59644
+ }));
59645
+ const securityInput = await extractSecurity(client$._options.security);
59646
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59647
+ const context = {
59648
+ options: client$._options,
59649
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59650
+ operationID: "updatePrice",
59651
+ oAuth2Scopes: null,
59652
+ resolvedSecurity: requestSecurity,
59653
+ securitySource: client$._options.security,
59654
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59655
+ retryCodes: options?.retryCodes || [
59656
+ "429",
59657
+ "500",
59658
+ "502",
59659
+ "503",
59660
+ "504"
59661
+ ]
59662
+ };
59663
+ const requestRes = client$._createRequest(context, {
59664
+ security: requestSecurity,
59665
+ method: "PUT",
59666
+ baseURL: options?.serverURL,
59667
+ path: path$,
59668
+ headers: headers$,
59669
+ body: body$,
59670
+ userAgent: client$._options.userAgent,
59671
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59672
+ }, options);
59673
+ if (!requestRes.ok) {
59674
+ return [requestRes, { status: "invalid" }];
59675
+ }
59676
+ const req$ = requestRes.value;
59677
+ const doResult = await client$._do(req$, {
59678
+ context,
59679
+ errorCodes: [],
59680
+ retryConfig: context.retryConfig,
59681
+ retryCodes: context.retryCodes
59682
+ });
59683
+ if (!doResult.ok) {
59684
+ return [doResult, { status: "request-error", request: req$ }];
59685
+ }
59686
+ return [doResult, {
59687
+ status: "complete",
59688
+ request: req$,
59689
+ response: doResult.value
59690
+ }];
59691
+ }
59692
+ var init_pricesUpdatePrice = __esm(() => {
59693
+ init_encodings();
59694
+ init_primitives();
59695
+ init_schemas4();
59696
+ init_security();
59697
+ init_url();
59698
+ init_updatepriceop();
59699
+ init_async();
59700
+ });
59701
+
59702
+ // src/mcp-server/tools/pricesUpdatePrice.ts
59703
+ var args43, tool$pricesUpdatePrice;
59704
+ var init_pricesUpdatePrice2 = __esm(() => {
59705
+ init_pricesUpdatePrice();
59706
+ init_updatepriceop();
59707
+ init_tools();
59708
+ args43 = {
59709
+ request: UpdatePriceRequest$zodSchema
59710
+ };
59711
+ tool$pricesUpdatePrice = {
59712
+ name: "update-price",
59713
+ description: `Update price
59714
+
59715
+ Use when changing price configuration (e.g. amount, billing scheme, or metadata).`,
59716
+ annotations: {
59717
+ title: "",
59718
+ destructiveHint: false,
59719
+ idempotentHint: false,
59720
+ openWorldHint: false,
59721
+ readOnlyHint: false
59722
+ },
59723
+ args: args43,
59724
+ tool: async (client, args44, ctx) => {
59725
+ const [result] = await pricesUpdatePrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59726
+ if (!result.ok) {
59727
+ return {
59728
+ content: [{ type: "text", text: result.error.message }],
59729
+ isError: true
59730
+ };
59731
+ }
59732
+ return formatResult(result.value);
59733
+ }
59734
+ };
59735
+ });
59736
+
59737
+ // src/mcp-server/server.ts
59738
+ function createMCPServer(deps) {
59739
+ const server = new McpServer({
59740
+ name: "Flexprice",
59741
+ version: "0.0.52"
59742
+ });
59743
+ const getClient = deps.getSDK || (() => new FlexpriceCore({
59744
+ security: deps.security,
59745
+ serverURL: deps.serverURL,
59746
+ serverIdx: deps.serverIdx,
59747
+ debugLogger: deps.logger.level === "debug" ? {
59748
+ log: (...args44) => console.log(...args44),
59749
+ group: (...args44) => console.group(...args44),
59750
+ groupEnd: (...args44) => console.groupEnd(...args44)
59751
+ } : undefined
59752
+ }));
59753
+ const scopes = new Set(deps.scopes);
59754
+ const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
59755
+ const [tool, tools, toolMap] = createRegisterTool(deps.logger, server, getClient, scopes, allowedTools, deps.dynamic);
59756
+ const resource = createRegisterResource(deps.logger, server, getClient, scopes);
59757
+ const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, getClient, scopes);
59758
+ const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
59759
+ const register = { tool, resource, resourceTemplate, prompt };
59760
+ tool(tool$customersUpdateCustomer);
59761
+ tool(tool$customersCreateCustomer);
59762
+ tool(tool$customersGetCustomerByExternalId);
59763
+ tool(tool$customersQueryCustomer);
59764
+ tool(tool$customersGetCustomerUsageSummary);
59765
+ tool(tool$customersGetCustomer);
59766
+ tool(tool$customersDeleteCustomer);
59767
+ tool(tool$customersGetCustomerEntitlements);
57832
59768
  tool(tool$customersGetCustomerUpcomingGrants);
57833
59769
  tool(tool$invoicesGetCustomerInvoiceSummary);
57834
59770
  tool(tool$invoicesCreateInvoice);
@@ -57851,6 +59787,20 @@ function createMCPServer(deps) {
57851
59787
  tool(tool$eventsGetUsageStatistics);
57852
59788
  tool(tool$eventsGetUsageByMeter);
57853
59789
  tool(tool$eventsGetEvent);
59790
+ tool(tool$plansCreatePlan);
59791
+ tool(tool$plansQueryPlan);
59792
+ tool(tool$plansGetPlan);
59793
+ tool(tool$plansUpdatePlan);
59794
+ tool(tool$plansDeletePlan);
59795
+ tool(tool$plansPostPlansIdClone);
59796
+ tool(tool$plansSyncPlanPrices);
59797
+ tool(tool$pricesCreatePrice);
59798
+ tool(tool$pricesCreatePricesBulk);
59799
+ tool(tool$pricesGetPriceByLookupKey);
59800
+ tool(tool$pricesQueryPrice);
59801
+ tool(tool$pricesGetPrice);
59802
+ tool(tool$pricesUpdatePrice);
59803
+ tool(tool$pricesDeletePrice);
57854
59804
  if (deps.dynamic) {
57855
59805
  registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
57856
59806
  }
@@ -57891,6 +59841,20 @@ var init_server2 = __esm(() => {
57891
59841
  init_invoicesUpdateInvoice2();
57892
59842
  init_invoicesUpdateInvoicePaymentStatus2();
57893
59843
  init_invoicesVoidInvoice2();
59844
+ init_plansCreatePlan2();
59845
+ init_plansDeletePlan2();
59846
+ init_plansGetPlan2();
59847
+ init_plansPostPlansIdClone2();
59848
+ init_plansQueryPlan2();
59849
+ init_plansSyncPlanPrices2();
59850
+ init_plansUpdatePlan2();
59851
+ init_pricesCreatePrice2();
59852
+ init_pricesCreatePricesBulk2();
59853
+ init_pricesDeletePrice2();
59854
+ init_pricesGetPrice2();
59855
+ init_pricesGetPriceByLookupKey2();
59856
+ init_pricesQueryPrice2();
59857
+ init_pricesUpdatePrice2();
57894
59858
  });
57895
59859
 
57896
59860
  // src/tool-names.ts
@@ -58076,6 +60040,90 @@ Use when showing usage for a specific meter (e.g. dashboard or overage check). S
58076
60040
  description: `Get event
58077
60041
 
58078
60042
  Use when debugging a specific event (e.g. why it failed or how it was aggregated). Includes processing status and debug info.`
60043
+ },
60044
+ {
60045
+ name: "create-plan",
60046
+ description: `Create plan
60047
+
60048
+ Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices and entitlements; customers subscribe to plans.`
60049
+ },
60050
+ {
60051
+ name: "query-plan",
60052
+ description: `Query plans
60053
+
60054
+ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns a paginated list; supports filtering and sorting.`
60055
+ },
60056
+ {
60057
+ name: "get-plan",
60058
+ description: `Get plan
60059
+
60060
+ Use when you need to load a single plan (e.g. for display or to create a subscription).`
60061
+ },
60062
+ {
60063
+ name: "update-plan",
60064
+ description: `Update plan
60065
+
60066
+ Use when changing plan details (e.g. name, interval, or metadata). Partial update supported.`
60067
+ },
60068
+ {
60069
+ name: "delete-plan",
60070
+ description: `Delete plan
60071
+
60072
+ Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affected. Returns 200 with success message.`
60073
+ },
60074
+ {
60075
+ name: "plans-post-plans-id-clone",
60076
+ description: `Clone a plan
60077
+
60078
+ Clone an existing plan, copying its active prices, published entitlements, and published credit grants`
60079
+ },
60080
+ {
60081
+ name: "sync-plan-prices",
60082
+ description: `Synchronize plan prices
60083
+
60084
+ Use when you have changed plan prices and need to push them to all active subscriptions (e.g. global price update). Returns workflow ID.`
60085
+ },
60086
+ {
60087
+ name: "create-price",
60088
+ description: `Create price
60089
+
60090
+ Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metered). Ideal for both simple and usage-based pricing.`
60091
+ },
60092
+ {
60093
+ name: "create-prices-bulk",
60094
+ description: `Create prices in bulk
60095
+
60096
+ Use when creating many prices at once (e.g. importing a catalog or setting up a plan with multiple tiers).`
60097
+ },
60098
+ {
60099
+ name: "get-price-by-lookup-key",
60100
+ description: `Get price by lookup key
60101
+
60102
+ Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal for integrations.`
60103
+ },
60104
+ {
60105
+ name: "query-price",
60106
+ description: `Query prices
60107
+
60108
+ Use when listing or searching prices (e.g. plan builder or catalog). Returns a paginated list; supports filtering and sorting.`
60109
+ },
60110
+ {
60111
+ name: "get-price",
60112
+ description: `Get price
60113
+
60114
+ Use when you need to load a single price (e.g. for display or editing). Response includes expanded meter and price unit when applicable.`
60115
+ },
60116
+ {
60117
+ name: "update-price",
60118
+ description: `Update price
60119
+
60120
+ Use when changing price configuration (e.g. amount, billing scheme, or metadata).`
60121
+ },
60122
+ {
60123
+ name: "delete-price",
60124
+ description: `Delete price
60125
+
60126
+ Use when retiring a price (e.g. end-of-life or replacement). Optional effective date or cascade for subscriptions.`
58079
60127
  }
58080
60128
  ];
58081
60129
  });
@@ -61585,7 +63633,7 @@ var routes = buildRouteMap({
61585
63633
  var app = buildApplication(routes, {
61586
63634
  name: "mcp",
61587
63635
  versionInfo: {
61588
- currentVersion: "0.0.47"
63636
+ currentVersion: "0.0.52"
61589
63637
  }
61590
63638
  });
61591
63639
  run(app, process4.argv.slice(2), buildContext(process4));
@@ -61593,5 +63641,5 @@ export {
61593
63641
  app
61594
63642
  };
61595
63643
 
61596
- //# debugId=CBBDDED48FBE1BCD64756E2164756E21
63644
+ //# debugId=02DBB7651406351764756E2164756E21
61597
63645
  //# sourceMappingURL=mcp-server.js.map