@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,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 const ModelEndpoint = zod.enum([
35
+ "/v1/chat/completions",
36
+ "/v1/responses",
37
+ "/v1/embeddings",
38
+ "/v1/images/generations",
39
+ "/v1/images/edits",
40
+ "/v1/audio/transcriptions",
41
+ "/v1/audio/translations",
42
+ "/v1/audio/speech",
43
+ "/v1/realtime",
44
+ ]);
@@ -41,10 +41,50 @@ export declare const ModelList: zod.ZodObject<{
41
41
  display_name: zod.ZodString;
42
42
  context_length: zod.ZodInt;
43
43
  max_output_tokens: zod.ZodInt;
44
- supports_vision: zod.ZodBoolean;
45
- supports_tools: zod.ZodBoolean;
46
- supports_reasoning: zod.ZodBoolean;
47
- reasoning_tiers: zod.ZodArray<zod.ZodString>;
44
+ developer: zod.ZodString;
45
+ description: zod.ZodString;
46
+ input_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
47
+ file: "file";
48
+ text: "text";
49
+ image: "image";
50
+ audio: "audio";
51
+ video: "video";
52
+ embedding: "embedding";
53
+ }>>>;
54
+ output_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
55
+ file: "file";
56
+ text: "text";
57
+ image: "image";
58
+ audio: "audio";
59
+ video: "video";
60
+ embedding: "embedding";
61
+ }>>>;
62
+ capabilities: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
63
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
64
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
65
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
66
+ supported: zod.ZodBoolean;
67
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
68
+ default_effort: zod.ZodNullable<zod.ZodString>;
69
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
70
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
71
+ min: zod.ZodInt;
72
+ max: zod.ZodInt;
73
+ }, zod.z.core.$strict>>;
74
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
75
+ }, zod.z.core.$strict>, zod.ZodNull]>;
76
+ }, zod.z.core.$strict>>;
77
+ supported_endpoints: zod.ZodArray<zod.ZodEnum<{
78
+ "/v1/chat/completions": "/v1/chat/completions";
79
+ "/v1/responses": "/v1/responses";
80
+ "/v1/embeddings": "/v1/embeddings";
81
+ "/v1/images/generations": "/v1/images/generations";
82
+ "/v1/images/edits": "/v1/images/edits";
83
+ "/v1/audio/transcriptions": "/v1/audio/transcriptions";
84
+ "/v1/audio/translations": "/v1/audio/translations";
85
+ "/v1/audio/speech": "/v1/audio/speech";
86
+ "/v1/realtime": "/v1/realtime";
87
+ }>>;
48
88
  }, zod.z.core.$strict>>;
49
89
  }, zod.z.core.$strict>;
50
90
  export type ModelList = zod.input<typeof ModelList>;
@@ -52,15 +52,55 @@ export declare const ModelListResponseBody: zod.ZodObject<{
52
52
  unit_quantity: zod.ZodNullable<zod.ZodString>;
53
53
  }, zod.z.core.$strict>>;
54
54
  }, zod.z.core.$strict>, zod.ZodNull]>;
55
- reasoning_tiers: zod.ZodArray<zod.ZodString>;
56
55
  status: zod.ZodEnum<{
57
56
  available: "available";
58
57
  draining: "draining";
59
58
  retired: "retired";
60
59
  }>;
61
- supports_reasoning: zod.ZodBoolean;
62
- supports_tools: zod.ZodBoolean;
63
- supports_vision: zod.ZodBoolean;
60
+ developer: zod.ZodString;
61
+ description: zod.ZodString;
62
+ input_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
63
+ file: "file";
64
+ text: "text";
65
+ image: "image";
66
+ audio: "audio";
67
+ video: "video";
68
+ embedding: "embedding";
69
+ }>>>;
70
+ output_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
71
+ file: "file";
72
+ text: "text";
73
+ image: "image";
74
+ audio: "audio";
75
+ video: "video";
76
+ embedding: "embedding";
77
+ }>>>;
78
+ capabilities: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
79
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
80
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
81
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
82
+ supported: zod.ZodBoolean;
83
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
84
+ default_effort: zod.ZodNullable<zod.ZodString>;
85
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
86
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
87
+ min: zod.ZodInt;
88
+ max: zod.ZodInt;
89
+ }, zod.z.core.$strict>>;
90
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
91
+ }, zod.z.core.$strict>, zod.ZodNull]>;
92
+ }, zod.z.core.$strict>>;
93
+ supported_endpoints: zod.ZodArray<zod.ZodEnum<{
94
+ "/v1/chat/completions": "/v1/chat/completions";
95
+ "/v1/responses": "/v1/responses";
96
+ "/v1/embeddings": "/v1/embeddings";
97
+ "/v1/images/generations": "/v1/images/generations";
98
+ "/v1/images/edits": "/v1/images/edits";
99
+ "/v1/audio/transcriptions": "/v1/audio/transcriptions";
100
+ "/v1/audio/translations": "/v1/audio/translations";
101
+ "/v1/audio/speech": "/v1/audio/speech";
102
+ "/v1/realtime": "/v1/realtime";
103
+ }>>;
64
104
  }, zod.z.core.$strict>>;
65
105
  }, zod.z.core.$strict>;
66
106
  export type ModelListResponseBody = zod.input<typeof ModelListResponseBody>;
@@ -51,15 +51,55 @@ export declare const ModelResource: zod.ZodObject<{
51
51
  unit_quantity: zod.ZodNullable<zod.ZodString>;
52
52
  }, zod.z.core.$strict>>;
53
53
  }, zod.z.core.$strict>, zod.ZodNull]>;
54
- reasoning_tiers: zod.ZodArray<zod.ZodString>;
55
54
  status: zod.ZodEnum<{
56
55
  available: "available";
57
56
  draining: "draining";
58
57
  retired: "retired";
59
58
  }>;
60
- supports_reasoning: zod.ZodBoolean;
61
- supports_tools: zod.ZodBoolean;
62
- supports_vision: zod.ZodBoolean;
59
+ developer: zod.ZodString;
60
+ description: zod.ZodString;
61
+ input_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
62
+ file: "file";
63
+ text: "text";
64
+ image: "image";
65
+ audio: "audio";
66
+ video: "video";
67
+ embedding: "embedding";
68
+ }>>>;
69
+ output_modalities: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
70
+ file: "file";
71
+ text: "text";
72
+ image: "image";
73
+ audio: "audio";
74
+ video: "video";
75
+ embedding: "embedding";
76
+ }>>>;
77
+ capabilities: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
78
+ function_calling: zod.ZodNullable<zod.ZodBoolean>;
79
+ structured_output: zod.ZodNullable<zod.ZodBoolean>;
80
+ reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
81
+ supported: zod.ZodBoolean;
82
+ effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
83
+ default_effort: zod.ZodNullable<zod.ZodString>;
84
+ modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
85
+ budget_tokens: zod.ZodNullable<zod.ZodObject<{
86
+ min: zod.ZodInt;
87
+ max: zod.ZodInt;
88
+ }, zod.z.core.$strict>>;
89
+ summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
90
+ }, zod.z.core.$strict>, zod.ZodNull]>;
91
+ }, zod.z.core.$strict>>;
92
+ supported_endpoints: zod.ZodArray<zod.ZodEnum<{
93
+ "/v1/chat/completions": "/v1/chat/completions";
94
+ "/v1/responses": "/v1/responses";
95
+ "/v1/embeddings": "/v1/embeddings";
96
+ "/v1/images/generations": "/v1/images/generations";
97
+ "/v1/images/edits": "/v1/images/edits";
98
+ "/v1/audio/transcriptions": "/v1/audio/transcriptions";
99
+ "/v1/audio/translations": "/v1/audio/translations";
100
+ "/v1/audio/speech": "/v1/audio/speech";
101
+ "/v1/realtime": "/v1/realtime";
102
+ }>>;
63
103
  }, zod.z.core.$strict>;
64
104
  export type ModelResource = zod.input<typeof ModelResource>;
65
105
  export type ModelResourceOutput = zod.output<typeof ModelResource>;
@@ -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
  import { ModelPricing } from "./modelPricing.zod.js";
35
38
  export const ModelResource = zod.strictObject({
36
39
  context_length: zod
@@ -45,11 +48,21 @@ export const ModelResource = zod.strictObject({
45
48
  pricing: zod
46
49
  .union([ModelPricing, zod.null()])
47
50
  .describe("What requests to this model cost. Null when the project has no billing account."),
48
- reasoning_tiers: zod
49
- .array(zod.string())
50
- .describe("The values accepted for `reasoning_effort`. Empty means it is not supported"),
51
51
  status: zod.enum(["available", "draining", "retired"]),
52
- supports_reasoning: zod.boolean(),
53
- supports_tools: zod.boolean(),
54
- supports_vision: zod.boolean(),
52
+ developer: zod
53
+ .string()
54
+ .describe("The model developer; not the upstream provider or model family."),
55
+ description: zod.string(),
56
+ input_modalities: zod
57
+ .array(Modality)
58
+ .nullable()
59
+ .describe("Accepted input modalities. Null means unknown."),
60
+ output_modalities: zod
61
+ .array(Modality)
62
+ .nullable()
63
+ .describe("Produced output modalities. Image input does not imply image generation."),
64
+ capabilities: ModelCapabilities,
65
+ supported_endpoints: zod
66
+ .array(ModelEndpoint)
67
+ .describe("Explicitly supported API endpoints. Requests to any other endpoint are rejected before upstream admission."),
55
68
  });
@@ -41,7 +41,7 @@ export const MonthlyStatement = zod
41
41
  period_end: zod.iso.datetime({ offset: true }),
42
42
  finalized: zod
43
43
  .boolean()
44
- .describe("True after the period's final closing, which applies minimum charges for the whole month. Usage priced later is still billed in supplement statements and added here."),
44
+ .describe("True after the period's final closing, which applies the month's minimum charges. Usage priced later is billed in supplement statements and added here."),
45
45
  finalized_at: zod.iso.datetime({ offset: true }).optional(),
46
46
  statement_count: zod.int().describe("Statements of the period, including the open one."),
47
47
  billed: StatementAmounts,
@@ -52,4 +52,4 @@ export const MonthlyStatement = zod
52
52
  amount_due: Money,
53
53
  amount_refunded: Money,
54
54
  })
55
- .describe("One billing account's usage billing for one UTC calendar month, summed over the month's statements. It is a summary, not something to pay; each closing's invoice is collected on its own.");
55
+ .describe("One billing account's usage billing for one UTC calendar month, summed over its statements. Not payable itself; each statement's invoice is collected on its own.");
@@ -37,4 +37,4 @@ export const ObjectIdentity = zod
37
37
  id: zod.uuid(),
38
38
  name: zod.string(),
39
39
  })
40
- .describe("A catalog object inlined for display.");
40
+ .describe("A catalog object, inlined for display.");
@@ -50,7 +50,6 @@ export declare const Order: zod.ZodObject<{
50
50
  open: "open";
51
51
  draft: "draft";
52
52
  paid: "paid";
53
- uncollectible: "uncollectible";
54
53
  }>;
55
54
  subtotal: zod.ZodString;
56
55
  discount_amount: zod.ZodString;
@@ -130,11 +129,15 @@ export declare const Order: zod.ZodObject<{
130
129
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
131
130
  recurring_amount: zod.ZodOptional<zod.ZodString>;
132
131
  setup_amount: zod.ZodOptional<zod.ZodString>;
133
- charge_type: zod.ZodEnum<{
134
- postpaid: "postpaid";
135
- prepaid: "prepaid";
132
+ type: zod.ZodEnum<{
136
133
  one_time: "one_time";
134
+ recurring: "recurring";
137
135
  }>;
136
+ usage_type: zod.ZodEnum<{
137
+ licensed: "licensed";
138
+ metered: "metered";
139
+ }>;
140
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
138
141
  tax_amount: zod.ZodOptional<zod.ZodString>;
139
142
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
140
143
  id: zod.ZodUUID;
@@ -46,7 +46,7 @@ export const Order = zod
46
46
  promotion_code: zod
47
47
  .string()
48
48
  .optional()
49
- .describe("Code text frozen when the coupon was applied. Absent for an account discount."),
49
+ .describe("The promotion code applied. Absent for an account discount."),
50
50
  invoice_id: zod.uuid().describe("The order's invoice, the same as invoice.id."),
51
51
  invoice: InvoiceSummary,
52
52
  paid_with: PaidWith.optional().describe("How the order was paid. Absent until it is paid."),
@@ -56,35 +56,33 @@ export const Order = zod
56
56
  project_id: zod
57
57
  .uuid()
58
58
  .nullish()
59
- .describe("Which project it was bought for. Absent for a purchase made at account level, such\nas a membership."),
59
+ .describe("The project it was bought for. Absent for an account-level purchase, such as a membership."),
60
60
  project: zod
61
61
  .union([NamedIdentity, zod.null()])
62
62
  .optional()
63
- .describe("The project and its current name, for display. Absent for a purchase at account level,\nand when the project no longer exists or its details cannot be read at the moment;\n`project_id` still identifies it then."),
63
+ .describe("The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it."),
64
64
  billing_account_id: zod
65
65
  .int()
66
66
  .optional()
67
- .describe("The billing account the order was placed with. It does not change when the project is later\nlinked to another billing account. While this account is suspended or closed the order cannot\nbe accepted, and the invoice of a change scheduled for the end of a period is not issued and the change is called off\nwhen the current period ends; such requests fail with BILLING_ACCOUNT_UNAVAILABLE."),
67
+ .describe("The billing account the order was placed with, unchanged when the project is later linked to another account. While it is suspended or closed, the order cannot be accepted, and a period-end change's invoice is not issued and the change is called off when the current period ends; such requests fail with `BILLING_ACCOUNT_UNAVAILABLE`."),
68
68
  currency: zod.string(),
69
69
  type: zod
70
70
  .enum(["new", "renew", "modify"])
71
- .describe("`new` buys, `renew` extends a prepaid subscription, `modify` changes a subscription's configuration or billing terms."),
71
+ .describe("`new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms."),
72
72
  status: OrderStatus,
73
73
  change_effective: zod
74
74
  .enum(["none", "immediate", "period_end"])
75
75
  .optional()
76
- .describe("When a plan change takes effect. `none` on anything that is not a change.\n\n`period_end` orders stay pending until the first period at the new price is paid. That period\nis invoiced shortly before the current paid period ends and starts when it ends; if the\ninvoice is still unpaid by then, the order is canceled and the subscription renews or ends as\nusual. Renewing in the meantime moves all of this along with it."),
76
+ .describe("When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced shortly before the current paid period ends and starts when it ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual. A renewal in the meantime moves the change to the end of the renewed period."),
77
77
  expires_at: zod.iso
78
78
  .datetime({ offset: true })
79
79
  .nullish()
80
- .describe("Acceptance deadline. Pending orders can expire automatically."),
80
+ .describe("Acceptance deadline; a pending order expires after it."),
81
81
  checkout_confirmed_at: zod.iso
82
82
  .datetime({ offset: true })
83
83
  .nullish()
84
- .describe("When the discount and amount were fixed: at placement for automatic checkout and for a\nzero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment."),
84
+ .describe("When the discount and amount were fixed: at placement for automatic checkout or a zero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment."),
85
85
  created_at: zod.iso.datetime({ offset: true }),
86
- items: zod
87
- .array(OrderItem)
88
- .describe("What was bought. Present on a single order and on every order in a list, so a list\ncan be rendered without a further request per row."),
86
+ items: zod.array(OrderItem).describe("What was bought."),
89
87
  })
90
- .describe("A recorded purchase with its invoice from placement; a zero-total invoice, such as for postpaid\nadmission, is issued and paid at placement whatever the checkout mode. Until checkout_confirmed_at is set, the\ninvoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the\norder cannot be accepted before then. Coupon fields describe the discount fixed at that point and are absent\nbefore it; a quote never populates them. Payment and acceptance remain separate from resource delivery.");
88
+ .describe("A recorded purchase with its invoice from placement; a zero-total invoice, such as for a metered purchase, is issued and paid at placement in either checkout mode. Until checkout_confirmed_at is set, the invoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the order cannot be accepted before then. Coupon fields describe the discount fixed then and are absent before. Payment and acceptance do not mean the resources were delivered.");
@@ -57,11 +57,15 @@ export declare const OrderItem: zod.ZodObject<{
57
57
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
58
58
  recurring_amount: zod.ZodOptional<zod.ZodString>;
59
59
  setup_amount: zod.ZodOptional<zod.ZodString>;
60
- charge_type: zod.ZodEnum<{
61
- postpaid: "postpaid";
62
- prepaid: "prepaid";
60
+ type: zod.ZodEnum<{
63
61
  one_time: "one_time";
62
+ recurring: "recurring";
64
63
  }>;
64
+ usage_type: zod.ZodEnum<{
65
+ licensed: "licensed";
66
+ metered: "metered";
67
+ }>;
68
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
65
69
  tax_amount: zod.ZodOptional<zod.ZodString>;
66
70
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
67
71
  id: zod.ZodUUID;
@@ -33,10 +33,12 @@
33
33
  import * as zod from "zod";
34
34
  import { Money } from "./money.zod.js";
35
35
  import { OrderItemStatus } from "./orderItemStatus.zod.js";
36
+ import { PriceType } from "./priceType.zod.js";
36
37
  import { Product } from "./product.zod.js";
37
38
  import { ProductID } from "./productID.zod.js";
38
39
  import { RefundPolicy } from "./refundPolicy.zod.js";
39
40
  import { TerminationPolicy } from "./terminationPolicy.zod.js";
41
+ import { UsageType } from "./usageType.zod.js";
40
42
  export const orderItemPositionMin = 0;
41
43
  export const OrderItem = zod
42
44
  .strictObject({
@@ -53,7 +55,7 @@ export const OrderItem = zod
53
55
  subscription_id: zod
54
56
  .uuid()
55
57
  .optional()
56
- .describe("Stable Billing subscription ID. A new prepaid or postpaid service purchase returns the\npending subscription here; renewals and changes reference the existing subscription, which\nkeeps its ID. Absent for delivery without a subscription. This is not a business resource ID."),
58
+ .describe("The Billing subscription: the new pending subscription of a recurring purchase, or the existing one renewed or changed, which keeps its ID. Absent for a purchase without a subscription."),
57
59
  interval: zod.enum(["none", "day", "month", "year"]),
58
60
  interval_count: zod.int().min(1).optional(),
59
61
  termination_policy: TerminationPolicy.optional(),
@@ -61,16 +63,18 @@ export const OrderItem = zod
61
63
  refund_monthly_amount: zod
62
64
  .string()
63
65
  .nullish()
64
- .describe("Prepaid items only: the plan's one-month prepaid price for this item's quantity before tax, frozen\nat purchase, used to value time used under a prorated refund or a downgrade. Null when the plan has\nno prepaid period shorter than the one bought."),
66
+ .describe("Recurring licensed items only: the plan's one-month licensed price for this item's quantity, before tax and frozen at purchase, used to value time under a prorated refund or a downgrade. Null when the plan has no licensed period shorter than the one bought."),
65
67
  refund_hourly_amount: zod
66
68
  .string()
67
69
  .nullish()
68
- .describe("Prepaid items only: the plan's postpaid hourly price for this item's quantity before tax, frozen at\npurchase, used for time used short of a full month. Null when the plan has no postpaid price."),
70
+ .describe("Recurring licensed items only, the plan's metered hourly price for this item's quantity before tax, frozen at purchase, used for time used short of a full month. Null when the licensed price has no meter."),
69
71
  recurring_amount: zod.string().optional(),
70
72
  setup_amount: zod.string().optional(),
71
- charge_type: zod
72
- .enum(["postpaid", "prepaid", "one_time"])
73
- .describe("The payment timing of the selected price."),
73
+ type: PriceType,
74
+ usage_type: UsageType,
75
+ dimensions: zod
76
+ .record(zod.string(), zod.string())
77
+ .describe("The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none."),
74
78
  tax_amount: zod
75
79
  .string()
76
80
  .optional()
@@ -85,23 +89,21 @@ export const OrderItem = zod
85
89
  product_id: ProductID.optional(),
86
90
  product: Product.optional(),
87
91
  plan_id: zod.uuid().describe("Which plan was bought."),
88
- plan_name: zod
89
- .string()
90
- .describe("What it was called when bought. It does not follow later catalogue renames and is\nnot translated."),
92
+ plan_name: zod.string().describe("The name when bought."),
91
93
  quantity: zod.string(),
92
- unit_amount: Money.optional().describe("The unit amount of the price this line is charged under. Absent for a tiered price, which has no\nsingle unit amount, and for a change that takes effect at once, which is charged as `gross_amount`\ndescribes."),
93
- gross_amount: Money.optional().describe("Before discounts: the price applied to the quantity, which for a per-unit price is `unit_amount`\ntimes `quantity`; a minimum charge can make it higher. For an upgrade that takes effect at once it is\nthe new price for the time left in the paid period, at the subscription's own period price, minus\nthe amount paid for that time, and the period end does not move; a downgrade charges nothing and may refund the\ndifference instead. A change between equal period prices charges and refunds nothing. The setup fee is not part of it; see `setup_amount`.\n\nUnder an inclusive tax rate it includes tax, as the price does, and the included part is\n`tax_included_amount`. A renewal at the agreed terms is the exception: the agreed amount excludes\ntax, and tax is added to it."),
94
- discount_amount: Money.optional().describe("The reduction on this line: from the coupon the order uses and, for a renewal at the agreed terms,\nfrom the discount the subscription carries.\n\nA carried discount is part of the agreed amount. It is listed here, and `gross_amount` is then\n`unit_amount` times `quantity`, except in two cases where `gross_amount` is the agreed amount and\nthe carried discount is already reflected in it: the renewal order also uses a coupon the account\nholds, or the account's tax rate is inclusive."),
94
+ unit_amount: Money.optional().describe("The unit amount of the price the line is charged under. Absent for a tiered price, and for an immediate change, which is charged as `gross_amount` describes."),
95
+ gross_amount: Money.optional().describe("Before discounts and setup fees: the price applied to the quantity, `unit_amount` times `quantity` for a per-\nunit price, raised by any minimum charge. For an immediate upgrade it is the new price for the rest of the\npaid period minus the amount paid for that time; a downgrade, or a change between equal period prices, charges\nnothing.\n\nUnder an inclusive tax rate it includes tax, shown in `tax_included_amount`, except for a renewal at agreed\nterms, whose amount excludes tax."),
96
+ discount_amount: Money.optional().describe("The reduction on this line, from the order's coupon and, for a renewal at agreed terms, from the subscription's carried discount. With a carried discount, `gross_amount` is `unit_amount` times `quantity`, except when the renewal order also uses an account coupon or the tax rate is inclusive: then `gross_amount` is the agreed amount, which already reflects the carried discount."),
95
97
  amount: Money.optional().describe("`gross_amount` less `discount_amount`."),
96
98
  currency: zod.string(),
97
99
  period_start: zod.iso
98
100
  .datetime({ offset: true })
99
101
  .nullish()
100
- .describe("The start of the service period this line paid for. Frozen at placement for renewals and period-end changes; for a prepaid line of a new purchase, fixed from the second its invoice is paid and kept when delivery is confirmed. Absent for postpaid and one-time lines."),
102
+ .describe("The start of the service period this line paid for. Fixed at placement for renewals and period-end changes, and for a licensed line of a new purchase when its invoice is paid. Absent for metered and one-time lines."),
101
103
  period_end: zod.iso
102
104
  .datetime({ offset: true })
103
105
  .nullish()
104
106
  .describe("The end of that service period, exclusive."),
105
107
  status: OrderItemStatus,
106
108
  })
107
- .describe("Frozen purchase terms. Monetary fields come from related invoice-line snapshots and are zero\nfor a line with no immediate charge, such as postpaid admission. Later catalog changes do not reprice this line. A new service\npurchase creates its pending subscription when this item is recorded, not when payment succeeds.");
109
+ .describe("The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription from placement.");
@@ -57,11 +57,15 @@ export declare const OrderItemList: zod.ZodObject<{
57
57
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
58
58
  recurring_amount: zod.ZodOptional<zod.ZodString>;
59
59
  setup_amount: zod.ZodOptional<zod.ZodString>;
60
- charge_type: zod.ZodEnum<{
61
- postpaid: "postpaid";
62
- prepaid: "prepaid";
60
+ type: zod.ZodEnum<{
63
61
  one_time: "one_time";
62
+ recurring: "recurring";
64
63
  }>;
64
+ usage_type: zod.ZodEnum<{
65
+ licensed: "licensed";
66
+ metered: "metered";
67
+ }>;
68
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
65
69
  tax_amount: zod.ZodOptional<zod.ZodString>;
66
70
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
67
71
  id: zod.ZodUUID;
@@ -33,4 +33,4 @@
33
33
  import * as zod from "zod";
34
34
  export const OrderItemStatus = zod
35
35
  .enum(["pending", "completed", "failed", "canceled"])
36
- .describe("`pending` is waiting to be set up. `completed` was confirmed by the service.\n`failed` was not set up and its amount was refunded to the original payment sources.\n`canceled` was confirmed withdrawn without delivery; any collected amount is returned. A completed item is ended by canceling\nits subscription.");
36
+ .describe("`pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription is canceled.");
@@ -51,7 +51,6 @@ export declare const OrderList: zod.ZodObject<{
51
51
  open: "open";
52
52
  draft: "draft";
53
53
  paid: "paid";
54
- uncollectible: "uncollectible";
55
54
  }>;
56
55
  subtotal: zod.ZodString;
57
56
  discount_amount: zod.ZodString;
@@ -131,11 +130,15 @@ export declare const OrderList: zod.ZodObject<{
131
130
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
132
131
  recurring_amount: zod.ZodOptional<zod.ZodString>;
133
132
  setup_amount: zod.ZodOptional<zod.ZodString>;
134
- charge_type: zod.ZodEnum<{
135
- postpaid: "postpaid";
136
- prepaid: "prepaid";
133
+ type: zod.ZodEnum<{
137
134
  one_time: "one_time";
135
+ recurring: "recurring";
138
136
  }>;
137
+ usage_type: zod.ZodEnum<{
138
+ licensed: "licensed";
139
+ metered: "metered";
140
+ }>;
141
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
139
142
  tax_amount: zod.ZodOptional<zod.ZodString>;
140
143
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
141
144
  id: zod.ZodUUID;
@@ -40,4 +40,4 @@ export const OrderRefundQuote = zod
40
40
  credit_amount: Money,
41
41
  currency: zod.string(),
42
42
  })
43
- .describe("An estimated refund to original payment sources. Before acceptance, cancellation returns the\ncollected amount. For delivered service, only value funded by this order is included; renewals\nare evaluated under their own orders and the agreed termination terms apply. An unknown\ndelivery outcome is not evidence that a refund is eligible. This calculation does not create\na refund; the amount returned is determined when cancellation or termination is confirmed.");
43
+ .describe("An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed termination terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.");
@@ -42,4 +42,4 @@ export const OrderRefundQuoteInput = zod
42
42
  .optional()
43
43
  .describe("Estimate only these items. Omit to estimate the whole order. Every item must belong to the order."),
44
44
  })
45
- .describe("An estimate of the refundable value of one order or selected items. This does not cancel the order, stop service or create a refund.");
45
+ .describe("An estimate of the refundable value of an order or selected items; nothing is canceled or refunded.");
@@ -33,4 +33,4 @@
33
33
  import * as zod from "zod";
34
34
  export const OrderStatus = zod
35
35
  .enum(["pending", "accepted", "completed", "partially_completed", "failed", "canceled"])
36
- .describe("Follows the items. `pending` is not yet accepted and may be unpaid or paid; its invoice shows\nwhether payment is still needed, and it can expire or be canceled. `accepted` is accepted with items still\nbeing set up. `completed` means every item was set up. `partially_completed` means some items were set up\nand the others failed or were canceled and were refunded to their original payment sources. `failed` means\nno item was delivered and at least one failed; collected amounts for the undelivered items are refunded.\n`canceled` means every item was withdrawn without delivery; collected amounts are returned to their original\npayment sources. No status establishes service delivery by itself.");
36
+ .describe("Follows the items. `pending`: not yet accepted, paid or unpaid; its invoice shows whether payment is needed, and it can expire or be canceled. `accepted`: items are being set up. `completed`: every item was set up. `partially_completed`: some items were set up and the others failed or were canceled and refunded to their original payment sources. `failed`: no item was delivered and at least one failed; amounts collected for undelivered items are refunded. `canceled`: every item was withdrawn without delivery; collected amounts are returned to their original payment sources. No status by itself means the service was delivered.");
@@ -47,4 +47,4 @@ export const PaidWith = zod
47
47
  brand: zod.string().optional(),
48
48
  last4: zod.string().optional(),
49
49
  })
50
- .describe("How it was paid. Removing the payment method afterwards does not change it; `payment_method_id`\nthen names a removed payment method.");
50
+ .describe("How it was paid. `payment_method_id` still names the payment method after it is removed.");
@@ -45,7 +45,7 @@ export const PayInvoiceRequest = zod
45
45
  .min(1)
46
46
  .max(payInvoiceRequestPaymentGatewayMax)
47
47
  .optional()
48
- .describe("Required to collect an online remainder. An existing attempt keeps its original gateway."),
48
+ .describe("Required to collect an online remainder. An existing attempt keeps its gateway."),
49
49
  method_type: zod
50
50
  .string()
51
51
  .min(1)
@@ -55,24 +55,24 @@ export const PayInvoiceRequest = zod
55
55
  payment_method_id: zod
56
56
  .uuid()
57
57
  .optional()
58
- .describe("Optional saved card owned by this billing account and belonging to the selected gateway. Omit to complete payment interactively."),
58
+ .describe("A saved card of this billing account at the selected gateway. Omit to pay interactively."),
59
59
  use_balance: zod
60
60
  .boolean()
61
61
  .default(payInvoiceRequestUseBalanceDefault)
62
- .describe("Whether to apply the available balance. Credit grants are controlled separately by use_credits."),
62
+ .describe("Whether to apply the balance; credit grants are controlled by use_credits."),
63
63
  use_credits: zod
64
64
  .boolean()
65
65
  .default(payInvoiceRequestUseCreditsDefault)
66
- .describe("Apply eligible, unexpired credit grants before using the balance. This never withdraws grants or converts them into balance."),
66
+ .describe("Apply eligible, unexpired credit grants before the balance. Grants are never converted into balance."),
67
67
  return_url: zod.string().optional(),
68
68
  promotion_code: zod
69
69
  .string()
70
70
  .min(1)
71
71
  .max(payInvoiceRequestPromotionCodeMax)
72
72
  .optional()
73
- .describe("The code to apply while the order's terms are not yet fixed. Omit to apply the best applicable\naccount discount, or to keep the discount already recorded."),
73
+ .describe("The code to apply while the order's terms are not fixed. Omit to apply the best applicable account discount, or to keep the discount already recorded."),
74
74
  expected_amount: Money.and(zod.string().regex(payInvoiceRequestExpectedAmountTwoRegExp))
75
75
  .optional()
76
- .describe("The invoice total to expect, after discounts and tax and before credit grants or balance, as the\npayment preview or an order quote gave it. A different total fails with BILLING_AMOUNT_CHANGED\nand nothing is charged. Omit to skip the comparison; an explicit zero is compared."),
76
+ .describe("The invoice total to expect, after discounts and tax and before credit grants or balance, as the payment preview or an order quote gave it. A different total fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check; zero is checked."),
77
77
  })
78
78
  .describe("Applies eligible credit grants and the available balance as requested, then collects only the remainder\nthrough the selected gateway. Grants restricted to other purchases are not counted as available funds.\nAn unresolved channel payment is reused; retries do not apply the grant or balance portions twice.\nWithout a gateway selection, insufficient account funds fail without starting an online payment.\n\n`payment_gateway` and `method_type` are given together, and `payment_method_id` only with both;\notherwise the request is refused with `BILLING_PURCHASE_INVALID`.");
@@ -41,6 +41,6 @@ export const PayTogetherRequest = zod
41
41
  order_ids: zod.array(zod.uuid()).max(payTogetherRequestOrderIdsMax).optional(),
42
42
  expected_amount: Money.and(zod.string().regex(payTogetherRequestExpectedAmountTwoRegExp))
43
43
  .optional()
44
- .describe("The amount due to expect across all of them, before credit grants or balance, as preview-pay-together\ngave it. A different amount fails with BILLING_AMOUNT_CHANGED and nothing is charged. Omit to skip\nthe comparison."),
44
+ .describe("The amount due across all invoices, before credit grants or balance, as preview-pay-together gave it. A different amount fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check."),
45
45
  })
46
- .describe("Name at least one invoice or order. They must all belong to the same account and share\nits currency; anything else is refused rather than partly paid.");
46
+ .describe("Name at least one invoice or order. All must belong to one account in its currency.");