@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
@@ -69,15 +69,17 @@ export declare const Price: zod.ZodObject<{
69
69
  plan_id: zod.ZodUUID;
70
70
  currency: zod.ZodString;
71
71
  type: zod.ZodEnum<{
72
- postpaid: "postpaid";
73
- prepaid: "prepaid";
74
72
  one_time: "one_time";
73
+ recurring: "recurring";
75
74
  }>;
76
- billing_scheme: zod.ZodEnum<{
75
+ usage_type: zod.ZodEnum<{
76
+ licensed: "licensed";
77
+ metered: "metered";
78
+ }>;
79
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
77
80
  per_unit: "per_unit";
78
81
  tiered: "tiered";
79
- rated: "rated";
80
- }>;
82
+ }>>;
81
83
  unit_amount: zod.ZodOptional<zod.ZodString>;
82
84
  tiers_mode: zod.ZodOptional<zod.ZodEnum<{
83
85
  none: "none";
@@ -31,19 +31,25 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { BillingScheme } from "./billingScheme.zod.js";
34
35
  import { Money } from "./money.zod.js";
35
36
  import { ObjectIdentity } from "./objectIdentity.zod.js";
37
+ import { PriceType } from "./priceType.zod.js";
36
38
  import { Product } from "./product.zod.js";
37
39
  import { ProductID } from "./productID.zod.js";
38
40
  import { RefundPolicy } from "./refundPolicy.zod.js";
39
41
  import { TerminationPolicy } from "./terminationPolicy.zod.js";
40
42
  import { Tier } from "./tier.zod.js";
43
+ import { UsageType } from "./usageType.zod.js";
41
44
  export const Price = zod.strictObject({
42
45
  rate_card: ObjectIdentity.optional(),
43
46
  lookup_key: zod.string().optional(),
44
47
  product: Product,
45
48
  plan: ObjectIdentity,
46
- meter_id: zod.uuid().optional(),
49
+ meter_id: zod
50
+ .uuid()
51
+ .optional()
52
+ .describe("For a metered price with its own amounts, the meter it charges. For a licensed price, the meter its quantity is held on. Absent otherwise."),
47
53
  meter: ObjectIdentity.optional(),
48
54
  unit_quantity: zod.string(),
49
55
  active: zod
@@ -55,22 +61,19 @@ export const Price = zod.strictObject({
55
61
  id: zod.uuid(),
56
62
  plan_id: zod.uuid(),
57
63
  currency: zod.string(),
58
- type: zod
59
- .enum(["postpaid", "prepaid", "one_time"])
60
- .describe("`postpaid` charges for what is used, `prepaid` buys a period in advance, `one_time`\ncharges once."),
61
- billing_scheme: zod
62
- .enum(["per_unit", "tiered", "rated"])
63
- .describe("How the amount is arrived at. `rated` means the rate depends on attributes such as\nregion or machine type, and is looked up on a price list."),
64
+ type: PriceType,
65
+ usage_type: UsageType,
66
+ billing_scheme: BillingScheme.optional().describe("Absent when the price delegates to a rate card, where the rate depends on attributes such as region or machine type."),
64
67
  unit_amount: Money.optional().describe("Present for `per_unit`."),
65
68
  tiers_mode: zod
66
69
  .enum(["none", "graduated", "volume"])
67
70
  .optional()
68
- .describe("`none` for a price that is not tiered, which is most of them.\n\nOtherwise `graduated` charges each band at its own rate, and `volume` charges\neverything at the rate of the band the total falls in."),
71
+ .describe("How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered."),
69
72
  tiers: zod.array(Tier).optional().describe("Present for `tiered`, in ascending order."),
70
73
  rate_card_id: zod
71
74
  .uuid()
72
75
  .optional()
73
- .describe("For `rated` prices, the price list the rates are read from."),
76
+ .describe("Present when the price delegates to a rate card, the price list its rates are read from."),
74
77
  min_quantity: zod
75
78
  .string()
76
79
  .optional()
@@ -78,7 +81,7 @@ export const Price = zod.strictObject({
78
81
  max_quantity: zod
79
82
  .string()
80
83
  .optional()
81
- .describe("The largest purchasable quantity. Omitted when no maximum applies. A quantity above this limit is\nrejected with BILLING_PRICE_INVALID and field=max_quantity."),
84
+ .describe("The largest quantity that may be bought; absent when there is no limit. A larger quantity is refused with `BILLING_PRICE_INVALID` and `field` `max_quantity`."),
82
85
  quantity_step: zod
83
86
  .string()
84
87
  .optional()
@@ -86,7 +89,7 @@ export const Price = zod.strictObject({
86
89
  interval_count: zod
87
90
  .int()
88
91
  .optional()
89
- .describe("For prepaid prices, how many periods one purchase covers."),
92
+ .describe("For recurring licensed prices, how many interval units one period covers."),
90
93
  interval: zod.enum(["none", "day", "month", "year"]),
91
94
  setup_fee: Money.optional(),
92
95
  });
@@ -70,15 +70,17 @@ export declare const PriceList: zod.ZodObject<{
70
70
  plan_id: zod.ZodUUID;
71
71
  currency: zod.ZodString;
72
72
  type: zod.ZodEnum<{
73
- postpaid: "postpaid";
74
- prepaid: "prepaid";
75
73
  one_time: "one_time";
74
+ recurring: "recurring";
76
75
  }>;
77
- billing_scheme: zod.ZodEnum<{
76
+ usage_type: zod.ZodEnum<{
77
+ licensed: "licensed";
78
+ metered: "metered";
79
+ }>;
80
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
78
81
  per_unit: "per_unit";
79
82
  tiered: "tiered";
80
- rated: "rated";
81
- }>;
83
+ }>>;
82
84
  unit_amount: zod.ZodOptional<zod.ZodString>;
83
85
  tiers_mode: zod.ZodOptional<zod.ZodEnum<{
84
86
  none: "none";
@@ -42,18 +42,20 @@ export declare const PriceOption: zod.ZodObject<{
42
42
  id: zod.ZodUUID;
43
43
  name: zod.ZodString;
44
44
  }, zod.z.core.$strict>;
45
- billing_scheme: zod.ZodEnum<{
45
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
46
46
  per_unit: "per_unit";
47
47
  tiered: "tiered";
48
- rated: "rated";
49
- }>;
48
+ }>>;
50
49
  unit_quantity: zod.ZodString;
51
50
  id: zod.ZodUUID;
52
51
  currency: zod.ZodString;
53
52
  type: zod.ZodEnum<{
54
- postpaid: "postpaid";
55
- prepaid: "prepaid";
56
53
  one_time: "one_time";
54
+ recurring: "recurring";
55
+ }>;
56
+ usage_type: zod.ZodEnum<{
57
+ licensed: "licensed";
58
+ metered: "metered";
57
59
  }>;
58
60
  interval: zod.ZodEnum<{
59
61
  none: "none";
@@ -31,18 +31,22 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { BillingScheme } from "./billingScheme.zod.js";
34
35
  import { Money } from "./money.zod.js";
35
36
  import { ObjectIdentity } from "./objectIdentity.zod.js";
37
+ import { PriceType } from "./priceType.zod.js";
36
38
  import { Product } from "./product.zod.js";
39
+ import { UsageType } from "./usageType.zod.js";
37
40
  export const PriceOption = zod
38
41
  .strictObject({
39
42
  product: Product,
40
43
  plan: ObjectIdentity,
41
- billing_scheme: zod.enum(["per_unit", "tiered", "rated"]),
44
+ billing_scheme: BillingScheme.optional().describe("Absent when the price delegates to a rate card."),
42
45
  unit_quantity: zod.string(),
43
46
  id: zod.uuid(),
44
47
  currency: zod.string(),
45
- type: zod.enum(["postpaid", "prepaid", "one_time"]),
48
+ type: PriceType,
49
+ usage_type: UsageType,
46
50
  interval: zod.enum(["none", "day", "month", "year"]),
47
51
  interval_count: zod.int().optional().describe("How many periods one purchase covers."),
48
52
  unit_amount: Money.optional(),
@@ -50,4 +54,4 @@ export const PriceOption = zod
50
54
  .boolean()
51
55
  .describe("False once the price is archived. It still applies to purchases already made at this price."),
52
56
  })
53
- .describe("A price's display terms, including archived prices referenced by an applicability list.");
57
+ .describe("A price's display terms, including archived prices referenced by an applicability.");
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export declare const PriceType: zod.ZodEnum<{
35
+ one_time: "one_time";
36
+ recurring: "recurring";
37
+ }>;
38
+ export type PriceType = zod.input<typeof PriceType>;
39
+ export type PriceTypeOutput = zod.output<typeof PriceType>;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Canopy API
5
+ * Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
6
+ *
7
+ * OpenAI-compatible project inference is served on this host at `/v1/chat/completions`,
8
+ * `/v1/embeddings`, `/v1/models` and `/v1/models/{model}`. Use `https://canopy.leaflow.cloud/v1`
9
+ * as the OpenAI SDK base URL. Chat completions support `stream=true` SSE.
10
+ *
11
+ * Management operations use `/api/v1`. The management model catalogue includes pricing;
12
+ * `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
13
+ *
14
+ * ## Authentication
15
+ *
16
+ * Every request carries a scoped token; see the `bearerAuth` security scheme.
17
+ *
18
+ * Management and project inference accept the same verified IAM scoped token. The token is the
19
+ * sole billing project authority; `OpenAI-Project` and historical identity headers cannot
20
+ * override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
21
+ * accepts Canopy API keys and supports OpenAI, Anthropic and Gemini request formats.
22
+ *
23
+ * ## Conventions
24
+ *
25
+ * - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
26
+ * - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
27
+ * - **A usage query must carry a time range**, spanning no more than 31 days. `from` and `to` carry a timezone offset, which the server does not infer.
28
+ * - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
29
+ * - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
30
+ * - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates stated in each model's `pricing`.
31
+ * OpenAPI spec version: 1.0.0
32
+ */
33
+ import * as zod from "zod";
34
+ export const PriceType = zod
35
+ .enum(["one_time", "recurring"])
36
+ .describe("`one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.");
@@ -38,4 +38,4 @@ export const ProductID = zod
38
38
  .min(1)
39
39
  .max(ProductIDMax)
40
40
  .regex(ProductIDRegExp)
41
- .describe("Immutable platform service identifier, such as compute, canopy or assistant.");
41
+ .describe("The platform service's fixed identifier, such as compute, canopy or assistant.");
@@ -38,11 +38,11 @@ export const ProjectAssignment = zod
38
38
  project: zod
39
39
  .union([NamedIdentity, zod.null()])
40
40
  .optional()
41
- .describe("The project and its current name, for display. Absent when the project no longer exists or its\ndetails cannot be read at the moment; `project_id` still identifies it."),
41
+ .describe("The project and its current name. Absent when the project cannot be read; `project_id` still identifies it."),
42
42
  billing_account_id: zod.int(),
43
43
  account_name: zod.string().optional(),
44
44
  currency: zod.string(),
45
45
  effective_from: zod.iso.datetime({ offset: true }),
46
46
  effective_to: zod.iso.datetime({ offset: true }).nullish(),
47
47
  })
48
- .describe("A project's assignment to a billing account for the interval from effective_from to effective_to. An open-ended assignment has no end time.");
48
+ .describe("A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.");
@@ -33,4 +33,4 @@
33
33
  import * as zod from "zod";
34
34
  export const PurchaseOperation = zod
35
35
  .enum(["new", "renew", "modify"])
36
- .describe("Which purchase operation this applies to. `new` covers every new purchase, including\nzero-charge purchases. It does not mean the account's first purchase; use\n`first_purchase_only` for that restriction. `renew` covers renewals. `modify` covers\nconfiguration or billing-term changes, including changes that increase or decrease\nthe amount due and changes with no additional charge or refund.");
36
+ .describe("The purchase operation covered. `new`: every new purchase, including zero-charge ones; it does not mean the account's first purchase, which `first_purchase_only` restricts. `renew`: renewals. `modify`: configuration or billing-term changes, whether they charge, refund or neither.");
@@ -104,10 +104,13 @@ export declare const Quote5f60d00: zod.ZodObject<{
104
104
  id: zod.ZodUUID;
105
105
  name: zod.ZodString;
106
106
  }, zod.z.core.$strict>, zod.ZodNull]>>;
107
- charge_type: zod.ZodEnum<{
108
- postpaid: "postpaid";
109
- prepaid: "prepaid";
107
+ type: zod.ZodEnum<{
110
108
  one_time: "one_time";
109
+ recurring: "recurring";
110
+ }>;
111
+ usage_type: zod.ZodEnum<{
112
+ licensed: "licensed";
113
+ metered: "metered";
111
114
  }>;
112
115
  auto_renew: zod.ZodBoolean;
113
116
  unused_amount: zod.ZodString;
@@ -40,18 +40,18 @@ import { QuoteItem } from "./quoteItem.zod.js";
40
40
  import { QuoteRenewalResult } from "./quoteRenewalResult.zod.js";
41
41
  export const Quote5f60d00 = zod
42
42
  .strictObject({
43
- funds: Funds.optional().describe("Account funding for an existing-order checkout quote. Absent for usage estimates, refunds and cancellation previews."),
43
+ funds: Funds.optional().describe("Account funds for an existing-order checkout quote. Absent for usage estimates, refunds and cancellations."),
44
44
  subtotal: Money,
45
45
  discount_amount: Money,
46
46
  tax_amount: Money,
47
47
  discount: zod
48
48
  .union([QuotedDiscount, zod.null()])
49
- .describe("The discount evaluated for a purchase or order, without applying it. Null when none is selected or\nwhen quoting renewals or a cancellation. A confirmed order reports its recorded discount."),
49
+ .describe("The discount a purchase or order would get, not yet applied. Null when there is none, and for renewals and cancellations. A confirmed order reports its recorded discount."),
50
50
  items: zod.array(QuoteItem),
51
51
  renewals: zod.array(QuoteRenewalResult),
52
52
  cancellation: CancellationRefundPreview.optional().describe("What the cancellation requested would return. Present only when one was requested."),
53
53
  total: Money,
54
54
  currency: zod.string(),
55
- refund: OrderRefundQuote.optional().describe("Present only when an order refund was requested. Nothing is collectible for this target."),
55
+ refund: OrderRefundQuote.optional().describe("Present when an order refund was requested."),
56
56
  })
57
- .describe("A complete calculation in one billing-account currency, without saving a quote or reserving funds or\nredemptions. The request fails if any item cannot be priced. Requested future usage estimates are\nincluded in totals for reporting and are not collectible at checkout. Only an existing-order quote\nprovides that order's checkout amount.");
57
+ .describe("A complete calculation in the billing account's currency; nothing is saved or reserved. The request fails if any item cannot be priced. Usage estimates are included in totals but are not collected at checkout; only an existing-order quote gives that order's checkout amount.");
@@ -104,10 +104,13 @@ export declare const QuoteA200529: zod.ZodObject<{
104
104
  id: zod.ZodUUID;
105
105
  name: zod.ZodString;
106
106
  }, zod.z.core.$strict>, zod.ZodNull]>>;
107
- charge_type: zod.ZodEnum<{
108
- postpaid: "postpaid";
109
- prepaid: "prepaid";
107
+ type: zod.ZodEnum<{
110
108
  one_time: "one_time";
109
+ recurring: "recurring";
110
+ }>;
111
+ usage_type: zod.ZodEnum<{
112
+ licensed: "licensed";
113
+ metered: "metered";
111
114
  }>;
112
115
  auto_renew: zod.ZodBoolean;
113
116
  unused_amount: zod.ZodString;
@@ -39,7 +39,7 @@ export const QuoteCancellation = zod
39
39
  .array(zod.uuid())
40
40
  .min(1)
41
41
  .max(quoteCancellationSubscriptionIdsMax)
42
- .describe("The subscriptions to end together, all of one service. Every subscription released with a resource must be included."),
42
+ .describe("The subscriptions to end together, all of one service, including every subscription released with a resource."),
43
43
  mode: TerminationPolicy,
44
44
  })
45
- .describe("A cancellation to quote: what ending these subscriptions together would return. One mode per\nrequest; to compare, quote `immediate` and `period_end` separately.\n\nRefused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being\ncanceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a\npaid change still waiting to switch (`meta.order_id`).");
45
+ .describe("A cancellation to quote: what ending these subscriptions together would return, for one mode; quote `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).");
@@ -40,24 +40,24 @@ export const QuoteItem = zod
40
40
  index: zod
41
41
  .int()
42
42
  .min(quoteItemIndexMin)
43
- .describe("Zero-based request line index, or the recorded order item's position for an order quote."),
43
+ .describe("The zero-based request line index, or the recorded order item's position for an order quote."),
44
44
  order_item_id: zod
45
45
  .uuid()
46
46
  .optional()
47
47
  .describe("Present for an existing order quote; identifies the recorded item being priced."),
48
48
  price_id: zod
49
49
  .uuid()
50
- .describe("The selected price, including when the request identified it indirectly."),
50
+ .describe("The selected price, also when the request identified it indirectly."),
51
51
  plan_name: zod.string(),
52
52
  unit_amount: zod
53
53
  .union([Money, zod.null()])
54
54
  .describe("Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing."),
55
55
  quantity: zod
56
56
  .string()
57
- .describe("The quantity priced. When duration_seconds is supplied for metered usage, this is quantity multiplied by that duration."),
57
+ .describe("The quantity priced; with duration_seconds, quantity times the duration."),
58
58
  amount: Money.describe("Amount before discounts and including any setup charge. For requested future usage this is an estimate, not a collectible checkout amount."),
59
59
  discount_amount: Money,
60
60
  total: Money,
61
61
  currency: zod.string(),
62
62
  })
63
- .describe("One fully calculated purchase, estimated postpaid usage or recorded order item. Amounts use the\nbilling-account currency. An item with no immediate charge has zero checkout amounts.");
63
+ .describe("One fully calculated purchase, estimated metered usage or recorded order item. Amounts use the\nbilling-account currency. An item with no immediate charge has zero checkout amounts.");
@@ -42,9 +42,12 @@ export declare const QuoteItemInput: zod.ZodObject<{
42
42
  product_id: zod.ZodOptional<zod.ZodString>;
43
43
  plan_id: zod.ZodOptional<zod.ZodUUID>;
44
44
  price_type: zod.ZodOptional<zod.ZodEnum<{
45
- postpaid: "postpaid";
46
- prepaid: "prepaid";
47
45
  one_time: "one_time";
46
+ recurring: "recurring";
47
+ }>>;
48
+ usage_type: zod.ZodOptional<zod.ZodEnum<{
49
+ licensed: "licensed";
50
+ metered: "metered";
48
51
  }>>;
49
52
  interval: zod.ZodOptional<zod.ZodEnum<{
50
53
  none: "none";
@@ -31,8 +31,10 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { PriceType } from "./priceType.zod.js";
34
35
  import { ProductID } from "./productID.zod.js";
35
36
  import { TerminationPolicy } from "./terminationPolicy.zod.js";
37
+ import { UsageType } from "./usageType.zod.js";
36
38
  export const quoteItemInputPriceLookupKeyMax = 128;
37
39
  export const quoteItemInputPlanLookupKeyMax = 128;
38
40
  export const quoteItemInputQuantityRegExp = new RegExp("^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$");
@@ -44,23 +46,21 @@ export const QuoteItemInput = zod
44
46
  price_id: zod.uuid().optional(),
45
47
  product_id: ProductID.optional(),
46
48
  plan_id: zod.uuid().optional(),
47
- price_type: zod
48
- .enum(["postpaid", "prepaid", "one_time"])
49
- .optional()
50
- .describe("Narrows the selection when a plan offers more than one charge type."),
49
+ price_type: PriceType.optional().describe("Narrows the selection when a plan offers more than one price type."),
50
+ usage_type: UsageType.optional().describe("Narrows the selection when a plan offers more than one usage type."),
51
51
  interval: zod.enum(["none", "day", "month", "year"]).optional(),
52
52
  interval_count: zod.int().min(1).optional(),
53
- termination_policy: TerminationPolicy.optional().describe("Selects among prepaid prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily."),
53
+ termination_policy: TerminationPolicy.optional().describe("Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily."),
54
54
  quantity: zod.string().regex(quoteItemInputQuantityRegExp),
55
55
  meter_id: zod.uuid().optional(),
56
56
  meter_lookup_key: zod.string().min(1).max(quoteItemInputMeterLookupKeyMax).optional(),
57
57
  dimensions: zod
58
58
  .record(zod.string(), zod.string())
59
59
  .optional()
60
- .describe("The attributes the price depends on — region, instance type, token class.\n\nRequired when the price draws its rates from a price list, which is how anything\nsold by region or by machine type is priced. A price that carries a single unit\namount, or a ladder, has no attributes to give and takes none.\n\nEvery attribute the meter declares must be present. A combination with no rate\ncovering it is refused rather than priced at zero."),
60
+ .describe("The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero."),
61
61
  duration_seconds: zod
62
62
  .int()
63
63
  .optional()
64
- .describe('For metered items, how long to price for. This allows an estimate such as "about\nthis much per month" to be shown before anything exists. The priced quantity is\n`quantity` multiplied by this duration.'),
64
+ .describe("For a metered estimate, how long to price for, in seconds; the priced quantity is `quantity` times this duration."),
65
65
  })
66
- .describe("Identify a price directly, or select a price for a plan. For each resource give its ID or lookup\nkey, never both. Lookup keys require product_id. Meter, dimensions or duration_seconds request a\npostpaid usage estimate. Such an estimate cannot be combined with a promotion code or treated as a\ncheckout amount. Without a usage estimate, a postpaid item includes only any setup charge.");
66
+ .describe("Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. For a metered price, a meter or duration_seconds requests a usage estimate, which cannot be combined with a promotion code and is not a checkout amount. Without one, a metered item includes only any setup charge.");
@@ -48,4 +48,4 @@ export const QuoteRenewal = zod
48
48
  .default(quoteRenewalPeriodsDefault)
49
49
  .describe("How many consecutive periods to renew for."),
50
50
  })
51
- .describe("Price renewing a prepaid subscription. Give `price_id`, or `interval` with\n`interval_count`, to renew for another term at the price currently sold for it. Naming\nthe current term, or giving neither, renews at the agreed amount. A term sold at several\nprices that differ in termination policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.");
51
+ .describe("Price renewing a licensed subscription. Give `price_id`, or `interval` with\n`interval_count`, to renew for another term at the price currently sold for it. Naming\nthe current term, or giving neither, renews at the agreed amount. A term sold at several\nprices that differ in termination policy is refused with 409\n`BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.");
@@ -40,10 +40,10 @@ export const QuoteRenewalResult = zod
40
40
  interval: zod.enum(["day", "month", "year"]),
41
41
  interval_count: zod.int(),
42
42
  periods: zod.int(),
43
- amount: Money.describe("The price of the periods before the discounts the account holds. A discount the\nsubscription already carries is reflected here. Contains tax only where the price\nitself includes it."),
43
+ amount: Money.describe("The price of the periods before the account's discounts, with any discount the subscription carries already reflected; includes tax only where the price does."),
44
44
  discount_amount: Money.describe("The reduction from a discount the account holds."),
45
45
  tax_amount: Money.describe("Tax on the discounted amount."),
46
46
  tax_included_amount: Money.describe("The part of `tax_amount` already contained in `amount`."),
47
47
  total: Money.describe("What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less\n`tax_included_amount`."),
48
48
  })
49
- .describe("What renewing would charge. Renewing the same subscription for the same term and number\nof periods charges exactly `total`, unless prices or the discounts the account holds\nchange in between.");
49
+ .describe("What renewing would charge. Renewing the same subscription for the same term and periods charges exactly `total` unless prices or the account's discounts change first.");
@@ -43,9 +43,12 @@ export declare const QuoteRequest: zod.ZodObject<{
43
43
  product_id: zod.ZodOptional<zod.ZodString>;
44
44
  plan_id: zod.ZodOptional<zod.ZodUUID>;
45
45
  price_type: zod.ZodOptional<zod.ZodEnum<{
46
- postpaid: "postpaid";
47
- prepaid: "prepaid";
48
46
  one_time: "one_time";
47
+ recurring: "recurring";
48
+ }>>;
49
+ usage_type: zod.ZodOptional<zod.ZodEnum<{
50
+ licensed: "licensed";
51
+ metered: "metered";
49
52
  }>>;
50
53
  interval: zod.ZodOptional<zod.ZodEnum<{
51
54
  none: "none";
@@ -43,25 +43,25 @@ export const QuoteRequest = zod
43
43
  billing_account_id: zod
44
44
  .int()
45
45
  .min(1)
46
- .describe("The billing account to price for. It must belong to you. Existing orders must have been purchased\nwith this account; renewals and cancellations must currently be paid for by it."),
46
+ .describe("The billing account to price for; it must be yours. Existing orders must have been placed with it, and renewals and cancellations must currently be paid by it."),
47
47
  items: zod
48
48
  .array(QuoteItemInput)
49
49
  .min(1)
50
50
  .max(quoteRequestItemsMax)
51
51
  .optional()
52
- .describe("A proposed purchase priced in the account currency. Metered items may estimate specified usage\nquantities; those estimates are not amounts collectible at checkout."),
52
+ .describe("A proposed purchase priced in the account's currency. Metered items may include usage estimates, which are not checkout amounts."),
53
53
  order_id: zod
54
54
  .uuid()
55
55
  .optional()
56
- .describe("Preview paying this existing order. Its recorded purchase terms supply every line, and an order\nwhose terms are fixed returns its recorded amounts. A preview does not change the order."),
56
+ .describe("Preview paying this order. Its recorded terms supply every line, and an order whose terms are fixed returns its recorded amounts. The order does not change."),
57
57
  renewals: zod
58
58
  .array(QuoteRenewal)
59
59
  .min(1)
60
60
  .max(quoteRequestRenewalsMax)
61
61
  .optional()
62
- .describe("Preview renewing these subscriptions, each at most once. Each entry represents a separate\nrenewal order. To preview a new promotion code, create a renewal order and quote it by order_id."),
62
+ .describe("Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. To preview a promotion code, create a renewal order and quote it by order_id."),
63
63
  cancellation: QuoteCancellation.optional(),
64
64
  promotion_code: zod.string().min(1).max(quoteRequestPromotionCodeMax).optional(),
65
65
  refund: OrderRefundQuoteInput.optional(),
66
66
  })
67
- .describe('"Quote exactly one target: proposed items, an existing order, renewals, a cancellation or an order\nrefund. All targets use the specified billing account. Nothing is saved, charged, reserved or\ncanceled. Promotion codes apply only to a purchase basket or an existing order. An invalid\ncombination returns BILLING_PURCHASE_INVALID with the offending field."');
67
+ .describe("Quote exactly one target for the billing account: proposed items, an existing order, renewals, a cancellation or an order refund. Promotion codes apply only to proposed items or an existing order. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.");
@@ -43,4 +43,4 @@ export const QuotedDiscount = zod
43
43
  .nullable()
44
44
  .describe("Code text for a promotion_code discount; null for an account_discount."),
45
45
  })
46
- .describe("The discount selected for this calculation. Its presence in a quote does not apply it or\nreserve a redemption. Discount amounts are reported on the quote and its lines.");
46
+ .describe("The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.");
@@ -43,6 +43,17 @@ export declare const Rate: zod.ZodObject<{
43
43
  per_unit: "per_unit";
44
44
  tiered: "tiered";
45
45
  }>;
46
+ usage_type: zod.ZodEnum<{
47
+ licensed: "licensed";
48
+ metered: "metered";
49
+ }>;
50
+ interval: zod.ZodEnum<{
51
+ none: "none";
52
+ day: "day";
53
+ month: "month";
54
+ year: "year";
55
+ }>;
56
+ interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
46
57
  tiers_mode: zod.ZodEnum<{
47
58
  none: "none";
48
59
  graduated: "graduated";
@@ -31,18 +31,26 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { BillingScheme } from "./billingScheme.zod.js";
34
35
  import { Money } from "./money.zod.js";
35
36
  import { ObjectIdentity } from "./objectIdentity.zod.js";
36
37
  import { Tier } from "./tier.zod.js";
38
+ import { UsageType } from "./usageType.zod.js";
37
39
  export const Rate = zod.strictObject({
38
40
  meter: ObjectIdentity,
39
- unit: zod.string().optional().describe("The unit readings arrive in, such as `core-second`."),
41
+ unit: zod
42
+ .string()
43
+ .optional()
44
+ .describe("The unit readings are reported in, such as `core-second`."),
40
45
  dimensions: zod
41
46
  .record(zod.string(), zod.string())
42
- .describe("The attributes this rate applies to, such as region and machine type."),
43
- billing_scheme: zod
44
- .enum(["per_unit", "tiered"])
45
- .describe("`per_unit` multiplies `unit_amount`; `tiered` walks the tiers as `tiers_mode` says."),
47
+ .describe("The dimension values this rate applies to, such as region and machine type."),
48
+ billing_scheme: BillingScheme,
49
+ usage_type: UsageType.describe("`metered` prices usage; `licensed` prices holding a quantity for one period."),
50
+ interval: zod
51
+ .enum(["none", "day", "month", "year"])
52
+ .describe("Licensed rates only, the period the amount buys; `none` for metered rates."),
53
+ interval_count: zod.int().nullish(),
46
54
  tiers_mode: zod
47
55
  .enum(["none", "graduated", "volume"])
48
56
  .describe("`graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate."),
@@ -51,7 +59,7 @@ export const Rate = zod.strictObject({
51
59
  unit_quantity: zod
52
60
  .string()
53
61
  .optional()
54
- .describe('How many measured units one amount covers. An hourly rate on a per-second meter is\n`"3600"`.'),
62
+ .describe('How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`.'),
55
63
  currency: zod.string(),
56
64
  effective_from: zod.iso.datetime({ offset: true }),
57
65
  effective_to: zod.iso.datetime({ offset: true }).nullish(),
@@ -44,6 +44,17 @@ export declare const RateList: zod.ZodObject<{
44
44
  per_unit: "per_unit";
45
45
  tiered: "tiered";
46
46
  }>;
47
+ usage_type: zod.ZodEnum<{
48
+ licensed: "licensed";
49
+ metered: "metered";
50
+ }>;
51
+ interval: zod.ZodEnum<{
52
+ none: "none";
53
+ day: "day";
54
+ month: "month";
55
+ year: "year";
56
+ }>;
57
+ interval_count: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
47
58
  tiers_mode: zod.ZodEnum<{
48
59
  none: "none";
49
60
  graduated: "graduated";