@leaflow/sdk 0.212.0 → 0.214.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 (1070) hide show
  1. package/dist/billing/type/checkout/v1/generated/models.d.ts +14 -0
  2. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.d.ts +3 -0
  3. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +9 -0
  4. package/dist/billing/type/funds/v1/generated/functions.d.ts +1 -1
  5. package/dist/billing/type/funds/v1/generated/functions.js +1 -1
  6. package/dist/billing/type/funds/v1/generated/models.d.ts +4 -4
  7. package/dist/billing/type/funds/v1/generated/schemas.zod.d.ts +1 -1
  8. package/dist/billing/type/funds/v1/generated/schemas.zod.js +1 -1
  9. package/dist/billing/type/funds/v1/generated/validators/funds.zod.d.ts +1 -1
  10. package/dist/billing/type/funds/v1/generated/validators/funds.zod.js +4 -4
  11. package/dist/billing/type/funds/v1/generated/validators/money.zod.d.ts +1 -1
  12. package/dist/billing/type/funds/v1/generated/validators/money.zod.js +1 -1
  13. package/dist/billing/v1/generated/functions.d.ts +220 -170
  14. package/dist/billing/v1/generated/functions.js +242 -189
  15. package/dist/billing/v1/generated/models.d.ts +973 -658
  16. package/dist/billing/v1/generated/models.js +75 -62
  17. package/dist/billing/v1/generated/schemas.zod.d.ts +160 -109
  18. package/dist/billing/v1/generated/schemas.zod.js +176 -121
  19. package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
  20. package/dist/billing/v1/generated/validators/accountBalance.zod.js +1 -1
  21. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +1 -1
  22. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +1 -1
  23. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +1 -1
  24. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +1 -1
  25. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +1 -1
  26. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +1 -1
  27. package/dist/billing/v1/generated/validators/accountIdentity.zod.d.ts +1 -1
  28. package/dist/billing/v1/generated/validators/accountIdentity.zod.js +1 -1
  29. package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +2 -1
  30. package/dist/billing/v1/generated/validators/activeResource.zod.js +4 -3
  31. package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +2 -1
  32. package/dist/billing/v1/generated/validators/activeResourceList.zod.js +1 -1
  33. package/dist/billing/v1/generated/validators/activeResourceStatus.zod.d.ts +1 -1
  34. package/dist/billing/v1/generated/validators/activeResourceStatus.zod.js +1 -1
  35. package/dist/billing/v1/generated/validators/allowance.zod.d.ts +2 -1
  36. package/dist/billing/v1/generated/validators/allowance.zod.js +6 -2
  37. package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +2 -1
  38. package/dist/billing/v1/generated/validators/allowanceList.zod.js +1 -1
  39. package/dist/billing/v1/generated/validators/allowanceStatus.zod.d.ts +1 -1
  40. package/dist/billing/v1/generated/validators/allowanceStatus.zod.js +1 -1
  41. package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
  42. package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
  43. package/dist/billing/v1/generated/validators/applicablePlan.zod.d.ts +1 -1
  44. package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
  45. package/dist/billing/v1/generated/validators/appliedCredit.zod.d.ts +1 -1
  46. package/dist/billing/v1/generated/validators/appliedCredit.zod.js +1 -1
  47. package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -1
  48. package/dist/billing/v1/generated/validators/billingAccount.zod.js +1 -1
  49. package/dist/billing/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -1
  50. package/dist/billing/v1/generated/validators/billingAccountCreate.zod.js +1 -1
  51. package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -1
  52. package/dist/billing/v1/generated/validators/billingAccountList.zod.js +1 -1
  53. package/dist/billing/v1/generated/validators/billingAccountStatus.zod.d.ts +1 -1
  54. package/dist/billing/v1/generated/validators/billingAccountStatus.zod.js +1 -1
  55. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -1
  56. package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
  57. package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +1 -1
  58. package/dist/billing/v1/generated/validators/billingScheme.zod.js +1 -1
  59. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -1
  60. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -1
  61. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +2 -1
  62. package/dist/billing/v1/generated/validators/cancellation.zod.js +3 -3
  63. package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +5 -3
  64. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +6 -5
  65. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +2 -1
  66. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +6 -5
  67. package/dist/billing/v1/generated/validators/cancellationItemInput.zod.d.ts +13 -0
  68. package/dist/billing/v1/generated/validators/cancellationItemInput.zod.js +13 -0
  69. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +2 -1
  70. package/dist/billing/v1/generated/validators/cancellationList.zod.js +1 -1
  71. package/dist/billing/v1/generated/validators/cancellationMode.zod.d.ts +1 -1
  72. package/dist/billing/v1/generated/validators/cancellationMode.zod.js +1 -1
  73. package/dist/billing/v1/generated/validators/cancellationPolicy.zod.d.ts +1 -1
  74. package/dist/billing/v1/generated/validators/cancellationPolicy.zod.js +1 -1
  75. package/dist/billing/v1/generated/validators/cancellationPreview.zod.d.ts +2 -1
  76. package/dist/billing/v1/generated/validators/cancellationPreview.zod.js +3 -3
  77. package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.d.ts +2 -1
  78. package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.js +5 -4
  79. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +5 -3
  80. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +9 -8
  81. package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
  82. package/dist/billing/v1/generated/validators/checkoutMode.zod.js +1 -1
  83. package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +4 -1
  84. package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +10 -1
  85. package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +272 -7
  86. package/dist/billing/v1/generated/validators/checkoutSession.zod.js +53 -14
  87. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +1 -3
  88. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +3 -10
  89. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +5 -2
  90. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +9 -3
  91. package/dist/billing/v1/generated/validators/checkoutSessionDiscount.zod.d.ts +29 -0
  92. package/dist/billing/v1/generated/validators/checkoutSessionDiscount.zod.js +32 -0
  93. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +32 -2
  94. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +62 -8
  95. package/dist/billing/v1/generated/validators/checkoutSessionItemDowngradeRefund.zod.d.ts +14 -0
  96. package/dist/billing/v1/generated/validators/checkoutSessionItemDowngradeRefund.zod.js +15 -0
  97. package/dist/billing/v1/generated/validators/checkoutSessionItemInput.zod.d.ts +42 -0
  98. package/dist/billing/v1/generated/validators/checkoutSessionItemInput.zod.js +41 -0
  99. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +272 -7
  100. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +1 -1
  101. package/dist/billing/v1/generated/validators/checkoutSessionPreviewRequest.zod.d.ts +91 -0
  102. package/dist/billing/v1/generated/validators/checkoutSessionPreviewRequest.zod.js +69 -0
  103. package/dist/billing/v1/generated/validators/checkoutSessionPreviewSubscription.zod.d.ts +57 -0
  104. package/dist/billing/v1/generated/validators/checkoutSessionPreviewSubscription.zod.js +22 -0
  105. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +273 -7
  106. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +1 -1
  107. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +1 -1
  108. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +2 -2
  109. package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.d.ts +95 -0
  110. package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.js +53 -0
  111. package/dist/billing/v1/generated/validators/checkoutSessionSubscriptionInput.zod.d.ts +13 -0
  112. package/dist/billing/v1/generated/validators/checkoutSessionSubscriptionInput.zod.js +13 -0
  113. package/dist/billing/v1/generated/validators/checkoutSessionTrial.zod.d.ts +24 -0
  114. package/dist/billing/v1/generated/validators/checkoutSessionTrial.zod.js +16 -0
  115. package/dist/billing/v1/generated/validators/checkoutSessionUpdate.zod.d.ts +16 -0
  116. package/dist/billing/v1/generated/validators/checkoutSessionUpdate.zod.js +27 -0
  117. package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
  118. package/dist/billing/v1/generated/validators/contact.zod.js +1 -1
  119. package/dist/billing/v1/generated/validators/contactCreate.zod.d.ts +1 -1
  120. package/dist/billing/v1/generated/validators/contactCreate.zod.js +1 -1
  121. package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
  122. package/dist/billing/v1/generated/validators/contactList.zod.js +1 -1
  123. package/dist/billing/v1/generated/validators/contactUpdate.zod.d.ts +1 -1
  124. package/dist/billing/v1/generated/validators/contactUpdate.zod.js +1 -1
  125. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  126. package/dist/billing/v1/generated/validators/creditGrant.zod.js +1 -1
  127. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  128. package/dist/billing/v1/generated/validators/creditGrantList.zod.js +1 -1
  129. package/dist/billing/v1/generated/validators/creditGrantStatus.zod.d.ts +1 -1
  130. package/dist/billing/v1/generated/validators/creditGrantStatus.zod.js +1 -1
  131. package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
  132. package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
  133. package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +1 -1
  134. package/dist/billing/v1/generated/validators/creditNote.zod.js +1 -1
  135. package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +1 -1
  136. package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +1 -1
  137. package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -1
  138. package/dist/billing/v1/generated/validators/creditNoteItemList.zod.js +1 -1
  139. package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +1 -1
  140. package/dist/billing/v1/generated/validators/creditNoteList.zod.js +1 -1
  141. package/dist/billing/v1/generated/validators/creditNoteStatus.zod.d.ts +1 -1
  142. package/dist/billing/v1/generated/validators/creditNoteStatus.zod.js +1 -1
  143. package/dist/billing/v1/generated/validators/currency.zod.d.ts +1 -1
  144. package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
  145. package/dist/billing/v1/generated/validators/currencyList.zod.d.ts +1 -1
  146. package/dist/billing/v1/generated/validators/currencyList.zod.js +1 -1
  147. package/dist/billing/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
  148. package/dist/billing/v1/generated/validators/cursorPagination.zod.js +1 -1
  149. package/dist/billing/v1/generated/validators/customerAddress.zod.d.ts +16 -0
  150. package/dist/billing/v1/generated/validators/customerAddress.zod.js +24 -0
  151. package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
  152. package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
  153. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
  154. package/dist/billing/v1/generated/validators/discountList.zod.js +1 -1
  155. package/dist/billing/v1/generated/validators/discountStatus.zod.d.ts +1 -1
  156. package/dist/billing/v1/generated/validators/discountStatus.zod.js +1 -1
  157. package/dist/billing/v1/generated/validators/entitlement.zod.d.ts +1 -1
  158. package/dist/billing/v1/generated/validators/entitlement.zod.js +2 -2
  159. package/dist/billing/v1/generated/validators/entitlementList.zod.d.ts +1 -1
  160. package/dist/billing/v1/generated/validators/entitlementList.zod.js +1 -1
  161. package/dist/billing/v1/generated/validators/error.zod.d.ts +1 -1
  162. package/dist/billing/v1/generated/validators/error.zod.js +1 -1
  163. package/dist/billing/v1/generated/validators/errorStatus.zod.d.ts +1 -1
  164. package/dist/billing/v1/generated/validators/errorStatus.zod.js +1 -1
  165. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  166. package/dist/billing/v1/generated/validators/featureGrant.zod.js +1 -1
  167. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  168. package/dist/billing/v1/generated/validators/featureGrantList.zod.js +1 -1
  169. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  170. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +1 -1
  171. package/dist/billing/v1/generated/validators/fieldViolation.zod.d.ts +1 -1
  172. package/dist/billing/v1/generated/validators/fieldViolation.zod.js +1 -1
  173. package/dist/billing/v1/generated/validators/funds.zod.d.ts +1 -1
  174. package/dist/billing/v1/generated/validators/funds.zod.js +4 -4
  175. package/dist/billing/v1/generated/validators/getPlanHeaders.zod.d.ts +1 -1
  176. package/dist/billing/v1/generated/validators/getPlanHeaders.zod.js +1 -1
  177. package/dist/billing/v1/generated/validators/getPriceHeaders.zod.d.ts +1 -1
  178. package/dist/billing/v1/generated/validators/getPriceHeaders.zod.js +1 -1
  179. package/dist/billing/v1/generated/validators/getProductHeaders.zod.d.ts +1 -1
  180. package/dist/billing/v1/generated/validators/getProductHeaders.zod.js +1 -1
  181. package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.d.ts +1 -1
  182. package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.js +1 -1
  183. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
  184. package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
  185. package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -1
  186. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +2 -2
  187. package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -1
  188. package/dist/billing/v1/generated/validators/invoiceItemList.zod.js +1 -1
  189. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.d.ts +1 -1
  190. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +2 -2
  191. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  192. package/dist/billing/v1/generated/validators/invoiceList.zod.js +1 -1
  193. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
  194. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +1 -1
  195. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
  196. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
  197. package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +1 -1
  198. package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +1 -1
  199. package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +1 -1
  200. package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +3 -3
  201. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
  202. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +3 -3
  203. package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.d.ts +1 -1
  204. package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.js +1 -1
  205. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +2 -1
  206. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +2 -1
  207. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +1 -1
  208. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +1 -1
  209. package/dist/billing/v1/generated/validators/listContactsParams.zod.d.ts +1 -1
  210. package/dist/billing/v1/generated/validators/listContactsParams.zod.js +1 -1
  211. package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
  212. package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +1 -1
  213. package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.d.ts +1 -1
  214. package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.js +1 -1
  215. package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +1 -1
  216. package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +1 -1
  217. package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.d.ts +1 -1
  218. package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.js +1 -1
  219. package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.d.ts +1 -1
  220. package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +3 -3
  221. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
  222. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +3 -3
  223. package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.d.ts +1 -1
  224. package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.js +1 -1
  225. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +1 -1
  226. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +1 -1
  227. package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +1 -1
  228. package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +1 -1
  229. package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.d.ts +1 -1
  230. package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.js +1 -1
  231. package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
  232. package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +1 -1
  233. package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +1 -1
  234. package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +1 -1
  235. package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.d.ts +1 -1
  236. package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.js +1 -1
  237. package/dist/billing/v1/generated/validators/listPlansHeaders.zod.d.ts +1 -1
  238. package/dist/billing/v1/generated/validators/listPlansHeaders.zod.js +1 -1
  239. package/dist/billing/v1/generated/validators/listPlansParams.zod.d.ts +1 -1
  240. package/dist/billing/v1/generated/validators/listPlansParams.zod.js +1 -1
  241. package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.d.ts +1 -1
  242. package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.js +1 -1
  243. package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.d.ts +1 -1
  244. package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.js +1 -1
  245. package/dist/billing/v1/generated/validators/listPricesHeaders.zod.d.ts +1 -1
  246. package/dist/billing/v1/generated/validators/listPricesHeaders.zod.js +1 -1
  247. package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +1 -1
  248. package/dist/billing/v1/generated/validators/listPricesParams.zod.js +3 -3
  249. package/dist/billing/v1/generated/validators/listProductsHeaders.zod.d.ts +1 -1
  250. package/dist/billing/v1/generated/validators/listProductsHeaders.zod.js +1 -1
  251. package/dist/billing/v1/generated/validators/listProductsParams.zod.d.ts +1 -1
  252. package/dist/billing/v1/generated/validators/listProductsParams.zod.js +1 -1
  253. package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.d.ts +1 -1
  254. package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.js +1 -1
  255. package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +1 -1
  256. package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +1 -1
  257. package/dist/billing/v1/generated/validators/listRenewalOptionsParams.zod.d.ts +18 -0
  258. package/dist/billing/v1/generated/validators/listRenewalOptionsParams.zod.js +24 -0
  259. package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -1
  260. package/dist/billing/v1/generated/validators/listSpendParams.zod.js +3 -3
  261. package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +1 -1
  262. package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +1 -1
  263. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +5 -2
  264. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +8 -2
  265. package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +1 -1
  266. package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +1 -1
  267. package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +1 -1
  268. package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +1 -1
  269. package/dist/billing/v1/generated/validators/listTrialGrantsParams.zod.d.ts +27 -0
  270. package/dist/billing/v1/generated/validators/listTrialGrantsParams.zod.js +28 -0
  271. package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.d.ts +1 -1
  272. package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +3 -3
  273. package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +1 -1
  274. package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +1 -1
  275. package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +1 -1
  276. package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +1 -1
  277. package/dist/billing/v1/generated/validators/money.zod.d.ts +1 -1
  278. package/dist/billing/v1/generated/validators/money.zod.js +1 -1
  279. package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +1 -1
  280. package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +1 -1
  281. package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +1 -1
  282. package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +1 -1
  283. package/dist/billing/v1/generated/validators/namedIdentity.zod.d.ts +1 -1
  284. package/dist/billing/v1/generated/validators/namedIdentity.zod.js +1 -1
  285. package/dist/billing/v1/generated/validators/objectIdentity.zod.d.ts +1 -1
  286. package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
  287. package/dist/billing/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
  288. package/dist/billing/v1/generated/validators/offsetPagination.zod.js +1 -1
  289. package/dist/billing/v1/generated/validators/order.zod.d.ts +2 -1
  290. package/dist/billing/v1/generated/validators/order.zod.js +3 -3
  291. package/dist/billing/v1/generated/validators/orderCancel.zod.d.ts +1 -1
  292. package/dist/billing/v1/generated/validators/orderCancel.zod.js +1 -1
  293. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +2 -1
  294. package/dist/billing/v1/generated/validators/orderItem.zod.js +9 -5
  295. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +2 -1
  296. package/dist/billing/v1/generated/validators/orderItemList.zod.js +1 -1
  297. package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
  298. package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +2 -2
  299. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +2 -1
  300. package/dist/billing/v1/generated/validators/orderList.zod.js +1 -1
  301. package/dist/billing/v1/generated/validators/orderRefundPreview.zod.d.ts +1 -1
  302. package/dist/billing/v1/generated/validators/orderRefundPreview.zod.js +2 -2
  303. package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
  304. package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
  305. package/dist/billing/v1/generated/validators/paidWith.zod.d.ts +1 -1
  306. package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
  307. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -1
  308. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +1 -1
  309. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -1
  310. package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +1 -1
  311. package/dist/billing/v1/generated/validators/paymentAction.zod.d.ts +1 -1
  312. package/dist/billing/v1/generated/validators/paymentAction.zod.js +1 -1
  313. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -1
  314. package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
  315. package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
  316. package/dist/billing/v1/generated/validators/paymentMethod.zod.js +1 -1
  317. package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
  318. package/dist/billing/v1/generated/validators/paymentMethodList.zod.js +1 -1
  319. package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -1
  320. package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.js +1 -1
  321. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -1
  322. package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -1
  323. package/dist/billing/v1/generated/validators/paymentOption.zod.d.ts +1 -1
  324. package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
  325. package/dist/billing/v1/generated/validators/paymentOptionList.zod.d.ts +1 -1
  326. package/dist/billing/v1/generated/validators/paymentOptionList.zod.js +1 -1
  327. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -1
  328. package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
  329. package/dist/billing/v1/generated/validators/paymentPreview.zod.d.ts +1 -1
  330. package/dist/billing/v1/generated/validators/paymentPreview.zod.js +1 -1
  331. package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -1
  332. package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -1
  333. package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
  334. package/dist/billing/v1/generated/validators/paymentResult.zod.js +1 -1
  335. package/dist/billing/v1/generated/validators/paymentStatus.zod.d.ts +1 -1
  336. package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
  337. package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -1
  338. package/dist/billing/v1/generated/validators/plan.zod.js +3 -3
  339. package/dist/billing/v1/generated/validators/planFeature.zod.d.ts +1 -1
  340. package/dist/billing/v1/generated/validators/planFeature.zod.js +1 -1
  341. package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -1
  342. package/dist/billing/v1/generated/validators/planList.zod.js +1 -1
  343. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +1 -1
  344. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +1 -1
  345. package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.d.ts +1 -1
  346. package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +1 -1
  347. package/dist/billing/v1/generated/validators/price.zod.d.ts +1 -1
  348. package/dist/billing/v1/generated/validators/price.zod.js +3 -3
  349. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +1 -1
  350. package/dist/billing/v1/generated/validators/priceList.zod.js +1 -1
  351. package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +1 -1
  352. package/dist/billing/v1/generated/validators/priceOption.zod.js +1 -1
  353. package/dist/billing/v1/generated/validators/priceSearch.zod.d.ts +1 -1
  354. package/dist/billing/v1/generated/validators/priceSearch.zod.js +3 -3
  355. package/dist/billing/v1/generated/validators/priceType.zod.d.ts +1 -1
  356. package/dist/billing/v1/generated/validators/priceType.zod.js +1 -1
  357. package/dist/billing/v1/generated/validators/product.zod.d.ts +1 -1
  358. package/dist/billing/v1/generated/validators/product.zod.js +3 -3
  359. package/dist/billing/v1/generated/validators/productId.zod.d.ts +13 -0
  360. package/dist/billing/v1/generated/validators/productId.zod.js +16 -0
  361. package/dist/billing/v1/generated/validators/productList.zod.d.ts +1 -1
  362. package/dist/billing/v1/generated/validators/productList.zod.js +1 -1
  363. package/dist/billing/v1/generated/validators/projectAssignment.zod.d.ts +1 -1
  364. package/dist/billing/v1/generated/validators/projectAssignment.zod.js +1 -1
  365. package/dist/billing/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -1
  366. package/dist/billing/v1/generated/validators/projectAssignmentList.zod.js +1 -1
  367. package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
  368. package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
  369. package/dist/billing/v1/generated/validators/rate.zod.d.ts +1 -1
  370. package/dist/billing/v1/generated/validators/rate.zod.js +1 -1
  371. package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -1
  372. package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
  373. package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -1
  374. package/dist/billing/v1/generated/validators/refundList.zod.js +1 -1
  375. package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -1
  376. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
  377. package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
  378. package/dist/billing/v1/generated/validators/refundReason.zod.js +2 -2
  379. package/dist/billing/v1/generated/validators/refundStatus.zod.d.ts +1 -1
  380. package/dist/billing/v1/generated/validators/refundStatus.zod.js +1 -1
  381. package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  382. package/dist/billing/v1/generated/validators/renewRequest.zod.js +4 -4
  383. package/dist/billing/v1/generated/validators/renewalOption.zod.d.ts +37 -0
  384. package/dist/billing/v1/generated/validators/renewalOption.zod.js +22 -0
  385. package/dist/billing/v1/generated/validators/renewalOptionItem.zod.d.ts +26 -0
  386. package/dist/billing/v1/generated/validators/renewalOptionItem.zod.js +25 -0
  387. package/dist/billing/v1/generated/validators/renewalOptionList.zod.d.ts +44 -0
  388. package/dist/billing/v1/generated/validators/renewalOptionList.zod.js +14 -0
  389. package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
  390. package/dist/billing/v1/generated/validators/scheduledChange.zod.js +2 -2
  391. package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -1
  392. package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -1
  393. package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +1 -1
  394. package/dist/billing/v1/generated/validators/spendRow.zod.js +1 -1
  395. package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +1 -1
  396. package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
  397. package/dist/billing/v1/generated/validators/statement.zod.d.ts +1 -1
  398. package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
  399. package/dist/billing/v1/generated/validators/statementAmounts.zod.d.ts +1 -1
  400. package/dist/billing/v1/generated/validators/statementAmounts.zod.js +1 -1
  401. package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -1
  402. package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
  403. package/dist/billing/v1/generated/validators/statementList.zod.d.ts +1 -1
  404. package/dist/billing/v1/generated/validators/statementList.zod.js +1 -1
  405. package/dist/billing/v1/generated/validators/statementStatus.zod.d.ts +1 -1
  406. package/dist/billing/v1/generated/validators/statementStatus.zod.js +1 -1
  407. package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -1
  408. package/dist/billing/v1/generated/validators/statementSummary.zod.js +1 -1
  409. package/dist/billing/v1/generated/validators/statementType.zod.d.ts +1 -1
  410. package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
  411. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +132 -113
  412. package/dist/billing/v1/generated/validators/subscription.zod.js +40 -74
  413. package/dist/billing/v1/generated/validators/subscriptionData.zod.d.ts +25 -0
  414. package/dist/billing/v1/generated/validators/subscriptionData.zod.js +27 -0
  415. package/dist/billing/v1/generated/validators/subscriptionDataInput.zod.d.ts +25 -0
  416. package/dist/billing/v1/generated/validators/subscriptionDataInput.zod.js +22 -0
  417. package/dist/billing/v1/generated/validators/subscriptionItem.zod.d.ts +104 -0
  418. package/dist/billing/v1/generated/validators/subscriptionItem.zod.js +74 -0
  419. package/dist/billing/v1/generated/validators/{subscriptionCancellation.zod.d.ts → subscriptionItemCancellation.zod.d.ts} +5 -5
  420. package/dist/billing/v1/generated/validators/subscriptionItemCancellation.zod.js +31 -0
  421. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +132 -112
  422. package/dist/billing/v1/generated/validators/subscriptionList.zod.js +1 -1
  423. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.d.ts +1 -1
  424. package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
  425. package/dist/billing/v1/generated/validators/subscriptionStatus.zod.d.ts +2 -1
  426. package/dist/billing/v1/generated/validators/subscriptionStatus.zod.js +3 -3
  427. package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.d.ts +13 -0
  428. package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.js +13 -0
  429. package/dist/billing/v1/generated/validators/taxItem.zod.d.ts +1 -1
  430. package/dist/billing/v1/generated/validators/taxItem.zod.js +1 -1
  431. package/dist/billing/v1/generated/validators/tier.zod.d.ts +1 -1
  432. package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
  433. package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
  434. package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
  435. package/dist/billing/v1/generated/validators/topUpCreate.zod.d.ts +1 -1
  436. package/dist/billing/v1/generated/validators/topUpCreate.zod.js +1 -1
  437. package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
  438. package/dist/billing/v1/generated/validators/topUpList.zod.js +1 -1
  439. package/dist/billing/v1/generated/validators/topUpStatus.zod.d.ts +1 -1
  440. package/dist/billing/v1/generated/validators/topUpStatus.zod.js +1 -1
  441. package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
  442. package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
  443. package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
  444. package/dist/billing/v1/generated/validators/transactionList.zod.js +1 -1
  445. package/dist/billing/v1/generated/validators/transactionStatus.zod.d.ts +1 -1
  446. package/dist/billing/v1/generated/validators/transactionStatus.zod.js +1 -1
  447. package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -1
  448. package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
  449. package/dist/billing/v1/generated/validators/trialEndBehavior.zod.d.ts +18 -0
  450. package/dist/billing/v1/generated/validators/trialEndBehavior.zod.js +17 -0
  451. package/dist/billing/v1/generated/validators/trialGrant.zod.d.ts +152 -0
  452. package/dist/billing/v1/generated/validators/trialGrant.zod.js +33 -0
  453. package/dist/billing/v1/generated/validators/trialGrantList.zod.d.ts +159 -0
  454. package/dist/billing/v1/generated/validators/trialGrantList.zod.js +14 -0
  455. package/dist/billing/v1/generated/validators/trialGrantStatus.zod.d.ts +17 -0
  456. package/dist/billing/v1/generated/validators/trialGrantStatus.zod.js +11 -0
  457. package/dist/billing/v1/generated/validators/trialOffer.zod.d.ts +136 -0
  458. package/dist/billing/v1/generated/validators/trialOffer.zod.js +21 -0
  459. package/dist/billing/v1/generated/validators/trialSettings.zod.d.ts +20 -0
  460. package/dist/billing/v1/generated/validators/trialSettings.zod.js +14 -0
  461. package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +2 -1
  462. package/dist/billing/v1/generated/validators/usageCharge.zod.js +3 -2
  463. package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +2 -1
  464. package/dist/billing/v1/generated/validators/usageChargeList.zod.js +1 -1
  465. package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +1 -1
  466. package/dist/billing/v1/generated/validators/usageEstimate.zod.js +1 -1
  467. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +1 -1
  468. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +3 -3
  469. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +1 -1
  470. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +1 -1
  471. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +1 -1
  472. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +1 -1
  473. package/dist/billing/v1/generated/validators/usageType.zod.d.ts +1 -1
  474. package/dist/billing/v1/generated/validators/usageType.zod.js +1 -1
  475. package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
  476. package/dist/billing/v1/generated/validators/withdrawal.zod.js +1 -1
  477. package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +1 -1
  478. package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +1 -1
  479. package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +1 -1
  480. package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +1 -1
  481. package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
  482. package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +1 -1
  483. package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
  484. package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +1 -1
  485. package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
  486. package/dist/billing/v1/generated/validators/withdrawalList.zod.js +1 -1
  487. package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +1 -1
  488. package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +1 -1
  489. package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +1 -1
  490. package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +1 -1
  491. package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +1 -1
  492. package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +1 -1
  493. package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +1 -1
  494. package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
  495. package/dist/billing/v1/generated/validators/withdrawalStatus.zod.d.ts +1 -1
  496. package/dist/billing/v1/generated/validators/withdrawalStatus.zod.js +1 -1
  497. package/dist/canopy/v1/generated/models.d.ts +15 -1
  498. package/dist/canopy/v1/generated/schemas.zod.d.ts +2 -0
  499. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +3 -0
  500. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +9 -0
  501. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +2 -0
  502. package/dist/canopy/v1/generated/validators/serviceResource.zod.js +1 -1
  503. package/dist/compute/v2/generated/functions.d.ts +373 -285
  504. package/dist/compute/v2/generated/functions.js +232 -76
  505. package/dist/compute/v2/generated/models.d.ts +379 -336
  506. package/dist/compute/v2/generated/models.js +9 -9
  507. package/dist/compute/v2/generated/schemas.zod.d.ts +176 -98
  508. package/dist/compute/v2/generated/schemas.zod.js +157 -85
  509. package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.d.ts → associateElasticIpRequestBody.zod.d.ts} +5 -5
  510. package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.js → associateElasticIpRequestBody.zod.js} +3 -3
  511. package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.d.ts +2 -2
  512. package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.js +4 -4
  513. package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.d.ts +2 -2
  514. package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.js +4 -4
  515. package/dist/compute/v2/generated/validators/{imageID.zod.d.ts → availabilityZoneId.zod.d.ts} +8 -8
  516. package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.js → availabilityZoneId.zod.js} +9 -9
  517. package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.d.ts +2 -2
  518. package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.js +2 -2
  519. package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.d.ts +2 -2
  520. package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.js +6 -6
  521. package/dist/compute/v2/generated/validators/billingCancellation.zod.d.ts +2 -2
  522. package/dist/compute/v2/generated/validators/billingCancellation.zod.js +4 -4
  523. package/dist/compute/v2/generated/validators/billingChoice.zod.d.ts +2 -2
  524. package/dist/compute/v2/generated/validators/billingChoice.zod.js +2 -2
  525. package/dist/compute/v2/generated/validators/billingComponent.zod.d.ts +2 -2
  526. package/dist/compute/v2/generated/validators/billingComponent.zod.js +3 -3
  527. package/dist/compute/v2/generated/validators/billingLineQuantity.zod.d.ts +2 -2
  528. package/dist/compute/v2/generated/validators/billingLineQuantity.zod.js +2 -2
  529. package/dist/compute/v2/generated/validators/billingMeter.zod.d.ts +2 -2
  530. package/dist/compute/v2/generated/validators/billingMeter.zod.js +2 -2
  531. package/dist/compute/v2/generated/validators/billingPeriod.zod.d.ts +2 -2
  532. package/dist/compute/v2/generated/validators/billingPeriod.zod.js +2 -2
  533. package/dist/compute/v2/generated/validators/billingQuantity.zod.d.ts +2 -2
  534. package/dist/compute/v2/generated/validators/billingQuantity.zod.js +2 -2
  535. package/dist/compute/v2/generated/validators/bootVolume.zod.d.ts +2 -2
  536. package/dist/compute/v2/generated/validators/bootVolume.zod.js +2 -2
  537. package/dist/compute/v2/generated/validators/cancellationMode.zod.d.ts +2 -2
  538. package/dist/compute/v2/generated/validators/cancellationMode.zod.js +2 -2
  539. package/dist/compute/v2/generated/validators/{updateElasticIPRequestBody.zod.d.ts → changeElasticIpBandwidthRequestBody.zod.d.ts} +8 -10
  540. package/dist/compute/v2/generated/validators/changeElasticIpBandwidthRequestBody.zod.js +47 -0
  541. package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.d.ts +43 -0
  542. package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.js +39 -0
  543. package/dist/compute/v2/generated/validators/checkoutMode.zod.d.ts +2 -2
  544. package/dist/compute/v2/generated/validators/checkoutMode.zod.js +2 -2
  545. package/dist/compute/v2/generated/validators/checkoutOptions.zod.d.ts +5 -2
  546. package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +11 -2
  547. package/dist/compute/v2/generated/validators/consoleResponseBody.zod.d.ts +2 -2
  548. package/dist/compute/v2/generated/validators/consoleResponseBody.zod.js +2 -2
  549. package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.d.ts → createElasticIpRequestBody.zod.d.ts} +11 -8
  550. package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.js → createElasticIpRequestBody.zod.js} +13 -11
  551. package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.d.ts → createElasticIpResponseBody.zod.d.ts} +9 -7
  552. package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.js → createElasticIpResponseBody.zod.js} +5 -5
  553. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +4 -2
  554. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +4 -4
  555. package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +4 -2
  556. package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.js +2 -2
  557. package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +2 -2
  558. package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.js +4 -4
  559. package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +2 -2
  560. package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.js +2 -2
  561. package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.d.ts +2 -2
  562. package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.js +2 -2
  563. package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.d.ts +2 -2
  564. package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.js +6 -6
  565. package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.d.ts +4 -2
  566. package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.js +4 -4
  567. package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +4 -2
  568. package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.js +2 -2
  569. package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
  570. package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.js +4 -4
  571. package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.d.ts +2 -2
  572. package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +2 -2
  573. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.d.ts +2 -2
  574. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.js +5 -5
  575. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.d.ts +2 -2
  576. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.js +4 -4
  577. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.d.ts +2 -2
  578. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.js +2 -2
  579. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.d.ts +2 -2
  580. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.js +2 -2
  581. package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.d.ts +4 -2
  582. package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.js +4 -4
  583. package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.d.ts +4 -2
  584. package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.js +2 -2
  585. package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.d.ts +7 -4
  586. package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.js +11 -9
  587. package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.d.ts +4 -2
  588. package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.js +2 -2
  589. package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.d.ts +4 -2
  590. package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.js +4 -4
  591. package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.d.ts +4 -2
  592. package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.js +2 -2
  593. package/dist/compute/v2/generated/validators/cursorPagination.zod.d.ts +2 -2
  594. package/dist/compute/v2/generated/validators/cursorPagination.zod.js +2 -2
  595. package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.d.ts +2 -2
  596. package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.js +2 -2
  597. package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.d.ts → deleteElasticIpResponseBody.zod.d.ts} +9 -7
  598. package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.js → deleteElasticIpResponseBody.zod.js} +7 -7
  599. package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.d.ts +2 -2
  600. package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.js +2 -2
  601. package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +4 -2
  602. package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.js +4 -4
  603. package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.d.ts +2 -2
  604. package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.js +2 -2
  605. package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +4 -2
  606. package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.js +4 -4
  607. package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.d.ts +2 -2
  608. package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.js +2 -2
  609. package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.d.ts +4 -2
  610. package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.js +4 -4
  611. package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.d.ts +2 -2
  612. package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.js +2 -2
  613. package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.d.ts +4 -2
  614. package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.js +4 -4
  615. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.d.ts +2 -2
  616. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.js +2 -2
  617. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.d.ts +4 -2
  618. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.js +4 -4
  619. package/dist/compute/v2/generated/validators/{elasticIP.zod.d.ts → elasticIp.zod.d.ts} +9 -7
  620. package/dist/compute/v2/generated/validators/{elasticIP.zod.js → elasticIp.zod.js} +23 -19
  621. package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.d.ts → elasticIpAssociation.zod.d.ts} +5 -5
  622. package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.js → elasticIpAssociation.zod.js} +12 -12
  623. package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.d.ts +41 -0
  624. package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.js +44 -0
  625. package/dist/compute/v2/generated/validators/{updateElasticIPResponseBody.zod.d.ts → elasticIpChangeResponseBody.zod.d.ts} +9 -7
  626. package/dist/compute/v2/generated/validators/{updateVolumeResponseBody.zod.js → elasticIpChangeResponseBody.zod.js} +8 -8
  627. package/dist/compute/v2/generated/validators/elasticIpId.zod.d.ts +41 -0
  628. package/dist/compute/v2/generated/validators/{elasticIPID.zod.js → elasticIpId.zod.js} +9 -9
  629. package/dist/compute/v2/generated/validators/{elasticIPLine.zod.d.ts → elasticIpLine.zod.d.ts} +8 -8
  630. package/dist/compute/v2/generated/validators/{elasticIPLine.zod.js → elasticIpLine.zod.js} +13 -13
  631. package/dist/compute/v2/generated/validators/elasticIpLineId.zod.d.ts +41 -0
  632. package/dist/compute/v2/generated/validators/elasticIpLineId.zod.js +44 -0
  633. package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.d.ts → elasticIpLineListResponseBody.zod.d.ts} +5 -5
  634. package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.js → elasticIpLineListResponseBody.zod.js} +5 -5
  635. package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.d.ts → elasticIpListResponseBody.zod.d.ts} +9 -7
  636. package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.js → elasticIpListResponseBody.zod.js} +5 -5
  637. package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.d.ts → elasticIpReleaseResource.zod.d.ts} +5 -5
  638. package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.js → elasticIpReleaseResource.zod.js} +5 -5
  639. package/dist/compute/v2/generated/validators/error.zod.d.ts +2 -2
  640. package/dist/compute/v2/generated/validators/error.zod.js +2 -2
  641. package/dist/compute/v2/generated/validators/errorStatus.zod.d.ts +2 -2
  642. package/dist/compute/v2/generated/validators/errorStatus.zod.js +2 -2
  643. package/dist/compute/v2/generated/validators/existingBootVolume.zod.d.ts +2 -2
  644. package/dist/compute/v2/generated/validators/existingBootVolume.zod.js +4 -4
  645. package/dist/compute/v2/generated/validators/{existingElasticIP.zod.d.ts → existingElasticIp.zod.d.ts} +5 -5
  646. package/dist/compute/v2/generated/validators/{existingElasticIP.zod.js → existingElasticIp.zod.js} +5 -5
  647. package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.d.ts +2 -2
  648. package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.js +4 -4
  649. package/dist/compute/v2/generated/validators/fieldViolation.zod.d.ts +2 -2
  650. package/dist/compute/v2/generated/validators/fieldViolation.zod.js +2 -2
  651. package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.d.ts +2 -2
  652. package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.js +2 -2
  653. package/dist/compute/v2/generated/validators/generatedPassword.zod.d.ts +2 -2
  654. package/dist/compute/v2/generated/validators/generatedPassword.zod.js +2 -2
  655. package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.d.ts +2 -2
  656. package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.js +2 -2
  657. package/dist/compute/v2/generated/validators/imageId.zod.d.ts +41 -0
  658. package/dist/compute/v2/generated/validators/{imageID.zod.js → imageId.zod.js} +9 -9
  659. package/dist/compute/v2/generated/validators/instance.zod.d.ts +4 -2
  660. package/dist/compute/v2/generated/validators/instance.zod.js +26 -22
  661. package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.d.ts +2 -2
  662. package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.js +4 -4
  663. package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.d.ts → instanceElasticIp.zod.d.ts} +5 -5
  664. package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.js → instanceElasticIp.zod.js} +6 -6
  665. package/dist/compute/v2/generated/validators/instanceFamily.zod.d.ts +2 -2
  666. package/dist/compute/v2/generated/validators/instanceFamily.zod.js +6 -6
  667. package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.d.ts +2 -2
  668. package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.js +2 -2
  669. package/dist/compute/v2/generated/validators/instanceFamilyId.zod.d.ts +41 -0
  670. package/dist/compute/v2/generated/validators/{instanceFamilyID.zod.js → instanceFamilyId.zod.js} +9 -9
  671. package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.d.ts +2 -2
  672. package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.js +2 -2
  673. package/dist/compute/v2/generated/validators/instanceId.zod.d.ts +41 -0
  674. package/dist/compute/v2/generated/validators/{instanceID.zod.js → instanceId.zod.js} +9 -9
  675. package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +4 -2
  676. package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.js +2 -2
  677. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.d.ts +41 -0
  678. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.js +44 -0
  679. package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.d.ts +2 -2
  680. package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.js +4 -4
  681. package/dist/compute/v2/generated/validators/instanceRestriction.zod.d.ts +2 -2
  682. package/dist/compute/v2/generated/validators/instanceRestriction.zod.js +5 -5
  683. package/dist/compute/v2/generated/validators/instanceType.zod.d.ts +2 -2
  684. package/dist/compute/v2/generated/validators/instanceType.zod.js +10 -10
  685. package/dist/compute/v2/generated/validators/instanceTypeId.zod.d.ts +41 -0
  686. package/dist/compute/v2/generated/validators/{instanceTypeID.zod.js → instanceTypeId.zod.js} +9 -9
  687. package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.d.ts +2 -2
  688. package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
  689. package/dist/compute/v2/generated/validators/instanceVolumeId.zod.d.ts +41 -0
  690. package/dist/compute/v2/generated/validators/{instanceVolumeID.zod.js → instanceVolumeId.zod.js} +9 -9
  691. package/dist/compute/v2/generated/validators/internetChargeType.zod.d.ts +2 -2
  692. package/dist/compute/v2/generated/validators/internetChargeType.zod.js +3 -3
  693. package/dist/compute/v2/generated/validators/ipv4HostAddress.zod.d.ts +41 -0
  694. package/dist/compute/v2/generated/validators/{iPv4HostAddress.zod.js → ipv4HostAddress.zod.js} +9 -9
  695. package/dist/compute/v2/generated/validators/latestOperation.zod.d.ts +2 -2
  696. package/dist/compute/v2/generated/validators/latestOperation.zod.js +2 -2
  697. package/dist/compute/v2/generated/validators/launchTemplate.zod.d.ts +2 -2
  698. package/dist/compute/v2/generated/validators/launchTemplate.zod.js +6 -6
  699. package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.d.ts +2 -2
  700. package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.js +6 -6
  701. package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.d.ts +2 -2
  702. package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.js +4 -4
  703. package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.d.ts → launchTemplateElasticIp.zod.d.ts} +6 -6
  704. package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.js → launchTemplateElasticIp.zod.js} +7 -7
  705. package/dist/compute/v2/generated/validators/launchTemplateId.zod.d.ts +41 -0
  706. package/dist/compute/v2/generated/validators/{launchTemplateID.zod.js → launchTemplateId.zod.js} +9 -9
  707. package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.d.ts +2 -2
  708. package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.js +2 -2
  709. package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.d.ts +2 -2
  710. package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.js +6 -6
  711. package/dist/compute/v2/generated/validators/launchTemplateReference.zod.d.ts +2 -2
  712. package/dist/compute/v2/generated/validators/launchTemplateReference.zod.js +4 -4
  713. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +2 -2
  714. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +8 -8
  715. package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +2 -2
  716. package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.js +2 -2
  717. package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
  718. package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.js +4 -4
  719. package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.d.ts +2 -2
  720. package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.js +4 -4
  721. package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.d.ts +2 -2
  722. package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.js +2 -2
  723. package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.d.ts +2 -2
  724. package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.js +2 -2
  725. package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.d.ts +2 -2
  726. package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.js +4 -4
  727. package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.d.ts +2 -2
  728. package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.js +2 -2
  729. package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
  730. package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.js +8 -8
  731. package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.d.ts +2 -2
  732. package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.js +2 -2
  733. package/dist/compute/v2/generated/validators/listInstancesParams.zod.d.ts +2 -2
  734. package/dist/compute/v2/generated/validators/listInstancesParams.zod.js +2 -2
  735. package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.d.ts +2 -2
  736. package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.js +2 -2
  737. package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.d.ts +2 -2
  738. package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.js +4 -4
  739. package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.d.ts +2 -2
  740. package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.js +2 -2
  741. package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
  742. package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.js +2 -2
  743. package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.d.ts +2 -2
  744. package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.js +4 -4
  745. package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.d.ts +2 -2
  746. package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.js +4 -4
  747. package/dist/compute/v2/generated/validators/listQuotasParams.zod.d.ts +2 -2
  748. package/dist/compute/v2/generated/validators/listQuotasParams.zod.js +2 -2
  749. package/dist/compute/v2/generated/validators/listRegionsParams.zod.d.ts +2 -2
  750. package/dist/compute/v2/generated/validators/listRegionsParams.zod.js +2 -2
  751. package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
  752. package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
  753. package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
  754. package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.js +6 -6
  755. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.d.ts +2 -2
  756. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.js +2 -2
  757. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.d.ts +2 -2
  758. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.js +2 -2
  759. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.d.ts +2 -2
  760. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.js +2 -2
  761. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.d.ts +2 -2
  762. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.js +4 -4
  763. package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.d.ts +2 -2
  764. package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.js +4 -4
  765. package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.d.ts +2 -2
  766. package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.js +4 -4
  767. package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.d.ts +2 -2
  768. package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.js +6 -6
  769. package/dist/compute/v2/generated/validators/listVolumesParams.zod.d.ts +2 -2
  770. package/dist/compute/v2/generated/validators/listVolumesParams.zod.js +6 -6
  771. package/dist/compute/v2/generated/validators/money.zod.d.ts +2 -2
  772. package/dist/compute/v2/generated/validators/money.zod.js +2 -2
  773. package/dist/compute/v2/generated/validators/networkInterface.zod.d.ts +2 -2
  774. package/dist/compute/v2/generated/validators/networkInterface.zod.js +8 -8
  775. package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.d.ts +2 -2
  776. package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.js +6 -6
  777. package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.d.ts +2 -2
  778. package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.js +4 -4
  779. package/dist/compute/v2/generated/validators/{regionID.zod.d.ts → networkInterfaceAddressId.zod.d.ts} +8 -8
  780. package/dist/compute/v2/generated/validators/networkInterfaceAddressId.zod.js +44 -0
  781. package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.d.ts +2 -2
  782. package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.js +8 -8
  783. package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.d.ts +2 -2
  784. package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.js +2 -2
  785. package/dist/compute/v2/generated/validators/networkInterfaceId.zod.d.ts +41 -0
  786. package/dist/compute/v2/generated/validators/{networkInterfaceID.zod.js → networkInterfaceId.zod.js} +9 -9
  787. package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.d.ts +2 -2
  788. package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.js +2 -2
  789. package/dist/compute/v2/generated/validators/newBootVolume.zod.d.ts +2 -2
  790. package/dist/compute/v2/generated/validators/newBootVolume.zod.js +6 -6
  791. package/dist/compute/v2/generated/validators/newCompute.zod.d.ts +2 -2
  792. package/dist/compute/v2/generated/validators/newCompute.zod.js +4 -4
  793. package/dist/compute/v2/generated/validators/newDataVolume.zod.d.ts +2 -2
  794. package/dist/compute/v2/generated/validators/newDataVolume.zod.js +4 -4
  795. package/dist/compute/v2/generated/validators/{newElasticIP.zod.d.ts → newElasticIp.zod.d.ts} +6 -6
  796. package/dist/compute/v2/generated/validators/{newElasticIP.zod.js → newElasticIp.zod.js} +7 -7
  797. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +2 -2
  798. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +6 -6
  799. package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.d.ts +2 -2
  800. package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.js +6 -6
  801. package/dist/compute/v2/generated/validators/offsetPagination.zod.d.ts +2 -2
  802. package/dist/compute/v2/generated/validators/offsetPagination.zod.js +2 -2
  803. package/dist/compute/v2/generated/validators/operationLogId.zod.d.ts +41 -0
  804. package/dist/compute/v2/generated/validators/{operationLogID.zod.js → operationLogId.zod.js} +9 -9
  805. package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
  806. package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.js +2 -2
  807. package/dist/compute/v2/generated/validators/operationLogResource.zod.d.ts +2 -2
  808. package/dist/compute/v2/generated/validators/operationLogResource.zod.js +6 -6
  809. package/dist/compute/v2/generated/validators/passwordChoice.zod.d.ts +2 -2
  810. package/dist/compute/v2/generated/validators/passwordChoice.zod.js +2 -2
  811. package/dist/compute/v2/generated/validators/performanceFormula.zod.d.ts +2 -2
  812. package/dist/compute/v2/generated/validators/performanceFormula.zod.js +2 -2
  813. package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.d.ts +2 -2
  814. package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.js +2 -2
  815. package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +4 -2
  816. package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.js +2 -2
  817. package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.d.ts +2 -2
  818. package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.js +4 -4
  819. package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +4 -2
  820. package/dist/compute/v2/generated/validators/privateImageResource.zod.js +14 -10
  821. package/dist/compute/v2/generated/validators/projectQuota.zod.d.ts +2 -2
  822. package/dist/compute/v2/generated/validators/projectQuota.zod.js +4 -4
  823. package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.d.ts +2 -2
  824. package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.js +2 -2
  825. package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +2 -2
  826. package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.js +2 -2
  827. package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +2 -2
  828. package/dist/compute/v2/generated/validators/publicImageResource.zod.js +6 -6
  829. package/dist/compute/v2/generated/validators/quotaResourceType.zod.d.ts +2 -2
  830. package/dist/compute/v2/generated/validators/quotaResourceType.zod.js +2 -2
  831. package/dist/compute/v2/generated/validators/quotaSource.zod.d.ts +2 -2
  832. package/dist/compute/v2/generated/validators/quotaSource.zod.js +2 -2
  833. package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
  834. package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
  835. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
  836. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +4 -4
  837. package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +4 -2
  838. package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
  839. package/dist/compute/v2/generated/validators/regionId.zod.d.ts +41 -0
  840. package/dist/compute/v2/generated/validators/{regionID.zod.js → regionId.zod.js} +9 -9
  841. package/dist/compute/v2/generated/validators/regionListResponseBody.zod.d.ts +2 -2
  842. package/dist/compute/v2/generated/validators/regionListResponseBody.zod.js +2 -2
  843. package/dist/compute/v2/generated/validators/regionResource.zod.d.ts +2 -2
  844. package/dist/compute/v2/generated/validators/regionResource.zod.js +4 -4
  845. package/dist/compute/v2/generated/validators/releaseResource.zod.d.ts +2 -2
  846. package/dist/compute/v2/generated/validators/releaseResource.zod.js +4 -4
  847. package/dist/compute/v2/generated/validators/releaseSetItem.zod.d.ts +3 -2
  848. package/dist/compute/v2/generated/validators/releaseSetItem.zod.js +5 -4
  849. package/dist/compute/v2/generated/validators/{elasticIPLineID.zod.d.ts → replaceNetworkInterfaceSecurityGroupsRequestBody.zod.d.ts} +8 -8
  850. package/dist/compute/v2/generated/validators/{elasticIPID.zod.d.ts → replaceNetworkInterfaceSecurityGroupsRequestBody.zod.js} +11 -8
  851. package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +4 -2
  852. package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.js +2 -2
  853. package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.d.ts +2 -2
  854. package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.js +2 -2
  855. package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.d.ts +51 -0
  856. package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.js +45 -0
  857. package/dist/compute/v2/generated/validators/{updateInstanceResponseBody.zod.d.ts → resizeInstanceResponseBody.zod.d.ts} +8 -6
  858. package/dist/compute/v2/generated/validators/resizeInstanceResponseBody.zod.js +48 -0
  859. package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.d.ts +51 -0
  860. package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.js +44 -0
  861. package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.d.ts +51 -0
  862. package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.js +45 -0
  863. package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.d.ts +2 -2
  864. package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.js +4 -4
  865. package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.d.ts +2 -2
  866. package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.js +2 -2
  867. package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.d.ts +2 -2
  868. package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.js +2 -2
  869. package/dist/compute/v2/generated/validators/securityGroup.zod.d.ts +2 -2
  870. package/dist/compute/v2/generated/validators/securityGroup.zod.js +6 -6
  871. package/dist/compute/v2/generated/validators/securityGroupId.zod.d.ts +41 -0
  872. package/dist/compute/v2/generated/validators/{securityGroupID.zod.js → securityGroupId.zod.js} +9 -9
  873. package/dist/compute/v2/generated/validators/securityGroupIdOrWildcard.zod.d.ts +39 -0
  874. package/dist/compute/v2/generated/validators/{securityGroupIDOrWildcard.zod.js → securityGroupIdOrWildcard.zod.js} +5 -5
  875. package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
  876. package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.js +2 -2
  877. package/dist/compute/v2/generated/validators/securityGroupRule.zod.d.ts +2 -2
  878. package/dist/compute/v2/generated/validators/securityGroupRule.zod.js +6 -6
  879. package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.d.ts +2 -2
  880. package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.js +2 -2
  881. package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.d.ts +41 -0
  882. package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.js +44 -0
  883. package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.d.ts +2 -2
  884. package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.js +2 -2
  885. package/dist/compute/v2/generated/validators/subnetId.zod.d.ts +41 -0
  886. package/dist/compute/v2/generated/validators/{subnetID.zod.js → subnetId.zod.js} +9 -9
  887. package/dist/compute/v2/generated/validators/suppliedPassword.zod.d.ts +2 -2
  888. package/dist/compute/v2/generated/validators/suppliedPassword.zod.js +2 -2
  889. package/dist/compute/v2/generated/validators/terminationPolicy.zod.d.ts +2 -2
  890. package/dist/compute/v2/generated/validators/terminationPolicy.zod.js +2 -2
  891. package/dist/compute/v2/generated/validators/trafficUsage.zod.d.ts +2 -2
  892. package/dist/compute/v2/generated/validators/trafficUsage.zod.js +2 -2
  893. package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.d.ts +2 -2
  894. package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.js +2 -2
  895. package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.d.ts +2 -12
  896. package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.js +3 -11
  897. package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.d.ts +2 -2
  898. package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.js +2 -2
  899. package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.d.ts +2 -4
  900. package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.js +3 -11
  901. package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.d.ts +2 -2
  902. package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.js +2 -2
  903. package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.d.ts +2 -2
  904. package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.js +2 -2
  905. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.d.ts +2 -2
  906. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.js +2 -2
  907. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.d.ts +2 -2
  908. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.js +2 -2
  909. package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.d.ts +2 -2
  910. package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.js +2 -2
  911. package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.d.ts +2 -13
  912. package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.js +3 -16
  913. package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.d.ts +2 -2
  914. package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.js +2 -2
  915. package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.d.ts +2 -2
  916. package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.js +6 -6
  917. package/dist/compute/v2/generated/validators/virtualPrivateCloudId.zod.d.ts +41 -0
  918. package/dist/compute/v2/generated/validators/{virtualPrivateCloudID.zod.js → virtualPrivateCloudId.zod.js} +9 -9
  919. package/dist/compute/v2/generated/validators/virtualPrivateCloudIdOrWildcard.zod.d.ts +39 -0
  920. package/dist/compute/v2/generated/validators/{virtualPrivateCloudIDOrWildcard.zod.js → virtualPrivateCloudIdOrWildcard.zod.js} +5 -5
  921. package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.d.ts +2 -2
  922. package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.js +2 -2
  923. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.d.ts +41 -0
  924. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.js +44 -0
  925. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.d.ts +2 -2
  926. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.js +2 -2
  927. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.d.ts +2 -2
  928. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.js +9 -9
  929. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.d.ts +41 -0
  930. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.js +44 -0
  931. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.d.ts +2 -2
  932. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.js +2 -2
  933. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.d.ts +2 -2
  934. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.js +8 -8
  935. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.d.ts +2 -2
  936. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.js +2 -2
  937. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.d.ts +2 -2
  938. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.js +6 -6
  939. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.d.ts +2 -2
  940. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.js +2 -2
  941. package/dist/compute/v2/generated/validators/volumeAttachment.zod.d.ts +2 -2
  942. package/dist/compute/v2/generated/validators/volumeAttachment.zod.js +8 -8
  943. package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.d.ts +2 -2
  944. package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.js +2 -2
  945. package/dist/compute/v2/generated/validators/volumeBackupId.zod.d.ts +41 -0
  946. package/dist/compute/v2/generated/validators/{volumeBackupID.zod.js → volumeBackupId.zod.js} +9 -9
  947. package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.d.ts +4 -2
  948. package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.js +2 -2
  949. package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.d.ts +2 -2
  950. package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.js +4 -4
  951. package/dist/compute/v2/generated/validators/volumeBackupResource.zod.d.ts +4 -2
  952. package/dist/compute/v2/generated/validators/volumeBackupResource.zod.js +16 -12
  953. package/dist/compute/v2/generated/validators/{updateVolumeResponseBody.zod.d.ts → volumeChangeResponseBody.zod.d.ts} +8 -6
  954. package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.d.ts → volumeChangeResponseBody.zod.js} +15 -8
  955. package/dist/compute/v2/generated/validators/volumeId.zod.d.ts +41 -0
  956. package/dist/compute/v2/generated/validators/{volumeID.zod.js → volumeId.zod.js} +9 -9
  957. package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.d.ts +4 -2
  958. package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.js +2 -2
  959. package/dist/compute/v2/generated/validators/volumePerformance.zod.d.ts +2 -2
  960. package/dist/compute/v2/generated/validators/volumePerformance.zod.js +2 -2
  961. package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.d.ts +2 -2
  962. package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.js +4 -4
  963. package/dist/compute/v2/generated/validators/volumeResource.zod.d.ts +4 -2
  964. package/dist/compute/v2/generated/validators/volumeResource.zod.js +16 -12
  965. package/dist/compute/v2/generated/validators/volumeSnapshotId.zod.d.ts +41 -0
  966. package/dist/compute/v2/generated/validators/{volumeSnapshotID.zod.js → volumeSnapshotId.zod.js} +9 -9
  967. package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.d.ts +4 -2
  968. package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.js +2 -2
  969. package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.d.ts +2 -2
  970. package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.js +4 -4
  971. package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.d.ts +4 -2
  972. package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.js +16 -12
  973. package/dist/compute/v2/generated/validators/volumeTypeId.zod.d.ts +41 -0
  974. package/dist/compute/v2/generated/validators/{volumeTypeID.zod.js → volumeTypeId.zod.js} +9 -9
  975. package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.d.ts +2 -2
  976. package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.js +2 -2
  977. package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.d.ts +2 -2
  978. package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.js +2 -2
  979. package/dist/compute/v2/generated/validators/volumeTypeResource.zod.d.ts +2 -2
  980. package/dist/compute/v2/generated/validators/volumeTypeResource.zod.js +8 -8
  981. package/dist/membership/v1/generated/functions.d.ts +1 -1
  982. package/dist/membership/v1/generated/functions.js +1 -1
  983. package/dist/membership/v1/generated/models.d.ts +14 -0
  984. package/dist/membership/v1/generated/schemas.zod.d.ts +5 -1
  985. package/dist/membership/v1/generated/schemas.zod.js +1 -1
  986. package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +3 -0
  987. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +9 -0
  988. package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +2 -0
  989. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +2 -0
  990. package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +19 -7
  991. package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.js +1 -1
  992. package/dist/routes.d.ts +84 -36
  993. package/dist/routes.js +91 -37
  994. package/dist/swas/v1/generated/models.d.ts +6 -6
  995. package/dist/swas/v1/generated/validators/instancePrice.zod.js +1 -1
  996. package/dist/swas/v1/generated/validators/price.zod.js +1 -1
  997. package/dist/swas/v1/generated/validators/priceOption.zod.js +2 -2
  998. package/dist/swas/v1/generated/validators/purchase.zod.js +1 -1
  999. package/dist/swas/v1/generated/validators/purchaseCreate.zod.js +1 -1
  1000. package/package.json +1 -1
  1001. package/dist/billing/v1/generated/validators/autoRenewSet.zod.d.ts +0 -13
  1002. package/dist/billing/v1/generated/validators/autoRenewSet.zod.js +0 -11
  1003. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +0 -27
  1004. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +0 -14
  1005. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +0 -14
  1006. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +0 -12
  1007. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +0 -18
  1008. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +0 -24
  1009. package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.d.ts +0 -18
  1010. package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.js +0 -24
  1011. package/dist/billing/v1/generated/validators/productID.zod.d.ts +0 -13
  1012. package/dist/billing/v1/generated/validators/productID.zod.js +0 -16
  1013. package/dist/billing/v1/generated/validators/quote.zod.d.ts +0 -105
  1014. package/dist/billing/v1/generated/validators/quote.zod.js +0 -37
  1015. package/dist/billing/v1/generated/validators/quoteAddress.zod.d.ts +0 -16
  1016. package/dist/billing/v1/generated/validators/quoteAddress.zod.js +0 -22
  1017. package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +0 -42
  1018. package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +0 -38
  1019. package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.d.ts +0 -14
  1020. package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +0 -15
  1021. package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +0 -51
  1022. package/dist/billing/v1/generated/validators/quoteItem.zod.js +0 -70
  1023. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +0 -41
  1024. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +0 -34
  1025. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +0 -27
  1026. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +0 -26
  1027. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +0 -27
  1028. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +0 -24
  1029. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +0 -101
  1030. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +0 -57
  1031. package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +0 -29
  1032. package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +0 -32
  1033. package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +0 -33
  1034. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +0 -25
  1035. package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +0 -40
  1036. package/dist/billing/v1/generated/validators/renewalPriceList.zod.js +0 -14
  1037. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +0 -31
  1038. package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.d.ts +0 -41
  1039. package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.js +0 -44
  1040. package/dist/compute/v2/generated/validators/elasticIPLineID.zod.js +0 -44
  1041. package/dist/compute/v2/generated/validators/iPv4HostAddress.zod.d.ts +0 -41
  1042. package/dist/compute/v2/generated/validators/instanceFamilyID.zod.d.ts +0 -41
  1043. package/dist/compute/v2/generated/validators/instanceID.zod.d.ts +0 -41
  1044. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.d.ts +0 -41
  1045. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.js +0 -44
  1046. package/dist/compute/v2/generated/validators/instanceTypeID.zod.d.ts +0 -41
  1047. package/dist/compute/v2/generated/validators/instanceVolumeID.zod.d.ts +0 -41
  1048. package/dist/compute/v2/generated/validators/launchTemplateID.zod.d.ts +0 -41
  1049. package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.d.ts +0 -41
  1050. package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.js +0 -44
  1051. package/dist/compute/v2/generated/validators/networkInterfaceID.zod.d.ts +0 -41
  1052. package/dist/compute/v2/generated/validators/operationLogID.zod.d.ts +0 -41
  1053. package/dist/compute/v2/generated/validators/securityGroupID.zod.d.ts +0 -41
  1054. package/dist/compute/v2/generated/validators/securityGroupIDOrWildcard.zod.d.ts +0 -39
  1055. package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.d.ts +0 -41
  1056. package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.js +0 -44
  1057. package/dist/compute/v2/generated/validators/subnetID.zod.d.ts +0 -41
  1058. package/dist/compute/v2/generated/validators/updateElasticIPRequestBody.zod.js +0 -48
  1059. package/dist/compute/v2/generated/validators/updateElasticIPResponseBody.zod.js +0 -49
  1060. package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.js +0 -49
  1061. package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.d.ts +0 -41
  1062. package/dist/compute/v2/generated/validators/virtualPrivateCloudIDOrWildcard.zod.d.ts +0 -39
  1063. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.d.ts +0 -41
  1064. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.js +0 -44
  1065. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.d.ts +0 -41
  1066. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.js +0 -44
  1067. package/dist/compute/v2/generated/validators/volumeBackupID.zod.d.ts +0 -41
  1068. package/dist/compute/v2/generated/validators/volumeID.zod.d.ts +0 -41
  1069. package/dist/compute/v2/generated/validators/volumeSnapshotID.zod.d.ts +0 -41
  1070. package/dist/compute/v2/generated/validators/volumeTypeID.zod.d.ts +0 -41
@@ -266,7 +266,7 @@ export const getListCurrenciesUrl = (params) => {
266
266
  : `https://billing.leaflow.cloud/api/v1/currencies`;
267
267
  };
268
268
  /**
269
- * Currencies a new billing account can be opened in, and prices and quotes without an account can be given in, for anyone, signed in or not. Retired currencies are not listed.
269
+ * Currencies a new billing account can be opened in, and prices and checkout previews without an account can be given in, for anyone, signed in or not. Retired currencies are not listed.
270
270
  * @summary List currencies accounts can be opened in
271
271
  */
272
272
  export const listCurrencies = async (params, options, fetchFn) => {
@@ -1045,6 +1045,49 @@ export const listAccountDiscounts = async (params, options, fetchFn) => {
1045
1045
  const data = body ? JSON.parse(body) : {};
1046
1046
  return { data, status: res.status, headers: res.headers };
1047
1047
  };
1048
+ export const getListTrialGrantsUrl = (params) => {
1049
+ const normalizedParams = new URLSearchParams();
1050
+ Object.entries(params || {}).forEach(([key, value]) => {
1051
+ if (value !== undefined) {
1052
+ normalizedParams.append(key, value === null ? "null" : String(value));
1053
+ }
1054
+ });
1055
+ const stringifiedParams = normalizedParams.toString();
1056
+ return stringifiedParams.length > 0
1057
+ ? `https://billing.leaflow.cloud/api/v1/trial-grants?${stringifiedParams}`
1058
+ : `https://billing.leaflow.cloud/api/v1/trial-grants`;
1059
+ };
1060
+ /**
1061
+ * Free trials held by your billing accounts. Choose an available grant when checking out a purchase its offer
1062
+ * covers, by saving its ID as `trial_grant_id` on the Checkout Session; a session and its preview list the grants that
1063
+ * can be used for it.
1064
+ * @summary List free trial grants
1065
+ */
1066
+ export const listTrialGrants = async (params, options, fetchFn) => {
1067
+ const res = await (fetchFn ?? fetch)(getListTrialGrantsUrl(params), {
1068
+ ...options,
1069
+ method: "GET",
1070
+ });
1071
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1072
+ const data = body ? JSON.parse(body) : {};
1073
+ return { data, status: res.status, headers: res.headers };
1074
+ };
1075
+ export const getGetTrialGrantUrl = (trialGrantId) => {
1076
+ return `https://billing.leaflow.cloud/api/v1/trial-grants/${encodeURIComponent(String(trialGrantId))}`;
1077
+ };
1078
+ /**
1079
+ * A free trial held by one of your billing accounts. Returns 404 if it does not exist or is not yours.
1080
+ * @summary Get a free trial grant
1081
+ */
1082
+ export const getTrialGrant = async (trialGrantId, options, fetchFn) => {
1083
+ const res = await (fetchFn ?? fetch)(getGetTrialGrantUrl(trialGrantId), {
1084
+ ...options,
1085
+ method: "GET",
1086
+ });
1087
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1088
+ const data = body ? JSON.parse(body) : {};
1089
+ return { data, status: res.status, headers: res.headers };
1090
+ };
1048
1091
  export const getListCreditGrantsUrl = (params) => {
1049
1092
  const normalizedParams = new URLSearchParams();
1050
1093
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -1199,7 +1242,7 @@ export const getListSubscriptionsUrl = (params) => {
1199
1242
  : `https://billing.leaflow.cloud/api/v1/subscriptions`;
1200
1243
  };
1201
1244
  /**
1202
- * Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Deleted subscriptions are not listed.
1245
+ * Subscriptions paid by your billing accounts; members of a project list its subscriptions with `project_ids`. Each subscription includes its items. Deleted subscriptions are not listed.
1203
1246
  * @summary List subscriptions
1204
1247
  */
1205
1248
  export const listSubscriptions = async (params, options, fetchFn) => {
@@ -1215,7 +1258,7 @@ export const getGetSubscriptionUrl = (subscriptionId) => {
1215
1258
  return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
1216
1259
  };
1217
1260
  /**
1218
- * A subscription paid by your billing account or of a project you are a member of. Deleted subscriptions are reported as not found.
1261
+ * A subscription paid by your billing account or of a project you are a member of, with its items. Deleted subscriptions are reported as not found.
1219
1262
  * @summary Get subscription
1220
1263
  */
1221
1264
  export const getSubscription = async (subscriptionId, options, fetchFn) => {
@@ -1227,39 +1270,23 @@ export const getSubscription = async (subscriptionId, options, fetchFn) => {
1227
1270
  const data = body ? JSON.parse(body) : {};
1228
1271
  return { data, status: res.status, headers: res.headers };
1229
1272
  };
1230
- export const getDeleteSubscriptionUrl = (subscriptionId) => {
1273
+ export const getUpdateSubscriptionUrl = (subscriptionId) => {
1231
1274
  return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
1232
1275
  };
1233
1276
  /**
1234
- * 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.
1235
- * @summary Delete subscription
1236
- */
1237
- export const deleteSubscription = async (subscriptionId, options, fetchFn) => {
1238
- const res = await (fetchFn ?? fetch)(getDeleteSubscriptionUrl(subscriptionId), {
1239
- ...options,
1240
- method: "DELETE",
1241
- });
1242
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1243
- const data = body ? JSON.parse(body) : undefined;
1244
- return { data, status: res.status, headers: res.headers };
1245
- };
1246
- export const getCancelSubscriptionUrl = (subscriptionId) => {
1247
- return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}:cancel`;
1248
- };
1249
- /**
1250
- * Requests cancellation on the purchase's agreed terms, with the same rules as creating a cancellation. Give the
1251
- * `proration_date` and `refundable_amount` of preview-cancellation for this subscription. Open to the owner of the
1252
- * subscription's current billing account and to members of its project with the project permission
1253
- * `billing:finance.manage`.
1277
+ * Changes the subscription's settings given in the request; settings left out keep their values. `auto_renew`
1278
+ * turns automatic renewal on or off for the whole subscription, or, on a trialing subscription, whether the trial
1279
+ * converts to paid. Turning it off does not shorten current_term_end and still allows manual renewal.
1254
1280
  *
1255
- * Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
1256
- * subscription active or suspended until the paid term ends. The subscription becomes canceled when the service
1257
- * confirms the release; follow the returned cancellation. Subscriptions released together must be canceled
1258
- * together through create-cancellation, and pending or provisioning purchases through their order. Repeating the
1259
- * request while the cancellation is open returns it.
1260
- * @summary Cancel subscription
1261
- */
1262
- export const cancelSubscription = async (subscriptionId, cancelSubscriptionRequest, options, fetchFn) => {
1281
+ * `auto_renew` is refused with 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_INACTIVE` for a pending or provisioning
1282
+ * subscription, 409 `BILLING_SUBSCRIPTION_AUTO_RENEW_FIXED` for a subscription with only metered items, which
1283
+ * continues until it is canceled, and 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` with `meta.cancellation_id`
1284
+ * while a cancellation of the whole subscription is open: creating it turned renewal off, and withdrawing it does
1285
+ * not turn renewal back on. Open to the owner of the subscription's current billing account and to members of its
1286
+ * project with the project permission `billing:finance.manage`.
1287
+ * @summary Update subscription
1288
+ */
1289
+ export const updateSubscription = async (subscriptionId, subscriptionUpdate, options, fetchFn) => {
1263
1290
  const getHeaders = (h) => {
1264
1291
  if (!h)
1265
1292
  return {};
@@ -1275,38 +1302,49 @@ export const cancelSubscription = async (subscriptionId, cancelSubscriptionReque
1275
1302
  }
1276
1303
  return headers;
1277
1304
  };
1278
- const res = await (fetchFn ?? fetch)(getCancelSubscriptionUrl(subscriptionId), {
1305
+ const res = await (fetchFn ?? fetch)(getUpdateSubscriptionUrl(subscriptionId), {
1279
1306
  ...options,
1280
- method: "POST",
1307
+ method: "PATCH",
1281
1308
  headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1282
- body: JSON.stringify(cancelSubscriptionRequest),
1309
+ body: JSON.stringify(subscriptionUpdate),
1283
1310
  });
1284
1311
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1285
1312
  const data = body ? JSON.parse(body) : {};
1286
1313
  return { data, status: res.status, headers: res.headers };
1287
1314
  };
1288
- export const getGetQuoteUrl = () => {
1289
- return `https://billing.leaflow.cloud/api/v1/quotes`;
1315
+ export const getDeleteSubscriptionUrl = (subscriptionId) => {
1316
+ return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}`;
1290
1317
  };
1291
1318
  /**
1292
- * Calculates what a proposed purchase, a change of your subscriptions or their renewal would invoice now, and
1293
- * what each purchased or changed line renews at. Nothing is saved, reserved or redeemed.
1294
- *
1295
- * With `billing_account_id`, the quote is for that billing account: its currency, account discounts,
1296
- * tax and funds apply, changes and renewals use the account currently paying for each subscription, and an
1297
- * access token is required. The account must be yours or currently pay for a project you are a member of.
1298
- * Without it, proposed items are priced in `currency` for anyone, signed in or not: no account discount or funds
1299
- * apply, and tax that would be added is included only for the customer's `address`.
1300
- *
1301
- * A change is priced as the service that owns the subscription would order it: pass the returned `total` as the
1302
- * expected amount and, for an immediate change, `proration_date` to that service when making the change.
1319
+ * Hides a canceled or terminated subscription from your subscription list and detail by setting deleted_at; its status, ended_at, items 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.
1320
+ * @summary Delete subscription
1321
+ */
1322
+ export const deleteSubscription = async (subscriptionId, options, fetchFn) => {
1323
+ const res = await (fetchFn ?? fetch)(getDeleteSubscriptionUrl(subscriptionId), {
1324
+ ...options,
1325
+ method: "DELETE",
1326
+ });
1327
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1328
+ const data = body ? JSON.parse(body) : undefined;
1329
+ return { data, status: res.status, headers: res.headers };
1330
+ };
1331
+ export const getCancelSubscriptionUrl = (subscriptionId) => {
1332
+ return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}:cancel`;
1333
+ };
1334
+ /**
1335
+ * Requests cancellation of every continuing item of the subscription on their agreed terms, with the same rules
1336
+ * as creating a cancellation. Give the `proration_date` and `refundable_amount` of preview-cancellation for these
1337
+ * items. Open to the owner of the subscription's current billing account and to members of its project with the
1338
+ * project permission `billing:finance.manage`.
1303
1339
  *
1304
- * A promotion code is evaluated without being applied. It is applied only when a Checkout Session is completed
1305
- * with it; conditions that depend on the account, such as a first purchase, are checked only with an account
1306
- * and otherwise reported as `unverified`. Future usage of metered prices is estimated with `estimate-usage`.
1307
- * @summary Get a quote
1340
+ * Immediate cancellation asks the owning service to release the resources now; period-end cancellation keeps the
1341
+ * subscription in service until its current term ends. The subscription becomes canceled when the service
1342
+ * confirms the release; follow the returned cancellation. To cancel some items, or items released together across
1343
+ * subscriptions, use create-cancellation; pending or provisioning purchases are canceled through their order.
1344
+ * Repeating the request while the cancellation is open returns it.
1345
+ * @summary Cancel subscription
1308
1346
  */
1309
- export const getQuote = async (quoteRequest, options, fetchFn) => {
1347
+ export const cancelSubscription = async (subscriptionId, cancelSubscriptionRequest, options, fetchFn) => {
1310
1348
  const getHeaders = (h) => {
1311
1349
  if (!h)
1312
1350
  return {};
@@ -1322,11 +1360,11 @@ export const getQuote = async (quoteRequest, options, fetchFn) => {
1322
1360
  }
1323
1361
  return headers;
1324
1362
  };
1325
- const res = await (fetchFn ?? fetch)(getGetQuoteUrl(), {
1363
+ const res = await (fetchFn ?? fetch)(getCancelSubscriptionUrl(subscriptionId), {
1326
1364
  ...options,
1327
- method: "QUERY",
1365
+ method: "POST",
1328
1366
  headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1329
- body: JSON.stringify(quoteRequest),
1367
+ body: JSON.stringify(cancelSubscriptionRequest),
1330
1368
  });
1331
1369
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1332
1370
  const data = body ? JSON.parse(body) : {};
@@ -1381,7 +1419,7 @@ export const getListCancellationsUrl = (params) => {
1381
1419
  : `https://billing.leaflow.cloud/api/v1/cancellations`;
1382
1420
  };
1383
1421
  /**
1384
- * 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.
1422
+ * Newest first; members of a project list its cancellations with `project_ids`. Filter by `subscription_item_id` and `status=open` to find an item's cancellation in progress, or by `subscription_id` for every item of a subscription.
1385
1423
  * @summary List cancellations
1386
1424
  */
1387
1425
  export const listCancellations = async (params, options, fetchFn) => {
@@ -1397,39 +1435,42 @@ export const getCreateCancellationUrl = () => {
1397
1435
  return `https://billing.leaflow.cloud/api/v1/cancellations`;
1398
1436
  };
1399
1437
  /**
1400
- * Ends subscriptions of one service together. Deleting a resource is an `immediate` cancellation of every
1401
- * subscription released with it, such as a server with its disks or an address with its bandwidth. Open to the
1402
- * owner of the subscriptions' current billing account and to members of their project with the project
1403
- * permission `billing:finance.manage`.
1438
+ * Ends subscription items of one service together, from one subscription or several. Deleting a resource is an
1439
+ * `immediate` cancellation of every item released with it, such as a server with its disks or an address with
1440
+ * its bandwidth. Open to the owner of the items' current billing account and to members of their project with
1441
+ * the project permission `billing:finance.manage`.
1404
1442
  *
1405
- * The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the paid
1406
- * term, for `period_end`. When release is confirmed, the unused value is returned to the original payment
1407
- * sources under each subscription's refund terms. For `immediate` the refund is computed as of `proration_date`
1408
- * and is not reduced by service used during release. Metered usage is charged until release.
1443
+ * The owning service releases the resources at once for `immediate`, or at `scheduled_at`, the end of the
1444
+ * subscription's current term, for `period_end`; until then the items are left out of renewals. When release is
1445
+ * confirmed, the unused value is returned to the original payment sources under each item's refund terms. For
1446
+ * `immediate` the refund is computed as of `proration_date` and is not reduced by service used during release.
1447
+ * Metered usage is charged until release. A subscription whose continuing items all end is canceled.
1409
1448
  *
1410
- * `mode` must be allowed for every subscription. Metered and one-time subscriptions end only `immediate`. A
1411
- * licensed subscription ends `period_end` while its paid term lasts, and `immediate` unless its terms allow only
1412
- * the end of the paid term and that term has not ended. For `period_end` all paid terms must end at the same
1413
- * time.
1449
+ * `mode` must be allowed for every item. Metered and one-time items end only `immediate`. A licensed item ends
1450
+ * `period_end` while its subscription's paid term lasts, and `immediate` unless its terms allow only the end of
1451
+ * the paid term and that term has not ended. During a free trial a licensed item ends either way whatever its
1452
+ * terms, `period_end` meaning the end of the trial, and nothing is refunded. For `period_end` the paid terms of
1453
+ * all items must end at the same time.
1414
1454
  *
1415
1455
  * Refused with:
1416
1456
  *
1417
- * - 400 `BILLING_CANCELLATION_INVALID` when `subscription_ids` or `proration_date` is invalid (`meta.field`), or
1418
- * the subscriptions do not share one service, project, account and currency;
1419
- * - 409 `BILLING_CANCELLATION_CONFLICT` when a subscription has not started or has ended;
1457
+ * - 400 `BILLING_CANCELLATION_INVALID` when `items` or `proration_date` is invalid (`meta.field`), or the items
1458
+ * do not share one service, project, account and currency;
1459
+ * - 409 `BILLING_CANCELLATION_CONFLICT` when an item has not started or has ended;
1420
1460
  * - 422 `BILLING_CANCELLATION_MODE_FIXED` when `mode` is not allowed, and `BILLING_CANCELLATION_TERMS_UNSET`
1421
- * when a licensed subscription has no cancellation terms, both with `meta.subscription_id`;
1461
+ * when a licensed item has no cancellation terms, both with `meta.subscription_item_id`;
1422
1462
  * - 409 `BILLING_CANCELLATION_SCHEDULES_DIFFER` when, for `period_end`, the paid terms end at different times;
1423
- * - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled
1424
- * (`meta.cancellation_id`) or reclaimed (`meta.reason` `reclaim_requested`), or has a paid change waiting to
1425
- * switch (`meta.order_id`);
1426
- * - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online renewal payment for one of them is in progress;
1463
+ * - 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when an item is already being canceled
1464
+ * (`meta.cancellation_id`), its subscription is being reclaimed (`meta.reason` `reclaim_requested`), or the
1465
+ * item has a paid change waiting to switch (`meta.order_id`);
1466
+ * - 409 `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online renewal payment for one of their subscriptions is in
1467
+ * progress;
1427
1468
  * - 409 `BILLING_CANCELLATION_REFUND_CHANGED` when the refund no longer equals `expected_refundable_amount`.
1428
1469
  *
1429
- * Repeating the request for the same subscriptions, mode and amount while the cancellation is open returns it
1430
- * with 200. Unpaid renewal orders are canceled with it, and automatic renewal is turned off for every
1431
- * subscription.
1432
- * @summary Cancel subscriptions
1470
+ * Repeating the request for the same items, mode and amount while the cancellation is open returns it with 200.
1471
+ * When it covers every continuing item of a subscription, unpaid renewal orders of that subscription are
1472
+ * canceled with it and its automatic renewal is turned off.
1473
+ * @summary Cancel subscription items
1433
1474
  */
1434
1475
  export const createCancellation = async (cancellationCreate, options, fetchFn) => {
1435
1476
  const getHeaders = (h) => {
@@ -1461,7 +1502,7 @@ export const getPreviewCancellationUrl = () => {
1461
1502
  return `https://billing.leaflow.cloud/api/v1/cancellations:preview`;
1462
1503
  };
1463
1504
  /**
1464
- * What creating the cancellation now would return, per subscription and in total. Nothing is canceled, ended or refunded. Open to the owner of the subscriptions' current billing account and to members of their project; refused for the same states as creating it.
1505
+ * What creating the cancellation now would return, per item and in total. Nothing is canceled, ended or refunded. Open to the owner of the items' current billing account and to members of their project; refused for the same states as creating it.
1465
1506
  * @summary Preview a cancellation
1466
1507
  */
1467
1508
  export const previewCancellation = async (cancellationPreviewRequest, options, fetchFn) => {
@@ -1494,7 +1535,7 @@ export const getGetCancellationUrl = (cancellationId) => {
1494
1535
  return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
1495
1536
  };
1496
1537
  /**
1497
- * 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.
1538
+ * 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 item, including partial success.
1498
1539
  * @summary Get a cancellation
1499
1540
  */
1500
1541
  export const getCancellation = async (cancellationId, options, fetchFn) => {
@@ -1506,15 +1547,15 @@ export const getCancellation = async (cancellationId, options, fetchFn) => {
1506
1547
  const data = body ? JSON.parse(body) : {};
1507
1548
  return { data, status: res.status, headers: res.headers };
1508
1549
  };
1509
- export const getWithdrawCancellationUrl = (cancellationId) => {
1550
+ export const getDeleteCancellationUrl = (cancellationId) => {
1510
1551
  return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
1511
1552
  };
1512
1553
  /**
1513
- * Withdraws the whole cancellation, which stays with status `canceled`, 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:finance.manage`.
1554
+ * Withdraws the whole cancellation, which stays with status `canceled`, while no resource has begun to be released; afterwards it is refused with 409 `BILLING_CANCELLATION_CONFLICT`. The items continue and renew with their subscriptions again; a subscription's automatic renewal, turned off when the cancellation covered all of its continuing items, stays off until it is turned on again. Withdrawing a withdrawn cancellation returns it unchanged. Open to the owner of the items' current billing account and to members of their project with the project permission `billing:finance.manage`.
1514
1555
  * @summary Withdraw a cancellation
1515
1556
  */
1516
- export const withdrawCancellation = async (cancellationId, options, fetchFn) => {
1517
- const res = await (fetchFn ?? fetch)(getWithdrawCancellationUrl(cancellationId), {
1557
+ export const deleteCancellation = async (cancellationId, options, fetchFn) => {
1558
+ const res = await (fetchFn ?? fetch)(getDeleteCancellationUrl(cancellationId), {
1518
1559
  ...options,
1519
1560
  method: "DELETE",
1520
1561
  });
@@ -1522,7 +1563,7 @@ export const withdrawCancellation = async (cancellationId, options, fetchFn) =>
1522
1563
  const data = body ? JSON.parse(body) : {};
1523
1564
  return { data, status: res.status, headers: res.headers };
1524
1565
  };
1525
- export const getListRenewalPricesUrl = (subscriptionId, params) => {
1566
+ export const getListRenewalOptionsUrl = (subscriptionId, params) => {
1526
1567
  const normalizedParams = new URLSearchParams();
1527
1568
  Object.entries(params || {}).forEach(([key, value]) => {
1528
1569
  if (value !== undefined) {
@@ -1531,15 +1572,15 @@ export const getListRenewalPricesUrl = (subscriptionId, params) => {
1531
1572
  });
1532
1573
  const stringifiedParams = normalizedParams.toString();
1533
1574
  return stringifiedParams.length > 0
1534
- ? `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-prices?${stringifiedParams}`
1535
- : `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-prices`;
1575
+ ? `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-options?${stringifiedParams}`
1576
+ : `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/renewal-options`;
1536
1577
  };
1537
1578
  /**
1538
- * 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.
1539
- * @summary List the terms this item can be renewed for
1579
+ * The current agreement first, then each other term every continuing licensed item sells in the subscription's currency. The current option keeps each item's recurring_amount; other options use current prices, each item taking the price of that term with its own cancellation policy, or the only price of that term. Amounts exclude tax and discounts. Open to the owner of the subscription's current billing account and to members of its project.
1580
+ * @summary List the terms the subscription can be renewed for
1540
1581
  */
1541
- export const listRenewalPrices = async (subscriptionId, params, options, fetchFn) => {
1542
- const res = await (fetchFn ?? fetch)(getListRenewalPricesUrl(subscriptionId, params), {
1582
+ export const listRenewalOptions = async (subscriptionId, params, options, fetchFn) => {
1583
+ const res = await (fetchFn ?? fetch)(getListRenewalOptionsUrl(subscriptionId, params), {
1543
1584
  ...options,
1544
1585
  method: "GET",
1545
1586
  });
@@ -1551,13 +1592,16 @@ export const getRenewSubscriptionUrl = (subscriptionId) => {
1551
1592
  return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}:renew`;
1552
1593
  };
1553
1594
  /**
1554
- * Buys licensed periods from current_term_end at the agreed recurring amount and pays for them at once. A
1555
- * different interval selects the price currently sold for it and fixes new terms on the order, applied after
1556
- * fulfillment. Paid periods keep their value.
1595
+ * Buys further periods for the whole subscription from current_term_end and pays for them at once: every
1596
+ * continuing licensed item renews, at its agreed recurring amount or, with a different interval, at the price each
1597
+ * item currently sells that term for, and the new terms are fixed on the order. Items with an open cancellation end
1598
+ * with the current term and are left out. Paid periods keep their value. A trialing subscription converts to paid
1599
+ * this way; renewed after its trial expired, its first paid period starts at payment.
1557
1600
  *
1558
1601
  * Without `payment_method_id`, the renewal is paid from credit grants and balance as `use_credits` and
1559
1602
  * `use_balance` allow; when they cannot cover it, the request fails with `BILLING_INSUFFICIENT_FUNDS` and no
1560
- * order is left. To apply a promotion code or pay later, create a renewal Checkout Session.
1603
+ * order is left. To apply a promotion code, pay later, or renew several subscriptions in one order, create a
1604
+ * renewal Checkout Session.
1561
1605
  *
1562
1606
  * Open to the owner of the subscription's current billing account and to members of its project with the
1563
1607
  * project permission `billing:finance.manage`. Only the owner can pay with `payment_method_id`.
@@ -1591,39 +1635,6 @@ export const renewSubscription = async (subscriptionId, renewRequest, options, f
1591
1635
  const data = body ? JSON.parse(body) : {};
1592
1636
  return { data, status: res.status, headers: res.headers };
1593
1637
  };
1594
- export const getSetAutoRenewUrl = (subscriptionId) => {
1595
- return `https://billing.leaflow.cloud/api/v1/subscriptions/${encodeURIComponent(String(subscriptionId))}/auto-renew`;
1596
- };
1597
- /**
1598
- * 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:finance.manage`.
1599
- * @summary Set auto renew
1600
- */
1601
- export const setAutoRenew = async (subscriptionId, autoRenewSet, options, fetchFn) => {
1602
- const getHeaders = (h) => {
1603
- if (!h)
1604
- return {};
1605
- if (h instanceof Headers)
1606
- return Object.fromEntries(h.entries());
1607
- if (Symbol.iterator in h) {
1608
- return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1609
- }
1610
- const headers = {};
1611
- for (const [name, value] of Object.entries(h)) {
1612
- if (value !== undefined)
1613
- headers[name] = value;
1614
- }
1615
- return headers;
1616
- };
1617
- const res = await (fetchFn ?? fetch)(getSetAutoRenewUrl(subscriptionId), {
1618
- ...options,
1619
- method: "PUT",
1620
- headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1621
- body: JSON.stringify(autoRenewSet),
1622
- });
1623
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1624
- const data = body ? JSON.parse(body) : {};
1625
- return { data, status: res.status, headers: res.headers };
1626
- };
1627
1638
  export const getListAllowancesUrl = (params) => {
1628
1639
  const normalizedParams = new URLSearchParams();
1629
1640
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -1662,7 +1673,8 @@ export const getListCheckoutSessionsUrl = (params) => {
1662
1673
  : `https://billing.leaflow.cloud/api/v1/checkout-sessions`;
1663
1674
  };
1664
1675
  /**
1665
- * 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.
1676
+ * Checkout Sessions of your billing accounts, newest first; members of a project list its sessions with
1677
+ * `project_ids`. An open session is a purchase waiting for checkout to be completed.
1666
1678
  * @summary List Checkout Sessions
1667
1679
  */
1668
1680
  export const listCheckoutSessions = async (params, options, fetchFn) => {
@@ -1678,13 +1690,15 @@ export const getCreateCheckoutSessionUrl = () => {
1678
1690
  return `https://billing.leaflow.cloud/api/v1/checkout-sessions`;
1679
1691
  };
1680
1692
  /**
1681
- * Opens a Checkout Session renewing a licensed subscription, with periods and price chosen as in
1682
- * renewing. Nothing is charged until you complete it, when a promotion code can be applied; it then renews from
1683
- * the subscription's current_term_end at that time. To renew at once from credit grants, balance or a payment
1684
- * method, renew the subscription instead. Purchases and changes of a service's resources are created through
1685
- * that service.
1693
+ * Opens a Checkout Session renewing one or more subscriptions in one order, such as a machine and the separately
1694
+ * bought volumes and elastic IPs attached to it, with periods and price chosen as in renewing. Every subscription
1695
+ * must be paid by the same billing account and belong to the same project and service. Nothing is charged until
1696
+ * you complete it; save a promotion code on it first with `update-checkout-session`. Each subscription then renews
1697
+ * from its current_term_end at that time. To renew one subscription at once from credit grants, balance or a
1698
+ * payment method, renew the subscription instead. Purchases and changes of a service's resources are created
1699
+ * through that service.
1686
1700
  *
1687
- * Open to the owner of the subscription's current billing account and to members of its project with the
1701
+ * Open to the owner of the subscriptions' current billing account and to members of their project with the
1688
1702
  * project permission `billing:finance.manage`. Keep `checkout_session_id` and read the session after an
1689
1703
  * unknown outcome; creating it again conflicts.
1690
1704
  * @summary Create a renewal Checkout Session
@@ -1715,40 +1729,65 @@ export const createCheckoutSession = async (checkoutSessionCreate, options, fetc
1715
1729
  const data = body ? JSON.parse(body) : {};
1716
1730
  return { data, status: res.status, headers: res.headers };
1717
1731
  };
1718
- export const getGetCheckoutSessionUrl = (checkoutSessionId) => {
1719
- return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}`;
1732
+ export const getPreviewCheckoutSessionUrl = () => {
1733
+ return `https://billing.leaflow.cloud/api/v1/checkout-sessions:preview`;
1720
1734
  };
1721
1735
  /**
1722
- * 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.
1723
- * @summary Get a Checkout Session
1736
+ * What a Checkout Session for a purchase, a change of your subscriptions or their renewal would invoice if it
1737
+ * were completed now, returned as a session that is not saved: it has no `id`, and nothing is ordered, reserved
1738
+ * or redeemed. Use it to show prices before buying; the service that sells a resource creates the session for its
1739
+ * purchase or change, and you create renewal sessions here.
1740
+ *
1741
+ * With `billing_account_id` the preview is for that billing account: its currency, account discounts, tax,
1742
+ * funds and free trial grants apply, changes and renewals use the account currently paying for each
1743
+ * subscription, and an access token is required. The account must be yours or currently pay for a project you
1744
+ * are a member of. Without it, a purchase is priced in `currency` for anyone, signed in or not: no account
1745
+ * discount, funds or trial grant apply, and tax that would be added is included only for `address`.
1746
+ *
1747
+ * A promotion code is evaluated without being applied; conditions that depend on the account, such as a first
1748
+ * purchase, are checked only with an account and otherwise reported as `unverified`. An invalid or inapplicable
1749
+ * code or trial grant fails the request. Future usage of metered prices is estimated with `estimate-usage`.
1750
+ * @summary Preview a Checkout Session
1724
1751
  */
1725
- export const getCheckoutSession = async (checkoutSessionId, options, fetchFn) => {
1726
- const res = await (fetchFn ?? fetch)(getGetCheckoutSessionUrl(checkoutSessionId), {
1752
+ export const previewCheckoutSession = async (checkoutSessionPreviewRequest, options, fetchFn) => {
1753
+ const getHeaders = (h) => {
1754
+ if (!h)
1755
+ return {};
1756
+ if (h instanceof Headers)
1757
+ return Object.fromEntries(h.entries());
1758
+ if (Symbol.iterator in h) {
1759
+ return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1760
+ }
1761
+ const headers = {};
1762
+ for (const [name, value] of Object.entries(h)) {
1763
+ if (value !== undefined)
1764
+ headers[name] = value;
1765
+ }
1766
+ return headers;
1767
+ };
1768
+ const res = await (fetchFn ?? fetch)(getPreviewCheckoutSessionUrl(), {
1727
1769
  ...options,
1728
- method: "GET",
1770
+ method: "QUERY",
1771
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1772
+ body: JSON.stringify(checkoutSessionPreviewRequest),
1729
1773
  });
1730
1774
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1731
1775
  const data = body ? JSON.parse(body) : {};
1732
1776
  return { data, status: res.status, headers: res.headers };
1733
1777
  };
1734
- export const getListCheckoutSessionItemsUrl = (checkoutSessionId, params) => {
1735
- const normalizedParams = new URLSearchParams();
1736
- Object.entries(params || {}).forEach(([key, value]) => {
1737
- if (value !== undefined) {
1738
- normalizedParams.append(key, value === null ? "null" : String(value));
1739
- }
1740
- });
1741
- const stringifiedParams = normalizedParams.toString();
1742
- return stringifiedParams.length > 0
1743
- ? `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/items?${stringifiedParams}`
1744
- : `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/items`;
1778
+ export const getGetCheckoutSessionUrl = (checkoutSessionId) => {
1779
+ return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}`;
1745
1780
  };
1746
1781
  /**
1747
- * What the session buys, by position. Prices and amounts are in its quote. Readable by whoever can read the session.
1748
- * @summary List Checkout Session items
1782
+ * A Checkout Session of your billing account or of a project you are a member of, with what completing it now
1783
+ * would invoice under the choices saved on it. A saved promotion code or trial grant that can no longer be applied
1784
+ * is left out of the amounts; `discount` and the subscriptions' `trial_grant_id` show what applies, and confirming
1785
+ * fails until the session is updated. Poll it to follow checkout; once it is complete, read its order for payment
1786
+ * and delivery. An unknown session returns 404; any other session returns 403.
1787
+ * @summary Get a Checkout Session
1749
1788
  */
1750
- export const listCheckoutSessionItems = async (checkoutSessionId, params, options, fetchFn) => {
1751
- const res = await (fetchFn ?? fetch)(getListCheckoutSessionItemsUrl(checkoutSessionId, params), {
1789
+ export const getCheckoutSession = async (checkoutSessionId, options, fetchFn) => {
1790
+ const res = await (fetchFn ?? fetch)(getGetCheckoutSessionUrl(checkoutSessionId), {
1752
1791
  ...options,
1753
1792
  method: "GET",
1754
1793
  });
@@ -1756,35 +1795,45 @@ export const listCheckoutSessionItems = async (checkoutSessionId, params, option
1756
1795
  const data = body ? JSON.parse(body) : {};
1757
1796
  return { data, status: res.status, headers: res.headers };
1758
1797
  };
1759
- export const getGetCheckoutSessionQuoteUrl = (checkoutSessionId, params) => {
1760
- const normalizedParams = new URLSearchParams();
1761
- Object.entries(params || {}).forEach(([key, value]) => {
1762
- if (value !== undefined) {
1763
- normalizedParams.append(key, value === null ? "null" : String(value));
1764
- }
1765
- });
1766
- const stringifiedParams = normalizedParams.toString();
1767
- return stringifiedParams.length > 0
1768
- ? `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/quote?${stringifiedParams}`
1769
- : `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}/quote`;
1798
+ export const getUpdateCheckoutSessionUrl = (checkoutSessionId) => {
1799
+ return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}`;
1770
1800
  };
1771
1801
  /**
1772
- * What completing this open session now would invoice, with `promotion_code` or otherwise the best applicable
1773
- * account discount, and the account funds available for it. Nothing is applied, reserved or redeemed. An invalid
1774
- * or inapplicable code fails the request without changing the session.
1802
+ * Saves your checkout choices on an open session: a promotion code, a free trial grant and automatic renewal.
1803
+ * Choices left out keep their values, and null removes a code or a grant. The session is returned with its
1804
+ * amounts calculated under the new choices; nothing is redeemed until it is completed.
1775
1805
  *
1776
- * Complete the session with the returned `total` as `expected_amount`, the same `promotion_code` and, for an
1777
- * immediate change, the returned `proration_date`. An expired session is refused with
1778
- * `BILLING_CHECKOUT_SESSION_EXPIRED`, and a complete one with `BILLING_CHECKOUT_SESSION_COMPLETE`; read its order
1779
- * instead.
1806
+ * A code that does not exist or cannot be applied is refused with its promotion error, and a grant that cannot be
1807
+ * used with `BILLING_TRIAL_GRANT_INAPPLICABLE`; the session is then unchanged. A grant applies to the first new
1808
+ * subscription of the session whose lines its offer all covers, and that has a licensed line and no trial of its
1809
+ * own. `auto_renew` turns automatic renewal on or off for every subscription with licensed items the session
1810
+ * opens; for a free trial, it decides whether the trial converts to paid when it ends. A session that is not
1811
+ * open is refused with `BILLING_CHECKOUT_SESSION_COMPLETE` or `BILLING_CHECKOUT_SESSION_EXPIRED`.
1780
1812
  *
1781
1813
  * Open to the owner of the session's billing account and to members of its project.
1782
- * @summary Quote a Checkout Session
1814
+ * @summary Update a Checkout Session
1783
1815
  */
1784
- export const getCheckoutSessionQuote = async (checkoutSessionId, params, options, fetchFn) => {
1785
- const res = await (fetchFn ?? fetch)(getGetCheckoutSessionQuoteUrl(checkoutSessionId, params), {
1816
+ export const updateCheckoutSession = async (checkoutSessionId, checkoutSessionUpdate, options, fetchFn) => {
1817
+ const getHeaders = (h) => {
1818
+ if (!h)
1819
+ return {};
1820
+ if (h instanceof Headers)
1821
+ return Object.fromEntries(h.entries());
1822
+ if (Symbol.iterator in h) {
1823
+ return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
1824
+ }
1825
+ const headers = {};
1826
+ for (const [name, value] of Object.entries(h)) {
1827
+ if (value !== undefined)
1828
+ headers[name] = value;
1829
+ }
1830
+ return headers;
1831
+ };
1832
+ const res = await (fetchFn ?? fetch)(getUpdateCheckoutSessionUrl(checkoutSessionId), {
1786
1833
  ...options,
1787
- method: "GET",
1834
+ method: "PATCH",
1835
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
1836
+ body: JSON.stringify(checkoutSessionUpdate),
1788
1837
  });
1789
1838
  const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1790
1839
  const data = body ? JSON.parse(body) : {};
@@ -1794,11 +1843,13 @@ export const getConfirmCheckoutSessionUrl = (checkoutSessionId) => {
1794
1843
  return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}:confirm`;
1795
1844
  };
1796
1845
  /**
1797
- * Completes an open session: applies `promotion_code`, or otherwise the best applicable account discount, checks
1798
- * the total against `expected_amount` and creates the order with its invoice issued. A zero-total invoice is paid
1799
- * at once; otherwise pay the invoice next. A failed payment leaves the order and its terms as they are, and the
1800
- * invoice can be paid again until the order expires. Nothing is created when the code is invalid or
1801
- * inapplicable or the total differs, which fails with `BILLING_AMOUNT_CHANGED`.
1846
+ * Completes an open session under the choices saved on it: its promotion code, or otherwise the best applicable
1847
+ * account discount, and its free trial grant. Checks the total against `expected_amount` and creates the order
1848
+ * with its invoice issued. A zero-total invoice is paid at once; otherwise pay the invoice next. A failed payment
1849
+ * leaves the order and its terms as they are, and the invoice can be paid again until the order expires. Nothing
1850
+ * is created when the total differs, which fails with `BILLING_AMOUNT_CHANGED`, or when a saved code or grant can
1851
+ * no longer be applied, which fails with its error until the session is updated. A trial grant used by an order
1852
+ * that is later canceled or fails can be used again.
1802
1853
  *
1803
1854
  * Confirming a complete session again with the same terms returns it with its order; different terms are refused
1804
1855
  * with `BILLING_CHECKOUT_SESSION_COMPLETE`. An expired session is refused with `BILLING_CHECKOUT_SESSION_EXPIRED`.
@@ -1837,7 +1888,9 @@ export const getExpireCheckoutSessionUrl = (checkoutSessionId) => {
1837
1888
  return `https://billing.leaflow.cloud/api/v1/checkout-sessions/${encodeURIComponent(String(checkoutSessionId))}:expire`;
1838
1889
  };
1839
1890
  /**
1840
- * 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.
1891
+ * Ends an open session without an order; the service that created it releases what it was holding for
1892
+ * the purchase. An expired session is returned unchanged. Open to the owner of the session's billing account and
1893
+ * to members of its project.
1841
1894
  * @summary Expire a Checkout Session
1842
1895
  */
1843
1896
  export const expireCheckoutSession = async (checkoutSessionId, options, fetchFn) => {
@@ -1929,7 +1982,7 @@ export const getCancelOrderUrl = (orderId) => {
1929
1982
  * payment waiting for the payer is canceled with the order; one the gateway is processing is refused with
1930
1983
  * `BILLING_PAYMENT_PENDING` and `meta.transaction_id`. Repeating the cancellation does not refund twice.
1931
1984
  *
1932
- * An accepted order is canceled by its owning service, and delivered items through subscription cancellation.
1985
+ * An accepted order is canceled by its owning service, and delivered items through cancellation of their subscription items.
1933
1986
  * Refunds are previewed with `preview-order-refund`. Open to the owner of the order's billing account and to members of its project.
1934
1987
  * @summary Cancel order
1935
1988
  */