@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.353.g74313e0

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 (558) hide show
  1. package/dist/billing/type/funds/v1/generated/models.d.ts +4 -4
  2. package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
  3. package/dist/billing/type/order/v1/generated/models.d.ts +375 -779
  4. package/dist/billing/type/order/v1/generated/models.js +12 -44
  5. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  6. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +8 -8
  7. package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +8 -5
  8. package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +3 -3
  9. package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +22 -11
  10. package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +12 -3
  11. package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +1 -1
  12. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +5 -5
  13. package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  14. package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  15. package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.js +11 -0
  16. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +6 -3
  17. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +4 -4
  18. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +3 -3
  19. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  20. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +6 -5
  21. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  22. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  23. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  24. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  25. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  26. package/dist/billing/type/order/v1/generated/validators/contact.zod.js +2 -2
  27. package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  28. package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  29. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  30. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +1 -1
  31. package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +4 -4
  32. package/dist/billing/type/order/v1/generated/validators/currency.zod.js +1 -1
  33. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +23 -12
  34. package/dist/billing/type/order/v1/generated/validators/discount.zod.js +4 -4
  35. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +23 -12
  36. package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +1 -1
  37. package/dist/billing/type/order/v1/generated/validators/funds.zod.js +4 -4
  38. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +0 -1
  39. package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +8 -8
  40. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  41. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +6 -4
  42. package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  43. package/dist/billing/type/order/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  44. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  45. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  46. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +2 -2
  47. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  48. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +3 -3
  49. package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +2 -2
  50. package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +1 -1
  51. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -4
  52. package/dist/billing/type/order/v1/generated/validators/order.zod.js +10 -12
  53. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +7 -3
  54. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +16 -14
  55. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  56. package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +1 -1
  57. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -4
  58. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  59. package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  60. package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +1 -1
  61. package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +1 -1
  62. package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  63. package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  64. package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +4 -4
  65. package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  66. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  67. package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +1 -1
  68. package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  69. package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +4 -4
  70. package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +5 -8
  71. package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +1 -1
  72. package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  73. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +7 -5
  74. package/dist/billing/type/order/v1/generated/validators/price.zod.js +14 -11
  75. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +7 -5
  76. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +7 -5
  77. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +7 -3
  78. package/dist/billing/type/order/v1/generated/validators/priceType.zod.d.ts +14 -0
  79. package/dist/billing/type/order/v1/generated/validators/priceType.zod.js +11 -0
  80. package/dist/billing/type/order/v1/generated/validators/productID.zod.js +1 -1
  81. package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +2 -2
  82. package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +1 -1
  83. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +6 -3
  84. package/dist/billing/type/order/v1/generated/validators/quote.zod.js +4 -4
  85. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
  86. package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +4 -4
  87. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  88. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +8 -8
  89. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +1 -1
  90. package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  91. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  92. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +5 -5
  93. package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +1 -1
  94. package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +11 -0
  95. package/dist/billing/type/order/v1/generated/validators/rate.zod.js +14 -6
  96. package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +11 -0
  97. package/dist/billing/type/order/v1/generated/validators/refund.zod.js +3 -3
  98. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +1 -1
  99. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
  100. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +2 -2
  101. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  102. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +1 -1
  103. package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.js +2 -2
  104. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +8 -0
  105. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +11 -0
  106. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  107. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +1 -1
  108. package/dist/billing/type/order/v1/generated/validators/statement.zod.js +2 -2
  109. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +1 -0
  110. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +4 -0
  111. package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  112. package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +1 -1
  113. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +7 -3
  114. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +20 -14
  115. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  116. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  117. package/dist/billing/type/order/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  118. package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +1 -1
  119. package/dist/billing/type/order/v1/generated/validators/tier.zod.js +1 -1
  120. package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +8 -8
  121. package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +4 -4
  122. package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +6 -6
  123. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -7
  124. package/dist/billing/type/order/v1/generated/validators/usageType.zod.d.ts +14 -0
  125. package/dist/billing/type/order/v1/generated/validators/usageType.zod.js +11 -0
  126. package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +2 -2
  127. package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +2 -2
  128. package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +1 -1
  129. package/dist/billing/type/quote/v1/generated/models.d.ts +4 -4
  130. package/dist/billing/type/quote/v1/generated/validators/funds.zod.js +4 -4
  131. package/dist/billing/v1/generated/functions.d.ts +176 -310
  132. package/dist/billing/v1/generated/functions.js +175 -309
  133. package/dist/billing/v1/generated/models.d.ts +425 -863
  134. package/dist/billing/v1/generated/models.js +13 -49
  135. package/dist/billing/v1/generated/schemas.zod.d.ts +166 -383
  136. package/dist/billing/v1/generated/schemas.zod.js +213 -372
  137. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  138. package/dist/billing/v1/generated/validators/accountBalance.zod.js +8 -8
  139. package/dist/billing/v1/generated/validators/activeResource.zod.js +8 -5
  140. package/dist/billing/v1/generated/validators/allowance.zod.js +3 -3
  141. package/dist/billing/v1/generated/validators/applicability.zod.d.ts +22 -11
  142. package/dist/billing/v1/generated/validators/applicability.zod.js +12 -3
  143. package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
  144. package/dist/billing/v1/generated/validators/billingAccount.zod.js +5 -5
  145. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  146. package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  147. package/dist/billing/v1/generated/validators/billingScheme.zod.js +11 -0
  148. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +6 -3
  149. package/dist/billing/v1/generated/validators/cancellation.zod.js +4 -4
  150. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
  151. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  152. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
  153. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  154. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  155. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  156. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  157. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  158. package/dist/billing/v1/generated/validators/contact.zod.js +2 -2
  159. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  160. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  161. package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  162. package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
  163. package/dist/billing/v1/generated/validators/creditNote.zod.js +4 -4
  164. package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
  165. package/dist/billing/v1/generated/validators/discount.zod.d.ts +23 -12
  166. package/dist/billing/v1/generated/validators/discount.zod.js +4 -4
  167. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +23 -12
  168. package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
  169. package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
  170. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
  171. package/dist/billing/v1/generated/validators/invoice.zod.js +8 -8
  172. package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  173. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +6 -4
  174. package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  175. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  176. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  177. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  178. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
  179. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  180. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
  181. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
  182. package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +5 -2
  183. package/dist/billing/v1/generated/validators/listPricesParams.zod.js +4 -1
  184. package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -0
  185. package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -1
  186. package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +2 -2
  187. package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
  188. package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -4
  189. package/dist/billing/v1/generated/validators/order.zod.js +10 -12
  190. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +7 -3
  191. package/dist/billing/v1/generated/validators/orderItem.zod.js +16 -14
  192. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  193. package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
  194. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -4
  195. package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  196. package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  197. package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
  198. package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
  199. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  200. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  201. package/dist/billing/v1/generated/validators/paymentAction.zod.js +4 -4
  202. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  203. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  204. package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
  205. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  206. package/dist/billing/v1/generated/validators/paymentPreview.zod.js +4 -4
  207. package/dist/billing/v1/generated/validators/paymentResult.zod.js +5 -8
  208. package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
  209. package/dist/billing/v1/generated/validators/price.zod.d.ts +7 -5
  210. package/dist/billing/v1/generated/validators/price.zod.js +14 -11
  211. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +7 -5
  212. package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +7 -5
  213. package/dist/billing/v1/generated/validators/priceOption.zod.js +7 -3
  214. package/dist/billing/v1/generated/validators/priceType.zod.d.ts +14 -0
  215. package/dist/billing/v1/generated/validators/priceType.zod.js +11 -0
  216. package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
  217. package/dist/billing/v1/generated/validators/projectAssignment.zod.js +2 -2
  218. package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
  219. package/dist/billing/v1/generated/validators/quote.zod.d.ts +6 -3
  220. package/dist/billing/v1/generated/validators/quote.zod.js +4 -4
  221. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
  222. package/dist/billing/v1/generated/validators/quoteItem.zod.js +4 -4
  223. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  224. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +8 -8
  225. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
  226. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  227. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  228. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +5 -5
  229. package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
  230. package/dist/billing/v1/generated/validators/rate.zod.d.ts +11 -0
  231. package/dist/billing/v1/generated/validators/rate.zod.js +14 -6
  232. package/dist/billing/v1/generated/validators/rateList.zod.d.ts +11 -0
  233. package/dist/billing/v1/generated/validators/refund.zod.js +3 -3
  234. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
  235. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  236. package/dist/billing/v1/generated/validators/renewRequest.zod.js +2 -2
  237. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  238. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
  239. package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
  240. package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +8 -0
  241. package/dist/billing/v1/generated/validators/spendRow.zod.js +11 -0
  242. package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  243. package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
  244. package/dist/billing/v1/generated/validators/statement.zod.js +2 -2
  245. package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -0
  246. package/dist/billing/v1/generated/validators/statementItem.zod.js +4 -0
  247. package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  248. package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
  249. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +7 -3
  250. package/dist/billing/v1/generated/validators/subscription.zod.js +20 -14
  251. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  252. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  253. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  254. package/dist/billing/v1/generated/validators/terminationPolicy.zod.js +1 -1
  255. package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
  256. package/dist/billing/v1/generated/validators/topUp.zod.js +8 -8
  257. package/dist/billing/v1/generated/validators/topUpCreate.zod.js +4 -4
  258. package/dist/billing/v1/generated/validators/transaction.zod.js +6 -6
  259. package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -7
  260. package/dist/billing/v1/generated/validators/usageType.zod.d.ts +14 -0
  261. package/dist/billing/v1/generated/validators/usageType.zod.js +11 -0
  262. package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -2
  263. package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +2 -2
  264. package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
  265. package/dist/canopy/v1/generated/models.d.ts +375 -779
  266. package/dist/canopy/v1/generated/models.js +12 -44
  267. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  268. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
  269. package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
  270. package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
  271. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
  272. package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
  273. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
  274. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
  275. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  276. package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
  277. package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
  278. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
  279. package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
  280. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
  281. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  282. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
  283. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  284. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  285. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  286. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  287. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  288. package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
  289. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
  290. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  291. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  292. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  293. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
  294. package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
  295. package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
  296. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
  297. package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
  298. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
  299. package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
  300. package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
  301. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
  302. package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
  303. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  304. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
  305. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  306. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  307. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  308. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  309. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
  310. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  311. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
  312. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
  313. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
  314. package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
  315. package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
  316. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
  317. package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
  318. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  319. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
  320. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
  321. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  322. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  323. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
  324. package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
  325. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  326. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  327. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
  328. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  329. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  330. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
  331. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  332. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
  333. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
  334. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
  335. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  336. package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
  337. package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
  338. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
  339. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
  340. package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
  341. package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
  342. package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
  343. package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
  344. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
  345. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
  346. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
  347. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
  348. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
  349. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
  350. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
  351. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  352. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
  353. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
  354. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  355. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  356. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
  357. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
  358. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
  359. package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
  360. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
  361. package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
  362. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
  363. package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
  364. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
  365. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  366. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
  367. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
  368. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
  369. package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
  370. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  371. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
  372. package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
  373. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
  374. package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
  375. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  376. package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
  377. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
  378. package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
  379. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  380. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  381. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  382. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
  383. package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
  384. package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
  385. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
  386. package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
  387. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
  388. package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
  389. package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
  390. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
  391. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
  392. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
  393. package/dist/compute/v1/generated/models.d.ts +4 -4
  394. package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
  395. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
  396. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
  397. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
  398. package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
  399. package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
  400. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
  401. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
  402. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
  403. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
  404. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
  405. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
  406. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
  407. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
  408. package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
  409. package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
  410. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
  411. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
  412. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
  413. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
  414. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
  415. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
  416. package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
  417. package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
  418. package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
  419. package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
  420. package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
  421. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
  422. package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
  423. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
  424. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
  425. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
  426. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
  427. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
  428. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
  429. package/dist/membership/v1/generated/models.d.ts +375 -779
  430. package/dist/membership/v1/generated/models.js +12 -44
  431. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  432. package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
  433. package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
  434. package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
  435. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
  436. package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
  437. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
  438. package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
  439. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  440. package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  441. package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
  442. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
  443. package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
  444. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
  445. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  446. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
  447. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  448. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  449. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  450. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  451. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  452. package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
  453. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  454. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  455. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  456. package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
  457. package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
  458. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
  459. package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
  460. package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
  461. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
  462. package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
  463. package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
  464. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
  465. package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
  466. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  467. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
  468. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  469. package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  470. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  471. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  472. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
  473. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  474. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
  475. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
  476. package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
  477. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
  478. package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
  479. package/dist/membership/v1/generated/validators/order.zod.js +10 -12
  480. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
  481. package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
  482. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  483. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
  484. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
  485. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  486. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  487. package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
  488. package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
  489. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  490. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  491. package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
  492. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  493. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  494. package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
  495. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  496. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
  497. package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
  498. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
  499. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  500. package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
  501. package/dist/membership/v1/generated/validators/price.zod.js +14 -11
  502. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
  503. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
  504. package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
  505. package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
  506. package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
  507. package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
  508. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
  509. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
  510. package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
  511. package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
  512. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  513. package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
  514. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  515. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
  516. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
  517. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  518. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  519. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
  520. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
  521. package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
  522. package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
  523. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
  524. package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
  525. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
  526. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  527. package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
  528. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  529. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
  530. package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
  531. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
  532. package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
  533. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  534. package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
  535. package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
  536. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
  537. package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
  538. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  539. package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
  540. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
  541. package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
  542. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  543. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  544. package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  545. package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
  546. package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
  547. package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
  548. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
  549. package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
  550. package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
  551. package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
  552. package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
  553. package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
  554. package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
  555. package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
  556. package/dist/routes.d.ts +4 -4
  557. package/dist/routes.js +4 -4
  558. package/package.json +1 -1
@@ -37,18 +37,20 @@ export declare const CreditGrantList: zod.ZodObject<{
37
37
  id: zod.ZodUUID;
38
38
  name: zod.ZodString;
39
39
  }, zod.z.core.$strict>;
40
- billing_scheme: zod.ZodEnum<{
40
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
41
41
  per_unit: "per_unit";
42
42
  tiered: "tiered";
43
- rated: "rated";
44
- }>;
43
+ }>>;
45
44
  unit_quantity: zod.ZodString;
46
45
  id: zod.ZodUUID;
47
46
  currency: zod.ZodString;
48
47
  type: zod.ZodEnum<{
49
- postpaid: "postpaid";
50
- prepaid: "prepaid";
51
48
  one_time: "one_time";
49
+ recurring: "recurring";
50
+ }>;
51
+ usage_type: zod.ZodEnum<{
52
+ licensed: "licensed";
53
+ metered: "metered";
52
54
  }>;
53
55
  interval: zod.ZodEnum<{
54
56
  none: "none";
@@ -60,7 +62,14 @@ export declare const CreditGrantList: zod.ZodObject<{
60
62
  unit_amount: zod.ZodOptional<zod.ZodString>;
61
63
  active: zod.ZodBoolean;
62
64
  }, zod.z.core.$strict>>>;
63
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
65
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
66
+ one_time: "one_time";
67
+ recurring: "recurring";
68
+ }>>>;
69
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
70
+ licensed: "licensed";
71
+ metered: "metered";
72
+ }>>>;
64
73
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
65
74
  new: "new";
66
75
  renew: "renew";
@@ -89,18 +98,20 @@ export declare const CreditGrantList: zod.ZodObject<{
89
98
  id: zod.ZodUUID;
90
99
  name: zod.ZodString;
91
100
  }, zod.z.core.$strict>;
92
- billing_scheme: zod.ZodEnum<{
101
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
93
102
  per_unit: "per_unit";
94
103
  tiered: "tiered";
95
- rated: "rated";
96
- }>;
104
+ }>>;
97
105
  unit_quantity: zod.ZodString;
98
106
  id: zod.ZodUUID;
99
107
  currency: zod.ZodString;
100
108
  type: zod.ZodEnum<{
101
- postpaid: "postpaid";
102
- prepaid: "prepaid";
103
109
  one_time: "one_time";
110
+ recurring: "recurring";
111
+ }>;
112
+ usage_type: zod.ZodEnum<{
113
+ licensed: "licensed";
114
+ metered: "metered";
104
115
  }>;
105
116
  interval: zod.ZodEnum<{
106
117
  none: "none";
@@ -29,18 +29,20 @@ export declare const CreditGroup: zod.ZodObject<{
29
29
  id: zod.ZodUUID;
30
30
  name: zod.ZodString;
31
31
  }, zod.z.core.$strict>;
32
- billing_scheme: zod.ZodEnum<{
32
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
33
33
  per_unit: "per_unit";
34
34
  tiered: "tiered";
35
- rated: "rated";
36
- }>;
35
+ }>>;
37
36
  unit_quantity: zod.ZodString;
38
37
  id: zod.ZodUUID;
39
38
  currency: zod.ZodString;
40
39
  type: zod.ZodEnum<{
41
- postpaid: "postpaid";
42
- prepaid: "prepaid";
43
40
  one_time: "one_time";
41
+ recurring: "recurring";
42
+ }>;
43
+ usage_type: zod.ZodEnum<{
44
+ licensed: "licensed";
45
+ metered: "metered";
44
46
  }>;
45
47
  interval: zod.ZodEnum<{
46
48
  none: "none";
@@ -52,7 +54,14 @@ export declare const CreditGroup: zod.ZodObject<{
52
54
  unit_amount: zod.ZodOptional<zod.ZodString>;
53
55
  active: zod.ZodBoolean;
54
56
  }, zod.z.core.$strict>>>;
55
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
57
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
58
+ one_time: "one_time";
59
+ recurring: "recurring";
60
+ }>>>;
61
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
62
+ licensed: "licensed";
63
+ metered: "metered";
64
+ }>>>;
56
65
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
57
66
  new: "new";
58
67
  renew: "renew";
@@ -81,18 +90,20 @@ export declare const CreditGroup: zod.ZodObject<{
81
90
  id: zod.ZodUUID;
82
91
  name: zod.ZodString;
83
92
  }, zod.z.core.$strict>;
84
- billing_scheme: zod.ZodEnum<{
93
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
85
94
  per_unit: "per_unit";
86
95
  tiered: "tiered";
87
- rated: "rated";
88
- }>;
96
+ }>>;
89
97
  unit_quantity: zod.ZodString;
90
98
  id: zod.ZodUUID;
91
99
  currency: zod.ZodString;
92
100
  type: zod.ZodEnum<{
93
- postpaid: "postpaid";
94
- prepaid: "prepaid";
95
101
  one_time: "one_time";
102
+ recurring: "recurring";
103
+ }>;
104
+ usage_type: zod.ZodEnum<{
105
+ licensed: "licensed";
106
+ metered: "metered";
96
107
  }>;
97
108
  interval: zod.ZodEnum<{
98
109
  none: "none";
@@ -9,7 +9,7 @@ import * as zod from "zod";
9
9
  import { Applicability } from "./applicability.zod.js";
10
10
  import { Money } from "./money.zod.js";
11
11
  export const CreditGroup = zod.strictObject({
12
- applies_to: Applicability.describe("What the credit in this group may pay for. No restrictions means anything on the account."),
12
+ applies_to: Applicability.describe("What the credit in this group may pay for; no restrictions means anything on the account."),
13
13
  first_purchase_only: zod
14
14
  .boolean()
15
15
  .optional()
@@ -19,11 +19,11 @@ export const CreditNote = zod
19
19
  .nullable()
20
20
  .describe("When this note was voided; null while issued."),
21
21
  pre_payment_amount: Money.describe("The reduction of unpaid receivables. A void note no longer reduces what is due."),
22
- post_payment_amount: Money.describe("The credited part of payments already received. This is not proof that its refund has completed."),
22
+ post_payment_amount: Money.describe("The credited part of payments already received; its refund may not have completed."),
23
23
  refund_id: zod
24
24
  .uuid()
25
25
  .nullable()
26
- .describe("The refund to the original payment sources, or null when no paid amount was credited."),
26
+ .describe("The refund to the original payment sources; null when no paid amount was credited."),
27
27
  reason: zod
28
28
  .enum([
29
29
  "provisioning_failed",
@@ -35,6 +35,6 @@ export const CreditNote = zod
35
35
  "usage_true_up",
36
36
  "operator",
37
37
  ])
38
- .describe("Why the note was issued. Notes from canceled, expired or failed orders carry the order's reason;\n`usage_true_up` returns a tier price reduction settled after the original invoice; `operator` is\nissued by Leaflow on request."),
38
+ .describe("Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request."),
39
39
  })
40
- .describe("An issued invoice reduction. Its credited amount is pre_payment_amount plus post_payment_amount. A paid credit records a return obligation; refund_id identifies its refund, whose outcome may still be pending. Original invoice amounts remain unchanged.");
40
+ .describe("A reduction of an issued invoice; the original invoice amounts do not change. The credited amount is pre_payment_amount plus post_payment_amount. A paid part creates a refund, identified by refund_id, whose outcome may still be pending.");
@@ -23,7 +23,7 @@ export const Currency = zod
23
23
  .int()
24
24
  .min(currencyExponentMin)
25
25
  .max(currencyExponentMax)
26
- .describe("Decimal places of the currency, the ISO 4217 minor unit."),
26
+ .describe("Decimal places of the ISO 4217 minor unit."),
27
27
  name: zod.string().min(1).max(currencyNameMax),
28
28
  minimum_top_up: Money,
29
29
  })
@@ -25,8 +25,8 @@ export declare const Discount: zod.ZodObject<{
25
25
  free_setup: "free_setup";
26
26
  }>;
27
27
  frequency: zod.ZodOptional<zod.ZodEnum<{
28
- once: "once";
29
28
  recurring: "recurring";
29
+ once: "once";
30
30
  forever: "forever";
31
31
  }>>;
32
32
  frequency_duration: zod.ZodOptional<zod.ZodInt>;
@@ -58,18 +58,20 @@ export declare const Discount: zod.ZodObject<{
58
58
  id: zod.ZodUUID;
59
59
  name: zod.ZodString;
60
60
  }, zod.z.core.$strict>;
61
- billing_scheme: zod.ZodEnum<{
61
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
62
62
  per_unit: "per_unit";
63
63
  tiered: "tiered";
64
- rated: "rated";
65
- }>;
64
+ }>>;
66
65
  unit_quantity: zod.ZodString;
67
66
  id: zod.ZodUUID;
68
67
  currency: zod.ZodString;
69
68
  type: zod.ZodEnum<{
70
- postpaid: "postpaid";
71
- prepaid: "prepaid";
72
69
  one_time: "one_time";
70
+ recurring: "recurring";
71
+ }>;
72
+ usage_type: zod.ZodEnum<{
73
+ licensed: "licensed";
74
+ metered: "metered";
73
75
  }>;
74
76
  interval: zod.ZodEnum<{
75
77
  none: "none";
@@ -81,7 +83,14 @@ export declare const Discount: zod.ZodObject<{
81
83
  unit_amount: zod.ZodOptional<zod.ZodString>;
82
84
  active: zod.ZodBoolean;
83
85
  }, zod.z.core.$strict>>>;
84
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
86
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
87
+ one_time: "one_time";
88
+ recurring: "recurring";
89
+ }>>>;
90
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
91
+ licensed: "licensed";
92
+ metered: "metered";
93
+ }>>>;
85
94
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
86
95
  new: "new";
87
96
  renew: "renew";
@@ -110,18 +119,20 @@ export declare const Discount: zod.ZodObject<{
110
119
  id: zod.ZodUUID;
111
120
  name: zod.ZodString;
112
121
  }, zod.z.core.$strict>;
113
- billing_scheme: zod.ZodEnum<{
122
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
114
123
  per_unit: "per_unit";
115
124
  tiered: "tiered";
116
- rated: "rated";
117
- }>;
125
+ }>>;
118
126
  unit_quantity: zod.ZodString;
119
127
  id: zod.ZodUUID;
120
128
  currency: zod.ZodString;
121
129
  type: zod.ZodEnum<{
122
- postpaid: "postpaid";
123
- prepaid: "prepaid";
124
130
  one_time: "one_time";
131
+ recurring: "recurring";
132
+ }>;
133
+ usage_type: zod.ZodEnum<{
134
+ licensed: "licensed";
135
+ metered: "metered";
125
136
  }>;
126
137
  interval: zod.ZodEnum<{
127
138
  none: "none";
@@ -16,13 +16,13 @@ export const Discount = zod
16
16
  promotion_code_id: zod.uuid().optional(),
17
17
  status: zod
18
18
  .enum(["scheduled", "active", "expired", "voided"])
19
- .describe("`scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or\n`voided` once Leaflow withdrew it."),
19
+ .describe("`scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn."),
20
20
  voided_at: zod.iso.datetime({ offset: true }).optional(),
21
21
  type: zod.enum(["percentage", "fixed_amount", "price_override", "free_setup"]),
22
22
  frequency: zod
23
23
  .enum(["once", "recurring", "forever"])
24
24
  .optional()
25
- .describe("Whether the discount continues on renewals of the purchased item. `once` applies only to the\npurchase or renewal that uses the coupon, `recurring` continues for `frequency_duration` billing\nperiods including the first, and `forever` continues on every renewal."),
25
+ .describe("Whether the discount continues on renewals: `once` applies only to the purchase or renewal using the coupon, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal."),
26
26
  frequency_duration: zod.int().min(1).optional(),
27
27
  id: zod.uuid(),
28
28
  name: zod.string().optional(),
@@ -30,7 +30,7 @@ export const Discount = zod
30
30
  amount: Money.optional(),
31
31
  max_discount: Money.optional().describe("Caps a percentage discount."),
32
32
  currency: zod.string().optional(),
33
- applies_to: Applicability.describe("What it may be used for. Absent means it applies to anything on the account,\nincluding setup fees and traffic."),
33
+ applies_to: Applicability.describe("What it may pay for. Absent means anything on the account, including setup fees and usage."),
34
34
  first_purchase_only: zod
35
35
  .boolean()
36
36
  .optional()
@@ -41,4 +41,4 @@ export const Discount = zod
41
41
  .nullish()
42
42
  .describe("Absent follows the coupon's own validity."),
43
43
  })
44
- .describe("A coupon held on this account for a period. Within the period it applies without a code to purchases and\nto metered usage that the coupon covers.");
44
+ .describe("A coupon held by the account for a period, applying without a code to the purchases and metered usage it covers.");
@@ -26,8 +26,8 @@ export declare const DiscountList: zod.ZodObject<{
26
26
  free_setup: "free_setup";
27
27
  }>;
28
28
  frequency: zod.ZodOptional<zod.ZodEnum<{
29
- once: "once";
30
29
  recurring: "recurring";
30
+ once: "once";
31
31
  forever: "forever";
32
32
  }>>;
33
33
  frequency_duration: zod.ZodOptional<zod.ZodInt>;
@@ -59,18 +59,20 @@ export declare const DiscountList: zod.ZodObject<{
59
59
  id: zod.ZodUUID;
60
60
  name: zod.ZodString;
61
61
  }, zod.z.core.$strict>;
62
- billing_scheme: zod.ZodEnum<{
62
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
63
63
  per_unit: "per_unit";
64
64
  tiered: "tiered";
65
- rated: "rated";
66
- }>;
65
+ }>>;
67
66
  unit_quantity: zod.ZodString;
68
67
  id: zod.ZodUUID;
69
68
  currency: zod.ZodString;
70
69
  type: zod.ZodEnum<{
71
- postpaid: "postpaid";
72
- prepaid: "prepaid";
73
70
  one_time: "one_time";
71
+ recurring: "recurring";
72
+ }>;
73
+ usage_type: zod.ZodEnum<{
74
+ licensed: "licensed";
75
+ metered: "metered";
74
76
  }>;
75
77
  interval: zod.ZodEnum<{
76
78
  none: "none";
@@ -82,7 +84,14 @@ export declare const DiscountList: zod.ZodObject<{
82
84
  unit_amount: zod.ZodOptional<zod.ZodString>;
83
85
  active: zod.ZodBoolean;
84
86
  }, zod.z.core.$strict>>>;
85
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
87
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
88
+ one_time: "one_time";
89
+ recurring: "recurring";
90
+ }>>>;
91
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
92
+ licensed: "licensed";
93
+ metered: "metered";
94
+ }>>>;
86
95
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
87
96
  new: "new";
88
97
  renew: "renew";
@@ -111,18 +120,20 @@ export declare const DiscountList: zod.ZodObject<{
111
120
  id: zod.ZodUUID;
112
121
  name: zod.ZodString;
113
122
  }, zod.z.core.$strict>;
114
- billing_scheme: zod.ZodEnum<{
123
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
115
124
  per_unit: "per_unit";
116
125
  tiered: "tiered";
117
- rated: "rated";
118
- }>;
126
+ }>>;
119
127
  unit_quantity: zod.ZodString;
120
128
  id: zod.ZodUUID;
121
129
  currency: zod.ZodString;
122
130
  type: zod.ZodEnum<{
123
- postpaid: "postpaid";
124
- prepaid: "prepaid";
125
131
  one_time: "one_time";
132
+ recurring: "recurring";
133
+ }>;
134
+ usage_type: zod.ZodEnum<{
135
+ licensed: "licensed";
136
+ metered: "metered";
126
137
  }>;
127
138
  interval: zod.ZodEnum<{
128
139
  none: "none";
@@ -16,5 +16,5 @@ export const Entitlement = zod.strictObject({
16
16
  expires_at: zod.iso
17
17
  .datetime({ offset: true })
18
18
  .nullish()
19
- .describe("When the subscription providing it ends. Absent for a metered subscription, which\nhas no end date."),
19
+ .describe("When the providing subscription ends. Absent for a metered subscription."),
20
20
  });
@@ -10,10 +10,10 @@ import { Money } from "./money.zod.js";
10
10
  export const Funds = zod
11
11
  .strictObject({
12
12
  available_balance_amount: Money.describe("Spendable balance after pending returns."),
13
- usable_credit_amount: Money.describe("Currently effective credits eligible for the quoted purchases or postpaid usage. Each grant is counted once."),
14
- restricted_credit_amount: Money.describe("Currently effective credits that cannot fund any quoted purchase or postpaid target. Unused eligible credits are not restricted."),
15
- required_balance_amount: Money.describe("Minimum spendable balance needed after eligible credits, covering immediate charges and every new postpaid admission requirement."),
13
+ usable_credit_amount: Money.describe("Currently effective credits eligible for the quoted purchases or metered usage. Each grant is counted once."),
14
+ restricted_credit_amount: Money.describe("Currently effective credits that cannot fund any quoted purchase or metered target. Unused eligible credits are not restricted."),
15
+ required_balance_amount: Money.describe("Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement."),
16
16
  balance_shortfall_amount: Money.describe("Additional balance needed now. Zero means account funds satisfy this quote. No funds are reserved."),
17
17
  required_top_up_amount: Money.describe("Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed."),
18
18
  })
19
- .describe("Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.\nCredit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.\nA prepaid purchase may instead use an online payment method.\n");
19
+ .describe("Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.\nCredit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.\nA licensed purchase may instead be paid with an online payment method.\n");
@@ -30,7 +30,6 @@ export declare const Invoice: zod.ZodObject<{
30
30
  open: "open";
31
31
  draft: "draft";
32
32
  paid: "paid";
33
- uncollectible: "uncollectible";
34
33
  }>;
35
34
  subtotal: zod.ZodOptional<zod.ZodString>;
36
35
  discount_amount: zod.ZodOptional<zod.ZodString>;
@@ -13,7 +13,7 @@ export const Invoice = zod.strictObject({
13
13
  void_requested_at: zod.iso
14
14
  .datetime({ offset: true })
15
15
  .optional()
16
- .describe("Collection has been stopped; any accepted return obligations are completed before final voiding."),
16
+ .describe("Collection has stopped; accepted return obligations are completed."),
17
17
  due_at: zod.iso.datetime({ offset: true }).optional(),
18
18
  amount_refunded: zod.string().optional(),
19
19
  tax_items: zod.array(TaxItem),
@@ -25,24 +25,24 @@ export const Invoice = zod.strictObject({
25
25
  subtotal: Money.optional().describe("Sum of the line amounts before discounts. Where prices include tax, the tax contained in\neach line's discounted amount is taken out here, so that total = subtotal -\ndiscount_amount + tax_amount always holds."),
26
26
  discount_amount: Money.optional().describe("Sum of the line discounts, taken off before tax."),
27
27
  tax_amount: Money.optional(),
28
- credit_applied: Money.optional().describe("Successful credit-grant payments included in amount_paid. Does not reduce the receivable or tax base."),
29
- total: Money.describe("Subtotal less discount plus tax. Balance and credit grants are payment sources, not reductions of the receivable."),
28
+ credit_applied: Money.optional().describe("Successful credit-grant payments, included in amount_paid; they do not reduce the receivable or tax base."),
29
+ total: Money.describe("Subtotal less discount plus tax. Balance and credit grants pay it; they do not reduce it."),
30
30
  amount_paid: Money.optional(),
31
- pre_payment_credit_notes_amount: Money.describe("Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total."),
32
- post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds."),
33
- amount_due: Money.describe("What is still collectible after unpaid credit notes and successful payments; never below zero. A draft has none; its total is the base price, and a payment preview shows what paying it would collect. A paid or void invoice has none either."),
31
+ pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
32
+ post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
33
+ amount_due: Money.describe("What is still collectible after unpaid credit notes and successful payments; never below zero. Zero for a draft, whose total is the base price, and for a paid or void invoice."),
34
34
  period_start: zod.iso.datetime({ offset: true }).nullish(),
35
35
  period_end: zod.iso.datetime({ offset: true }).nullish().describe("Exclusive."),
36
36
  customer_name: zod
37
37
  .string()
38
38
  .optional()
39
- .describe("Who this was billed to, as recorded when the invoice was issued. Later changes to\nthe account do not alter it."),
39
+ .describe("The billing details recorded when the invoice was issued."),
40
40
  customer_email: zod.string().optional(),
41
41
  customer_tax_id: zod.string().optional(),
42
42
  customer_tax_exempt: zod
43
43
  .enum(["none", "exempt", "reverse"])
44
44
  .optional()
45
- .describe("How tax applied to the customer when the invoice was issued. `reverse` means no tax was\ncharged because the customer accounts for it under the reverse-charge mechanism."),
45
+ .describe("How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism."),
46
46
  customer_address_line1: zod.string().optional(),
47
47
  customer_address_line2: zod.string().optional(),
48
48
  customer_address_city: zod.string().optional(),
@@ -36,6 +36,7 @@ export declare const InvoiceItem: zod.ZodObject<{
36
36
  currency: zod.ZodString;
37
37
  period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
38
38
  period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
39
+ dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
39
40
  prorations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
40
41
  credited_invoice_item_id: zod.ZodUUID;
41
42
  description: zod.ZodString;
@@ -28,11 +28,9 @@ export const InvoiceItem = zod.strictObject({
28
28
  project: zod
29
29
  .union([NamedIdentity, zod.null()])
30
30
  .optional()
31
- .describe("The project the charge was for and its current name, for display. Absent when the line is\nnot for a project, and when the project no longer exists or its details cannot be read at\nthe moment; `project_id` still identifies it then."),
31
+ .describe("The project the charge was for and its current name. Absent when the line has no project or the project cannot be read; `project_id` still identifies it."),
32
32
  resource_id: zod.string().optional(),
33
- description: zod
34
- .string()
35
- .describe("The wording as recorded when the invoice was issued. It is not re-translated\nafterwards, so that an invoice continues to read as it did when it was sent."),
33
+ description: zod.string().describe("The line's wording as recorded when the invoice was issued."),
36
34
  unit: zod.string().optional(),
37
35
  quantity: zod.string().optional(),
38
36
  deducted_quantity: zod
@@ -44,6 +42,10 @@ export const InvoiceItem = zod.strictObject({
44
42
  currency: zod.string(),
45
43
  period_start: zod.iso.datetime({ offset: true }).nullish(),
46
44
  period_end: zod.iso.datetime({ offset: true }).nullish(),
45
+ dimensions: zod
46
+ .record(zod.string(), zod.string())
47
+ .optional()
48
+ .describe("For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines."),
47
49
  prorations: zod
48
50
  .array(InvoiceItemProration)
49
51
  .optional()
@@ -37,6 +37,7 @@ export declare const InvoiceItemList: zod.ZodObject<{
37
37
  currency: zod.ZodString;
38
38
  period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
39
39
  period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
40
+ dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
40
41
  prorations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
41
42
  credited_invoice_item_id: zod.ZodUUID;
42
43
  description: zod.ZodString;
@@ -12,9 +12,7 @@ export const InvoiceItemProration = zod
12
12
  credited_invoice_item_id: zod
13
13
  .uuid()
14
14
  .describe("The earlier invoice line that paid for the period."),
15
- description: zod
16
- .string()
17
- .describe("The wording of the earlier invoice line as recorded when this invoice was created."),
15
+ description: zod.string().describe("The earlier invoice line's wording as recorded."),
18
16
  period_start: zod.iso.datetime({ offset: true }),
19
17
  period_end: zod.iso.datetime({ offset: true }).describe("Exclusive."),
20
18
  remaining_amount: Money.describe("Before tax and discounts, the new configuration for the period."),
@@ -31,7 +31,6 @@ export declare const InvoiceList: zod.ZodObject<{
31
31
  open: "open";
32
32
  draft: "draft";
33
33
  paid: "paid";
34
- uncollectible: "uncollectible";
35
34
  }>;
36
35
  subtotal: zod.ZodOptional<zod.ZodString>;
37
36
  discount_amount: zod.ZodOptional<zod.ZodString>;
@@ -11,7 +11,6 @@ export declare const InvoiceStatus: zod.ZodEnum<{
11
11
  open: "open";
12
12
  draft: "draft";
13
13
  paid: "paid";
14
- uncollectible: "uncollectible";
15
14
  }>;
16
15
  export type InvoiceStatus = zod.input<typeof InvoiceStatus>;
17
16
  export type InvoiceStatusOutput = zod.output<typeof InvoiceStatus>;
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export const InvoiceStatus = zod
10
- .enum(["draft", "open", "paid", "void", "uncollectible"])
11
- .describe("A draft is not yet issued. The draft invoice of an order shows base prices until it is paid, when\nthe discount is applied and it is issued; other drafts are private to administrators.\nAn issued invoice is open until settled; a zero-total issued invoice is immediately paid.\nUnbilled usage remains separate from invoices until it is invoiced.\nA refund does not change the status: a paid invoice stays paid, with the refunded part in\namount_refunded. void means collection has stopped and any funds received have been returned.");
10
+ .enum(["draft", "open", "paid", "void"])
11
+ .describe("`draft`: not yet issued; an order's draft invoice shows base prices until it is paid, when the discount is applied and it is issued. Other drafts are visible only to operators. `open`: issued and not yet settled; a zero-total invoice is paid at once. `paid` stays paid after a refund, with the refunded part in amount_refunded. `void`: collection has stopped and any funds received have been returned. Usage not yet invoiced is not on any invoice.");
@@ -16,7 +16,6 @@ export declare const InvoiceSummary: zod.ZodObject<{
16
16
  open: "open";
17
17
  draft: "draft";
18
18
  paid: "paid";
19
- uncollectible: "uncollectible";
20
19
  }>;
21
20
  subtotal: zod.ZodString;
22
21
  discount_amount: zod.ZodString;
@@ -22,8 +22,8 @@ export const InvoiceSummary = zod
22
22
  tax_amount: zod.string(),
23
23
  total: zod.string(),
24
24
  amount_paid: zod.string(),
25
- pre_payment_credit_notes_amount: Money.describe("Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total."),
26
- post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds."),
25
+ pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
26
+ post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
27
27
  amount_due: zod
28
28
  .string()
29
29
  .regex(invoiceSummaryAmountDueRegExp)
@@ -31,4 +31,4 @@ export const InvoiceSummary = zod
31
31
  amount_refunded: zod.string(),
32
32
  due_at: zod.iso.datetime({ offset: true }).optional(),
33
33
  })
34
- .describe("Purchase-related invoice amounts, without account contact details or payment methods. Every order\nhas an invoice from placement. A draft shows base prices until it is paid, when the discount is\napplied and it is issued; a zero-total invoice is issued and paid at placement whatever the\ncheckout mode. Neither establishes acceptance or delivery.");
34
+ .describe("An order's invoice amounts, without contact details or payment methods. A draft shows base prices until it is paid, when the discount is applied and it is issued; a zero-total invoice is issued and paid at placement.");
@@ -19,7 +19,6 @@ export declare const ListInvoicesParams: zod.ZodObject<{
19
19
  open: "open";
20
20
  draft: "draft";
21
21
  paid: "paid";
22
- uncollectible: "uncollectible";
23
22
  }>>;
24
23
  subscription_id: zod.ZodOptional<zod.ZodUUID>;
25
24
  from: zod.ZodOptional<zod.z.ZodISODateTime>;
@@ -18,9 +18,12 @@ export declare const ListPricesParams: zod.ZodObject<{
18
18
  currency: zod.ZodString;
19
19
  product_id: zod.ZodOptional<zod.ZodString>;
20
20
  type: zod.ZodOptional<zod.ZodEnum<{
21
- postpaid: "postpaid";
22
- prepaid: "prepaid";
23
21
  one_time: "one_time";
22
+ recurring: "recurring";
23
+ }>>;
24
+ usage_type: zod.ZodOptional<zod.ZodEnum<{
25
+ licensed: "licensed";
26
+ metered: "metered";
24
27
  }>>;
25
28
  }, zod.z.core.$strict>;
26
29
  export type ListPricesParams = zod.input<typeof ListPricesParams>;
@@ -6,7 +6,9 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
+ import { PriceType } from "./priceType.zod.js";
9
10
  import { ProductID } from "./productID.zod.js";
11
+ import { UsageType } from "./usageType.zod.js";
10
12
  export const listPricesParamsPageDefault = 1;
11
13
  export const listPricesParamsPageMax = 2147483647;
12
14
  export const listPricesParamsPageSizeDefault = 50;
@@ -22,5 +24,6 @@ export const ListPricesParams = zod.strictObject({
22
24
  .default(listPricesParamsPageSizeDefault),
23
25
  currency: zod.string().min(listPricesParamsCurrencyMin).max(listPricesParamsCurrencyMax),
24
26
  product_id: ProductID.optional(),
25
- type: zod.enum(["postpaid", "prepaid", "one_time"]).optional(),
27
+ type: PriceType.optional(),
28
+ usage_type: UsageType.optional(),
26
29
  });
@@ -17,6 +17,7 @@ export declare const ListSpendParams: zod.ZodObject<{
17
17
  to: zod.z.ZodISODateTime;
18
18
  group_by: zod.ZodDefault<zod.ZodEnum<{
19
19
  product: "product";
20
+ meter: "meter";
20
21
  plan: "plan";
21
22
  resource: "resource";
22
23
  }>>;
@@ -16,7 +16,9 @@ export const listSpendParamsProjectIdsMax = 100;
16
16
  export const ListSpendParams = zod.strictObject({
17
17
  from: zod.iso.datetime({ offset: true }),
18
18
  to: zod.iso.datetime({ offset: true }),
19
- group_by: zod.enum(["product", "plan", "resource"]).default(listSpendParamsGroupByDefault),
19
+ group_by: zod
20
+ .enum(["product", "plan", "resource", "meter"])
21
+ .default(listSpendParamsGroupByDefault),
20
22
  product_id: ProductID.optional(),
21
23
  page: zod.int().min(1).max(listSpendParamsPageMax).default(listSpendParamsPageDefault),
22
24
  page_size: zod