@leaflow/sdk 0.0.0-dev.379.g796e6e7 → 0.0.0-dev.383.gb69023e

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 (438) hide show
  1. package/dist/billing/v1/generated/functions.d.ts +61 -41
  2. package/dist/billing/v1/generated/functions.js +60 -40
  3. package/dist/billing/v1/generated/models.d.ts +31 -31
  4. package/dist/billing/v1/generated/schemas.zod.d.ts +56 -37
  5. package/dist/billing/v1/generated/schemas.zod.js +83 -64
  6. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
  7. package/dist/billing/v1/generated/validators/accountBalance.zod.js +1 -1
  8. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +1 -1
  9. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +1 -1
  10. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +1 -1
  11. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +1 -1
  12. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +1 -1
  13. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +1 -1
  14. package/dist/billing/v1/generated/validators/accountIdentity.zod.d.ts +1 -1
  15. package/dist/billing/v1/generated/validators/accountIdentity.zod.js +1 -1
  16. package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -1
  17. package/dist/billing/v1/generated/validators/activeResource.zod.js +1 -1
  18. package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -1
  19. package/dist/billing/v1/generated/validators/activeResourceList.zod.js +1 -1
  20. package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
  21. package/dist/billing/v1/generated/validators/allowance.zod.js +1 -1
  22. package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
  23. package/dist/billing/v1/generated/validators/allowanceList.zod.js +1 -1
  24. package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
  25. package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
  26. package/dist/billing/v1/generated/validators/applicablePlan.zod.d.ts +1 -1
  27. package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
  28. package/dist/billing/v1/generated/validators/appliedCredit.zod.d.ts +1 -1
  29. package/dist/billing/v1/generated/validators/appliedCredit.zod.js +1 -1
  30. package/dist/billing/v1/generated/validators/autoRenewSet.zod.d.ts +1 -1
  31. package/dist/billing/v1/generated/validators/autoRenewSet.zod.js +1 -1
  32. package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -1
  33. package/dist/billing/v1/generated/validators/billingAccount.zod.js +1 -1
  34. package/dist/billing/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -1
  35. package/dist/billing/v1/generated/validators/billingAccountCreate.zod.js +1 -1
  36. package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -1
  37. package/dist/billing/v1/generated/validators/billingAccountList.zod.js +1 -1
  38. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -1
  39. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  40. package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +1 -1
  41. package/dist/billing/v1/generated/validators/billingScheme.zod.js +1 -1
  42. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -1
  43. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -1
  44. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
  45. package/dist/billing/v1/generated/validators/cancellation.zod.js +1 -1
  46. package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +1 -1
  47. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +1 -1
  48. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  49. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +1 -1
  50. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -1
  51. package/dist/billing/v1/generated/validators/cancellationList.zod.js +1 -1
  52. package/dist/billing/v1/generated/validators/cancellationPolicy.zod.d.ts +1 -1
  53. package/dist/billing/v1/generated/validators/cancellationPolicy.zod.js +1 -1
  54. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +1 -1
  55. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +1 -1
  56. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
  57. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
  58. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -1
  59. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -1
  60. package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
  61. package/dist/billing/v1/generated/validators/checkoutMode.zod.js +1 -1
  62. package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
  63. package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
  64. package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +1 -1
  65. package/dist/billing/v1/generated/validators/checkoutSession.zod.js +1 -1
  66. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +1 -1
  67. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +1 -1
  68. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +1 -1
  69. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +1 -1
  70. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +1 -1
  71. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +1 -1
  72. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +1 -1
  73. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +1 -1
  74. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +1 -1
  75. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +1 -1
  76. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +1 -1
  77. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +1 -1
  78. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +1 -1
  79. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +1 -1
  80. package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
  81. package/dist/billing/v1/generated/validators/contact.zod.js +1 -1
  82. package/dist/billing/v1/generated/validators/contactCreate.zod.d.ts +1 -1
  83. package/dist/billing/v1/generated/validators/contactCreate.zod.js +1 -1
  84. package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
  85. package/dist/billing/v1/generated/validators/contactList.zod.js +1 -1
  86. package/dist/billing/v1/generated/validators/contactUpdate.zod.d.ts +1 -1
  87. package/dist/billing/v1/generated/validators/contactUpdate.zod.js +1 -1
  88. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  89. package/dist/billing/v1/generated/validators/creditGrant.zod.js +1 -1
  90. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  91. package/dist/billing/v1/generated/validators/creditGrantList.zod.js +1 -1
  92. package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
  93. package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
  94. package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +1 -1
  95. package/dist/billing/v1/generated/validators/creditNote.zod.js +1 -1
  96. package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +1 -1
  97. package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +1 -1
  98. package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -1
  99. package/dist/billing/v1/generated/validators/creditNoteItemList.zod.js +1 -1
  100. package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +1 -1
  101. package/dist/billing/v1/generated/validators/creditNoteList.zod.js +1 -1
  102. package/dist/billing/v1/generated/validators/currency.zod.d.ts +1 -1
  103. package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
  104. package/dist/billing/v1/generated/validators/currencyList.zod.d.ts +1 -1
  105. package/dist/billing/v1/generated/validators/currencyList.zod.js +1 -1
  106. package/dist/billing/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
  107. package/dist/billing/v1/generated/validators/cursorPagination.zod.js +1 -1
  108. package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
  109. package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
  110. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
  111. package/dist/billing/v1/generated/validators/discountList.zod.js +1 -1
  112. package/dist/billing/v1/generated/validators/entitlement.zod.d.ts +1 -1
  113. package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
  114. package/dist/billing/v1/generated/validators/entitlementList.zod.d.ts +1 -1
  115. package/dist/billing/v1/generated/validators/entitlementList.zod.js +1 -1
  116. package/dist/billing/v1/generated/validators/error.zod.d.ts +1 -1
  117. package/dist/billing/v1/generated/validators/error.zod.js +1 -1
  118. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  119. package/dist/billing/v1/generated/validators/featureGrant.zod.js +1 -1
  120. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  121. package/dist/billing/v1/generated/validators/featureGrantList.zod.js +1 -1
  122. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  123. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +1 -1
  124. package/dist/billing/v1/generated/validators/funds.zod.d.ts +1 -1
  125. package/dist/billing/v1/generated/validators/funds.zod.js +1 -1
  126. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +1 -1
  127. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +1 -1
  128. package/dist/billing/v1/generated/validators/getPlanHeaders.zod.d.ts +1 -1
  129. package/dist/billing/v1/generated/validators/getPlanHeaders.zod.js +1 -1
  130. package/dist/billing/v1/generated/validators/getPriceHeaders.zod.d.ts +1 -1
  131. package/dist/billing/v1/generated/validators/getPriceHeaders.zod.js +1 -1
  132. package/dist/billing/v1/generated/validators/getProductHeaders.zod.d.ts +1 -1
  133. package/dist/billing/v1/generated/validators/getProductHeaders.zod.js +1 -1
  134. package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.d.ts +1 -1
  135. package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.js +1 -1
  136. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
  137. package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
  138. package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -1
  139. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
  140. package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -1
  141. package/dist/billing/v1/generated/validators/invoiceItemList.zod.js +1 -1
  142. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.d.ts +1 -1
  143. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
  144. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  145. package/dist/billing/v1/generated/validators/invoiceList.zod.js +1 -1
  146. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
  147. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +1 -1
  148. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
  149. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
  150. package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +1 -1
  151. package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +1 -1
  152. package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +1 -1
  153. package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +1 -1
  154. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
  155. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +1 -1
  156. package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.d.ts +1 -1
  157. package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.js +1 -1
  158. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
  159. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -1
  160. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +1 -1
  161. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +1 -1
  162. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +1 -1
  163. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +1 -1
  164. package/dist/billing/v1/generated/validators/listContactsParams.zod.d.ts +1 -1
  165. package/dist/billing/v1/generated/validators/listContactsParams.zod.js +1 -1
  166. package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
  167. package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +1 -1
  168. package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.d.ts +1 -1
  169. package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.js +1 -1
  170. package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +1 -1
  171. package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +1 -1
  172. package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.d.ts +1 -1
  173. package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.js +1 -1
  174. package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.d.ts +1 -1
  175. package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +1 -1
  176. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
  177. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +1 -1
  178. package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.d.ts +1 -1
  179. package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.js +1 -1
  180. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +1 -1
  181. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +1 -1
  182. package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +1 -1
  183. package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +1 -1
  184. package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.d.ts +1 -1
  185. package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.js +1 -1
  186. package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
  187. package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +1 -1
  188. package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +1 -1
  189. package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +1 -1
  190. package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.d.ts +1 -1
  191. package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.js +1 -1
  192. package/dist/billing/v1/generated/validators/listPlansHeaders.zod.d.ts +1 -1
  193. package/dist/billing/v1/generated/validators/listPlansHeaders.zod.js +1 -1
  194. package/dist/billing/v1/generated/validators/listPlansParams.zod.d.ts +1 -1
  195. package/dist/billing/v1/generated/validators/listPlansParams.zod.js +1 -1
  196. package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.d.ts +1 -1
  197. package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.js +1 -1
  198. package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.d.ts +1 -1
  199. package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.js +1 -1
  200. package/dist/billing/v1/generated/validators/listPricesHeaders.zod.d.ts +1 -1
  201. package/dist/billing/v1/generated/validators/listPricesHeaders.zod.js +1 -1
  202. package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +1 -1
  203. package/dist/billing/v1/generated/validators/listPricesParams.zod.js +1 -1
  204. package/dist/billing/v1/generated/validators/listProductsHeaders.zod.d.ts +1 -1
  205. package/dist/billing/v1/generated/validators/listProductsHeaders.zod.js +1 -1
  206. package/dist/billing/v1/generated/validators/listProductsParams.zod.d.ts +1 -1
  207. package/dist/billing/v1/generated/validators/listProductsParams.zod.js +1 -1
  208. package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.d.ts +1 -1
  209. package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.js +1 -1
  210. package/dist/billing/v1/generated/validators/listRatesHeaders.zod.d.ts +1 -1
  211. package/dist/billing/v1/generated/validators/listRatesHeaders.zod.js +1 -1
  212. package/dist/billing/v1/generated/validators/listRatesParams.zod.d.ts +1 -1
  213. package/dist/billing/v1/generated/validators/listRatesParams.zod.js +1 -1
  214. package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +1 -1
  215. package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +1 -1
  216. package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.d.ts +1 -1
  217. package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.js +1 -1
  218. package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -1
  219. package/dist/billing/v1/generated/validators/listSpendParams.zod.js +1 -1
  220. package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +1 -1
  221. package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +1 -1
  222. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +1 -1
  223. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +1 -1
  224. package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +1 -1
  225. package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +1 -1
  226. package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +1 -1
  227. package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +1 -1
  228. package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.d.ts +1 -1
  229. package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +1 -1
  230. package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +1 -1
  231. package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +1 -1
  232. package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +1 -1
  233. package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +1 -1
  234. package/dist/billing/v1/generated/validators/money.zod.d.ts +1 -1
  235. package/dist/billing/v1/generated/validators/money.zod.js +1 -1
  236. package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +1 -1
  237. package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +1 -1
  238. package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +1 -1
  239. package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +1 -1
  240. package/dist/billing/v1/generated/validators/namedIdentity.zod.d.ts +1 -1
  241. package/dist/billing/v1/generated/validators/namedIdentity.zod.js +1 -1
  242. package/dist/billing/v1/generated/validators/objectIdentity.zod.d.ts +1 -1
  243. package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
  244. package/dist/billing/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
  245. package/dist/billing/v1/generated/validators/offsetPagination.zod.js +1 -1
  246. package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -1
  247. package/dist/billing/v1/generated/validators/order.zod.js +1 -1
  248. package/dist/billing/v1/generated/validators/orderCancel.zod.d.ts +1 -1
  249. package/dist/billing/v1/generated/validators/orderCancel.zod.js +1 -1
  250. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
  251. package/dist/billing/v1/generated/validators/orderItem.zod.js +1 -1
  252. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
  253. package/dist/billing/v1/generated/validators/orderItemList.zod.js +1 -1
  254. package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
  255. package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
  256. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -1
  257. package/dist/billing/v1/generated/validators/orderList.zod.js +1 -1
  258. package/dist/billing/v1/generated/validators/orderRefundPreview.zod.d.ts +1 -1
  259. package/dist/billing/v1/generated/validators/orderRefundPreview.zod.js +1 -1
  260. package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
  261. package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
  262. package/dist/billing/v1/generated/validators/paidWith.zod.d.ts +1 -1
  263. package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
  264. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -1
  265. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +1 -1
  266. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -1
  267. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +1 -1
  268. package/dist/billing/v1/generated/validators/paymentAction.zod.d.ts +1 -1
  269. package/dist/billing/v1/generated/validators/paymentAction.zod.js +1 -1
  270. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -1
  271. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  272. package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
  273. package/dist/billing/v1/generated/validators/paymentMethod.zod.js +1 -1
  274. package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
  275. package/dist/billing/v1/generated/validators/paymentMethodList.zod.js +1 -1
  276. package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -1
  277. package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.js +1 -1
  278. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -1
  279. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -1
  280. package/dist/billing/v1/generated/validators/paymentOption.zod.d.ts +1 -1
  281. package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
  282. package/dist/billing/v1/generated/validators/paymentOptionList.zod.d.ts +1 -1
  283. package/dist/billing/v1/generated/validators/paymentOptionList.zod.js +1 -1
  284. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -1
  285. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  286. package/dist/billing/v1/generated/validators/paymentPreview.zod.d.ts +1 -1
  287. package/dist/billing/v1/generated/validators/paymentPreview.zod.js +1 -1
  288. package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -1
  289. package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -1
  290. package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
  291. package/dist/billing/v1/generated/validators/paymentResult.zod.js +1 -1
  292. package/dist/billing/v1/generated/validators/paymentStatus.zod.d.ts +1 -1
  293. package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
  294. package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -1
  295. package/dist/billing/v1/generated/validators/plan.zod.js +1 -1
  296. package/dist/billing/v1/generated/validators/planFeature.zod.d.ts +1 -1
  297. package/dist/billing/v1/generated/validators/planFeature.zod.js +1 -1
  298. package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -1
  299. package/dist/billing/v1/generated/validators/planList.zod.js +1 -1
  300. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +1 -1
  301. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +1 -1
  302. package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.d.ts +1 -1
  303. package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +1 -1
  304. package/dist/billing/v1/generated/validators/price.zod.d.ts +1 -1
  305. package/dist/billing/v1/generated/validators/price.zod.js +1 -1
  306. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +1 -1
  307. package/dist/billing/v1/generated/validators/priceList.zod.js +1 -1
  308. package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +1 -1
  309. package/dist/billing/v1/generated/validators/priceOption.zod.js +1 -1
  310. package/dist/billing/v1/generated/validators/priceType.zod.d.ts +1 -1
  311. package/dist/billing/v1/generated/validators/priceType.zod.js +1 -1
  312. package/dist/billing/v1/generated/validators/product.zod.d.ts +1 -1
  313. package/dist/billing/v1/generated/validators/product.zod.js +1 -1
  314. package/dist/billing/v1/generated/validators/productID.zod.d.ts +1 -1
  315. package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
  316. package/dist/billing/v1/generated/validators/productList.zod.d.ts +1 -1
  317. package/dist/billing/v1/generated/validators/productList.zod.js +1 -1
  318. package/dist/billing/v1/generated/validators/projectAssignment.zod.d.ts +1 -1
  319. package/dist/billing/v1/generated/validators/projectAssignment.zod.js +1 -1
  320. package/dist/billing/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -1
  321. package/dist/billing/v1/generated/validators/projectAssignmentList.zod.js +1 -1
  322. package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
  323. package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
  324. package/dist/billing/v1/generated/validators/quote.zod.d.ts +1 -1
  325. package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
  326. package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -1
  327. package/dist/billing/v1/generated/validators/quoteItem.zod.js +1 -1
  328. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  329. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +1 -1
  330. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  331. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
  332. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -1
  333. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +1 -1
  334. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +1 -1
  335. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +2 -2
  336. package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +1 -1
  337. package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
  338. package/dist/billing/v1/generated/validators/rate.zod.d.ts +1 -1
  339. package/dist/billing/v1/generated/validators/rate.zod.js +1 -1
  340. package/dist/billing/v1/generated/validators/rateList.zod.d.ts +1 -1
  341. package/dist/billing/v1/generated/validators/rateList.zod.js +1 -1
  342. package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -1
  343. package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
  344. package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -1
  345. package/dist/billing/v1/generated/validators/refundList.zod.js +1 -1
  346. package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -1
  347. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
  348. package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
  349. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  350. package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  351. package/dist/billing/v1/generated/validators/renewRequest.zod.js +1 -1
  352. package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +1 -1
  353. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
  354. package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +1 -1
  355. package/dist/billing/v1/generated/validators/renewalPriceList.zod.js +1 -1
  356. package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
  357. package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
  358. package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -1
  359. package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -1
  360. package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +1 -1
  361. package/dist/billing/v1/generated/validators/spendRow.zod.js +1 -1
  362. package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +1 -1
  363. package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
  364. package/dist/billing/v1/generated/validators/statement.zod.d.ts +1 -1
  365. package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
  366. package/dist/billing/v1/generated/validators/statementAmounts.zod.d.ts +1 -1
  367. package/dist/billing/v1/generated/validators/statementAmounts.zod.js +1 -1
  368. package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -1
  369. package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
  370. package/dist/billing/v1/generated/validators/statementList.zod.d.ts +1 -1
  371. package/dist/billing/v1/generated/validators/statementList.zod.js +1 -1
  372. package/dist/billing/v1/generated/validators/statementStatus.zod.d.ts +1 -1
  373. package/dist/billing/v1/generated/validators/statementStatus.zod.js +1 -1
  374. package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -1
  375. package/dist/billing/v1/generated/validators/statementSummary.zod.js +1 -1
  376. package/dist/billing/v1/generated/validators/statementType.zod.d.ts +1 -1
  377. package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
  378. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
  379. package/dist/billing/v1/generated/validators/subscription.zod.js +1 -1
  380. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  381. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +1 -1
  382. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  383. package/dist/billing/v1/generated/validators/subscriptionList.zod.js +1 -1
  384. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.d.ts +1 -1
  385. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  386. package/dist/billing/v1/generated/validators/taxItem.zod.d.ts +1 -1
  387. package/dist/billing/v1/generated/validators/taxItem.zod.js +1 -1
  388. package/dist/billing/v1/generated/validators/tier.zod.d.ts +1 -1
  389. package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
  390. package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
  391. package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
  392. package/dist/billing/v1/generated/validators/topUpCreate.zod.d.ts +1 -1
  393. package/dist/billing/v1/generated/validators/topUpCreate.zod.js +1 -1
  394. package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
  395. package/dist/billing/v1/generated/validators/topUpList.zod.js +1 -1
  396. package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
  397. package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
  398. package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
  399. package/dist/billing/v1/generated/validators/transactionList.zod.js +1 -1
  400. package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -1
  401. package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
  402. package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -1
  403. package/dist/billing/v1/generated/validators/usageCharge.zod.js +1 -1
  404. package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -1
  405. package/dist/billing/v1/generated/validators/usageChargeList.zod.js +1 -1
  406. package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +1 -1
  407. package/dist/billing/v1/generated/validators/usageEstimate.zod.js +1 -1
  408. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +1 -1
  409. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +1 -1
  410. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +1 -1
  411. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +1 -1
  412. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +1 -1
  413. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +1 -1
  414. package/dist/billing/v1/generated/validators/usageType.zod.d.ts +1 -1
  415. package/dist/billing/v1/generated/validators/usageType.zod.js +1 -1
  416. package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
  417. package/dist/billing/v1/generated/validators/withdrawal.zod.js +1 -1
  418. package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +1 -1
  419. package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +1 -1
  420. package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +1 -1
  421. package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +1 -1
  422. package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
  423. package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +1 -1
  424. package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
  425. package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +1 -1
  426. package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
  427. package/dist/billing/v1/generated/validators/withdrawalList.zod.js +1 -1
  428. package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +1 -1
  429. package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +1 -1
  430. package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +1 -1
  431. package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +1 -1
  432. package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +1 -1
  433. package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +1 -1
  434. package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +1 -1
  435. package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
  436. package/dist/routes.d.ts +2992 -2992
  437. package/dist/routes.js +3005 -3005
  438. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
@@ -191,7 +191,7 @@ export const ListBillingAccountsQueryParams = zod.strictObject({
191
191
  */
192
192
  export const CreateBillingAccountBody = BillingAccountCreate;
193
193
  /**
194
- * Your billing account with its currency, status and invoice contact. Returns 404 if it does not exist and 403 if it belongs to another user.
194
+ * A billing account with its currency, status and invoice contact, readable by its owner and by members of the projects it currently pays for. Returns 404 if it does not exist and 403 to anyone else.
195
195
  * @summary Get billing account
196
196
  */
197
197
  export const GetBillingAccountParams = zod.strictObject({
@@ -225,14 +225,14 @@ export const ResumeBillingAccountParams = zod.strictObject({
225
225
  accountId: zod.int(),
226
226
  });
227
227
  /**
228
- * The balance of your account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns. Returns 404 for a missing account and 403 for another user's account.
228
+ * The balance of an account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns, readable by its owner and by members of the projects it currently pays for. Returns 404 for a missing account and 403 to anyone else.
229
229
  * @summary Get account balance
230
230
  */
231
231
  export const GetAccountBalanceParams = zod.strictObject({
232
232
  accountId: zod.int(),
233
233
  });
234
234
  /**
235
- * The payment gateways and methods currently accepting the account's currency, preferred gateway first. Top-ups and invoice payments must use one listed here. An empty result means online payment is unavailable for the account.
235
+ * The payment gateways and methods currently accepting the account's currency, preferred gateway first. Top-ups and invoice payments must use one listed here. An empty result means online payment is unavailable for the account. Open to the owner of the account and to members of the projects it currently pays for.
236
236
  * @summary List payment options
237
237
  */
238
238
  export const ListPaymentOptionsParams = zod.strictObject({
@@ -284,17 +284,18 @@ export const ListProjectAssignmentsQueryParams = zod.strictObject({
284
284
  .min(1)
285
285
  .max(listProjectAssignmentsQueryProjectIdsMax)
286
286
  .optional()
287
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
287
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
288
288
  });
289
289
  /**
290
- * The project's current assignment. Returns 404 when no billing account is assigned; the project cannot create resources until one is.
290
+ * The project's current assignment, readable by the owner of the assigned account and by members of the project. Returns 404 when no billing account is assigned; the project cannot create resources until one is.
291
291
  * @summary Get project assignment
292
292
  */
293
293
  export const GetProjectAssignmentParams = zod.strictObject({
294
294
  projectId: zod.uuid(),
295
295
  });
296
296
  /**
297
- * Links the project to a billing account. A project without one is linked directly. Moving it to another
297
+ * Links the project to a billing account you own; you need the project permission
298
+ * `billing:project_assignment.write`. A project without one is linked directly. Moving it to another
298
299
  * account has the same requirements as unlinking: you own both accounts, the project has no metered resources,
299
300
  * no subscriptions that have not ended and no orders in progress, and the current account has no unpaid
300
301
  * invoices. Nothing moves with the project; charges already incurred stay with the account linked when they
@@ -308,7 +309,7 @@ export const SetProjectAssignmentParams = zod.strictObject({
308
309
  });
309
310
  export const SetProjectAssignmentBody = SetProjectAssignmentRequest;
310
311
  /**
311
- * Ends the project's current assignment; the assignment history is kept. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
312
+ * Ends the project's current assignment; the assignment history is kept. You need to own the account and hold the project permission `billing:project_assignment.write`. Allowed only when the project has no metered resources, no subscriptions that have not ended and no orders in progress, including period-end changes, and the billing account has no unpaid invoices; invoices of orders awaiting payment do not count. Orders are not modified, so wait for them to complete. Charges already incurred stay with the billing account and are invoiced as usual. The project cannot make purchases until a billing account is linked again.
312
313
  * @summary Unlink project billing account
313
314
  */
314
315
  export const UnlinkProjectBillingAccountParams = zod.strictObject({
@@ -338,7 +339,7 @@ export const ListTopUpsQueryParams = zod.strictObject({
338
339
  billing_account_id: zod
339
340
  .int()
340
341
  .optional()
341
- .describe("Only this account of yours; all when omitted."),
342
+ .describe("Only this account; all of yours when omitted."),
342
343
  });
343
344
  /**
344
345
  * Creates a top-up for an account of the authenticated user and returns its payment information. The balance increases when the gateway confirms receipt. Keep the supplied ID to read the attempt after a lost response; creating it again conflicts.
@@ -390,7 +391,7 @@ export const ListPaymentMethodsQueryParams = zod.strictObject({
390
391
  billing_account_id: zod
391
392
  .int()
392
393
  .optional()
393
- .describe("Only this account of yours; all when omitted."),
394
+ .describe("Only this account; all of yours when omitted."),
394
395
  });
395
396
  /**
396
397
  * Returns what the browser needs to open the payment gateway's card form. Nothing is charged; the method is listed once the gateway confirms it. Card numbers never reach this service.
@@ -431,6 +432,9 @@ export const DeletePaymentMethodParams = zod.strictObject({
431
432
  * `BILLING_INVOICE_NOT_PAYABLE` with `meta.reason` `fractional_amount` when the amount left for the gateway is
432
433
  * not a whole number of the currency's minor unit; such an invoice is collected from credit grants and balance
433
434
  * automatically, including right after a top-up.
435
+ *
436
+ * Open to the owner of the invoice's billing account and, for the invoice of an order of a project, to members
437
+ * of the project. Only the owner can pay with a saved `payment_method_id`.
434
438
  * @summary Pay an invoice
435
439
  */
436
440
  export const PayInvoiceParams = zod.strictObject({
@@ -444,7 +448,7 @@ export const PayInvoiceBody = PayInvoiceRequest;
444
448
  * Nothing is charged, reserved or created.
445
449
  *
446
450
  * Refused with the same errors as paying, except that insufficient funds are not an error here:
447
- * they show as a `gateway_amount` above zero.
451
+ * they show as a `gateway_amount` above zero. Open to the same callers as paying.
448
452
  * @summary Preview invoice payment
449
453
  */
450
454
  export const PreviewInvoicePaymentParams = zod.strictObject({
@@ -501,7 +505,7 @@ export const ListInvoicesQueryParams = zod.strictObject({
501
505
  billing_account_id: zod
502
506
  .int()
503
507
  .optional()
504
- .describe("Only this account of yours; all when omitted."),
508
+ .describe("Only this account; all of yours when omitted."),
505
509
  status: zod
506
510
  .enum(["open", "paid", "void"])
507
511
  .optional()
@@ -514,14 +518,14 @@ export const ListInvoicesQueryParams = zod.strictObject({
514
518
  to: zod.iso.datetime({ offset: true }).optional().describe("Exclusive."),
515
519
  });
516
520
  /**
517
- * An issued invoice of your billing account, with its amounts, tax lines and payment state. A missing or unissued invoice returns 404; an invoice of another user's account returns 403.
521
+ * An issued invoice of your billing account, or the invoice of an order of a project you are a member of, with its amounts, tax lines and payment state. A missing or unissued invoice returns 404; any other invoice returns 403.
518
522
  * @summary Get invoice
519
523
  */
520
524
  export const GetInvoiceParams = zod.strictObject({
521
525
  invoiceId: zod.uuid(),
522
526
  });
523
527
  /**
524
- * Lines of an issued invoice of your billing account, with their service periods and projects. A missing or unissued invoice returns 404; an invoice of another user's account returns 403.
528
+ * Lines of an invoice readable with get-invoice, with their service periods and projects. A missing or unissued invoice returns 404; any other invoice returns 403.
525
529
  * @summary List invoice items
526
530
  */
527
531
  export const ListInvoiceItemsParams = zod.strictObject({
@@ -569,7 +573,7 @@ export const ListTransactionsQueryParams = zod.strictObject({
569
573
  billing_account_id: zod
570
574
  .int()
571
575
  .optional()
572
- .describe("Only this account of yours; all when omitted."),
576
+ .describe("Only this account; all of yours when omitted."),
573
577
  from: zod.iso.datetime({ offset: true }).optional(),
574
578
  to: zod.iso.datetime({ offset: true }).optional().describe("Exclusive."),
575
579
  });
@@ -597,7 +601,7 @@ export const ListAccountDiscountsQueryParams = zod.strictObject({
597
601
  billing_account_id: zod
598
602
  .int()
599
603
  .optional()
600
- .describe("Only this account of yours; all when omitted."),
604
+ .describe("Only this account; all of yours when omitted."),
601
605
  });
602
606
  /**
603
607
  * Credit grants with what remains and what each may pay for. Credit is spent before balance and cannot be withdrawn.
@@ -623,7 +627,7 @@ export const ListCreditGrantsQueryParams = zod.strictObject({
623
627
  billing_account_id: zod
624
628
  .int()
625
629
  .optional()
626
- .describe("Only this account of yours; all when omitted."),
630
+ .describe("Only this account; all of yours when omitted."),
627
631
  status: zod.enum(["active", "depleted", "expired", "voided"]).optional(),
628
632
  });
629
633
  /**
@@ -650,7 +654,7 @@ export const ListCreditNotesQueryParams = zod.strictObject({
650
654
  billing_account_id: zod
651
655
  .int()
652
656
  .optional()
653
- .describe("Only this account of yours; all when omitted."),
657
+ .describe("Only this account; all of yours when omitted."),
654
658
  invoice_id: zod.uuid().optional().describe("Only the notes for this invoice."),
655
659
  });
656
660
  /**
@@ -709,7 +713,7 @@ export const ListRefundsQueryParams = zod.strictObject({
709
713
  billing_account_id: zod
710
714
  .int()
711
715
  .optional()
712
- .describe("Only this account of yours; all when omitted."),
716
+ .describe("Only this account; all of yours when omitted."),
713
717
  invoice_id: zod.uuid().optional().describe("Only the refunds of this invoice."),
714
718
  order_id: zod
715
719
  .uuid()
@@ -717,7 +721,7 @@ export const ListRefundsQueryParams = zod.strictObject({
717
721
  .describe("Refunds of this order: those of its invoice, such as for an undeliverable purchase, and those it caused on an earlier invoice, such as a downgrade difference."),
718
722
  });
719
723
  /**
720
- * Priced usage charges in the requested scope. Usage that had no price when it occurred is never charged later.
724
+ * Priced usage charges in the requested scope; members with the project permission `billing:cost.read` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
721
725
  * @summary List usage charges
722
726
  */
723
727
  export const listUsageChargesQueryPageDefault = 1;
@@ -743,7 +747,7 @@ export const ListUsageChargesQueryParams = zod.strictObject({
743
747
  billing_account_id: zod
744
748
  .int()
745
749
  .optional()
746
- .describe("Only this account of yours; all when omitted."),
750
+ .describe("Only this account; all of yours when omitted."),
747
751
  product_id: zod
748
752
  .string()
749
753
  .min(1)
@@ -763,12 +767,12 @@ export const ListUsageChargesQueryParams = zod.strictObject({
763
767
  .min(1)
764
768
  .max(listUsageChargesQueryProjectIdsMax)
765
769
  .optional()
766
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
770
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
767
771
  meter_id: zod.uuid().optional(),
768
772
  statement_id: zod.uuid().optional(),
769
773
  });
770
774
  /**
771
- * Subscriptions of the authorized billing account. Deleted subscriptions are not listed.
775
+ * Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Deleted subscriptions are not listed.
772
776
  * @summary List subscriptions
773
777
  */
774
778
  export const listSubscriptionsQueryPageDefault = 1;
@@ -793,23 +797,23 @@ export const ListSubscriptionsQueryParams = zod.strictObject({
793
797
  billing_account_id: zod
794
798
  .int()
795
799
  .optional()
796
- .describe("Only this account of yours; all when omitted."),
800
+ .describe("Only this account; all of yours when omitted."),
797
801
  project_ids: zod
798
802
  .array(zod.uuid())
799
803
  .min(1)
800
804
  .max(listSubscriptionsQueryProjectIdsMax)
801
805
  .optional()
802
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
806
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
803
807
  });
804
808
  /**
805
- * A subscription of the authorized billing account. Deleted subscriptions are reported as not found.
809
+ * A subscription paid by your billing account or of a project you are a member of. Deleted subscriptions are reported as not found.
806
810
  * @summary Get subscription
807
811
  */
808
812
  export const GetSubscriptionParams = zod.strictObject({
809
813
  subscriptionId: zod.uuid(),
810
814
  });
811
815
  /**
812
- * Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at and history are kept. The token must authorize the subscription's current billing account. A subscription that has not ended is refused with 409 `BILLING_SUBSCRIPTION_NOT_ENDED` and `status`. Repeating it keeps the original deleted_at. It sends no cleanup command and creates no refund.
816
+ * Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at and history are kept. Only the owner of the subscription's current billing account can delete it. A subscription that has not ended is refused with 409 `BILLING_SUBSCRIPTION_NOT_ENDED` and `status`. Repeating it keeps the original deleted_at. It sends no cleanup command and creates no refund.
813
817
  * @summary Delete subscription
814
818
  */
815
819
  export const DeleteSubscriptionParams = zod.strictObject({
@@ -817,8 +821,9 @@ export const DeleteSubscriptionParams = zod.strictObject({
817
821
  });
818
822
  /**
819
823
  * Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
820
- * refund amount from a quote with this subscription in `cancellation.subscription_ids`. The token must authorize
821
- * the subscription's current billing account.
824
+ * refund amount from a quote with this subscription in `cancellation.subscription_ids`. Open to the owner of the
825
+ * subscription's current billing account and to members of its project with the project permission
826
+ * `billing:subscription.write`.
822
827
  *
823
828
  * Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
824
829
  * subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
@@ -832,7 +837,7 @@ export const CancelSubscriptionParams = zod.strictObject({
832
837
  });
833
838
  export const CancelSubscriptionBody = CancelSubscriptionRequest;
834
839
  /**
835
- * Newest first. Filter by `subscription_id` and `status=open` to find a subscription's cancellation in progress.
840
+ * Newest first; members of a project list its cancellations with `project_ids`. Filter by `subscription_id` and `status=open` to find a subscription's cancellation in progress.
836
841
  * @summary List cancellations
837
842
  */
838
843
  export const listCancellationsQueryPageDefault = 1;
@@ -856,7 +861,7 @@ export const ListCancellationsQueryParams = zod.strictObject({
856
861
  billing_account_id: zod
857
862
  .int()
858
863
  .optional()
859
- .describe("Only this account of yours; all when omitted."),
864
+ .describe("Only this account; all of yours when omitted."),
860
865
  subscription_id: zod
861
866
  .uuid()
862
867
  .optional()
@@ -870,11 +875,13 @@ export const ListCancellationsQueryParams = zod.strictObject({
870
875
  .min(1)
871
876
  .max(listCancellationsQueryProjectIdsMax)
872
877
  .optional()
873
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
878
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
874
879
  });
875
880
  /**
876
881
  * Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
877
- * subscription released with it, such as a server with its disks or an address with its bandwidth.
882
+ * subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
883
+ * owner of the subscriptions' current billing account and to members of their project with the project
884
+ * permission `billing:subscription.write`.
878
885
  *
879
886
  * The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
880
887
  * term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
@@ -907,21 +914,21 @@ export const ListCancellationsQueryParams = zod.strictObject({
907
914
  */
908
915
  export const CreateCancellationBody = CancellationCreate;
909
916
  /**
910
- * A cancellation of your billing account with its schedule, expected refundable amount and the outcome for each subscription, including partial success.
917
+ * A cancellation paid by your billing account or of a project you are a member of, with its schedule, expected refundable amount and the outcome for each subscription, including partial success.
911
918
  * @summary Get a cancellation
912
919
  */
913
920
  export const GetCancellationParams = zod.strictObject({
914
921
  cancellationId: zod.uuid(),
915
922
  });
916
923
  /**
917
- * Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged.
924
+ * Withdraws the whole cancellation while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The subscriptions continue, but automatic renewal, turned off when the cancellation was created, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the subscriptions' current billing account and to members of their project with the project permission `billing:subscription.write`.
918
925
  * @summary Withdraw a cancellation
919
926
  */
920
927
  export const WithdrawCancellationParams = zod.strictObject({
921
928
  cancellationId: zod.uuid(),
922
929
  });
923
930
  /**
924
- * Lists the current renewal agreement and available intervals. The current option preserves recurring_amount; other options use current prices. Amounts cover the whole subscription quantity and exclude tax.
931
+ * Lists the current renewal agreement and available intervals. The current option preserves recurring_amount; other options use current prices. Amounts cover the whole subscription quantity and exclude tax. Open to the owner of the subscription's current billing account and to members of its project.
925
932
  * @summary List the terms this item can be renewed for
926
933
  */
927
934
  export const ListRenewalPricesParams = zod.strictObject({
@@ -954,6 +961,9 @@ export const ListRenewalPricesQueryParams = zod.strictObject({
954
961
  * `use_balance` allow; when they cannot cover it, the request fails with `BILLING_INSUFFICIENT_FUNDS` and no
955
962
  * order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
956
963
  *
964
+ * Open to the owner of the subscription's current billing account and to members of its project with the
965
+ * project permission `billing:subscription.write`. Only the owner can pay with `payment_method_id`.
966
+ *
957
967
  * Keep order_id and read the order after an unknown outcome; creating it again conflicts.
958
968
  * @summary Renew subscription
959
969
  */
@@ -962,7 +972,7 @@ export const RenewSubscriptionParams = zod.strictObject({
962
972
  });
963
973
  export const RenewSubscriptionBody = RenewRequest;
964
974
  /**
965
- * Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on.
975
+ * Turns automatic renewal of an active or suspended licensed subscription on or off. Turning it off does not shorten current_term_end and still allows manual renewal. Refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a metered subscription, which continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id` while a cancellation is open: creating it turned renewal off, and withdrawing it does not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its project with the project permission `billing:subscription.write`.
966
976
  * @summary Set auto renew
967
977
  */
968
978
  export const SetAutoRenewParams = zod.strictObject({
@@ -970,7 +980,7 @@ export const SetAutoRenewParams = zod.strictObject({
970
980
  });
971
981
  export const SetAutoRenewBody = AutoRenewSet;
972
982
  /**
973
- * Remaining usage quantities, such as bytes, seconds or tokens. Applicable allowances are consumed before usage is charged: lower priority values first, then earlier expiry, then earlier issuance. Unused quantity expires without refund or carry-over. Promotional allowances apply to usage paid by their holding account; included allowances apply only to their subscription, also after its project moves to another billing account.
983
+ * Remaining usage quantities, such as bytes, seconds or tokens; members of a project list its allowances with `project_ids`. Applicable allowances are consumed before usage is charged: lower priority values first, then earlier expiry, then earlier issuance. Unused quantity expires without refund or carry-over. Promotional allowances apply to usage paid by their holding account; included allowances apply only to their subscription, also after its project moves to another billing account.
974
984
  * @summary List allowances
975
985
  */
976
986
  export const listAllowancesQueryPageDefault = 1;
@@ -996,7 +1006,7 @@ export const ListAllowancesQueryParams = zod.strictObject({
996
1006
  billing_account_id: zod
997
1007
  .int()
998
1008
  .optional()
999
- .describe("Only this account of yours; all when omitted."),
1009
+ .describe("Only this account; all of yours when omitted."),
1000
1010
  meter_id: zod.uuid().optional().describe("Filter by the meter UUID."),
1001
1011
  status: zod.enum(["active", "depleted", "expired", "voided"]).optional(),
1002
1012
  product_id: zod
@@ -1011,10 +1021,10 @@ export const ListAllowancesQueryParams = zod.strictObject({
1011
1021
  .min(1)
1012
1022
  .max(listAllowancesQueryProjectIdsMax)
1013
1023
  .optional()
1014
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1024
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1015
1025
  });
1016
1026
  /**
1017
- * Checkout Sessions of your billing accounts, newest first. An open session is a purchase waiting for you to complete checkout.
1027
+ * Checkout Sessions of your billing accounts, newest first; members of a project list its sessions with `project_ids`. An open session is a purchase waiting for checkout to be completed.
1018
1028
  * @summary List Checkout Sessions
1019
1029
  */
1020
1030
  export const listCheckoutSessionsQueryPageDefault = 1;
@@ -1038,7 +1048,7 @@ export const ListCheckoutSessionsQueryParams = zod.strictObject({
1038
1048
  billing_account_id: zod
1039
1049
  .int()
1040
1050
  .optional()
1041
- .describe("Only this account of yours; all when omitted."),
1051
+ .describe("Only this account; all of yours when omitted."),
1042
1052
  status: zod
1043
1053
  .enum(["open", "complete", "expired"])
1044
1054
  .optional()
@@ -1048,28 +1058,30 @@ export const ListCheckoutSessionsQueryParams = zod.strictObject({
1048
1058
  .min(1)
1049
1059
  .max(listCheckoutSessionsQueryProjectIdsMax)
1050
1060
  .optional()
1051
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1061
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1052
1062
  });
1053
1063
  /**
1054
- * Opens a Checkout Session renewing one of your licensed subscriptions, with periods and price chosen as in
1064
+ * Opens a Checkout Session renewing a licensed subscription, with periods and price chosen as in
1055
1065
  * renewing. Nothing is charged until you complete it, when a promotion code can be applied; it then renews from
1056
1066
  * the subscription's current_term_end at that time. To renew at once from credit grants, balance or a payment
1057
1067
  * method, renew the subscription instead. Purchases and changes of a service's resources are created through
1058
1068
  * that service.
1059
1069
  *
1060
- * Keep `checkout_session_id` and read the session after an unknown outcome; creating it again conflicts.
1070
+ * Open to the owner of the subscription's current billing account and to members of its project with the
1071
+ * project permission `billing:subscription.write`. Keep `checkout_session_id` and read the session after an
1072
+ * unknown outcome; creating it again conflicts.
1061
1073
  * @summary Create a renewal Checkout Session
1062
1074
  */
1063
1075
  export const CreateCheckoutSessionBody = CheckoutSessionCreate;
1064
1076
  /**
1065
- * A Checkout Session of your billing account. Poll it to follow checkout; once it is complete, read its order for payment and delivery. An unknown session returns 404; another account's session returns 403.
1077
+ * A Checkout Session of your billing account or of a project you are a member of. Poll it to follow checkout; once it is complete, read its order for payment and delivery. An unknown session returns 404; any other session returns 403.
1066
1078
  * @summary Get a Checkout Session
1067
1079
  */
1068
1080
  export const GetCheckoutSessionParams = zod.strictObject({
1069
1081
  checkoutSessionId: zod.uuid(),
1070
1082
  });
1071
1083
  /**
1072
- * What the session buys, by position. Prices and amounts are in its quote.
1084
+ * What the session buys, by position. Prices and amounts are in its quote. Readable by whoever can read the session.
1073
1085
  * @summary List Checkout Session items
1074
1086
  */
1075
1087
  export const ListCheckoutSessionItemsParams = zod.strictObject({
@@ -1102,6 +1114,8 @@ export const ListCheckoutSessionItemsQueryParams = zod.strictObject({
1102
1114
  * immediate change, the returned `proration_date`. An expired session is refused with
1103
1115
  * `BILLING_CHECKOUT_SESSION_EXPIRED`, and a complete one with `BILLING_CHECKOUT_SESSION_COMPLETE`; read its order
1104
1116
  * instead.
1117
+ *
1118
+ * Open to the owner of the session's billing account and to members of its project.
1105
1119
  * @summary Quote a Checkout Session
1106
1120
  */
1107
1121
  export const GetCheckoutSessionQuoteParams = zod.strictObject({
@@ -1121,6 +1135,8 @@ export const GetCheckoutSessionQuoteQueryParams = zod.strictObject({
1121
1135
  * Confirming a complete session again with the same terms returns it with its order; different terms are refused
1122
1136
  * with `BILLING_CHECKOUT_SESSION_COMPLETE`. An expired session is refused with `BILLING_CHECKOUT_SESSION_EXPIRED`.
1123
1137
  * The order is delivered by the service that owns it once paid; confirmation alone does not mean delivery.
1138
+ *
1139
+ * Open to the owner of the session's billing account and to members of its project.
1124
1140
  * @summary Confirm a Checkout Session
1125
1141
  */
1126
1142
  export const ConfirmCheckoutSessionParams = zod.strictObject({
@@ -1128,14 +1144,14 @@ export const ConfirmCheckoutSessionParams = zod.strictObject({
1128
1144
  });
1129
1145
  export const ConfirmCheckoutSessionBody = CheckoutSessionConfirm;
1130
1146
  /**
1131
- * Ends an open session without an order; the service that created it releases what it was holding for the purchase. An expired session is returned unchanged.
1147
+ * Ends an open session without an order; the service that created it releases what it was holding for the purchase. An expired session is returned unchanged. Open to the owner of the session's billing account and to members of its project.
1132
1148
  * @summary Expire a Checkout Session
1133
1149
  */
1134
1150
  export const ExpireCheckoutSessionParams = zod.strictObject({
1135
1151
  checkoutSessionId: zod.uuid(),
1136
1152
  });
1137
1153
  /**
1138
- * Orders with their status and invoice amounts. A pending order is not yet accepted and can expire at expires_at; its invoice shows whether payment is needed. Accepted does not mean delivered.
1154
+ * Orders of your billing accounts with their status and invoice amounts; members of a project list its orders with `project_ids`. A pending order is not yet accepted and can expire at expires_at; its invoice shows whether payment is needed. Accepted does not mean delivered.
1139
1155
  * @summary List orders
1140
1156
  */
1141
1157
  export const listOrdersQueryPageDefault = 1;
@@ -1159,7 +1175,7 @@ export const ListOrdersQueryParams = zod.strictObject({
1159
1175
  billing_account_id: zod
1160
1176
  .int()
1161
1177
  .optional()
1162
- .describe("Only this account of yours; all when omitted."),
1178
+ .describe("Only this account; all of yours when omitted."),
1163
1179
  status: zod
1164
1180
  .enum(["pending", "accepted", "completed", "partially_completed", "failed", "canceled"])
1165
1181
  .optional()
@@ -1171,17 +1187,17 @@ export const ListOrdersQueryParams = zod.strictObject({
1171
1187
  .min(1)
1172
1188
  .max(listOrdersQueryProjectIdsMax)
1173
1189
  .optional()
1174
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1190
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1175
1191
  });
1176
1192
  /**
1177
- * An order of your billing account with its status and invoice. An unknown order returns 404; another user's order returns 403.
1193
+ * An order of your billing account or of a project you are a member of, with its status and invoice. An unknown order returns 404; any other order returns 403.
1178
1194
  * @summary Get order
1179
1195
  */
1180
1196
  export const GetOrderParams = zod.strictObject({
1181
1197
  orderId: zod.uuid(),
1182
1198
  });
1183
1199
  /**
1184
- * What canceling the listed items, or the whole order, would refund to the original payment sources. Nothing is canceled or refunded.
1200
+ * What canceling the listed items, or the whole order, would refund to the original payment sources. Nothing is canceled or refunded. Open to the owner of the order's billing account and to members of its project.
1185
1201
  * @summary Preview an order refund
1186
1202
  */
1187
1203
  export const PreviewOrderRefundParams = zod.strictObject({
@@ -1208,7 +1224,7 @@ export const PreviewOrderRefundQueryParams = zod.strictObject({
1208
1224
  * `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Repeating the cancellation does not refund twice.
1209
1225
  *
1210
1226
  * An accepted order is canceled by its owning service, and delivered items through subscription cancellation.
1211
- * Refunds are previewed with `preview-order-refund`.
1227
+ * Refunds are previewed with `preview-order-refund`. Open to the owner of the order's billing account and to members of its project.
1212
1228
  * @summary Cancel order
1213
1229
  */
1214
1230
  export const CancelOrderParams = zod.strictObject({
@@ -1216,7 +1232,7 @@ export const CancelOrderParams = zod.strictObject({
1216
1232
  });
1217
1233
  export const CancelOrderBody = OrderCancel;
1218
1234
  /**
1219
- * One entry per item bought, with the price charged and the period it covers.
1235
+ * One entry per item bought, with the price charged and the period it covers. Readable by whoever can read the order.
1220
1236
  * @summary List order items
1221
1237
  */
1222
1238
  export const ListOrderItemsParams = zod.strictObject({
@@ -1241,7 +1257,7 @@ export const ListOrderItemsQueryParams = zod.strictObject({
1241
1257
  .describe("Items per page. Defaults to 50; at most 200."),
1242
1258
  });
1243
1259
  /**
1244
- * Capabilities granted by live subscriptions and active feature grants. A capability not held is not listed, and one stops being listed when the subscription or grant providing it ends.
1260
+ * Capabilities granted by live subscriptions and active feature grants; members of a project list its entitlements with `project_ids`. A capability not held is not listed, and one stops being listed when the subscription or grant providing it ends.
1245
1261
  * @summary List entitlements
1246
1262
  */
1247
1263
  export const listEntitlementsQueryPageDefault = 1;
@@ -1267,13 +1283,13 @@ export const ListEntitlementsQueryParams = zod.strictObject({
1267
1283
  billing_account_id: zod
1268
1284
  .int()
1269
1285
  .optional()
1270
- .describe("Only this account of yours; all when omitted."),
1286
+ .describe("Only this account; all of yours when omitted."),
1271
1287
  project_ids: zod
1272
1288
  .array(zod.uuid())
1273
1289
  .min(1)
1274
1290
  .max(listEntitlementsQueryProjectIdsMax)
1275
1291
  .optional()
1276
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1292
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1277
1293
  product_id: zod
1278
1294
  .string()
1279
1295
  .min(1)
@@ -1308,7 +1324,7 @@ export const ListFeatureGrantsQueryParams = zod.strictObject({
1308
1324
  billing_account_id: zod
1309
1325
  .int()
1310
1326
  .optional()
1311
- .describe("Only this account of yours; all when omitted."),
1327
+ .describe("Only this account; all of yours when omitted."),
1312
1328
  product_id: zod
1313
1329
  .string()
1314
1330
  .min(1)
@@ -1546,7 +1562,7 @@ export const ListRatesHeader = zod.strictObject({
1546
1562
  .describe("The `ETag` of an earlier response. When the catalogue has not changed since, the response is `304` with no body."),
1547
1563
  });
1548
1564
  /**
1549
- * Continuous metering registrations paid for by your billing accounts. Their state does not describe the resource's runtime. Project filters only narrow the result.
1565
+ * Continuous metering registrations paid for by your billing accounts; members of a project list its registrations with `project_ids`. Their state does not describe the resource's runtime.
1550
1566
  * @summary List active resources
1551
1567
  */
1552
1568
  export const listActiveResourcesQueryPageDefault = 1;
@@ -1573,13 +1589,13 @@ export const ListActiveResourcesQueryParams = zod.strictObject({
1573
1589
  billing_account_id: zod
1574
1590
  .int()
1575
1591
  .optional()
1576
- .describe("Only this account of yours; all when omitted."),
1592
+ .describe("Only this account; all of yours when omitted."),
1577
1593
  project_ids: zod
1578
1594
  .array(zod.uuid())
1579
1595
  .min(1)
1580
1596
  .max(listActiveResourcesQueryProjectIdsMax)
1581
1597
  .optional()
1582
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1598
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1583
1599
  meter_id: zod.uuid().optional(),
1584
1600
  product_id: zod
1585
1601
  .string()
@@ -1596,6 +1612,9 @@ export const ListActiveResourcesQueryParams = zod.strictObject({
1596
1612
  * closing are included. `from` and `to` must fall on UTC day boundaries and span at most 92 days.
1597
1613
  * Project filters use the account recorded on each charge, including charges for projects later
1598
1614
  * assigned to another account. The total covers all matching groups, not just the returned page.
1615
+ *
1616
+ * Open to the owner of the account and to members with the project permission `billing:cost.read` of each
1617
+ * project in `project_ids`, which must then be given and currently assigned to the account.
1599
1618
  * @summary List account spend
1600
1619
  */
1601
1620
  export const listSpendQueryGroupByDefault = `product`;
@@ -1642,7 +1661,7 @@ export const ListSpendQueryParams = zod.strictObject({
1642
1661
  .min(1)
1643
1662
  .max(listSpendQueryProjectIdsMax)
1644
1663
  .optional()
1645
- .describe("Only records of these projects. Omit for all projects and account-level records. It does not grant access to other billing accounts."),
1664
+ .describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
1646
1665
  });
1647
1666
  /**
1648
1667
  * Usage billing per UTC calendar month for your billing accounts, newest first. Each month combines its statements, the invoices they issued and how those were paid.
@@ -1703,7 +1722,7 @@ export const GetStatementParams = zod.strictObject({
1703
1722
  statementId: zod.uuid(),
1704
1723
  });
1705
1724
  /**
1706
- * The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions.
1725
+ * The statement's consumption, grouped by project, product or meter and filtered within the statement. Quantities are given only for meter groups; grouping by meter also splits by the meter's presentation dimensions. Open to the owner of the statement's account and to members with the project permission `billing:cost.read` of each project in `project_ids`, which must then be given and currently assigned to that account.
1707
1726
  * @summary Get grouped consumption
1708
1727
  */
1709
1728
  export const GetStatementUsageParams = zod.strictObject({
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Financial operations require an account access token and billing-account authorization. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, and, with project permissions granted in IAM, change its subscriptions (`billing:subscription.write`), change its billing account (`billing:project_assignment.write`) and read its costs (`billing:cost.read`). A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";