@leaflow/sdk 0.0.0-dev.352.g85966ed → 0.0.0-dev.353.g74313e0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (558) hide show
  1. package/dist/billing/type/funds/v1/generated/models.d.ts +4 -4
  2. package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
  3. package/dist/billing/type/order/v1/generated/models.d.ts +375 -779
  4. package/dist/billing/type/order/v1/generated/models.js +12 -44
  5. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  6. package/dist/billing/type/order/v1/generated/validators/accountBalance.zod.js +8 -8
  7. package/dist/billing/type/order/v1/generated/validators/activeResource.zod.js +8 -5
  8. package/dist/billing/type/order/v1/generated/validators/allowance.zod.js +3 -3
  9. package/dist/billing/type/order/v1/generated/validators/applicability.zod.d.ts +22 -11
  10. package/dist/billing/type/order/v1/generated/validators/applicability.zod.js +12 -3
  11. package/dist/billing/type/order/v1/generated/validators/applicablePlan.zod.js +1 -1
  12. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +5 -5
  13. package/dist/billing/type/order/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  14. package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  15. package/dist/billing/type/order/v1/generated/validators/billingScheme.zod.js +11 -0
  16. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +6 -3
  17. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +4 -4
  18. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +3 -3
  19. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  20. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.js +6 -5
  21. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  22. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  23. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  24. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  25. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  26. package/dist/billing/type/order/v1/generated/validators/contact.zod.js +2 -2
  27. package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  28. package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  29. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  30. package/dist/billing/type/order/v1/generated/validators/creditGroup.zod.js +1 -1
  31. package/dist/billing/type/order/v1/generated/validators/creditNote.zod.js +4 -4
  32. package/dist/billing/type/order/v1/generated/validators/currency.zod.js +1 -1
  33. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +23 -12
  34. package/dist/billing/type/order/v1/generated/validators/discount.zod.js +4 -4
  35. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +23 -12
  36. package/dist/billing/type/order/v1/generated/validators/entitlement.zod.js +1 -1
  37. package/dist/billing/type/order/v1/generated/validators/funds.zod.js +4 -4
  38. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +0 -1
  39. package/dist/billing/type/order/v1/generated/validators/invoice.zod.js +8 -8
  40. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  41. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +6 -4
  42. package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  43. package/dist/billing/type/order/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  44. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  45. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  46. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.js +2 -2
  47. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  48. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.js +3 -3
  49. package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +2 -2
  50. package/dist/billing/type/order/v1/generated/validators/objectIdentity.zod.js +1 -1
  51. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -4
  52. package/dist/billing/type/order/v1/generated/validators/order.zod.js +10 -12
  53. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +7 -3
  54. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +16 -14
  55. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  56. package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.js +1 -1
  57. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -4
  58. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  59. package/dist/billing/type/order/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  60. package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.js +1 -1
  61. package/dist/billing/type/order/v1/generated/validators/paidWith.zod.js +1 -1
  62. package/dist/billing/type/order/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  63. package/dist/billing/type/order/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  64. package/dist/billing/type/order/v1/generated/validators/paymentAction.zod.js +4 -4
  65. package/dist/billing/type/order/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  66. package/dist/billing/type/order/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  67. package/dist/billing/type/order/v1/generated/validators/paymentOption.zod.js +1 -1
  68. package/dist/billing/type/order/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  69. package/dist/billing/type/order/v1/generated/validators/paymentPreview.zod.js +4 -4
  70. package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.js +5 -8
  71. package/dist/billing/type/order/v1/generated/validators/paymentStatus.zod.js +1 -1
  72. package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  73. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +7 -5
  74. package/dist/billing/type/order/v1/generated/validators/price.zod.js +14 -11
  75. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +7 -5
  76. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.d.ts +7 -5
  77. package/dist/billing/type/order/v1/generated/validators/priceOption.zod.js +7 -3
  78. package/dist/billing/type/order/v1/generated/validators/priceType.zod.d.ts +14 -0
  79. package/dist/billing/type/order/v1/generated/validators/priceType.zod.js +11 -0
  80. package/dist/billing/type/order/v1/generated/validators/productID.zod.js +1 -1
  81. package/dist/billing/type/order/v1/generated/validators/projectAssignment.zod.js +2 -2
  82. package/dist/billing/type/order/v1/generated/validators/purchaseOperation.zod.js +1 -1
  83. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +6 -3
  84. package/dist/billing/type/order/v1/generated/validators/quote.zod.js +4 -4
  85. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
  86. package/dist/billing/type/order/v1/generated/validators/quoteItem.zod.js +4 -4
  87. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  88. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +8 -8
  89. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +1 -1
  90. package/dist/billing/type/order/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  91. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  92. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.js +5 -5
  93. package/dist/billing/type/order/v1/generated/validators/quotedDiscount.zod.js +1 -1
  94. package/dist/billing/type/order/v1/generated/validators/rate.zod.d.ts +11 -0
  95. package/dist/billing/type/order/v1/generated/validators/rate.zod.js +14 -6
  96. package/dist/billing/type/order/v1/generated/validators/rateList.zod.d.ts +11 -0
  97. package/dist/billing/type/order/v1/generated/validators/refund.zod.js +3 -3
  98. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +1 -1
  99. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
  100. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +2 -2
  101. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  102. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +1 -1
  103. package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.js +2 -2
  104. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.d.ts +8 -0
  105. package/dist/billing/type/order/v1/generated/validators/spendRow.zod.js +11 -0
  106. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  107. package/dist/billing/type/order/v1/generated/validators/spendRowList.zod.js +1 -1
  108. package/dist/billing/type/order/v1/generated/validators/statement.zod.js +2 -2
  109. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.d.ts +1 -0
  110. package/dist/billing/type/order/v1/generated/validators/statementItem.zod.js +4 -0
  111. package/dist/billing/type/order/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  112. package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +1 -1
  113. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +7 -3
  114. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +20 -14
  115. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  116. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  117. package/dist/billing/type/order/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  118. package/dist/billing/type/order/v1/generated/validators/terminationPolicy.zod.js +1 -1
  119. package/dist/billing/type/order/v1/generated/validators/tier.zod.js +1 -1
  120. package/dist/billing/type/order/v1/generated/validators/topUp.zod.js +8 -8
  121. package/dist/billing/type/order/v1/generated/validators/topUpCreate.zod.js +4 -4
  122. package/dist/billing/type/order/v1/generated/validators/transaction.zod.js +6 -6
  123. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -7
  124. package/dist/billing/type/order/v1/generated/validators/usageType.zod.d.ts +14 -0
  125. package/dist/billing/type/order/v1/generated/validators/usageType.zod.js +11 -0
  126. package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.js +2 -2
  127. package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.js +2 -2
  128. package/dist/billing/type/order/v1/generated/validators/withdrawalSource.zod.js +1 -1
  129. package/dist/billing/type/quote/v1/generated/models.d.ts +4 -4
  130. package/dist/billing/type/quote/v1/generated/validators/funds.zod.js +4 -4
  131. package/dist/billing/v1/generated/functions.d.ts +176 -310
  132. package/dist/billing/v1/generated/functions.js +175 -309
  133. package/dist/billing/v1/generated/models.d.ts +425 -863
  134. package/dist/billing/v1/generated/models.js +13 -49
  135. package/dist/billing/v1/generated/schemas.zod.d.ts +166 -383
  136. package/dist/billing/v1/generated/schemas.zod.js +213 -372
  137. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  138. package/dist/billing/v1/generated/validators/accountBalance.zod.js +8 -8
  139. package/dist/billing/v1/generated/validators/activeResource.zod.js +8 -5
  140. package/dist/billing/v1/generated/validators/allowance.zod.js +3 -3
  141. package/dist/billing/v1/generated/validators/applicability.zod.d.ts +22 -11
  142. package/dist/billing/v1/generated/validators/applicability.zod.js +12 -3
  143. package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
  144. package/dist/billing/v1/generated/validators/billingAccount.zod.js +5 -5
  145. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  146. package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  147. package/dist/billing/v1/generated/validators/billingScheme.zod.js +11 -0
  148. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +6 -3
  149. package/dist/billing/v1/generated/validators/cancellation.zod.js +4 -4
  150. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
  151. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  152. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
  153. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  154. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  155. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  156. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  157. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  158. package/dist/billing/v1/generated/validators/contact.zod.js +2 -2
  159. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  160. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  161. package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  162. package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
  163. package/dist/billing/v1/generated/validators/creditNote.zod.js +4 -4
  164. package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
  165. package/dist/billing/v1/generated/validators/discount.zod.d.ts +23 -12
  166. package/dist/billing/v1/generated/validators/discount.zod.js +4 -4
  167. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +23 -12
  168. package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
  169. package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
  170. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
  171. package/dist/billing/v1/generated/validators/invoice.zod.js +8 -8
  172. package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  173. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +6 -4
  174. package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  175. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  176. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  177. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  178. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
  179. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  180. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +3 -3
  181. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
  182. package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +5 -2
  183. package/dist/billing/v1/generated/validators/listPricesParams.zod.js +4 -1
  184. package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -0
  185. package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -1
  186. package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +2 -2
  187. package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
  188. package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -4
  189. package/dist/billing/v1/generated/validators/order.zod.js +10 -12
  190. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +7 -3
  191. package/dist/billing/v1/generated/validators/orderItem.zod.js +16 -14
  192. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  193. package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
  194. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -4
  195. package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  196. package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  197. package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
  198. package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
  199. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  200. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  201. package/dist/billing/v1/generated/validators/paymentAction.zod.js +4 -4
  202. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  203. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  204. package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
  205. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  206. package/dist/billing/v1/generated/validators/paymentPreview.zod.js +4 -4
  207. package/dist/billing/v1/generated/validators/paymentResult.zod.js +5 -8
  208. package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
  209. package/dist/billing/v1/generated/validators/price.zod.d.ts +7 -5
  210. package/dist/billing/v1/generated/validators/price.zod.js +14 -11
  211. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +7 -5
  212. package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +7 -5
  213. package/dist/billing/v1/generated/validators/priceOption.zod.js +7 -3
  214. package/dist/billing/v1/generated/validators/priceType.zod.d.ts +14 -0
  215. package/dist/billing/v1/generated/validators/priceType.zod.js +11 -0
  216. package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
  217. package/dist/billing/v1/generated/validators/projectAssignment.zod.js +2 -2
  218. package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
  219. package/dist/billing/v1/generated/validators/quote.zod.d.ts +6 -3
  220. package/dist/billing/v1/generated/validators/quote.zod.js +4 -4
  221. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
  222. package/dist/billing/v1/generated/validators/quoteItem.zod.js +4 -4
  223. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  224. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +8 -8
  225. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
  226. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  227. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  228. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +5 -5
  229. package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
  230. package/dist/billing/v1/generated/validators/rate.zod.d.ts +11 -0
  231. package/dist/billing/v1/generated/validators/rate.zod.js +14 -6
  232. package/dist/billing/v1/generated/validators/rateList.zod.d.ts +11 -0
  233. package/dist/billing/v1/generated/validators/refund.zod.js +3 -3
  234. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
  235. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  236. package/dist/billing/v1/generated/validators/renewRequest.zod.js +2 -2
  237. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  238. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
  239. package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
  240. package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +8 -0
  241. package/dist/billing/v1/generated/validators/spendRow.zod.js +11 -0
  242. package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  243. package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
  244. package/dist/billing/v1/generated/validators/statement.zod.js +2 -2
  245. package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -0
  246. package/dist/billing/v1/generated/validators/statementItem.zod.js +4 -0
  247. package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  248. package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
  249. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +7 -3
  250. package/dist/billing/v1/generated/validators/subscription.zod.js +20 -14
  251. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  252. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  253. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  254. package/dist/billing/v1/generated/validators/terminationPolicy.zod.js +1 -1
  255. package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
  256. package/dist/billing/v1/generated/validators/topUp.zod.js +8 -8
  257. package/dist/billing/v1/generated/validators/topUpCreate.zod.js +4 -4
  258. package/dist/billing/v1/generated/validators/transaction.zod.js +6 -6
  259. package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -7
  260. package/dist/billing/v1/generated/validators/usageType.zod.d.ts +14 -0
  261. package/dist/billing/v1/generated/validators/usageType.zod.js +11 -0
  262. package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -2
  263. package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +2 -2
  264. package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
  265. package/dist/canopy/v1/generated/models.d.ts +375 -779
  266. package/dist/canopy/v1/generated/models.js +12 -44
  267. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  268. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +8 -8
  269. package/dist/canopy/v1/generated/validators/activeResource.zod.js +8 -5
  270. package/dist/canopy/v1/generated/validators/allowance.zod.js +3 -3
  271. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +22 -11
  272. package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -3
  273. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +1 -1
  274. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +5 -5
  275. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  276. package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +39 -0
  277. package/dist/canopy/v1/generated/validators/billingScheme.zod.js +36 -0
  278. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +6 -3
  279. package/dist/canopy/v1/generated/validators/cancellation.zod.js +4 -4
  280. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +3 -3
  281. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  282. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +6 -5
  283. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  284. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  285. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  286. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  287. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  288. package/dist/canopy/v1/generated/validators/contact.zod.js +2 -2
  289. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +0 -1
  290. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  291. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  292. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  293. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +1 -1
  294. package/dist/canopy/v1/generated/validators/creditNote.zod.js +4 -4
  295. package/dist/canopy/v1/generated/validators/currency.zod.js +1 -1
  296. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +23 -12
  297. package/dist/canopy/v1/generated/validators/discount.zod.js +4 -4
  298. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +23 -12
  299. package/dist/canopy/v1/generated/validators/entitlement.zod.js +1 -1
  300. package/dist/canopy/v1/generated/validators/funds.zod.js +4 -4
  301. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -1
  302. package/dist/canopy/v1/generated/validators/invoice.zod.js +8 -8
  303. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  304. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +6 -4
  305. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  306. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  307. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  308. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  309. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +2 -2
  310. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  311. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +3 -3
  312. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +2 -2
  313. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +1 -1
  314. package/dist/canopy/v1/generated/validators/order.zod.d.ts +7 -4
  315. package/dist/canopy/v1/generated/validators/order.zod.js +10 -12
  316. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +7 -3
  317. package/dist/canopy/v1/generated/validators/orderItem.zod.js +16 -14
  318. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  319. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +1 -1
  320. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +7 -4
  321. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  322. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  323. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +1 -1
  324. package/dist/canopy/v1/generated/validators/paidWith.zod.js +1 -1
  325. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  326. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  327. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +4 -4
  328. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  329. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  330. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +1 -1
  331. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  332. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +4 -4
  333. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +5 -8
  334. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +1 -1
  335. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  336. package/dist/canopy/v1/generated/validators/price.zod.d.ts +7 -5
  337. package/dist/canopy/v1/generated/validators/price.zod.js +14 -11
  338. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +7 -5
  339. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +7 -5
  340. package/dist/canopy/v1/generated/validators/priceOption.zod.js +7 -3
  341. package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +39 -0
  342. package/dist/canopy/v1/generated/validators/priceType.zod.js +36 -0
  343. package/dist/canopy/v1/generated/validators/productID.zod.js +1 -1
  344. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +2 -2
  345. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +1 -1
  346. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +6 -3
  347. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +4 -4
  348. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +6 -3
  349. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
  350. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +4 -4
  351. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  352. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +8 -8
  353. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +1 -1
  354. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  355. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  356. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +5 -5
  357. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +1 -1
  358. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +11 -0
  359. package/dist/canopy/v1/generated/validators/rate.zod.js +14 -6
  360. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +11 -0
  361. package/dist/canopy/v1/generated/validators/refund.zod.js +3 -3
  362. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +1 -1
  363. package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
  364. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +2 -2
  365. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  366. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +1 -1
  367. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +2 -2
  368. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +8 -0
  369. package/dist/canopy/v1/generated/validators/spendRow.zod.js +11 -0
  370. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  371. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +1 -1
  372. package/dist/canopy/v1/generated/validators/statement.zod.js +2 -2
  373. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +1 -0
  374. package/dist/canopy/v1/generated/validators/statementItem.zod.js +4 -0
  375. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  376. package/dist/canopy/v1/generated/validators/statementType.zod.js +1 -1
  377. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +7 -3
  378. package/dist/canopy/v1/generated/validators/subscription.zod.js +20 -14
  379. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  380. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  381. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  382. package/dist/canopy/v1/generated/validators/terminationPolicy.zod.js +1 -1
  383. package/dist/canopy/v1/generated/validators/tier.zod.js +1 -1
  384. package/dist/canopy/v1/generated/validators/topUp.zod.js +8 -8
  385. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +4 -4
  386. package/dist/canopy/v1/generated/validators/transaction.zod.js +6 -6
  387. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -7
  388. package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +39 -0
  389. package/dist/canopy/v1/generated/validators/usageType.zod.js +36 -0
  390. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +2 -2
  391. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +2 -2
  392. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +1 -1
  393. package/dist/compute/v1/generated/models.d.ts +4 -4
  394. package/dist/compute/v1/generated/schemas.zod.d.ts +18 -18
  395. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +1 -1
  396. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
  397. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +2 -2
  398. package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
  399. package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
  400. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +1 -1
  401. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
  402. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +2 -2
  403. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +1 -1
  404. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
  405. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +1 -1
  406. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
  407. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +1 -1
  408. package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +1 -1
  409. package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
  410. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +2 -2
  411. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +2 -2
  412. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
  413. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +1 -1
  414. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +3 -3
  415. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +3 -3
  416. package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
  417. package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
  418. package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
  419. package/dist/compute/v1/generated/validators/pricing.zod.d.ts +1 -1
  420. package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +1 -1
  421. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +1 -1
  422. package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +1 -1
  423. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +1 -1
  424. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
  425. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +1 -1
  426. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
  427. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +2 -2
  428. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +2 -2
  429. package/dist/membership/v1/generated/models.d.ts +375 -779
  430. package/dist/membership/v1/generated/models.js +12 -44
  431. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +22 -11
  432. package/dist/membership/v1/generated/validators/accountBalance.zod.js +8 -8
  433. package/dist/membership/v1/generated/validators/activeResource.zod.js +8 -5
  434. package/dist/membership/v1/generated/validators/allowance.zod.js +3 -3
  435. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +22 -11
  436. package/dist/membership/v1/generated/validators/applicability.zod.js +12 -3
  437. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -1
  438. package/dist/membership/v1/generated/validators/billingAccount.zod.js +5 -5
  439. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  440. package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +14 -0
  441. package/dist/membership/v1/generated/validators/billingScheme.zod.js +11 -0
  442. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +6 -3
  443. package/dist/membership/v1/generated/validators/cancellation.zod.js +4 -4
  444. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +3 -3
  445. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +6 -3
  446. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +6 -5
  447. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +6 -3
  448. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +6 -3
  449. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  450. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +6 -3
  451. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +7 -4
  452. package/dist/membership/v1/generated/validators/contact.zod.js +2 -2
  453. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +22 -11
  454. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +22 -11
  455. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +22 -11
  456. package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -1
  457. package/dist/membership/v1/generated/validators/creditNote.zod.js +4 -4
  458. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -1
  459. package/dist/membership/v1/generated/validators/discount.zod.d.ts +23 -12
  460. package/dist/membership/v1/generated/validators/discount.zod.js +4 -4
  461. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +23 -12
  462. package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -1
  463. package/dist/membership/v1/generated/validators/funds.zod.js +4 -4
  464. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -1
  465. package/dist/membership/v1/generated/validators/invoice.zod.js +8 -8
  466. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  467. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +6 -4
  468. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  469. package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +1 -3
  470. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  471. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  472. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +2 -2
  473. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  474. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +3 -3
  475. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +0 -1
  476. package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +2 -2
  477. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -1
  478. package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -4
  479. package/dist/membership/v1/generated/validators/order.zod.js +10 -12
  480. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +7 -3
  481. package/dist/membership/v1/generated/validators/orderItem.zod.js +16 -14
  482. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +7 -3
  483. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -1
  484. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -4
  485. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  486. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -1
  487. package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -1
  488. package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -1
  489. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +6 -6
  490. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +2 -2
  491. package/dist/membership/v1/generated/validators/paymentAction.zod.js +4 -4
  492. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  493. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +2 -4
  494. package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -1
  495. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  496. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +4 -4
  497. package/dist/membership/v1/generated/validators/paymentResult.zod.js +5 -8
  498. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -1
  499. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -1
  500. package/dist/membership/v1/generated/validators/price.zod.d.ts +7 -5
  501. package/dist/membership/v1/generated/validators/price.zod.js +14 -11
  502. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +7 -5
  503. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +7 -5
  504. package/dist/membership/v1/generated/validators/priceOption.zod.js +7 -3
  505. package/dist/membership/v1/generated/validators/priceType.zod.d.ts +14 -0
  506. package/dist/membership/v1/generated/validators/priceType.zod.js +11 -0
  507. package/dist/membership/v1/generated/validators/productID.zod.js +1 -1
  508. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +2 -2
  509. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -1
  510. package/dist/membership/v1/generated/validators/quote.zod.d.ts +6 -3
  511. package/dist/membership/v1/generated/validators/quote.zod.js +4 -4
  512. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  513. package/dist/membership/v1/generated/validators/quoteItem.zod.js +4 -4
  514. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +5 -2
  515. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +8 -8
  516. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -1
  517. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +2 -2
  518. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +5 -2
  519. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +5 -5
  520. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -1
  521. package/dist/membership/v1/generated/validators/rate.zod.d.ts +11 -0
  522. package/dist/membership/v1/generated/validators/rate.zod.js +14 -6
  523. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +11 -0
  524. package/dist/membership/v1/generated/validators/refund.zod.js +3 -3
  525. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -1
  526. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  527. package/dist/membership/v1/generated/validators/renewRequest.zod.js +2 -2
  528. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  529. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -1
  530. package/dist/membership/v1/generated/validators/scheduledChange.zod.js +2 -2
  531. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +8 -0
  532. package/dist/membership/v1/generated/validators/spendRow.zod.js +11 -0
  533. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +8 -0
  534. package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -1
  535. package/dist/membership/v1/generated/validators/statement.zod.js +2 -2
  536. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -0
  537. package/dist/membership/v1/generated/validators/statementItem.zod.js +4 -0
  538. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -0
  539. package/dist/membership/v1/generated/validators/statementType.zod.js +1 -1
  540. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +7 -3
  541. package/dist/membership/v1/generated/validators/subscription.zod.js +20 -14
  542. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +2 -2
  543. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +7 -3
  544. package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  545. package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -1
  546. package/dist/membership/v1/generated/validators/tier.zod.js +1 -1
  547. package/dist/membership/v1/generated/validators/topUp.zod.js +8 -8
  548. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +4 -4
  549. package/dist/membership/v1/generated/validators/transaction.zod.js +6 -6
  550. package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -7
  551. package/dist/membership/v1/generated/validators/usageType.zod.d.ts +14 -0
  552. package/dist/membership/v1/generated/validators/usageType.zod.js +11 -0
  553. package/dist/membership/v1/generated/validators/withdrawal.zod.js +2 -2
  554. package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +2 -2
  555. package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +1 -1
  556. package/dist/routes.d.ts +4 -4
  557. package/dist/routes.js +4 -4
  558. package/package.json +1 -1
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export const InvoiceStatus = zod
10
- .enum(["draft", "open", "paid", "void", "uncollectible"])
11
- .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.");
10
+ .enum(["draft", "open", "paid", "void"])
11
+ .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.");
@@ -16,7 +16,6 @@ export declare const InvoiceSummary: zod.ZodObject<{
16
16
  open: "open";
17
17
  draft: "draft";
18
18
  paid: "paid";
19
- uncollectible: "uncollectible";
20
19
  }>;
21
20
  subtotal: zod.ZodString;
22
21
  discount_amount: zod.ZodString;
@@ -22,8 +22,8 @@ export const InvoiceSummary = zod
22
22
  tax_amount: zod.string(),
23
23
  total: zod.string(),
24
24
  amount_paid: zod.string(),
25
- pre_payment_credit_notes_amount: Money.describe("Issued, non-void credit notes that reduced unpaid receivables. Does not rewrite the original invoice total."),
26
- post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received. This is a return obligation, not evidence of completed refunds."),
25
+ pre_payment_credit_notes_amount: Money.describe("Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged."),
26
+ post_payment_credit_notes_amount: Money.describe("Issued credit notes against payments already received; their refunds may not have completed."),
27
27
  amount_due: zod
28
28
  .string()
29
29
  .regex(invoiceSummaryAmountDueRegExp)
@@ -31,4 +31,4 @@ export const InvoiceSummary = zod
31
31
  amount_refunded: zod.string(),
32
32
  due_at: zod.iso.datetime({ offset: true }).optional(),
33
33
  })
34
- .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.");
34
+ .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.");
@@ -16,7 +16,7 @@ export const MonthlyStatement = zod
16
16
  period_end: zod.iso.datetime({ offset: true }),
17
17
  finalized: zod
18
18
  .boolean()
19
- .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."),
19
+ .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."),
20
20
  finalized_at: zod.iso.datetime({ offset: true }).optional(),
21
21
  statement_count: zod.int().describe("Statements of the period, including the open one."),
22
22
  billed: StatementAmounts,
@@ -27,4 +27,4 @@ export const MonthlyStatement = zod
27
27
  amount_due: Money,
28
28
  amount_refunded: Money,
29
29
  })
30
- .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.");
30
+ .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.");
@@ -12,4 +12,4 @@ export const ObjectIdentity = zod
12
12
  id: zod.uuid(),
13
13
  name: zod.string(),
14
14
  })
15
- .describe("A catalog object inlined for display.");
15
+ .describe("A catalog object, inlined for display.");
@@ -25,7 +25,6 @@ export declare const Order: zod.ZodObject<{
25
25
  open: "open";
26
26
  draft: "draft";
27
27
  paid: "paid";
28
- uncollectible: "uncollectible";
29
28
  }>;
30
29
  subtotal: zod.ZodString;
31
30
  discount_amount: zod.ZodString;
@@ -105,11 +104,15 @@ export declare const Order: zod.ZodObject<{
105
104
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
106
105
  recurring_amount: zod.ZodOptional<zod.ZodString>;
107
106
  setup_amount: zod.ZodOptional<zod.ZodString>;
108
- charge_type: zod.ZodEnum<{
109
- postpaid: "postpaid";
110
- prepaid: "prepaid";
107
+ type: zod.ZodEnum<{
111
108
  one_time: "one_time";
109
+ recurring: "recurring";
112
110
  }>;
111
+ usage_type: zod.ZodEnum<{
112
+ licensed: "licensed";
113
+ metered: "metered";
114
+ }>;
115
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
113
116
  tax_amount: zod.ZodOptional<zod.ZodString>;
114
117
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
115
118
  id: zod.ZodUUID;
@@ -21,7 +21,7 @@ export const Order = zod
21
21
  promotion_code: zod
22
22
  .string()
23
23
  .optional()
24
- .describe("Code text frozen when the coupon was applied. Absent for an account discount."),
24
+ .describe("The promotion code applied. Absent for an account discount."),
25
25
  invoice_id: zod.uuid().describe("The order's invoice, the same as invoice.id."),
26
26
  invoice: InvoiceSummary,
27
27
  paid_with: PaidWith.optional().describe("How the order was paid. Absent until it is paid."),
@@ -31,35 +31,33 @@ export const Order = zod
31
31
  project_id: zod
32
32
  .uuid()
33
33
  .nullish()
34
- .describe("Which project it was bought for. Absent for a purchase made at account level, such\nas a membership."),
34
+ .describe("The project it was bought for. Absent for an account-level purchase, such as a membership."),
35
35
  project: zod
36
36
  .union([NamedIdentity, zod.null()])
37
37
  .optional()
38
- .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."),
38
+ .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."),
39
39
  billing_account_id: zod
40
40
  .int()
41
41
  .optional()
42
- .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."),
42
+ .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`."),
43
43
  currency: zod.string(),
44
44
  type: zod
45
45
  .enum(["new", "renew", "modify"])
46
- .describe("`new` buys, `renew` extends a prepaid subscription, `modify` changes a subscription's configuration or billing terms."),
46
+ .describe("`new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms."),
47
47
  status: OrderStatus,
48
48
  change_effective: zod
49
49
  .enum(["none", "immediate", "period_end"])
50
50
  .optional()
51
- .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."),
51
+ .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."),
52
52
  expires_at: zod.iso
53
53
  .datetime({ offset: true })
54
54
  .nullish()
55
- .describe("Acceptance deadline. Pending orders can expire automatically."),
55
+ .describe("Acceptance deadline; a pending order expires after it."),
56
56
  checkout_confirmed_at: zod.iso
57
57
  .datetime({ offset: true })
58
58
  .nullish()
59
- .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."),
59
+ .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."),
60
60
  created_at: zod.iso.datetime({ offset: true }),
61
- items: zod
62
- .array(OrderItem)
63
- .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."),
61
+ items: zod.array(OrderItem).describe("What was bought."),
64
62
  })
65
- .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.");
63
+ .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.");
@@ -32,11 +32,15 @@ export declare const OrderItem: zod.ZodObject<{
32
32
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
33
33
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
34
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
- charge_type: zod.ZodEnum<{
36
- postpaid: "postpaid";
37
- prepaid: "prepaid";
35
+ type: zod.ZodEnum<{
38
36
  one_time: "one_time";
37
+ recurring: "recurring";
39
38
  }>;
39
+ usage_type: zod.ZodEnum<{
40
+ licensed: "licensed";
41
+ metered: "metered";
42
+ }>;
43
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
40
44
  tax_amount: zod.ZodOptional<zod.ZodString>;
41
45
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
42
46
  id: zod.ZodUUID;
@@ -8,10 +8,12 @@
8
8
  import * as zod from "zod";
9
9
  import { Money } from "./money.zod.js";
10
10
  import { OrderItemStatus } from "./orderItemStatus.zod.js";
11
+ import { PriceType } from "./priceType.zod.js";
11
12
  import { Product } from "./product.zod.js";
12
13
  import { ProductID } from "./productID.zod.js";
13
14
  import { RefundPolicy } from "./refundPolicy.zod.js";
14
15
  import { TerminationPolicy } from "./terminationPolicy.zod.js";
16
+ import { UsageType } from "./usageType.zod.js";
15
17
  export const orderItemPositionMin = 0;
16
18
  export const OrderItem = zod
17
19
  .strictObject({
@@ -28,7 +30,7 @@ export const OrderItem = zod
28
30
  subscription_id: zod
29
31
  .uuid()
30
32
  .optional()
31
- .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."),
33
+ .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."),
32
34
  interval: zod.enum(["none", "day", "month", "year"]),
33
35
  interval_count: zod.int().min(1).optional(),
34
36
  termination_policy: TerminationPolicy.optional(),
@@ -36,16 +38,18 @@ export const OrderItem = zod
36
38
  refund_monthly_amount: zod
37
39
  .string()
38
40
  .nullish()
39
- .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."),
41
+ .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."),
40
42
  refund_hourly_amount: zod
41
43
  .string()
42
44
  .nullish()
43
- .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."),
45
+ .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."),
44
46
  recurring_amount: zod.string().optional(),
45
47
  setup_amount: zod.string().optional(),
46
- charge_type: zod
47
- .enum(["postpaid", "prepaid", "one_time"])
48
- .describe("The payment timing of the selected price."),
48
+ type: PriceType,
49
+ usage_type: UsageType,
50
+ dimensions: zod
51
+ .record(zod.string(), zod.string())
52
+ .describe("The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none."),
49
53
  tax_amount: zod
50
54
  .string()
51
55
  .optional()
@@ -60,23 +64,21 @@ export const OrderItem = zod
60
64
  product_id: ProductID.optional(),
61
65
  product: Product.optional(),
62
66
  plan_id: zod.uuid().describe("Which plan was bought."),
63
- plan_name: zod
64
- .string()
65
- .describe("What it was called when bought. It does not follow later catalogue renames and is\nnot translated."),
67
+ plan_name: zod.string().describe("The name when bought."),
66
68
  quantity: zod.string(),
67
- 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."),
68
- 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."),
69
- 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."),
69
+ 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."),
70
+ 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."),
71
+ 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."),
70
72
  amount: Money.optional().describe("`gross_amount` less `discount_amount`."),
71
73
  currency: zod.string(),
72
74
  period_start: zod.iso
73
75
  .datetime({ offset: true })
74
76
  .nullish()
75
- .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."),
77
+ .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."),
76
78
  period_end: zod.iso
77
79
  .datetime({ offset: true })
78
80
  .nullish()
79
81
  .describe("The end of that service period, exclusive."),
80
82
  status: OrderItemStatus,
81
83
  })
82
- .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.");
84
+ .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.");
@@ -32,11 +32,15 @@ export declare const OrderItemList: zod.ZodObject<{
32
32
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
33
33
  recurring_amount: zod.ZodOptional<zod.ZodString>;
34
34
  setup_amount: zod.ZodOptional<zod.ZodString>;
35
- charge_type: zod.ZodEnum<{
36
- postpaid: "postpaid";
37
- prepaid: "prepaid";
35
+ type: zod.ZodEnum<{
38
36
  one_time: "one_time";
37
+ recurring: "recurring";
39
38
  }>;
39
+ usage_type: zod.ZodEnum<{
40
+ licensed: "licensed";
41
+ metered: "metered";
42
+ }>;
43
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
40
44
  tax_amount: zod.ZodOptional<zod.ZodString>;
41
45
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
42
46
  id: zod.ZodUUID;
@@ -8,4 +8,4 @@
8
8
  import * as zod from "zod";
9
9
  export const OrderItemStatus = zod
10
10
  .enum(["pending", "completed", "failed", "canceled"])
11
- .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.");
11
+ .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.");
@@ -26,7 +26,6 @@ export declare const OrderList: zod.ZodObject<{
26
26
  open: "open";
27
27
  draft: "draft";
28
28
  paid: "paid";
29
- uncollectible: "uncollectible";
30
29
  }>;
31
30
  subtotal: zod.ZodString;
32
31
  discount_amount: zod.ZodString;
@@ -106,11 +105,15 @@ export declare const OrderList: zod.ZodObject<{
106
105
  refund_hourly_amount: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
107
106
  recurring_amount: zod.ZodOptional<zod.ZodString>;
108
107
  setup_amount: zod.ZodOptional<zod.ZodString>;
109
- charge_type: zod.ZodEnum<{
110
- postpaid: "postpaid";
111
- prepaid: "prepaid";
108
+ type: zod.ZodEnum<{
112
109
  one_time: "one_time";
110
+ recurring: "recurring";
113
111
  }>;
112
+ usage_type: zod.ZodEnum<{
113
+ licensed: "licensed";
114
+ metered: "metered";
115
+ }>;
116
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
114
117
  tax_amount: zod.ZodOptional<zod.ZodString>;
115
118
  tax_included_amount: zod.ZodOptional<zod.ZodString>;
116
119
  id: zod.ZodUUID;
@@ -15,4 +15,4 @@ export const OrderRefundQuote = zod
15
15
  credit_amount: Money,
16
16
  currency: zod.string(),
17
17
  })
18
- .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.");
18
+ .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.");
@@ -17,4 +17,4 @@ export const OrderRefundQuoteInput = zod
17
17
  .optional()
18
18
  .describe("Estimate only these items. Omit to estimate the whole order. Every item must belong to the order."),
19
19
  })
20
- .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.");
20
+ .describe("An estimate of the refundable value of an order or selected items; nothing is canceled or refunded.");
@@ -8,4 +8,4 @@
8
8
  import * as zod from "zod";
9
9
  export const OrderStatus = zod
10
10
  .enum(["pending", "accepted", "completed", "partially_completed", "failed", "canceled"])
11
- .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.");
11
+ .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.");
@@ -22,4 +22,4 @@ export const PaidWith = zod
22
22
  brand: zod.string().optional(),
23
23
  last4: zod.string().optional(),
24
24
  })
25
- .describe("How it was paid. Removing the payment method afterwards does not change it; `payment_method_id`\nthen names a removed payment method.");
25
+ .describe("How it was paid. `payment_method_id` still names the payment method after it is removed.");
@@ -20,7 +20,7 @@ export const PayInvoiceRequest = zod
20
20
  .min(1)
21
21
  .max(payInvoiceRequestPaymentGatewayMax)
22
22
  .optional()
23
- .describe("Required to collect an online remainder. An existing attempt keeps its original gateway."),
23
+ .describe("Required to collect an online remainder. An existing attempt keeps its gateway."),
24
24
  method_type: zod
25
25
  .string()
26
26
  .min(1)
@@ -30,24 +30,24 @@ export const PayInvoiceRequest = zod
30
30
  payment_method_id: zod
31
31
  .uuid()
32
32
  .optional()
33
- .describe("Optional saved card owned by this billing account and belonging to the selected gateway. Omit to complete payment interactively."),
33
+ .describe("A saved card of this billing account at the selected gateway. Omit to pay interactively."),
34
34
  use_balance: zod
35
35
  .boolean()
36
36
  .default(payInvoiceRequestUseBalanceDefault)
37
- .describe("Whether to apply the available balance. Credit grants are controlled separately by use_credits."),
37
+ .describe("Whether to apply the balance; credit grants are controlled by use_credits."),
38
38
  use_credits: zod
39
39
  .boolean()
40
40
  .default(payInvoiceRequestUseCreditsDefault)
41
- .describe("Apply eligible, unexpired credit grants before using the balance. This never withdraws grants or converts them into balance."),
41
+ .describe("Apply eligible, unexpired credit grants before the balance. Grants are never converted into balance."),
42
42
  return_url: zod.string().optional(),
43
43
  promotion_code: zod
44
44
  .string()
45
45
  .min(1)
46
46
  .max(payInvoiceRequestPromotionCodeMax)
47
47
  .optional()
48
- .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."),
48
+ .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."),
49
49
  expected_amount: Money.and(zod.string().regex(payInvoiceRequestExpectedAmountTwoRegExp))
50
50
  .optional()
51
- .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."),
51
+ .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."),
52
52
  })
53
53
  .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`.");
@@ -16,6 +16,6 @@ export const PayTogetherRequest = zod
16
16
  order_ids: zod.array(zod.uuid()).max(payTogetherRequestOrderIdsMax).optional(),
17
17
  expected_amount: Money.and(zod.string().regex(payTogetherRequestExpectedAmountTwoRegExp))
18
18
  .optional()
19
- .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."),
19
+ .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."),
20
20
  })
21
- .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.");
21
+ .describe("Name at least one invoice or order. All must belong to one account in its currency.");
@@ -12,13 +12,13 @@ export const PaymentAction = zod
12
12
  provider: zod
13
13
  .string()
14
14
  .optional()
15
- .describe("Identifies the browser adapter for an SDK action, for example stripe."),
15
+ .describe("The browser adapter for the action, for example stripe."),
16
16
  url: zod.url().optional(),
17
- qr_code: zod.string().optional().describe("QR content to render and scan, not an image URL."),
17
+ qr_code: zod.string().optional().describe("QR content to render, not an image URL."),
18
18
  client_secret: zod
19
19
  .string()
20
20
  .optional()
21
- .describe("Short-lived client credential for this payment's browser confirmation."),
21
+ .describe("Short-lived client credential for confirming this payment in the browser."),
22
22
  public_key: zod.string().optional(),
23
23
  })
24
- .describe("The customer's next interaction. The gateway reports the actual payment outcome separately.");
24
+ .describe("The customer's next step; the payment outcome is reported separately.");
@@ -8,4 +8,4 @@
8
8
  import * as zod from "zod";
9
9
  export const PaymentCancellationReason = zod
10
10
  .enum(["abandoned", "requested_by_customer"])
11
- .describe("Why a gateway payment was withdrawn. `abandoned` means the customer did not complete it within the time\nallowed for payment. `requested_by_customer` means the customer canceled it.");
11
+ .describe("Why a gateway payment was withdrawn: `abandoned` when the customer did not complete it in time, `requested_by_customer` when the customer canceled it.");
@@ -9,10 +9,8 @@ import * as zod from "zod";
9
9
  import { PaymentAction } from "./paymentAction.zod.js";
10
10
  export const PaymentMethodSetupResult = zod
11
11
  .strictObject({
12
- setup_id: zod
13
- .string()
14
- .describe("The gateway's identifier for this attempt. Use it to tell a reloaded page apart\nfrom a second attempt."),
12
+ setup_id: zod.string().describe("The gateway's identifier for this attempt."),
15
13
  payment_gateway: zod.string(),
16
14
  action: PaymentAction,
17
15
  })
18
- .describe("What the payment gateway's browser library needs in order to collect a card. There is\nno address to redirect to: the form is rendered in the page, and the card goes straight\nfrom the browser to the gateway.");
16
+ .describe("What the payment gateway's browser library needs to collect a card in the page; the card goes from the browser straight to the gateway.");
@@ -12,4 +12,4 @@ export const PaymentOption = zod
12
12
  payment_gateway: zod.string().describe("The value to send as `payment_gateway`."),
13
13
  methods: zod.array(PaymentOptionMethod),
14
14
  })
15
- .describe("A payment gateway that accepts payment in the account's currency, with the methods it accepts.");
15
+ .describe("A gateway accepting the account's currency, with its payment methods.");
@@ -12,5 +12,5 @@ export const PaymentOptionMethod = zod.strictObject({
12
12
  .describe("The value to send as `method_type`, such as card, wechat_pay or alipay."),
13
13
  reusable: zod
14
14
  .boolean()
15
- .describe("Whether a method of this type can be saved with create-payment-method-setup and charged later\nwithout the customer present. Methods that are not reusable are paid anew each time."),
15
+ .describe("Whether this method type can be saved with create-payment-method-setup and charged later without the customer."),
16
16
  });
@@ -18,13 +18,13 @@ export const PaymentPreview = zod
18
18
  credit_applied: Money.describe("What credit grants would pay. Grants restricted to other purchases pay nothing here."),
19
19
  credit_grants: zod
20
20
  .array(AppliedCredit)
21
- .describe("The credit grants that would pay, in the order they would be used."),
21
+ .describe("The credit grants that would pay, in the order used."),
22
22
  balance_applied: Money.describe("What the balance would pay."),
23
- gateway_amount: Money.describe("What would remain to be paid online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero."),
23
+ gateway_amount: Money.describe("What would remain to pay online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero."),
24
24
  balance_after: Money.describe("The available balance after paying."),
25
25
  invoices: zod
26
26
  .array(PaymentPreviewInvoice)
27
27
  .optional()
28
- .describe("Paying together only. Each invoice, in the order it would be paid."),
28
+ .describe("Paying together only: each invoice, in payment order."),
29
29
  })
30
- .describe("What paying would take, computed as paying computes it. Nothing is charged or reserved.");
30
+ .describe("What paying would take, calculated as paying does. Nothing is charged or reserved.");
@@ -12,28 +12,25 @@ import { PaymentStatus } from "./paymentStatus.zod.js";
12
12
  import { Transaction } from "./transaction.zod.js";
13
13
  export const PaymentResult = zod.strictObject({
14
14
  transactions: zod.array(Transaction),
15
- transaction_id: zod
16
- .uuid()
17
- .optional()
18
- .describe("The gateway transaction, when one is involved. Balance and credit-grant payments are separate transactions."),
15
+ transaction_id: zod.uuid().optional().describe("The gateway transaction, when one is involved."),
19
16
  status: PaymentStatus,
20
17
  amount_paid: Money,
21
- amount_due: Money.describe("What is still outstanding. Zero once the payment succeeds. Unchanged while\n`processing`: nothing is collected until the gateway confirms it."),
18
+ amount_due: Money.describe("What is still outstanding: zero once the payment succeeds, unchanged while `processing`."),
22
19
  currency: zod.string(),
23
20
  credit_applied: Money.optional(),
24
21
  gateway_amount: Money.optional(),
25
22
  payment_gateway: zod.string().optional(),
26
23
  method_type: zod.string().optional(),
27
- balance_applied: Money.optional().describe("The amount already paid from the account's balance toward this invoice. Retrying an online remainder\ndoes not debit it again. A canceled purchase returns funds through its refund process."),
24
+ balance_applied: Money.optional().describe("The amount already paid from balance toward this invoice; retrying the online remainder does not debit it again."),
28
25
  action: PaymentAction.optional(),
29
26
  retriable: zod
30
27
  .boolean()
31
28
  .optional()
32
- .describe("Whether paying again is worth attempting. False for a refusal that will keep\nhappening — a closed account, an amount over a limit — so that a client does not\nretry in a loop."),
29
+ .describe("Whether paying again can succeed. False for a refusal that will repeat, such as a closed account or an amount over a limit."),
33
30
  invoice_id: zod.uuid().nullish(),
34
31
  order_id: zod.uuid().nullish(),
35
32
  failure_reason: zod
36
33
  .string()
37
34
  .optional()
38
- .describe("Why the payment did not go through. Present with `failed`. For a declined gateway payment the\nvalue is the gateway's own code, passed on unchanged: the card issuer's decline code when\nthere is one (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the\ngateway's error code (Stripe's code, such as card_declined, expired_card or\npayment_intent_authentication_failure). Clients map it to their own wording and treat an\nunknown value as a generic decline."),
35
+ .describe("Why the payment failed; present with `failed`. For a declined gateway payment, the gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline."),
39
36
  });
@@ -8,4 +8,4 @@
8
8
  import * as zod from "zod";
9
9
  export const PaymentStatus = zod
10
10
  .enum(["succeeded", "processing", "requires_action", "failed"])
11
- .describe("The current payment outcome.\n\nsucceeded means payment is complete. processing means confirmation is pending; poll the invoice or\norder rather than submitting another payment. requires_action means the customer must complete the\nsupplied action. failed means the attempt did not succeed and failure_reason explains the outcome; a\ndeclined gateway payment is withdrawn at the gateway, and paying again starts a new payment with the\nsame or another method.");
11
+ .describe("`succeeded`: paid. `processing`: confirmation is pending; poll the invoice or order instead of paying again. `requires_action`: the customer must complete the returned action. `failed`: the attempt did not succeed, for the reason in failure_reason; a declined gateway payment is withdrawn, and paying again starts a new payment.");
@@ -18,7 +18,6 @@ export declare const PlacedOrder: zod.ZodObject<{
18
18
  open: "open";
19
19
  draft: "draft";
20
20
  paid: "paid";
21
- uncollectible: "uncollectible";
22
21
  }>;
23
22
  subtotal: zod.ZodString;
24
23
  discount_amount: zod.ZodString;
@@ -44,15 +44,17 @@ export declare const Price: zod.ZodObject<{
44
44
  plan_id: zod.ZodUUID;
45
45
  currency: zod.ZodString;
46
46
  type: zod.ZodEnum<{
47
- postpaid: "postpaid";
48
- prepaid: "prepaid";
49
47
  one_time: "one_time";
48
+ recurring: "recurring";
50
49
  }>;
51
- billing_scheme: zod.ZodEnum<{
50
+ usage_type: zod.ZodEnum<{
51
+ licensed: "licensed";
52
+ metered: "metered";
53
+ }>;
54
+ billing_scheme: zod.ZodOptional<zod.ZodEnum<{
52
55
  per_unit: "per_unit";
53
56
  tiered: "tiered";
54
- rated: "rated";
55
- }>;
57
+ }>>;
56
58
  unit_amount: zod.ZodOptional<zod.ZodString>;
57
59
  tiers_mode: zod.ZodOptional<zod.ZodEnum<{
58
60
  none: "none";