@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
@@ -0,0 +1,50 @@
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 EndpointCapabilities: zod.ZodObject<{
35
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
36
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
37
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
38
+ supported: zod.ZodBoolean;
39
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
40
+ default_effort: zod.ZodNullable<zod.ZodString>;
41
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
42
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
43
+ min: zod.ZodInt;
44
+ max: zod.ZodInt;
45
+ }, zod.z.core.$strict>>;
46
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
47
+ }, zod.z.core.$strict>, zod.ZodNull]>;
48
+ }, zod.z.core.$strict>;
49
+ export type EndpointCapabilities = zod.input<typeof EndpointCapabilities>;
50
+ export type EndpointCapabilitiesOutput = zod.output<typeof EndpointCapabilities>;
@@ -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
+ import { ReasoningCapabilities } from "./reasoningCapabilities.zod.js";
35
+ export const EndpointCapabilities = zod.strictObject({
36
+ function_calling: zod.boolean().nullable(),
37
+ structured_output: zod.boolean().nullable(),
38
+ reasoning: zod.union([ReasoningCapabilities, zod.null()]),
39
+ });
@@ -41,5 +41,5 @@ export const Entitlement = zod.strictObject({
41
41
  expires_at: zod.iso
42
42
  .datetime({ offset: true })
43
43
  .nullish()
44
- .describe("When the subscription providing it ends. Absent for a metered subscription, which\nhas no end date."),
44
+ .describe("When the providing subscription ends. Absent for a metered subscription."),
45
45
  });
@@ -35,10 +35,10 @@ import { Money } from "./money.zod.js";
35
35
  export const Funds = zod
36
36
  .strictObject({
37
37
  available_balance_amount: Money.describe("Spendable balance after pending returns."),
38
- usable_credit_amount: Money.describe("Currently effective credits eligible for the quoted purchases or postpaid usage. Each grant is counted once."),
39
- restricted_credit_amount: Money.describe("Currently effective credits that cannot fund any quoted purchase or postpaid target. Unused eligible credits are not restricted."),
40
- required_balance_amount: Money.describe("Minimum spendable balance needed after eligible credits, covering immediate charges and every new postpaid admission requirement."),
38
+ usable_credit_amount: Money.describe("Currently effective credits eligible for the quoted purchases or metered usage. Each grant is counted once."),
39
+ restricted_credit_amount: Money.describe("Currently effective credits that cannot fund any quoted purchase or metered target. Unused eligible credits are not restricted."),
40
+ required_balance_amount: Money.describe("Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement."),
41
41
  balance_shortfall_amount: Money.describe("Additional balance needed now. Zero means account funds satisfy this quote. No funds are reserved."),
42
42
  required_top_up_amount: Money.describe("Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed."),
43
43
  })
44
- .describe("Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.\nCredit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.\nA prepaid purchase may instead use an online payment method.\n");
44
+ .describe("Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.\nCredit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.\nA licensed purchase may instead be paid with an online payment method.\n");
@@ -55,7 +55,6 @@ export declare const Invoice: zod.ZodObject<{
55
55
  open: "open";
56
56
  draft: "draft";
57
57
  paid: "paid";
58
- uncollectible: "uncollectible";
59
58
  }>;
60
59
  subtotal: zod.ZodOptional<zod.ZodString>;
61
60
  discount_amount: zod.ZodOptional<zod.ZodString>;
@@ -38,7 +38,7 @@ export const Invoice = zod.strictObject({
38
38
  void_requested_at: zod.iso
39
39
  .datetime({ offset: true })
40
40
  .optional()
41
- .describe("Collection has been stopped; any accepted return obligations are completed before final voiding."),
41
+ .describe("Collection has stopped; accepted return obligations are completed."),
42
42
  due_at: zod.iso.datetime({ offset: true }).optional(),
43
43
  amount_refunded: zod.string().optional(),
44
44
  tax_items: zod.array(TaxItem),
@@ -50,24 +50,24 @@ export const Invoice = zod.strictObject({
50
50
  subtotal: Money.optional().describe("Sum of the line amounts before discounts. Where prices include tax, the tax contained in\neach line's discounted amount is taken out here, so that total = subtotal -\ndiscount_amount + tax_amount always holds."),
51
51
  discount_amount: Money.optional().describe("Sum of the line discounts, taken off before tax."),
52
52
  tax_amount: Money.optional(),
53
- credit_applied: Money.optional().describe("Successful credit-grant payments included in amount_paid. Does not reduce the receivable or tax base."),
54
- total: Money.describe("Subtotal less discount plus tax. Balance and credit grants are payment sources, not reductions of the receivable."),
53
+ credit_applied: Money.optional().describe("Successful credit-grant payments, included in amount_paid; they do not reduce the receivable or tax base."),
54
+ total: Money.describe("Subtotal less discount plus tax. Balance and credit grants pay it; they do not reduce it."),
55
55
  amount_paid: Money.optional(),
56
- pre_payment_credit_notes_amount: Money.describe("Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total."),
57
- post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds."),
58
- amount_due: Money.describe("What is still collectible after unpaid credit notes and successful payments; never below zero. A draft has none; its total is the base price, and a payment preview shows what paying it would collect. A paid or void invoice has none either."),
56
+ pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
57
+ post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
58
+ amount_due: Money.describe("What is still collectible after unpaid credit notes and successful payments; never below zero. Zero for a draft, whose total is the base price, and for a paid or void invoice."),
59
59
  period_start: zod.iso.datetime({ offset: true }).nullish(),
60
60
  period_end: zod.iso.datetime({ offset: true }).nullish().describe("Exclusive."),
61
61
  customer_name: zod
62
62
  .string()
63
63
  .optional()
64
- .describe("Who this was billed to, as recorded when the invoice was issued. Later changes to\nthe account do not alter it."),
64
+ .describe("The billing details recorded when the invoice was issued."),
65
65
  customer_email: zod.string().optional(),
66
66
  customer_tax_id: zod.string().optional(),
67
67
  customer_tax_exempt: zod
68
68
  .enum(["none", "exempt", "reverse"])
69
69
  .optional()
70
- .describe("How tax applied to the customer when the invoice was issued. `reverse` means no tax was\ncharged because the customer accounts for it under the reverse-charge mechanism."),
70
+ .describe("How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism."),
71
71
  customer_address_line1: zod.string().optional(),
72
72
  customer_address_line2: zod.string().optional(),
73
73
  customer_address_city: zod.string().optional(),
@@ -61,6 +61,7 @@ export declare const InvoiceItem: zod.ZodObject<{
61
61
  currency: zod.ZodString;
62
62
  period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
63
63
  period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
64
+ dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
64
65
  prorations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
65
66
  credited_invoice_item_id: zod.ZodUUID;
66
67
  description: zod.ZodString;
@@ -53,11 +53,9 @@ export const InvoiceItem = zod.strictObject({
53
53
  project: zod
54
54
  .union([NamedIdentity, zod.null()])
55
55
  .optional()
56
- .describe("The project the charge was for and its current name, for display. Absent when the line is\nnot for a project, and when the project no longer exists or its details cannot be read at\nthe moment; `project_id` still identifies it then."),
56
+ .describe("The project the charge was for and its current name. Absent when the line has no project or the project cannot be read; `project_id` still identifies it."),
57
57
  resource_id: zod.string().optional(),
58
- description: zod
59
- .string()
60
- .describe("The wording as recorded when the invoice was issued. It is not re-translated\nafterwards, so that an invoice continues to read as it did when it was sent."),
58
+ description: zod.string().describe("The line's wording as recorded when the invoice was issued."),
61
59
  unit: zod.string().optional(),
62
60
  quantity: zod.string().optional(),
63
61
  deducted_quantity: zod
@@ -69,6 +67,10 @@ export const InvoiceItem = zod.strictObject({
69
67
  currency: zod.string(),
70
68
  period_start: zod.iso.datetime({ offset: true }).nullish(),
71
69
  period_end: zod.iso.datetime({ offset: true }).nullish(),
70
+ dimensions: zod
71
+ .record(zod.string(), zod.string())
72
+ .optional()
73
+ .describe("For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines."),
72
74
  prorations: zod
73
75
  .array(InvoiceItemProration)
74
76
  .optional()
@@ -62,6 +62,7 @@ export declare const InvoiceItemList: zod.ZodObject<{
62
62
  currency: zod.ZodString;
63
63
  period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
64
64
  period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
65
+ dimensions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
65
66
  prorations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
66
67
  credited_invoice_item_id: zod.ZodUUID;
67
68
  description: zod.ZodString;
@@ -37,9 +37,7 @@ export const InvoiceItemProration = zod
37
37
  credited_invoice_item_id: zod
38
38
  .uuid()
39
39
  .describe("The earlier invoice line that paid for the period."),
40
- description: zod
41
- .string()
42
- .describe("The wording of the earlier invoice line as recorded when this invoice was created."),
40
+ description: zod.string().describe("The earlier invoice line's wording as recorded."),
43
41
  period_start: zod.iso.datetime({ offset: true }),
44
42
  period_end: zod.iso.datetime({ offset: true }).describe("Exclusive."),
45
43
  remaining_amount: Money.describe("Before tax and discounts, the new configuration for the period."),
@@ -56,7 +56,6 @@ export declare const InvoiceList: zod.ZodObject<{
56
56
  open: "open";
57
57
  draft: "draft";
58
58
  paid: "paid";
59
- uncollectible: "uncollectible";
60
59
  }>;
61
60
  subtotal: zod.ZodOptional<zod.ZodString>;
62
61
  discount_amount: zod.ZodOptional<zod.ZodString>;
@@ -36,7 +36,6 @@ export declare const InvoiceStatus: zod.ZodEnum<{
36
36
  open: "open";
37
37
  draft: "draft";
38
38
  paid: "paid";
39
- uncollectible: "uncollectible";
40
39
  }>;
41
40
  export type InvoiceStatus = zod.input<typeof InvoiceStatus>;
42
41
  export type InvoiceStatusOutput = zod.output<typeof InvoiceStatus>;
@@ -32,5 +32,5 @@
32
32
  */
33
33
  import * as zod from "zod";
34
34
  export const InvoiceStatus = zod
35
- .enum(["draft", "open", "paid", "void", "uncollectible"])
36
- .describe("A draft is not yet issued. The draft invoice of an order shows base prices until it is paid, when\nthe discount is applied and it is issued; other drafts are private to administrators.\nAn issued invoice is open until settled; a zero-total issued invoice is immediately paid.\nUnbilled usage remains separate from invoices until it is invoiced.\nA refund does not change the status: a paid invoice stays paid, with the refunded part in\namount_refunded. void means collection has stopped and any funds received have been returned.");
35
+ .enum(["draft", "open", "paid", "void"])
36
+ .describe("`draft`: not yet issued; an order's draft invoice shows base prices until it is paid, when the discount is applied and it is issued. Other drafts are visible only to operators. `open`: issued and not yet settled; a zero-total invoice is paid at once. `paid` stays paid after a refund, with the refunded part in amount_refunded. `void`: collection has stopped and any funds received have been returned. Usage not yet invoiced is not on any invoice.");
@@ -41,7 +41,6 @@ export declare const InvoiceSummary: zod.ZodObject<{
41
41
  open: "open";
42
42
  draft: "draft";
43
43
  paid: "paid";
44
- uncollectible: "uncollectible";
45
44
  }>;
46
45
  subtotal: zod.ZodString;
47
46
  discount_amount: zod.ZodString;
@@ -47,8 +47,8 @@ export const InvoiceSummary = zod
47
47
  tax_amount: zod.string(),
48
48
  total: zod.string(),
49
49
  amount_paid: zod.string(),
50
- pre_payment_credit_notes_amount: Money.describe("Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total."),
51
- post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds."),
50
+ pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
51
+ post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
52
52
  amount_due: zod
53
53
  .string()
54
54
  .regex(invoiceSummaryAmountDueRegExp)
@@ -56,4 +56,4 @@ export const InvoiceSummary = zod
56
56
  amount_refunded: zod.string(),
57
57
  due_at: zod.iso.datetime({ offset: true }).optional(),
58
58
  })
59
- .describe("Purchase-related invoice amounts, without account contact details or payment methods. Every order\nhas an invoice from placement. A draft shows base prices until it is paid, when the discount is\napplied and it is issued; a zero-total invoice is issued and paid at placement whatever the\ncheckout mode. Neither establishes acceptance or delivery.");
59
+ .describe("An order's invoice amounts, without contact details or payment methods. A draft shows base prices until it is paid, when the discount is applied and it is issued; a zero-total invoice is issued and paid at placement.");
@@ -0,0 +1,43 @@
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 Modality: zod.ZodEnum<{
35
+ file: "file";
36
+ text: "text";
37
+ image: "image";
38
+ audio: "audio";
39
+ video: "video";
40
+ embedding: "embedding";
41
+ }>;
42
+ export type Modality = zod.input<typeof Modality>;
43
+ export type ModalityOutput = zod.output<typeof Modality>;
@@ -0,0 +1,34 @@
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 Modality = zod.enum(["text", "image", "audio", "video", "file", "embedding"]);
@@ -39,10 +39,50 @@ export declare const Model: zod.ZodObject<{
39
39
  display_name: zod.ZodString;
40
40
  context_length: zod.ZodInt;
41
41
  max_output_tokens: zod.ZodInt;
42
- supports_vision: zod.ZodBoolean;
43
- supports_tools: zod.ZodBoolean;
44
- supports_reasoning: zod.ZodBoolean;
45
- reasoning_tiers: zod.ZodArray<zod.ZodString>;
42
+ developer: zod.ZodString;
43
+ description: zod.ZodString;
44
+ input_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
45
+ file: "file";
46
+ text: "text";
47
+ image: "image";
48
+ audio: "audio";
49
+ video: "video";
50
+ embedding: "embedding";
51
+ }>>>;
52
+ output_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
53
+ file: "file";
54
+ text: "text";
55
+ image: "image";
56
+ audio: "audio";
57
+ video: "video";
58
+ embedding: "embedding";
59
+ }>>>;
60
+ capabilities: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
61
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
62
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
63
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
64
+ supported: zod.ZodBoolean;
65
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
66
+ default_effort: zod.ZodNullable<zod.ZodString>;
67
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
68
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
69
+ min: zod.ZodInt;
70
+ max: zod.ZodInt;
71
+ }, zod.z.core.$strict>>;
72
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
73
+ }, zod.z.core.$strict>, zod.ZodNull]>;
74
+ }, zod.z.core.$strict>>;
75
+ supported_endpoints: zod.ZodArray<zod.ZodEnum<{
76
+ "/v1/chat/completions": "/v1/chat/completions";
77
+ "/v1/responses": "/v1/responses";
78
+ "/v1/embeddings": "/v1/embeddings";
79
+ "/v1/images/generations": "/v1/images/generations";
80
+ "/v1/images/edits": "/v1/images/edits";
81
+ "/v1/audio/transcriptions": "/v1/audio/transcriptions";
82
+ "/v1/audio/translations": "/v1/audio/translations";
83
+ "/v1/audio/speech": "/v1/audio/speech";
84
+ "/v1/realtime": "/v1/realtime";
85
+ }>>;
46
86
  }, zod.z.core.$strict>;
47
87
  export type Model = zod.input<typeof Model>;
48
88
  export type ModelOutput = zod.output<typeof Model>;
@@ -31,6 +31,9 @@
31
31
  * OpenAPI spec version: 1.0.0
32
32
  */
33
33
  import * as zod from "zod";
34
+ import { Modality } from "./modality.zod.js";
35
+ import { ModelCapabilities } from "./modelCapabilities.zod.js";
36
+ import { ModelEndpoint } from "./modelEndpoint.zod.js";
34
37
  export const Model = zod.strictObject({
35
38
  id: zod.string(),
36
39
  object: zod.literal("model"),
@@ -39,8 +42,20 @@ export const Model = zod.strictObject({
39
42
  display_name: zod.string(),
40
43
  context_length: zod.int(),
41
44
  max_output_tokens: zod.int(),
42
- supports_vision: zod.boolean(),
43
- supports_tools: zod.boolean(),
44
- supports_reasoning: zod.boolean(),
45
- reasoning_tiers: zod.array(zod.string()),
45
+ developer: zod
46
+ .string()
47
+ .describe("The model developer; not the upstream provider or model family."),
48
+ description: zod.string(),
49
+ input_modalities: zod
50
+ .array(Modality)
51
+ .nullable()
52
+ .describe("Accepted input modalities. Null means unknown."),
53
+ output_modalities: zod
54
+ .array(Modality)
55
+ .nullable()
56
+ .describe("Produced output modalities. Image input does not imply image generation."),
57
+ capabilities: ModelCapabilities,
58
+ supported_endpoints: zod
59
+ .array(ModelEndpoint)
60
+ .describe("Explicitly supported API endpoints. Requests to any other endpoint are rejected before upstream admission."),
46
61
  });
@@ -0,0 +1,50 @@
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 ModelCapabilities: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
35
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
36
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
37
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
38
+ supported: zod.ZodBoolean;
39
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
40
+ default_effort: zod.ZodNullable<zod.ZodString>;
41
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
42
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
43
+ min: zod.ZodInt;
44
+ max: zod.ZodInt;
45
+ }, zod.z.core.$strict>>;
46
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
47
+ }, zod.z.core.$strict>, zod.ZodNull]>;
48
+ }, zod.z.core.$strict>>;
49
+ export type ModelCapabilities = zod.input<typeof ModelCapabilities>;
50
+ export type ModelCapabilitiesOutput = zod.output<typeof ModelCapabilities>;
@@ -0,0 +1,37 @@
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
+ import { EndpointCapabilities } from "./endpointCapabilities.zod.js";
35
+ export const ModelCapabilities = zod
36
+ .record(zod.string(), EndpointCapabilities)
37
+ .describe("Verified capabilities keyed by API endpoint, for example /v1/chat/completions or /v1/responses. Missing keys and null values mean unknown. Current route availability is separate.");
@@ -0,0 +1,46 @@
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 ModelEndpoint: zod.ZodEnum<{
35
+ "/v1/chat/completions": "/v1/chat/completions";
36
+ "/v1/responses": "/v1/responses";
37
+ "/v1/embeddings": "/v1/embeddings";
38
+ "/v1/images/generations": "/v1/images/generations";
39
+ "/v1/images/edits": "/v1/images/edits";
40
+ "/v1/audio/transcriptions": "/v1/audio/transcriptions";
41
+ "/v1/audio/translations": "/v1/audio/translations";
42
+ "/v1/audio/speech": "/v1/audio/speech";
43
+ "/v1/realtime": "/v1/realtime";
44
+ }>;
45
+ export type ModelEndpoint = zod.input<typeof ModelEndpoint>;
46
+ export type ModelEndpointOutput = zod.output<typeof ModelEndpoint>;