@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
@@ -80,7 +80,6 @@ export const InvoiceStatus = {
80
80
  open: "open",
81
81
  paid: "paid",
82
82
  void: "void",
83
- uncollectible: "uncollectible",
84
83
  };
85
84
  export const WithdrawalItemStatus = {
86
85
  pending: "pending",
@@ -118,10 +117,13 @@ export const QuotedDiscountType = {
118
117
  promotion_code: "promotion_code",
119
118
  account_discount: "account_discount",
120
119
  };
121
- export const CancellationRefundPreviewItemChargeType = {
122
- postpaid: "postpaid",
123
- prepaid: "prepaid",
120
+ export const PriceType = {
124
121
  one_time: "one_time",
122
+ recurring: "recurring",
123
+ };
124
+ export const UsageType = {
125
+ licensed: "licensed",
126
+ metered: "metered",
125
127
  };
126
128
  export const CancellationStatus = {
127
129
  requested: "requested",
@@ -136,11 +138,6 @@ export const CancellationOrigin = {
136
138
  operator: "operator",
137
139
  project_deletion: "project_deletion",
138
140
  };
139
- export const CancellationItemChargeType = {
140
- postpaid: "postpaid",
141
- prepaid: "prepaid",
142
- one_time: "one_time",
143
- };
144
141
  export const CancellationItemStatus = {
145
142
  requested: "requested",
146
143
  scheduled: "scheduled",
@@ -166,15 +163,9 @@ export const BillingAccountStatus = {
166
163
  suspended: "suspended",
167
164
  closed: "closed",
168
165
  };
169
- export const PriceOptionBillingScheme = {
166
+ export const BillingScheme = {
170
167
  per_unit: "per_unit",
171
168
  tiered: "tiered",
172
- rated: "rated",
173
- };
174
- export const PriceOptionType = {
175
- postpaid: "postpaid",
176
- prepaid: "prepaid",
177
- one_time: "one_time",
178
169
  };
179
170
  export const PriceOptionInterval = {
180
171
  none: "none",
@@ -286,11 +277,6 @@ export const RefundReason = {
286
277
  payment_not_applied: "payment_not_applied",
287
278
  operator: "operator",
288
279
  };
289
- export const SubscriptionChargeType = {
290
- postpaid: "postpaid",
291
- prepaid: "prepaid",
292
- one_time: "one_time",
293
- };
294
280
  export const SubscriptionInterval = {
295
281
  none: "none",
296
282
  day: "day",
@@ -362,11 +348,6 @@ export const OrderItemInterval = {
362
348
  month: "month",
363
349
  year: "year",
364
350
  };
365
- export const OrderItemChargeType = {
366
- postpaid: "postpaid",
367
- prepaid: "prepaid",
368
- one_time: "one_time",
369
- };
370
351
  export const DiscountStatus = {
371
352
  scheduled: "scheduled",
372
353
  active: "active",
@@ -400,16 +381,6 @@ export const FeatureGrantStatus = {
400
381
  expired: "expired",
401
382
  voided: "voided",
402
383
  };
403
- export const PriceType = {
404
- postpaid: "postpaid",
405
- prepaid: "prepaid",
406
- one_time: "one_time",
407
- };
408
- export const PriceBillingScheme = {
409
- per_unit: "per_unit",
410
- tiered: "tiered",
411
- rated: "rated",
412
- };
413
384
  export const PriceTiersMode = {
414
385
  none: "none",
415
386
  graduated: "graduated",
@@ -421,20 +392,17 @@ export const PriceInterval = {
421
392
  month: "month",
422
393
  year: "year",
423
394
  };
424
- export const RateBillingScheme = {
425
- per_unit: "per_unit",
426
- tiered: "tiered",
395
+ export const RateInterval = {
396
+ none: "none",
397
+ day: "day",
398
+ month: "month",
399
+ year: "year",
427
400
  };
428
401
  export const RateTiersMode = {
429
402
  none: "none",
430
403
  graduated: "graduated",
431
404
  volume: "volume",
432
405
  };
433
- export const QuoteItemInputPriceType = {
434
- postpaid: "postpaid",
435
- prepaid: "prepaid",
436
- one_time: "one_time",
437
- };
438
406
  export const QuoteItemInputInterval = {
439
407
  none: "none",
440
408
  day: "day",
@@ -63,18 +63,20 @@ export declare const AccountBalance: zod.ZodObject<{
63
63
  id: zod.ZodUUID;
64
64
  name: zod.ZodString;
65
65
  }, zod.z.core.$strict>;
66
- billing_scheme: zod.ZodEnum<{
66
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
67
67
  per_unit: "per_unit";
68
68
  tiered: "tiered";
69
- rated: "rated";
70
- }>;
69
+ }>>;
71
70
  unit_quantity: zod.ZodString;
72
71
  id: zod.ZodUUID;
73
72
  currency: zod.ZodString;
74
73
  type: zod.ZodEnum<{
75
- postpaid: "postpaid";
76
- prepaid: "prepaid";
77
74
  one_time: "one_time";
75
+ recurring: "recurring";
76
+ }>;
77
+ usage_type: zod.ZodEnum<{
78
+ licensed: "licensed";
79
+ metered: "metered";
78
80
  }>;
79
81
  interval: zod.ZodEnum<{
80
82
  none: "none";
@@ -86,7 +88,14 @@ export declare const AccountBalance: zod.ZodObject<{
86
88
  unit_amount: zod.ZodOptional<zod.ZodString>;
87
89
  active: zod.ZodBoolean;
88
90
  }, zod.z.core.$strict>>>;
89
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
91
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
92
+ one_time: "one_time";
93
+ recurring: "recurring";
94
+ }>>>;
95
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
96
+ licensed: "licensed";
97
+ metered: "metered";
98
+ }>>>;
90
99
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
91
100
  new: "new";
92
101
  renew: "renew";
@@ -115,18 +124,20 @@ export declare const AccountBalance: zod.ZodObject<{
115
124
  id: zod.ZodUUID;
116
125
  name: zod.ZodString;
117
126
  }, zod.z.core.$strict>;
118
- billing_scheme: zod.ZodEnum<{
127
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
119
128
  per_unit: "per_unit";
120
129
  tiered: "tiered";
121
- rated: "rated";
122
- }>;
130
+ }>>;
123
131
  unit_quantity: zod.ZodString;
124
132
  id: zod.ZodUUID;
125
133
  currency: zod.ZodString;
126
134
  type: zod.ZodEnum<{
127
- postpaid: "postpaid";
128
- prepaid: "prepaid";
129
135
  one_time: "one_time";
136
+ recurring: "recurring";
137
+ }>;
138
+ usage_type: zod.ZodEnum<{
139
+ licensed: "licensed";
140
+ metered: "metered";
130
141
  }>;
131
142
  interval: zod.ZodEnum<{
132
143
  none: "none";
@@ -36,17 +36,17 @@ import { Money } from "./money.zod.js";
36
36
  export const AccountBalance = zod
37
37
  .strictObject({
38
38
  available_credit: Money.describe("Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes."),
39
- estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due. Each charge is matched to grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is reserved or deducted until an invoice is paid, so credits still includes this amount."),
40
- unbilled_amount: Money.describe("Current estimate of rated usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
39
+ estimated_credit_applied: Money.describe("Credit expected to pay unbilled_amount and due, matching each charge to the grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is deducted until an invoice is paid, so credits still includes this amount."),
40
+ unbilled_amount: Money.describe("Current estimate of priced usage that has not been invoiced. Final pricing and tax are fixed at issuance."),
41
41
  billing_account_id: zod.int(),
42
42
  currency: zod.string(),
43
- balance: Money.describe("Prepaid funds in the account currency, excluding credits. May be negative after a payment\ndispute. Outstanding charges are reported separately in due; this value is not a withdrawal quote."),
44
- credits: Money.describe("The recorded remaining credit, including restricted grants. It is not withdrawable\nand is not part of balance. credit_groups describes currently valid credit by permitted use; a positive\ncredits balance does not imply that due is zero."),
45
- restricted_credits: Money.describe("Currently valid credit whose use has applicable product, operation or eligibility conditions. Included in credits, separate from the balance."),
43
+ balance: Money.describe("Topped-up funds in the account's currency, excluding credits. May be negative after a payment dispute. Amounts owed are reported in due; this is not a withdrawable amount."),
44
+ credits: Money.describe("Remaining credit, including restricted grants; not withdrawable and not part of balance. credit_groups shows currently valid credit by permitted use; positive credits do not mean due is zero."),
45
+ restricted_credits: Money.describe("Currently valid credit restricted to certain products, operations or conditions; part of credits, not of balance."),
46
46
  credit_groups: zod
47
47
  .array(CreditGroup)
48
- .describe("Currently valid, unspent credit grouped by permitted use. Restrictions and\nvalidity dates determine which charges a group can cover, so these groups are not a general\nspendable balance and may differ from the recorded credits total."),
49
- due: Money.describe("Amount still payable on issued invoices. The invoice of an order not yet accepted is a request to pay for that order rather than a debt, so it is excluded here and from available_credit. Unbilled usage is reported separately; arrears depend on actual eligible funding and grace terms."),
48
+ .describe("Currently valid unspent credit grouped by permitted use. Each group covers only the charges its restrictions and validity allow, and the groups may differ from the recorded credits total."),
49
+ due: Money.describe("Amount still payable on issued invoices. The invoice of an order not yet accepted is excluded, here and from available_credit. Usage not yet invoiced is reported separately."),
50
50
  pending_returns_amount: Money,
51
51
  })
52
- .describe("Account balance, credits, and unpaid charges are reported separately.");
52
+ .describe("Balance, credits and unpaid charges, each reported separately.");
@@ -41,21 +41,24 @@ export const ActiveResource = zod
41
41
  state_changed_at: zod.iso.datetime({ offset: true }).optional(),
42
42
  subscription_id: zod
43
43
  .uuid()
44
- .describe("The postpaid subscription charged for this metering record, including shared services."),
44
+ .describe("The metered subscription charged for this metering record."),
45
45
  resource_id: zod.string(),
46
46
  product: Product,
47
- resource_type: zod.string().optional().describe("What it is, as its own service names it."),
47
+ resource_type: zod
48
+ .string()
49
+ .optional()
50
+ .describe("The resource type, as the owning service names it."),
48
51
  meter: ObjectIdentity,
49
52
  unit: zod.string().optional(),
50
53
  quantity: zod
51
54
  .string()
52
- .describe("How much is held — cores, MiB, cards. Not how much has been used."),
55
+ .describe("How much is held, such as cores, MiB or cards; not how much was used."),
53
56
  dimensions: zod.record(zod.string(), zod.string()).optional(),
54
57
  status: zod.enum(["active", "suspended", "closing", "closed"]),
55
58
  started_at: zod.iso.datetime({ offset: true }),
56
59
  project_id: zod.uuid().optional(),
57
60
  usage_generated_until: zod.iso
58
61
  .datetime({ offset: true })
59
- .describe("Usage has been generated up to this boundary; it does not imply invoicing or payment."),
62
+ .describe("Usage has been generated up to this boundary; it says nothing about invoicing or payment."),
60
63
  })
61
- .describe("A resource currently accruing charges by the second.");
64
+ .describe("A resource charged continuously by the second.");
@@ -46,7 +46,7 @@ export const Allowance = zod.strictObject({
46
46
  unit: zod.string().optional().describe("The unit it is counted in, such as `MiB`."),
47
47
  category: zod
48
48
  .enum(["paid", "promotional"])
49
- .describe("Whether the quantity was paid for or granted free of charge. Both are consumed the same way."),
49
+ .describe("Whether the quantity was paid for or granted free; both are consumed the same way."),
50
50
  dimensions: zod
51
51
  .record(zod.string(), zod.string())
52
52
  .describe("Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;\nomitted dimensions are not restricted."),
@@ -56,11 +56,11 @@ export const Allowance = zod.strictObject({
56
56
  priority: zod
57
57
  .int()
58
58
  .optional()
59
- .describe("Lower values are consumed first. At equal priority, earlier expiry and then earlier issuance take\nprecedence."),
59
+ .describe("Lower values are consumed first; at equal priority, earlier expiry and then earlier issuance."),
60
60
  status: zod.enum(["active", "depleted", "expired", "voided"]),
61
61
  valid_from: zod.iso.datetime({ offset: true }),
62
62
  valid_until: zod.iso
63
63
  .datetime({ offset: true })
64
64
  .nullish()
65
- .describe("When it lapses. Anything unused at that point is lost; it is not refunded and does\nnot carry over. Absent when it does not expire on its own."),
65
+ .describe("When the allowance lapses; unused quantity is lost. Absent when it does not expire."),
66
66
  });
@@ -53,18 +53,20 @@ export declare const Applicability: zod.ZodObject<{
53
53
  id: zod.ZodUUID;
54
54
  name: zod.ZodString;
55
55
  }, zod.z.core.$strict>;
56
- billing_scheme: zod.ZodEnum<{
56
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
57
57
  per_unit: "per_unit";
58
58
  tiered: "tiered";
59
- rated: "rated";
60
- }>;
59
+ }>>;
61
60
  unit_quantity: zod.ZodString;
62
61
  id: zod.ZodUUID;
63
62
  currency: zod.ZodString;
64
63
  type: zod.ZodEnum<{
65
- postpaid: "postpaid";
66
- prepaid: "prepaid";
67
64
  one_time: "one_time";
65
+ recurring: "recurring";
66
+ }>;
67
+ usage_type: zod.ZodEnum<{
68
+ licensed: "licensed";
69
+ metered: "metered";
68
70
  }>;
69
71
  interval: zod.ZodEnum<{
70
72
  none: "none";
@@ -76,7 +78,14 @@ export declare const Applicability: zod.ZodObject<{
76
78
  unit_amount: zod.ZodOptional<zod.ZodString>;
77
79
  active: zod.ZodBoolean;
78
80
  }, zod.z.core.$strict>>>;
79
- price_types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
81
+ price_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
82
+ one_time: "one_time";
83
+ recurring: "recurring";
84
+ }>>>;
85
+ usage_types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
86
+ licensed: "licensed";
87
+ metered: "metered";
88
+ }>>>;
80
89
  operations: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
81
90
  new: "new";
82
91
  renew: "renew";
@@ -105,18 +114,20 @@ export declare const Applicability: zod.ZodObject<{
105
114
  id: zod.ZodUUID;
106
115
  name: zod.ZodString;
107
116
  }, zod.z.core.$strict>;
108
- billing_scheme: zod.ZodEnum<{
117
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
109
118
  per_unit: "per_unit";
110
119
  tiered: "tiered";
111
- rated: "rated";
112
- }>;
120
+ }>>;
113
121
  unit_quantity: zod.ZodString;
114
122
  id: zod.ZodUUID;
115
123
  currency: zod.ZodString;
116
124
  type: zod.ZodEnum<{
117
- postpaid: "postpaid";
118
- prepaid: "prepaid";
119
125
  one_time: "one_time";
126
+ recurring: "recurring";
127
+ }>;
128
+ usage_type: zod.ZodEnum<{
129
+ licensed: "licensed";
130
+ metered: "metered";
120
131
  }>;
121
132
  interval: zod.ZodEnum<{
122
133
  none: "none";
@@ -33,19 +33,28 @@
33
33
  import * as zod from "zod";
34
34
  import { ApplicablePlan } from "./applicablePlan.zod.js";
35
35
  import { PriceOption } from "./priceOption.zod.js";
36
+ import { PriceType } from "./priceType.zod.js";
36
37
  import { Product } from "./product.zod.js";
37
38
  import { PurchaseOperation } from "./purchaseOperation.zod.js";
39
+ import { UsageType } from "./usageType.zod.js";
38
40
  export const Applicability = zod
39
41
  .strictObject({
40
42
  products: zod.array(Product).optional(),
41
43
  plans: zod.array(ApplicablePlan).optional(),
42
44
  prices: zod.array(PriceOption).optional(),
43
- price_types: zod.array(zod.string()).optional(),
45
+ price_types: zod
46
+ .array(PriceType)
47
+ .optional()
48
+ .describe("The price types covered; empty covers both."),
49
+ usage_types: zod
50
+ .array(UsageType)
51
+ .optional()
52
+ .describe("The usage types covered; empty covers both."),
44
53
  operations: zod.array(PurchaseOperation).optional(),
45
54
  min_term_months: zod
46
55
  .int()
47
56
  .optional()
48
- .describe("The shortest term a purchase may have, in months. A purchase with no term, such as\nmetered usage, never qualifies while this is set."),
57
+ .describe("The shortest term a purchase may have, in months. Purchases without a term, such as metered usage, do not qualify while this is set."),
49
58
  max_term_months: zod
50
59
  .int()
51
60
  .optional()
@@ -54,4 +63,4 @@ export const Applicability = zod
54
63
  excluded_plans: zod.array(ApplicablePlan).optional(),
55
64
  excluded_prices: zod.array(PriceOption).optional(),
56
65
  })
57
- .describe("Anything not excluded that matches an inclusion, or anything not excluded when no inclusion is\ngiven, subject to the charge type, operation and term conditions. Entries always include their\ndisplay fields; archived plans and prices stay listed with active set to false.");
66
+ .describe("Covers anything not excluded that matches an inclusion, or anything not excluded when no inclusion is given, subject to the price type, usage type, operation and term conditions. Archived plans and prices stay listed with active false.");
@@ -37,4 +37,4 @@ export const ApplicablePlan = zod
37
37
  name: zod.string(),
38
38
  active: zod.boolean(),
39
39
  })
40
- .describe("A plan it refers to. active is false once the plan is archived; it still applies to subscriptions already on this plan.");
40
+ .describe("A plan referenced by an applicability; active is false once it is archived, and the reference still applies.");
@@ -35,22 +35,22 @@ export const BillingAccount = zod.strictObject({
35
35
  invoice_contact_id: zod
36
36
  .uuid()
37
37
  .nullish()
38
- .describe("The active contact used for invoicing. Must belong to this account; null clears the selection."),
38
+ .describe("The active contact used for invoices, of this account; null clears it."),
39
39
  id: zod.int(),
40
- name: zod.string().optional().describe("What you call this account."),
40
+ name: zod.string().optional().describe("Your name for the account."),
41
41
  currency: zod.string().describe("Fixed when the account was opened."),
42
42
  status: zod.enum(["active", "suspended", "closed"]),
43
43
  grace_amount: zod
44
44
  .string()
45
45
  .optional()
46
- .describe('How far past the suspension threshold this account may go before its resources are\nsuspended. "0" means none: the account is suspended as soon as it crosses the threshold.'),
46
+ .describe("How far past the suspension threshold the account may go before its resources are suspended; `0` means none."),
47
47
  grace_period_seconds: zod
48
48
  .int()
49
49
  .optional()
50
- .describe("How long this account has to top up after crossing the suspension threshold.\n0 means none. Whichever runs out first — this or grace_amount — ends the grace."),
50
+ .describe("How long the account has to top up after crossing the suspension threshold, in seconds; `0` means none. Grace ends when this or grace_amount runs out."),
51
51
  closed_at: zod.iso
52
52
  .datetime({ offset: true })
53
53
  .nullish()
54
- .describe("The actual time this account was closed, in UTC (RFC 3339).\nNull or absent if the account is not closed or its historical close time is unknown."),
54
+ .describe("When the account was closed. Null if it is not closed or the time is unknown."),
55
55
  created_at: zod.iso.datetime({ offset: true }),
56
56
  });
@@ -36,6 +36,6 @@ export const BillingAccountUpdate = zod.strictObject({
36
36
  invoice_contact_id: zod
37
37
  .uuid()
38
38
  .nullish()
39
- .describe("The active contact used for invoicing. Must belong to this account; null clears the selection."),
39
+ .describe("The active contact used for invoices, of this account; null clears it."),
40
40
  name: zod.string().max(billingAccountUpdateNameMax).optional(),
41
41
  });
@@ -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 BillingScheme: zod.ZodEnum<{
35
+ per_unit: "per_unit";
36
+ tiered: "tiered";
37
+ }>;
38
+ export type BillingScheme = zod.input<typeof BillingScheme>;
39
+ export type BillingSchemeOutput = zod.output<typeof BillingScheme>;
@@ -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 BillingScheme = zod
35
+ .enum(["per_unit", "tiered"])
36
+ .describe("`per_unit` multiplies a unit amount; `tiered` walks a ladder.");
@@ -64,10 +64,13 @@ export declare const Cancellation: zod.ZodObject<{
64
64
  subscription_id: zod.ZodUUID;
65
65
  plan_id: zod.ZodUUID;
66
66
  plan_name: zod.ZodString;
67
- charge_type: zod.ZodEnum<{
68
- postpaid: "postpaid";
69
- prepaid: "prepaid";
67
+ type: zod.ZodEnum<{
70
68
  one_time: "one_time";
69
+ recurring: "recurring";
70
+ }>;
71
+ usage_type: zod.ZodEnum<{
72
+ licensed: "licensed";
73
+ metered: "metered";
71
74
  }>;
72
75
  status: zod.ZodEnum<{
73
76
  completed: "completed";
@@ -46,16 +46,16 @@ export const Cancellation = zod
46
46
  .describe("For `immediate`, the second the refund is computed as of."),
47
47
  origin: zod
48
48
  .enum(["customer", "operator", "project_deletion"])
49
- .describe("Who asked for it. `project_deletion` means the project was deleted."),
49
+ .describe("Who requested it; `project_deletion` means the project was deleted."),
50
50
  billing_account_id: zod
51
51
  .int()
52
- .describe("The billing account that paid for these subscriptions when the cancellation was created: the\naccount of an account-level purchase, or the account the project was linked to."),
52
+ .describe("The billing account paying for these subscriptions when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account."),
53
53
  currency: zod.string(),
54
- expected_refundable_amount: Money.optional().describe("The refund confirmed when it was created. Absent when the platform created it."),
54
+ expected_refundable_amount: Money.optional().describe("The refund confirmed when the cancellation was created. Absent when the platform created it."),
55
55
  failure_code: zod
56
56
  .string()
57
57
  .optional()
58
- .describe("Present with `failed`. A code of the service that provides the resources, such as a disk\nthat can only be released with its server. Clients map it to their own wording."),
58
+ .describe("Present with `failed`: the owning service's code, such as for a disk that can only be released with its server."),
59
59
  requested_at: zod.iso.datetime({ offset: true }),
60
60
  completed_at: zod.iso.datetime({ offset: true }).optional(),
61
61
  canceled_at: zod.iso.datetime({ offset: true }).optional(),
@@ -46,11 +46,11 @@ export const CancellationCreate = zod.strictObject({
46
46
  proration_date: zod.iso
47
47
  .datetime({ offset: true })
48
48
  .optional()
49
- .describe("For `immediate`, the `proration_date` of the quote: a whole second, not in the future and\nat most ten minutes old. The refund is computed as of it. Now when omitted."),
50
- expected_refundable_amount: Money.and(zod.string().regex(cancellationCreateExpectedRefundableAmountTwoRegExp)).describe("The `refundable_amount` of the quote. The cancellation is refused when the refund differs."),
49
+ .describe("For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted."),
50
+ expected_refundable_amount: Money.and(zod.string().regex(cancellationCreateExpectedRefundableAmountTwoRegExp)).describe("The quote's `refundable_amount`; the cancellation is refused when the refund differs."),
51
51
  reason: zod
52
52
  .string()
53
53
  .max(cancellationCreateReasonMax)
54
54
  .optional()
55
- .describe("A note from the account holder. It is kept with the cancellation and not shown elsewhere."),
55
+ .describe("A note from the account holder, kept with the cancellation."),
56
56
  });
@@ -36,10 +36,13 @@ export declare const CancellationItem: zod.ZodObject<{
36
36
  subscription_id: zod.ZodUUID;
37
37
  plan_id: zod.ZodUUID;
38
38
  plan_name: zod.ZodString;
39
- charge_type: zod.ZodEnum<{
40
- postpaid: "postpaid";
41
- prepaid: "prepaid";
39
+ type: zod.ZodEnum<{
42
40
  one_time: "one_time";
41
+ recurring: "recurring";
42
+ }>;
43
+ usage_type: zod.ZodEnum<{
44
+ licensed: "licensed";
45
+ metered: "metered";
43
46
  }>;
44
47
  status: zod.ZodEnum<{
45
48
  completed: "completed";
@@ -32,22 +32,23 @@
32
32
  */
33
33
  import * as zod from "zod";
34
34
  import { Money } from "./money.zod.js";
35
+ import { PriceType } from "./priceType.zod.js";
36
+ import { UsageType } from "./usageType.zod.js";
35
37
  export const CancellationItem = zod
36
38
  .strictObject({
37
39
  id: zod
38
40
  .uuid()
39
- .describe("The cancellation item of this subscription, the same as `Subscription.cancellation.id`."),
41
+ .describe("The subscription's cancellation item, the same as `Subscription.cancellation.id`."),
40
42
  subscription_id: zod.uuid(),
41
43
  plan_id: zod.uuid(),
42
44
  plan_name: zod.string(),
43
- charge_type: zod
44
- .enum(["postpaid", "prepaid", "one_time"])
45
- .describe("How the subscription is charged. Creating the cancellation turned automatic renewal off;\nwithdrawing it turns renewal back on for a `postpaid` subscription and leaves it off for a\n`prepaid` one."),
45
+ type: PriceType,
46
+ usage_type: UsageType.describe("Creating the cancellation turned automatic renewal off; withdrawing it turns renewal back on\nfor a `metered` subscription and leaves it off for a `licensed` one."),
46
47
  status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
47
48
  failure_code: zod
48
49
  .string()
49
50
  .optional()
50
- .describe("Execution stopped or its result is unknown. Present while release still requires resolution; it does not establish refund eligibility."),
51
+ .describe("The release stopped or its result is unknown; present while the release needs resolution."),
51
52
  release_started_at: zod.iso.datetime({ offset: true }).optional(),
52
53
  effective_at: zod.iso
53
54
  .datetime({ offset: true })
@@ -65,10 +65,13 @@ export declare const CancellationList: zod.ZodObject<{
65
65
  subscription_id: zod.ZodUUID;
66
66
  plan_id: zod.ZodUUID;
67
67
  plan_name: zod.ZodString;
68
- charge_type: zod.ZodEnum<{
69
- postpaid: "postpaid";
70
- prepaid: "prepaid";
68
+ type: zod.ZodEnum<{
71
69
  one_time: "one_time";
70
+ recurring: "recurring";
71
+ }>;
72
+ usage_type: zod.ZodEnum<{
73
+ licensed: "licensed";
74
+ metered: "metered";
72
75
  }>;
73
76
  status: zod.ZodEnum<{
74
77
  completed: "completed";