@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
@@ -2,7 +2,7 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Billing API
5
- * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
5
+ * Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and checkout previews are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, preview the checkout of purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  /**
@@ -43,275 +43,11 @@ export interface OrderCancel {
43
43
  */
44
44
  order_item_ids?: string[];
45
45
  }
46
- export type QuoteRenewalInterval = (typeof QuoteRenewalInterval)[keyof typeof QuoteRenewalInterval];
47
- export declare const QuoteRenewalInterval: {
48
- readonly day: "day";
49
- readonly month: "month";
50
- readonly year: "year";
51
- };
52
- /**
53
- * Price renewing a licensed subscription. Give `price_id`, or `interval` with
54
- * `interval_count`, to renew for another term at the price currently sold for it. Naming
55
- * the current term, or giving neither, renews at the agreed amount. A term sold at several
56
- * prices that differ in cancellation policy is refused with 409
57
- * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.
58
- */
59
- export interface QuoteRenewal {
60
- subscription_id: string;
61
- price_id?: string;
62
- interval?: QuoteRenewalInterval;
63
- /** @minimum 1 */
64
- interval_count?: number;
65
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
66
- cancellation_policy?: CancellationPolicy;
67
- /**
68
- * How many consecutive periods to renew for.
69
- * @minimum 1
70
- * @maximum 100
71
- */
72
- periods?: number;
73
- }
74
- export type QuoteRenewalResultInterval = (typeof QuoteRenewalResultInterval)[keyof typeof QuoteRenewalResultInterval];
75
- export declare const QuoteRenewalResultInterval: {
76
- readonly day: "day";
77
- readonly month: "month";
78
- readonly year: "year";
79
- };
80
- /**
81
- * A decimal string, in the currency stated alongside it.
82
- *
83
- * **The currency is not part of this type.** It is carried by a `currency` field next to the
84
- * amount, or by the account the amount belongs to. Reading an amount without that field is
85
- * reading a number with no unit.
86
- *
87
- * It is a string rather than a JSON number because a JSON number is a float in most parsers,
88
- * and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
89
- * through a float.
90
- */
91
- export type Money = string;
92
- /**
93
- * What renewing would charge. Renewing the same subscription for the same term and periods charges exactly `total` unless prices or the account's discounts change first.
94
- */
95
- export interface QuoteRenewalResult {
96
- /** Which renewal of the request this answers. */
97
- index: number;
98
- subscription_id: string;
99
- /** The price the renewal is charged under. */
100
- price_id: string;
101
- interval: QuoteRenewalResultInterval;
102
- interval_count: number;
103
- periods: number;
104
- /** The price of the periods before the account's discounts, with any discount the subscription carries already reflected; includes tax only where the price does. */
105
- amount: Money;
106
- /** The reduction from a discount the account holds. */
107
- discount_amount: Money;
108
- /** Tax on the discounted amount. */
109
- tax_amount: Money;
110
- /** The part of `tax_amount` already contained in `amount`. */
111
- tax_included_amount: Money;
112
- /**
113
- * What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less
114
- * `tax_included_amount`.
115
- */
116
- total: Money;
117
- }
118
- /**
119
- * The billing period of a recurring licensed line; `none` otherwise.
120
- */
121
- export type QuoteItemInterval = (typeof QuoteItemInterval)[keyof typeof QuoteItemInterval];
122
- export declare const QuoteItemInterval: {
123
- readonly none: "none";
124
- readonly day: "day";
125
- readonly month: "month";
126
- readonly year: "year";
127
- };
128
- /**
129
- * The dimension values the line is priced at.
130
- */
131
- export type QuoteItemDimensions = {
132
- [key: string]: string;
133
- };
134
- /**
135
- * The platform service's fixed identifier, such as compute, canopy or assistant.
136
- * @minLength 1
137
- * @maxLength 64
138
- * @pattern ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
139
- */
140
- export type ProductID = string;
141
- /**
142
- * `one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.
143
- */
144
- export type PriceType = (typeof PriceType)[keyof typeof PriceType];
145
- export declare const PriceType: {
146
- readonly one_time: "one_time";
147
- readonly recurring: "recurring";
148
- };
149
- /**
150
- * `licensed` charges for the quantity bought, each period paid before it starts. `metered` charges for the usage
151
- * reported, after it is settled; a metered subscription lasts until it is canceled. A one-time price is licensed.
152
- */
153
- export type UsageType = (typeof UsageType)[keyof typeof UsageType];
154
- export declare const UsageType: {
155
- readonly licensed: "licensed";
156
- readonly metered: "metered";
157
- };
158
- /**
159
- * What an immediate downgrade would refund, estimated as of `proration_date`. The refund itself is determined when the change takes effect.
160
- */
161
- export interface QuoteDowngradeRefund {
162
- /** Returned to the original payment sources, tax paid on it included. */
163
- refundable_amount: Money;
164
- /** Before tax, the part of the excess that the subscription's refund terms do not return. */
165
- forfeited_amount: Money;
166
- }
167
- /**
168
- * One fully calculated purchase line. An item with no immediate charge, such as a metered purchase, has zero checkout amounts.
169
- */
170
- export interface QuoteItem {
171
- tax_amount: Money;
172
- tax_included_amount: Money;
173
- /**
174
- * The zero-based index of the item or change in the request, or the item's position for a Checkout Session quote.
175
- * @minimum 0
176
- */
177
- index: number;
178
- /**
179
- * The subscription changed; null for a new purchase.
180
- * @nullable
181
- */
182
- subscription_id: string | null;
183
- product_id: ProductID;
184
- plan_id: string;
185
- /** The selected price, also when the request identified it indirectly. */
186
- price_id: string;
187
- plan_name: string;
188
- type: PriceType;
189
- usage_type: UsageType;
190
- /** The billing period of a recurring licensed line; `none` otherwise. */
191
- interval: QuoteItemInterval;
192
- /**
193
- * Periods per billing cycle of a recurring licensed line; null otherwise.
194
- * @minimum 1
195
- * @nullable
196
- */
197
- interval_count: number | null;
198
- /** The dimension values the line is priced at. */
199
- dimensions: QuoteItemDimensions;
200
- /** The setup charge already included in `amount`; null when none applies. */
201
- setup_amount: Money | null;
202
- /** Recurring licensed lines only; null otherwise. What each later period renews at, before discounts and tax, which differs from `amount` when the first period is priced differently. `discount` says whether its discount continues on renewals. */
203
- recurring_amount: Money | null;
204
- /** Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing. */
205
- unit_amount: Money | null;
206
- /** The quantity priced. */
207
- quantity: string;
208
- /** Amount before discounts and including any setup charge. */
209
- amount: Money;
210
- discount_amount: Money;
211
- /** Immediate changes only; null otherwise. Before tax, the new terms for the time from `proration_date` to the end of the paid period. An upgrade invoices `remaining_amount` minus `unused_amount`. */
212
- remaining_amount: Money | null;
213
- /** Immediate changes only; null otherwise. Before tax, for an upgrade or an unchanged period price, the amount paid for that time, up to the new terms' value for the same time; for a downgrade, the remaining value of what was paid, under the refund terms of each paid period. */
214
- unused_amount: Money | null;
215
- /** Immediate downgrades only, when `unused_amount` exceeds `remaining_amount`; null otherwise. */
216
- downgrade_refund: QuoteDowngradeRefund | null;
217
- total: Money;
218
- currency: string;
219
- }
220
- /**
221
- * `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included.
222
- */
223
- export type QuoteTaxStatus = (typeof QuoteTaxStatus)[keyof typeof QuoteTaxStatus];
224
- export declare const QuoteTaxStatus: {
225
- readonly complete: "complete";
226
- readonly requires_location_inputs: "requires_location_inputs";
227
- };
228
- /**
229
- * Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.
230
- * Credit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.
231
- * A licensed purchase may instead be paid with an online payment method.
232
- */
233
- export interface Funds {
234
- /** Spendable balance after pending returns. */
235
- available_balance_amount: Money;
236
- /** Currently effective credits eligible for the quoted purchases or metered usage. Each grant is counted once. */
237
- usable_credit_amount: Money;
238
- /** Currently effective credits that cannot fund any quoted purchase or metered target. Unused eligible credits are not restricted. */
239
- restricted_credit_amount: Money;
240
- /** Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement. */
241
- required_balance_amount: Money;
242
- /** Additional balance needed now. Zero means account funds satisfy this quote. No funds are reserved. */
243
- balance_shortfall_amount: Money;
244
- /** Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed. */
245
- required_top_up_amount: Money;
246
- }
247
- export type QuotedDiscountType = (typeof QuotedDiscountType)[keyof typeof QuotedDiscountType];
248
- export declare const QuotedDiscountType: {
249
- readonly promotion_code: "promotion_code";
250
- readonly account_discount: "account_discount";
251
- };
252
- /**
253
- * Whether the discount continues on renewals of what is bought: `once` applies only to this purchase, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal.
254
- */
255
- export type QuotedDiscountFrequency = (typeof QuotedDiscountFrequency)[keyof typeof QuotedDiscountFrequency];
256
- export declare const QuotedDiscountFrequency: {
257
- readonly once: "once";
258
- readonly recurring: "recurring";
259
- readonly forever: "forever";
260
- };
261
- /**
262
- * `confirmed`: every condition of the discount holds for the billing account. `unverified`: a quote without an account, where conditions that depend on the account, such as a first purchase or a per-account limit, are checked only when a Checkout Session is completed.
263
- */
264
- export type QuotedDiscountEligibility = (typeof QuotedDiscountEligibility)[keyof typeof QuotedDiscountEligibility];
265
- export declare const QuotedDiscountEligibility: {
266
- readonly confirmed: "confirmed";
267
- readonly unverified: "unverified";
268
- };
269
- /**
270
- * The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.
271
- */
272
- export interface QuotedDiscount {
273
- type: QuotedDiscountType;
274
- name: string;
275
- /**
276
- * Code text for a promotion_code discount; null for an account_discount.
277
- * @minLength 1
278
- * @maxLength 64
279
- * @nullable
280
- */
281
- promotion_code: string | null;
282
- /** Whether the discount continues on renewals of what is bought: `once` applies only to this purchase, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal. */
283
- frequency: QuotedDiscountFrequency;
284
- /**
285
- * For `recurring`, the periods the discount lasts; null otherwise.
286
- * @minimum 1
287
- * @nullable
288
- */
289
- frequency_duration: number | null;
290
- /** `confirmed`: every condition of the discount holds for the billing account. `unverified`: a quote without an account, where conditions that depend on the account, such as a first purchase or a per-account limit, are checked only when a Checkout Session is completed. */
291
- eligibility: QuotedDiscountEligibility;
292
- }
293
46
  /**
294
- * A complete calculation in `currency`; nothing is saved or reserved. The request fails if any item cannot be priced. A Checkout Session quote gives what completing the session would invoice.
47
+ * One subscription item to end, each at most once.
295
48
  */
296
- export interface Quote {
297
- /** Account funds for the quoted purchase. Null without an account. */
298
- funds: Funds | null;
299
- subtotal: Money;
300
- discount_amount: Money;
301
- tax_amount: Money;
302
- /** The discount a purchase would get, not yet applied. Null when there is none, and for renewals. */
303
- discount: QuotedDiscount | null;
304
- items: QuoteItem[];
305
- renewals: QuoteRenewalResult[];
306
- total: Money;
307
- currency: string;
308
- /**
309
- * Immediate changes only; null otherwise. The instant the change is priced from; pass it when confirming the Checkout Session so it is priced from the same instant.
310
- * @nullable
311
- */
312
- proration_date: string | null;
313
- /** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
314
- tax_status: QuoteTaxStatus;
49
+ export interface CancellationItemInput {
50
+ subscription_item_id: string;
315
51
  }
316
52
  /**
317
53
  * When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
@@ -326,22 +62,34 @@ export declare const CancellationMode: {
326
62
  readonly period_end: "period_end";
327
63
  };
328
64
  /**
329
- * What ending these subscriptions together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
65
+ * What ending these items together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when an item is already being canceled (`meta.cancellation_id`), its subscription is being reclaimed (`meta.reason` `reclaim_requested`) or the item has a paid change waiting to switch (`meta.order_id`).
330
66
  */
331
67
  export interface CancellationPreviewRequest {
332
68
  /**
333
- * A billing account you own that currently pays for every subscription.
69
+ * A billing account you own that currently pays for every item.
334
70
  * @minimum 1
335
71
  */
336
72
  billing_account_id: number;
337
73
  /**
338
- * The subscriptions to end together, all of one service, including every subscription released with a resource.
74
+ * The items to end together, all of one service, including every item released with a resource.
339
75
  * @minItems 1
340
76
  * @maxItems 50
341
77
  */
342
- subscription_ids: string[];
78
+ items: CancellationItemInput[];
343
79
  mode: CancellationMode;
344
80
  }
81
+ /**
82
+ * A decimal string, in the currency stated alongside it.
83
+ *
84
+ * **The currency is not part of this type.** It is carried by a `currency` field next to the
85
+ * amount, or by the account the amount belongs to. Reading an amount without that field is
86
+ * reading a number with no unit.
87
+ *
88
+ * It is a string rather than a JSON number because a JSON number is a float in most parsers,
89
+ * and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
90
+ * through a float.
91
+ */
92
+ export type Money = string;
345
93
  /**
346
94
  * Which object this is, together with what a person currently calls it.
347
95
  *
@@ -358,9 +106,28 @@ export interface NamedIdentity {
358
106
  name: string;
359
107
  }
360
108
  /**
361
- * One subscription of the previewed cancellation.
109
+ * `one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.
110
+ */
111
+ export type PriceType = (typeof PriceType)[keyof typeof PriceType];
112
+ export declare const PriceType: {
113
+ readonly one_time: "one_time";
114
+ readonly recurring: "recurring";
115
+ };
116
+ /**
117
+ * `licensed` charges for the quantity bought, each period paid before it starts. `metered` charges for the usage
118
+ * reported, after it is settled; a metered subscription lasts until it is canceled. A one-time price is licensed.
119
+ */
120
+ export type UsageType = (typeof UsageType)[keyof typeof UsageType];
121
+ export declare const UsageType: {
122
+ readonly licensed: "licensed";
123
+ readonly metered: "metered";
124
+ };
125
+ /**
126
+ * One subscription item of the previewed cancellation.
362
127
  */
363
128
  export interface CancellationPreviewItem {
129
+ subscription_item_id: string;
130
+ /** The subscription the item belongs to. */
364
131
  subscription_id: string;
365
132
  plan_id: string;
366
133
  plan_name: string;
@@ -368,7 +135,7 @@ export interface CancellationPreviewItem {
368
135
  project?: NamedIdentity | null;
369
136
  type: PriceType;
370
137
  usage_type: UsageType;
371
- /** Whether automatic renewal is on now. Creating the cancellation turns it off; withdrawing it turns it back on for a metered subscription but not for a licensed one. */
138
+ /** Whether the item's subscription renews automatically now. Creating a cancellation of every continuing item of the subscription turns it off; withdrawing it turns it back on for a subscription with only metered items but not for one with licensed items. */
372
139
  auto_renew: boolean;
373
140
  unused_amount: Money;
374
141
  short_rate_surcharge_amount: Money;
@@ -379,7 +146,7 @@ export interface CancellationPreviewItem {
379
146
  forfeited_amount: Money;
380
147
  }
381
148
  /**
382
- * What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
149
+ * What the cancellation would return, per item and in total, as of now. Give `proration_date` and
383
150
  * `refundable_amount` when creating the cancellation.
384
151
  *
385
152
  * - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
@@ -392,11 +159,11 @@ export interface CancellationPreviewItem {
392
159
  * - `tax_amount`: the tax included in `refundable_amount`.
393
160
  * - `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.
394
161
  *
395
- * Metered and one-time subscriptions show zero; their usage until release is charged as usual.
162
+ * Metered and one-time items show zero; their usage until release is charged as usual.
396
163
  */
397
164
  export interface CancellationPreview {
398
165
  mode: CancellationMode;
399
- /** For `period_end`, when release begins, the end of the paid terms. */
166
+ /** For `period_end`, when release begins, the end of the subscriptions' current terms. */
400
167
  scheduled_at?: string;
401
168
  /** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
402
169
  proration_date?: string;
@@ -416,7 +183,7 @@ export interface CancellationCreate {
416
183
  * @minItems 1
417
184
  * @maxItems 50
418
185
  */
419
- subscription_ids: string[];
186
+ items: CancellationItemInput[];
420
187
  mode: CancellationMode;
421
188
  /** For `immediate`, the preview's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
422
189
  proration_date?: string;
@@ -456,18 +223,21 @@ export declare const CancellationItemStatus: {
456
223
  readonly failed: "failed";
457
224
  };
458
225
  /**
459
- * One subscription of the cancellation.
226
+ * One subscription item of the cancellation.
460
227
  */
461
228
  export interface CancellationItem {
462
- /** The subscription's cancellation item, the same as `Subscription.cancellation.id`. */
229
+ /** The item's entry in the cancellation, the same as `SubscriptionItem.cancellation.id`. */
463
230
  id: string;
231
+ subscription_item_id: string;
232
+ /** The subscription the item belongs to. */
464
233
  subscription_id: string;
465
234
  plan_id: string;
466
235
  plan_name: string;
467
236
  type: PriceType;
468
237
  /**
469
- * Creating the cancellation turned automatic renewal off; withdrawing it turns renewal back on
470
- * for a `metered` subscription and leaves it off for a `licensed` one.
238
+ * When the cancellation covers every continuing item of a subscription, creating it turned the
239
+ * subscription's automatic renewal off; withdrawing it turns renewal back on for a subscription with
240
+ * only `metered` items and leaves it off for one with `licensed` items.
471
241
  */
472
242
  usage_type: UsageType;
473
243
  status: CancellationItemStatus;
@@ -484,15 +254,15 @@ export interface CancellationItem {
484
254
  gateway_amount?: Money;
485
255
  }
486
256
  /**
487
- * One cancellation of a set of subscriptions of one service, released together at one time.
257
+ * One cancellation of a set of subscription items of one service, released together at one time.
488
258
  *
489
259
  * - `requested`: `immediate`, release has not begun.
490
260
  * - `scheduled`: `period_end`, waiting for `scheduled_at`.
491
261
  * - `releasing`: release has begun; it can no longer be withdrawn.
492
- * - `completed`: every subscription has ended and its refund has been made.
493
- * - `canceled`: withdrawn before release began; the subscriptions continue.
262
+ * - `completed`: every item has ended and its refund has been made.
263
+ * - `canceled`: withdrawn before release began; the items continue.
494
264
  * - `failed`: the service could not carry it out, for the reason in `failure_code`; the
495
- * subscriptions continue and can be canceled again.
265
+ * items continue and can be canceled again.
496
266
  */
497
267
  export interface Cancellation {
498
268
  id: string;
@@ -503,7 +273,7 @@ export interface Cancellation {
503
273
  proration_date?: string;
504
274
  /** Who requested it; `project_deletion` means the project was deleted. */
505
275
  origin: CancellationOrigin;
506
- /** The billing account paying for these subscriptions when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account. */
276
+ /** The billing account paying for these items when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account. */
507
277
  billing_account_id: number;
508
278
  currency: string;
509
279
  /** The refund confirmed when the cancellation was created. Absent when the platform created it. */
@@ -530,8 +300,8 @@ export interface CancellationList {
530
300
  items: Cancellation[];
531
301
  pagination: OffsetPagination;
532
302
  }
533
- export type SubscriptionCancellationStatus = (typeof SubscriptionCancellationStatus)[keyof typeof SubscriptionCancellationStatus];
534
- export declare const SubscriptionCancellationStatus: {
303
+ export type SubscriptionItemCancellationStatus = (typeof SubscriptionItemCancellationStatus)[keyof typeof SubscriptionItemCancellationStatus];
304
+ export declare const SubscriptionItemCancellationStatus: {
535
305
  readonly requested: "requested";
536
306
  readonly scheduled: "scheduled";
537
307
  readonly releasing: "releasing";
@@ -540,15 +310,15 @@ export declare const SubscriptionCancellationStatus: {
540
310
  readonly canceled: "canceled";
541
311
  };
542
312
  /**
543
- * The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
313
+ * The latest cancellation including the subscription item, with this item's entry: `id` is the entry and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
544
314
  */
545
- export interface SubscriptionCancellation {
315
+ export interface SubscriptionItemCancellation {
546
316
  reason?: string;
547
- /** The cancellation this item belongs to, with the other subscriptions released together. */
317
+ /** The cancellation this entry belongs to, with the other items released together. */
548
318
  cancellation_id?: string;
549
319
  id: string;
550
- subscription_id: string;
551
- status: SubscriptionCancellationStatus;
320
+ subscription_item_id: string;
321
+ status: SubscriptionItemCancellationStatus;
552
322
  mode: CancellationMode;
553
323
  requested_at: string;
554
324
  scheduled_at?: string;
@@ -619,8 +389,15 @@ export interface ErrorStatus {
619
389
  export interface Error {
620
390
  error: ErrorStatus;
621
391
  }
392
+ /**
393
+ * The platform service's fixed identifier, such as compute, canopy or assistant.
394
+ * @minLength 1
395
+ * @maxLength 64
396
+ * @pattern ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
397
+ */
398
+ export type ProductId = string;
622
399
  export interface Product {
623
- id: ProductID;
400
+ id: ProductId;
624
401
  name: string;
625
402
  description?: string;
626
403
  }
@@ -1105,6 +882,25 @@ export interface PaymentPreviewInvoice {
1105
882
  credit_applied: Money;
1106
883
  balance_applied: Money;
1107
884
  }
885
+ /**
886
+ * Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.
887
+ * Credit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.
888
+ * A licensed purchase may instead be paid with an online payment method.
889
+ */
890
+ export interface Funds {
891
+ /** Spendable balance after pending returns. */
892
+ available_balance_amount: Money;
893
+ /** Currently effective credits eligible for the purchases being checked out or metered usage. Each grant is counted once. */
894
+ usable_credit_amount: Money;
895
+ /** Currently effective credits that cannot fund any purchase being checked out or metered target. Unused eligible credits are not restricted. */
896
+ restricted_credit_amount: Money;
897
+ /** Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement. */
898
+ required_balance_amount: Money;
899
+ /** Additional balance needed now. Zero means account funds satisfy this purchase. No funds are reserved. */
900
+ balance_shortfall_amount: Money;
901
+ /** Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed. */
902
+ required_top_up_amount: Money;
903
+ }
1108
904
  /**
1109
905
  * What paying would take, calculated as paying does. Nothing is charged or reserved.
1110
906
  */
@@ -1310,7 +1106,7 @@ export type InvoiceItemDimensions = {
1310
1106
  [key: string]: string;
1311
1107
  };
1312
1108
  /**
1313
- * The value of one paid period moved to the new configuration of a subscription.
1109
+ * The value of one paid period moved to the new configuration of a subscription item.
1314
1110
  */
1315
1111
  export interface InvoiceItemProration {
1316
1112
  /** The earlier invoice line that paid for the period. */
@@ -1371,7 +1167,7 @@ export interface InvoiceItem {
1371
1167
  /** For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines. */
1372
1168
  dimensions?: InvoiceItemDimensions;
1373
1169
  /**
1374
- * Present on a line that changes a subscription immediately, one entry for each paid period it
1170
+ * Present on a line that changes a subscription item immediately, one entry for each paid period it
1375
1171
  * covers. `amount` is the sum of `remaining_amount` minus `credited_amount` over the entries.
1376
1172
  */
1377
1173
  prorations?: InvoiceItemProration[];
@@ -1508,7 +1304,7 @@ export declare const RefundStatus: {
1508
1304
  * - `order_canceled`: the order was canceled after part of it was paid.
1509
1305
  * - `change_canceled`: a scheduled change was withdrawn after part of it was paid.
1510
1306
  * - `change_expired`: a scheduled change could not take effect in time.
1511
- * - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
1307
+ * - `subscription_canceled`: the unused value of a canceled subscription item, under its refund terms.
1512
1308
  * - `future_period_canceled`: a renewal that had not started was withdrawn.
1513
1309
  * - `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund
1514
1310
  * policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining
@@ -1580,6 +1376,9 @@ export type UsageChargeDimensions = {
1580
1376
  [key: string]: string;
1581
1377
  };
1582
1378
  export interface UsageCharge {
1379
+ /** The subscription item the usage belongs to. */
1380
+ subscription_item_id: string;
1381
+ /** The subscription the item belongs to. */
1583
1382
  subscription_id: string;
1584
1383
  id: string;
1585
1384
  project_id?: string;
@@ -1623,6 +1422,22 @@ export interface UsageChargeList {
1623
1422
  items: UsageCharge[];
1624
1423
  pagination: OffsetPagination;
1625
1424
  }
1425
+ /**
1426
+ * `pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `trialing`: in a free trial, in service, with its licensed items not charged until `trial_end`; metered usage is charged as usual. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation of every item completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately.
1427
+ */
1428
+ export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
1429
+ export declare const SubscriptionStatus: {
1430
+ readonly pending: "pending";
1431
+ readonly provisioning: "provisioning";
1432
+ readonly active: "active";
1433
+ readonly trialing: "trialing";
1434
+ readonly suspended: "suspended";
1435
+ readonly canceled: "canceled";
1436
+ readonly terminated: "terminated";
1437
+ };
1438
+ /**
1439
+ * The renewal term of its licensed items, `interval_count` intervals long; `none` when every item is metered.
1440
+ */
1626
1441
  export type SubscriptionInterval = (typeof SubscriptionInterval)[keyof typeof SubscriptionInterval];
1627
1442
  export declare const SubscriptionInterval: {
1628
1443
  readonly none: "none";
@@ -1631,15 +1446,39 @@ export declare const SubscriptionInterval: {
1631
1446
  readonly year: "year";
1632
1447
  };
1633
1448
  /**
1634
- * An operation prevented on the subscription. `billing.subscriptions.use` stops the service. `renew` prevents renewal and paying a renewal order. `modify` prevents placing a change order. `cancel` prevents cancellation. `terminate` prevents immediate termination.
1449
+ * What happens when the trial ends while automatic renewal is off. With it on, the first paid period is charged to the account's funds or saved payment method, and this applies only when that charge fails. `cancel`: the subscription ends and its resources are released. `pause`: service stops, and renewing before the retention period ends restores it, with the first paid period starting at payment. `create_invoice`: as `pause`, and an invoice for the first paid period is issued to pay.
1635
1450
  */
1636
- export type SubscriptionRestriction = (typeof SubscriptionRestriction)[keyof typeof SubscriptionRestriction];
1637
- export declare const SubscriptionRestriction: {
1638
- readonly billingsubscriptionsuse: "billing.subscriptions.use";
1639
- readonly billingsubscriptionsrenew: "billing.subscriptions.renew";
1640
- readonly billingsubscriptionsmodify: "billing.subscriptions.modify";
1641
- readonly billingsubscriptionscancel: "billing.subscriptions.cancel";
1642
- readonly billingsubscriptionsterminate: "billing.subscriptions.terminate";
1451
+ export type TrialEndBehaviorMissingPaymentMethod = (typeof TrialEndBehaviorMissingPaymentMethod)[keyof typeof TrialEndBehaviorMissingPaymentMethod];
1452
+ export declare const TrialEndBehaviorMissingPaymentMethod: {
1453
+ readonly cancel: "cancel";
1454
+ readonly pause: "pause";
1455
+ readonly create_invoice: "create_invoice";
1456
+ };
1457
+ export interface TrialEndBehavior {
1458
+ /** What happens when the trial ends while automatic renewal is off. With it on, the first paid period is charged to the account's funds or saved payment method, and this applies only when that charge fails. `cancel`: the subscription ends and its resources are released. `pause`: service stops, and renewing before the retention period ends restores it, with the first paid period starting at payment. `create_invoice`: as `pause`, and an invoice for the first paid period is issued to pay. */
1459
+ missing_payment_method: TrialEndBehaviorMissingPaymentMethod;
1460
+ /**
1461
+ * How long a subscription stopped at the end of its trial keeps its resources before they are reclaimed; null for the platform's retention period.
1462
+ * @nullable
1463
+ */
1464
+ retention_seconds: number | null;
1465
+ }
1466
+ /**
1467
+ * How a free trial ends, as Stripe's trial_settings.
1468
+ */
1469
+ export interface TrialSettings {
1470
+ end_behavior: TrialEndBehavior;
1471
+ }
1472
+ /**
1473
+ * An operation prevented on the subscription. `billing.subscriptions.use` stops the service. `renew` prevents renewal and paying a renewal order. `modify` prevents placing a change order. `cancel` prevents cancellation. `terminate` prevents immediate termination.
1474
+ */
1475
+ export type SubscriptionRestriction = (typeof SubscriptionRestriction)[keyof typeof SubscriptionRestriction];
1476
+ export declare const SubscriptionRestriction: {
1477
+ readonly billingsubscriptionsuse: "billing.subscriptions.use";
1478
+ readonly billingsubscriptionsrenew: "billing.subscriptions.renew";
1479
+ readonly billingsubscriptionsmodify: "billing.subscriptions.modify";
1480
+ readonly billingsubscriptionscancel: "billing.subscriptions.cancel";
1481
+ readonly billingsubscriptionsterminate: "billing.subscriptions.terminate";
1643
1482
  };
1644
1483
  /**
1645
1484
  * Follows the items. `pending`: not yet accepted, paid or unpaid; its invoice shows whether payment is needed, and it can expire or be canceled. `accepted`: items are being set up. `completed`: every item was set up. `partially_completed`: some items were set up and the others failed or were canceled and refunded to their original payment sources. `failed`: no item was delivered and at least one failed; amounts collected for undelivered items are refunded. `canceled`: every item was withdrawn without delivery; collected amounts are returned to their original payment sources. No status by itself means the service was delivered.
@@ -1660,7 +1499,7 @@ export declare const ScheduledChangeInterval: {
1660
1499
  readonly year: "year";
1661
1500
  };
1662
1501
  /**
1663
- * The next accepted period-end change of the subscription: the target terms, applied at effective_at.
1502
+ * The next accepted period-end change of the item: the target terms, applied at effective_at.
1664
1503
  */
1665
1504
  export interface ScheduledChange {
1666
1505
  order_id: string;
@@ -1678,51 +1517,30 @@ export interface ScheduledChange {
1678
1517
  /** @minimum 1 */
1679
1518
  interval_count: number;
1680
1519
  }
1681
- /**
1682
- * `pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately.
1683
- */
1684
- export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
1685
- export declare const SubscriptionStatus: {
1686
- readonly pending: "pending";
1687
- readonly provisioning: "provisioning";
1688
- readonly active: "active";
1689
- readonly suspended: "suspended";
1690
- readonly canceled: "canceled";
1691
- readonly terminated: "terminated";
1692
- };
1693
1520
  /**
1694
1521
  * The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none.
1695
1522
  */
1696
- export type SubscriptionDimensions = {
1523
+ export type SubscriptionItemDimensions = {
1697
1524
  [key: string]: string;
1698
1525
  };
1699
1526
  /**
1700
- * A purchase that is billed, renewed and changed on its own, separate from the owning service's resource. A new
1701
- * recurring purchase creates a pending subscription for each order line; its ID is returned on the order item
1702
- * and stays the same through checkout, delivery, renewals and changes. A one-time purchase may create none.
1703
- *
1704
- * Pending and provisioning subscriptions grant no service. A subscription becomes provisioning when the owning
1705
- * service accepts the order, and active when the service confirms delivery, which sets started_at; payment
1706
- * changes neither. Licensed service periods start at delivery, and metered usage is charged as the service
1707
- * reports it. Canceling or failing an undelivered purchase cancels its subscriptions without starting a period.
1708
- * Renewals use recurring_amount and the agreed interval; paid periods keep their value.
1709
- *
1710
- * A shared capacity limit, such as a regional snapshot quota, has one subscription for the purchased quantity
1711
- * rather than one per item.
1527
+ * One priced part of a subscription, as a Stripe subscription item, such as the instance, a volume or the bandwidth of an elastic IP. It renews with its subscription and can be changed or canceled alone.
1712
1528
  */
1713
- export interface Subscription {
1714
- /** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
1715
- renewal_discounts_enabled?: boolean;
1716
- currency: string;
1529
+ export interface SubscriptionItem {
1530
+ id: string;
1531
+ subscription_id: string;
1532
+ plan_id: string;
1533
+ plan_name: string;
1534
+ price_id: string;
1717
1535
  type: PriceType;
1718
1536
  usage_type: UsageType;
1719
1537
  /** The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none. */
1720
- dimensions: SubscriptionDimensions;
1721
- interval: SubscriptionInterval;
1722
- /** @minimum 1 */
1723
- interval_count?: number;
1724
- /** The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions. */
1538
+ dimensions: SubscriptionItemDimensions;
1539
+ quantity: string;
1540
+ /** This item's renewal amount, after continuing discounts and before tax. A pending item shows base terms until paying the order fixes any new discount. Absent for metered and one-time items. */
1725
1541
  recurring_amount?: string;
1542
+ /** Whether new account discounts may apply to this item in future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
1543
+ renewal_discounts_enabled?: boolean;
1726
1544
  cancellation_policy?: CancellationPolicy;
1727
1545
  refund_policy?: RefundPolicy;
1728
1546
  /** Refund policy `short_rate` only, as on the price bought. */
@@ -1731,28 +1549,46 @@ export interface Subscription {
1731
1549
  short_rate_threshold_seconds?: number;
1732
1550
  /** Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item. */
1733
1551
  monthly_list_amount?: string;
1734
- order_item_id?: string;
1735
1552
  coupon_id?: string;
1736
1553
  coupon?: ObjectIdentity;
1737
1554
  /** @minimum 0 */
1738
1555
  discounted_renewals_remaining?: number;
1739
- /** The operations currently prevented on the subscription, sorted; it is suspended while this contains `billing.subscriptions.use`. */
1740
- restrictions?: SubscriptionRestriction[];
1741
- billing_cycle_anchor?: string;
1742
- cancellation?: SubscriptionCancellation;
1743
- /** The accepted period-end change scheduled for this subscription; null when there is none. */
1556
+ /** The order item that created it. */
1557
+ order_item_id?: string;
1558
+ cancellation?: SubscriptionItemCancellation;
1559
+ /** The accepted period-end change scheduled for this item; null when there is none. */
1744
1560
  scheduled_change?: ScheduledChange | null;
1561
+ created_at?: string;
1745
1562
  /**
1746
- * The saved payment method automatic renewal charges after balance and credits, before the account's default payment method. Set when a purchase, renewal or change is paid with a saved payment method. Used only while it belongs to the account paying the renewal.
1563
+ * When the item's service started. Null until its delivery is confirmed.
1747
1564
  * @nullable
1748
1565
  */
1749
- default_payment_method_id?: string | null;
1750
- created_at?: string;
1566
+ started_at?: string | null;
1567
+ /**
1568
+ * When the item ended, alone or with its subscription.
1569
+ * @nullable
1570
+ */
1571
+ ended_at?: string | null;
1572
+ }
1573
+ /**
1574
+ * A billing relationship that renews as a whole, as a Stripe subscription: one term, one renewal date, one
1575
+ * automatic renewal setting and one service state for all of its items. The owning service decides which order
1576
+ * lines form one subscription, such as a machine and the volumes and elastic IP bought with it; a resource bought
1577
+ * on its own has its own. A purchase creates pending subscriptions and items whose IDs are returned on the order
1578
+ * items and stay the same through checkout, delivery, renewals and changes.
1579
+ *
1580
+ * Pending and provisioning subscriptions grant no service. A subscription becomes provisioning when the owning
1581
+ * service accepts the order, and active, or trialing during a free trial, when the service confirms delivery,
1582
+ * which sets started_at; payment changes neither. Renewing buys further periods for every continuing licensed
1583
+ * item at once; items cannot be renewed on their own, but each can be changed or canceled alone.
1584
+ */
1585
+ export interface Subscription {
1751
1586
  id: string;
1752
1587
  /** The billing account that made the purchase. Renewals of a project subscription are charged to the project's current billing account. */
1753
1588
  billing_account_id: number;
1754
1589
  account: AccountIdentity;
1755
- product_id: ProductID;
1590
+ product_id: ProductId;
1591
+ product: Product;
1756
1592
  /**
1757
1593
  * The project it is for. Absent for an account-level purchase, such as a membership.
1758
1594
  * @nullable
@@ -1760,29 +1596,52 @@ export interface Subscription {
1760
1596
  project_id?: string | null;
1761
1597
  /** The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
1762
1598
  project?: NamedIdentity | null;
1763
- product: Product;
1764
- plan_id: string;
1765
- plan_name: string;
1766
- price_id: string;
1767
- quantity: string;
1599
+ currency: string;
1600
+ status: SubscriptionStatus;
1601
+ /** The renewal term of its licensed items, `interval_count` intervals long; `none` when every item is metered. */
1602
+ interval: SubscriptionInterval;
1603
+ /** @minimum 1 */
1604
+ interval_count?: number;
1768
1605
  /**
1769
- * When a licensed subscription renews or expires: the end of the last period bought, moved by renewing in advance. Null until the subscription becomes active, even when its purchase has been paid, and for metered subscriptions.
1606
+ * When the subscription renews or expires: the end of the free trial or of the last period bought for its licensed items, moved by renewing in advance. Null until the subscription becomes active, even when its purchase has been paid, and when every item is metered.
1770
1607
  * @nullable
1771
1608
  */
1772
1609
  current_term_end?: string | null;
1773
1610
  /**
1774
- * Start of the service period in effect now. Null when none is, including for metered subscriptions.
1611
+ * Start of the service period in effect now. Null when none is, including when every item is metered.
1775
1612
  * @nullable
1776
1613
  */
1777
1614
  current_period_start?: string | null;
1778
1615
  /**
1779
- * End of the service period in effect now; renewing in advance moves `current_term_end`, not this. Null when no period is in effect, including for metered subscriptions.
1616
+ * End of the service period in effect now; renewing in advance moves `current_term_end`, not this. Null when no period is in effect, including when every item is metered.
1780
1617
  * @nullable
1781
1618
  */
1782
1619
  current_period_end?: string | null;
1783
- /** Whether a licensed subscription renews automatically. A metered subscription continues until it is canceled; for it this is true until a cancellation is requested, and cannot be set. */
1620
+ billing_cycle_anchor?: string;
1621
+ /** Whether the subscription renews automatically, or converts to paid when its free trial ends. Without licensed items it continues until it is canceled; then this is true until a cancellation is requested, and cannot be set. */
1784
1622
  auto_renew: boolean;
1785
- status: SubscriptionStatus;
1623
+ /**
1624
+ * Start of the free trial; null without one. During the trial the licensed items are free, while metered usage is charged as usual.
1625
+ * @nullable
1626
+ */
1627
+ trial_start?: string | null;
1628
+ /**
1629
+ * End of the free trial; null without one. It is `current_term_end` until the first paid period is bought.
1630
+ * @nullable
1631
+ */
1632
+ trial_end?: string | null;
1633
+ /** How the free trial ends; null without one. */
1634
+ trial_settings?: TrialSettings | null;
1635
+ /** The operations currently prevented on the subscription, sorted; it is suspended while this contains `billing.subscriptions.use`. */
1636
+ restrictions?: SubscriptionRestriction[];
1637
+ /**
1638
+ * The saved payment method automatic renewal charges after balance and credits, before the account's default payment method. Set when a purchase, renewal or change is paid with a saved payment method. Used only while it belongs to the account paying the renewal.
1639
+ * @nullable
1640
+ */
1641
+ default_payment_method_id?: string | null;
1642
+ /** Every item, ended ones included, oldest first. */
1643
+ items: SubscriptionItem[];
1644
+ created_at?: string;
1786
1645
  /**
1787
1646
  * When service started. Null until a new subscription becomes active, also after payment.
1788
1647
  * @nullable
@@ -1795,31 +1654,47 @@ export interface SubscriptionList {
1795
1654
  items: Subscription[];
1796
1655
  pagination: OffsetPagination;
1797
1656
  }
1798
- export type RenewalPriceInterval = (typeof RenewalPriceInterval)[keyof typeof RenewalPriceInterval];
1799
- export declare const RenewalPriceInterval: {
1657
+ export type RenewalOptionInterval = (typeof RenewalOptionInterval)[keyof typeof RenewalOptionInterval];
1658
+ export declare const RenewalOptionInterval: {
1800
1659
  readonly day: "day";
1801
1660
  readonly month: "month";
1802
1661
  readonly year: "year";
1803
1662
  };
1804
- export interface RenewalPrice {
1663
+ /**
1664
+ * What one item renews at under a renewal option.
1665
+ */
1666
+ export interface RenewalOptionItem {
1667
+ subscription_item_id: string;
1668
+ /**
1669
+ * The price the item renews at; null on the current option, which keeps the agreed amount.
1670
+ * @nullable
1671
+ */
1672
+ price_id: string | null;
1673
+ /** One period of this item, before tax and discounts. */
1674
+ amount: Money;
1805
1675
  cancellation_policy?: CancellationPolicy;
1806
1676
  refund_policy?: RefundPolicy;
1807
1677
  /** Refund policy `short_rate` only. */
1808
1678
  short_rate_multiplier?: string;
1809
1679
  /** Refund policy `short_rate` only. */
1810
1680
  short_rate_threshold_seconds?: number;
1811
- price_id: string;
1812
- /** How many periods one renewal covers. */
1681
+ }
1682
+ /**
1683
+ * One term the whole subscription can renew for. Every continuing licensed item renews at it; items with an open cancellation end with the current term and are left out.
1684
+ */
1685
+ export interface RenewalOption {
1686
+ interval: RenewalOptionInterval;
1687
+ /** How many intervals one renewal covers. */
1813
1688
  interval_count: number;
1814
- interval: RenewalPriceInterval;
1815
- /** What renewing for this term costs, for the quantity held. */
1816
- amount?: Money;
1817
- currency?: string;
1818
- /** The term the subscription renews at now; renewing for it keeps the agreed price. */
1689
+ /** The term the subscription renews at now; renewing for it keeps every item's agreed price. */
1819
1690
  current: boolean;
1691
+ /** One period for every item, before tax and discounts. */
1692
+ amount: Money;
1693
+ currency: string;
1694
+ items: RenewalOptionItem[];
1820
1695
  }
1821
- export interface RenewalPriceList {
1822
- items: RenewalPrice[];
1696
+ export interface RenewalOptionList {
1697
+ items: RenewalOption[];
1823
1698
  pagination: OffsetPagination;
1824
1699
  }
1825
1700
  /**
@@ -1835,7 +1710,7 @@ export interface RenewRequest {
1835
1710
  /** The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome. */
1836
1711
  order_id: string;
1837
1712
  /**
1838
- * How many further periods to buy, each at the price the subscription already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead.
1713
+ * How many further periods to buy for every renewed item, each at the price it already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead.
1839
1714
  * @minimum 1
1840
1715
  */
1841
1716
  periods?: number;
@@ -1843,19 +1718,21 @@ export interface RenewRequest {
1843
1718
  * Renew for a term of this length instead, at the price currently sold for it. Give
1844
1719
  * `interval` with it.
1845
1720
  *
1846
- * Leaving both out renews at the price this item already bills at, which a later price
1721
+ * Leaving both out renews every item at the price it already bills at, which a later price
1847
1722
  * change does not affect. Naming a term that differs from the current one is a fresh
1848
- * choice, so it is bought at today's price. Naming the current term changes nothing. A
1849
- * term sold at several prices that differ in cancellation policy is refused with 409
1723
+ * choice, so every item is bought at today's price for that term, with its own cancellation
1724
+ * policy or, without one, the only price of that term. Naming the current term changes
1725
+ * nothing. A term an item does not sell is refused with 409 `BILLING_RENEWAL_PRICE_UNAVAILABLE`
1726
+ * and `meta.subscription_item_id`; prices the rule cannot choose between, with 409
1850
1727
  * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.
1851
1728
  *
1852
- * List the terms on offer with the renewal prices operation.
1729
+ * List the terms on offer with the renewal options operation.
1853
1730
  * @minimum 1
1854
1731
  */
1855
1732
  interval_count?: number;
1856
1733
  /** The unit interval_count counts in. */
1857
1734
  interval?: RenewRequestInterval;
1858
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
1735
+ /** With `interval` and `interval_count`, renews every item at its price of that term with this cancellation policy. */
1859
1736
  cancellation_policy?: CancellationPolicy;
1860
1737
  payment_method_id?: string;
1861
1738
  /** Whether to pay from the balance, with or without `payment_method_id`. */
@@ -1864,11 +1741,16 @@ export interface RenewRequest {
1864
1741
  use_credits?: boolean;
1865
1742
  return_url?: string;
1866
1743
  }
1867
- export interface AutoRenewSet {
1868
- auto_renew: boolean;
1744
+ /**
1745
+ * The settings to change; settings left out keep their values.
1746
+ */
1747
+ export interface SubscriptionUpdate {
1748
+ auto_renew?: boolean;
1869
1749
  }
1870
1750
  /**
1871
- * `open`: waiting for you to complete checkout; nothing is ordered, invoiced or reserved. `complete`: the order and its issued invoice exist; read the order for payment and delivery. `expired`: ended without an order.
1751
+ * "`open`: waiting for you to complete checkout; nothing is ordered, invoiced or reserved. `complete`:
1752
+ * the order and its issued invoice exist; read the order for payment and delivery. `expired`: ended without an
1753
+ * order."
1872
1754
  */
1873
1755
  export type CheckoutSessionStatus = (typeof CheckoutSessionStatus)[keyof typeof CheckoutSessionStatus];
1874
1756
  export declare const CheckoutSessionStatus: {
@@ -1877,7 +1759,8 @@ export declare const CheckoutSessionStatus: {
1877
1759
  readonly expired: "expired";
1878
1760
  };
1879
1761
  /**
1880
- * `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms.
1762
+ * "`new` buys, `renew` extends subscriptions, `modify` changes subscription items' configuration or
1763
+ * billing terms."
1881
1764
  */
1882
1765
  export type CheckoutSessionType = (typeof CheckoutSessionType)[keyof typeof CheckoutSessionType];
1883
1766
  export declare const CheckoutSessionType: {
@@ -1894,6 +1777,16 @@ export declare const CheckoutSessionChangeEffective: {
1894
1777
  readonly immediate: "immediate";
1895
1778
  readonly period_end: "period_end";
1896
1779
  };
1780
+ /**
1781
+ * "`complete`: tax is calculated for the billing account's invoice contact, or for `address` in a preview
1782
+ * without an account. `requires_location_inputs`: a preview without an account or `address`, which leaves out
1783
+ * tax that would be added; tax already contained in a price is included."
1784
+ */
1785
+ export type CheckoutSessionTaxStatus = (typeof CheckoutSessionTaxStatus)[keyof typeof CheckoutSessionTaxStatus];
1786
+ export declare const CheckoutSessionTaxStatus: {
1787
+ readonly complete: "complete";
1788
+ readonly requires_location_inputs: "requires_location_inputs";
1789
+ };
1897
1790
  /**
1898
1791
  * automatic completes checkout with the purchase: the best applicable account discount is applied, and the
1899
1792
  * order is created with its invoice issued and paid from eligible credit grants and available balance.
@@ -1930,85 +1823,630 @@ export interface CheckoutOptions {
1930
1823
  * target; each client validates its own.
1931
1824
  * @maxLength 2048
1932
1825
  */
1933
- return_url?: string;
1826
+ return_url?: string;
1827
+ /**
1828
+ * Turns on automatic renewal of every subscription with licensed items that the purchase opens. Off
1829
+ * when omitted. It must be the customer's own choice. For a free trial, it converts the trial to paid
1830
+ * when the trial ends.
1831
+ */
1832
+ auto_renew?: boolean;
1833
+ /**
1834
+ * A free trial grant of the paying billing account that the customer chose to use. The first new
1835
+ * subscription of the purchase whose lines the grant's offer all covers, and that has a licensed line and
1836
+ * no trial of its own, opens with the offer's free trial. Accepted only in automatic mode; with deferred it is refused with
1837
+ * HTTP 400, and the grant is chosen when completing the checkout through Billing. Refused with
1838
+ * BILLING_TRIAL_GRANT_INAPPLICABLE when no subscription qualifies or the grant cannot be used now.
1839
+ */
1840
+ trial_grant_id?: string;
1841
+ }
1842
+ export type CheckoutSessionDiscountType = (typeof CheckoutSessionDiscountType)[keyof typeof CheckoutSessionDiscountType];
1843
+ export declare const CheckoutSessionDiscountType: {
1844
+ readonly promotion_code: "promotion_code";
1845
+ readonly account_discount: "account_discount";
1846
+ };
1847
+ /**
1848
+ * "Whether the discount continues on renewals of what is bought: `once` applies only to this
1849
+ * purchase, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal."
1850
+ */
1851
+ export type CheckoutSessionDiscountFrequency = (typeof CheckoutSessionDiscountFrequency)[keyof typeof CheckoutSessionDiscountFrequency];
1852
+ export declare const CheckoutSessionDiscountFrequency: {
1853
+ readonly once: "once";
1854
+ readonly recurring: "recurring";
1855
+ readonly forever: "forever";
1856
+ };
1857
+ /**
1858
+ * "`confirmed`: every condition of the discount holds for the billing account. `unverified`: a preview
1859
+ * without an account, where conditions that depend on the account, such as a first purchase or a per-account
1860
+ * limit, are checked only when a session is completed."
1861
+ */
1862
+ export type CheckoutSessionDiscountEligibility = (typeof CheckoutSessionDiscountEligibility)[keyof typeof CheckoutSessionDiscountEligibility];
1863
+ export declare const CheckoutSessionDiscountEligibility: {
1864
+ readonly confirmed: "confirmed";
1865
+ readonly unverified: "unverified";
1866
+ };
1867
+ /**
1868
+ * The discount a session gets. It is redeemed only when the session completes.
1869
+ */
1870
+ export interface CheckoutSessionDiscount {
1871
+ type: CheckoutSessionDiscountType;
1872
+ name: string;
1873
+ /**
1874
+ * Code text for a promotion_code discount; null for an account_discount.
1875
+ * @minLength 1
1876
+ * @maxLength 64
1877
+ * @nullable
1878
+ */
1879
+ promotion_code: string | null;
1880
+ /**
1881
+ * "Whether the discount continues on renewals of what is bought: `once` applies only to this
1882
+ * purchase, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal."
1883
+ */
1884
+ frequency: CheckoutSessionDiscountFrequency;
1885
+ /**
1886
+ * For `recurring`, the periods the discount lasts; null otherwise.
1887
+ * @minimum 1
1888
+ * @nullable
1889
+ */
1890
+ frequency_duration: number | null;
1891
+ /**
1892
+ * "`confirmed`: every condition of the discount holds for the billing account. `unverified`: a preview
1893
+ * without an account, where conditions that depend on the account, such as a first purchase or a per-account
1894
+ * limit, are checked only when a session is completed."
1895
+ */
1896
+ eligibility: CheckoutSessionDiscountEligibility;
1897
+ }
1898
+ /**
1899
+ * The terms of a free trial. The licensed items of the subscription it is used for are free for `trial_period_days`, while metered usage is charged as usual. When the trial ends it converts to paid if automatic renewal is on; otherwise `trial_settings` applies.
1900
+ */
1901
+ export interface TrialOffer {
1902
+ id: string;
1903
+ name: string;
1904
+ description: string;
1905
+ /**
1906
+ * @minimum 1
1907
+ * @maximum 730
1908
+ */
1909
+ trial_period_days: number;
1910
+ trial_settings: TrialSettings;
1911
+ /** The purchases it can be used for. Every line of the subscription must be covered. */
1912
+ applies_to: Applicability;
1913
+ }
1914
+ /**
1915
+ * `scheduled` before valid_from, `available` to be chosen at checkout, `redeemed` once used for a subscription, `expired` after valid_until without being used, or `voided` once withdrawn.
1916
+ */
1917
+ export type TrialGrantStatus = (typeof TrialGrantStatus)[keyof typeof TrialGrantStatus];
1918
+ export declare const TrialGrantStatus: {
1919
+ readonly scheduled: "scheduled";
1920
+ readonly available: "available";
1921
+ readonly redeemed: "redeemed";
1922
+ readonly expired: "expired";
1923
+ readonly voided: "voided";
1924
+ };
1925
+ /**
1926
+ * One free trial held by a billing account for a period. It is used for one subscription; if the order it was used for is canceled or fails, it can be used again while it is valid.
1927
+ */
1928
+ export interface TrialGrant {
1929
+ id: string;
1930
+ billing_account_id: number;
1931
+ trial_offer: TrialOffer;
1932
+ status: TrialGrantStatus;
1933
+ valid_from: string;
1934
+ /**
1935
+ * Null when the grant does not expire.
1936
+ * @nullable
1937
+ */
1938
+ valid_until: string | null;
1939
+ /** @nullable */
1940
+ voided_at: string | null;
1941
+ /**
1942
+ * The order the grant was used for; null until it is used.
1943
+ * @nullable
1944
+ */
1945
+ order_id: string | null;
1946
+ /**
1947
+ * The subscription the grant was used for; null until it is used.
1948
+ * @nullable
1949
+ */
1950
+ subscription_id: string | null;
1951
+ /** @nullable */
1952
+ redeemed_at: string | null;
1953
+ }
1954
+ /**
1955
+ * Settings of a subscription a purchase opens, as Stripe Checkout's subscription_data.
1956
+ */
1957
+ export interface SubscriptionData {
1958
+ /**
1959
+ * A free trial of this many days; null without one or when given as `trial_end`.
1960
+ * @minimum 1
1961
+ * @maximum 730
1962
+ * @nullable
1963
+ */
1964
+ trial_period_days: number | null;
1965
+ /**
1966
+ * The end of the free trial; null without one or when given in days.
1967
+ * @nullable
1968
+ */
1969
+ trial_end: string | null;
1970
+ /** How the free trial ends; null without a trial. */
1971
+ trial_settings: TrialSettings | null;
1972
+ }
1973
+ /**
1974
+ * A free trial a subscription opens with. Its licensed items are free until `trial_end`; metered usage is
1975
+ * charged as usual. For an open session the times are as if it were completed now.
1976
+ */
1977
+ export interface CheckoutSessionTrial {
1978
+ trial_start: string;
1979
+ trial_end: string;
1980
+ trial_settings: TrialSettings;
1981
+ }
1982
+ /**
1983
+ * The term every item of the subscription renews for, for renewals; `none` otherwise.
1984
+ */
1985
+ export type CheckoutSessionSubscriptionInterval = (typeof CheckoutSessionSubscriptionInterval)[keyof typeof CheckoutSessionSubscriptionInterval];
1986
+ export declare const CheckoutSessionSubscriptionInterval: {
1987
+ readonly none: "none";
1988
+ readonly day: "day";
1989
+ readonly month: "month";
1990
+ readonly year: "year";
1991
+ };
1992
+ /**
1993
+ * The billing period of a recurring licensed price; `none` otherwise, and when `price_id` is null.
1994
+ */
1995
+ export type CheckoutSessionItemInterval = (typeof CheckoutSessionItemInterval)[keyof typeof CheckoutSessionItemInterval];
1996
+ export declare const CheckoutSessionItemInterval: {
1997
+ readonly none: "none";
1998
+ readonly day: "day";
1999
+ readonly month: "month";
2000
+ readonly year: "year";
2001
+ };
2002
+ /**
2003
+ * What an immediate downgrade would refund, estimated as of `proration_date`. The refund itself is determined
2004
+ * when the change takes effect.
2005
+ */
2006
+ export interface CheckoutSessionItemDowngradeRefund {
2007
+ /** Returned to the original payment sources, tax paid on it included. */
2008
+ refundable_amount: Money;
2009
+ /** Before tax, the part of the excess that the item's refund terms do not return. */
2010
+ forfeited_amount: Money;
2011
+ }
2012
+ /**
2013
+ * The dimension values of what is bought, such as region and instance type.
2014
+ */
2015
+ export type CheckoutSessionItemDimensions = {
2016
+ [key: string]: string;
2017
+ };
2018
+ /**
2019
+ * One item of the session; it becomes the order item at the same position. Its price is selected as when
2020
+ * checkout completes, and amounts are this item's share of the session's.
2021
+ */
2022
+ export interface CheckoutSessionItem {
2023
+ /**
2024
+ * Counted across the session's subscriptions in order, starting from zero.
2025
+ * @minimum 0
2026
+ */
2027
+ position: number;
2028
+ /**
2029
+ * The subscription item changed or renewed. Null for an item the purchase adds.
2030
+ * @nullable
2031
+ */
2032
+ subscription_item_id: string | null;
2033
+ product_id: ProductId;
2034
+ plan_id: string;
2035
+ plan_name: string;
2036
+ /**
2037
+ * The price the item is charged under: the one it named, or the one selected by billing terms or from the
2038
+ * subscription item changed or renewed. Null for an expired session whose item did not name one.
2039
+ * @nullable
2040
+ */
2041
+ price_id: string | null;
2042
+ /** The price type; null when `price_id` is. */
2043
+ type: PriceType | null;
2044
+ /** The usage type; null when `price_id` is. */
2045
+ usage_type: UsageType | null;
2046
+ /** The billing period of a recurring licensed price; `none` otherwise, and when `price_id` is null. */
2047
+ interval: CheckoutSessionItemInterval;
2048
+ /**
2049
+ * Periods per billing cycle of a recurring licensed price; null otherwise.
2050
+ * @minimum 1
2051
+ * @nullable
2052
+ */
2053
+ interval_count: number | null;
2054
+ quantity: string;
2055
+ /** The dimension values of what is bought, such as region and instance type. */
2056
+ dimensions: CheckoutSessionItemDimensions;
2057
+ /**
2058
+ * Renewals only; null otherwise. How many consecutive periods are renewed.
2059
+ * @minimum 1
2060
+ * @nullable
2061
+ */
2062
+ periods: number | null;
2063
+ /** Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing. */
2064
+ unit_amount: Money | null;
2065
+ /** The setup charge already included in `amount`; null when none applies. */
2066
+ setup_amount: Money | null;
2067
+ /**
2068
+ * Recurring licensed items only; null otherwise. What each later period renews at, before discounts and
2069
+ * tax, which differs from `amount` when the first period is priced differently, such as in a free trial. The
2070
+ * session's `discount` says whether its discount continues on renewals.
2071
+ */
2072
+ recurring_amount: Money | null;
2073
+ /** Amount before discounts, including any setup charge. */
2074
+ amount: Money | null;
2075
+ /** Total reduction on this item, including any continuing renewal discount. */
2076
+ discount_amount: Money | null;
2077
+ /** Tax on the discounted amount, including any tax already contained in that amount. */
2078
+ tax_amount: Money | null;
2079
+ /** The part of tax_amount already contained in amount minus discount_amount. */
2080
+ tax_included_amount: Money | null;
2081
+ /** amount minus discount_amount plus tax_amount minus tax_included_amount. */
2082
+ total: Money | null;
2083
+ /**
2084
+ * Immediate changes only; null otherwise. Before tax, the new terms for the time from `proration_date` to
2085
+ * the end of the paid period. An upgrade invoices `remaining_amount` minus `unused_amount`.
2086
+ */
2087
+ remaining_amount: Money | null;
2088
+ /**
2089
+ * Immediate changes only; null otherwise. Before tax, for an upgrade or an unchanged period price, the
2090
+ * amount paid for that time, up to the new terms' value for the same time; for a downgrade, the remaining value
2091
+ * of what was paid, under the refund terms of each paid period.
2092
+ */
2093
+ unused_amount: Money | null;
2094
+ /** Immediate downgrades only, when `unused_amount` exceeds `remaining_amount`; null otherwise. */
2095
+ downgrade_refund: CheckoutSessionItemDowngradeRefund | null;
2096
+ }
2097
+ /**
2098
+ * One subscription of the session and its items, with its share of the session's amounts.
2099
+ */
2100
+ export interface CheckoutSessionSubscription {
2101
+ /**
2102
+ * The existing subscription renewed or changed, or that new items are added to. Null for a subscription the purchase opens.
2103
+ * @nullable
2104
+ */
2105
+ subscription_id: string | null;
2106
+ /** The settings the owning service gave a subscription the purchase opens; null without any. */
2107
+ subscription_data: SubscriptionData | null;
2108
+ /**
2109
+ * The free trial grant this subscription uses, saved on an open session or used by a complete one; null otherwise.
2110
+ * @nullable
2111
+ */
2112
+ trial_grant_id: string | null;
2113
+ /** The free trial the subscription opens with, from `subscription_data` or the trial grant. Null without one, and for an expired session. */
2114
+ trial: CheckoutSessionTrial | null;
2115
+ /** The term every item of the subscription renews for, for renewals; `none` otherwise. */
2116
+ interval: CheckoutSessionSubscriptionInterval;
2117
+ /**
2118
+ * Renewals only; null otherwise.
2119
+ * @minimum 1
2120
+ * @nullable
2121
+ */
2122
+ interval_count: number | null;
2123
+ /**
2124
+ * Renewals only; null otherwise. How many consecutive terms are renewed.
2125
+ * @minimum 1
2126
+ * @nullable
2127
+ */
2128
+ periods: number | null;
2129
+ /** The items' amounts before discounts, including any setup charge. */
2130
+ amount: Money | null;
2131
+ discount_amount: Money | null;
2132
+ /** Tax on the discounted amount, including any tax already contained in it. */
2133
+ tax_amount: Money | null;
2134
+ /** The part of `tax_amount` already contained in `amount` minus `discount_amount`. */
2135
+ tax_included_amount: Money | null;
2136
+ /** amount minus discount_amount plus tax_amount minus tax_included_amount; this subscription's share of the session's `total`. */
2137
+ total: Money | null;
2138
+ /** The subscription's items, in order. */
2139
+ items: CheckoutSessionItem[];
2140
+ }
2141
+ /**
2142
+ * A purchase, a change of subscriptions or their renewal, waiting for checkout to be completed, and what
2143
+ * completing it invoices. Completing it applies the choices saved on it and creates the order with its invoice
2144
+ * issued; the order carries the session's ID. A preview returns the same object without saving it.
2145
+ *
2146
+ * Amounts are what completing an open session would invoice at the time it is read, and for a complete session
2147
+ * those of its order's invoice. An expired session has no amounts; they are null.
2148
+ */
2149
+ export interface CheckoutSession {
2150
+ /**
2151
+ * Null in a preview.
2152
+ * @nullable
2153
+ */
2154
+ id: string | null;
2155
+ product_id: ProductId;
2156
+ /**
2157
+ * Null in a preview without an account.
2158
+ * @nullable
2159
+ */
2160
+ billing_account_id: number | null;
2161
+ /** Null in a preview without an account. */
2162
+ account: AccountIdentity | null;
2163
+ /**
2164
+ * The project the purchase is for. Null for an account-level purchase, such as a membership, and in a preview.
2165
+ * @nullable
2166
+ */
2167
+ project_id: string | null;
2168
+ /**
2169
+ * The project and its current name. Null when `project_id` is, or when the project cannot be read;
2170
+ * `project_id` still identifies it.
2171
+ */
2172
+ project: NamedIdentity | null;
2173
+ /**
2174
+ * "`new` buys, `renew` extends subscriptions, `modify` changes subscription items' configuration or
2175
+ * billing terms."
2176
+ */
2177
+ type: CheckoutSessionType;
2178
+ /** When a change takes effect, as on the order it creates; `none` for anything that is not a change. */
2179
+ change_effective: CheckoutSessionChangeEffective;
2180
+ /** `open` in a preview. */
2181
+ status: CheckoutSessionStatus;
2182
+ currency: string;
2183
+ /**
2184
+ * The checkout choices, as the purchase gave them and as you saved them since. Billing does not check
2185
+ * `return_url`; validate it before navigating.
2186
+ */
2187
+ checkout: CheckoutOptions;
2188
+ /**
2189
+ * The promotion code saved on the session, or used to complete it; null without one.
2190
+ * @nullable
2191
+ */
2192
+ promotion_code: string | null;
2193
+ /** The discount the session gets, from its promotion code or otherwise the best applicable account discount. Null when there is none, and for an expired session. */
2194
+ discount: CheckoutSessionDiscount | null;
2195
+ /** Sum before discounts, excluding tax already included in the item amounts. */
2196
+ subtotal: Money | null;
2197
+ /** Total item discounts. */
2198
+ discount_amount: Money | null;
2199
+ /** Total tax on the discounted amounts. */
2200
+ tax_amount: Money | null;
2201
+ /** subtotal minus discount_amount plus tax_amount, before credit grants and balance. Confirm an open session with it as `expected_amount`. */
2202
+ total: Money | null;
2203
+ /**
2204
+ * "`complete`: tax is calculated for the billing account's invoice contact, or for `address` in a preview
2205
+ * without an account. `requires_location_inputs`: a preview without an account or `address`, which leaves out
2206
+ * tax that would be added; tax already contained in a price is included."
2207
+ */
2208
+ tax_status: CheckoutSessionTaxStatus;
2209
+ /**
2210
+ * Immediate changes and items added to an existing subscription of an open session only; null otherwise.
2211
+ * The instant they are priced from; confirm the session with it so it is priced from the same instant.
2212
+ * @nullable
2213
+ */
2214
+ proration_date: string | null;
2215
+ /** Account funds for completing an open session; null for other sessions and without an account. */
2216
+ funds: Funds | null;
2217
+ /**
2218
+ * The free trial grants of the account that the session can use now, soonest to expire first. Empty for a
2219
+ * session that is not open, without an account, and for changes and renewals.
2220
+ */
2221
+ trial_grants: TrialGrant[];
2222
+ /**
2223
+ * When an open session expires; null in a preview. The order a complete session created has its own payment deadline.
2224
+ * @nullable
2225
+ */
2226
+ expires_at: string | null;
2227
+ /**
2228
+ * Null in a preview.
2229
+ * @nullable
2230
+ */
2231
+ created_at: string | null;
2232
+ /** @nullable */
2233
+ completed_at: string | null;
2234
+ /** @nullable */
2235
+ expired_at: string | null;
2236
+ /**
2237
+ * The order created when the session completed. Null otherwise.
2238
+ * @nullable
2239
+ */
2240
+ order_id: string | null;
2241
+ /** The subscriptions the session buys, renews or changes, in order, each with its items. */
2242
+ subscriptions: CheckoutSessionSubscription[];
2243
+ }
2244
+ export interface CheckoutSessionList {
2245
+ items: CheckoutSession[];
2246
+ pagination: OffsetPagination;
2247
+ }
2248
+ /**
2249
+ * Settings of a subscription a previewed purchase opens, as the owning service would give them.
2250
+ */
2251
+ export interface SubscriptionDataInput {
2252
+ /**
2253
+ * Give this or `trial_end`, not both.
2254
+ * @minimum 1
2255
+ * @maximum 730
2256
+ */
2257
+ trial_period_days?: number;
2258
+ trial_end?: string;
2259
+ trial_settings?: TrialSettings;
2260
+ }
2261
+ /**
2262
+ * `new` previews a purchase, `modify` a change of subscription items, `renew` a renewal.
2263
+ */
2264
+ export type CheckoutSessionPreviewRequestType = (typeof CheckoutSessionPreviewRequestType)[keyof typeof CheckoutSessionPreviewRequestType];
2265
+ export declare const CheckoutSessionPreviewRequestType: {
2266
+ readonly new: "new";
2267
+ readonly renew: "renew";
2268
+ readonly modify: "modify";
2269
+ };
2270
+ /**
2271
+ * For `modify` only; defaults to `immediate`. `immediate` prices the rest of the paid period from
2272
+ * `proration_date`, charging an upgrade the difference and showing what a downgrade refunds. `period_end`
2273
+ * prices the first period at the new terms, which replaces the renewal when the paid period ends.
2274
+ */
2275
+ export type CheckoutSessionPreviewRequestChangeEffective = (typeof CheckoutSessionPreviewRequestChangeEffective)[keyof typeof CheckoutSessionPreviewRequestChangeEffective];
2276
+ export declare const CheckoutSessionPreviewRequestChangeEffective: {
2277
+ readonly immediate: "immediate";
2278
+ readonly period_end: "period_end";
2279
+ };
2280
+ /**
2281
+ * For `renew` only, as in creating a renewal Checkout Session.
2282
+ */
2283
+ export type CheckoutSessionPreviewRequestInterval = (typeof CheckoutSessionPreviewRequestInterval)[keyof typeof CheckoutSessionPreviewRequestInterval];
2284
+ export declare const CheckoutSessionPreviewRequestInterval: {
2285
+ readonly day: "day";
2286
+ readonly month: "month";
2287
+ readonly year: "year";
2288
+ };
2289
+ /**
2290
+ * Where a customer is, for the tax that would be added there.
2291
+ */
2292
+ export interface CustomerAddress {
2293
+ /**
2294
+ * ISO 3166-1 alpha-2, two uppercase letters.
2295
+ * @pattern ^[A-Z]{2}$
2296
+ */
2297
+ country: string;
2298
+ /**
2299
+ * The state or province, as the tax rates name it.
2300
+ * @minLength 1
2301
+ * @maxLength 128
2302
+ */
2303
+ state?: string;
2304
+ }
2305
+ export type CheckoutSessionItemInputInterval = (typeof CheckoutSessionItemInputInterval)[keyof typeof CheckoutSessionItemInputInterval];
2306
+ export declare const CheckoutSessionItemInputInterval: {
2307
+ readonly none: "none";
2308
+ readonly day: "day";
2309
+ readonly month: "month";
2310
+ readonly year: "year";
2311
+ };
2312
+ /**
2313
+ * The dimension values of what is bought, such as region and instance type, or after a change, given in full. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused with `BILLING_PRICE_UNAVAILABLE` rather than priced at zero. Prices are set per currency, and a currency may not offer some combinations at all, for example in a region it does not sell to.
2314
+ */
2315
+ export type CheckoutSessionItemInputDimensions = {
2316
+ [key: string]: string;
2317
+ };
2318
+ /**
2319
+ * Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and
2320
+ * product_id with lookup keys. A change names its `subscription_item_id`; without a price or billing terms the
2321
+ * plan's price with the item's price type, usage type, interval, interval count and cancellation policy is
2322
+ * selected, and omitted dimensions keep the item's. A metered item includes only any setup charge; its usage is
2323
+ * estimated with `estimate-usage`.
2324
+ */
2325
+ export interface CheckoutSessionItemInput {
2326
+ /** For `modify` only. The subscription item changed. */
2327
+ subscription_item_id?: string;
2328
+ /**
2329
+ * @minLength 1
2330
+ * @maxLength 128
2331
+ */
2332
+ price_lookup_key?: string;
2333
+ /**
2334
+ * @minLength 1
2335
+ * @maxLength 128
2336
+ */
2337
+ plan_lookup_key?: string;
2338
+ price_id?: string;
2339
+ product_id?: ProductId;
2340
+ plan_id?: string;
2341
+ /** Narrows the selection when a plan offers more than one price type. */
2342
+ price_type?: PriceType;
2343
+ /** Narrows the selection when a plan offers more than one usage type. */
2344
+ usage_type?: UsageType;
2345
+ interval?: CheckoutSessionItemInputInterval;
2346
+ /** @minimum 1 */
2347
+ interval_count?: number;
2348
+ /** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
2349
+ cancellation_policy?: CancellationPolicy;
2350
+ /**
2351
+ * The quantity bought, or after a change.
2352
+ * @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$
2353
+ */
2354
+ quantity: string;
2355
+ /** The dimension values of what is bought, such as region and instance type, or after a change, given in full. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused with `BILLING_PRICE_UNAVAILABLE` rather than priced at zero. Prices are set per currency, and a currency may not offer some combinations at all, for example in a region it does not sell to. */
2356
+ dimensions?: CheckoutSessionItemInputDimensions;
2357
+ }
2358
+ /**
2359
+ * One subscription of the previewed session. For `new`, give its items, with `subscription_id` to add them to
2360
+ * that existing subscription and otherwise optionally `subscription_data`; for `modify`, the subscription and the
2361
+ * items changed; for `renew`, only the subscription.
2362
+ */
2363
+ export interface CheckoutSessionPreviewSubscription {
2364
+ subscription_id?: string;
2365
+ /**
2366
+ * @minItems 1
2367
+ * @maxItems 100
2368
+ */
2369
+ items?: CheckoutSessionItemInput[];
2370
+ subscription_data?: SubscriptionDataInput;
1934
2371
  }
1935
2372
  /**
1936
- * A purchase waiting for you to complete checkout. Completing it applies the discount and creates the order with its invoice issued; the order carries the session's ID.
2373
+ * The session to preview, as it would be created. Give exactly one of `billing_account_id` and `currency`;
2374
+ * changes, renewals, items added to an existing subscription and trial grants need the account. A request that
2375
+ * does not fit `type` fails with `BILLING_PURCHASE_INVALID` and the field.
1937
2376
  */
1938
- export interface CheckoutSession {
1939
- id: string;
1940
- product_id: ProductID;
1941
- billing_account_id: number;
1942
- account: AccountIdentity;
2377
+ export interface CheckoutSessionPreviewRequest {
2378
+ /** `new` previews a purchase, `modify` a change of subscription items, `renew` a renewal. */
2379
+ type: CheckoutSessionPreviewRequestType;
1943
2380
  /**
1944
- * The project the purchase is for. Null for an account-level purchase, such as a membership.
1945
- * @nullable
2381
+ * The billing account to price for; it must be yours or currently pay for a project you are a member of, and an access token is required. Subscriptions changed or renewed must currently be paid by it.
2382
+ * @minimum 1
1946
2383
  */
1947
- project_id: string | null;
1948
- /** The project and its current name. Null for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
1949
- project: NamedIdentity | null;
1950
- /** `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms. */
1951
- type: CheckoutSessionType;
1952
- /** When a change takes effect, as on the order it creates; `none` for anything that is not a change. */
1953
- change_effective: CheckoutSessionChangeEffective;
1954
- status: CheckoutSessionStatus;
1955
- currency: string;
1956
- /** The checkout choices as the purchase gave them. Billing does not check `return_url`; validate it before navigating. */
1957
- checkout: CheckoutOptions;
1958
- /** When an open session expires. The order a complete session created has its own payment deadline. */
1959
- expires_at: string;
1960
- created_at: string;
1961
- /** @nullable */
1962
- completed_at: string | null;
1963
- /** @nullable */
1964
- expired_at: string | null;
2384
+ billing_account_id?: number;
1965
2385
  /**
1966
- * The order created when the session completed. Null otherwise.
1967
- * @nullable
2386
+ * For `new` only. The ISO 4217 currency to price in without an account.
2387
+ * @minLength 3
2388
+ * @maxLength 3
1968
2389
  */
1969
- order_id: string | null;
1970
- }
1971
- export interface CheckoutSessionList {
1972
- items: CheckoutSession[];
1973
- pagination: OffsetPagination;
2390
+ currency?: string;
2391
+ /**
2392
+ * Only with `currency`. Where the customer is, to include the tax that would be added there for a customer
2393
+ * who is not tax exempt; `tax_status` is then `complete`. Refused with `billing_account_id`, whose invoice
2394
+ * contact decides tax.
2395
+ */
2396
+ address?: CustomerAddress;
2397
+ /**
2398
+ * For `modify` only; defaults to `immediate`. `immediate` prices the rest of the paid period from
2399
+ * `proration_date`, charging an upgrade the difference and showing what a downgrade refunds. `period_end`
2400
+ * prices the first period at the new terms, which replaces the renewal when the paid period ends.
2401
+ */
2402
+ change_effective?: CheckoutSessionPreviewRequestChangeEffective;
2403
+ /**
2404
+ * At most 100 items in all for `new` and `modify`, and each subscription at most once for `renew`.
2405
+ * @minItems 1
2406
+ * @maxItems 100
2407
+ */
2408
+ subscriptions: CheckoutSessionPreviewSubscription[];
2409
+ /**
2410
+ * For `renew` only, as in creating a renewal Checkout Session.
2411
+ * @minimum 1
2412
+ */
2413
+ periods?: number;
2414
+ /**
2415
+ * For `renew` only, as in creating a renewal Checkout Session.
2416
+ * @minimum 1
2417
+ */
2418
+ interval_count?: number;
2419
+ /** For `renew` only, as in creating a renewal Checkout Session. */
2420
+ interval?: CheckoutSessionPreviewRequestInterval;
2421
+ /** For `renew` only, as in creating a renewal Checkout Session. */
2422
+ cancellation_policy?: CancellationPolicy;
2423
+ /**
2424
+ * For `new` and `modify`. Evaluated without being applied.
2425
+ * @minLength 1
2426
+ * @maxLength 64
2427
+ */
2428
+ promotion_code?: string;
2429
+ /** For `new` with `billing_account_id`. A free trial grant of the account to preview the purchase with. */
2430
+ trial_grant_id?: string;
1974
2431
  }
1975
2432
  /**
1976
- * The dimension values of what is bought, such as region and instance type.
1977
- */
1978
- export type CheckoutSessionItemDimensions = {
1979
- [key: string]: string;
1980
- };
1981
- /**
1982
- * One item of the session. It becomes the order item at the same position; its price is chosen when checkout completes.
2433
+ * Give at least one choice. Saving a choice equal to the current one changes nothing.
1983
2434
  */
1984
- export interface CheckoutSessionItem {
1985
- /** @minimum 0 */
1986
- position: number;
1987
- plan_id: string;
1988
- plan_name: string;
2435
+ export interface CheckoutSessionUpdate {
1989
2436
  /**
1990
- * The price the item named. Null when Billing selects it by billing terms or from the subscription being changed or renewed.
1991
- * @nullable
1992
- */
1993
- price_id: string | null;
1994
- quantity: string;
1995
- /** The dimension values of what is bought, such as region and instance type. */
1996
- dimensions: CheckoutSessionItemDimensions;
1997
- /**
1998
- * The subscription changed or renewed. Null for a new purchase.
2437
+ * The promotion code to complete the session with; null removes it, and the best applicable account discount applies instead.
2438
+ * @minLength 1
2439
+ * @maxLength 64
1999
2440
  * @nullable
2000
2441
  */
2001
- subscription_id: string | null;
2442
+ promotion_code?: string | null;
2002
2443
  /**
2003
- * Renewals only; null otherwise. How many consecutive periods are renewed.
2004
- * @minimum 1
2444
+ * A free trial grant of the session's billing account to use; null removes it.
2005
2445
  * @nullable
2006
2446
  */
2007
- periods: number | null;
2008
- }
2009
- export interface CheckoutSessionItemList {
2010
- items: CheckoutSessionItem[];
2011
- pagination: OffsetPagination;
2447
+ trial_grant_id?: string | null;
2448
+ /** Turns on or off automatic renewal of every subscription with licensed items the session opens. It must be your own choice. */
2449
+ auto_renew?: boolean;
2012
2450
  }
2013
2451
  /**
2014
2452
  * As in renewing.
@@ -2020,12 +2458,23 @@ export declare const CheckoutSessionCreateInterval: {
2020
2458
  readonly year: "year";
2021
2459
  };
2022
2460
  /**
2023
- * The subscription to renew, and its periods and price chosen as in renewing.
2461
+ * One subscription to renew.
2462
+ */
2463
+ export interface CheckoutSessionSubscriptionInput {
2464
+ subscription_id: string;
2465
+ }
2466
+ /**
2467
+ * The subscriptions to renew together, and the periods and price chosen as in renewing, applied to each.
2024
2468
  */
2025
2469
  export interface CheckoutSessionCreate {
2026
2470
  /** Chosen by the caller. Creating it again conflicts; read the session after an unknown outcome. */
2027
2471
  checkout_session_id: string;
2028
- subscription_id: string;
2472
+ /**
2473
+ * Each subscription at most once.
2474
+ * @minItems 1
2475
+ * @maxItems 20
2476
+ */
2477
+ subscriptions: CheckoutSessionSubscriptionInput[];
2029
2478
  /**
2030
2479
  * As in renewing.
2031
2480
  * @minimum 1
@@ -2042,15 +2491,13 @@ export interface CheckoutSessionCreate {
2042
2491
  cancellation_policy?: CancellationPolicy;
2043
2492
  }
2044
2493
  export interface CheckoutSessionConfirm {
2494
+ /** The session's `total` as read, after discounts and tax and before credit grants or balance. */
2495
+ expected_amount: Money & string;
2045
2496
  /**
2046
- * As quoted. Omit to apply the best applicable account discount.
2047
- * @minLength 1
2048
- * @maxLength 64
2497
+ * Immediate changes and items added to an existing subscription only. The session's `proration_date` as
2498
+ * read; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is
2499
+ * refused with `BILLING_CHANGE_INVALID`. Defaults to the time of the request.
2049
2500
  */
2050
- promotion_code?: string;
2051
- /** The quote's `total`, after discounts and tax and before credit grants or balance. */
2052
- expected_amount: Money & string;
2053
- /** Immediate changes only. The quote's `proration_date`; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. Defaults to the time of the request. */
2054
2501
  proration_date?: string;
2055
2502
  }
2056
2503
  /**
@@ -2101,7 +2548,7 @@ export interface PaidWith {
2101
2548
  last4?: string;
2102
2549
  }
2103
2550
  /**
2104
- * `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms.
2551
+ * `new` buys, `renew` extends subscriptions, `modify` changes subscription items' configuration or billing terms.
2105
2552
  */
2106
2553
  export type OrderType = (typeof OrderType)[keyof typeof OrderType];
2107
2554
  export declare const OrderType: {
@@ -2110,7 +2557,7 @@ export declare const OrderType: {
2110
2557
  readonly modify: "modify";
2111
2558
  };
2112
2559
  /**
2113
- * When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual.
2560
+ * When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the item renews or ends with its subscription as usual.
2114
2561
  */
2115
2562
  export type OrderChangeEffective = (typeof OrderChangeEffective)[keyof typeof OrderChangeEffective];
2116
2563
  export declare const OrderChangeEffective: {
@@ -2126,7 +2573,7 @@ export declare const OrderItemInterval: {
2126
2573
  readonly year: "year";
2127
2574
  };
2128
2575
  /**
2129
- * `pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription is canceled.
2576
+ * `pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription item is canceled.
2130
2577
  */
2131
2578
  export type OrderItemStatus = (typeof OrderItemStatus)[keyof typeof OrderItemStatus];
2132
2579
  export declare const OrderItemStatus: {
@@ -2145,7 +2592,7 @@ export type OrderItemDimensions = {
2145
2592
  [key: string]: string;
2146
2593
  };
2147
2594
  /**
2148
- * The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription from placement.
2595
+ * The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription and subscription item from placement.
2149
2596
  */
2150
2597
  export interface OrderItem {
2151
2598
  /** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
@@ -2155,8 +2602,10 @@ export interface OrderItem {
2155
2602
  /** @minimum 0 */
2156
2603
  position?: number;
2157
2604
  configuration?: OrderItemConfiguration;
2158
- /** The Billing subscription: the new pending subscription of a recurring purchase, or the existing one renewed or changed, which keeps its ID. Absent for a purchase without a subscription. */
2605
+ /** The Billing subscription the line belongs to: a new pending one, the existing one an added item joins, or the one renewed or changed, which keeps its ID. Absent for a purchase without a subscription. */
2159
2606
  subscription_id?: string;
2607
+ /** The subscription item the line created, renewed or changed, which keeps its ID. Absent for a purchase without a subscription. */
2608
+ subscription_item_id?: string;
2160
2609
  interval: OrderItemInterval;
2161
2610
  /** @minimum 1 */
2162
2611
  interval_count?: number;
@@ -2190,7 +2639,7 @@ export interface OrderItem {
2190
2639
  id: string;
2191
2640
  order_id?: string;
2192
2641
  price_id: string;
2193
- product_id?: ProductID;
2642
+ product_id?: ProductId;
2194
2643
  product?: Product;
2195
2644
  /** Which plan was bought. */
2196
2645
  plan_id: string;
@@ -2253,10 +2702,10 @@ export interface Order {
2253
2702
  /** The billing account the order was placed with, unchanged when the project is later linked to another account. While it is suspended or closed, the order cannot be accepted, and a period-end change is called off when the current period ends; such requests fail with `BILLING_ACCOUNT_UNAVAILABLE`. */
2254
2703
  billing_account_id?: number;
2255
2704
  currency: string;
2256
- /** `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms. */
2705
+ /** `new` buys, `renew` extends subscriptions, `modify` changes subscription items' configuration or billing terms. */
2257
2706
  type: OrderType;
2258
2707
  status: OrderStatus;
2259
- /** When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual. */
2708
+ /** When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced when the order is created and starts when the current paid period ends; if the invoice is unpaid by then, the order is canceled and the item renews or ends with its subscription as usual. */
2260
2709
  change_effective?: OrderChangeEffective;
2261
2710
  /**
2262
2711
  * Acceptance deadline; a pending order expires after it.
@@ -2347,6 +2796,10 @@ export interface DiscountList {
2347
2796
  items: Discount[];
2348
2797
  pagination: OffsetPagination;
2349
2798
  }
2799
+ export interface TrialGrantList {
2800
+ items: TrialGrant[];
2801
+ pagination: OffsetPagination;
2802
+ }
2350
2803
  export interface OrderItemList {
2351
2804
  items: OrderItem[];
2352
2805
  pagination: OffsetPagination;
@@ -2376,6 +2829,9 @@ export declare const AllowanceStatus: {
2376
2829
  export interface Allowance {
2377
2830
  /** Optional issuance key, unique within this billing account. */
2378
2831
  idempotency_key?: string;
2832
+ /** The subscription item whose purchase includes the allowance; absent for an allowance not included in a purchase. */
2833
+ subscription_item_id?: string;
2834
+ /** The subscription that item belongs to. */
2379
2835
  subscription_id?: string;
2380
2836
  id: string;
2381
2837
  billing_account_id?: number;
@@ -2443,7 +2899,7 @@ export interface Entitlement {
2443
2899
  name?: string;
2444
2900
  enabled: boolean;
2445
2901
  /**
2446
- * When the providing subscription ends. Absent for a metered subscription.
2902
+ * When the providing subscription item ends with its current term. Absent for a metered item.
2447
2903
  * @nullable
2448
2904
  */
2449
2905
  expires_at?: string | null;
@@ -2467,7 +2923,7 @@ export interface Plan {
2467
2923
  product: Product;
2468
2924
  features: PlanFeature[];
2469
2925
  id: string;
2470
- product_id: ProductID;
2926
+ product_id: ProductId;
2471
2927
  name: string;
2472
2928
  description?: string;
2473
2929
  }
@@ -2573,7 +3029,7 @@ export interface Price {
2573
3029
  short_rate_multiplier?: string;
2574
3030
  /** Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies. */
2575
3031
  short_rate_threshold_seconds?: number;
2576
- product_id?: ProductID;
3032
+ product_id?: ProductId;
2577
3033
  id: string;
2578
3034
  plan_id: string;
2579
3035
  currency: string;
@@ -2602,50 +3058,6 @@ export interface PriceList {
2602
3058
  items: Price[];
2603
3059
  pagination: OffsetPagination;
2604
3060
  }
2605
- export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
2606
- export declare const QuoteItemInputInterval: {
2607
- readonly none: "none";
2608
- readonly day: "day";
2609
- readonly month: "month";
2610
- readonly year: "year";
2611
- };
2612
- /**
2613
- * The dimension values of what is bought, such as region and instance type. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused with `BILLING_PRICE_UNAVAILABLE` rather than priced at zero. Prices are set per currency, and a currency may not offer some combinations at all, for example in a region it does not sell to.
2614
- */
2615
- export type QuoteItemInputDimensions = {
2616
- [key: string]: string;
2617
- };
2618
- /**
2619
- * Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. A metered item includes only any setup charge; its usage is estimated with `estimate-usage`.
2620
- */
2621
- export interface QuoteItemInput {
2622
- /**
2623
- * @minLength 1
2624
- * @maxLength 128
2625
- */
2626
- price_lookup_key?: string;
2627
- /**
2628
- * @minLength 1
2629
- * @maxLength 128
2630
- */
2631
- plan_lookup_key?: string;
2632
- price_id?: string;
2633
- product_id?: ProductID;
2634
- plan_id?: string;
2635
- /** Narrows the selection when a plan offers more than one price type. */
2636
- price_type?: PriceType;
2637
- /** Narrows the selection when a plan offers more than one usage type. */
2638
- usage_type?: UsageType;
2639
- interval?: QuoteItemInputInterval;
2640
- /** @minimum 1 */
2641
- interval_count?: number;
2642
- /** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
2643
- cancellation_policy?: CancellationPolicy;
2644
- /** @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$ */
2645
- quantity: string;
2646
- /** The dimension values of what is bought, such as region and instance type. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused with `BILLING_PRICE_UNAVAILABLE` rather than priced at zero. Prices are set per currency, and a currency may not offer some combinations at all, for example in a region it does not sell to. */
2647
- dimensions?: QuoteItemInputDimensions;
2648
- }
2649
3061
  /**
2650
3062
  * The values of the meter's presentation dimensions, present only when grouped by meter.
2651
3063
  */
@@ -2694,7 +3106,9 @@ export interface ActiveResource {
2694
3106
  ended_at?: string;
2695
3107
  suspended_at?: string;
2696
3108
  state_changed_at?: string;
2697
- /** The metered subscription charged for this metering record. */
3109
+ /** The metered subscription item charged for this metering record. */
3110
+ subscription_item_id: string;
3111
+ /** The subscription the item belongs to. */
2698
3112
  subscription_id: string;
2699
3113
  resource_id: string;
2700
3114
  product: Product;
@@ -2716,7 +3130,7 @@ export interface ActiveResourceList {
2716
3130
  pagination: OffsetPagination;
2717
3131
  }
2718
3132
  /**
2719
- * An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed cancellation terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.
3133
+ * An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed cancellation terms. Nothing is refunded by the preview; the amount is fixed when cancellation or termination is confirmed.
2720
3134
  */
2721
3135
  export interface OrderRefundPreview {
2722
3136
  order_id: string;
@@ -2735,7 +3149,7 @@ export type UsageEstimateInputDimensions = {
2735
3149
  * Future usage of one metered price. Give the price, or the plan to use its metered price in the currency, and the meter that measures the usage; give each resource's ID or lookup key, never both, and product_id with lookup keys.
2736
3150
  */
2737
3151
  export interface UsageEstimateInput {
2738
- product_id?: ProductID;
3152
+ product_id?: ProductId;
2739
3153
  plan_id?: string;
2740
3154
  /**
2741
3155
  * @minLength 1
@@ -2807,118 +3221,6 @@ export interface UsageEstimate {
2807
3221
  /** One per request item, in request order. */
2808
3222
  items: UsageEstimateItem[];
2809
3223
  }
2810
- /**
2811
- * When the changes take effect; defaults to `immediate`. `immediate` prices the rest of the paid period from `proration_date`, charging an upgrade the difference and showing what a downgrade refunds. `period_end` prices the first period at the new terms, which replaces the renewal when the paid period ends.
2812
- */
2813
- export type QuoteRequestChangeEffective = (typeof QuoteRequestChangeEffective)[keyof typeof QuoteRequestChangeEffective];
2814
- export declare const QuoteRequestChangeEffective: {
2815
- readonly immediate: "immediate";
2816
- readonly period_end: "period_end";
2817
- };
2818
- export type QuoteChangeInputInterval = (typeof QuoteChangeInputInterval)[keyof typeof QuoteChangeInputInterval];
2819
- export declare const QuoteChangeInputInterval: {
2820
- readonly none: "none";
2821
- readonly day: "day";
2822
- readonly month: "month";
2823
- readonly year: "year";
2824
- };
2825
- /**
2826
- * The dimension values after the change, given in full; omit to keep the subscription's.
2827
- */
2828
- export type QuoteChangeInputDimensions = {
2829
- [key: string]: string;
2830
- };
2831
- /**
2832
- * The new terms of one subscription. Identify the price, or the plan to select one from, as for a proposed item. Without a price or billing terms, the plan's price with the subscription's price type, usage type, interval, interval count and cancellation policy is selected. Omitted dimensions keep the subscription's.
2833
- */
2834
- export interface QuoteChangeInput {
2835
- subscription_id: string;
2836
- /**
2837
- * @minLength 1
2838
- * @maxLength 128
2839
- */
2840
- price_lookup_key?: string;
2841
- /**
2842
- * @minLength 1
2843
- * @maxLength 128
2844
- */
2845
- plan_lookup_key?: string;
2846
- price_id?: string;
2847
- product_id?: ProductID;
2848
- plan_id?: string;
2849
- /** Selects the price type instead of keeping the subscription's. */
2850
- price_type?: PriceType;
2851
- /** Selects the usage type instead of keeping the subscription's. */
2852
- usage_type?: UsageType;
2853
- interval?: QuoteChangeInputInterval;
2854
- /** @minimum 1 */
2855
- interval_count?: number;
2856
- /** Selects among licensed prices with otherwise identical billing terms. */
2857
- cancellation_policy?: CancellationPolicy;
2858
- /**
2859
- * The quantity after the change.
2860
- * @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$
2861
- */
2862
- quantity: string;
2863
- /** The dimension values after the change, given in full; omit to keep the subscription's. */
2864
- dimensions?: QuoteChangeInputDimensions;
2865
- }
2866
- export interface QuoteAddress {
2867
- /**
2868
- * ISO 3166-1 alpha-2, two uppercase letters.
2869
- * @pattern ^[A-Z]{2}$
2870
- */
2871
- country: string;
2872
- /**
2873
- * The state or province, as the tax rates name it.
2874
- * @minLength 1
2875
- * @maxLength 128
2876
- */
2877
- state?: string;
2878
- }
2879
- /**
2880
- * Quote proposed items, changes or renewals: exactly one of them. Give exactly one of `billing_account_id` and `currency`; changes and renewals need the account. Promotion codes apply to proposed items and changes. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.
2881
- */
2882
- export interface QuoteRequest {
2883
- /**
2884
- * The billing account to price for; it must be yours or currently pay for a project you are a member of, and an access token is required. Renewals must currently be paid by it.
2885
- * @minimum 1
2886
- */
2887
- billing_account_id?: number;
2888
- /**
2889
- * The ISO 4217 currency to price in without an account.
2890
- * @minLength 3
2891
- * @maxLength 3
2892
- */
2893
- currency?: string;
2894
- /**
2895
- * A proposed purchase.
2896
- * @minItems 1
2897
- * @maxItems 100
2898
- */
2899
- items?: QuoteItemInput[];
2900
- /**
2901
- * Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. Each must currently be paid by `billing_account_id` and be yours to read, as the owner of that account or a member of the subscription's project. To apply a promotion code, create a renewal Checkout Session and quote it.
2902
- * @minItems 1
2903
- * @maxItems 100
2904
- */
2905
- renewals?: QuoteRenewal[];
2906
- /**
2907
- * Preview changing these subscriptions in one order, each at most once. Each must currently be paid by `billing_account_id` and be yours to read, as the owner of that account or a member of the subscription's project; all must belong to the same project, or all to no project.
2908
- * @minItems 1
2909
- * @maxItems 100
2910
- */
2911
- changes?: QuoteChangeInput[];
2912
- /** When the changes take effect; defaults to `immediate`. `immediate` prices the rest of the paid period from `proration_date`, charging an upgrade the difference and showing what a downgrade refunds. `period_end` prices the first period at the new terms, which replaces the renewal when the paid period ends. */
2913
- change_effective?: QuoteRequestChangeEffective;
2914
- /** Only with `currency`. Where the customer is, to include the tax that would be added there for a customer who is not tax exempt; `tax_status` is then `complete`. Refused with `billing_account_id`, whose invoice contact decides tax. */
2915
- address?: QuoteAddress;
2916
- /**
2917
- * @minLength 1
2918
- * @maxLength 64
2919
- */
2920
- promotion_code?: string;
2921
- }
2922
3224
  /**
2923
3225
  * Pagination metadata for keyset traversal. Pass next_cursor as cursor to read the following page; null means there is no following page.
2924
3226
  */
@@ -3206,7 +3508,7 @@ export interface PriceSearch {
3206
3508
  * @maxItems 200
3207
3509
  */
3208
3510
  plan_ids?: string[];
3209
- product_id?: ProductID;
3511
+ product_id?: ProductId;
3210
3512
  /** Narrows to one price type. */
3211
3513
  type?: PriceType;
3212
3514
  /** Narrows to one usage type. */
@@ -3663,6 +3965,30 @@ export type ListAccountDiscountsParams = {
3663
3965
  */
3664
3966
  status?: DiscountStatus[];
3665
3967
  };
3968
+ export type ListTrialGrantsParams = {
3969
+ /**
3970
+ * 1-based page number. Defaults to 1.
3971
+ * @minimum 1
3972
+ * @maximum 2147483647
3973
+ */
3974
+ page?: number;
3975
+ /**
3976
+ * Items per page. Defaults to 50; at most 200.
3977
+ * @minimum 1
3978
+ * @maximum 200
3979
+ */
3980
+ page_size?: number;
3981
+ /**
3982
+ * Only this account; all of yours when omitted.
3983
+ */
3984
+ billing_account_id?: AccountIdQueryParameter;
3985
+ /**
3986
+ * Only grants in these statuses; omit for every status. Comma-separated, for example `status=available,scheduled`.
3987
+ * @minItems 1
3988
+ * @maxItems 5
3989
+ */
3990
+ status?: TrialGrantStatus[];
3991
+ };
3666
3992
  export type ListCreditGrantsParams = {
3667
3993
  /**
3668
3994
  * 1-based page number. Defaults to 1.
@@ -3778,7 +4104,7 @@ export type ListUsageChargesParams = {
3778
4104
  * Only this account; all of yours when omitted.
3779
4105
  */
3780
4106
  billing_account_id?: AccountIdQueryParameter;
3781
- product_id?: ProductID;
4107
+ product_id?: ProductId;
3782
4108
  resource_id?: string;
3783
4109
  /**
3784
4110
  * Only the charges summed into this usage invoice line.
@@ -3800,6 +4126,12 @@ export type ListUsageChargesParams = {
3800
4126
  };
3801
4127
  export type ListSubscriptionsParams = {
3802
4128
  expiring_before?: string;
4129
+ /**
4130
+ * Only these subscriptions, such as those of the resources shown on one page. Comma-separated.
4131
+ * @minItems 1
4132
+ * @maxItems 200
4133
+ */
4134
+ subscription_ids?: string[];
3803
4135
  /**
3804
4136
  * 1-based page number. Defaults to 1.
3805
4137
  * @minimum 1
@@ -3825,7 +4157,7 @@ export type ListSubscriptionsParams = {
3825
4157
  /**
3826
4158
  * Only subscriptions in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`.
3827
4159
  * @minItems 1
3828
- * @maxItems 6
4160
+ * @maxItems 7
3829
4161
  */
3830
4162
  status?: SubscriptionStatus[];
3831
4163
  };
@@ -3847,9 +4179,13 @@ export type ListCancellationsParams = {
3847
4179
  */
3848
4180
  billing_account_id?: AccountIdQueryParameter;
3849
4181
  /**
3850
- * Only cancellations that include this subscription.
4182
+ * Only cancellations that include an item of this subscription.
3851
4183
  */
3852
4184
  subscription_id?: string;
4185
+ /**
4186
+ * Only cancellations that include this subscription item.
4187
+ */
4188
+ subscription_item_id?: string;
3853
4189
  /**
3854
4190
  * Only cancellations in these statuses; omit for every status. `open` means requested, scheduled or releasing. Comma-separated, for example `status=open,failed`.
3855
4191
  * @minItems 1
@@ -3873,7 +4209,7 @@ export declare const ListCancellationsStatusItem: {
3873
4209
  readonly canceled: "canceled";
3874
4210
  readonly failed: "failed";
3875
4211
  };
3876
- export type ListRenewalPricesParams = {
4212
+ export type ListRenewalOptionsParams = {
3877
4213
  /**
3878
4214
  * 1-based page number. Defaults to 1.
3879
4215
  * @minimum 1
@@ -3914,7 +4250,7 @@ export type ListAllowancesParams = {
3914
4250
  * @maxItems 4
3915
4251
  */
3916
4252
  status?: AllowanceStatus[];
3917
- product_id?: ProductID;
4253
+ product_id?: ProductId;
3918
4254
  /**
3919
4255
  * Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees.
3920
4256
  * @minItems 1
@@ -3952,27 +4288,6 @@ export type ListCheckoutSessionsParams = {
3952
4288
  */
3953
4289
  project_ids?: ProjectIdsQueryParameter;
3954
4290
  };
3955
- export type ListCheckoutSessionItemsParams = {
3956
- /**
3957
- * 1-based page number. Defaults to 1.
3958
- * @minimum 1
3959
- * @maximum 2147483647
3960
- */
3961
- page?: number;
3962
- /**
3963
- * Items per page. Defaults to 50; at most 200.
3964
- * @minimum 1
3965
- * @maximum 200
3966
- */
3967
- page_size?: number;
3968
- };
3969
- export type GetCheckoutSessionQuoteParams = {
3970
- /**
3971
- * @minLength 1
3972
- * @maxLength 64
3973
- */
3974
- promotion_code?: string;
3975
- };
3976
4291
  export type ListOrdersParams = {
3977
4292
  /**
3978
4293
  * 1-based page number. Defaults to 1.
@@ -4053,7 +4368,7 @@ export type ListEntitlementsParams = {
4053
4368
  * @maxItems 100
4054
4369
  */
4055
4370
  project_ids?: ProjectIdsQueryParameter;
4056
- product_id?: ProductID;
4371
+ product_id?: ProductId;
4057
4372
  };
4058
4373
  export type ListFeatureGrantsParams = {
4059
4374
  /**
@@ -4072,7 +4387,7 @@ export type ListFeatureGrantsParams = {
4072
4387
  * Only this account; all of yours when omitted.
4073
4388
  */
4074
4389
  billing_account_id?: AccountIdQueryParameter;
4075
- product_id?: ProductID;
4390
+ product_id?: ProductId;
4076
4391
  /**
4077
4392
  * Only feature grants in these statuses; omit for every status. Comma-separated, for example `status=scheduled,active`.
4078
4393
  * @minItems 1
@@ -4099,7 +4414,7 @@ export type ListPricesParams = {
4099
4414
  * @maxLength 3
4100
4415
  */
4101
4416
  currency: string;
4102
- product_id?: ProductID;
4417
+ product_id?: ProductId;
4103
4418
  /**
4104
4419
  * Narrows to one price type.
4105
4420
  */
@@ -4154,7 +4469,7 @@ export type GetPriceHeaders = {
4154
4469
  "If-None-Match"?: IfNoneMatchParameter;
4155
4470
  };
4156
4471
  export type ListPlansParams = {
4157
- product_id: ProductID;
4472
+ product_id: ProductId;
4158
4473
  /**
4159
4474
  * 1-based page number. Defaults to 1.
4160
4475
  * @minimum 1
@@ -4228,7 +4543,7 @@ export type ListActiveResourcesParams = {
4228
4543
  */
4229
4544
  project_ids?: ProjectIdsQueryParameter;
4230
4545
  meter_id?: string;
4231
- product_id?: ProductID;
4546
+ product_id?: ProductId;
4232
4547
  /**
4233
4548
  * Only metering in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`.
4234
4549
  * @minItems 1
@@ -4249,7 +4564,7 @@ export type ListSpendParams = {
4249
4564
  /**
4250
4565
  * Filter by the fixed platform service ID.
4251
4566
  */
4252
- product_id?: ProductID;
4567
+ product_id?: ProductId;
4253
4568
  /**
4254
4569
  * 1-based page number. Defaults to 1.
4255
4570
  * @minimum 1