@leaflow/sdk 0.125.1 → 0.126.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 (365) hide show
  1. package/dist/billing/type/order/v1/generated/models.d.ts +13 -3
  2. package/dist/billing/type/order/v1/generated/models.js +5 -0
  3. package/dist/billing/type/order/v1/generated/validators/statement.zod.d.ts +5 -0
  4. package/dist/billing/type/order/v1/generated/validators/statement.zod.js +5 -5
  5. package/dist/billing/type/order/v1/generated/validators/statementList.zod.d.ts +5 -0
  6. package/dist/billing/type/order/v1/generated/validators/statementType.zod.d.ts +15 -0
  7. package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +11 -0
  8. package/dist/billing/v1/generated/functions.d.ts +4 -1
  9. package/dist/billing/v1/generated/functions.js +4 -1
  10. package/dist/billing/v1/generated/models.d.ts +13 -3
  11. package/dist/billing/v1/generated/models.js +5 -0
  12. package/dist/billing/v1/generated/schemas.zod.d.ts +4 -1
  13. package/dist/billing/v1/generated/schemas.zod.js +4 -1
  14. package/dist/billing/v1/generated/validators/statement.zod.d.ts +5 -0
  15. package/dist/billing/v1/generated/validators/statement.zod.js +5 -5
  16. package/dist/billing/v1/generated/validators/statementList.zod.d.ts +5 -0
  17. package/dist/billing/v1/generated/validators/statementType.zod.d.ts +15 -0
  18. package/dist/billing/v1/generated/validators/statementType.zod.js +11 -0
  19. package/dist/canopy/v1/generated/models.d.ts +13 -3
  20. package/dist/canopy/v1/generated/models.js +5 -0
  21. package/dist/canopy/v1/generated/validators/statement.zod.d.ts +5 -0
  22. package/dist/canopy/v1/generated/validators/statement.zod.js +5 -5
  23. package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +5 -0
  24. package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +38 -0
  25. package/dist/canopy/v1/generated/validators/statementType.zod.js +34 -0
  26. package/dist/compute/v1/generated/models.d.ts +13 -3
  27. package/dist/compute/v1/generated/models.js +5 -0
  28. package/dist/compute/v1/generated/validators/statement.zod.d.ts +5 -0
  29. package/dist/compute/v1/generated/validators/statement.zod.js +5 -5
  30. package/dist/compute/v1/generated/validators/statementList.zod.d.ts +5 -0
  31. package/dist/compute/v1/generated/validators/statementType.zod.d.ts +31 -0
  32. package/dist/compute/v1/generated/validators/statementType.zod.js +27 -0
  33. package/dist/membership/v1/generated/functions.d.ts +9 -31
  34. package/dist/membership/v1/generated/functions.js +8 -15
  35. package/dist/membership/v1/generated/models.d.ts +47 -58
  36. package/dist/membership/v1/generated/models.js +5 -0
  37. package/dist/membership/v1/generated/schemas.zod.d.ts +9 -31
  38. package/dist/membership/v1/generated/schemas.zod.js +12 -34
  39. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +1 -16
  40. package/dist/membership/v1/generated/validators/accountBalance.zod.js +1 -16
  41. package/dist/membership/v1/generated/validators/accountIdentity.zod.d.ts +1 -16
  42. package/dist/membership/v1/generated/validators/accountIdentity.zod.js +1 -16
  43. package/dist/membership/v1/generated/validators/activeResource.zod.d.ts +1 -16
  44. package/dist/membership/v1/generated/validators/activeResource.zod.js +1 -16
  45. package/dist/membership/v1/generated/validators/activeResourceList.zod.d.ts +1 -16
  46. package/dist/membership/v1/generated/validators/activeResourceList.zod.js +1 -16
  47. package/dist/membership/v1/generated/validators/allowance.zod.d.ts +1 -16
  48. package/dist/membership/v1/generated/validators/allowance.zod.js +1 -16
  49. package/dist/membership/v1/generated/validators/allowanceBenefit.zod.d.ts +1 -16
  50. package/dist/membership/v1/generated/validators/allowanceBenefit.zod.js +4 -19
  51. package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +1 -16
  52. package/dist/membership/v1/generated/validators/allowanceList.zod.js +1 -16
  53. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +1 -16
  54. package/dist/membership/v1/generated/validators/applicability.zod.js +1 -16
  55. package/dist/membership/v1/generated/validators/applicablePlan.zod.d.ts +1 -16
  56. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -16
  57. package/dist/membership/v1/generated/validators/appliedCredit.zod.d.ts +1 -16
  58. package/dist/membership/v1/generated/validators/appliedCredit.zod.js +1 -16
  59. package/dist/membership/v1/generated/validators/autoRenewSet.zod.d.ts +1 -16
  60. package/dist/membership/v1/generated/validators/autoRenewSet.zod.js +1 -16
  61. package/dist/membership/v1/generated/validators/benefit.zod.d.ts +1 -16
  62. package/dist/membership/v1/generated/validators/benefit.zod.js +2 -17
  63. package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +1 -16
  64. package/dist/membership/v1/generated/validators/billingAccount.zod.js +1 -16
  65. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -16
  66. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.js +1 -16
  67. package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +1 -16
  68. package/dist/membership/v1/generated/validators/billingAccountList.zod.js +1 -16
  69. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -16
  70. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -16
  71. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -16
  72. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -16
  73. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +1 -16
  74. package/dist/membership/v1/generated/validators/cancellation.zod.js +1 -16
  75. package/dist/membership/v1/generated/validators/cancellationCreate.zod.d.ts +1 -16
  76. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +1 -16
  77. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +1 -16
  78. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +1 -16
  79. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +1 -16
  80. package/dist/membership/v1/generated/validators/cancellationList.zod.js +1 -16
  81. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -16
  82. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -16
  83. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -16
  84. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -16
  85. package/dist/membership/v1/generated/validators/checkoutMode.zod.d.ts +1 -16
  86. package/dist/membership/v1/generated/validators/checkoutMode.zod.js +1 -16
  87. package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +1 -16
  88. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +1 -16
  89. package/dist/membership/v1/generated/validators/contact.zod.d.ts +1 -16
  90. package/dist/membership/v1/generated/validators/contact.zod.js +1 -16
  91. package/dist/membership/v1/generated/validators/contactCreate.zod.d.ts +1 -16
  92. package/dist/membership/v1/generated/validators/contactCreate.zod.js +1 -16
  93. package/dist/membership/v1/generated/validators/contactList.zod.d.ts +1 -16
  94. package/dist/membership/v1/generated/validators/contactList.zod.js +1 -16
  95. package/dist/membership/v1/generated/validators/contactUpdate.zod.d.ts +1 -16
  96. package/dist/membership/v1/generated/validators/contactUpdate.zod.js +1 -16
  97. package/dist/membership/v1/generated/validators/creditBenefit.zod.d.ts +1 -16
  98. package/dist/membership/v1/generated/validators/creditBenefit.zod.js +3 -18
  99. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +1 -16
  100. package/dist/membership/v1/generated/validators/creditGrant.zod.js +1 -16
  101. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +1 -16
  102. package/dist/membership/v1/generated/validators/creditGrantList.zod.js +1 -16
  103. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +1 -16
  104. package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -16
  105. package/dist/membership/v1/generated/validators/creditNote.zod.d.ts +1 -16
  106. package/dist/membership/v1/generated/validators/creditNote.zod.js +1 -16
  107. package/dist/membership/v1/generated/validators/creditNoteItem.zod.d.ts +1 -16
  108. package/dist/membership/v1/generated/validators/creditNoteItem.zod.js +1 -16
  109. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -16
  110. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.js +1 -16
  111. package/dist/membership/v1/generated/validators/creditNoteList.zod.d.ts +1 -16
  112. package/dist/membership/v1/generated/validators/creditNoteList.zod.js +1 -16
  113. package/dist/membership/v1/generated/validators/currency.zod.d.ts +1 -16
  114. package/dist/membership/v1/generated/validators/currency.zod.js +1 -16
  115. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.d.ts +1 -16
  116. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -16
  117. package/dist/membership/v1/generated/validators/currencyA200529.zod.d.ts +1 -16
  118. package/dist/membership/v1/generated/validators/currencyA200529.zod.js +1 -16
  119. package/dist/membership/v1/generated/validators/currencyList.zod.d.ts +1 -16
  120. package/dist/membership/v1/generated/validators/currencyList.zod.js +1 -16
  121. package/dist/membership/v1/generated/validators/cursorPagination.zod.d.ts +1 -16
  122. package/dist/membership/v1/generated/validators/cursorPagination.zod.js +1 -16
  123. package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -16
  124. package/dist/membership/v1/generated/validators/discount.zod.js +1 -16
  125. package/dist/membership/v1/generated/validators/discountBenefit.zod.d.ts +1 -16
  126. package/dist/membership/v1/generated/validators/discountBenefit.zod.js +4 -19
  127. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -16
  128. package/dist/membership/v1/generated/validators/discountList.zod.js +1 -16
  129. package/dist/membership/v1/generated/validators/entitlement.zod.d.ts +1 -16
  130. package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -16
  131. package/dist/membership/v1/generated/validators/entitlementList.zod.d.ts +1 -16
  132. package/dist/membership/v1/generated/validators/entitlementList.zod.js +1 -16
  133. package/dist/membership/v1/generated/validators/error.zod.d.ts +1 -16
  134. package/dist/membership/v1/generated/validators/error.zod.js +1 -16
  135. package/dist/membership/v1/generated/validators/errorA200529.zod.d.ts +1 -16
  136. package/dist/membership/v1/generated/validators/errorA200529.zod.js +1 -16
  137. package/dist/membership/v1/generated/validators/featureBenefit.zod.d.ts +1 -16
  138. package/dist/membership/v1/generated/validators/featureBenefit.zod.js +2 -17
  139. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -16
  140. package/dist/membership/v1/generated/validators/featureGrant.zod.js +1 -16
  141. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -16
  142. package/dist/membership/v1/generated/validators/featureGrantList.zod.js +1 -16
  143. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -16
  144. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.js +1 -16
  145. package/dist/membership/v1/generated/validators/getPlanParams.zod.d.ts +1 -16
  146. package/dist/membership/v1/generated/validators/getPlanParams.zod.js +1 -16
  147. package/dist/membership/v1/generated/validators/grant.zod.d.ts +1 -16
  148. package/dist/membership/v1/generated/validators/grant.zod.js +3 -20
  149. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +1 -16
  150. package/dist/membership/v1/generated/validators/invoice.zod.js +1 -16
  151. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -16
  152. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +1 -16
  153. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -16
  154. package/dist/membership/v1/generated/validators/invoiceItemList.zod.js +1 -16
  155. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +1 -16
  156. package/dist/membership/v1/generated/validators/invoiceList.zod.js +1 -16
  157. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +1 -16
  158. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +1 -16
  159. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +1 -16
  160. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +1 -16
  161. package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.d.ts +1 -16
  162. package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.js +1 -16
  163. package/dist/membership/v1/generated/validators/listMembershipsParams.zod.d.ts +1 -16
  164. package/dist/membership/v1/generated/validators/listMembershipsParams.zod.js +1 -16
  165. package/dist/membership/v1/generated/validators/listPlansParams.zod.d.ts +1 -16
  166. package/dist/membership/v1/generated/validators/listPlansParams.zod.js +1 -16
  167. package/dist/membership/v1/generated/validators/membership.zod.d.ts +1 -16
  168. package/dist/membership/v1/generated/validators/membership.zod.js +6 -23
  169. package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +1 -16
  170. package/dist/membership/v1/generated/validators/membershipCreate.zod.js +2 -17
  171. package/dist/membership/v1/generated/validators/membershipDowngrade.zod.d.ts +1 -16
  172. package/dist/membership/v1/generated/validators/membershipDowngrade.zod.js +2 -17
  173. package/dist/membership/v1/generated/validators/membershipList.zod.d.ts +1 -16
  174. package/dist/membership/v1/generated/validators/membershipList.zod.js +1 -16
  175. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +1 -16
  176. package/dist/membership/v1/generated/validators/membershipPurchase.zod.js +2 -17
  177. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +1 -16
  178. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.js +2 -17
  179. package/dist/membership/v1/generated/validators/money.zod.d.ts +1 -16
  180. package/dist/membership/v1/generated/validators/money.zod.js +1 -16
  181. package/dist/membership/v1/generated/validators/namedIdentity.zod.d.ts +1 -16
  182. package/dist/membership/v1/generated/validators/namedIdentity.zod.js +1 -16
  183. package/dist/membership/v1/generated/validators/objectIdentity.zod.d.ts +1 -16
  184. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -16
  185. package/dist/membership/v1/generated/validators/offsetPagination.zod.d.ts +1 -16
  186. package/dist/membership/v1/generated/validators/offsetPagination.zod.js +1 -16
  187. package/dist/membership/v1/generated/validators/order.zod.d.ts +1 -16
  188. package/dist/membership/v1/generated/validators/order.zod.js +1 -16
  189. package/dist/membership/v1/generated/validators/orderCancel.zod.d.ts +1 -16
  190. package/dist/membership/v1/generated/validators/orderCancel.zod.js +1 -16
  191. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -16
  192. package/dist/membership/v1/generated/validators/orderItem.zod.js +1 -16
  193. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -16
  194. package/dist/membership/v1/generated/validators/orderItemList.zod.js +1 -16
  195. package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +1 -16
  196. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -16
  197. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +1 -16
  198. package/dist/membership/v1/generated/validators/orderList.zod.js +1 -16
  199. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.d.ts +1 -16
  200. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -16
  201. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +1 -16
  202. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -16
  203. package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +1 -16
  204. package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -16
  205. package/dist/membership/v1/generated/validators/paidWith.zod.d.ts +1 -16
  206. package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -16
  207. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -16
  208. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +1 -16
  209. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -16
  210. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +1 -16
  211. package/dist/membership/v1/generated/validators/paymentAction.zod.d.ts +1 -16
  212. package/dist/membership/v1/generated/validators/paymentAction.zod.js +1 -16
  213. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -16
  214. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -16
  215. package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +1 -16
  216. package/dist/membership/v1/generated/validators/paymentMethod.zod.js +1 -16
  217. package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +1 -16
  218. package/dist/membership/v1/generated/validators/paymentMethodList.zod.js +1 -16
  219. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -16
  220. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.js +1 -16
  221. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -16
  222. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -16
  223. package/dist/membership/v1/generated/validators/paymentOption.zod.d.ts +1 -16
  224. package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -16
  225. package/dist/membership/v1/generated/validators/paymentOptionList.zod.d.ts +1 -16
  226. package/dist/membership/v1/generated/validators/paymentOptionList.zod.js +1 -16
  227. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -16
  228. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -16
  229. package/dist/membership/v1/generated/validators/paymentPreview.zod.d.ts +1 -16
  230. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +1 -16
  231. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -16
  232. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -16
  233. package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +1 -16
  234. package/dist/membership/v1/generated/validators/paymentResult.zod.js +1 -16
  235. package/dist/membership/v1/generated/validators/paymentStatus.zod.d.ts +1 -16
  236. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -16
  237. package/dist/membership/v1/generated/validators/period.zod.d.ts +1 -16
  238. package/dist/membership/v1/generated/validators/period.zod.js +2 -17
  239. package/dist/membership/v1/generated/validators/periodList.zod.d.ts +1 -16
  240. package/dist/membership/v1/generated/validators/periodList.zod.js +1 -16
  241. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +1 -16
  242. package/dist/membership/v1/generated/validators/placedOrder.zod.js +1 -16
  243. package/dist/membership/v1/generated/validators/plan.zod.d.ts +1 -16
  244. package/dist/membership/v1/generated/validators/plan.zod.js +2 -17
  245. package/dist/membership/v1/generated/validators/planA200529.zod.d.ts +1 -16
  246. package/dist/membership/v1/generated/validators/planA200529.zod.js +1 -16
  247. package/dist/membership/v1/generated/validators/planC836db9.zod.d.ts +1 -16
  248. package/dist/membership/v1/generated/validators/planC836db9.zod.js +1 -16
  249. package/dist/membership/v1/generated/validators/planFeature.zod.d.ts +1 -16
  250. package/dist/membership/v1/generated/validators/planFeature.zod.js +1 -16
  251. package/dist/membership/v1/generated/validators/planList.zod.d.ts +1 -16
  252. package/dist/membership/v1/generated/validators/planList.zod.js +1 -16
  253. package/dist/membership/v1/generated/validators/planListA200529.zod.d.ts +1 -16
  254. package/dist/membership/v1/generated/validators/planListA200529.zod.js +1 -16
  255. package/dist/membership/v1/generated/validators/planListC836db9.zod.d.ts +1 -16
  256. package/dist/membership/v1/generated/validators/planListC836db9.zod.js +1 -16
  257. package/dist/membership/v1/generated/validators/planPrice.zod.d.ts +1 -16
  258. package/dist/membership/v1/generated/validators/planPrice.zod.js +1 -16
  259. package/dist/membership/v1/generated/validators/planSummary.zod.d.ts +1 -16
  260. package/dist/membership/v1/generated/validators/planSummary.zod.js +2 -17
  261. package/dist/membership/v1/generated/validators/price.zod.d.ts +1 -16
  262. package/dist/membership/v1/generated/validators/price.zod.js +1 -16
  263. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +1 -16
  264. package/dist/membership/v1/generated/validators/priceList.zod.js +1 -16
  265. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +1 -16
  266. package/dist/membership/v1/generated/validators/priceOption.zod.js +1 -16
  267. package/dist/membership/v1/generated/validators/product.zod.d.ts +1 -16
  268. package/dist/membership/v1/generated/validators/product.zod.js +1 -16
  269. package/dist/membership/v1/generated/validators/productID.zod.d.ts +1 -16
  270. package/dist/membership/v1/generated/validators/productID.zod.js +1 -16
  271. package/dist/membership/v1/generated/validators/productIdentity.zod.d.ts +1 -16
  272. package/dist/membership/v1/generated/validators/productIdentity.zod.js +2 -17
  273. package/dist/membership/v1/generated/validators/productList.zod.d.ts +1 -16
  274. package/dist/membership/v1/generated/validators/productList.zod.js +1 -16
  275. package/dist/membership/v1/generated/validators/projectAssignment.zod.d.ts +1 -16
  276. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +1 -16
  277. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -16
  278. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.js +1 -16
  279. package/dist/membership/v1/generated/validators/purchaseOperation.zod.d.ts +1 -16
  280. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -16
  281. package/dist/membership/v1/generated/validators/quote.zod.d.ts +1 -16
  282. package/dist/membership/v1/generated/validators/quote.zod.js +1 -16
  283. package/dist/membership/v1/generated/validators/quoteCancellation.zod.d.ts +1 -16
  284. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +1 -16
  285. package/dist/membership/v1/generated/validators/quoteItem.zod.d.ts +1 -16
  286. package/dist/membership/v1/generated/validators/quoteItem.zod.js +1 -16
  287. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -16
  288. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +1 -16
  289. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -16
  290. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -16
  291. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -16
  292. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +1 -16
  293. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +1 -16
  294. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +1 -16
  295. package/dist/membership/v1/generated/validators/quotedDiscount.zod.d.ts +1 -16
  296. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -16
  297. package/dist/membership/v1/generated/validators/rate.zod.d.ts +1 -16
  298. package/dist/membership/v1/generated/validators/rate.zod.js +1 -16
  299. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +1 -16
  300. package/dist/membership/v1/generated/validators/rateList.zod.js +1 -16
  301. package/dist/membership/v1/generated/validators/refund.zod.d.ts +1 -16
  302. package/dist/membership/v1/generated/validators/refund.zod.js +1 -16
  303. package/dist/membership/v1/generated/validators/refundList.zod.d.ts +1 -16
  304. package/dist/membership/v1/generated/validators/refundList.zod.js +1 -16
  305. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -16
  306. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -16
  307. package/dist/membership/v1/generated/validators/refundReason.zod.d.ts +1 -16
  308. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -16
  309. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -16
  310. package/dist/membership/v1/generated/validators/renewRequest.zod.js +1 -16
  311. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -16
  312. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +1 -16
  313. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +1 -16
  314. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -16
  315. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +1 -16
  316. package/dist/membership/v1/generated/validators/renewalPriceList.zod.js +1 -16
  317. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -16
  318. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -16
  319. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +1 -16
  320. package/dist/membership/v1/generated/validators/spendRow.zod.js +1 -16
  321. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +1 -16
  322. package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -16
  323. package/dist/membership/v1/generated/validators/statement.zod.d.ts +6 -16
  324. package/dist/membership/v1/generated/validators/statement.zod.js +6 -21
  325. package/dist/membership/v1/generated/validators/statementAmounts.zod.d.ts +1 -16
  326. package/dist/membership/v1/generated/validators/statementAmounts.zod.js +1 -16
  327. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -16
  328. package/dist/membership/v1/generated/validators/statementItem.zod.js +1 -16
  329. package/dist/membership/v1/generated/validators/statementList.zod.d.ts +6 -16
  330. package/dist/membership/v1/generated/validators/statementList.zod.js +1 -16
  331. package/dist/membership/v1/generated/validators/statementStatus.zod.d.ts +1 -16
  332. package/dist/membership/v1/generated/validators/statementStatus.zod.js +1 -16
  333. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -16
  334. package/dist/membership/v1/generated/validators/statementSummary.zod.js +1 -16
  335. package/dist/membership/v1/generated/validators/statementType.zod.d.ts +15 -0
  336. package/dist/membership/v1/generated/validators/statementType.zod.js +11 -0
  337. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -16
  338. package/dist/membership/v1/generated/validators/subscription.zod.js +1 -16
  339. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -16
  340. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +1 -16
  341. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -16
  342. package/dist/membership/v1/generated/validators/subscriptionList.zod.js +1 -16
  343. package/dist/membership/v1/generated/validators/taxItem.zod.d.ts +1 -16
  344. package/dist/membership/v1/generated/validators/taxItem.zod.js +1 -16
  345. package/dist/membership/v1/generated/validators/terminationPolicy.zod.d.ts +1 -16
  346. package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -16
  347. package/dist/membership/v1/generated/validators/tier.zod.d.ts +1 -16
  348. package/dist/membership/v1/generated/validators/tier.zod.js +1 -16
  349. package/dist/membership/v1/generated/validators/topUp.zod.d.ts +1 -16
  350. package/dist/membership/v1/generated/validators/topUp.zod.js +1 -16
  351. package/dist/membership/v1/generated/validators/topUpCreate.zod.d.ts +1 -16
  352. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +1 -16
  353. package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +1 -16
  354. package/dist/membership/v1/generated/validators/topUpList.zod.js +1 -16
  355. package/dist/membership/v1/generated/validators/transaction.zod.d.ts +1 -16
  356. package/dist/membership/v1/generated/validators/transaction.zod.js +1 -16
  357. package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +1 -16
  358. package/dist/membership/v1/generated/validators/transactionList.zod.js +1 -16
  359. package/dist/membership/v1/generated/validators/transactionType.zod.d.ts +1 -16
  360. package/dist/membership/v1/generated/validators/transactionType.zod.js +1 -16
  361. package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +1 -16
  362. package/dist/membership/v1/generated/validators/usageCharge.zod.js +1 -16
  363. package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -16
  364. package/dist/membership/v1/generated/validators/usageChargeList.zod.js +1 -16
  365. package/package.json +1 -1
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -29,7 +14,7 @@ export const Membership = zod.strictObject({
29
14
  plan: PlanSummary,
30
15
  status: zod
31
16
  .enum(["pending", "active", "ended"])
32
- .describe("pending until Billing reports the first order ready; active while paid; ended afterwards."),
17
+ .describe("Pending until delivery is confirmed; active afterwards; ended when terminated."),
33
18
  ended_reason: zod
34
19
  .union([
35
20
  zod.literal("canceled"),
@@ -39,17 +24,15 @@ export const Membership = zod.strictObject({
39
24
  zod.literal(null),
40
25
  ])
41
26
  .nullable()
42
- .describe("canceled: the subscription was canceled and the paid period ended.\nreclaimed: Billing reclaimed the subscription after non-payment.\nrevoked: an operator ended the membership.\nabandoned: the first order was canceled or expired before payment."),
27
+ .describe("Cancellation, reclamation, operator revocation, or an unfulfilled first order."),
43
28
  subscription_id: zod
44
29
  .uuid()
45
30
  .nullable()
46
- .describe("The Billing subscription. Cancel it or change auto-renewal in Billing. Null until Billing reports the first order ready."),
31
+ .describe("Billing subscription ID; null until activation."),
47
32
  current_period: zod
48
33
  .union([Period, zod.null()])
49
- .describe("The period in effect now. Null when the membership is pending or ended."),
50
- scheduled_plan: zod
51
- .union([PlanSummary, zod.null()])
52
- .describe("The plan a scheduled downgrade moves to at the end of the paid period."),
34
+ .describe("Current fulfilled period; null while pending or ended."),
35
+ scheduled_plan: zod.union([PlanSummary, zod.null()]).describe("The scheduled downgrade target."),
53
36
  created_at: zod.iso.datetime({ offset: true }),
54
37
  ended_at: zod.iso.datetime({ offset: true }).nullable(),
55
38
  });
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -27,6 +12,6 @@ export const MembershipCreate = zod.strictObject({
27
12
  plan_id: zod.uuid(),
28
13
  price_id: zod
29
14
  .uuid()
30
- .describe("One of the plan's prices in the account's currency. It sets the billing interval."),
15
+ .describe("A tier price matching the account currency and chosen billing interval."),
31
16
  checkout: CheckoutOptions.optional(),
32
17
  });
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,27 +2,12 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
24
9
  export const MembershipDowngrade = zod.strictObject({
25
10
  plan_id: zod
26
11
  .uuid()
27
- .describe("A plan ranked below the current one, priced for the membership's billing interval in the account's currency."),
12
+ .describe("A lower-ranked tier supporting the account currency and billing interval."),
28
13
  });
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -28,4 +13,4 @@ export const MembershipPurchase = zod
28
13
  membership: Membership,
29
14
  order: PlacedOrder,
30
15
  })
31
- .describe("The membership and the Billing order placed for it.");
16
+ .describe("The membership and its Billing purchase order.");
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,27 +2,12 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
24
9
  import { CheckoutOptions } from "./checkoutOptions.zod.js";
25
10
  export const MembershipUpgrade = zod.strictObject({
26
- plan_id: zod.uuid().describe("A plan ranked above the current one."),
11
+ plan_id: zod.uuid().describe("A higher-ranked target tier."),
27
12
  checkout: CheckoutOptions.optional(),
28
13
  });
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";
@@ -2,22 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Membership API
5
- * Membership plans and the memberships held by billing accounts.
6
- *
7
- * A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
8
- *
9
- * ## Authentication
10
- *
11
- * Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
12
- *
13
- * ## Conventions
14
- *
15
- * - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
16
- * - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
17
- * - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
18
- * - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
19
- * - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
20
- * - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
5
+ * Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
21
6
  * OpenAPI spec version: 1.0.0
22
7
  */
23
8
  import * as zod from "zod";