@leaflow/sdk 0.141.0 → 0.143.0

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 (589) 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/functions.d.ts +66 -1
  266. package/dist/canopy/v1/generated/functions.js +67 -0
  267. package/dist/canopy/v1/generated/models.d.ts +516 -788
  268. package/dist/canopy/v1/generated/models.js +36 -44
  269. package/dist/canopy/v1/generated/schemas.zod.d.ts +27 -0
  270. package/dist/canopy/v1/generated/schemas.zod.js +18 -0
  271. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  272. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
  273. package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
  274. package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
  275. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
  276. package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
  277. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
  278. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
  279. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  280. package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
  281. package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
  282. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
  283. package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
  284. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
  285. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  286. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
  287. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  288. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  289. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  290. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  291. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  292. package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
  293. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
  294. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  295. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  296. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  297. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
  298. package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
  299. package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
  300. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +9 -0
  301. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
  302. package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
  303. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
  304. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +50 -0
  305. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +39 -0
  306. package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
  307. package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
  308. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
  309. package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
  310. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  311. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
  312. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  313. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  314. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  315. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  316. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
  317. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  318. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
  319. package/dist/canopy/v1/generated/validators/modality.zod.d.ts +43 -0
  320. package/dist/canopy/v1/generated/validators/modality.zod.js +34 -0
  321. package/dist/canopy/v1/generated/validators/model.zod.d.ts +44 -4
  322. package/dist/canopy/v1/generated/validators/model.zod.js +19 -4
  323. package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +50 -0
  324. package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +37 -0
  325. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +46 -0
  326. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +44 -0
  327. package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +44 -4
  328. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +44 -4
  329. package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +44 -4
  330. package/dist/canopy/v1/generated/validators/modelResource.zod.js +19 -6
  331. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
  332. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
  333. package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
  334. package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
  335. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
  336. package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
  337. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  338. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
  339. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
  340. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  341. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  342. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
  343. package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
  344. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  345. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  346. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
  347. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  348. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  349. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
  350. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  351. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
  352. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
  353. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
  354. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  355. package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
  356. package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
  357. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
  358. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
  359. package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
  360. package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
  361. package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
  362. package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
  363. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
  364. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
  365. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
  366. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
  367. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
  368. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
  369. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
  370. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  371. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
  372. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
  373. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  374. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  375. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
  376. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
  377. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
  378. package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
  379. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
  380. package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +48 -0
  381. package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +51 -0
  382. package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +44 -0
  383. package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +38 -0
  384. package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
  385. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
  386. package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
  387. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
  388. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  389. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
  390. package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +9 -0
  391. package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
  392. package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +48 -0
  393. package/dist/canopy/v1/generated/validators/responseCreate.zod.js +48 -0
  394. package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +40 -0
  395. package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +38 -0
  396. package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +36 -0
  397. package/dist/canopy/v1/generated/validators/responseResource.zod.js +34 -0
  398. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
  399. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
  400. package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
  401. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  402. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
  403. package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
  404. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
  405. package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
  406. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  407. package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
  408. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
  409. package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
  410. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  411. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  412. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  413. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
  414. package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
  415. package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
  416. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
  417. package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
  418. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
  419. package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
  420. package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
  421. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
  422. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
  423. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
  424. package/dist/compute/v1/generated/models.d.ts +4 -4
  425. package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
  426. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
  427. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
  428. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
  429. package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
  430. package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
  431. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
  432. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
  433. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
  434. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
  435. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
  436. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
  437. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
  438. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
  439. package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
  440. package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
  441. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
  442. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
  443. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
  444. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
  445. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
  446. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
  447. package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
  448. package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
  449. package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
  450. package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
  451. package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
  452. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
  453. package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
  454. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
  455. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
  456. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
  457. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
  458. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
  459. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
  460. package/dist/membership/v1/generated/models.d.ts +375 -779
  461. package/dist/membership/v1/generated/models.js +12 -44
  462. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  463. package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
  464. package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
  465. package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
  466. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
  467. package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
  468. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
  469. package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
  470. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  471. package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  472. package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
  473. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
  474. package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
  475. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
  476. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  477. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
  478. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  479. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  480. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  481. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  482. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  483. package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
  484. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  485. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  486. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  487. package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
  488. package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
  489. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
  490. package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
  491. package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
  492. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
  493. package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
  494. package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
  495. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
  496. package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
  497. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  498. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
  499. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  500. package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  501. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  502. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  503. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
  504. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  505. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
  506. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
  507. package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
  508. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
  509. package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
  510. package/dist/membership/v1/generated/validators/order.zod.js +10 -12
  511. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
  512. package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
  513. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  514. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
  515. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
  516. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  517. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  518. package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
  519. package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
  520. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  521. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  522. package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
  523. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  524. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  525. package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
  526. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  527. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
  528. package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
  529. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
  530. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  531. package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
  532. package/dist/membership/v1/generated/validators/price.zod.js +14 -11
  533. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
  534. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
  535. package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
  536. package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
  537. package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
  538. package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
  539. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
  540. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
  541. package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
  542. package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
  543. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  544. package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
  545. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  546. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
  547. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
  548. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  549. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  550. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
  551. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
  552. package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
  553. package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
  554. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
  555. package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
  556. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
  557. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  558. package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
  559. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  560. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
  561. package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
  562. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
  563. package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
  564. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  565. package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
  566. package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
  567. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
  568. package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
  569. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  570. package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
  571. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
  572. package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
  573. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  574. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  575. package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  576. package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
  577. package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
  578. package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
  579. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
  580. package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
  581. package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
  582. package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
  583. package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
  584. package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
  585. package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
  586. package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
  587. package/dist/routes.d.ts +28 -4
  588. package/dist/routes.js +31 -4
  589. package/package.json +1 -1
@@ -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";
@@ -0,0 +1,48 @@
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 reasoningCapabilitiesBudgetTokensMinMin = 0;
35
+ export declare const reasoningCapabilitiesBudgetTokensMaxMin = 0;
36
+ export declare const ReasoningCapabilities: zod.ZodObject<{
37
+ supported: zod.ZodBoolean;
38
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
39
+ default_effort: zod.ZodNullable<zod.ZodString>;
40
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
41
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
42
+ min: zod.ZodInt;
43
+ max: zod.ZodInt;
44
+ }, zod.z.core.$strict>>;
45
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
46
+ }, zod.z.core.$strict>;
47
+ export type ReasoningCapabilities = zod.input<typeof ReasoningCapabilities>;
48
+ export type ReasoningCapabilitiesOutput = zod.output<typeof ReasoningCapabilities>;
@@ -0,0 +1,51 @@
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 reasoningCapabilitiesBudgetTokensMinMin = 0;
35
+ export const reasoningCapabilitiesBudgetTokensMaxMin = 0;
36
+ export const ReasoningCapabilities = zod.strictObject({
37
+ supported: zod.boolean(),
38
+ effort_levels: zod
39
+ .array(zod.string())
40
+ .nullable()
41
+ .describe("Null means unknown; an empty array means effort is not configurable."),
42
+ default_effort: zod.string().nullable(),
43
+ modes: zod.array(zod.string()).nullable(),
44
+ budget_tokens: zod
45
+ .strictObject({
46
+ min: zod.int().min(reasoningCapabilitiesBudgetTokensMinMin),
47
+ max: zod.int().min(reasoningCapabilitiesBudgetTokensMaxMin),
48
+ })
49
+ .nullable(),
50
+ summary: zod.array(zod.string()).nullable(),
51
+ });
@@ -0,0 +1,44 @@
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 ReasoningDiagnostics: zod.ZodObject<{
35
+ requested: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
36
+ effective: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
37
+ translation: zod.ZodOptional<zod.ZodEnum<{
38
+ translate: "translate";
39
+ passthrough: "passthrough";
40
+ strip: "strip";
41
+ }>>;
42
+ }, zod.z.core.$strict>;
43
+ export type ReasoningDiagnostics = zod.input<typeof ReasoningDiagnostics>;
44
+ export type ReasoningDiagnosticsOutput = zod.output<typeof ReasoningDiagnostics>;
@@ -0,0 +1,38 @@
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 ReasoningDiagnostics = zod.strictObject({
35
+ requested: zod.record(zod.string(), zod.unknown()),
36
+ effective: zod.record(zod.string(), zod.unknown()).optional(),
37
+ translation: zod.enum(["translate", "passthrough", "strip"]).optional(),
38
+ });
@@ -39,14 +39,14 @@ export const Refund = zod.strictObject({
39
39
  cancellation_item_id: zod.uuid().optional(),
40
40
  transactions: zod
41
41
  .array(Transaction)
42
- .describe("Original funds-return split and each result. Unknown gateway results remain pending."),
42
+ .describe("The refund split by original payment source, with each result. Unknown gateway results stay pending."),
43
43
  id: zod.uuid(),
44
44
  billing_account_id: zod.int().optional(),
45
45
  invoice_id: zod.uuid().nullish(),
46
46
  order_id: zod
47
47
  .uuid()
48
48
  .nullish()
49
- .describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise\nthe order of the refunded invoice. Null for refunds of top-ups and of usage invoices."),
49
+ .describe("The order the refund belongs to: the order that caused it, such as a downgrade, otherwise the order of the refunded invoice. Null for refunds of top-ups and usage invoices."),
50
50
  amount: Money.describe("The whole refund. Equals balance_amount plus credit_amount plus gateway_amount."),
51
51
  balance_amount: Money.describe("The part returned to the account balance."),
52
52
  credit_amount: Money.describe("The part restored to the credit grants that paid for it."),
@@ -56,7 +56,7 @@ export const Refund = zod.strictObject({
56
56
  destination: zod
57
57
  .enum(["balance", "gateway"])
58
58
  .optional()
59
- .describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between several destinations."),
59
+ .describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations."),
60
60
  status: zod
61
61
  .enum(["pending", "processing", "succeeded", "failed"])
62
62
  .describe("Summary of the parts in `transactions`.\n\n- `pending`: nothing has been returned yet, and at least one part is in progress.\n- `processing`: some parts have been returned, and at least one is still in progress.\n- `succeeded`: every part has been returned.\n- `failed`: no part is in progress and at least one has failed. What was returned is in\n settled_amount.\n\nReturns to the balance and to credit grants complete shortly after the refund is made; a\nreturn to a payment method completes when the gateway confirms it."),
@@ -33,4 +33,4 @@
33
33
  import * as zod from "zod";
34
34
  export const RefundPolicy = zod
35
35
  .enum(["none", "prorated"])
36
- .describe("none refunds nothing. prorated refunds the amount paid for the current period minus the value of\nthe time used, never below zero and never more than what remains unrefunded. The time used runs\nfrom the period start to the effective cancellation time and is valued at the plan's\nshorter-period prices in the same currency, frozen at purchase as the order item's\nrefund_monthly_amount and refund_hourly_amount: each full calendar month at the one-month prepaid\nprice, the remainder at the postpaid hourly price or, without one, at the one-month price by the\nsecond. When the plan has no prepaid period shorter than the one bought, the time used is valued\nat the price paid, pro rata by the second. Discounts are not refunded, as they were never paid,\nand setup fees are excluded. The refunded part returns to the payment sources it came from. Tax\npaid is refunded in the same proportion as the amount it was paid on.");
36
+ .describe("`none` refunds nothing. `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero or above what remains unrefunded. Time used runs from the period start to the effective cancellation and is valued at prices frozen on the order item: each full calendar month at `refund_monthly_amount`, the rest at `refund_hourly_amount` or, without it, at the monthly price by the second. When the plan has no licensed period shorter than the one bought, time used is valued pro rata at the price paid. Discounts and setup fees are not refunded. Refunds return to the original payment sources, with tax refunded in proportion.");
@@ -45,4 +45,4 @@ export const RefundReason = zod
45
45
  "payment_not_applied",
46
46
  "operator",
47
47
  ])
48
- .describe("Why the refund was made. Clients map the code to their own wording. More codes may be added;\ntreat an unknown code as a refund without a stated reason.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it had been paid.\n- `order_canceled`: the account holder canceled the order after part of it had been paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it had been paid.\n- `change_expired`: a scheduled change could not take effect before its time passed.\n- `subscription_canceled`: the subscription was canceled and its unused value returned under\n its refund terms.\n- `future_period_canceled`: a renewal that had not started yet was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining value of what was paid, valued as refund\n policy `prorated` describes, minus the new configuration's cost for the remaining time at the\n change item's `refund_monthly_amount` and `refund_hourly_amount`. Nothing is refunded when that is\n zero or less.\n- `usage_true_up`: usage priced again over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
48
+ .describe("Why the refund was made. New codes may be added; treat an unknown code as unspecified.\n\n- `provisioning_failed`: the purchase could not be delivered.\n- `order_expired`: the order expired after part of it was paid.\n- `order_canceled`: the order was canceled after part of it was paid.\n- `change_canceled`: a scheduled change was withdrawn after part of it was paid.\n- `change_expired`: a scheduled change could not take effect in time.\n- `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.\n- `future_period_canceled`: a renewal that had not started was withdrawn.\n- `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`\n describes, minus the new configuration's cost for the remaining time at the change item's\n `refund_monthly_amount` and `refund_hourly_amount`.\n- `usage_true_up`: usage priced over the whole month cost less than was charged.\n- `payment_not_applied`: a payment arrived after its invoice could no longer be paid.\n- `operator`: made by the platform operator.");
@@ -38,12 +38,12 @@ export const renewRequestUseCreditsDefault = true;
38
38
  export const RenewRequest = zod.strictObject({
39
39
  order_id: zod
40
40
  .uuid()
41
- .describe("Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result."),
41
+ .describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
42
42
  periods: zod
43
43
  .int()
44
44
  .min(1)
45
45
  .default(renewRequestPeriodsDefault)
46
- .describe("How many further periods to buy, each at the price this item already bills at.\n\nBuying twelve monthly periods is not the same as buying one yearly term: a longer\nterm is usually sold at a lower price, and that price is only reached by naming the\ninterval. Use `interval_count` and `interval` for that."),
46
+ .describe("How many further periods to buy, each at the price the subscription already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead."),
47
47
  interval_count: zod
48
48
  .int()
49
49
  .min(1)
@@ -37,7 +37,7 @@ export const RenewalOrderRequest = zod
37
37
  .strictObject({
38
38
  order_id: zod
39
39
  .uuid()
40
- .describe("Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result."),
40
+ .describe("The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome."),
41
41
  periods: zod
42
42
  .int()
43
43
  .min(1)
@@ -47,4 +47,4 @@ export const RenewalOrderRequest = zod
47
47
  interval: zod.enum(["day", "month", "year"]).optional().describe("As in renewing."),
48
48
  termination_policy: TerminationPolicy.optional().describe("As in renewing."),
49
49
  })
50
- .describe("The periods and price of the renewal, chosen as in renewing.");
50
+ .describe("The renewal's periods and price, chosen as in renewing.");
@@ -44,5 +44,5 @@ export const RenewalPrice = zod.strictObject({
44
44
  currency: zod.string().optional(),
45
45
  current: zod
46
46
  .boolean()
47
- .describe("The term this item already bills at. Renewing for it uses the price bought\noriginally, so a later price change does not affect it."),
47
+ .describe("The term the subscription renews at now; renewing for it keeps the agreed price."),
48
48
  });
@@ -60,6 +60,15 @@ export declare const RequestResource: zod.ZodObject<{
60
60
  upstream: "upstream";
61
61
  estimated: "estimated";
62
62
  }>;
63
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
64
+ requested: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
65
+ effective: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
66
+ translation: zod.ZodOptional<zod.ZodEnum<{
67
+ translate: "translate";
68
+ passthrough: "passthrough";
69
+ strip: "strip";
70
+ }>>;
71
+ }, zod.z.core.$strict>, zod.ZodNull]>;
63
72
  }, zod.z.core.$strict>;
64
73
  export type RequestResource = zod.input<typeof RequestResource>;
65
74
  export type RequestResourceOutput = zod.output<typeof RequestResource>;
@@ -31,6 +31,7 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { ReasoningDiagnostics } from "./reasoningDiagnostics.zod.js";
34
35
  export const RequestResource = zod.strictObject({
35
36
  api_key_id: zod
36
37
  .uuid()
@@ -61,4 +62,5 @@ export const RequestResource = zod.strictObject({
61
62
  usage_source: zod
62
63
  .enum(["none", "upstream", "estimated"])
63
64
  .describe("upstream means the figures were reported by the provider; estimated means they were derived from the character classes of the payload"),
65
+ reasoning: zod.union([ReasoningDiagnostics, zod.null()]),
64
66
  });
@@ -0,0 +1,48 @@
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 responseCreateStoreDefault = false;
35
+ export declare const responseCreateStreamDefault = false;
36
+ export declare const ResponseCreate: zod.ZodObject<{
37
+ model: zod.ZodOptional<zod.ZodString>;
38
+ input: zod.ZodOptional<zod.ZodUnknown>;
39
+ instructions: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
40
+ store: zod.ZodDefault<zod.ZodBoolean>;
41
+ stream: zod.ZodDefault<zod.ZodBoolean>;
42
+ previous_response_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
43
+ reasoning: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
44
+ tools: zod.ZodOptional<zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
45
+ max_output_tokens: zod.ZodOptional<zod.ZodInt>;
46
+ }, zod.z.core.$strict>;
47
+ export type ResponseCreate = zod.input<typeof ResponseCreate>;
48
+ export type ResponseCreateOutput = zod.output<typeof ResponseCreate>;
@@ -0,0 +1,48 @@
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 responseCreateStoreDefault = false;
35
+ export const responseCreateStreamDefault = false;
36
+ export const ResponseCreate = zod
37
+ .strictObject({
38
+ model: zod.string().optional(),
39
+ input: zod.unknown().optional(),
40
+ instructions: zod.string().nullish(),
41
+ store: zod.boolean().default(responseCreateStoreDefault),
42
+ stream: zod.boolean().default(responseCreateStreamDefault),
43
+ previous_response_id: zod.string().nullish(),
44
+ reasoning: zod.record(zod.string(), zod.unknown()).optional(),
45
+ tools: zod.array(zod.record(zod.string(), zod.unknown())).optional(),
46
+ max_output_tokens: zod.int().min(1).optional(),
47
+ })
48
+ .describe("Native Responses request. model may be omitted when continuing a project-owned stored response. store defaults to false. Only caller-executed function and custom tools are supported. background, conversation and WebSocket-only fields are rejected over HTTP.");
@@ -0,0 +1,40 @@
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 ResponseDeleted: zod.ZodObject<{
35
+ id: zod.ZodString;
36
+ object: zod.ZodString;
37
+ deleted: zod.ZodBoolean;
38
+ }, zod.z.core.$strict>;
39
+ export type ResponseDeleted = zod.input<typeof ResponseDeleted>;
40
+ export type ResponseDeletedOutput = zod.output<typeof ResponseDeleted>;